mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Selecting CPUs for queuing work on
@ 2022-08-12 20:26 Felix Kuehling
  2022-08-12 20:30 ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Kuehling @ 2022-08-12 20:26 UTC (permalink / raw)
  To: Tejun Heo, Lai Jiangshan, linux-kernel
  Cc: Dave Airlie, Philip Yang, Maling list - DRI developers, amd-gfx

Hi workqueue maintainers,

In the KFD (amdgpu) driver we found a need to schedule bottom half 
interrupt handlers on CPU cores different from the one where the 
top-half interrupt handler runs to avoid the interrupt handler stalling 
the bottom half in extreme scenarios. See my latest patch that tries to 
use a different hyperthread on the same CPU core, or falls back to a 
different core in the same NUMA node if that fails: 
https://lore.kernel.org/all/20220811190433.1213179-1-Felix.Kuehling@amd.com/

Dave pointed out that the driver may not be the best place to implement 
such logic and suggested that we should have an abstraction, maybe in 
the workqueue code. Do you feel this is something that could or should 
be provided by the core workqueue code? Or maybe some other place?

Thank you,
   Felix


-- 
F e l i x   K u e h l i n g
PMTS Software Development Engineer | Linux Compute Kernel
1 Commerce Valley Dr. East, Markham, ON L3T 7X6 Canada
(O) +1(289)695-1597
     _     _   _   _____   _____
    / \   | \ / | |  _  \  \ _  |
   / A \  | \M/ | | |D) )  /|_| |
  /_/ \_\ |_| |_| |_____/ |__/ \|   facebook.com/AMD | amd.com


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

end of thread, other threads:[~2022-08-24 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220824113315.2375-1-hdanton@sina.com>
2022-08-24 20:36 ` Selecting CPUs for queuing work on Felix Kuehling
2022-08-12 20:26 Felix Kuehling
2022-08-12 20:30 ` Tejun Heo
2022-08-12 20:54   ` Felix Kuehling
2022-08-12 21:43     ` Tejun Heo

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®