From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB474C369AB for ; Thu, 24 Apr 2025 11:44:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LtKFI70vqNjYLe7XjAp0V0B8UZZFpuIExlA3OQYSr8Q=; b=ywKra84QmmGXP7JepnSrYyvU/F Q3LMi0ecY0/mTVB8tUfLxHkHM/kEYE0GEgEzNDXe1K6ZmtxgOCY+OxFnjKuUfvJwJe+Qqq34lSJ92 vO/l29h45hrIakyuVM/eh/+CVn11orzLBSgeaPTunxvM9xqo4UL7C+Jg7K1bp4C9rsQJdbBY/RNuu J7U3Twe5NSZSFuhw9chgZMyavcMgEa/ubZQjn9ESqY0foSLb19QndmPNJgjjC7zdETbbjWD1f/PDR QbOkaeMcIrgaj1hILComggLaNoONXCyEJeXEPOl41a0PyJ7BFHpMyaabfw74l237C9kseZNAqxSDn dQDHUVPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7v0I-0000000DuGA-2M5u; Thu, 24 Apr 2025 11:44:30 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7tmC-0000000DfaV-2jqZ for linux-mediatek@lists.infradead.org; Thu, 24 Apr 2025 10:25:53 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-227d6b530d8so8437155ad.3 for ; Thu, 24 Apr 2025 03:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1745490352; x=1746095152; darn=lists.infradead.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=LtKFI70vqNjYLe7XjAp0V0B8UZZFpuIExlA3OQYSr8Q=; b=FwwWGpD9Q0qSgOYeDOfwifOB0xhfhV2nCCxKlRp3+ectm1Ik50/8iMJu7Jus27Mkqt 1T4ebwksx0arY1gtyFDzCqvjqUJeFUQSv83ufduRkxn0zZtY7OcdM8JAtpy28eMCo0LJ Y8EUJklegnUgaCR1l1VTmi7eE+Ao0tk3wOTu0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745490352; x=1746095152; 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=LtKFI70vqNjYLe7XjAp0V0B8UZZFpuIExlA3OQYSr8Q=; b=u7eHtbcUdJzHM2nFgVungwo/yVdt1ifH0fV0C+Vml2qnjHyOcAO4OdIpaTn8H74+q4 JeH1k9+OhIq6ZfAyZ/YnnAbvNfZPhyHzCvlMsTCXL67Cwb/uWZSA2Y4kvT871pFdcVMQ kuH2VJMGgNhERHXhl1+kLZdZvLn2hsOAJXmt7Fx0d08v2Z4agBY0gserywryfTa5MHXV QrutLnxrSmcR31vRuvoo0b8tl43YzeRRjJIjE/p4E25pptz6EIypkUzHnIiGN71laoyW f9idPIMOv5emmHzbsfgMk4fMqwzTXwkzDjF+VgphJC7RV3sSqixepyTd4heWHDvtD5gy /KOQ== X-Forwarded-Encrypted: i=1; AJvYcCW/fXcif6Jxkrotj91dtyVEbImnYKlzn60J/k5VWN3Zi3CuRTwaXjX/6P/4uzAoQQOg6Z7Ng5s6ORPU6vkn3g==@lists.infradead.org X-Gm-Message-State: AOJu0Yx81gOgXprQvXpuUKSLJaflb+Qh18wSdzdhl2KYHBZH0PH5OIZ9 UB1o4uz/fu09cylPI+C0jbZ0i9OPflizklMA27ouA9hXmNccaSmH19kpbD8phwvIRnTsRg+/OGc = X-Gm-Gg: ASbGncshvwYExDsbcPI+iSLUrftnYLq3R6yd0iQhbfgUxmij4A8J6upOhSK6FJ5jCh/ Zgaxa5XLw2x42lpxGciCxIaH/ugH2LLj6vWStX5HlJ2qskonLE2qBtrNy/Gbv2t/K06gDcjlrTG 5wuKHw7YtkwLAVFm+So86Qur7a8LlYtjlpW9mqKbMEULJyzbGB77+UT/62wa43gOed3K9ro7/Vr 30Mh8kW+aI/xN4++KKncLCaYuhIRwDzGGfxeFH/bOjY+xRV+eQ2sv1EysGN8ciHWcYcsWGtMNwm ljYJt2O/kjoQZIFIcKqNW+s1b8Wnwrbf08l6Sy+L+WggaOwbhFWof33oJA== X-Google-Smtp-Source: AGHT+IGm/ZrqIrNFBVlNQkQXFmEbsCxSPSPhkPOsiViZpp856F8SPbm8k/eEXqIbJDBfdIBpftEJlg== X-Received: by 2002:a17:902:d48a:b0:221:78a1:27fb with SMTP id d9443c01a7336-22db3bd1a15mr27098975ad.11.1745490351983; Thu, 24 Apr 2025 03:25:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Apr 2025 03:25:51 -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 10/13] arm64: dts: mediatek: mt8173: Reserve memory for audio frontend Date: Thu, 24 Apr 2025 18:25:04 +0800 Message-ID: <20250424102509.1083185-11-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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250424_032552_693133_27D6F714 X-CRM114-Status: GOOD ( 13.29 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 MT8173 as well, to align with the other platforms. This also helps with memory starvation as these devices commonly end up in low memory conditions. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 6d1d8877b43f..122a57c3780b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -318,6 +318,14 @@ reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; + + afe_dma_mem: audio-dma-pool { + compatible = "shared-dma-pool"; + size = <0 0x100000>; + alignment = <0 0x10>; + no-map; + }; + vpu_dma_reserved: vpu-dma-mem@b7000000 { compatible = "shared-dma-pool"; reg = <0 0xb7000000 0 0x500000>; @@ -887,6 +895,7 @@ afe: audio-controller@11220000 { <&topckgen CLK_TOP_AUD_2_SEL>; assigned-clock-parents = <&topckgen CLK_TOP_APLL1>, <&topckgen CLK_TOP_APLL2>; + memory-region = <&afe_dma_mem>; }; mmc0: mmc@11230000 { -- 2.49.0.805.g082f7c87e0-goog