drm/amdgpu: Add support for querying the max ibs in a submission. (v3)
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 13 Apr 2023 14:22:53 +0000 (16:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:54 +0000 (16:28 -0400)
commit4f18b9a6711adbc7c76993c734a94ee3f5c61791
tree18d76f6c268f1d870253b749c2d68c8c7a081512
parentc30ddcece3a0a86853862a7d92678a79525ca1fb
drm/amdgpu: Add support for querying the max ibs in a submission. (v3)

This info would be used by radv to figure out when we need to
split a submission into multiple submissions. radv currently has
a limit of 192 which seems to work for most gfx submissions, but
is way too high for e.g. compute or sdma.

Userspace is available at
https://gitlab.freedesktop.org/bnieuwenhuizen/mesa/-/commits/ib-rejection-v3

v3: Completely rewrote based on suggestion of making it a separate query.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2498
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
include/uapi/drm/amdgpu_drm.h