Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1841392lqe; Tue, 9 Apr 2024 01:47:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWXt6OyH1o3xnsM0+JQzIZROIkEU3WObI2jDehuyiVfna2RAenbBv/VthbBa07HTqJ2vOzLrH7G6ekmzpQBze8E+60FCX1y+lrhMf4qg== X-Google-Smtp-Source: AGHT+IEv8tuBN+HbbufqD/2nlN9jkvvpEW9wkiafNJzeKEfkVenPdGzhILWOLKF2VP9wtKmKdCfA X-Received: by 2002:a05:651c:201:b0:2d8:9ea8:d0fc with SMTP id y1-20020a05651c020100b002d89ea8d0fcmr1883424ljn.6.1712652448281; Tue, 09 Apr 2024 01:47:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712652448; cv=pass; d=google.com; s=arc-20160816; b=ggrF4EXglk6KpfXv/YMpBW6hg4CCgt/PAThn2QXv3YPYlVbEMkwRdfc2h5vekJsymB nxOQ0rEO3KaOXw2gaRl99+QrnDpAaz8dc9m/cum8tY+VvycWjQFbBR0tguo2H5OOFW/b h6YYS48TKjDG6ph2soRa59cZpwwRIfMTSWDVHi+zSPS3zvhZ8QlgSs4KW2dmKRQYOL7h EZ9Tkz3Bb5XQv7yYxHUP1y0tumjcV669lTDUnGwGdKVjxWs5rhOGzRtyLM1GjQmuiVQO SMNT8F/N6SQPsfIxOahpSOuRobqILZYlfJAS7lmwVOwHMbyhYS49UpQhYovAZQ6aTs6v SrkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=RbIqNsjrUJYQMzqmjJdtNoWrxhEbfY1z+aAp87c9BpQ=; fh=ixNTtWSW/Y8QLVVGEXbRwTt6+7G8soHd5lzXAhGPlP8=; b=ueJDre8kYMy7kmYmgKC9i+QWg7KBSKcOGKBMkgC3qwSnjCJU3tJNwG7ld8ap0c4Hlf dzNLlvI8AnymZ6I0hRm7nmt61qaPL195E/v1DhaHQ/X5vu64rlKVeXY9u0qs4B8UaBWw c/Z9Kr4vTaohLqr0SeTCHZKMa1ATb6IE8LkddButQcP0+M2htWZaHT7CHbqj10YgB0XM qf+eghXqTqu3IE0uYgTkOFV79zFwwFMfJ53wtqCk2y9jsNRmDmUROl3KgmpKRwt0cHBJ IGCd1ZILrdVHYa5BGswVQoeRRwdRlwaY0RZx47eYRd5jevRmmtiV6vFinS2FIp1d6N7E XS7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eNPOB0Lf; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id he41-20020a1709073da900b00a473533abc4si4498368ejc.766.2024.04.09.01.47.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 01:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eNPOB0Lf; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CDF131F220CE for ; Tue, 9 Apr 2024 08:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBA1A75804; Tue, 9 Apr 2024 08:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="eNPOB0Lf" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AC6E3BBD8; Tue, 9 Apr 2024 08:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712652440; cv=none; b=pJKVZI+Nw0RTCzHHyURpc9FuMB2CzrDlHulzJ/53yklA9AtCOH6S8cjdD3/nGo/bp8SgM0rA8Ljr3kcS7uomscpIp0fDrECwtkgGD+8NBT/nvQ4Ig3xCQtaBSDfXvxlpobPBZtk9u/ie7QqqmI7p7V0otX6XdazDx+hV9KwxtGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712652440; c=relaxed/simple; bh=zNYeRwmbY9ibM/E/WdKyfRjakHbPxIdF+O+2VcWRU2Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QhhcCFHihG7Tkx4nNPn3BP1xKpQIg8zoFIdQ6ldugUjvDIJ4C90bLucQsl3CvU6RqEVFv0Yg4jADfCUL13OGexphlPD3xt6GE7+lFp6c4HCNWXSMcALb6BTE964h6yivRWmXJRUyFFxe5aSHfYDKP5tJM7cKf/EhsuxFFugO1Fg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=eNPOB0Lf; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712652436; bh=zNYeRwmbY9ibM/E/WdKyfRjakHbPxIdF+O+2VcWRU2Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eNPOB0Lf5y31e5BZq9VuxBvLcBz0E+mr1TTF3gdqEBeUdeOvZtdf6kOye/HJxvv4O nqxy+USLJFrMjF8HvZfrLABGJSZyBw3bEG/qUUIfuIu8szxmTd8Hrnfgt6dwCKaxTR QX0bPtKJGc3ivsdNkGkc/Bi18Tqvl3gp3lb7jtf3y+16A3fw/vfU5Cz3+u3DPh6s0e z1zzybNZ2inPN4Y6Ejz8oYKglkIHYcFapV02MPjunhbdHCMl3G44wRMufCgR7xVdnz uFerMa93434KEQat/p6HL1Agho76oJ1fihkYO1tNaM/LKrLCelBiLP6V+dxsea2373 M0napoSFU0nOQ== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 81CF637820EE; Tue, 9 Apr 2024 08:47:15 +0000 (UTC) Message-ID: <41b7170d-65b8-4d64-a1d3-7a0d09d79c45@collabora.com> Date: Tue, 9 Apr 2024 11:47:14 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: Steam Deck OLED 6.8.2 nau8821-max fails To: Linux regressions mailing list , Bagas Sanjaya , Venkata Prasad Potturu Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Arun Gopal Kondaveeti , Pierre-Louis Bossart , Daniel , Linux Kernel Mailing List , Linux Sound System References: <4d231dc4-0183-47e1-8bfa-3dd225bf8ea3@leemhuis.info> <904ffa11-592a-4336-aed2-d6370bb01896@collabora.com> <9012f8d5-302a-4840-815a-22b1e85fda5c@collabora.com> From: Cristian Ciocaltea Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/9/24 11:04 AM, Linux regression tracking (Thorsten Leemhuis) wrote: > On 09.04.24 09:42, Cristian Ciocaltea wrote: >> On 4/9/24 7:44 AM, Linux regression tracking (Thorsten Leemhuis) wrote: >>> On 09.04.24 01:44, Cristian Ciocaltea wrote: >>>> On 4/7/24 10:47 AM, Linux regression tracking (Thorsten Leemhuis) wrote: >>>>> On 06.04.24 15:08, Bagas Sanjaya wrote: >>>>>> On Bugzilla, Daniel reported topology regression >>>>>> on Steam Deck OLED [1]. He wrote: >>>> >>>>>>> I'm adding this here, I hope it's the correct place. >>>>>>> Currently the Steam Deck OLED fails with Kernel 6.8.2 when trying to initialise the topology for the device. >>>>>>> I'm using the `sof-vangogh-nau8821-max.tplg` file from the Steam Deck OLED and associated firmware. >>>>>> [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218677 >>>>> A quick search made me find these posts/threads that foreshadow the problem: >>>>> >>>>> https://lore.kernel.org/lkml/20231219030728.2431640-1-cristian.ciocaltea@collabora.com/ >>>>> https://lore.kernel.org/all/a3357e1f-f354-4d4b-9751-6b2182dceea6@amd.com/ >>>>> >>>>> From a quick look at the second discussion it seems a bit like we are >>>>> screwed, as iiutc topology files are out in the wild for one or the >>>>> other approach. So we might have to bite a bullet there and accept the >>>>> regression -- but I might easily be totally mistaken here. Would be good >>>>> in one of the experts (Venkata Prasad Potturu maybe?) could quickly >>>>> explain what's up here. >>>> >>>> The problem here is that Steam Deck OLED provides a topology file which >>>> uses an incorrect DAI link ID for BT codec. >>>> >>>> Patch [1] moves BT_BE_ID to position 2 in the enum, as expected by the >>>> topology, but this is not a change that can be accepted upstream as it >>>> would break other devices which rely on BT_BE_ID set to 3. >>>> >>>> The proper solution would be to update the topology file on Steam Deck, >>>> but this is probably not straightforward to be accomplished as it would >>>> break the compatibility with the currently released (downstream) >>>> kernels. >>>> >>>> Hopefully, this sheds some more light on the matter. >>>> >>>> [1]: https://lore.kernel.org/all/20231209205351.880797-11-cristian.ciocaltea@collabora.com/ >>> >>> Many thx, yes, this sheds some light on the matter. But there is one >>> remaining question: can we make both camps happy somehow? E.g. something >>> along the lines of "first detect if the topology file has BT_BE_ID in >>> position 2 or 3 and then act accordingly? >> >> Right, I have this on my TODOs list but haven't managed to dig into it >> yet. However, that would be most likely just another hack to be carried >> on until the transition to a fixed topology is completed. > > Well, sure it's a hack, but the thing is, our number one rule is "no > regressions" and the reporter apparently faces one (see start of the > thread). So to fulfill this rule it would be ideal to have a fix > available soonish or revert the culprit and reply it later together with > the fix. Hmm, unless I'm missing something, this shouldn't been considered a regression. As I explained previously, the OLED model was launched with a downstream implementation of the Vangogh SOF drivers on top of v6.1, as there was no upstream support back then. When AMD eventually completed the upstreaming process of their SOF drivers in v6.6, we ended up with this unfortunate ID assignments incompatibility. Hence I cannot see how the mainline kernel would have worked without applying patch [1] above, unless the reporter experimented with a different topology (which is not the case if I got this right). > Do we know which change that went into 6.8 caused this? Or is a revert > out-of-the question as it will likely break things for other users that > already upgraded to 6.8 and have a matching topology file? (/me fears > the answer to the latter question is "yes", but I have to ask :-/) We need to understand how the reporter got this working with mainline kernels without applying any out-of-tree patches. Regards, Cristian