[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220223163711.42c5d928.alex.williamson@redhat.com>
Date: Wed, 23 Feb 2022 16:37:11 -0700
From: Alex Williamson <alex.williamson@...hat.com>
To: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
Cc: <kvm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-crypto@...r.kernel.org>, <jgg@...dia.com>,
<cohuck@...hat.com>, <mgurtovoy@...dia.com>, <yishaih@...dia.com>,
<linuxarm@...wei.com>, <liulongfang@...wei.com>,
<prime.zeng@...ilicon.com>, <jonathan.cameron@...wei.com>,
<wangzhou1@...ilicon.com>
Subject: Re: [PATCH v5 6/8] hisi_acc_vfio_pci: Add helper to retrieve the PF
qm data
On Mon, 21 Feb 2022 11:40:41 +0000
Shameer Kolothum <shameerali.kolothum.thodi@...wei.com> wrote:
> Provides a helper function to retrieve the PF QM data associated
> with a ACC VF dev. This makes use of the pci_iov_get_pf_drvdata()
> to get PF drvdata safely. Introduces helpers to retrieve the ACC
> PF dev struct pci_driver pointers as this is an input into the
> pci_iov_get_pf_drvdata().
>
> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
> ---
> drivers/crypto/hisilicon/hpre/hpre_main.c | 6 ++++
> drivers/crypto/hisilicon/sec2/sec_main.c | 6 ++++
> drivers/crypto/hisilicon/zip/zip_main.c | 6 ++++
> drivers/vfio/pci/hisilicon/Kconfig | 7 +++++
> .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 30 +++++++++++++++++++
> include/linux/hisi_acc_qm.h | 5 ++++
> 6 files changed, 60 insertions(+)
>
> diff --git a/drivers/crypto/hisilicon/hpre/hpre_main.c b/drivers/crypto/hisilicon/hpre/hpre_main.c
> index ba4043447e53..80fb9ef8c571 100644
> --- a/drivers/crypto/hisilicon/hpre/hpre_main.c
> +++ b/drivers/crypto/hisilicon/hpre/hpre_main.c
> @@ -1189,6 +1189,12 @@ static struct pci_driver hpre_pci_driver = {
> .driver.pm = &hpre_pm_ops,
> };
>
> +struct pci_driver *hisi_hpre_get_pf_driver(void)
> +{
> + return &hpre_pci_driver;
> +}
> +EXPORT_SYMBOL(hisi_hpre_get_pf_driver);
Curious why none of these are _GPL symbols. Thanks,
Alex
Powered by blists - more mailing lists