aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2020-10-20 17:11:44 +0100
committerTvrtko Ursulin <[email protected]>2020-10-22 10:06:34 +0100
commit537f9c84a42754f89977bc2d19f2f69503a3a02a (patch)
treefb6e1879ec7756739dddfe66f716182cbac890a7 /lib/test_fortify/write_overflow-strcpy.c
parentb00bccb3f0bb7e99052791eeffb3e2cfcfa1ae8e (diff)
drm/i915/pmu: Fix CPU hotplug with multiple GPUs
Since we keep a driver global mask of online CPUs and base the decision whether PMU needs to be migrated upon it, we need to make sure the migration is done for all registered PMUs (so GPUs). To do this we need to track the current CPU for each PMU and base the decision on whether to migrate on a comparison between global and local state. At the same time, since dynamic CPU hotplug notification slots are a scarce resource and given how we already register the multi instance type state, we can and should add multiple instance of the i915 PMU to this same state and not allocate a new one for every GPU. v2: * Use pr_notice. (Chris) v3: * Handle a nasty interaction where unregistration which triggers a false CPU offline event. (Chris) Signed-off-by: Tvrtko Ursulin <[email protected]> Suggested-by: Daniel Vetter <[email protected]> # dynamic slot optimisation Cc: Chris Wilson <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions