qcacmn: Use UNBOUND flag to create WMI RX workqueue
WMI RX workqueue is created with WQ_MEM_RECLAIM flag. When host receives the WMI service ready event it queues the work. There is 50sec delay in scheduling workqueue to process WMI service ready event. This results in host timeout (timeout = 15sec) and wifi load failure. This cleans up the host data structures related to data path. But work got scheduled after 50sec resulting in init path handling with inconsistent data structures. Use workqueue UNBOUND flag to create WMI RX workqueue. Works queued to unbound workqueues are implicitly HIGHPRI and dispatched to unbound workers as soon as resources are available. Change-Id: I46eb0242ad88103268df99be9fd2e0759ebec4b2 CRs-Fixed: 2343181
This commit is contained in:

committed by
nshrivas

parent
b514afc58a
commit
bfd50437fd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -142,6 +142,17 @@ static inline qdf_workqueue_t *qdf_create_singlethread_workqueue(char *name)
|
||||
return __qdf_create_singlethread_workqueue(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_alloc_unbound_workqueue - allocate an unbound workqueue
|
||||
* @name: string
|
||||
*
|
||||
* Return: pointer of type qdf_workqueue_t
|
||||
*/
|
||||
static inline qdf_workqueue_t *qdf_alloc_unbound_workqueue(char *name)
|
||||
{
|
||||
return __qdf_alloc_unbound_workqueue(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_queue_work - Queue the work/task
|
||||
* @hdl: OS handle
|
||||
|
Reference in New Issue
Block a user