Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3078446yba; Mon, 8 Apr 2019 10:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyltSgSXb4f4GDwcjvi6I/zo0oD+iXWmNq9cjYD+1KvHTAm0yDLitKfGmPpyZ7gBXWXdbL X-Received: by 2002:a62:12c8:: with SMTP id 69mr31372743pfs.184.1554744973887; Mon, 08 Apr 2019 10:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554744973; cv=none; d=google.com; s=arc-20160816; b=pNNOAqrrUd5seTDqozu6MJiFab1BgF31NdDBFvIZ4B1ZSkMc1Pj9X/r1k1ChpFtdZ1 3FZjxEIGAQX8s/uCigIf6Df5Jd9cZ8uDQITs+ghwMPaGYn82QTe7DhYHX79Kny4O3hJZ XZil/k497Z621SCN1+v50Z7rswv4M0lou4pvGosE7QSh+LghQOyIdrkKlBkxDh27zJlq f7YevAAYvOr7hDT4h2CXxnL6TAFEWO5PQhUTVh5WmlCBSfzm7kzV1WvsnMZDYApxF9XE pQOeSRij1BWLuxcSd0KuoP1hDeX/6HsQw3Wlb9mqTbMFrTfDd4Ts7x4CE4P3IOxxbfwg LiBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=i3SE3+0h4hcBdckEZNSYlPfbAhmnj1HaKiYfvTnSmKo=; b=zdRedMHrJ0VcN1J1XiJsTZCnF0Nknbd0KAPoZ+Hnk/F2m0nJO+OanKPA4LwZi08Lh4 pFwSWFIfxGdtH5L10Gy9Jsl5BWENk7ht2i8ilF1STJWvQokYIVniK8ygox4hTzU8dp70 zhM97AcYwfF3li/tDrz4U+yjMkWviLOzWQFZEqcNZc0EXOlCEMmfoEfz7sVdPFOSVR4H rpci8b+hds5erWgmjnVqIaZRaW4FEYgYqCpGwiGnKRwZ8/Kqte8rA3zZa+KYuKhGCEDy wrvSLeVBDwTUkHYcR5onf8XrT8XbLLUg1HIB9NZVhl0XJ6zfYPowuWIC7SXqCWT4xJGK D/Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n34si26237512pld.352.2019.04.08.10.35.57; Mon, 08 Apr 2019 10:36:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727356AbfDHPth (ORCPT + 99 others); Mon, 8 Apr 2019 11:49:37 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50568 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfDHPth (ORCPT ); Mon, 8 Apr 2019 11:49:37 -0400 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 Cc: Russell King , Will Deacon , Catalin Marinas , Mark Rutland , Daniel Lezcano , Wim Van Sebroeck , Guenter Roeck , Valentin Schneider 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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