Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp854171ybx; Thu, 31 Oct 2019 01:51:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWmEFRL/9c387BTkn7TxUf+ryF459RGyoSuIVui7iMRL441XkbMOjtoyBSBq3ZfkUjtBs1 X-Received: by 2002:a17:906:31d4:: with SMTP id f20mr2636591ejf.265.1572511863304; Thu, 31 Oct 2019 01:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572511863; cv=none; d=google.com; s=arc-20160816; b=MvRc+MfnL3AWKIvUKUkYgYL2UyApZGDLHJ+Ofb1TFjSOZjdk6Q2XPZGq77FGYLsVnF r3wLVh7yayJs6DsUSj4RJlxyESmfC8BmfqXmY5hsuoqCPiPs8s+xMj/acC6L0IwAnTps joSxEW7j9pLw8erxSUvS6nvw7at6/v9k/x8R0gj5poy90EwzRy0BHJhkI9AhzA8AzENj wXxszSjtapYQUarTJNNzWVR3XA+ITYwtqcx2gGZYbXXAGsNGtxte5L5gEXQlJkKieyf1 h8N7Kpf/ehL+qhKBkKGwbL7uxNBKadRe2o7gO96O6WIdOWnKETBp1TkPPghat++YduJR vy3w== 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=c7tK0ERYcpQ14a/sxIDstNBMp0TcUSHs3HTA5hVvxhw=; b=iPa0yg30xTnPqSbBihJil7iGmjFnNLL22p/1MSW15ACbgq6gZuIqBm+umev7S4Ih9N Hgn051QJO3usA2DVL98rCmjIaIC1UQY9cdCyy+PVbpeeXqAZgclHiFac8mJmc9WEXRWS MaFmjHXdosu27m+Y9rmk3VEWrZuJEgyyTcV38dJU9lNqWc3iq0y7OOpnMTXe105/8JV9 o+6Htr8yQppK3L7FOTwxNkO4fZEs0Io+LKvj74l4RSDuQ9D/jQIlFnrDSP2/eWQGOvTu nLpZTuZhfyaRjRsuSzgGkxLBy4RWK817+i5LaEW9t62T05XmqEqmHbDAlRoOV60zThWm GGmA== 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 f6si3723565edl.442.2019.10.31.01.50.37; Thu, 31 Oct 2019 01:51:03 -0700 (PDT) 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 S1727034AbfJaItt (ORCPT + 99 others); Thu, 31 Oct 2019 04:49:49 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33418 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726874AbfJaIts (ORCPT ); Thu, 31 Oct 2019 04:49:48 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9CED2566D52269F09AA3; Thu, 31 Oct 2019 16:49:45 +0800 (CST) Received: from [127.0.0.1] (10.173.222.27) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Thu, 31 Oct 2019 16:49:34 +0800 Subject: Re: [PATCH v2 03/36] irqchip/gic-v3-its: Allow LPI invalidation via the DirectLPI interface To: Marc Zyngier , , CC: Eric Auger , James Morse , Julien Thierry , Suzuki K Poulose , Thomas Gleixner , Jason Cooper , Lorenzo Pieralisi , "Andrew Murray" , Jayachandran C , "Robert Richter" References: <20191027144234.8395-1-maz@kernel.org> <20191027144234.8395-4-maz@kernel.org> From: Zenghui Yu Message-ID: Date: Thu, 31 Oct 2019 16:49:32 +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: <20191027144234.8395-4-maz@kernel.org> 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 2019/10/27 22:42, Marc Zyngier wrote: > We currently don't make much use of the DirectLPI feature, and it would > be beneficial to do this more, if only because it becomes a mandatory > feature for GICv4.1. > > Signed-off-by: Marc Zyngier I have no objection to this patch, which says: Reviewed-by: Zenghui Yu But this patch really drives me to look through all callsites of dev_event_to_col(), the abstraction which can be used _only_ with physical LPI mappings. I find that when building the INV command, we use dev_event_to_col() to find the "sync_obj" and then pass it to the following SYNC command. But the "INV+SYNC" will be performed both on physical LPI and *VLPI* (lpi_update_config/its_send_inv). So I have two questions about the way we sending INV on VLPI: 1) Which "sync" command should be followed? SYNC or VSYNC? (we currently use SYNC, while the spec says, SYNC "ensures all outstanding ITS operations associated with *physical* interrupts for the Redistributor are globally observed ...") 2) The "sync_obj" we are currently using seems to be wrong. Thanks, Zenghui