Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp515109pxb; Thu, 21 Apr 2022 04:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYZUZZQsF/iwq8Ol5FcOE9qiNlyy2r+HRI5u2KophxED0g9DtEFPXDA+ks3lDI9aC5wUed X-Received: by 2002:a17:902:9b94:b0:156:2c08:14a5 with SMTP id y20-20020a1709029b9400b001562c0814a5mr25128561plp.60.1650541918321; Thu, 21 Apr 2022 04:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650541918; cv=none; d=google.com; s=arc-20160816; b=dVjjEkqt9Azz1IjbG+3mEn4C2WnAl5yWLHT53mvWgO9uauw8jvG6SbocxV+B856EsZ PW6hnR7u7el5uYuYLGW0ra4Zr+AogWt46GbrYZNZqmuTyMQ+0BeSox61nDQck/TCzaPM tkAlttsjtVDfJv+CwbnG8rgl6XVAoBxLAokBJI+gVkbR+32d+/3eDaJ1etYkINyL9t8q 12M5NzYxXVT7Fi93i1vuEWBtw6FTi/9Y5LN2GlyqCTZVPbr2QZ6Hfqqxx/a91U8++4i5 FAo+ffbI8MpgxgsnMyuYEXiCuR5ueqG+2otmDoCq3/KALZGd7e3jOp24LQcVkSKdEutD cPOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xSVtxqfp4JLpW3WWMuvDsq9oB3gov9dYbIhWlNNxBEo=; b=LTO71hU7UscEfSI7XTXl8Ls9an2AxOgx2P4mYdGsslunVfUof+/za4xow4EN4dYaln BtkNWsYnOpx+96leWUpy4ArcIQ0/kFZBFk79e4Z1k0oA/YnxuspIhCraRmR9ODmTZcyC oi6lK9yYQbcCCXIy9+zryAediU7yTAB1STHPyDcsMqhybpfV3tlRYvjKXz0aZHYVDRVR +YHsEri7oco20poYgtyZXrh4M+A/u25N1OZe7XKteAePfR3jIuHlUBhRio1uTB1qa9cu WrrgKTf4eeUmKq4owqn47sbKDZPlBK4+pguYT9tZp14x3VkNE+SFhcXbYvL624UzOgP3 pOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fGaX0bEO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a1709027d9100b0015850348feasi4818403plm.212.2022.04.21.04.51.44; Thu, 21 Apr 2022 04:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fGaX0bEO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346604AbiDTOT3 (ORCPT + 99 others); Wed, 20 Apr 2022 10:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380138AbiDTOSi (ORCPT ); Wed, 20 Apr 2022 10:18:38 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F0BB443C7; Wed, 20 Apr 2022 07:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650464005; x=1682000005; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=xSVtxqfp4JLpW3WWMuvDsq9oB3gov9dYbIhWlNNxBEo=; b=fGaX0bEOO3yLXFTRbq+fdgafIeGDFeJSRJ9m20mLf12anuDBZWeoG+og QfEEp6aSbz2pKHDakxjmBfzwFh0s/avH/K+alifaEr0LCaeNlHyxOctpG tIY8TBua3yeqAxX1pkTfuuQ9zVPinzSU+BoajTVh3oPALYm40g8WX2iOr k=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Apr 2022 07:13:25 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 07:13:24 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Apr 2022 07:13:24 -0700 Received: from [10.226.58.18] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Apr 2022 07:13:23 -0700 Message-ID: <2100eed4-8081-6070-beaf-7c6ba65ad9be@quicinc.com> Date: Wed, 20 Apr 2022 08:13:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2] PCI: hv: Fix multi-MSI to allow more than one MSI vector Content-Language: en-US To: , , , , , , , , , CC: , , , References: <1649856981-14649-1-git-send-email-quic_jhugo@quicinc.com> From: Jeffrey Hugo In-Reply-To: <1649856981-14649-1-git-send-email-quic_jhugo@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 4/13/2022 7:36 AM, Jeffrey Hugo wrote: > If the allocation of multiple MSI vectors for multi-MSI fails in the core > PCI framework, the framework will retry the allocation as a single MSI > vector, assuming that meets the min_vecs specified by the requesting > driver. > > Hyper-V advertises that multi-MSI is supported, but reuses the VECTOR > domain to implement that for x86. The VECTOR domain does not support > multi-MSI, so the alloc will always fail and fallback to a single MSI > allocation. > > In short, Hyper-V advertises a capability it does not implement. > > Hyper-V can support multi-MSI because it coordinates with the hypervisor > to map the MSIs in the IOMMU's interrupt remapper, which is something the > VECTOR domain does not have. Therefore the fix is simple - copy what the > x86 IOMMU drivers (AMD/Intel-IR) do by removing > X86_IRQ_ALLOC_CONTIGUOUS_VECTORS after calling the VECTOR domain's > pci_msi_prepare(). > > Fixes: 4daace0d8ce8 ("PCI: hv: Add paravirtual PCI front-end for Microsoft Hyper-V VMs") > Signed-off-by: Jeffrey Hugo > Reviewed-by: Dexuan Cui > --- Ping? I don't see this in -next, nor have I seen any replies. It is possible I have missed some kind of update, but currently I'm wondering if this change is progressing or not. If there is some kind of process used in this area, I'm not familiar with it, so I would appreciate an introduction. Thanks -Jeff