Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp322434rdb; Mon, 18 Sep 2023 16:58:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDQAAcu7CvUkJDBwFDn62NqrMDzgNHMnz2/PsKn4lac4C7AHgZOB/RpAFtG9i0/XO+IvXF X-Received: by 2002:a05:6a21:3b46:b0:14c:83a0:2aa with SMTP id zy6-20020a056a213b4600b0014c83a002aamr7376291pzb.53.1695081480223; Mon, 18 Sep 2023 16:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695081480; cv=none; d=google.com; s=arc-20160816; b=HrCxsrCuKyF6wrioPwX9YMIymEQh8MaVqAGeIRnYnTwAMgwxQEho6FwfU3ZVmbtNPi /7sbEqhjAv/9qzB4ayDdAVbmJsNTqhdps3yCmDSW4SjKnO/Nw9gr2xNNvzWdQ+Iu+HCC h3fqCebc/ZMJS6VF2WRRZ52iBNs6VRIhhrkDXYRjajoA7TIK9MU8tpCRRMqejbAu+BEV JC7XoY0jAoo78eScxu1FhXevlqD7OYovxZ2fq/oGMHYAigpLeMfAC/j4MOS9QxcNtSiu esLkobL9qg8kC68UHjP4kWBO0et+yAJBqaDzrWcnkGfN/l2NL8GQzXDlSBaYkzp/wZS3 Qz/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=nT84wNH1C0jGv/eCN9m7OxqXSype8Vk+lhVL/RUEMPU=; fh=rFLHJ70t4mfI1qQqEYVLmqFZLTlriBopqZgU3zeqtyQ=; b=eFC/HSrTGv6/YFjsZd4y09NLyhzeWPOvk/M6dz+91sDdDge6J3P+YIvBDgoTTHJ833 bcAeGmNnqX5OwtprWFn7I5UU/AFykO2Wy7n04xJzcteFD9KRlaRxo4pffwCH5gPnWMPS /vdRNO425g7gV/d+phJD7anr3L9wmkintVKAzWyMc9ZtHjc0ztznv0aBDjc/yovtR4Sl 3pyx+7CnCrSN1TCCB9D+TSnzOFfnfP8/gfIuD+LvUs3MYUZrO5R9H+4gCujcMrGIotPF b+AA9o9dACcA27vAgdr+E/j+MRAqJmkon8ZRucC3wgPC+jXQErZ8KKTJfPrD54T9LF1L sOdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hVmgHntZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d11-20020a056a00198b00b0068fb3451deesi8936377pfl.290.2023.09.18.16.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hVmgHntZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4CBEC81CEB15; Mon, 18 Sep 2023 13:52:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjIRUwR (ORCPT + 99 others); Mon, 18 Sep 2023 16:52:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbjIRUwQ (ORCPT ); Mon, 18 Sep 2023 16:52:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9826D130 for ; Mon, 18 Sep 2023 13:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695070277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nT84wNH1C0jGv/eCN9m7OxqXSype8Vk+lhVL/RUEMPU=; b=hVmgHntZ26mvJzfWCNe05R+k8EMArH0aveOLv+xt/B8L8LSJ8iM18TK/K/BUH2KefoTdmt xAKJ+b4AJlqn4BkSR0ft2Q3GEpSRCZePVLLp92UDwcPEQAoifcSkI8nAWBA/9VvlgH6USV 6Bk7wGD42p6A1BLU8m77pHOFwxQQ46o= Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-646-McnsvPcAOiC01gPzgq8F3Q-1; Mon, 18 Sep 2023 16:51:13 -0400 X-MC-Unique: McnsvPcAOiC01gPzgq8F3Q-1 Received: by mail-il1-f197.google.com with SMTP id e9e14a558f8ab-34f2cb006c9so40888795ab.3 for ; Mon, 18 Sep 2023 13:51:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695070272; x=1695675072; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nT84wNH1C0jGv/eCN9m7OxqXSype8Vk+lhVL/RUEMPU=; b=qONoT8twO2kUKcrBzc8E+L3OrkojyCrV/pob3Q1qUrHXovEZZz86RR4Evp1QHsVMpU jVJn20FonSLZTB88n9Jcx/VrXMicKlbm5FXjCCNiWAze7jLIWlbIACZ0uD1VAblRVbQt j76SawsuvKg0K+ubfRh/HCWs85zDBnhiZFulEQq4sm1O56VANmJT6o6tnVLrWEuLbySZ xAPztiXd2gmMBl1mt5pFjNG5o/6tAbrXsDJNinjBxyuUqX/MFZiLEAA5ta0eKFhd2rTg f5T3Od6ijuwCEOPz3nizTx8UHzzju6YQOg4q/WuRtRJIrC4BV0mcj3Dk9lEIPbskyr07 Uv/A== X-Gm-Message-State: AOJu0Yx705z2pMd32wVpp9WLz9KWh7AOQsY6+m7QwHiwJjCg0UAWz5YV AK2xCjHKYJPek6VsrRfHB9RGYM9KryRBd4seSgOEvpOKI7o4SGBUjZ5Fz0aFgvG6e1yr0z5yqYd x1Ua/8JN2G6PG4AWFY9hh6/CK X-Received: by 2002:a05:6e02:1244:b0:34c:b992:58b1 with SMTP id j4-20020a056e02124400b0034cb99258b1mr11804152ilq.2.1695070272573; Mon, 18 Sep 2023 13:51:12 -0700 (PDT) X-Received: by 2002:a05:6e02:1244:b0:34c:b992:58b1 with SMTP id j4-20020a056e02124400b0034cb99258b1mr11804135ilq.2.1695070272342; Mon, 18 Sep 2023 13:51:12 -0700 (PDT) Received: from redhat.com ([38.15.60.12]) by smtp.gmail.com with ESMTPSA id x59-20020a0294c1000000b0042bae96eba7sm333838jah.7.2023.09.18.13.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:51:11 -0700 (PDT) Date: Mon, 18 Sep 2023 14:51:11 -0600 From: Alex Williamson To: oushixiong Cc: Jason Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Brett Creeley , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio/pds: Add missing PCI_IOV depends Message-ID: <20230918145111.6473b148.alex.williamson@redhat.com> In-Reply-To: <20230906014942.1658769-1-oushixiong@kylinos.cn> References: <20230906014942.1658769-1-oushixiong@kylinos.cn> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:52:23 -0700 (PDT) On Wed, 6 Sep 2023 09:49:42 +0800 oushixiong wrote: > From: Shixiong Ou >=20 > If PCI_ATS isn't set, then pdev->physfn is not defined. > it causes a compilation issue: >=20 > ../drivers/vfio/pci/pds/vfio_dev.c:165:30: error: =E2=80=98struct pci_dev= =E2=80=99 has no member named =E2=80=98physfn=E2=80=99; did you mean =E2=80= =98is_physfn=E2=80=99? > 165 | __func__, pci_dev_id(pdev->physfn), pci_id, vf_id, > | ^~~~~~ >=20 > So adding PCI_IOV depends to select PCI_ATS. >=20 > Signed-off-by: Shixiong Ou > --- > drivers/vfio/pci/pds/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to vfio for-linus branch for v6.6. Thanks, Alex >=20 > diff --git a/drivers/vfio/pci/pds/Kconfig b/drivers/vfio/pci/pds/Kconfig > index 407b3fd32733..6eceef7b028a 100644 > --- a/drivers/vfio/pci/pds/Kconfig > +++ b/drivers/vfio/pci/pds/Kconfig > @@ -3,7 +3,7 @@ > =20 > config PDS_VFIO_PCI > tristate "VFIO support for PDS PCI devices" > - depends on PDS_CORE > + depends on PDS_CORE && PCI_IOV > select VFIO_PCI_CORE > help > This provides generic PCI support for PDS devices using the VFIO