]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Don't allocate temporary policies object
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 2 Jul 2025 14:25:04 +0000 (16:25 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 10 Jul 2025 14:00:13 +0000 (16:00 +0200)
commit621a4220793b6d7bf29c66e2d82b9290225b2cf6
tree86e053031e67209fe01269c18bbe1dfc23fba8f7
parent1fbe023d30da84d11299dfab496f40daae423940
drm/xe/guc: Don't allocate temporary policies object

Since we are already using reusable buffer objects from the GuC
buffer cache, we can directly write into their CPU pointers and
spare unnecessary temporary allocation.

While around, also make sure to clear obtained buffer, to avoid
sending some stale data.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250702142504.1656-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_ads.c