Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51CA1CD13D2 for ; Mon, 18 Sep 2023 20:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjIRUwR (ORCPT ); Mon, 18 Sep 2023 16:52:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjIRUwO (ORCPT ); Mon, 18 Sep 2023 16:52:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726E1131 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=1695070278; 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=HgCLtbdqhJ/HRbWJTqKy9byBzhXjdJX+mpE8LvX0fj5u8oSnY61pK7wisExb6mYbgmF7kT 2jMCj68GdNeGSEwHfkbaQstWw5b/86Vk0IIGVbuJfIoleK/zY5Qa1JqitFB696lL2hrjKN hZh4YSRIoSfJz6TTTvCyAymuANXjxYY= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-551-fI0j9n53Momvn8917-9wnA-1; Mon, 18 Sep 2023 16:51:13 -0400 X-MC-Unique: fI0j9n53Momvn8917-9wnA-1 Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-34df876e560so40980805ab.0 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=KhngjuzdgGf4xvC0SHzVRIEm7B0AbDxkXWXwHaOb1yJy+87ax3n379h06iSDk+3epN 3RlYVStPzf9igUVVi1BYnX4zppZH5o03V7FFGJ5YFJc1Qmf1+05vRVrlhkUxuyLBPPgL cs87xP3oRe/SV/MGwCNZP0g5pL8H23M2GAfS8D8mRW1KM+p0myBUJMmtJLOCWe9pBNvJ JoIGZamG6L3wlEYy/r+YR/5IZzZbWQc913Rmw9927oO4M5tBuwbYaZ4bs1/pz9wZRhn2 9Q8e93kAqh0b1xAn+cKBgvnaCNe0x+1g4LIChSKgorYBf+dObV4FBEn7KfLLYPXhF4HB zY5Q== X-Gm-Message-State: AOJu0YwFpUbaCqZ3v0LqvILVoQC/STuKwdc2lPW8N8MFwgwuqH0HwbOk L0f0nDE9POR15TvPvW1NvItmSW4joqL3aCAIOgD3/6GpoDQ83C+glmYKeHkm5ZI4HI3F1GOEh2V ezcWxBj4Mp8Tl X-Received: by 2002:a05:6e02:1244:b0:34c:b992:58b1 with SMTP id j4-20020a056e02124400b0034cb99258b1mr11804149ilq.2.1695070272570; Mon, 18 Sep 2023 13:51:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEM9F8BsBGdHa/2ijEI1FYBJ2o5B6O2oYDjh+f9Bi4r/BYEo7dTEBtR8axeWPhngsR/w7nEvg== 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 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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