From patchwork Fri Oct 2 16:42:12 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: 303809 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.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 3CBBAC4363C for ; Fri, 2 Oct 2020 16:43:57 +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 D0851206FA for ; Fri, 2 Oct 2020 16:43:56 +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="DpYLEzvh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0851206FA 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]:35366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOO9z-0005Z5-Vt for qemu-devel@archiver.kernel.org; Fri, 02 Oct 2020 12:43:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOO8U-00049p-S6; Fri, 02 Oct 2020 12:42:22 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:39829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOO8T-0005ce-Ay; Fri, 02 Oct 2020 12:42:22 -0400 Received: by mail-wr1-x444.google.com with SMTP id k10so2511859wru.6; Fri, 02 Oct 2020 09:42:20 -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=em2nDQodvZ5go6Gon5+MVnza6F8SqPaC6fferMnTT10=; b=DpYLEzvh365GPPLrinnZ3HjOPpoPjq+5CnTfa/16nmvLVpYVb9IEEjrKNluGCP8pvx vo18joDSHtatnnMhcIkNmpNJSX+Llo7793hV8fd++H4WJJZsonH/Sfy5aOAFykYrF23U QvhVFvikW8lU63jnaZ0qcKdqajFM8kMlIOSPVF4MjE8t1RuFXxxGon7QsPQilzh4Xf2g 9W8zaDOUUfNGutDr7Yb9+Jpu70CZYfYRUCaskHZ58+G5RKZ2QfrtJIATgJQE1SEA9AWu bKg1UJgVFCTW7fnejUQth9y2fst+EuAKVPZp7JPB/o59fyGg7vbhDAtJ0X/O5qlFnpUu NkFw== 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=em2nDQodvZ5go6Gon5+MVnza6F8SqPaC6fferMnTT10=; b=ggoZ1yutusL/KKDsJY3r7U1U5e65q9c/+3aaA9Po7jshLO2o1XGRpKx2VwhXAedBYx USvd5Mvm3gb9OdQmmxB0ASYSLAQEXHtnd6E0Bt8zrCjh4UupoM/LSO0x5lYfFNm/FgOh H/wQmhEPSmAv+A9VN2Zf7DnTFIgXfTasd+kFdgQ6G2NIZpa/l0jR7fA9L+RNkP9eVzc4 xJWSNzdwmp2lbB6Dn38ieb+d0rzXXVwoIG4ifGrvjmwSYU9eNwXWoELl9dxNKUK2LKxr NL81fV64+V2GCHlBd61Xq96InKwxqZUVCiVvsLgSpKSqDzp3+oy+7/Ss8YHTrxETWmZp SIjg== X-Gm-Message-State: AOAM531jV+VAs0X2oxMSEFFf0nCaw9gYbFKM4WtsNlkntrZdMoFFFkpq 2ayDRZqd9waPdR5Em2LRNYAc8N+eGqs= X-Google-Smtp-Source: ABdhPJwSIhU6JrFljWewfNrhCV2BFvOegQyK2fHhUqhzooMUECAz7GlicfvHawoBl/XVmCdymwm+7w== X-Received: by 2002:a5d:4d01:: with SMTP id z1mr4009160wrt.366.1601656938855; Fri, 02 Oct 2020 09:42:18 -0700 (PDT) Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id t17sm2378673wrx.82.2020.10.02.09.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 09:42:18 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 0/4] hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+ Date: Fri, 2 Oct 2020 18:42:12 +0200 Message-Id: <20201002164216.1741110-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::444; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x444.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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 , Luc Michel , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Andrew Baumann , Paul Zimmerman , Niek Linnenbank , qemu-arm@nongnu.org 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 Since v2: - Fixed issue in COMPARE register reported by Luc Since v1: - Extracted unrelated patches to previous series (which happened to be mis-rebased) Philippe Mathieu-Daudé (4): 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/timer/bcm2835_systmr.h | 17 +++++++--- hw/arm/bcm2835_peripherals.c | 13 ++++++-- hw/timer/bcm2835_systmr.c | 54 +++++++++++++++++++------------ hw/timer/trace-events | 4 ++- 4 files changed, 61 insertions(+), 27 deletions(-)