From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Covington Subject: Re: [PATCH v2 2/5] arm64: Work around Falkor erratum 1003 Date: Fri, 6 Jan 2017 10:49:36 -0500 Message-ID: References: <20161229224335.13531-1-cov@codeaurora.org> <20161229224335.13531-2-cov@codeaurora.org> <20170103155502.GA14183@leverpostej> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 8232340430 for ; Fri, 6 Jan 2017 10:48:02 -0500 (EST) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s9jLiGDtyFPx for ; Fri, 6 Jan 2017 10:48:01 -0500 (EST) Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id B53AC40423 for ; Fri, 6 Jan 2017 10:48:01 -0500 (EST) In-Reply-To: <20170103155502.GA14183@leverpostej> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Mark Rutland Cc: linux-doc@vger.kernel.org, kvm@vger.kernel.org, Marc Zyngier , Catalin Marinas , timur@codeaurora.org, Jonathan Corbet , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Paolo Bonzini , kvmarm@lists.cs.columbia.edu List-Id: kvmarm@lists.cs.columbia.edu On 01/03/2017 10:55 AM, Mark Rutland wrote: > 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. Will do, thanks for the concrete suggestion. > [...] > >> +#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. Oops, thanks for spotting. Cov -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.