Files
linux/drivers/gpu/drm/amd/amdgpu
Pierre-Eric Pelloux-Prayer fec5f8e8c6 drm/amdgpu: disallow multiple BO_HANDLES chunks in one submit
Before this commit, only submits with both a BO_HANDLES chunk and a
'bo_list_handle' would be rejected (by amdgpu_cs_parser_bos).

But if UMD sent multiple BO_HANDLES, what would happen is:
* only the last one would be really used
* all the others would leak memory as amdgpu_cs_p1_bo_handles would
  overwrite the previous p->bo_list value

This commit rejects submissions with multiple BO_HANDLES chunks to
match the implementation of the parser.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-07-23 17:33:57 -04:00
..
2024-07-23 17:33:17 -04:00
2024-02-12 16:12:00 -05:00
2024-07-23 17:32:20 -04:00
2024-07-23 17:32:20 -04:00
2024-07-23 17:32:20 -04:00
2024-07-23 17:32:20 -04:00
2024-07-05 10:47:28 +02:00
2024-06-14 15:20:56 -04:00
2024-06-27 17:34:40 -04:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-07-23 17:33:17 -04:00
2024-07-23 17:33:17 -04:00
2022-05-04 09:53:12 -04:00
2023-08-07 16:35:38 -04:00
2022-05-04 10:43:54 -04:00
2024-02-12 16:12:00 -05:00
2024-06-27 17:34:40 -04:00
2022-05-10 17:53:11 -04:00
2024-07-23 17:33:17 -04:00
2023-03-15 18:45:26 -04:00
2023-03-15 18:45:26 -04:00
2023-08-30 15:00:27 -04:00
2024-05-29 14:09:01 -04:00
2022-03-22 10:53:39 -04:00
2024-06-19 18:25:58 -04:00
2024-07-23 17:33:17 -04:00
2023-08-31 16:34:05 -04:00