From nobody Fri Dec 19 19:01:33 2025 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49D27242D62 for ; Thu, 24 Apr 2025 10:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745490360; cv=none; b=WjllBd7mn85cPwcQNrxSWJ+dK4xOmL/C0CYcCxfipXlMGTAq8hRjBBISRPnm6HhLKyaBA/rDXaFNQt5aLBHbHWD8g2g5/4x+t+kTSeke5d6ChU1H0ue5EZMjbwsu/xxLcqbKxjc4h5FeFhN/iIGKKjamvIRoyJLWnGTcvGWmnCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745490360; c=relaxed/simple; bh=amw58+Xn4jL5+0UqqZ24GKZxtkpLJLo2j7rkb2+VAu4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s9Lh0k1WwlNEQ5XGw8b5Q5RekDz9PigyPbzc4iNaRIUzC0dJM0n/xH2xOs5v8F/R9wGBrD7pBDThkJvONcm2izcuE25k/IC36mBavlU453V6F5vzSNwcf8BCJmSxLNl7VdvChE0DltZ7qqa+b2O+4vxvk63K+TQRqwBVQ/jmtBE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=UQFlFv33; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="UQFlFv33" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-224191d92e4so8017025ad.3 for ; Thu, 24 Apr 2025 03:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1745490358; x=1746095158; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FmVpDCANpDWXjfc77hOC3nlqo3wLCB+cB+2xYUcVaDA=; b=UQFlFv33CuuL+I0ybw8YKAeiP3RwTi/JzKw76wo/1ev/K1zz+haQ0bFx5+LSU+A9EN 9aFBNJyel41G1aBpq2GKCQbPPRJKFkNpkdZXQOryUskmr+ON+tpP7jQ0MkSRdby8MlXJ Xzd/9gw9Bd9SlQK+s7mlI9ctLnjnqdEzhMzvc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745490358; x=1746095158; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FmVpDCANpDWXjfc77hOC3nlqo3wLCB+cB+2xYUcVaDA=; b=ugZpo5Dj3ExgMpGvEYylgeRir7L4bnrSbzwOLnLRLSGmS1T6uDNCCLH4sD1eoBSv/w V3hYU55UyGWrZ6/U02qiqmLCh5TAk7F5FBcZCILhmXONUtKq6Ym9kgmCTjWyf/Ja+MC7 D/NgQYpqcUEyNaTFsL1GfPp5oWR5bTON56dKgXJC/YCEZUukzQSyT4bcURqmk5GBs0IK OWD17OGaVRWWuIoaFwj2ymFIJUtbCoiAXMJZpgTIuO/x9XSu45VKGTVLECXACOQBh1HC sowcBtQngbGm5MW80SFRjN+D+AUvch0Rv34pnoC+Ho8QNmQUI7kL20zy8lebdEJztoA8 +EDA== X-Forwarded-Encrypted: i=1; AJvYcCU9is4z6qksf8Sj7h1VsKSAdp8Rg6RWBaAqPRDk1LXHlB8MvG74mlhsFbpPFHCsNhZOcRdP9Kra4e7tsNM=@vger.kernel.org X-Gm-Message-State: AOJu0YwKHGbcMB8aERlnZ1d8lzaSxfa0SByc0sKMRZtQCTZ4uLNvjvyq uf7qazb5bHUHxo+ycx0ZRYMPufVP3d6iJ+M1SuQIGNsJSwcJ06tSI/PWuP2pxg== X-Gm-Gg: ASbGncsiVH241tfZ29CdBn7ZmgdUSv4E6hokCzASA/fRJL3NTX6jani5ZcEUfOt5AKt 7/AkXECJYuEpgz6DzNKCwaR0xdek1CB0ownwYv/zsSoHxiLtliJb5z5M075/LmlVHRG2h2BgvXe ZzXGJDvcqa+3ECSQMdgRFgpyL9Df1RpbcHI9mxalyQXH6kcSQbuov7MJxKSSdSRf6nHRwCOqSY/ OZC4F7NrOVhar9ywUYXg20W7updyfjk15MJzcG5szg83J48JKq0NTZJiZdTRHLJvx3XQnOvL+dG YRlmiQQHcDKsmqU75m2c71/BwfWnxV/o3w1tqbsjgNPve1gjyKQ2O94QAw== X-Google-Smtp-Source: AGHT+IFNUWW8GiZ4JqKUF9pP/L7lY/ZM2afy9ZsZUC4Qoy35aYMkl4OZHCBcklsXj7mBYosm+Ajr0Q== X-Received: by 2002:a17:903:3c48:b0:229:1717:882a with SMTP id d9443c01a7336-22db3bae48bmr32665265ad.4.1745490358416; Thu, 24 Apr 2025 03:25:58 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:fa13:e633:684b:257]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22db4dda40fsm9680305ad.104.2025.04.24.03.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Apr 2025 03:25:57 -0700 (PDT) From: Chen-Yu Tsai To: Liam Girdwood , Mark Brown , Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Jiaxin Yu , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 12/13] arm64: dts: mediatek: mt8186-corsola: Reserve memory for audio frontend Date: Thu, 24 Apr 2025 18:25:06 +0800 Message-ID: <20250424102509.1083185-13-wenst@chromium.org> X-Mailer: git-send-email 2.49.0.805.g082f7c87e0-goog In-Reply-To: <20250424102509.1083185-1-wenst@chromium.org> References: <20250424102509.1083185-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Some MediaTek platforms already reserve a small block of memory for the audio frontend. These platforms reserve it at a fixed address, though it is unclear if that is due to hardware access restrictions or simply compacting the reserved memory blocks together. Reserve the same size of memory on the MT8186 Corsola family as well, to align with the other MediaTek-based ChromeOS platforms. This also helps with memory starvation as these devices sometimes end up in low memory conditions. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/= boot/dts/mediatek/mt8186-corsola.dtsi index c864ed495702..b139588ae246 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi @@ -161,6 +161,13 @@ reserved_memory: reserved-memory { #size-cells =3D <2>; ranges; =20 + afe_dma_mem: audio-dma-pool { + compatible =3D "shared-dma-pool"; + size =3D <0 0x100000>; + alignment =3D <0 0x10>; + no-map; + }; + adsp_dma_mem: memory@61000000 { compatible =3D "shared-dma-pool"; reg =3D <0 0x61000000 0 0x100000>; @@ -310,6 +317,7 @@ &adsp { }; =20 &afe { + memory-region =3D <&afe_dma_mem>; status =3D "okay"; }; =20 --=20 2.49.0.805.g082f7c87e0-goog