From patchwork Tue Oct 3 11:13:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 147824 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2007926vqb; Tue, 3 Oct 2023 04:14:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnHQcS4gyXNe7Y1pxpPe4WICjRGmT9lZJz9evZ+auDSPcZO16yHiR4Iip8Jo/nLazDro+h X-Received: by 2002:a17:90b:3908:b0:274:a5a6:120b with SMTP id ob8-20020a17090b390800b00274a5a6120bmr10989681pjb.36.1696331673690; Tue, 03 Oct 2023 04:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696331673; cv=none; d=google.com; s=arc-20160816; b=Fp0HLXMKh1sFzKNa9t6j2eNH7NCllhACjNATlWUNkg1tMkqNiWBdz2C5Ob2x07eFrN d/7HfoiJa1EuWmNctkFKeh1oih6sk4ppCkX7z9p3PZ7iL9RTCc5XTo6/oOPMZ484k5XU yT72jAGLU6E8mhlBeb/B1uWwlPRKK0859TZF2XS2pQR6HHgAw3659QVzMGL/THPOt/Xy +kVIJReSlCZovr6D8qK+cx+AdnZWTHAI45nflW63iJx1orhtXCjTLb/OvMJwyp0koL45 O4RO9/mC15ynTng8JFhUU6Rzgp0ZeEF+Dqje6d90GsoejHNiQVbZ2ztCFl48mn1y7mcN KVAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6+IUYqkMrdUXuRzIygmnFhaKFKKjEP6TsNBOTnRPfrI=; fh=Y5oOWbEMsLVivIko2C+9e3SIdwD+y+C7mF6/yrhhaS4=; b=m9zzi6gpnfOkw2AKIo3md+CNiwZ2CFtRGK8KGQY8+RiAkq7tfdIEZGqrfAlTuPzPtl wQSUoiNhrcjsW8hSVqrBWwCJ3ij4U5ZtdLoy6W6RPQhTpmRynPoXSfpt/pOhJEvN0EJq zPuC5VBsjRdcwkLLG92g1TeEp+sy+s25CnmSSnnUrx0l6ZGFpCUMDEMimKd3lwq9CAQk tDwIszLHjffjuimder516h+n/aCZRQaStPSiFMsx+MBlnqByYtv3aHa/woD3bH32HX4J nqA9SQ3PWPJ07swBpkzam/0U2P/unEZdei5dJa3EAZq7AZfj0m+3gezooh1ACP7+pobw KadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XlvIHte1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w184-20020a6382c1000000b00573fbd040e4si1214594pgd.169.2023.10.03.04.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XlvIHte1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 10A8781896D0; Tue, 3 Oct 2023 04:14:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240072AbjJCLO3 (ORCPT + 18 others); Tue, 3 Oct 2023 07:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239962AbjJCLOQ (ORCPT ); Tue, 3 Oct 2023 07:14:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A817CD7; Tue, 3 Oct 2023 04:13:56 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0C4026607325; Tue, 3 Oct 2023 12:13:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696331633; bh=UO7hVIO9relB+JvuVz+PxxqsIIDZTWVoNwtpPPpJAHY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XlvIHte13uNTQywA8mO/EUDLbFh+8uBxQX4Koc4oFuhvLsCNQtT0vI39LxbmgzOeR D1XNuk3clQsAsPonI2PONHqVVhF+M/TEL7tkz9aFpQEWWbuwWDU2tiIJsSadakdE77 ZBlWH+Cpfuzp0mBG2yusXyZUsR56xuRoRemEqTqDit7uUWAn8w0oCoaQgzC34MhHav 4FZcmsq8fVytNQmW89q6GJg0IBspUXuIkj9uaZW2zDu2XtFvffvcfROijr3B6fYHlI TgTXZDjHv6Pz00pFoUaVBfPixK413Ne9D+JK1sQwI1FC5MT2BQnBqNh9FskvQWM1eb s2C1DvBvCk18g== From: AngeloGioacchino Del Regno Date: Tue, 03 Oct 2023 13:13:43 +0200 Subject: [PATCH 1/5] MAINTAINERS: Add Angelo as MediaTek SoC co-maintainer MIME-Version: 1.0 Message-Id: <20231003-mediatek-fixes-v6-7-v1-1-dad7cd62a8ff@collabora.com> References: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> In-Reply-To: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabien Parent , Miles Chen , Macpaul Lin , Chunfeng Yun , Sam Shih , Frank Wunderlich , Jieyy Yang , Tinghan Shen , Seiya Wang , soc@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1479; i=angelogioacchino.delregno@collabora.com; h=from:subject:message-id; bh=UO7hVIO9relB+JvuVz+PxxqsIIDZTWVoNwtpPPpJAHY=; b=owGbwMvMwCU2y4zl/NrpLRWMp9WSGFKlv+e/ufF/tX3u6QLfx94+3wLjsqLSNI7nLN8+t1lwk0F1 6JS3HaUsDGJcDLJiiizqd2uyn69ZyXik/WwJzBxWJpAhDFycAjCR27wM/93Xf/UT8z67M/9X24NV/a VFE14pqvVLb2GdtPJ61IHOR5MY/vDOcJNK+NN7Zsa2++/2zXKYr6zz43WEzJSpy3ezWUjpXWYCAA== X-Developer-Key: i=angelogioacchino.delregno@collabora.com; a=openpgp; fpr=57152E620CAF29C5DBE574766833ABB5BEBAF7B7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:14:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778732681291242515 X-GMAIL-MSGID: 1778732681291242515 I am a top reviewer mainly for MediaTek SoC related patches in most subsystems and I've also been upstreaming both improvements, fixes and new drivers and devicetrees when required. The MediaTek scene saw a generous increase in number of patches that are sent to the lists every week, increasing the amount of required efforts to maintain the MTK bits overall, and we will possibly see even more of that. For this reason, and also because of suggestions and encouragement coming from the community, I'm stepping up to be a co-maintainer of MediaTek SoCs support. Acked-by: Matthias Brugger Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230929082009.71843-1-angelogioacchino.delregno@collabora.com Acked-by: Mathieu Poirier --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 90f13281d297..57f82fcea1e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2327,7 +2327,7 @@ F: drivers/rtc/rtc-mt7622.c ARM/Mediatek SoC support M: Matthias Brugger -R: AngeloGioacchino Del Regno +M: AngeloGioacchino Del Regno L: linux-kernel@vger.kernel.org L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) L: linux-mediatek@lists.infradead.org (moderated for non-subscribers) From patchwork Tue Oct 3 11:13:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 147823 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2007904vqb; Tue, 3 Oct 2023 04:14:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl/FBxSMzZjgtkV6xZNha1p5Qqz5tpvohrXN33Zbc8RxP7ggB9TGST7HrqPDvwqTIKxmeb X-Received: by 2002:a17:90b:4f4b:b0:274:98aa:72d8 with SMTP id pj11-20020a17090b4f4b00b0027498aa72d8mr3626254pjb.3.1696331671834; Tue, 03 Oct 2023 04:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696331671; cv=none; d=google.com; s=arc-20160816; b=hFTimZnsgu0IVwQBVunBIqC4NSQDwc+Nsv2EdV39LsTfNzTuqUfYzEr+c2OTTDToS5 zkafs2XsFa2hSYCw9sC3imrgZkCj3FX9/sJQmXXiO79/7/U/DmZlvx+NYg/g7F7Qzf8k DIwiH9pEcFWF4yLJQx3wG+hMJdaVpRzJz6bZGsTtEyp8MeRLhFxYcvwyXCnz4sF5WImi XxX/qY0mvY//4SQVAld4Zx2z4kuBILSHuxx4DipqIm5Hl/nJ+iY8wX/d9NmPdlf0xo5/ 0z8sGeR3G+DRxjG2ZRsxV0h+5JgyzQygNmw4yAjt+YGSHz8LJsSrVShnOv5aRBE+BXDb o1kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HKSzdHrC0ajnavbFJYpZ36Ccu0K+838C0VozQS726Fw=; fh=fjphqpDvH+avoWyUXSSWkTjhgGkqnoG4jFFi/foVXRo=; b=qW5y3PWjv934sReCRcShrelKDyxbp9vW6zuHYPQtUFPv61seCaVdtGSf2Y+J+jmFLn cQjMK/e+mHFen2VIe+T32i6zY0O2i5/7NMrf99XQqcK9FRxo9t3q3XX2C631SACXRanq OLd1rR/N61nIm4zrRXb92Q4yOqIkwwV8zqAJ/KHJNxDxv75kPO9DB8+ETaYg5nZTfaXX m4r7mp6pwxrMH6GBLmWhXDgP4KnPUjRVTMvHgwoe4J1A45IqVN8RnsUia+xd0B20XoNu /jo5ZZMak7QzIXVo+Tx6sV41dnRyJEMbehb9JUjJh/nPqZsJ3S+bJ3IWkhQuU7a2oVtS OHUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VTNWZ2tQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id mv19-20020a17090b199300b002791e648ce3si1174136pjb.174.2023.10.03.04.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VTNWZ2tQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2254F81896CB; Tue, 3 Oct 2023 04:14:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240049AbjJCLO1 (ORCPT + 18 others); Tue, 3 Oct 2023 07:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239978AbjJCLOR (ORCPT ); Tue, 3 Oct 2023 07:14:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C45EACD0; Tue, 3 Oct 2023 04:13:56 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 10B3F6607329; Tue, 3 Oct 2023 12:13:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696331634; bh=pAXKlMZYb9kk4/jOlDzFJfE6QfqONMhs8aaRerQ53qY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VTNWZ2tQ9KpIdiKtaVVu2akIqHUp32W5PraLcfdZZjOz5aBbBs3m1I/BsEgNzHUIc 0lqOP5mMe9UG+JoB0jMMaCQfEp5nDd9Oj0I8e23mgFsEfUIYPlnsA4PJiHN0V3hvtx Vc1dXoW9J5pP64i/8CuLstMvFEf/aBORrF6bzYi081B1wXsDSIpx92PdGiGttG75Di +jy9eP2KUluHQny3ZAOBwg+dY/IB2Pj+AuX5n3CjsTSI8Tw5VRk3jWrqGa/DWHgY5X sJqm+XzCNbs01OY8/H3hQiL1iPyN/sI8MbWEUQBPQq2sruwpx3NOVyX+szFlDp75rU 5R6NAqpuw6QqA== From: AngeloGioacchino Del Regno Date: Tue, 03 Oct 2023 13:13:44 +0200 Subject: [PATCH 2/5] arm64: dts: mediatek: mt8195-demo: fix the memory size to 8GB MIME-Version: 1.0 Message-Id: <20231003-mediatek-fixes-v6-7-v1-2-dad7cd62a8ff@collabora.com> References: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> In-Reply-To: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabien Parent , Miles Chen , Macpaul Lin , Chunfeng Yun , Sam Shih , Frank Wunderlich , Jieyy Yang , Tinghan Shen , Seiya Wang , soc@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, stable@vger.kernel.org X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1051; i=angelogioacchino.delregno@collabora.com; h=from:subject:message-id; bh=0AjmDhxqpfBUHke/hawEALL8dEPAtQdtDwHGbWp7zNw=; b=owGbwMvMwCU2y4zl/NrpLRWMp9WSGFKlv+fLvVLqnHPx2fqqXsN7D8Q6Y2blMLqE7lLYPaV/XlaH q+CUjlIWBjEuBlkxRRb1uzXZz9esZDzSfrYEZg4rE8gQBi5OAZjIjJOMDB+5d5o+OCj5be+KCcuLy2 V6Mq+aKK/8sHi7/slvOZyz5oUy/NO6JcicbTSHZ4H72Q6/c/8S/gSqVqxd+EV8gcZRywyFaB4A X-Developer-Key: i=angelogioacchino.delregno@collabora.com; a=openpgp; fpr=57152E620CAF29C5DBE574766833ABB5BEBAF7B7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:14:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778732678901932854 X-GMAIL-MSGID: 1778732678901932854 From: Macpaul Lin The onboard dram of mt8195-demo board is 8GB. Cc: stable@vger.kernel.org # 6.1, 6.4, 6.5 Fixes: 6147314aeedc ("arm64: dts: mediatek: Add device-tree for MT8195 Demo board") Signed-off-by: Macpaul Lin Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230905034511.11232-1-macpaul.lin@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts index b2485ddfd33b..ff363ab925e9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts @@ -48,7 +48,7 @@ key-0 { memory@40000000 { device_type = "memory"; - reg = <0 0x40000000 0 0x80000000>; + reg = <0 0x40000000 0x2 0x00000000>; }; reserved-memory { From patchwork Tue Oct 3 11:13:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 147822 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2007865vqb; Tue, 3 Oct 2023 04:14:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEANOyuGKRNr5Y7LrmmxsF5DhbxMP+2aqoKUiG1/vV5TARIu7VF8bN9QV63DYtbZ/XFsU+9 X-Received: by 2002:a17:90b:4c0a:b0:270:1611:484b with SMTP id na10-20020a17090b4c0a00b002701611484bmr11142072pjb.41.1696331667831; Tue, 03 Oct 2023 04:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696331667; cv=none; d=google.com; s=arc-20160816; b=EGXStP9e5Tn2fIcngdwbS50dp4GTcc8J2YdIOF9GVsq6XCaXpRzV7X7DFXKWD07sTe uT+h9l41yAEQwhuh8a84ZR/i5IwaFI6USCfCbxg1lKXlGhkVOrm+Ks3OAwEG7mxEERB4 2SNTTuM0Oy8epI6FAHvRm04iDtMoC1SN/+ak0LpWo55w2XEpBzsr28gS8m4Si53HYAkZ WZ7ftO1U6SXuBgg16tmdyoJO75t4H5a1b2Jd+I4xBxhsg/sWjMzOu+RViyjvCRyTYsG3 fNH5OGAKABhXJcvwZA8Nb7lgjRZtFuvEqDIO5lF09cP6izY3thRefZGEhgFCs9UXEB2M mnjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=kCFn7/oF61F1/QZoQSY9NQ/uy3pnD17mxbRZg2OiFjw=; fh=fjphqpDvH+avoWyUXSSWkTjhgGkqnoG4jFFi/foVXRo=; b=0kCVciF5Iw5p/DryzeuUFwbyg9mTcZBzEkFXQab2Plueg21fKYRl/dC5uASfurTVnV OBibyP9lY+qAX2+6svhHkVJ9af7XBxE1ndC6lZUSl0Nk/1ZnbhQQ8sJARVSpa36ZY2EY H62EEeL2l/bhZvGnhRz0T9FMgVpbgqcp3gizY4EYgxisDxeO4GqUKa5u1I8Zbndu+ewg ISdyRvdS6Mg1JNJQtR8QlhbPzC9pGkcOZIapDR6hBsCB5D8Fs3ptAlJFuCy1m6wpx0Je wRY4g76sJyuxSpUZSZNUT4z1If42g76MJEXZd5NHeZnKiUx647psL6QL3SpaC2++A0Ix xR1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="jw/Xk/7p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i4-20020a170902e48400b001bc2fd76db1si1135236ple.65.2023.10.03.04.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:14:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="jw/Xk/7p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1D36281890A7; Tue, 3 Oct 2023 04:14:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239919AbjJCLOY (ORCPT + 18 others); Tue, 3 Oct 2023 07:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239916AbjJCLOS (ORCPT ); Tue, 3 Oct 2023 07:14:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D8ECDD; Tue, 3 Oct 2023 04:13:57 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 198696607327; Tue, 3 Oct 2023 12:13:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696331636; bh=j7Uw1isEhuefKTYB2JUZzHIL25LZ8i+zJVR9YMoREJs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jw/Xk/7p22aC4onGuFU6Mv/+lrzoWuBkoGIZ1YKd7wWhBDgdbuvgpvM94LJ+/yIMY AYPi5zx8yXPzEw4tjcLZWxYr5NvkIW8nWMHxJ1ROXzeC6G8HO9c868tQLFiOg2/cKc 2iRoaE4zrkJrinM96enXlRN8BuzMun7Kdu8FPLCHz1fa/89XAzKEb1Uh4yR7sw8HCe X+9znkMT7ubWQ3E0E/XM+6jBj6ILjz+ZW7KIEMjVp8cpjuKCCL8yYhrZy2uFr/7Qkt cSHOyKTnYA1dxmma11Ai12IScKnZXK74BK76nVQYHj9ZWT5PcP7VVUlKjBaCf+Rdsz 4OtA+TIW/l7Qw== From: AngeloGioacchino Del Regno Date: Tue, 03 Oct 2023 13:13:45 +0200 Subject: [PATCH 3/5] arm64: dts: mediatek: mt8195-demo: update and reorder reserved memory regions MIME-Version: 1.0 Message-Id: <20231003-mediatek-fixes-v6-7-v1-3-dad7cd62a8ff@collabora.com> References: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> In-Reply-To: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabien Parent , Miles Chen , Macpaul Lin , Chunfeng Yun , Sam Shih , Frank Wunderlich , Jieyy Yang , Tinghan Shen , Seiya Wang , soc@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, stable@vger.kernel.org X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2526; i=angelogioacchino.delregno@collabora.com; h=from:subject:message-id; bh=fmj9JCdJsykEJ4ILjg0BDPF2+rO6fiudNIe7PL2w/6g=; b=owGbwMvMwCU2y4zl/NrpLRWMp9WSGFKlv+ffSJ1lxD8loPuo0KEe+ZBZy/Tv7Tv84cxz/vZVKfOX zDo/u6OUhUGMi0FWTJFF/W5N9vM1KxmPtJ8tgZnDygQyhIGLUwAmclqA4Z+aianGty0W786nvX1sKl Lu8GexuFXR/6PpBzRO5T8xPpvJyLCqVEa05YrIttt3mBU7ciIW/Epw1v9tcPp6zgW7p7edOPgB X-Developer-Key: i=angelogioacchino.delregno@collabora.com; a=openpgp; fpr=57152E620CAF29C5DBE574766833ABB5BEBAF7B7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:14:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778732674843373731 X-GMAIL-MSGID: 1778732674843373731 From: Macpaul Lin The dts file of the MediaTek MT8195 demo board has been updated to include new reserved memory regions. These reserved memory regions are: - SCP - VPU, - Sound DMA - APU. These regions are defined with the "shared-dma-pool" compatible property. In addition, the existing reserved memory regions have been reordered by their addresses to improve readability and maintainability of the DTS file. Cc: stable@vger.kernel.org # 6.1, 6.4, 6.5 Fixes: e4a417520101 ("arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon") Signed-off-by: Macpaul Lin Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230905034511.11232-2-macpaul.lin@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 37 ++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts index ff363ab925e9..5d635085fe3f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts @@ -56,13 +56,8 @@ reserved-memory { #size-cells = <2>; ranges; - /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ - bl31_secmon_reserved: secmon@54600000 { - no-map; - reg = <0 0x54600000 0x0 0x200000>; - }; - - /* 12 MiB reserved for OP-TEE (BL32) + /* + * 12 MiB reserved for OP-TEE (BL32) * +-----------------------+ 0x43e0_0000 * | SHMEM 2MiB | * +-----------------------+ 0x43c0_0000 @@ -75,6 +70,34 @@ optee_reserved: optee@43200000 { no-map; reg = <0 0x43200000 0 0x00c00000>; }; + + scp_mem: memory@50000000 { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + + vpu_mem: memory@53000000 { + compatible = "shared-dma-pool"; + reg = <0 0x53000000 0 0x1400000>; /* 20 MB */ + }; + + /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ + bl31_secmon_mem: memory@54600000 { + no-map; + reg = <0 0x54600000 0x0 0x200000>; + }; + + snd_dma_mem: memory@60000000 { + compatible = "shared-dma-pool"; + reg = <0 0x60000000 0 0x1100000>; + no-map; + }; + + apu_mem: memory@62000000 { + compatible = "shared-dma-pool"; + reg = <0 0x62000000 0 0x1400000>; /* 20 MB */ + }; }; }; From patchwork Tue Oct 3 11:13:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 147828 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2008299vqb; Tue, 3 Oct 2023 04:15:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfq9SCYTypxYtj7nLw/jtEQ6ZREictbPPxk5aCiNJfE7c3kEYIaxoFZHEA5nBTp7rvh1Jq X-Received: by 2002:a05:6a00:2e01:b0:693:3fa0:5ffb with SMTP id fc1-20020a056a002e0100b006933fa05ffbmr16666179pfb.21.1696331710527; Tue, 03 Oct 2023 04:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696331710; cv=none; d=google.com; s=arc-20160816; b=vGpJaL1K/TLvK4YeuF6hGeVqWF65pfYxG2GIGVHXkX/peEtxitkrb7vLq+U0Vqg7xD 8vy6sOBhjx6vlbt+tOtTPc5cm81M9jmXjIs2khwKX+vRCvM2uuqiaMg1aCbPDQU3oHfI pegakbgnzlnvSkZosyW/KcHts085LdpDw3jkKX6NaMt/mQIf3y6dxTLxVmNKO44pr6TG D66lhJTdMWf8H6P9SwDjyk4XvQ+hudI0umy8ieD9h6rVdqW1ihAKpjKS3PbMnPoKkXlw A/kZTRrxa44bFYjxVU7Ak9mzIYA4n6QT/Y39dIaqBwhzgs9ft5+pSpHoXVMs6XgFQyw1 EiKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=4gs8TGWI7jJ2RaG6p7NpQZXXHltGhHTkQt8/Upgwu3c=; fh=JPO2+f63+RHq4wEjU5sG6+ULTeOmtHRO30pRZqPOR7A=; b=Fs+opavt3Y+Jtlh/2D9BUK7D4nwW47JM2PXDh9cq9Fi8UF6bjeeSG4LZbSso01ZQG7 UkUuGy82CX/haVm1SDjnaWcH/TcnzEb/PvD/a3RNp3d1fWIr+Pb+shcbgiXY0D5IvRan 3SpDgDz3lZwd3bpCPorz8g6m76QCLyB8cfnxzd6fA9zWO+/J2xfdTE02ZPEYt7BYGbs8 7Un5E2TgT+xHC2FS3oxuWss7IUxGlF4vL7CyrpdMsrzGcqM4fS3gKT7bqI64cZaVLsLT EM1HpyKz2aaIx3l9unBm6QZRnFC2tLweoM6DI7g0JHQgMqfJ+GUWaLTDMCYsZExiaMcg VDaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QfGay9Yj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g19-20020a056a00079300b00690c19cb105si1176758pfu.250.2023.10.03.04.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:15:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QfGay9Yj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5198680CE7FC; Tue, 3 Oct 2023 04:15:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240081AbjJCLOb (ORCPT + 18 others); Tue, 3 Oct 2023 07:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239971AbjJCLOS (ORCPT ); Tue, 3 Oct 2023 07:14:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B59CAF; Tue, 3 Oct 2023 04:13:58 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 204196607328; Tue, 3 Oct 2023 12:13:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696331637; bh=FvSi3BSwzuy5WbsL2UYcyLOhw7c/SDxzR3WOj7ZEBrg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QfGay9YjZBSiEdEo2C8XiZnfHw9DmvvyRvqzvqIAdIhB6YirsTKyMaY9cD5NANA9H 7RuW7xOY4kUs1iksNfpQullJg0oGbdYocdtZXoAP1LqOO8J3gHHmg4zOmI1jcraAdV z/oXOm+83hEguOAyElTDFcUnBob6APkhAjjvpvb+FHmBFWLOm8qJDhEgFKd+D1tzzy ofw/8YwhQJXl7eokusuTrEyvq/y4zVYS9F68O64bNDikSpOBWchY8mKaTJ0vg9a21N 0zn+o49BwZx+g8DGl3nQE8LlSe0iuC/WATrKGI/kLE1WASGpFsHj0Nc3e6wIdBPp/5 +Gifj5NeDaCCw== From: AngeloGioacchino Del Regno Date: Tue, 03 Oct 2023 13:13:46 +0200 Subject: [PATCH 4/5] arm64: dts: mediatek: fix t-phy unit name MIME-Version: 1.0 Message-Id: <20231003-mediatek-fixes-v6-7-v1-4-dad7cd62a8ff@collabora.com> References: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> In-Reply-To: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabien Parent , Miles Chen , Macpaul Lin , Chunfeng Yun , Sam Shih , Frank Wunderlich , Jieyy Yang , Tinghan Shen , Seiya Wang , soc@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Eugen Hristev X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1934; i=angelogioacchino.delregno@collabora.com; h=from:subject:message-id; bh=USC6QZCCqTLO2M1u4nBUCKN+Ny3rpy5drCaAShL4ZgE=; b=owGbwMvMwCU2y4zl/NrpLRWMp9WSGFKlv+c/sCjWTUr0qDf89Cz97rdNdu8v7G7U2qjGuuh2X7X3 +566jlIWBjEuBlkxRRb1uzXZz9esZDzSfrYEZg4rE8gQBi5OAZjIAW6Gf/qisTLXJhpvWH3P7XXHj+ fPwiMF4zzWT+YSW7gxdU5ZkwrD/wCppheShevm/9HRZPDUK+n7fHCPt1DDyZktinW3PrHysAAA X-Developer-Key: i=angelogioacchino.delregno@collabora.com; a=openpgp; fpr=57152E620CAF29C5DBE574766833ABB5BEBAF7B7 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:15:08 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778732719794397435 X-GMAIL-MSGID: 1778732719794397435 From: Eugen Hristev dtbs_check throws a warning at t-phy nodes: Warning (unit_address_vs_reg): /t-phy@1a243000: node has a unit name, but no reg or ranges property Warning (unit_address_vs_reg): /soc/t-phy@11c00000: node has a unit name, but no reg or ranges property The ranges is empty thus removing the `@1a243000`, `@11c00000` from the node name. Fixes: 6029cae696c8 ("arm64: dts: mediatek: mt7622: harmonize node names and compatibles") Fixes: 918aed7abd2d ("arm64: dts: mt7986: add pcie related device nodes") Signed-off-by: Eugen Hristev Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230814093931.9298-2-eugen.hristev@collabora.com --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 36ef2dbe8add..3ee9266fa8e9 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -905,7 +905,7 @@ sata: sata@1a200000 { status = "disabled"; }; - sata_phy: t-phy@1a243000 { + sata_phy: t-phy { compatible = "mediatek,mt7622-tphy", "mediatek,generic-tphy-v1"; #address-cells = <2>; diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index 68539ea788df..24eda00e320d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -434,7 +434,7 @@ pcie_intc: interrupt-controller { }; }; - pcie_phy: t-phy@11c00000 { + pcie_phy: t-phy { compatible = "mediatek,mt7986-tphy", "mediatek,generic-tphy-v2"; #address-cells = <2>; From patchwork Tue Oct 3 11:13:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 147826 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2008091vqb; Tue, 3 Oct 2023 04:14:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi6uJ4uObV82BGcYZl9wFlbbljqaAzqINVPM4fYPCl5cIas0e04O7wct7jAbZb8xoR3dmD X-Received: by 2002:a05:6870:4192:b0:1dd:651a:7398 with SMTP id y18-20020a056870419200b001dd651a7398mr17866590oac.2.1696331689318; Tue, 03 Oct 2023 04:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696331689; cv=none; d=google.com; s=arc-20160816; b=tDr4qmaFb5h4ssxCFgjB8SUKI2pMsDE0e3W68hcmgQ68SUvyQImVPHnOMfC17Uw44w ip92hiOsYjmHke7v9evWLTSD8F386YcOwObsH4fnmuiLT0UShUM0w7F94dRUxtMRYpza 9xGybPzBXYsRmZmncN2CyxGiCOVbfDr6pWRFp+vgiHoHXdSIXPxkfxFj3QoG2CJbPfy0 qMeau77s5xk+t+MJjB9xyqZ3vf6Wwa9J9nxix8FcDVQVHO5ze82Z9yIi3j6BXNgFDT6W JE0OCkia9ckWFfQJtPpJDTVcNZSOb8Pr4QYxwkkw8PPrx/Q03zdS6mVmLJiV5fknedfN Yybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=/3ih7z3JVjyxDrJ2/7OmrsGgClAV+4gWhD7F8/b2948=; fh=/DDqlXkAL1yhBYGQMjMdnWC5trUDKtC30whiD83un2E=; b=OyL9Cfbg7IRHNJZo6qA5v7LlL8Z3OBulWL9nSjiweSvrIJBayFWYBym3bQk18zjMfc +mWK2t2t2qw91nOCWQ6vhy8BnITLLNeUNO8qcafC6ODwVoiFG10S1rNjBr8B9XtS/rXK i/7TPuWuDcO2SNL3kJBXdI5HS1hrk+oJ8RKLZvm5AaUmp3xrJB3k+hjUBrWtucaM4Mgs QBdsTbF6sbSoFuqs9tzK2cY7BlOTpVMOR5vKfqpY0ub1ydw4Ogj/v2lxZFrU4Q4MK85+ Zj+w2pyzzPzt27A9z8kpT42CfO/Tnku3cWdvUow9JRrQQrZyxrLgpTq4Pzkz46tpXlXm Jphg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LGlEBYbu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id n8-20020a637208000000b0056546b5fef4si1170106pgc.232.2023.10.03.04.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LGlEBYbu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 81DA9828E87B; Tue, 3 Oct 2023 04:14:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240029AbjJCLOm (ORCPT + 18 others); Tue, 3 Oct 2023 07:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240089AbjJCLOh (ORCPT ); Tue, 3 Oct 2023 07:14:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB45193; Tue, 3 Oct 2023 04:14:13 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 290616607330; Tue, 3 Oct 2023 12:13:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696331638; bh=hIZCBWOdq56nnFmuMw8Yfx0EaOSNWmye+u5MsaxkvMk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LGlEBYbuY63Hchodh7bTyq5hzODdZChQ/OdstXwzcxqLmt0ucGXdNpEzV6TIUZf9u ki6CZXIR1uAvPAV50mM5Ooqd6A5rjlLWqUpkF99k10n7UFrbrbfftrVibulI8qzVh3 sEaz3sAGneEL9Ck3aSHOvAtnyxtfxc1WNPFwYR+EwrFrw6XJO4DHjxsWyyPfVPICQq DNuG1kZd1iMzb/FfdOQ/Oq7jHxVhT5bBLtlg7S1inH814KXZpfSFbHIuNMSAb9ZPGj bagR0BpDdi3FErFpd8gsvAflzNo8bOATDPl1xL5Sa+zFIxawFJjwDlVA1FE9Olm1Ea j8HZFvL/FDw9g== From: AngeloGioacchino Del Regno Date: Tue, 03 Oct 2023 13:13:47 +0200 Subject: [PATCH 5/5] arm64: dts: mediatek: mt8195: Set DSU PMU status to fail MIME-Version: 1.0 Message-Id: <20231003-mediatek-fixes-v6-7-v1-5-dad7cd62a8ff@collabora.com> References: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> In-Reply-To: <20231003-mediatek-fixes-v6-7-v1-0-dad7cd62a8ff@collabora.com> To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabien Parent , Miles Chen , Macpaul Lin , Chunfeng Yun , Sam Shih , Frank Wunderlich , Jieyy Yang , Tinghan Shen , Seiya Wang , soc@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1870; i=angelogioacchino.delregno@collabora.com; h=from:subject:message-id; bh=IZfn1ZaZiDCR69psn2/IYKM29jkr+w6U1WIz4R61yqQ=; b=owGbwMvMwCU2y4zl/NrpLRWMp9WSGFKlv+eXcT7jOS70uXRLdu9Lf9VuMcYHfR8OFWz/mDznn9/H wxrHOkpZGMS4GGTFFFnU79ZkP1+zkvFI+9kSmDmsTCBDGLg4BWAircaMDG84zh3bGHmkhNlz+4uQz8 9XxLzluLWr5p1g6leLrrNtlUIMf6VOWSr9EV1fsM48WLKz8PiyZ61Nrz+t6FxjOOVwolS1JTsA X-Developer-Key: i=angelogioacchino.delregno@collabora.com; a=openpgp; fpr=57152E620CAF29C5DBE574766833ABB5BEBAF7B7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:14:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778732697103465105 X-GMAIL-MSGID: 1778732697103465105 From: "NĂ­colas F. R. A. Prado" The DSU PMU allows monitoring performance events in the DSU cluster, which is done by configuring and reading back values from the DSU PMU system registers. However, for write-access to be allowed by ELs lower than EL3, the EL3 firmware needs to update the setting on the ACTLR3_EL3 register, as it is disallowed by default. That configuration is not done on the firmware used by the MT8195 SoC, as a consequence, booting a MT8195-based machine like mt8195-cherry-tomato-r2 with CONFIG_ARM_DSU_PMU enabled hangs the kernel just as it writes to the CLUSTERPMOVSCLR_EL1 register, since the instruction faults to EL3, and BL31 apparently just re-runs the instruction over and over. Mark the DSU PMU node in the Devicetree with status "fail", as the machine doesn't have a suitable firmware to make use of it from the kernel, and allowing its driver to probe would hang the kernel. Fixes: 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board") Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230720200753.322133-1-nfraprado@collabora.com --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 4dbbf8fdab75..43011bc41da7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -313,6 +313,7 @@ dsu-pmu { interrupts = ; cpus = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>, <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; + status = "fail"; }; dmic_codec: dmic-codec {