Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1159075rdb; Fri, 9 Feb 2024 12:05:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdyuD8ghbBVIA/+O6+uYl0L3T+dJwNb0uf/mKCbYTXGtO5ksJiRQS+K4otUB8LoDfGtOfBdTh/ddmCLo7fujR5/T/xB/3TaytU+Zca7A== X-Google-Smtp-Source: AGHT+IHgjIKhhIIKwZqgBarRcgMkVeqOc7W0J/oqs/GN1HYUrgH6hEHkaee+juJWw/uzGhVgyj6o X-Received: by 2002:a05:6808:23c3:b0:3bf:fdfa:a6a5 with SMTP id bq3-20020a05680823c300b003bffdfaa6a5mr94233oib.6.1707509134935; Fri, 09 Feb 2024 12:05:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707509134; cv=pass; d=google.com; s=arc-20160816; b=meiafD/8y+dc7PnSZZsgctfetz4z+U4Eo3s02yzFIxfOCg8f4IEHl+HtRMTl15J+x6 HDzpHvgSEgtapFzGiD+rvW5eUHSdz4z9JFk/xLclucCRf+LtZJwov9zfUoP2Ry0z+RkD YbPjcCWic7oy6kFRcYOZx7UDXKe6OwsVBXMhUw2u97jIr6l5RVrl0kNDXImkTirPy3pi Z+Siv9XrAPZ/wwAU3o8sfQ5QZsHEVvCP2xnN2dI9GhoWGvjtyufKy9TDgP68iTKxDLdR EoaeIJdqgmVQzoqucV6q7DryvuYZcLJT4e/JT8z7coVc4SuQl+CjQzj3B3ehwQ9PATx4 zkcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jLdDWVw4/CkB4Xi0GByeTG83MJT6jsmcGepG+GT6tLw=; fh=rROl5UCT7qOlJLYNX1Jm8vMTtVBjJypVm3a1gfQJ1OA=; b=YZUeuu9Sh2dd/Mz0p3x9Cfysc++Cv/GQKet/A5V9ljpda6zY21SK+imdIQI3jBdtL3 CQn9u78NVvuwu3vrgXmiTGm/OeuAe2Y45X7xqa4PeUOHYiVsa1kiPjdG2ynP7ZCW6vGB b2Y9vQzpOvZ8IC9xQqGUFd93ZQmipcJLgCrewMe4y9ZnHHPRJaIRrdkcHF4busRpEqUc lJl3LMEz0DaX+2IHvSGqtNq8daI288ckFDfsl7FLrIJd5d9qtD6C8z4JO9V87G8FEO+1 t2Vn/WTO2hdHttNQjMskOCyop/UriWCmLHDlU2MIKpJcIqZ3p4I+MMkSDOAK18DQ9JHi NLug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rrT5F68j; 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-59918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCWuKHqnuGgsWaI80ZV1NFHlQeU8C1EbQQ6y2n4QUGjEtjytFL7cL93kKOB9C96I8Pd+EWHzxnDdkquEMwIdqzYAuu1qvY1Ftp7kEsF7Iw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id id2-20020a0561024bc200b0046d21d6e82bsi55387vsb.235.2024.02.09.12.05.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 12:05:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rrT5F68j; 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-59918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59918-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B06E01C213C1 for ; Fri, 9 Feb 2024 20:05:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF7DD85299; Fri, 9 Feb 2024 20:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="rrT5F68j" 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 9713E7FBBC; Fri, 9 Feb 2024 20:05:08 +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=1707509110; cv=none; b=WAh3Ry6Tv9s1CxUIYZ25Sjt3RpB7eq32bHuzw9KfFDT3QLeMBPONsRGfT11GdQy6j5lGp9ZZfYLXj5I6oTgBaBkv06LO96q8WY0ic8ApfG7vLvDM7No7LALMhCCgfakXlKbJJBE53jR3JoWV3ndaXroXRXuyrcGK/rOLB/oC6AA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707509110; c=relaxed/simple; bh=PdP7RDXlYkTsPbDHl2LkBqe7dqJfRcj2pQrAYr7vqTw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MPFpCkPPMLOxESyme6Z8SoJZVFJsJ37RLmxTi8eA84aoAo/zMJpX/kWvPOqxJggZ10Lghegxu/O6uQYcWOr0iLcRdhemmQMB5KyFDZLEa5aT5gmGajazMLocXUma5RVRY1awm0Yi6IoyPZUETB2WNS92A4A14Frn54wXWN10CPE= 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=rrT5F68j; 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=1707509101; bh=PdP7RDXlYkTsPbDHl2LkBqe7dqJfRcj2pQrAYr7vqTw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rrT5F68j04JiYo4o7NeGlwhfkcOQWxDNCNbJvnZ0+8MoC0Y9hlsVQm5w+/tX7ZaIT +xAwx03LNBnJDQLFLTyS5/qYKRu1Gg/rKyXCdmlX2Z1ExxweiG3MweFNRasHZsXH8G r6E3JHNAhxxZi9zO7oLCKqam/GVqzMIE+13lpfy/SQqMEPyPmyTsm+beDgjH3NNzc7 EaoxWT4/4ZxBq4YYEV4aCrRBTwTwXMgHjCqHfZ7txEElunB8Cxhz7n4j+zMLbohCHI 3BnZ16L01J8MuXL6zDqM0BXHZY3lo48CgH7NRA/zXymzoofFx5y2a2c+T/i6wvd/YV xQ50M2W3finDw== 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 79DCF37813FD; Fri, 9 Feb 2024 20:05:00 +0000 (UTC) Message-ID: Date: Fri, 9 Feb 2024 22:04:59 +0200 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: [PATCH] ASoC: SOF: amd: Skip IRAM/DRAM size modification for Steam Deck OLED Content-Language: en-US To: Venkata Prasad Potturu , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Mukunda, Vijendar" Cc: sound-open-firmware@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20240209122810.2258042-1-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/9/24 14:49, Venkata Prasad Potturu wrote: > > On 2/9/24 17:58, Cristian Ciocaltea wrote: >> The recent introduction of the ACP/PSP communication for IRAM/DRAM fence >> register modification breaks the audio support on Valve's Steam Deck >> OLED device. >> >> It causes IPC timeout errors when trying to load DSP topology during >> probing: [...] > Programming ACP_IRAM_DRAM_FENCE register to modify the size of IRAM and > DRAM and it's noting related to signed or unsigned fw_image. > > This ACP_IRAM_DRAM_FENCE register writing need to do before starting sha > dma. Unfortunately it doesn't fix the issue - I tested with the psp_send_cmd() calls moved to various positions before the line snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SHA_DMA_CMD, ACP_SHA_RUN); and I keep getting the IPC timeouts. However, if I simply comment out the second psp_send_cmd() line psp_send_cmd(adata, MBOX_ACP_IRAM_DRAM_FENCE_COMMAND | MBOX_ISREADY_FLAG); the problem is solved, even when the first psp_send_cmd() is kept in the original position. Anything else worth trying? Otherwise I would rework the patch to add a dedicated quirk for getting this ACP_IRAM_DRAM_FENCE processing skipped for Steam Deck OLED. Thanks, Cristian