diff --git a/device/testing/linux-postmarketos-mediatek-mt81xx/APKBUILD b/device/testing/linux-postmarketos-mediatek-mt81xx/APKBUILD index 03aec5b0d..6c12d6dcb 100644 --- a/device/testing/linux-postmarketos-mediatek-mt81xx/APKBUILD +++ b/device/testing/linux-postmarketos-mediatek-mt81xx/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Jenneron pkgname=linux-postmarketos-mediatek-mt81xx pkgver=6.10.0_rc4_git20240624 -pkgrel=1 +pkgrel=2 pkgdesc="Mediatek MT8186/8192/8195 kernel package" arch="aarch64" url="https://kernel.org" @@ -37,6 +37,7 @@ source=" $pkgname-$_commit.tar.gz::https://gitlab.collabora.com/google/$_repository/-/archive/$_commit/chromeos-kernel-$_commit.tar.gz 0001-arm64-dts-mediatek-Add-dts-for-hayato-rev5-sku0.patch remove-audio-routing.patch + update-ADSP-reserved-memory-region.patch $_config " builddir="$srcdir/$_repository-$_commit" @@ -73,4 +74,5 @@ sha512sums=" bf39ed6646a869a7a99dc7f0ccc7bbaca0c50776e87848cb1a9e55bef317a73c08549a9acb8cce5c394ab3bf90667e4d1cf8a3671bb9de15d2a470d5e8be0261 0001-arm64-dts-mediatek-Add-dts-for-hayato-rev5-sku0.patch f10464bf131ba44686a36a35aaf16492915413893d1b3faa43959d5f853b5ed66419f835565836a17480cd3458de0943cee72e700713e00125c8ecd184f3b677 remove-audio-routing.patch ca5107ab3f9954a88431231243acf5b60da61aa377ce024fc3b30a9f6ca115ef55a3cdb14efc6d6e4ee4c28fd8cfa87ed01f2089e7683d7076b8d59abb12d896 config-postmarketos-mediatek-mt81xx.aarch64 +614ebc613902c088afc32ced6e612f3bb04405a36431a53ace96516a41e7c776e0353db55356ae9fc125b376049064720d4ad17cd7f1da2b3d2503fb0fa812a1 update-ADSP-reserved-memory-region.patch " diff --git a/device/testing/linux-postmarketos-mediatek-mt81xx/update-ADSP-reserved-memory-region.patch b/device/testing/linux-postmarketos-mediatek-mt81xx/update-ADSP-reserved-memory-region.patch new file mode 100644 index 000000000..252d6d78b --- /dev/null +++ b/device/testing/linux-postmarketos-mediatek-mt81xx/update-ADSP-reserved-memory-region.patch @@ -0,0 +1,104 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) + (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 3E7012A1C9 + for ; Fri, 19 Jul 2024 04:58:35 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.170 +ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; + t=1721365116; cv=none; b=GxeYNhUZ4DniUpiJ9KNtJz68Oks+oOrHAqm4lM8Z3yiPRwb1h+uglS6msPMITykq+wGl4e5Gl8YCohl/4y8+4PsbfjCC94Sw0OZRM4jzXf5unGEyJies10KusNdA24+C0QyeNFc+OM88jr8Cgx5I5v8E58Zy0r1pyur7PmobLP0= +ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; + s=arc-20240116; t=1721365116; c=relaxed/simple; + bh=5grUOfL+eh719ngtKJNkvdJNeKiogylOPeMvpQawcDY=; + h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VmdUjENG8q/i6/4v54oivl1MGOnSJHPlPXrCK5xVsfqB2r/No11oEHgeUJ5mLrvof920wUpebSloNI9nF0N5BRptLr6k4zpEg5Nw2GE7APbNpkfz+hAYPVJZHWz+OrEmZolPiudsFLPxkKAk+3SfPsLHT5zFU5EmZoPdr/0CRc0= +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=cUMJnpS/; arc=none smtp.client-ip=209.85.167.170 +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="cUMJnpS/" +Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3c9cc681e4fso855917b6e.0 + for ; Thu, 18 Jul 2024 21:58:35 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=chromium.org; s=google; t=1721365114; x=1721969914; darn=vger.kernel.org; + h=content-transfer-encoding:mime-version:message-id:date:subject:cc + :to:from:from:to:cc:subject:date:message-id:reply-to; + bh=HvPAyIWQtNqLx7WUlcX5/vDSF7IPzDdVVmoFWrTiQJU=; + b=cUMJnpS/0gWmzD4Q3+mcgCwiOGe9Dc1OtOhIjXRYovVCCUY7I3VYCn+gnm7Xno/JV9 + 1wu7acjXYpSCJIUDO+2nf91MHKhP7xhX9wET0uzUXQDejeGWMENYsV8HkIcpL91msBdO + NkEvDrI2guvRGI6sFod2e/+1kAGYYBB2fdvkc= +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20230601; t=1721365114; x=1721969914; + h=content-transfer-encoding:mime-version:message-id:date:subject:cc + :to:from:x-gm-message-state:from:to:cc:subject:date:message-id + :reply-to; + bh=HvPAyIWQtNqLx7WUlcX5/vDSF7IPzDdVVmoFWrTiQJU=; + b=JEk90mKs3Z3GAGZ/S4RDIzMSGaPJUm/KL2AIcQ4PV3OGeeRgZEw01cc1Du7moSkh80 + CdzFVRgdVQxjbVcAO2J3lLj0snvoCvSiVh3iut8yUUKYVnVQrjxM1F6LS6xN8CoNIPqn + SvKtSueygewwjo/JsNArO4iK/3Co3OKxFp1g57fIhnkHgExATIN956ygUenmZd/7BPXL + e6MBNeQmsWujhhrTzEra/HSkR+geQRYdihCVCxevg+QGS9pSqdabw0D8pxGXqhRyfF0H + I7U7oDHrCTlsm6/2ma0pHi/VTKMoOy7cUv35+JQpUb2UZJnfY/pL/fmgQUTr+PwPGBBc + 0fGA== +X-Forwarded-Encrypted: i=1; AJvYcCWOC4Dd/teVtJXabkXtKiCa5KLqq01g9zJdJiqvcXxpda1FU6iQ/Ni/hJt9gyHF4Z1gRUyrQ46xL8WKovfsaqvUoUmXOwzAtyGIzWjJ +X-Gm-Message-State: AOJu0YzL5CkEp1n33V7NDHWHbCULfqJZfC00S/pE8oWE+JpiDrKqAwme + 40Bt4nrjz30A/twqRxuuqS3kR5Hdj/CyQrWjxEg2fNXvdxyjytFdCoRzamBwCg== +X-Google-Smtp-Source: AGHT+IGpiUr+CwP2dyLNoFMb2Gyi+iGSCs3Az6ihXhSH1HtJoGXSvzeVXRwA6MyZOfyivrJ/f6qmBA== +X-Received: by 2002:a05:6808:300f:b0:3d9:dd2c:f1e3 with SMTP id 5614622812f47-3dad521abd7mr7316927b6e.25.1721365114323; + Thu, 18 Jul 2024 21:58:34 -0700 (PDT) +Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:4760:1d59:4f13:7c6f]) + by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-79db9fc1dd8sm422310a12.84.2024.07.18.21.58.32 + (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); + Thu, 18 Jul 2024 21:58:33 -0700 (PDT) +From: Fei Shao +To: AngeloGioacchino Del Regno , + Chen-Yu Tsai +Cc: Fei Shao , + Conor Dooley , + Krzysztof Kozlowski , + Matthias Brugger , + Rob Herring , + devicetree@vger.kernel.org, + linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org, + linux-mediatek@lists.infradead.org +Subject: [PATCH] arm64: dts: mediatek: mt8186-corsola: Update ADSP reserved memory region +Date: Fri, 19 Jul 2024 12:58:04 +0800 +Message-ID: <20240719045823.3264974-1-fshao@chromium.org> +X-Mailer: git-send-email 2.45.2.1089.g2a221341d9-goog +Precedence: bulk +X-Mailing-List: linux-kernel@vger.kernel.org +List-Id: +List-Subscribe: +List-Unsubscribe: +MIME-Version: 1.0 +Content-Transfer-Encoding: 8bit + +Corsola firmware reserves the memory region of [0x60000000, 0x61100000) +exclusively for ADSP usage. +But in fact, a 6 MB "hole" of [0x60A00000, 0x61000000) didn't get +assigned to the ADSP node in the Corsola device tree, meaning no audio +tasks can access and utilize that memory section. + +Update the reserved ADSP memory region to fill the gap. + +Fixes: 8855d01fb81f ("arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool") +Signed-off-by: Fei Shao +--- + + arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +index afdab5724eaa..0c4a26117428 100644 +--- a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi ++++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +@@ -169,7 +169,7 @@ adsp_dma_mem: memory@61000000 { + + adsp_mem: memory@60000000 { + compatible = "shared-dma-pool"; +- reg = <0 0x60000000 0 0xA00000>; ++ reg = <0 0x60000000 0 0x1000000>; + no-map; + }; + +-- +2.45.2.1089.g2a221341d9-goog