[Intel-gfx] [PATCH] drm/i915/gt: Hold rpm wakeref before taking ggtt->vm.mutex

Matthew Auld matthew.william.auld at gmail.com
Fri Jan 10 17:08:05 UTC 2020


On Fri, 10 Jan 2020 at 14:44, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> We need to hold the runtime-pm wakeref to update the global PTEs (as
> they exist behind a PCI BAR). However, some systems invoke ACPI during
> runtime resume and so require allocations, which is verboten inside the
> vm->mutex. Ergo, we must not use intel_runtime_pm_get() inside the
> mutex, but lift the call outside.
>
> Closes: https://gitlab.freedesktop.org/drm/intel/issues/958
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list