From patchwork Sun Sep 20 17:58:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 273224 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F11EC43463 for ; Sun, 20 Sep 2020 17:59:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96ABB20874 for ; Sun, 20 Sep 2020 17:59:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QRJIXjim" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96ABB20874 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK3ct-0003Su-Lm for qemu-devel@archiver.kernel.org; Sun, 20 Sep 2020 13:59:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK3bc-0001tE-25; Sun, 20 Sep 2020 13:58:32 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:46115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kK3ba-0002zz-Bj; Sun, 20 Sep 2020 13:58:31 -0400 Received: by mail-wr1-x443.google.com with SMTP id o5so10418617wrn.13; Sun, 20 Sep 2020 10:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/VdMmIK1mFI+lDfNuHVDrs8UFSjcbDwK40S9cUUzWDc=; b=QRJIXjimYc9U2s41ONtTcXuiMRx+V6+rtPb0+muIpJIPYdSGU4oKuHx5h6fdNgaMLq J/+ajSX3AgjLaRo6CwLywBK9/Np3Z14K6yZpD3czkcz3CQQUUezBnQG2E9qnZL//pD9q /JcS6VEf/DZ8vL/hdhzumbznWxDcXxk6n6Dg0AG8yqfncVE7wgtBzwLUv4CfieeRpjSt /l0bOl0RPot5T12wJyfKPOYTRIf0qLsZ3KdYvSZqDSy7dDlgKPc2W+QyyyavmB1lpzdN 8jnFy4iD0oXIs7uP2QUZArJCcqRy9mlrq2MAZ7uIbHHshtIfhbqw+flniQjOsjorDz+9 7LDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=/VdMmIK1mFI+lDfNuHVDrs8UFSjcbDwK40S9cUUzWDc=; b=DFu0BTv9ixg1/UxzrCf60egopt8INfWzK3pKmhEUuQp9Pv3ncPJ/5tNuJ8ceD0eUlI +qBtrtU07K8OajReX9cjdri+jKN5RwrIFDS0h4oE6KM972hK68162DCsBBolm9XvOaQw z8FlJzkOiMzPWHZa2nzYqmCucaO5c1RLUpuzkho5LbapcPGwa+q3lEVBeHtQyRwZpc3T /uHKb8939KyTPo6O6NZkGLlhAeA4J5LPPbMpmdy7iYYv5sQztHhiUEQ1N/0G/MmlhI46 wwP2J1OMxulTo7hNrjpZuDTTKt572lOURW9UEhj03Ln7mMhk2x+/0kzDNkzhMug6FptJ 8f1g== X-Gm-Message-State: AOAM533KsaC2+F0dZdxPRfyS6Bk5QitsHq2dP/9EWgT/DN8kg66ixGqt k+MEz6CFcybdexX0fIlvjHinmivg4Tw= X-Google-Smtp-Source: ABdhPJzyA4BPXa0TcPAvvf3B4Qlqe5FZqYcC8NaakD7BsM0nFSBE3kqTlepYlcUpVP7xYZPETxKhrA== X-Received: by 2002:a5d:574e:: with SMTP id q14mr46669203wrw.281.1600624707731; Sun, 20 Sep 2020 10:58:27 -0700 (PDT) Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id u66sm15675781wme.12.2020.09.20.10.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2020 10:58:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/7] hw/arm/raspi: Fix SYS_timer on Linux + misc changes Date: Sun, 20 Sep 2020 19:58:18 +0200 Message-Id: <20200920175825.417680-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::443; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x443.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?b?YXVkw6k=?= , Andrew Baumann , Paul Zimmerman , Niek Linnenbank , qemu-arm@nongnu.org, Luc Michel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" In this series we implement the COMPARE registers of the SYS_timer, since they are used by Linux. This fixes the hang reported by Niek here: https://www.mail-archive.com/qemu-devel@nongnu.org/msg682090.html Few trivial patches used while working on this added. Philippe Mathieu-Daudé (7): hw/arm/raspi: Define various blocks base addresses hw/arm/bcm2835: Add more unimplemented peripherals hw/intc/bcm2835_ic: Trace GPU/CPU IRQ handlers hw/timer/bcm2835: Introduce BCM2835_SYSTIMER_COUNT definition hw/timer/bcm2835: Rename variable holding CTRL_STATUS register hw/timer/bcm2835: Support the timer COMPARE registers hw/arm/bcm2835_peripherals: Correctly wire the SYS_timer IRQs include/hw/arm/bcm2835_peripherals.h | 2 ++ include/hw/arm/raspi_platform.h | 51 +++++++++++++++++++++++----- include/hw/timer/bcm2835_systmr.h | 17 +++++++--- hw/arm/bcm2835_peripherals.c | 15 ++++++-- hw/intc/bcm2835_ic.c | 4 ++- hw/timer/bcm2835_systmr.c | 50 ++++++++++++++++----------- hw/intc/trace-events | 4 +++ hw/timer/trace-events | 4 ++- 8 files changed, 111 insertions(+), 36 deletions(-)