From: "Chen, Chen-Yu" <Chen-Yu.Chen@amd.com>
To: Tao Liu <ltao@redhat.com>,
harry.wentland@amd.com, sunpeng.li@amd.com, siqueira@igalia.com,
alexander.deucher@amd.com, christian.koenig@amd.com,
airlied@gmail.com, simona@ffwll.ch, alex.hung@amd.com,
bhawanpreet.lakha@amd.com, ivan.lipski@amd.com,
george.zhang@amd.com, adrian.betschart@cinemaone.ch,
rodrigo.vivi@intel.com
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/amd/display: Fix pdev lifetime in dm_test_conn_init_ctx_alloc()
Date: Wed, 25 Nov 2026 18:31:17 +0800 [thread overview]
Message-ID: <85438483-9843-4b14-b3eb-57a074275911@amd.com> (raw)
In-Reply-To: <20261119054917.184758-2-ltao@redhat.com>
> Fix this by allocating pdev with kzalloc() and freeing it through
> the device release callback. This ensures pdev's lifetime is managed
> solely by the kobject.
Hi Tao,
Thanks for the report.
The lifetime problem in dm_test_conn_init_ctx_alloc() is real, but it has
already been addressed in amd-staging-drm-next by commit 370bab028b38
("drm/amd/display: Add more connector KUnit tests"). That commit allocates
pdev with devm_kzalloc() on the device and registers the unregister action
with devm_add_action_or_reset(), so devres releases the i2c adapter before
pdev is freed.
Your patch no longer applies to the current tree for that reason. Could you
please rebase it onto the latest amd-staging-drm-next and confirm whether the
issue still reproduces?
Thanks,
Chenyu
prev parent reply other threads:[~2026-11-25 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 5:49 Tao Liu
2026-11-25 10:31 ` Chen, Chen-Yu [this message]
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=85438483-9843-4b14-b3eb-57a074275911@amd.com \
--to=chen-yu.chen@amd.com \
--cc=adrian.betschart@cinemaone.ch \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=bhawanpreet.lakha@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=george.zhang@amd.com \
--cc=harry.wentland@amd.com \
--cc=ivan.lipski@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ltao@redhat.com \
--cc=rodrigo.vivi@intel.com \
--cc=simona@ffwll.ch \
--cc=siqueira@igalia.com \
--cc=sunpeng.li@amd.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
all inboxes | Powered by JetHome®