Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1140733pxb; Fri, 20 Nov 2020 02:05:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB1SJtlvRA9Z/jDDEr9ApMsBPM6giJwnjMm9uSeaKF+Xo3gnhcdzcDndpMXnnAIVHs0ibF X-Received: by 2002:a50:ec86:: with SMTP id e6mr21678082edr.111.1605866748535; Fri, 20 Nov 2020 02:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605866748; cv=none; d=google.com; s=arc-20160816; b=EHdQs8e7vFGPuww0+Cn/APKLZcfVNrzt6KYLgXo3ps//wl8MTdshESwL4bPZ0qxoHY 9dmKpnHuIf+G1HgLbLm8Rv6VqYT4yND9wTS2od8WcWJu1jkfCc/OUsR9qCb6ftGzvY8v E9vasgqh7UCXcFPTmXkTCYzuDI/ICHbuKYDRkiUJFodV/9vaNWiSJhLR2TRj6N0/9QJf zi3AKZ2HAxu+TQLw84wmiWvhGv/ChzfnZyevW7U4RBMgHK+PC+IJqG+/9TLc6MB8A18a tYZCXs6Z5MMeyS+S2i9KZeEDQrYMhclg5srUgjyHUPM5Pam23FUMGaV7HQYf6Pyh4COe 8K3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=txG+EhQApegT1VlJBySWgVDkBFm58CUTDUMnvaTP0Ww=; b=EeC41XTtLbEn7G3KTXaNLtIbcnUMOhktrW4kkpNZ5+Hv/7E5CwS4zv5e/MSk59QTrf pVooG1VFiDQWz0078opWBKzLUltO0waZl/pnjfI3tYcfBkM3ePvJWz9PV+ZeQTjudTN5 hCxv8lFbNFac0qKpTyzqsgVhZAfPyHfjQPS7CR1cKuNq5lYqX1sPr+2dToWSyp18z3WN 7vuknCbZwUy+FbQfDQsm/0QXZDqgwWH9OTndOt++yYKexBF2YbAlbSkFUyLKDzcoE+aA WQliS1tV9Xq36I6AdKNMrXbspd4sb3j2OOSiDvTX/t3GRfzANDjrNGyidVvBCNU8SuX1 51Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si1407676ejy.343.2020.11.20.02.05.24; Fri, 20 Nov 2020 02:05:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbgKTKDq (ORCPT + 99 others); Fri, 20 Nov 2020 05:03:46 -0500 Received: from foss.arm.com ([217.140.110.172]:46326 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727214AbgKTKDq (ORCPT ); Fri, 20 Nov 2020 05:03:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A2EF11D4; Fri, 20 Nov 2020 02:03:46 -0800 (PST) Received: from [10.57.53.209] (unknown [10.57.53.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E8E5F3F70D; Fri, 20 Nov 2020 02:03:43 -0800 (PST) Subject: Re: [PATCH v4 24/25] arm64: Add TRFCR_ELx definitions To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-kernel@vger.kernel.org, anshuman.khandual@arm.com, jonathan.zhouwen@huawei.com, coresight@lists.linaro.org, Will Deacon References: <20201119164547.2982871-1-suzuki.poulose@arm.com> <20201119164547.2982871-25-suzuki.poulose@arm.com> <20201119171801.GE4376@gaia> From: Suzuki K Poulose Message-ID: <43d9f4ac-df91-1cc4-ea4b-518f3433a915@arm.com> Date: Fri, 20 Nov 2020 10:03:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201119171801.GE4376@gaia> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/19/20 5:18 PM, Catalin Marinas wrote: > On Thu, Nov 19, 2020 at 04:45:46PM +0000, Suzuki K Poulose wrote: >> @@ -988,6 +991,14 @@ >> /* Safe value for MPIDR_EL1: Bit31:RES1, Bit30:U:0, Bit24:MT:0 */ >> #define SYS_MPIDR_SAFE_VAL (BIT(31)) >> >> +#define TRFCR_ELx_TS_SHIFT 5 >> +#define TRFCR_ELx_TS_VIRTUAL ((0x1) << TRFCR_ELx_TS_SHIFT) >> +#define TRFCR_ELx_TS_GUEST_PHYSICAL ((0x2) << TRFCR_ELx_TS_SHIFT) >> +#define TRFCR_ELx_TS_PHYSICAL ((0x3) << TRFCR_ELx_TS_SHIFT) > > For consistency, I'd use 0x1UL etc. in case the shift goes beyond 32 > (not the case here though). Agreed, will fix it. > > Otherwise: > > Acked-by: Catalin Marinas Thanks Suzuki