From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH 1/2] arm64: kvm: reuse existing cache type/info related macros Date: Mon, 23 Jan 2017 18:17:28 +0000 Message-ID: <20170123181727.GJ28914@arm.com> References: <1484909410-11673-1-git-send-email-sudeep.holla@arm.com> 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 50D5D4097B for ; Mon, 23 Jan 2017 13:17:23 -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 kqvmKlT+1XJd for ; Mon, 23 Jan 2017 13:17:22 -0500 (EST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 754E34096F for ; Mon, 23 Jan 2017 13:17:22 -0500 (EST) Content-Disposition: inline In-Reply-To: <1484909410-11673-1-git-send-email-sudeep.holla@arm.com> 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: Sudeep Holla Cc: Catalin Marinas , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Marc Zyngier List-Id: kvmarm@lists.cs.columbia.edu On Fri, Jan 20, 2017 at 10:50:09AM +0000, Sudeep Holla wrote: > We already have various macros related to cache type and bitfields in > CLIDR system register. We can replace some of the hardcoded values > here using those existing macros. > > This patch reuses those existing cache type/info related macros and > replaces the hardcorded values. It also removes some of the comments > that become trivial with the macro names. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Christoffer Dall > Cc: Marc Zyngier > Signed-off-by: Sudeep Holla > --- > arch/arm64/include/asm/cachetype.h | 7 +++++++ > arch/arm64/kernel/cacheinfo.c | 7 ------- > arch/arm64/kvm/sys_regs.c | 27 +++++++++++++-------------- > 3 files changed, 20 insertions(+), 21 deletions(-) I assume both of these will go via kvm-arm. Will From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Mon, 23 Jan 2017 18:17:28 +0000 Subject: [PATCH 1/2] arm64: kvm: reuse existing cache type/info related macros In-Reply-To: <1484909410-11673-1-git-send-email-sudeep.holla@arm.com> References: <1484909410-11673-1-git-send-email-sudeep.holla@arm.com> Message-ID: <20170123181727.GJ28914@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Jan 20, 2017 at 10:50:09AM +0000, Sudeep Holla wrote: > We already have various macros related to cache type and bitfields in > CLIDR system register. We can replace some of the hardcoded values > here using those existing macros. > > This patch reuses those existing cache type/info related macros and > replaces the hardcorded values. It also removes some of the comments > that become trivial with the macro names. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Christoffer Dall > Cc: Marc Zyngier > Signed-off-by: Sudeep Holla > --- > arch/arm64/include/asm/cachetype.h | 7 +++++++ > arch/arm64/kernel/cacheinfo.c | 7 ------- > arch/arm64/kvm/sys_regs.c | 27 +++++++++++++-------------- > 3 files changed, 20 insertions(+), 21 deletions(-) I assume both of these will go via kvm-arm. Will