Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D660FC4360F for ; Wed, 3 Apr 2019 13:46:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A2F3320651 for ; Wed, 3 Apr 2019 13:46:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eAalnhX9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A2F3320651 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9ljWVm3HKplb1t/GUKwreUfdM3Lo4xtp4UkqpHGBCOc=; b=eAalnhX9U6lKq3W/LTvRvO0H0 XiCranbE0mP4xtUrHOujkaUFpdhCQNEOWIuFd49q33A7OHxM3cmEjkzXrWp00p8a0bAm6JaznjU6p 2fRk8+/rNqMnFk71LTXHNTp/sxNVnw3j0QhZ1UXMbFjtrdlQK8bqi/C8uFM1CqruWAQ+LA5U2Y6+F l3sUFU6RhnpU5fCPnhiRyxXEwjx5DJEzTOqKq4CdSWYGj/i1R+8mUdb6Ne5rXg0KB3Ay6CqWRVqid 9dZjKIv+GeHxR4tlG7qbrXCICANQKlUIBoT4gALgxn9ri7cVeHXMCRIVFUgQK7Ejmlyru+hSbsbqc OewR/q+Bg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBgDj-000680-Gr; Wed, 03 Apr 2019 13:46:27 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBgDh-00067g-5C for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 13:46:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9CF49A78; Wed, 3 Apr 2019 06:46:24 -0700 (PDT) Received: from [10.37.12.20] (unknown [10.37.12.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4D5C33F59C; Wed, 3 Apr 2019 06:46:22 -0700 (PDT) Subject: Re: [PATCH v4 6/6] arm64: Advertise ARM64_HAS_DCPODP cpu feature To: andrew.murray@arm.com, catalin.marinas@arm.com, will.deacon@arm.com References: <20190403105628.39798-1-andrew.murray@arm.com> <20190403105628.39798-7-andrew.murray@arm.com> From: Suzuki K Poulose Message-ID: <969f4512-1356-39d2-69c8-94054efc2fd1@arm.com> Date: Wed, 3 Apr 2019 14:48:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20190403105628.39798-7-andrew.murray@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190403_064625_197851_EA1B9346 X-CRM114-Status: GOOD ( 20.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, libc-alpha@sourceware.org, Szabolcs.Nagy@arm.com, linux-api@vger.kernel.org, pb@pbcl.net, dave.martin@arm.com, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 04/03/2019 11:56 AM, Andrew Murray wrote: > Advertise ARM64_HAS_DCPODP when both DC CVAP and DC CVADP are supported. > > Even though we don't use this feature now, we provide it for consistency > with DCPOP and anticipate it being used in the future. > > Signed-off-by: Andrew Murray > --- > arch/arm64/include/asm/cpucaps.h | 3 ++- > arch/arm64/kernel/cpufeature.c | 9 +++++++++ > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/cpucaps.h b/arch/arm64/include/asm/cpucaps.h > index f6a76e43f39e..defdc67d9ab4 100644 > --- a/arch/arm64/include/asm/cpucaps.h > +++ b/arch/arm64/include/asm/cpucaps.h > @@ -61,7 +61,8 @@ > #define ARM64_HAS_GENERIC_AUTH_ARCH 40 > #define ARM64_HAS_GENERIC_AUTH_IMP_DEF 41 > #define ARM64_HAS_IRQ_PRIO_MASKING 42 > +#define ARM64_HAS_DCPODP 43 > > -#define ARM64_NCAPS 43 > +#define ARM64_NCAPS 44 > > #endif /* __ASM_CPUCAPS_H */ > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index f8b682a3a9f4..4ee5d63281ae 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1340,6 +1340,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = { > .field_pos = ID_AA64ISAR1_DPB_SHIFT, > .min_field_value = 1, > }, > + { > + .desc = "Data cache clean to Point of Deep Persistence", > + .capability = ARM64_HAS_DCPODP, > + .type = ARM64_CPUCAP_SYSTEM_FEATURE, > + .matches = has_cpuid_feature, > + .sys_reg = SYS_ID_AA64ISAR1_EL1, > + .field_pos = ID_AA64ISAR1_DPB_SHIFT, > + .min_field_value = 2, Missing .sign field. Otherwise: Reviewed-by: Suzuki K Poulose _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel