From: "Christian König" <christian.koenig@amd.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: simona.vetter@ffwll.ch, matthew.brost@intel.com,
thomas.hellstrom@linux.intel.com, christoph.manszewski@intel.com,
rodrigo.vivi@intel.com, lucas.demarchi@intel.com,
andrzej.hajda@intel.com, matthew.auld@intel.com,
maciej.patelczyk@intel.com, gwan-gyeong.mun@intel.com,
Mika Kuoppala <mika.kuoppala@linux.intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 00/15] Intel Xe GPU Debug Support (eudebug) v4
Date: Mon, 8 Dec 2025 09:49:37 +0100 [thread overview]
Message-ID: <656acfd8-fef7-483d-999b-78182c43070d@amd.com> (raw)
In-Reply-To: <176518351640.16441.6158110220097232872@jlahtine-mobl>
On 12/8/25 09:45, Joonas Lahtinen wrote:
> Quoting Mika Kuoppala (2025-12-03 11:18:45)
>> Christian König <christian.koenig@amd.com> writes:
>>> On 08.08.25 12:43, Mika Kuoppala wrote:
>
> <SNIP>
>
>>>> #### 2. ELF binaries not held in kernel memory
>>>>
>>>> In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension.
>>>> The ELF binaries are no longer stored within the Xe KMD but are instead
>>>> kept in a file. The file path is passed as part of an extension in
>>>> the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively
>>>> pseudo-paths can be used to annotate special address ranges similar to
>>>> /proc/<pid>/maps.
>>>>
>>>> #### 3. Debug metadata not carried in VMA struct
>>>>
>>>> Instead of attaching debug data to vma created by 'OP_MAP',
>>>> we introduce separate ops for managing the metadata.
>>>> Debug data is no longer held in the VMA struct. xe_vm contains a
>>>> list of all associated debug data.
>>>
>>> I need to take a closer look but that sounds like it takes a big step into the right direction.
>>
>> Encouraged by this positive feedback, we iterated the series further. VM
>> binds state handling has reworked on top of vm_ops, metada and ufence
>> handling improved and we added pagefaults on top.
>>
>> v6 series can be found here:
>> https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html
>
> Christian, would it be possible for you to take a quick look before the
> holiday season? Would be very much appreciated.
I'm just back from a week of sick leave today (stupid flu season) and drowning in work.
But from a ten mile high view it looks sane to me now.
>
> That way we could start polishing the documentation etc. assuming we
> still agree on the direction. At least from our viewpoint, we're running
> short of ideas where to simplify or improve on the implementation.
>
> The page-faults are the freshest piece of the code, however it is rather
> well separated patches, so would be great if as a minimum the foundational
> patches before them could be agreed upon initially.
The only requirement I have is that you don't mix page faults, single step debugging and dma_fences for graphics contexts, but you already knew that.
In other words as long as you make sure that you can't attach a debugger to a process which does graphics rendering and uses dma_fences for that everything should be fine from my side.
Regards,
Christian.
>
> Best Regards, Joonas
>
>> Thanks,
>> -Mika
next prev parent reply other threads:[~2025-12-08 8:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 10:43 [PATCH 00/15] Intel Xe GPU Debug Support (eudebug) v4 Mika Kuoppala
2025-08-08 10:43 ` Mika Kuoppala
2025-08-08 10:43 ` [PATCH 01/15] drm/xe/eudebug: Introduce eudebug interface Mika Kuoppala
2025-08-08 10:43 ` [PATCH 02/15] drm/xe/eudebug: Introduce discovery for resources Mika Kuoppala
2025-08-08 10:43 ` [PATCH 03/15] drm/xe/eudebug: Introduce exec_queue events Mika Kuoppala
2025-08-08 10:43 ` [PATCH 04/15] drm/xe: Add EUDEBUG_ENABLE exec queue property Mika Kuoppala
2025-08-08 10:43 ` [PATCH 05/15] drm/xe: Introduce ADD_DEBUG_DATA and REMOVE_DEBUG_DATA vm bind ops Mika Kuoppala
2025-08-08 10:43 ` [PATCH 06/15] drm/xe/eudebug: Introduce vm bind and vm bind debug data events Mika Kuoppala
2025-08-08 10:43 ` [PATCH 07/15] drm/xe/eudebug: Add UFENCE events with acks Mika Kuoppala
2025-08-08 10:43 ` [PATCH 08/15] drm/xe/eudebug: vm open/pread/pwrite Mika Kuoppala
2025-08-08 10:43 ` [PATCH 09/15] drm/xe/eudebug: userptr vm pread/pwrite Mika Kuoppala
2025-08-08 10:43 ` [PATCH 10/15] drm/xe/eudebug: hw enablement for eudebug Mika Kuoppala
2025-08-08 10:43 ` [PATCH 11/15] drm/xe/eudebug: Introduce EU control interface Mika Kuoppala
2025-08-08 10:43 ` [PATCH 12/15] drm/xe/eudebug: Introduce per device attention scan worker Mika Kuoppala
2025-08-08 10:43 ` [PATCH 13/15] drm/xe/eudebug_test: Introduce xe_eudebug wa kunit test Mika Kuoppala
2025-08-08 10:43 ` [PATCH 14/15] drm/xe: Implement SR-IOV and eudebug exclusivity Mika Kuoppala
2025-08-08 10:43 ` [PATCH 15/15] drm/xe: Add xe_client_debugfs and introduce debug_data file Mika Kuoppala
2025-08-08 12:26 ` Christian König
2025-08-08 12:49 ` [PATCH 00/15] Intel Xe GPU Debug Support (eudebug) v4 Christian König
2025-12-03 9:18 ` Mika Kuoppala
2025-12-08 8:45 ` Joonas Lahtinen
2025-12-08 8:49 ` Christian König [this message]
2025-12-08 13:50 ` Joonas Lahtinen
2025-08-08 13:18 ` ✗ CI.checkpatch: warning for " Patchwork
2025-08-08 13:19 ` ✓ CI.KUnit: success " Patchwork
2025-08-08 14:25 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-08-08 15:06 ` ✗ Xe.CI.Full: " Patchwork
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=656acfd8-fef7-483d-999b-78182c43070d@amd.com \
--to=christian.koenig@amd.com \
--cc=andrzej.hajda@intel.com \
--cc=christoph.manszewski@intel.com \
--cc=gwan-gyeong.mun@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=joonas.lahtinen@linux.intel.com \
--cc=lucas.demarchi@intel.com \
--cc=maciej.patelczyk@intel.com \
--cc=matthew.auld@intel.com \
--cc=matthew.brost@intel.com \
--cc=mika.kuoppala@linux.intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=simona.vetter@ffwll.ch \
--cc=thomas.hellstrom@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox