All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Matthew Auld <matthew.william.auld@gmail.com>,
	Riana Tauro <riana.tauro@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH 0/2] Fix deadlock issue on d3cold
Date: Mon, 4 Dec 2023 12:19:28 +0100	[thread overview]
Message-ID: <18dfde78-1c2e-91f7-cec3-103c41fbf040@linux.intel.com> (raw)
In-Reply-To: <CAM0jSHOk7sGu6tHOmnsYryRf7dNSJM5rk_gqV-+6wF4ZvzNxBQ@mail.gmail.com>


On 12/4/23 11:57, Matthew Auld wrote:
> Hi,
>
> On Mon, 4 Dec 2023 at 05:18, Riana Tauro <riana.tauro@intel.com> wrote:
>> kernel BOs need to be restored to the same place in VRAM, and with
>> d3cold that means that any VRAM allocation can
>> potentially steal the spot from kernel BOs which then blows up when
>> waking the device up.
>>
>> However if we end up moving xe_device_mem_access_get() much higher
>> up in the hierarchy (start of the gem_create_ioctl) then
>> this is no longer possible.
>>
>> This patch fixes the deadlock issue seen in
>> Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/256
>> Also enables d3cold to get CI results
>>
>> Riana Tauro (2):
>>    RFC drm/xe: Move xe_device_mem_access_get to the top of
>>      gem_create_ioctl
>>    CI drm/xe: Enable d3cold
> Tried this locally on DG2 and it triggers lockdep splats for me when
> loading the module, so it looks like a lot more is needed before
> turning on d3cold.

IMHO I think for the backup of pinned kernel bos we should either do 
something that is similar to what i915 does, with a separate backup bo, 
or if it is impossible to grab the object lock, put together a function 
that backs up all non-freed memory of a TTM VRAM manager to a set of 
system pages...

/Thomas





>   However I also had to manually set the
> d3cold.capable=true. Wondering if we have machines in CI that are
> d3cold capable, since BAT results are reporting success?




>
>>   drivers/gpu/drm/xe/xe_bo.c | 26 ++++++++++++++++++++------
>>   drivers/gpu/drm/xe/xe_pm.h |  2 +-
>>   2 files changed, 21 insertions(+), 7 deletions(-)
>>
>> --
>> 2.40.0
>>

  reply	other threads:[~2023-12-04 11:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04  5:26 [Intel-xe] [PATCH 0/2] Fix deadlock issue on d3cold Riana Tauro
2023-12-04  5:21 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-12-04  5:21 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-12-04  5:22 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-12-04  5:26 ` [Intel-xe] [PATCH 1/2] RFC drm/xe: Move xe_device_mem_access_get to the top of gem_create_ioctl Riana Tauro
2023-12-04  5:26 ` [Intel-xe] [PATCH 2/2] CI drm/xe: Enable d3cold Riana Tauro
2023-12-04  5:30 ` [Intel-xe] ✓ CI.Build: success for Fix deadlock issue on d3cold Patchwork
2023-12-04  5:30 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-12-04  5:31 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-12-04  6:02 ` [Intel-xe] ✓ CI.BAT: " Patchwork
2023-12-04 10:57 ` [Intel-xe] [PATCH 0/2] " Matthew Auld
2023-12-04 11:19   ` Thomas Hellström [this message]
2023-12-04 11:57   ` Riana Tauro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18dfde78-1c2e-91f7-cec3-103c41fbf040@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.william.auld@gmail.com \
    --cc=riana.tauro@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.