]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Adjust batchbuffer space warning when creating a job
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 29 Mar 2023 17:33:33 +0000 (10:33 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:26 +0000 (18:30 -0500)
commit9b36f7af2024ef30866f5fa0b1132ca924fd81fc
tree291cb9721a2fa4b23e7bb12217eda43f8c1cf6de
parent681818fdb97de821cc1ee6b81c7a09f3ef8fc96d
drm/xe: Adjust batchbuffer space warning when creating a job

We should WARN (not BUG) when creating a job if the batchbuffer does not
have sufficient space and padding.  The hardware prefetch requirements
should also be considered.

Link: https://lore.kernel.org/r/20230329173334.4015124-3-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bb.c