Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp197515ybv; Wed, 19 Feb 2020 19:26:08 -0800 (PST) X-Google-Smtp-Source: APXvYqz8+usNR2xkGcCHYqEjfp6XORPnHIjq4YjnZWgpo3B5+oudtbZPlGegTODphU7vu6hIalLC X-Received: by 2002:aca:eccd:: with SMTP id k196mr598330oih.95.1582169168748; Wed, 19 Feb 2020 19:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582169168; cv=none; d=google.com; s=arc-20160816; b=XcgNhvRZcpMS/ZFlCR171KbdWj+Z+JvVqbBP7584Wl4/cJ1qJ4fTIR3FV8NVjAOP2x QYnZf17wJM1kwDio3h5mPOwtx4QBOSkpHKLYQnS8/3C0PT5BaOcFgFbBe/OB5cp6/BS5 3NWS3Z2WQ+dT3pFaSddmq88ddLehL8FY51gejA984Bl0Xv3ibguzNACLfOp88/FleUxW 9O8GRw8Ax2dPXFTJKuSvU7AyDeT/jWul4UC1uapAFwXzwotfuCg03oYfe0UvJVAJA5xd 1v1Qu5rjeUzqVdVehrHrzhTuo8h7IFqUpp8CTVmyZBj/04LpOLzuLaxMwtXeGR7pNRCb PUyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=D/+kLrKQAYq2dQGZ1fq9YHhqWTs76rmGAC16ZvkJn4g=; b=scni1VtKJV7r6L0fy5o0q7l0OwT4QEFo4vKnp5Xm6lu4s3kRVS+lC/xNqKdzcVLh6L a/bwYYOFKFerjMtmmn8JJZRg6UXlYB/AQaIlzKuhKPqLa2Uyvf2O9I7crs9NwCQ6v2N5 XA46BGBY1ErCvBJpDKPx+gzirmgjHl3GF5z9RnrHaN1sISR1TWy41skCTV08lLavLlgp Zc0xAisq6UDGHLL3mJCIGnNPt0/RL9dSTNwWhtMakmTWhK6/Fb/slAylXYBNBO86y0JJ 2fPFyquggZuY2SqdC+eP2Zzbt+GLokxWcfyzGAuBD5ll7Aip2zdg1dPXCtC3IpueG4F8 DG6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x138si1955696oif.142.2020.02.19.19.25.56; Wed, 19 Feb 2020 19:26:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727747AbgBTDZx (ORCPT + 99 others); Wed, 19 Feb 2020 22:25:53 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:34362 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727208AbgBTDZw (ORCPT ); Wed, 19 Feb 2020 22:25:52 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 51068A1533B41914DC60; Thu, 20 Feb 2020 11:25:49 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Thu, 20 Feb 2020 11:25:43 +0800 Subject: Re: [PATCH v4 06/20] irqchip/gic-v4.1: Add initial SGI configuration To: Marc Zyngier CC: , , , , Lorenzo Pieralisi , Jason Cooper , "Robert Richter" , Thomas Gleixner , "Eric Auger" , James Morse , "Julien Thierry" , Suzuki K Poulose References: <20200214145736.18550-1-maz@kernel.org> <20200214145736.18550-7-maz@kernel.org> <4a64bf17c015cb10e62d9c1a1ff64db5@kernel.org> From: Zenghui Yu Message-ID: <5d511c78-2339-2aea-8bfc-e13ed464af11@huawei.com> Date: Thu, 20 Feb 2020 11:25:41 +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: <4a64bf17c015cb10e62d9c1a1ff64db5@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.222.27] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 2020/2/18 17:46, Marc Zyngier wrote: > Hi Zenghui, > > On 2020-02-18 07:25, Zenghui Yu wrote: >> Hi Marc, > > [...] > >>>     static void its_sgi_irq_domain_deactivate(struct irq_domain *domain, >>>                         struct irq_data *d) >>>   { >>> -    /* Nothing to do */ >>> +    struct its_vpe *vpe = irq_data_get_irq_chip_data(d); >>> + >>> +    vpe->sgi_config[d->hwirq].enabled = false; >>> +    its_configure_sgi(d, true); >> >> The spec says, when C==1, VSGI clears the pending state of the vSGI, >> leaving the configuration unchanged.  So should we first clear the >> pending state and then disable vSGI (let E==0)? > > Right you are again. We need two commands, not just one (the pseudocode is > pretty explicit). With that change, Reviewed-by: Zenghui Yu Thanks