Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp613833pxb; Thu, 19 Nov 2020 09:20:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+cdj73KTxr//qI6SxFov7deH1awGJpC7xhmYFuv0oS9uJhYlFIDcJW1+DF28FZlHBqBVP X-Received: by 2002:a17:906:d0cc:: with SMTP id bq12mr28200247ejb.127.1605806426947; Thu, 19 Nov 2020 09:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605806426; cv=none; d=google.com; s=arc-20160816; b=ihWtodL3NG1J4z1iL/BRMOP3IvYTW5qC5wxaDvrnSqwxDtNP+TMPOamkLB0LLDlSYh 9aDiYtmWhsoLKuFUFsKLLEe7Bdx+PdJnDlyw4SrDzIKZOoIeB5J6tonhhTIVyRKGXsSW depIqfoHBqmshUYg8Sw8g8hGimQBA2WxB2F4tGFYPfwsi6OC7T1QS5trQMGfOFJ+qgBJ RaQjv122lGlRCBdH7a2QNdlfg6SZzWf4gdw/VJcIjAVhigfl7V3aS0u395/68/kP9RqM uQoL+CkPj72YLlc7Xw0kcvhhq42Ndd0hM4ZmDakltOV4OWBv6YkH06kFTAxtheqEWX8o z81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RvjoiF4kT4IFL2KtXlhaTi/Y7x5O7SRIXkn+4fKPSc4=; b=Dz2zJOANT0shF9NqWHxm1GWLqu2ZhkxbuozkkKAz+Ah4FRwSlsm6PUnhKKnoMafIDz Lv2Yql01a3k2iUPHRagbOIcKL2Owve8ulAVfGafq0MkWwtoTe2Gcxh8hdNAdOTUfeuPy xhnVRDG6qVNCmX1o4lpJbAFGu9DwGPewffGl+Ej/Bg5Jt+kdqTIzKAGXWrG0Ajdx/5fe mkZOELdIrA194tc9iSjStoOxYAgNswQYo6qwZlbJzH8fNg3JkQ8KlQZTR0WcZtjaoh5N MgP7kL4CiK2AHH4E3aVNOE49V8x32uEGG4PG+TMbxf/7LN2yx8VSjT+R5oUlEGGPdyWc wSrw== 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 i27si185067ejo.285.2020.11.19.09.20.03; Thu, 19 Nov 2020 09:20:26 -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 S1728723AbgKSRSG (ORCPT + 99 others); Thu, 19 Nov 2020 12:18:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:38290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727166AbgKSRSG (ORCPT ); Thu, 19 Nov 2020 12:18:06 -0500 Received: from gaia (unknown [2.26.170.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A7782468B; Thu, 19 Nov 2020 17:18:04 +0000 (UTC) Date: Thu, 19 Nov 2020 17:18:01 +0000 From: Catalin Marinas To: Suzuki K Poulose 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 Subject: Re: [PATCH v4 24/25] arm64: Add TRFCR_ELx definitions Message-ID: <20201119171801.GE4376@gaia> References: <20201119164547.2982871-1-suzuki.poulose@arm.com> <20201119164547.2982871-25-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119164547.2982871-25-suzuki.poulose@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Otherwise: Acked-by: Catalin Marinas