From: "Wachowski, Karol" <karol.wachowski@linux.intel.com>
To: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>,
Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>,
dri-devel@lists.freedesktop.org
Cc: oded.gabbay@gmail.com, jeff.hugo@oss.qualcomm.com, lizhi.hou@amd.com
Subject: Re: [PATCH] accel/ivpu: Make BO free helper NULL-safe
Date: Mon, 28 Sep 2026 08:29:07 +0200 [thread overview]
Message-ID: <e2696c84-6372-49a7-98a4-0744e084bf40@linux.intel.com> (raw)
In-Reply-To: <cf0db8d5-1a88-4eb9-bf67-08585de9342f@linux.intel.com>
On 24-Sep-26 13:12, Dawid Osuchowski wrote:
> On 2026-09-24 12:59 PM, Andrzej Kacprowski wrote:
>> Handle NULL buffers in ivpu_bo_free() so callers can use it as a
>> kfree-like cleanup helper.
>>
>> Use the NULL-safe helper to simplify error paths and teardown code in
>> firmware, IPC, preemption buffer, and metric streamer cleanup. This
>> removes redundant conditional frees and collapses unwind labels that only
>> differed by which BOs had been allocated.
> Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Applied to drm-misc-next.
> Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
>> ---
>> drivers/accel/ivpu/ivpu_fw.c | 65 +++++++++++++++--------------------
>> drivers/accel/ivpu/ivpu_gem.c | 3 ++
>> drivers/accel/ivpu/ivpu_ipc.c | 11 +++---
>> drivers/accel/ivpu/ivpu_job.c | 6 ++--
>> drivers/accel/ivpu/ivpu_ms.c | 17 ++++-----
>> 5 files changed, 44 insertions(+), 58 deletions(-)
>
next prev parent reply other threads:[~2026-09-28 6:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 10:59 [PATCH] accel/ivpu: Make BO free helper NULL-safe Andrzej Kacprowski
2026-09-24 11:12 ` Dawid Osuchowski
2026-09-28 6:29 ` Wachowski, Karol [this message]
2026-09-28 5:54 ` Wachowski, Karol
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=e2696c84-6372-49a7-98a4-0744e084bf40@linux.intel.com \
--to=karol.wachowski@linux.intel.com \
--cc=andrzej.kacprowski@linux.intel.com \
--cc=dawid.osuchowski@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jeff.hugo@oss.qualcomm.com \
--cc=lizhi.hou@amd.com \
--cc=oded.gabbay@gmail.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