From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 87634C10F13 for ; Mon, 8 Apr 2019 15:49:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 56DBE2147A for ; Mon, 8 Apr 2019 15:49:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IJswR6Q3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56DBE2147A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vPUf1tYMTE8VsogVe7fBRw8yvYaOJVsHj+I9KgldGcQ=; b=IJswR6Q3yQxwDZ meHj+GYSjK2G8cJ+APvzPeMcuFv5m4i9JQn+1vw6sQnl1PRNpEPGZOKRBMzKoD0fkof5rT2QinRQQ hka05+KCHVoTBCLYn9a2tQW3iStTGOOVhOAtgD/kQp+273iPzvziL2zp0eqdIAsBIU6Y9aeEYhFkK mvS3fZhY5YpBlEM/7WkoYNvlGSd7ROBuck4cq2Mk3kAAKf7mOltmmcw+fJUZO3lP6Ru0P0gpfwyf0 HnvhKUZFz3z3EKZwmueZfI7iGbrHhnrbws3er55eywJQ6u+RNZT6SvfDejKkFG6+tO9RG7L4x3CEc xQd33GTa2ukvU5P8j0zA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDWWj-0002ur-6C; Mon, 08 Apr 2019 15:49:41 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDWWf-0002tt-PS for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2019 15:49:38 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C678215AB; Mon, 8 Apr 2019 08:49:36 -0700 (PDT) Received: from filthy-habits.cambridge.arm.com (filthy-habits.cambridge.arm.com [10.1.196.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0500C3F557; Mon, 8 Apr 2019 08:49:34 -0700 (PDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] clocksource/arm_arch_timer: Removing the static branch on errata handling Date: Mon, 8 Apr 2019 16:49:00 +0100 Message-Id: <20190408154907.223536-1-marc.zyngier@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190408_084937_837161_7603D5B2 X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Russell King , Catalin Marinas , Daniel Lezcano , Will Deacon , Wim Van Sebroeck , Valentin Schneider , Guenter Roeck Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The static key used to deal with the errata workaround that plague a significant number of arm64 systems (who thought that building a timer was that hard?) has proved to be a disaster when dealing with lockdep. We try to activate it in contexts that were never expected, and things break pretty loudly. This series takes the easy way out and removes the static key altogether. It always looked like premature optimisation anyway, and some of the hooks can be implemented in saner ways. To get there, some unrelated bits have to be fixed first: the 32bit vdso as well as some of the arm64 stuff. Marc Zyngier (7): ARM: vdso: Remove dependency with the arch_timer driver internals watchdog/sbsa: Use arch_timer_read_counter instead of arch_counter_get_cntvct arm64: Use arch_timer_read_counter instead of arch_counter_get_cntvct clocksource/arm_arch_timer: Direcly assign set_next_event workaround clocksource/arm_arch_timer: Drop use of static key in arch_timer_reg_read_stable clocksource/arm_arch_timer: Remove use of workaround static key clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters arch/arm/include/asm/arch_timer.h | 18 ++++- arch/arm/include/asm/cp15.h | 2 + arch/arm/vdso/vgettimeofday.c | 5 +- arch/arm64/include/asm/arch_timer.h | 78 +++++++++++++----- arch/arm64/kernel/traps.c | 4 +- drivers/clocksource/arm_arch_timer.c | 115 +++++++++++++-------------- drivers/watchdog/sbsa_gwdt.c | 2 +- 7 files changed, 139 insertions(+), 85 deletions(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel