From: "Souza, Jose" <jose.souza@intel.com>
To: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"De Marchi, Lucas" <lucas.demarchi@intel.com>
Cc: "Srivatsa, Anusha" <anusha.srivatsa@intel.com>,
"Wilson, Chris P" <chris.p.wilson@intel.com>,
"chris@chris-wilson.co.uk" <chris@chris-wilson.co.uk>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Free all DMC payloads
Date: Mon, 9 Aug 2021 19:51:35 +0000 [thread overview]
Message-ID: <3ecaacb7c7975f3f906a26054c9f550e7b632d3e.camel@intel.com> (raw)
In-Reply-To: <20210809194805.3793060-1-lucas.demarchi@intel.com>
On Mon, 2021-08-09 at 12:48 -0700, Lucas De Marchi wrote:
> From: Chris Wilson <chris@chris-wilson.co.uk>
>
> Free all the DMC payloads, not just DMC_MAIN.
>
> unreferenced object 0xffff88ff32d4d800 (size 1024):
> comm "kworker/1:5", pid 701, jiffies 4294904239 (age 109.736s)
> hex dump (first 32 bytes):
> 40 40 00 0c 03 00 00 00 00 00 00 00 00 00 00 00 @@..............
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
> backtrace:
> [<00000000ba9d0d95>] dmc_load_work_fn+0x34d/0x510 [i915]
> [<000000001049fcab>] process_one_work+0x261/0x550
> [<00000000eeb995ac>] worker_thread+0x49/0x3c0
> [<0000000021031dc3>] kthread+0x10b/0x140
> [<000000004a0f69ee>] ret_from_fork+0x1f/0x30
> unreferenced object 0xffff88ff0bde4000 (size 1024):
> comm "kworker/0:3", pid 708, jiffies 4294904469 (age 108.816s)
> hex dump (first 32 bytes):
> 40 40 00 0c 01 00 00 00 00 00 00 00 00 00 00 00 @@..............
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
> backtrace:
> [<00000000ba9d0d95>] dmc_load_work_fn+0x34d/0x510 [i915]
> [<000000001049fcab>] process_one_work+0x261/0x550
> [<00000000eeb995ac>] worker_thread+0x49/0x3c0
> [<0000000021031dc3>] kthread+0x10b/0x140
> [<000000004a0f69ee>] ret_from_fork+0x1f/0x30
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
>
> Fixes: 3d5928a168a9 ("drm/i915/xelpd: Pipe A DMC plugging")
> Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
> Cc: José Roberto de Souza <jose.souza@intel.com>
> Signed-off-by: Chris Wilson <chris.p.wilson@intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dmc.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c
> index 3c3c6cb5c0df..b3c8e1c450ef 100644
> --- a/drivers/gpu/drm/i915/display/intel_dmc.c
> +++ b/drivers/gpu/drm/i915/display/intel_dmc.c
> @@ -805,11 +805,14 @@ void intel_dmc_ucode_resume(struct drm_i915_private *dev_priv)
> */
> void intel_dmc_ucode_fini(struct drm_i915_private *dev_priv)
> {
> + int id;
> +
> if (!HAS_DMC(dev_priv))
> return;
>
> intel_dmc_ucode_suspend(dev_priv);
> drm_WARN_ON(&dev_priv->drm, dev_priv->dmc.wakeref);
>
> - kfree(dev_priv->dmc.dmc_info[DMC_FW_MAIN].payload);
> + for (id = 0; id < DMC_FW_MAX; id++)
> + kfree(dev_priv->dmc.dmc_info[id].payload);
> }
next prev parent reply other threads:[~2021-08-09 19:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 19:48 [Intel-gfx] [PATCH] drm/i915: Free all DMC payloads Lucas De Marchi
2021-08-09 19:51 ` Souza, Jose [this message]
2021-08-09 21:30 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2021-08-09 22:00 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-08-09 22:05 ` Lucas De Marchi
2021-08-10 9:43 ` Petri Latvala
2021-08-10 4:43 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Free all DMC payloads (rev2) Patchwork
2021-08-10 5:10 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-08-10 6:26 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=3ecaacb7c7975f3f906a26054c9f550e7b632d3e.camel@intel.com \
--to=jose.souza@intel.com \
--cc=anusha.srivatsa@intel.com \
--cc=chris.p.wilson@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=lucas.demarchi@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;
as well as URLs for NNTP newsgroup(s).