From: Arunpravin Paneer Selvam <arunpravin.paneerselvam@amd.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>,
intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: "Lucas De Marchi" <lucas.demarchi@intel.com>,
"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Christian König" <christian.koenig@amd.com>
Subject: Re: [REGRESSION][RFC] memleak on xe load & unload on PTL
Date: Wed, 19 Nov 2025 19:09:40 +0530 [thread overview]
Message-ID: <a055bb72-6cd7-430e-8f41-8c6aa9e93e2a@amd.com> (raw)
In-Reply-To: <c1245e1a-2856-83e6-69ed-1ddead4ad3d0@intel.com>
Hi Michal,
Please send the patch for the review.
Regards,
Arun.
On 11/18/2025 6:05 PM, Michał Grzelak wrote:
> Hi,
>
> just hit memory leak on xe module load & unload:
>
> unreferenced object 0xffff88811b047d10 (size 16):
> comm "modprobe", pid 1058, jiffies 4297578480
> hex dump (first 16 bytes):
> 00 6b 4b 2d 81 88 ff ff 80 7e 4b 2d 81 88 ff ff .kK-.....~K-....
> backtrace (crc 4f169eaf):
> kmemleak_alloc+0x4a/0x90
> __kmalloc_cache_noprof+0x488/0x800
> drm_buddy_init+0xc2/0x330 [drm_buddy]
> __xe_ttm_vram_mgr_init+0xc3/0x190 [xe]
> xe_ttm_stolen_mgr_init+0xf5/0x9d0 [xe]
> xe_device_probe+0x326/0x9e0 [xe]
> xe_pci_probe+0x39a/0x610 [xe]
> local_pci_probe+0x47/0xb0
> pci_device_probe+0xf3/0x260
> really_probe+0xf1/0x3c0
> __driver_probe_device+0x8c/0x180
> driver_probe_device+0x24/0xd0
> __driver_attach+0x10f/0x220
> bus_for_each_dev+0x7f/0xe0
> driver_attach+0x1e/0x30
> bus_add_driver+0x151/0x290
>
> Issue was reproduced on PTL & BMG, booted with latest kernel from
> drm-tip. Looks like fault was introduced in commit d4cd665c9
> ("drm/buddy: Separate clear and dirty free block trees"), since
> reverting it
> makes the leak disappear. Also attached RFC patch, which at first
> glance could fix the issue.
>
> Added xe maintainers and the author to Cc.
>
> BR,
> Michał
next prev parent reply other threads:[~2025-11-19 13:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 12:35 [REGRESSION][RFC] memleak on xe load & unload on PTL Michał Grzelak
2025-11-19 13:39 ` Arunpravin Paneer Selvam [this message]
2025-11-19 17:26 ` Lucas De Marchi
2025-11-20 8:56 ` Michał Grzelak
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=a055bb72-6cd7-430e-8f41-8c6aa9e93e2a@amd.com \
--to=arunpravin.paneerselvam@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=lucas.demarchi@intel.com \
--cc=michal.grzelak@intel.com \
--cc=rodrigo.vivi@intel.com \
--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