aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2023-08-15 08:34:27 +0200
committerAlex Deucher <[email protected]>2024-03-04 15:59:08 -0500
commitc68cbbfd54c68485ac67b5a04c06feacdce15fec (patch)
tree9a9ca2fdbefee52931da1c5d92c0915736d48095 /tools/testing/selftests/bpf/progs/test_autoload.c
parent86e14a7386a14fa54f11456ec0bd1ada28c0fd5a (diff)
drm/amdgpu: cleanup conditional execution
First of all calculating the number of dw to patch into a conditional execution is not something HW generation specific. This is just standard ring buffer calculations. While at it also reduce the BUG_ON() into WARN_ON(). Then instead of a random bit pattern use 0 as default value for the number of dw skipped, this way it's not mandatory any more to patch the conditional execution. And last make the address to check a parameter of the conditional execution instead of getting this from the ring. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions