From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796471507; b=SDovobFhC3ziY+qAsFWB6RmJfHxmvwXh3wj/RbMAELcQBd1q9MXhiYTMlbMH31wSlCDw KvScWKCUHck6cuiGos/zvej/ibIwqCFN46Eeh97acCXVnhlKImechhNqEadfh/VjHKfgf 1utAUi/sBcJ4L8CDJD1fucUsN2tFrFJwur2U5IexcOzltHgXbUmzuLZJgUBnhmOUeRYjM yyk1wyOwB/dO8wG0RpVKSkEjYDXKGffZoHWO1oBog56vQDYyHSwZb04S0dtoc7v71Qk0Y M4/YMIIE4ufQYyyi8WVFsi7dZQ9ylc3TNE08Nn2rE2Oob+mnWXCeDe/30kSWR7p+Q5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796471507; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1jLgob9FSnlSiApBgjJEBmcuwLNjXjoEuZTkpCbyRMI=; b=udAxGy7HSoynRenhpt/8xoQaI0XgQwIsqv0JnWBXz4a2uqLV7E7aWDlh28/SSd9KsQiC zOEpHFVS7HWPZAoEmkWVkuFRUpM9M/+AZko23JhBko3TQJRWytJiRUKn/wukyvsgXmTec mE/+uGByKMEpg3VOdbhgaPvCMI6ZrHJZ0C22JA9AM/uJeut+o76OkLBSJukonNa7vVAgN h7t+/DaGjzh8xI0Wx8q3E0pQh+uHoqqYT5N9/9ZwaX/eICZ9MCgjMwm5XD9XZzlm94k67 OCWiiuMoedeAIeJ5mmM5Xno7hOVPNDMcChpksHBHYiMysR9fNy1reCqQ7htoYwjAtrw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YvhmkFtL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98F5F606A32F for ; Sat, 5 Dec 2026 11:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YvhmkFtL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5918C1F0092B; Sat, 5 Dec 2026 11:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796471507; bh=1jLgob9FSnlSiApBgjJEBmcuwLNjXjoEuZTkpCbyRMI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=YvhmkFtLQNjQNAzqbm8zrOZkUefDVlsurYgoP+Q/pZbt3JyFrmbOlJLqTCbGU+Ztc VrSq2VgaBRuLH02XNkxkERsEmMXqb7dPMJpNiAuN4w7gHarydfuNoUoDaWvnIp0W+C /hEUpXexBAGSjOtyj5TRYnF7aSYMysBkBjAjkURyLe0DDWNLn61BklsbpKVNpHP5RU Ni16XgVoq+7VbHEyQahuBqFALI0vGadxgeOutNI+hsC2OlJCuN/pf/YEdzm1oc3cN4 qoNtZRBztKK3Sf7MfTJYMGDsCU3RX8WErUc6Mr5hF+tf7xPkVn5gQSRN3m1SIjFBtp a4fhLdP7ip0kg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ALSA: hda: Fix PCI connectivity check for parent buses Reply-To: sashiko-reviews@lists.linux.dev To: "Sreeraj S Kurup" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261205114349.4074-1-sreekuttan2156239@gmail.com> References: <20261205114349.4074-1-sreekuttan2156239@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 11:51:46 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D=3D 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 =3D bus_b->parent; > =20 > /* connected via parent bus (may be NULL!) */ > - if (bus_a =3D=3D bus_b) > - return true; > - > if (!bus_a || !bus_b) > return false; > =20 > + if (bus_a =3D=3D bus_b) > + return true; [Severity: High] Does moving the NULL check before bus_a =3D=3D 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 =3D=3D 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) =3D=3D pci_domain_nr(hdac->bus) when both parents are NULL would preserve multi-root-bus support. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205114349.4074= -1-sreekuttan2156239@gmail.com?part=3D1