diff options
author | Christian König <christian.koenig@amd.com> | 2023-08-15 09:34:27 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-03-04 23:59:08 +0300 |
commit | c68cbbfd54c68485ac67b5a04c06feacdce15fec (patch) | |
tree | 9a9ca2fdbefee52931da1c5d92c0915736d48095 /tools/include | |
parent | 86e14a7386a14fa54f11456ec0bd1ada28c0fd5a (diff) | |
download | linux-c68cbbfd54c68485ac67b5a04c06feacdce15fec.tar.xz |
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 <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions