mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning
@ 2026-01-13 17:36 Lizhi Hou
  2026-01-13 18:33 ` Mario Limonciello (AMD) (kernel.org)
  2026-01-14 15:04 ` Falkowski, Maciej
  0 siblings, 2 replies; 4+ messages in thread
From: Lizhi Hou @ 2026-01-13 17:36 UTC (permalink / raw)
  To: ogabbay, quic_jhugo, dri-devel, maciej.falkowski
  Cc: Lizhi Hou, linux-kernel, max.zhen, sonal.santan, mario.limonciello

Create notifier_wq with WQ_MEM_RECLAIM flag to fix the possible warning.

  workqueue: WQ_MEM_RECLAIM amdxdna_js:drm_sched_free_job_work [gpu_sched] is flushing !WQ_MEM_RECLAIM notifier_wq:0x0

Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
---
 drivers/accel/amdxdna/amdxdna_pci_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accel/amdxdna/amdxdna_pci_drv.c b/drivers/accel/amdxdna/amdxdna_pci_drv.c
index a7968fd140a9..1c83efb51f7d 100644
--- a/drivers/accel/amdxdna/amdxdna_pci_drv.c
+++ b/drivers/accel/amdxdna/amdxdna_pci_drv.c
@@ -277,7 +277,7 @@ static int amdxdna_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 		fs_reclaim_release(GFP_KERNEL);
 	}
 
-	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 0);
+	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", WQ_MEM_RECLAIM);
 	if (!xdna->notifier_wq)
 		return -ENOMEM;
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning
  2026-01-13 17:36 [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning Lizhi Hou
@ 2026-01-13 18:33 ` Mario Limonciello (AMD) (kernel.org)
  2026-01-14 15:04 ` Falkowski, Maciej
  1 sibling, 0 replies; 4+ messages in thread
From: Mario Limonciello (AMD) (kernel.org) @ 2026-01-13 18:33 UTC (permalink / raw)
  To: Lizhi Hou, ogabbay, quic_jhugo, dri-devel, maciej.falkowski
  Cc: linux-kernel, max.zhen, sonal.santan



On 1/13/2026 11:36 AM, Lizhi Hou wrote:
> Create notifier_wq with WQ_MEM_RECLAIM flag to fix the possible warning.
> 
>    workqueue: WQ_MEM_RECLAIM amdxdna_js:drm_sched_free_job_work [gpu_sched] is flushing !WQ_MEM_RECLAIM notifier_wq:0x0
> 
> Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>

> ---
>   drivers/accel/amdxdna/amdxdna_pci_drv.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/accel/amdxdna/amdxdna_pci_drv.c b/drivers/accel/amdxdna/amdxdna_pci_drv.c
> index a7968fd140a9..1c83efb51f7d 100644
> --- a/drivers/accel/amdxdna/amdxdna_pci_drv.c
> +++ b/drivers/accel/amdxdna/amdxdna_pci_drv.c
> @@ -277,7 +277,7 @@ static int amdxdna_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>   		fs_reclaim_release(GFP_KERNEL);
>   	}
>   
> -	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 0);
> +	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", WQ_MEM_RECLAIM);
>   	if (!xdna->notifier_wq)
>   		return -ENOMEM;
>   


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning
  2026-01-13 17:36 [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning Lizhi Hou
  2026-01-13 18:33 ` Mario Limonciello (AMD) (kernel.org)
@ 2026-01-14 15:04 ` Falkowski, Maciej
  2026-01-14 17:12   ` Lizhi Hou
  1 sibling, 1 reply; 4+ messages in thread
From: Falkowski, Maciej @ 2026-01-14 15:04 UTC (permalink / raw)
  To: Lizhi Hou, ogabbay, quic_jhugo, dri-devel
  Cc: linux-kernel, max.zhen, sonal.santan, mario.limonciello

Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>

On 1/13/2026 6:36 PM, Lizhi Hou wrote:
> Create notifier_wq with WQ_MEM_RECLAIM flag to fix the possible warning.
>
>    workqueue: WQ_MEM_RECLAIM amdxdna_js:drm_sched_free_job_work [gpu_sched] is flushing !WQ_MEM_RECLAIM notifier_wq:0x0
>
> Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
> ---
>   drivers/accel/amdxdna/amdxdna_pci_drv.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/accel/amdxdna/amdxdna_pci_drv.c b/drivers/accel/amdxdna/amdxdna_pci_drv.c
> index a7968fd140a9..1c83efb51f7d 100644
> --- a/drivers/accel/amdxdna/amdxdna_pci_drv.c
> +++ b/drivers/accel/amdxdna/amdxdna_pci_drv.c
> @@ -277,7 +277,7 @@ static int amdxdna_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>   		fs_reclaim_release(GFP_KERNEL);
>   	}
>   
> -	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 0);
> +	xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", WQ_MEM_RECLAIM);
>   	if (!xdna->notifier_wq)
>   		return -ENOMEM;
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning
  2026-01-14 15:04 ` Falkowski, Maciej
@ 2026-01-14 17:12   ` Lizhi Hou
  0 siblings, 0 replies; 4+ messages in thread
From: Lizhi Hou @ 2026-01-14 17:12 UTC (permalink / raw)
  To: Falkowski, Maciej, ogabbay, quic_jhugo, dri-devel
  Cc: linux-kernel, max.zhen, sonal.santan, mario.limonciello

Applied to drm-misc-next.

On 1/14/26 07:04, Falkowski, Maciej wrote:
> Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
>
> On 1/13/2026 6:36 PM, Lizhi Hou wrote:
>> Create notifier_wq with WQ_MEM_RECLAIM flag to fix the possible warning.
>>
>>    workqueue: WQ_MEM_RECLAIM amdxdna_js:drm_sched_free_job_work 
>> [gpu_sched] is flushing !WQ_MEM_RECLAIM notifier_wq:0x0
>>
>> Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
>> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
>> ---
>>   drivers/accel/amdxdna/amdxdna_pci_drv.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/accel/amdxdna/amdxdna_pci_drv.c 
>> b/drivers/accel/amdxdna/amdxdna_pci_drv.c
>> index a7968fd140a9..1c83efb51f7d 100644
>> --- a/drivers/accel/amdxdna/amdxdna_pci_drv.c
>> +++ b/drivers/accel/amdxdna/amdxdna_pci_drv.c
>> @@ -277,7 +277,7 @@ static int amdxdna_probe(struct pci_dev *pdev, 
>> const struct pci_device_id *id)
>>           fs_reclaim_release(GFP_KERNEL);
>>       }
>>   -    xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 0);
>> +    xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 
>> WQ_MEM_RECLAIM);
>>       if (!xdna->notifier_wq)
>>           return -ENOMEM;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-14 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-13 17:36 [PATCH V1] accel/amdxdna: Fix notifier_wq flushing warning Lizhi Hou
2026-01-13 18:33 ` Mario Limonciello (AMD) (kernel.org)
2026-01-14 15:04 ` Falkowski, Maciej
2026-01-14 17:12   ` Lizhi Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®