From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 C2C45C2D0B1 for ; Thu, 6 Feb 2020 14:35:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96ADF217BA for ; Thu, 6 Feb 2020 14:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbgBFOfP (ORCPT ); Thu, 6 Feb 2020 09:35:15 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10163 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726765AbgBFOfP (ORCPT ); Thu, 6 Feb 2020 09:35:15 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D4F307895B7640D4A8E2; Thu, 6 Feb 2020 22:35:08 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Thu, 6 Feb 2020 22:35:02 +0800 Subject: Re: [kvm-unit-tests PATCH v3 04/14] arm/arm64: gicv3: Add some re-distributor defines To: Eric Auger , , , , , , CC: , , , , References: <20200128103459.19413-1-eric.auger@redhat.com> <20200128103459.19413-5-eric.auger@redhat.com> From: Zenghui Yu Message-ID: <22a3b0f5-febd-f9e0-4404-7b01643e57b1@huawei.com> Date: Thu, 6 Feb 2020 22:35:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <20200128103459.19413-5-eric.auger@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.173.222.27] X-CFilter-Loop: Reflected Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi Eric, On 2020/1/28 18:34, Eric Auger wrote: > PROPBASER, PENDBASE and GICR_CTRL will be used for LPI management. > > Signed-off-by: Eric Auger > --- > lib/arm/asm/gic-v3.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/arm/asm/gic-v3.h b/lib/arm/asm/gic-v3.h > index 6beeab6..ffb2e26 100644 > --- a/lib/arm/asm/gic-v3.h > +++ b/lib/arm/asm/gic-v3.h > @@ -18,6 +18,7 @@ > * We expect to be run in Non-secure mode, thus we define the > * group1 enable bits with respect to that view. > */ > +#define GICD_CTLR 0x0000 > #define GICD_CTLR_RWP (1U << 31) > #define GICD_CTLR_ARE_NS (1U << 4) > #define GICD_CTLR_ENABLE_G1A (1U << 1) > @@ -36,6 +37,11 @@ > #define GICR_ICENABLER0 GICD_ICENABLER > #define GICR_IPRIORITYR0 GICD_IPRIORITYR > > +#define GICR_PROPBASER 0x0070 > +#define GICR_PENDBASER 0x0078 nit: we'd better use tab instead of space. Reviewed-by: Zenghui Yu > +#define GICR_CTLR GICD_CTLR > +#define GICR_CTLR_ENABLE_LPIS (1UL << 0) > + > #define ICC_SGI1R_AFFINITY_1_SHIFT 16 > #define ICC_SGI1R_AFFINITY_2_SHIFT 32 > #define ICC_SGI1R_AFFINITY_3_SHIFT 48 >