From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758748AbbIVQ6T (ORCPT ); Tue, 22 Sep 2015 12:58:19 -0400 Received: from foss.arm.com ([217.140.101.70]:59029 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757463AbbIVQuy (ORCPT ); Tue, 22 Sep 2015 12:50:54 -0400 Date: Tue, 22 Sep 2015 17:50:40 +0100 From: Marc Zyngier To: Robert Richter Cc: Thomas Gleixner , Jason Cooper , Catalin Marinas , Will Deacon , Tirumalesh Chalamarla , , , Robert Richter Subject: Re: [PATCH v5 2/6] irqchip, gicv3: Workaround for Cavium ThunderX erratum 23154 Message-ID: <20150922175040.7288b247@arm.com> In-Reply-To: <1442869119-1814-3-git-send-email-rric@kernel.org> References: <1442869119-1814-1-git-send-email-rric@kernel.org> <1442869119-1814-3-git-send-email-rric@kernel.org> Organization: ARM Ltd X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; arm-unknown-linux-gnueabihf) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Sep 2015 22:58:35 +0200 Robert Richter wrote: > From: Robert Richter > > This patch implements Cavium ThunderX erratum 23154. > > The gicv3 of ThunderX requires a modified version for reading the IAR > status to ensure data synchronization. Since this is in the fast-path > and called with each interrupt, runtime patching is used using jump > label patching for smallest overhead (no-op). This is the same > technique as used for tracepoints. > > v5: > * fixed calling gic_read_iar_cavium_thunderx() if jump label is > enabled > * made is_cavium_thunderx static > * removed ARCH_THUNDER dependency for Cavium errata options to > make it available for generic kernels > > v4: > * simplify code to only use cpus_have_cap() in gicv3_enable_quirks() > > v3: > * fix erratum to be dependend from midr > * use arm64 errata framework > > v2: > * implement code in a single asm() to keep instruction sequence > * added comment to the code that explains the erratum > * apply workaround also if running as guest, thus check MIDR > > Signed-off-by: Robert Richter Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny.