From: sashiko-bot@kernel.org
To: "Sreeraj S Kurup" <sreekuttan2156239@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: Fix PCI connectivity check for parent buses
Date: Sat, 05 Dec 2026 11:51:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-251478@kernel.org> (raw)
In-Reply-To: <20261205114349.4074-1-sreekuttan2156239@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ALSA: hda: connectivity_check() breaks Intel ARL multi-root-bus
audio binding
--
commit 60aeddc7ec61e2fe3abd4cdb7085d0b8590dd4c2
Author: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
ALSA: hda: Fix PCI connectivity check for parent buses
This commit moves the NULL check on bus_a and bus_b ahead of the
bus_a == bus_b comparison in connectivity_check().
> diff --git a/sound/hda/core/i915.c b/sound/hda/core/i915.c
> index 6c068b135b7dc..1eed61ce65dfc 100644
> --- a/sound/hda/core/i915.c
> +++ b/sound/hda/core/i915.c
> @@ -85,12 +85,12 @@ static bool connectivity_check(struct pci_dev *i915, struct pci_dev *hdac)
> bus_b = bus_b->parent;
>
> /* connected via parent bus (may be NULL!) */
> - if (bus_a == bus_b)
> - return true;
> -
> if (!bus_a || !bus_b)
> return false;
>
> + if (bus_a == bus_b)
> + return true;
[Severity: High]
Does moving the NULL check before bus_a == bus_b break i915/xe display
audio binding on Intel Arrow Lake multi-root-bus systems?
Commit 3f8c530fc458 ("ALSA: hda/i915: extend connectivity check to cover
Intel ARL") intentionally placed bus_a == bus_b ahead of the NULL check,
as noted by the "may be NULL!" comment, because the integrated GPU and
HD-audio controller sit on different PCI root buses with NULL parents.
With this change, connectivity_check() returns false on those systems,
which causes i915_gfx_present() to return false and snd_hdac_i915_init()
to fail with -ENODEV, disabling display audio component binding.
If devices in separate PCI domains need to be excluded, checking
pci_domain_nr(i915->bus) == pci_domain_nr(hdac->bus) when both parents
are NULL would preserve multi-root-bus support.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205114349.4074-1-sreekuttan2156239@gmail.com?part=1
next prev parent reply other threads:[~2026-12-05 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 11:43 [PATCH] ALSA: hda: Fix PCI connectivity check for parent buses Sreeraj S Kurup
2026-12-05 11:51 ` sashiko-bot [this message]
2026-12-05 12:16 ` Sreeraj S Kurup
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=sashiko-outbox-251478@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sreekuttan2156239@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