Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp306481pxm; Wed, 2 Mar 2022 15:58:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJq8BhwtYoSyxILkJ91i3PkZ2AKDsDWSLQhb7xLIp+apjwNv2nurLFXTLfN1JbB+cYiBG9 X-Received: by 2002:a63:6201:0:b0:372:d3d1:a684 with SMTP id w1-20020a636201000000b00372d3d1a684mr27861769pgb.523.1646265534029; Wed, 02 Mar 2022 15:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646265534; cv=none; d=google.com; s=arc-20160816; b=WaV7VN906erjVhc7y4BNvGZFSidjTLh3dOkIPhIjNukEcFci1f/lkK9G97g5ELHi2f /e9ZtM9QgMfhWtIfmdyw3Jq1Vd2NdL1pC3/BYj8JZ3CJ6xwehcEUh1sSWCDemhZh2x76 5D70i7vKUBWg/cKKYmqRFyWARDFUHrEuoBnTBntt3pRf4ef6RJs1ABmUD8EB65dX6PIx fg7rnB2sLrdeBdxSygHG3n9sRVItEmiVlpHYLumUJFblT9oIf9OIZkLCE9QbdY4esbeR VDbBEDv+ZvTwJtoWsAjN+g9yL155a+QvGgwb+hv/nHpfQRyPh+FSPyRrxgIfc/EyPD+1 7nqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=b9wriwfB69h3F5qqzuyO+09pA+L9D4LdOApqwZx+qYQ=; b=s7IpkSyH9g0nzMINurL4Cpdo7HRQGMpKizaPXygrXMHNYNc6ZRVhpRB3hpdOd6ACXm LUMyyv6K2FnC62b3e11zBxysAlBp+gMACUj9nZ3CVmDt5ynRmzX4LrcsGarPuEVXeHOs MamoxvnCydkwF4KXd49YM0GKnY6qu82PIGNZg3KFgrtfE/ZQcadHIRQ6uM4X+xl57oI9 xZuu2SwbOOf3yqsOEXxJvgGuVvpgF7MmWitznGNEHTpFyw1fI2aGsj7nb1L+CSHuymek cGaPNweW3JVpPCZEyT8/tgwV+YXyeeDBm5SYSXQ0Sddy8fYC9WrRqm6F+Nxo0mDs8Oly K1wA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m1-20020a17090ade0100b001bed9d3aa90si6835003pjv.19.2022.03.02.15.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:58:54 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F23B0197B58; Wed, 2 Mar 2022 15:18:32 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240694AbiCBJvT (ORCPT + 99 others); Wed, 2 Mar 2022 04:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240699AbiCBJvO (ORCPT ); Wed, 2 Mar 2022 04:51:14 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67ED8BA75B; Wed, 2 Mar 2022 01:50:31 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 08E4B1042; Wed, 2 Mar 2022 01:50:31 -0800 (PST) Received: from lpieralisi (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 732AB3F66F; Wed, 2 Mar 2022 01:50:28 -0800 (PST) Date: Wed, 2 Mar 2022 09:50:21 +0000 From: Lorenzo Pieralisi To: Boqun Feng Cc: Wei Liu , "Michael Kelley (LINUX)" , Sunil Muthuswamy , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Dexuan Cui , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v2] PCI: hv: Avoid the retarget interrupt hypercall in irq_unmask() on ARM64 Message-ID: References: <20220217034525.1687678-1-boqun.feng@gmail.com> <20220221175600.gxbphsnbytgytcpz@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 02, 2022 at 11:13:05AM +0800, Boqun Feng wrote: > On Mon, Feb 21, 2022 at 05:56:00PM +0000, Wei Liu wrote: > > On Thu, Feb 17, 2022 at 04:31:06PM +0000, Michael Kelley (LINUX) wrote: > > > From: Boqun Feng Sent: Wednesday, February 16, 2022 7:45 PM > > > > > > > > On ARM64 Hyper-V guests, SPIs are used for the interrupts of virtual PCI > > > > devices, and SPIs can be managed directly via GICD registers. Therefore > > > > the retarget interrupt hypercall is not needed on ARM64. > > > > > > > > An arch-specific interface hv_arch_irq_unmask() is introduced to handle > > > > the architecture level differences on this. For x86, the behavior > > > > remains unchanged, while for ARM64 no hypercall is invoked when > > > > unmasking an irq for virtual PCI devices. > > > > > > > > Signed-off-by: Boqun Feng > > > > --- > > > > v1 -> v2: > > > > > > > > * Introduce arch-specific interface hv_arch_irq_unmask() as > > > > suggested by Bjorn > > > > > > > > drivers/pci/controller/pci-hyperv.c | 233 +++++++++++++++------------- > > > > 1 file changed, 122 insertions(+), 111 deletions(-) > > > > > > Reviewed-by: Michael Kelley > > > > I expect this to go through the PCI tree. Let me know if I should pick > > this up. > > > > I also expect the same. > > Lorenzo, let me know if there is more work needed for this patch. > Thanks! It is tagged as an RFC that's why I have not considered it for v5.18, I will have a look shortly. Thanks, Lorenzo