mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Derkach <gabin278@gmail.com>
To: David Heidelberg <david@ixit.cz>
Cc: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Bryan O'Donoghue <bod@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Stanimir Varbanov <stanimir.k.varbanov@gmail.com>,
	Hans Verkuil <hverkuil@kernel.org>,
	Dan Carpenter <error27@gmail.com>,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org
Subject: Re: [PATCH] media: venus: core: look up static codec nodes among children only
Date: Sat,  5 Dec 2026 20:03:53 +0200	[thread overview]
Message-ID: <20261205180353.1404720-2-gabin278@gmail.com> (raw)
In-Reply-To: <20260928-venus-of-node-ref-v1-1-7579fb84445a@ixit.cz>

On Mon, Sep 28, 2026 at 11:42:39PM +0200, David Heidelberg wrote:
> Use of_get_child_by_name(), which only looks at the direct children,
> where static codec nodes live, and leaves the parent's refcount alone.

Tested on a Xiaomi Mi 9 SE (SDM712, sdm845-venus-v2), on the
sdm670-mainline 7.3.7 tree. Without this patch, a few unload and reload
cycles of venus_core ended in "of_node_release() detected bad
of_node_put() on /soc@0/video-codec@aa00000" and refcount_t warnings.
With it, 15 cycles of unloading and reloading venus_core, venus_dec and
venus_enc, each followed by a hardware H.264 decode, log nothing, and
every decode works.

Tested-by: Andrey Derkach <gabin278@gmail.com> # Xiaomi Mi 9 SE (SDM712)

      parent reply	other threads:[~2026-12-05 18:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 21:42 David Heidelberg via B4 Relay
2026-12-05 14:19 ` Tyler Baker
2026-12-05 18:03 ` Andrey Derkach [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=20261205180353.1404720-2-gabin278@gmail.com \
    --to=gabin278@gmail.com \
    --cc=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=david@ixit.cz \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=error27@gmail.com \
    --cc=hverkuil@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=phone-devel@vger.kernel.org \
    --cc=stanimir.k.varbanov@gmail.com \
    --cc=vikash.garodia@oss.qualcomm.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®