From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935509AbdACQGP (ORCPT ); Tue, 3 Jan 2017 11:06:15 -0500 Received: from foss.arm.com ([217.140.101.70]:59652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935425AbdACQFz (ORCPT ); Tue, 3 Jan 2017 11:05:55 -0500 Date: Tue, 3 Jan 2017 15:55:02 +0000 From: Mark Rutland To: Christopher Covington Cc: Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Christoffer Dall , Marc Zyngier , Catalin Marinas , Will Deacon , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, shankerd@codeaurora.org, timur@codeaurora.org, Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 2/5] arm64: Work around Falkor erratum 1003 Message-ID: <20170103155502.GA14183@leverpostej> References: <20161229224335.13531-1-cov@codeaurora.org> <20161229224335.13531-2-cov@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161229224335.13531-2-cov@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Dec 29, 2016 at 05:43:32PM -0500, Christopher Covington wrote: > +config QCOM_FALKOR_E1003_RESERVED_ASID > + int > + default 1 > + depends on QCOM_FALKOR_ERRATUM_1003 > + I don't think this needs to be configurable, so let's drop this into a header, e.g. drop: #define FALKOR_RESERVED_ASID 1 ... in , protecting the rest with an ifndef __ASSEMBLY__ guard. [...] > +#ifdef CONFIG_QCOM_FALKOR_ERRATUM_1003 > +alternative_if ARM64_WORKAROUND_QCOM_FALKOR_E1003 > + mrs x2, ttbr0_el1 // get cuurent TTBR0_EL1 > + mov x3, #CONFIG_QCOM_FALKOR_ERRATUM_1003 // reserved ASID Wrong macro? That's not the ASID. Thanks, Mark.