[PATCH] drm/sched: Always trace the dependencies we wait on, to fix a race.

Eric Anholt eric at anholt.net
Thu Feb 7 23:10:34 UTC 2019


"Koenig, Christian" <Christian.Koenig at amd.com> writes:

> Am 07.12.18 um 20:16 schrieb Eric Anholt:
>> The entity->dependency can go away completely once we've called
>> drm_sched_entity_add_dependency_cb() (if the cb is called before we
>> get around to tracing).  The tracepoint is more useful if we trace
>> every dependency instead of just ones that get callbacks installed,
>> anyway, so just do that.
>>
>> Fixes any easy-to-produce OOPS when tracing the scheduler on V3D with
>> "perf record -a -e gpu_scheduler:.\* glxgears" and DEBUG_SLAB enabled.
>>
>> Signed-off-by: Eric Anholt <eric at anholt.net>
>
> Reviewed-by: Christian König <christian.koenig at amd.com>
>
> Going to pick that up for upstream and will add with a CC: stable.

Looks like this got misplaced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190207/794744a1/attachment.sig>


More information about the amd-gfx mailing list