]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/pxp: Decouple queue addition from PXP start
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 22 May 2025 22:54:05 +0000 (15:54 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 2 Jun 2025 15:28:49 +0000 (08:28 -0700)
commitccd3c6820a9024bcb68c249b644b5e42f0f7b9d2
treecff9b397662612f0d7894ded0449c7fe94c8ec7a
parent21784ca96025b62d95b670b7639ad70ddafa69b8
drm/xe/pxp: Decouple queue addition from PXP start

Starting PXP and adding a queue to the PXP queue list are separate
actions. Given that a queue can only be added to the list if PXP is
active, the 2 actions were bundled together to avoid having to
re-lock and re-check the status to perform the queue addition after
having done so during the PXP start. However, we don't save a lot of
complexity by doing so and we lose in clarity of code, so overall it's
cleaner to just keep the 2 actions separate.

v2: remove leftover rpm_get (John), fix rpm_put in error case

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250522225401.3953243-8-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_pxp.c