2023-07-31 23:17:56

by Tom Zanussi

[permalink] [raw]
Subject: [PATCH v8 03/14] dmaengine: idxd: Export drv_enable/disable and related functions

To allow idxd sub-drivers to enable and disable wqs, export them.

Signed-off-by: Tom Zanussi <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Fenghua Yu <[email protected]>
---
drivers/dma/idxd/device.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
index 5abbcc61c528..87ad95fa3f98 100644
--- a/drivers/dma/idxd/device.c
+++ b/drivers/dma/idxd/device.c
@@ -1505,6 +1505,7 @@ int drv_enable_wq(struct idxd_wq *wq)
err:
return rc;
}
+EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);

void drv_disable_wq(struct idxd_wq *wq)
{
@@ -1526,6 +1527,7 @@ void drv_disable_wq(struct idxd_wq *wq)
wq->type = IDXD_WQT_NONE;
wq->client_count = 0;
}
+EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);

int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
{
--
2.34.1



2023-08-03 13:33:15

by Vinod Koul

[permalink] [raw]
Subject: Re: [PATCH v8 03/14] dmaengine: idxd: Export drv_enable/disable and related functions

On 31-07-23, 16:29, Tom Zanussi wrote:
> To allow idxd sub-drivers to enable and disable wqs, export them.
>
> Signed-off-by: Tom Zanussi <[email protected]>
> Reviewed-by: Dave Jiang <[email protected]>
> Reviewed-by: Fenghua Yu <[email protected]>
> ---
> drivers/dma/idxd/device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
> index 5abbcc61c528..87ad95fa3f98 100644
> --- a/drivers/dma/idxd/device.c
> +++ b/drivers/dma/idxd/device.c
> @@ -1505,6 +1505,7 @@ int drv_enable_wq(struct idxd_wq *wq)
> err:
> return rc;
> }
> +EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);

Sorry this is a very generic symbol, pls dont export it. I would make it
idxd_drv_enable_wq()

>
> void drv_disable_wq(struct idxd_wq *wq)
> {
> @@ -1526,6 +1527,7 @@ void drv_disable_wq(struct idxd_wq *wq)
> wq->type = IDXD_WQT_NONE;
> wq->client_count = 0;
> }
> +EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);
>
> int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
> {
> --
> 2.34.1

--
~Vinod

2023-08-03 14:40:38

by Tom Zanussi

[permalink] [raw]
Subject: Re: [PATCH v8 03/14] dmaengine: idxd: Export drv_enable/disable and related functions

Hi Vinod,

On Thu, 2023-08-03 at 18:45 +0530, Vinod Koul wrote:
> On 31-07-23, 16:29, Tom Zanussi wrote:
> > To allow idxd sub-drivers to enable and disable wqs, export them.
> >
> > Signed-off-by: Tom Zanussi <[email protected]>
> > Reviewed-by: Dave Jiang <[email protected]>
> > Reviewed-by: Fenghua Yu <[email protected]>
> > ---
> >  drivers/dma/idxd/device.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
> > index 5abbcc61c528..87ad95fa3f98 100644
> > --- a/drivers/dma/idxd/device.c
> > +++ b/drivers/dma/idxd/device.c
> > @@ -1505,6 +1505,7 @@ int drv_enable_wq(struct idxd_wq *wq)
> >  err:
> >         return rc;
> >  }
> > +EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);
>
> Sorry this is a very generic symbol, pls dont export it. I would make
> it
> idxd_drv_enable_wq()

Yeah, good point, I'll do that for the next version. And thanks for
all your Acks!

Tom

>
> >  
> >  void drv_disable_wq(struct idxd_wq *wq)
> >  {
> > @@ -1526,6 +1527,7 @@ void drv_disable_wq(struct idxd_wq *wq)
> >         wq->type = IDXD_WQT_NONE;
> >         wq->client_count = 0;
> >  }
> > +EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);
> >  
> >  int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
> >  {
> > --
> > 2.34.1
>


2023-08-03 16:01:43

by Dave Jiang

[permalink] [raw]
Subject: Re: [PATCH v8 03/14] dmaengine: idxd: Export drv_enable/disable and related functions



On 8/3/23 06:15, Vinod Koul wrote:
> On 31-07-23, 16:29, Tom Zanussi wrote:
>> To allow idxd sub-drivers to enable and disable wqs, export them.
>>
>> Signed-off-by: Tom Zanussi <[email protected]>
>> Reviewed-by: Dave Jiang <[email protected]>
>> Reviewed-by: Fenghua Yu <[email protected]>
>> ---
>> drivers/dma/idxd/device.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c
>> index 5abbcc61c528..87ad95fa3f98 100644
>> --- a/drivers/dma/idxd/device.c
>> +++ b/drivers/dma/idxd/device.c
>> @@ -1505,6 +1505,7 @@ int drv_enable_wq(struct idxd_wq *wq)
>> err:
>> return rc;
>> }
>> +EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD);
>
> Sorry this is a very generic symbol, pls dont export it. I would make it
> idxd_drv_enable_wq()

That's true. Although just a note it's only exported in the IDXD
namespace. So maybe ok?

>
>>
>> void drv_disable_wq(struct idxd_wq *wq)
>> {
>> @@ -1526,6 +1527,7 @@ void drv_disable_wq(struct idxd_wq *wq)
>> wq->type = IDXD_WQT_NONE;
>> wq->client_count = 0;
>> }
>> +EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD);
>>
>> int idxd_device_drv_probe(struct idxd_dev *idxd_dev)
>> {
>> --
>> 2.34.1
>