Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1864330rwb; Fri, 19 Aug 2022 10:39:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ikq9VqnW6NDqUSzH/OtevLDcmE1S0EpvwYkhkTQQz252UFqfSupXRsGsw34ZHD7dQ1GLZ X-Received: by 2002:a63:fd0b:0:b0:415:f76b:a2cd with SMTP id d11-20020a63fd0b000000b00415f76ba2cdmr7032450pgh.440.1660930760835; Fri, 19 Aug 2022 10:39:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660930760; cv=pass; d=google.com; s=arc-20160816; b=ANekoKcV07gVUmO4PDJTZ7sQyAiLWg9/8FxJQ0J/TMZrioxbzSYlt/NAcx84eIu6I4 f8jVFGJoQqHSLwcKz+4HM5LzMHFKlSHd/lJ0OdnmSStK0n3f/5GsWrM99nL8L/1Bvvlq 9WhQbjCkM/p82yx9ijMaCMLmig6e49IDho26iup/GrGh6BCv9faiZJfq2Z9PPtvwHkwR sNPFz5kgXr7Vi0eMsvfEu+6y8Pxjjlj5WGawMsmRiQNhvLA8xMMTyy7qV3H/KV+Zxrb2 zstNQ4vIqid2L3l5yGSvyRg+4DbDrWzt5gJ0p1fjtUPbfWAyQ7EDcKbEP3vWELCrczla ohtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=BDqDoWPO1MpfxAy2lBH9OHYVOxqrLdz1H1D4uBAzFdo=; b=SYwoidsbuX6GdFKvIzo4CPz/hiTiDZ+VvoqQOjOqsl3fITtrAihoJJCuwfGFhmXZ10 s14dsAVLaBbn6Omx8X6MD0t2+C6Y9lxeDY8agKGCFquWz3ucokH8kdQNPYIOkKCfl+WS 1hkzyF5+nv1ugTir4wf8pxkh8v+LkeLRa19fTZUXNb5cLlvD3LhcoelCrs259UZtESd+ poS+zdMCquiHbJdGn9Lb+SP1aseu62KAcyOHVNhxl7sBGwOXwtzc1lX5mKMwPLOar5iV zaysclp+QFqI+Fr/7U+GVqsoCBP0nJJHXniB15bPo8wYbSgimWMO0lgmzzIH0cuOol9V 8n0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=AtSbLNJi; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a056a000a8200b0052f7fb6f2desi5154154pfl.154.2022.08.19.10.39.09; Fri, 19 Aug 2022 10:39:20 -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=@microsoft.com header.s=selector2 header.b=AtSbLNJi; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351897AbiHSQN4 (ORCPT + 99 others); Fri, 19 Aug 2022 12:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351868AbiHSQMs (ORCPT ); Fri, 19 Aug 2022 12:12:48 -0400 Received: from na01-obe.outbound.protection.outlook.com (mail-centralusazon11021015.outbound.protection.outlook.com [52.101.62.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB057113DF4; Fri, 19 Aug 2022 08:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bguwWRzJOQy9trFWoJTIgVDGNhHIprvfgT3lLCMgsDATZMox6hAb0xW/GUQOkCCfGmTcxA1T0lYIyQNL7a6SXUNB6WVtxPjWxYFXZWoAIus/xvc/KIRoob5A27Y/uCE2XZncsODUUZF+sfluLVRbpfnOyZ191cyqk63pOjdaD8e8gxx2wRkyjPvdHniZ6KvJseVOVmLpKaKnWZfQet7dyAxPNDhBR8xzodtApOL0/mUoqh75bCNzOPJqvgW1TaiftmEShYclplpRqqb0McR3bQsJkuweXvbadMtcfMfSGmekcTkHE2IjVEL6kGXsb7Cy9bC0j4n15mqKD9RSvK9fBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BDqDoWPO1MpfxAy2lBH9OHYVOxqrLdz1H1D4uBAzFdo=; b=Mooj8LNjcEWieJjZJCscM516ntro6MPV0gLetcZMHkMow13Uf2lwkEugLh3Q5+ZkKPGC7xDaYaU1jABIvWzAmJWCgxTs9TE08zS2MQB43tzWSfU8LgaXPFa/oPo6IqI0ijwNHamzg7fuKEPyzPOk1SEjL1OcNWoyw+ZWrE3/0RCNGSev70FIzQNR2EsH1Ynb0iuePROo/Ai1DUfzk1QL1Ml6x3rJbYL1jWpeoLyQFkk1BBy90zg15UMAueeZWs97PYEKAmcZu9qHTzqi5xKWQrW5psJfg0QGZ66jF+4RJkck03PY6k3MyCL1R6Isu8rCq8aXUiobL9GSpV+fMsEXFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BDqDoWPO1MpfxAy2lBH9OHYVOxqrLdz1H1D4uBAzFdo=; b=AtSbLNJiFEvVaFjGgeRHfZUvV3m7EzxSRv/iu+jqgZWtXgZjPN+qnIcWKpGCqgZGjPNkdHXgYxBBHnSf9NkH25A/xHuWam5NBjGAMZdyczsIFRT8ZqpMJL+X9a0UGWVXwlnquS7WP4tZ6Ft7BWyEeH62elp/B92rBJJUkB/t1AM= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by LV2PR21MB3182.namprd21.prod.outlook.com (2603:10b6:408:174::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.4; Fri, 19 Aug 2022 15:57:20 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::a4e2:7dce:4d6b:c208]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::a4e2:7dce:4d6b:c208%5]) with mapi id 15.20.5566.010; Fri, 19 Aug 2022 15:57:20 +0000 From: Dexuan Cui To: Wei Liu , Bjorn Helgaas CC: "quic_jhugo@quicinc.com" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "lpieralisi@kernel.org" , "bhelgaas@google.com" , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Michael Kelley (LINUX)" , "robh@kernel.org" , "kw@linux.com" , "alex.williamson@redhat.com" , "boqun.feng@gmail.com" , Boqun Feng , Carl Vanderlip Subject: RE: [PATCH] PCI: hv: Fix the definiton of vector in hv_compose_msi_msg() Thread-Topic: [PATCH] PCI: hv: Fix the definiton of vector in hv_compose_msi_msg() Thread-Index: AQHYs+O32fMcX0s9O0OiWaZVRKUYJK22YCXQ Date: Fri, 19 Aug 2022 15:57:19 +0000 Message-ID: References: <20220815185505.7626-1-decui@microsoft.com> <20220815203545.GA1971949@bhelgaas> <20220819155242.w32vcwobt4ucvpyv@liuwe-devbox-debian-v2> In-Reply-To: <20220819155242.w32vcwobt4ucvpyv@liuwe-devbox-debian-v2> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=1d909c2e-094d-4e13-9864-4399743e83c6;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-08-19T15:54:28Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c2eccdc-6291-43a5-1c0b-08da81fb7f65 x-ms-traffictypediagnostic: LV2PR21MB3182:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RYgUwgmohPiI5es+TuqZ27kxy/0tQucUEdLYcUPbwZjWuH6vnXGDez12EG9ZqEmJJ/zEuDiDEm0jJHkcbMznJf1v6ZsKwYFNQ2LAEJjQyJ3O0QdtF2TbagUlvuSfuICyr1Dx1cXN4QdtxHX0FvhqcAg66OeL1fOFMj577CxDoqOdfCo356zUbNhE2lf4xmExFqHG5fCjpvERJqq64hbit1zgdkd4LUgUL7djZTfzG38UO0PUSdvh+DOtHNTxmkJwL4ep4plIOJAZH74g4eYMjVG+tSD3WusYJtE5GAB5ChSIoE9EU3jfJEmZBxjIjdBSj5TmDpJ5m7yhDCXIWe2qDXjL2C8neNevHP2Dhv6f+L1VaBRLDkQZcx9M3VkQ6FCKY/GF7JNjRh3KqXHEd5vCarm0uzxoHOfyY0ABxPSOFmWLcQbau+OaFTtGa7FDtpZc/y5BpiXC+NC604TiW/536Rh2H0XTHRhcRUX75i1egcda8SsKKlG14BvnFtnsH3cx4Mv6s8sIt7cJb1qjW2upu5tbXvCNDcQwmsPcxLtsb8d6gsq9C81mEpWOkQvGD+4haTwTHSYdUeUBGDKTmzhNRtgT5xV2/7HvWs4ES8/sRCk7zSitX7/0sD3e2L6kUW2h8MO4UrJ4WPueZ5+CibaeNEsSC2wdhnGJu+5CQXlRGbo5IVcOYsoBASn2gyOFfqYfOUjrm5RnHsAtP/Z5kZGZN6b+PoHiAEYZZatjb3EAEgBFvZaRajzueXm/EJ/zboqf x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(396003)(39860400002)(366004)(136003)(376002)(451199009)(38070700005)(38100700002)(86362001)(10290500003)(82960400001)(82950400001)(64756008)(316002)(122000001)(55016003)(8676002)(66946007)(110136005)(66446008)(66556008)(54906003)(76116006)(66476007)(4326008)(2906002)(8990500004)(52536014)(9686003)(8936002)(7416002)(5660300002)(33656002)(7696005)(83380400001)(6506007)(186003)(53546011)(966005)(26005)(71200400001)(41300700001)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+TdtH9GSTyvZijh6RLRiz8XPnvqkIjRGOOWU5rbka2rhsgDA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qj78IusBDP0tvVbM/cy2vHN8wLMHC35l6TuFdcfkITfrv?= =?us-ascii?Q?aAQyleiPs8+dSiqDBK71niZa6UWI9Vm1ZqWGn3X36IXamgfLnbNT3ib7piL5?= =?us-ascii?Q?nFPHdCk3kmEbqL6rmL/zhDhNVRnEFdoG0IEvXYq2NiBGBj8/Jr2B8NqSSM2B?= =?us-ascii?Q?aqxrwTbybaf6RgHIIFfLwDXC/OO+HPVzwvFMwR+PgWxZQUPnbfjbBIKlj2fg?= =?us-ascii?Q?HCj+RW2pbM9J870ZOB9VX5I1AmlUPkos6SemIKgpKOCyVRTxl6DP22/rdIS0?= =?us-ascii?Q?Jyz+mCsL/8xoJg0hHTgF4kGFabUQwQdrYcBYi4EvMAPa5bd94l//jy0r1r1C?= =?us-ascii?Q?00OD2aoe8zk/7tLl67PISqG0AwQdLuSGbVXotVUcHE/z5GRUIg1pCKwCQyE9?= =?us-ascii?Q?ABxR3z/Qh98ZWtsdBQ//nn5v2uUWqeeNORfvXr8tIjRoiR3iZ5DPaQiyObM6?= =?us-ascii?Q?hvZe7JJTcP9sbQTyg5YrhQyRILztbh8TIOeQmtDSPrEw1sr7fkpI12gui64r?= =?us-ascii?Q?ocUw3m/4mxh9eQEQjjKaHQsaKJ7YtQQ4tf6Lt2hvceqh8YVoGRxmudKD5mY1?= =?us-ascii?Q?t3Sv0HNIzSnNFcPzMh58zjM20OUcF3u9AbtqywMIgG15+M2RTt/bqMnpxt+p?= =?us-ascii?Q?vwaUlisBa1znY34LeZS+LA8YJ/mYgj/aZg5FFMfZ?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR21MB3182 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_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 > From: Wei Liu > Sent: Friday, August 19, 2022 8:53 AM > To: Bjorn Helgaas >=20 > On Mon, Aug 15, 2022 at 03:35:45PM -0500, Bjorn Helgaas wrote: > > s/definiton/definition/ in subject > > (only if you have other occasion to repost this) > > > > On Mon, Aug 15, 2022 at 11:55:05AM -0700, Dexuan Cui wrote: > > > The local variable 'vector' must be u32 rather than u8: see the > > > struct hv_msi_desc3. > > > > > > 'vector_count' should be u16 rather than u8: see struct hv_msi_desc, > > > hv_msi_desc2 and hv_msi_desc3. > > > > > > Fixes: a2bad844a67b ("PCI: hv: Fix interrupt mapping for multi-MSI") > > > Signed-off-by: Dexuan Cui > > > Cc: Jeffrey Hugo > > > Cc: Carl Vanderlip > > > > Looks like Wei has been applying most changes to pci-hyperv.c, so I > > assume the same will happen here. >=20 > I can take care of this one via hyperv-fixes, but ... Wei, please ignore this patch. I'll post v2 of this patch with v2 of the ot= her patch. > > > --- > > > > > > The patch should be appplied after the earlier patch: > > > [PATCH] PCI: hv: Only reuse existing IRTE allocation for Multi-MS= I > > > > https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flwn.n= e > t%2Fml%2Flinux-kernel%2F20220804025104.15673-1-decui%2540microsoft.co > m%2F&data=3D05%7C01%7Cdecui%40microsoft.com%7Cc8ab6638b7d747b > cddf008da81fadc12%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6 > 37965211688628404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD > AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C& > amp;sdata=3DRb2MfkSFmJ%2B8ze%2FllN0THBhODCtmnZ8oSMB0EOn20u4%3D& > amp;reserved=3D0 > > > >=20 > ... this patch looks to be rejected. Correct. I'm working on a new version. >=20 > Thanks, > Wei.