Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1185566rwb; Fri, 13 Jan 2023 08:58:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXs71kFkTej4np6QSHU3HSWH2DdQb8VcbzHK4NqYxZAVnRyGEl3l7dmQW5oLC/dBBlMZk9pW X-Received: by 2002:a05:6a20:3c91:b0:ad:5cde:8f05 with SMTP id b17-20020a056a203c9100b000ad5cde8f05mr121488719pzj.37.1673629089613; Fri, 13 Jan 2023 08:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673629089; cv=none; d=google.com; s=arc-20160816; b=b+oFLPtViF93Duql5Wh5qMa3BtJ3jFVdFHGLGkN/Jifd+nZNT2QxZhZ0Slz/WjGJQ7 DzEk6ul+6dXK3K4WTF2eznCB2dlGfp92aBTeBGngNz9xtdndyfWU93IgKhhUtagYV1X3 ZzyQ0vLCsVTK5kiTya6SgyFZ8id9ytJiASAJS5dqUauSilBdydcZ2DIBBVGhZVN0cMY2 VC/QqugZk2LUXEsDcUg9sJe4bR4K4+Bvg4NYAWcjJBMGltovVb4lRhBWG9MWNe5Aa6Vy TMzt3HQU2ubfAvOX2bf3fIDXXgbrjVAYC7qRgW6CjilMspYAce7C1wK+n5OqYYcPmMci jehQ== 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:dkim-signature; bh=vHXQFfg2bQfgZSSzSjBjUvWPhMlETam+vANhlxk2DhA=; b=qfLiir47WMR7gCZWWJ2x9YHx61xHnZuTn2aKQWDobZCCmceMNoPAQiTZ/MExh0e6Dw 2BHYiZA4JX/VLV+v7pnt6wr2YfbxtuUa/hcrKPYKVX+S67ENV7pj+Q3MfV1W18gW8Ugx 00oXzkZ6JkuCMmpyq26/Vuo4X7rTzrBKwvgZpdY4V3TxqBOKPZG1H+cUHp4McA+KnHaD +LXm1DjcJED2SQxIlHRaBWDoYrORI5y311+/ILfIuWLvPikoHK74BzXN0qVdERIjAW8N TcAreJgzsxzk6221NM6++8HLxUuhmILo4t3szQsJFTONzLBzsnpho2aOmG5XZ3nliXG7 /rFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PlOwfN0g; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a638441000000b0046f33e14597si14284447pgd.106.2023.01.13.08.58.03; Fri, 13 Jan 2023 08:58:09 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=PlOwfN0g; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbjAMQoC (ORCPT + 51 others); Fri, 13 Jan 2023 11:44:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbjAMQnM (ORCPT ); Fri, 13 Jan 2023 11:43:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7017363D2F; Fri, 13 Jan 2023 08:41:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 25453B82196; Fri, 13 Jan 2023 16:41:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62132C433F0; Fri, 13 Jan 2023 16:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673628094; bh=FJhtEiC6ULwl4PcnADQiRPvVSQkqYUWhzXd8dnEWZMg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PlOwfN0gWWBpHjQTjn31FGB3azBt7UnFzDAlSY9DBqUONBzTMvt+sDky8ccI9HKf4 +Ss19Db/75tOMdQXa+hx60haAPUSoO4xrNniDkQ9GAKtC3avI7hKkPLLZR+h+kRxm4 c75TCmgsHzTVajmNrcX7gKkZM4EntJ7o2tVtKI6eMbVo4a+OPwqF+ieWReiEyZfw2T HHKyEFcufkjQDl7Q4/ZIe9v6GpLTnBDNGfxs/cKEZe1Re+ySl54gHLUMIGm6EHksqi DxFEZbfPKkn5KEJ0U2QpMETlln/nPTw5zElSP3feOsvTz22UBHaP+YKd8m53RcKLPU DA2e4NwIdvqUg== Date: Fri, 13 Jan 2023 17:41:28 +0100 From: Lorenzo Pieralisi To: Sathyanarayanan Kuppuswamy Cc: "David E. Box" , nirmal.patel@linux.intel.com, jonathan.derrick@linux.dev, lorenzo.pieralisi@arm.com, hch@infradead.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, michael.a.bottini@intel.com, rafael@kernel.org, me@adhityamohan.in, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V9 2/4] PCI: vmd: Use PCI_VDEVICE in device list Message-ID: References: <20221208023942.491721-1-david.e.box@linux.intel.com> <20221208023942.491721-3-david.e.box@linux.intel.com> <4d0d03c0-2880-1b90-ea94-e36d581ca040@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4d0d03c0-2880-1b90-ea94-e36d581ca040@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 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 Wed, Dec 07, 2022 at 06:56:38PM -0800, Sathyanarayanan Kuppuswamy wrote: > > > On 12/7/22 6:39 PM, David E. Box wrote: > > Refactor the PCI ID list to use PCI_VDEVICE. > > Add some info about why it is done. I am waiting for the dust to settle on this series, it is pretty close to completion it seems, please let me know when you consider it ready. Lorenzo > > Signed-off-by: David E. Box > > Reviewed-by: Jon Derrick > > Reviewed-by: Nirmal Patel > > --- > > V9 - No change > > > > V8 - No change > > > > V7 - New Patch. Separate patch suggested by Lorenzo > > > > drivers/pci/controller/vmd.c | 16 ++++++++-------- > > 1 file changed, 8 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c > > index e06e9f4fc50f..9dedca714c18 100644 > > --- a/drivers/pci/controller/vmd.c > > +++ b/drivers/pci/controller/vmd.c > > @@ -994,33 +994,33 @@ static int vmd_resume(struct device *dev) > > static SIMPLE_DEV_PM_OPS(vmd_dev_pm_ops, vmd_suspend, vmd_resume); > > > > static const struct pci_device_id vmd_ids[] = { > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_201D), > > + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_201D), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0), > > + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_CAN_BYPASS_MSI_REMAP,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x467f), > > + {PCI_VDEVICE(INTEL, 0x467f), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4c3d), > > + {PCI_VDEVICE(INTEL, 0x4c3d), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa77f), > > + {PCI_VDEVICE(INTEL, 0xa77f), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x7d0b), > > + {PCI_VDEVICE(INTEL, 0x7d0b), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xad0b), > > + {PCI_VDEVICE(INTEL, 0xad0b), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B), > > + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B), > > .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | > > VMD_FEAT_HAS_BUS_RESTRICTIONS | > > VMD_FEAT_OFFSET_FIRST_VECTOR,}, > > -- > Sathyanarayanan Kuppuswamy > Linux Kernel Developer