From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 815E6606A31A for ; Wed, 2 Dec 2026 12:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=q6R5v8Qn; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=amlogic.com header.i=@amlogic.com header.a=rsa-sha256 header.s=selector1 header.b=ynnrMqgS DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:From:References:Cc:To: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=cK7LFRk+Vif3rFTl1ahgowE17fLIbTWNJDGuQSILiZE=; b=q6R5v8QnwFvPqn3DgE31zdl/8G LFSH5Z0A+XgoxCy9cC6IMXz+m8cMYHTBLl91XSxjOWicIlNia22iXgyT4YF7jZmOmIXnApS4LLWJH bw/5LTEmejbITS2Ud3899wjX4uwaw3kyP0C0qCnIIAzj6zmbi4BckHPeZC01Ov6IQ7i49rDDwgv9w 7d05DBM3Wbr+rWOtIwfdaE8rgarcSnvlz2l0aojoC5DrZ/eJv5Mc2piL4jiIRLS+54YLJDPuk64LE f1JN8fd4WpWQJTmHyc8Usz0THyrNsEFFRah04x1Qt7R44kL2+Eq/qWrWLW/jeQX9M8h6RZmTePYgH C0+3PMJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYjSm-0000000BThb-2Ih1; Wed, 02 Dec 2026 12:29:32 +0000 Received: from mail-japaneastazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c405::5] helo=TYPPR03CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYjSj-0000000BTge-3gws; Wed, 02 Dec 2026 12:29:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y5qSu9CKKVY3C9qG8R9EE2kKGOHBHdQmm9MG3WSRYw6bFgdXwlS6+ANT6AQxHC8oeBvPYp3f6qNxZOcPVqo6MP24Hy/VoNybPiepIlEJhsVGMComomx9HC3k6mz0K0aJVj/+gupNRz4JAlbiHxHbxByNPZm8IAfsn/ZSD21+jAkzy6dZZ3g7dKFManQc1jgJz77H+kxPJ4YIS4q6kzio24/bcJeTaBQC1dPwnsKuPnfXzBSE0lnIGrHtuyJo+BPxksh8suei1pLjuIyOKOqcIUq5YVMZx9uSILHXQSoYoD9HjKYjkssIp4EfGyTIt89U83wV9zHIOMUHRAFxyAzmHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6J81GDlbft75Y4PsL+A7WJ9jruVFAYiuJoX2eS6B5P4=; b=fsw56LEXkiiTOSen7m9o1Ir/GQR+hUuoCKcyVJslDiPYlHDG0bi6VtQiX84IttIUBKsYu+Vim9P6fpRNic0BXqUxpaBcGAOUiWqLSN0AQVQcibZVsGxlKiWPW6m4RvK6rFtDJU/zpGoW7o/qI+BCDLGXcGeZvzOAJVvC5xEgqAMDEPL4rchpPE7WzeyjKOf/CXeAm9M0beRFYAkGn47Fn6+qKxmarDHryWTN/BgZnNG6/vQOfQi62HyFSW23JsCwcrvLws/aNZwxnwt/98qshFRPnjb5NqZ1czc3E0eRIPb31sKwGj+gpAcLzwRf5Ej6rVFTYJXjFey3z5d5f8Bliw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amlogic.com; dmarc=pass action=none header.from=amlogic.com; dkim=pass header.d=amlogic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amlogic.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6J81GDlbft75Y4PsL+A7WJ9jruVFAYiuJoX2eS6B5P4=; b=ynnrMqgS6B932yQrWr2l2HdQ9SFo59sV7DajdNZ/pw2Y/QjHnw2iBdTHW2Ff1c5c43qhgMQed3+f9AHw85sfgA4CTxjif/NUyBlnBVCCOAygdUk3z+9VyltUu6IXS2gFyVw5x0XGKuNndO3Vz2QmSk4ldj8eL+S5iyGvFAqSqKdK04x2GoQ55bv5Cske5eSE/npsW6SaD7F9xWIy+TMA31IvSgDwl54/emgdSgwvX2VJNrkSyOuVP/gmEpZE0hR/W5BtxUnLZ2FPMsXUeM+QlbdLAotj8acx+w4YWzYLys2aeLu1sfqY6Ha+8/7Vsskj0d9me4NECawEmyOf8WNk9w== Received: from KL1PR03MB5778.apcprd03.prod.outlook.com (2603:1096:820:6d::13) by KL1PR03MB8355.apcprd03.prod.outlook.com with HTTP via P2P; Wed, 2 Dec 2026 12:29:19 +0000 Received: from KL1PR03MB5778.apcprd03.prod.outlook.com ([fe80::e1e:5c95:a889:828e]) by KL1PR03MB5778.apcprd03.prod.outlook.com ([fe80::e1e:5c95:a889:828e%4]) with mapi id 15.21.0662.012; Wed, 2 Dec 2026 12:29:19 +0000 Message-ID: <8dd30f81-2b94-4fff-8c75-b7c7a62cc3cc@amlogic.com> Date: Wed, 2 Dec 2026 20:29:14 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] T7 SCMI firmware: CLOCK_ATTRIBUTES reply is too short for the clock protocol version it reports To: Cristian Marussi , Lucas Tanure Cc: Jian Hu , Xianwei Zhao , Nick Xie , Neil Armstrong , arm-scmi@vger.kernel.org, Linux ARM , linux-amlogic@lists.infradead.org, kelvin.zhang@amlogic.com References: From: Chuan Liu In-Reply-To: X-ClientProxiedBy: TPYP295CA0042.TWNP295.PROD.OUTLOOK.COM (2603:1096:7d0:7::20) To KL1PR03MB5778.apcprd03.prod.outlook.com (2603:1096:820:6d::13) X-Archived-By: MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: KL1PR03MB5778:EE_|KL1PR03MB8355:EE_ X-MS-PublicTrafficType: Email client-request-id: 3f0ff20c-ec04-4ba8-b86b-c11c63f9ae79 request-id: 92eb0a23-a48d-4132-de3f-08df506fe2fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|56012099006|260925022911599003|261022075727099003|260925021311599003|260925021911599003|261102124527099003|261021121427099003|261102123227099003|261021123027099003|261026140227099003|261022105027099003|261026121527099003|261028144727099003|10067099003|261009223027099003|18002099003|22082099003|5023799004|11063799006|4143699003|3023799007; X-Microsoft-Antispam-Message-Info: yGDGyAyK1SFmp//j/L7+lG1af65jq675Kxv7PR//QQoS6dnVQRMreElKwQdhLjqVdAOENX7R9Eq6LeCq74suuwlkmjKTCQJyfWRhA5CzfJmf9HlrXPZ1RxyH0ZsR1gf0lHALm4vV4xbDd4WmcJfl3LylKrMYz9vtLorD2bI6dclrRbHGD37ZlUCnh5dmk7a1WRoBCdBVOKagk6Yy4lu39nP8Mm/Xyur8Zxm0pg2OILMGp55FtLya7ygBiRKKmjrJak6AIZ7qjSnYn1VMedRrbbtwEi/JCJfaLUpyA9vhhThqnG9g6mSWmUjpJyOlXLG7COzVf+ajUSLRZWIIm9mgATsWy6HzBiE7i1oG4qjuJUuWWeagIlEtRWbIqnjJVGEM7DSKHxHdcOO5k0CpDKqMyluaCwDoIugs9GGNmiGf01fl4HQe4aGPqN2kT+w1hQMkmdxBs+4+wxDZ+YeQMhzCMLMkIFhJAiER6ckp96LmztSoLFJAB8NKakaM4vLNb3V9i6MprQlQqu+UxoYKCTYak3i4Co0CqsPJzRGJvK5D1XUFLTvyQWmLYfbXO5leDsjkvE3mSurjgtoaxBev10wWq29dNkMQXFKen4WOMELs3Vbcf89inJJyy2dE5nBJKceB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(56012099006)(260925022911599003)(261022075727099003)(260925021311599003)(260925021911599003)(261102124527099003)(261021121427099003)(261102123227099003)(261021123027099003)(261026140227099003)(261022105027099003)(261026121527099003)(261028144727099003)(10067099003)(261009223027099003)(18002099003)(22082099003)(5023799004)(11063799006)(4143699003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ekFoclJ2Q3NFQmNIaU9YZm4rVStRbzdwWCthQ29rTXdvYXJQUlI3TndSUnd6?= =?utf-8?B?ditINEV1Qk5IcVFpZjMxY05YTFR1RXFiME0rVUpuRVFRdkhDN1N6VGx3aWZy?= =?utf-8?B?SGk2TVRCOHprZVRQNUxIR2twN0RxdUY1WmhjbG55SndSOUFNcFN1d2dDZnFH?= =?utf-8?B?N1pySXdSNHNPblc5Qk1WN1djQ2Y0SXJOdm1mTzhZdHlHUVI4MWhKZXVrYnZR?= =?utf-8?B?Q0ZnRkZOMmd2a3pyOGt6d3UzRDNOMFRYU3NwWEN5SHFpOGVsTjRVWXlFRW9u?= =?utf-8?B?T0R5ZW1McEY2MGdZZC85ajNUVkhQdlBXQW1JbTlqKzdIcFlBQytyTkh5TXNX?= =?utf-8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YTlVeUFVeGlFdVdXRjhUTTBGWUFE?= =?utf-8?B?YWxZZGxRR0xyUVMzS3Y4T0hDM0NkR2NERm5tVVF1Z256ZDFBN21ibGhDUm4x?= =?utf-8?B?RVZzQ0pmblFQMmh4eFZUVWZzK01VVmdKK2pOYWpBT2E3czVqM1hIditzdzhX?= =?utf-8?B?dk0rZzVTNjNzWnFyZFF6cmNBTDRzMEpPMkJBQjJYUHBYVit4TDkwZz09?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92eb0a23-a48d-4132-de3f-08df506fe2fa X-MS-Exchange-CrossTenant-AuthSource: KL1PR03MB5778.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 12:29:19.2660 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0df2add9-25ca-4b3a-acb4-c99ddf0b1114 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kTZOH8wDzFsLhMYrRISiSme9Z0/J8fT4VzYYGHnV+ox107atEr7DjkqR/FFZjPyBgqs+KpFHCU1HQUkojOphyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8355 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_042930_046643_F7B71E2C X-CRM114-Status: GOOD ( 33.27 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-amlogic" X-Spam-Status: No, score=-10.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Cristian, Lucas, On 11/30/2026 2:45 AM, Cristian Marussi wrote: > [Some people who received this message don't often get email from cristian.marussi@arm.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > [ EXTERNAL EMAIL ] > > On Sun, Nov 29, 2026 at 09:19:03AM +0000, Lucas Tanure wrote: >> Hello, > > Hi Lucas, > >> >> I am working on mainline Linux support for the Amlogic T7 (A311D2) on >> the Khadas VIM4. The SCMI server in the T7 firmware sends a reply that >> does not match the SCMI specification. Because of it, linux-next no >> longer boots on these boards, and mainline will not either once that >> change is merged. >> >> The problem >> ----------- >> The firmware reports SCMI clock protocol version 2.0 or later. From >> that version (SCMI v3.1) the CLOCK_ATTRIBUTES reply has a >> clock_enable_latency field at the end, so the payload is 24 bytes: >> attributes (4), name (16), clock_enable_latency (4). The T7 firmware >> sends only 20 bytes, without clock_enable_latency. > > this is the typical case in which after tightening the kernel checks we > broke some out-of-spec platform running in the wild. > > While we'd like to have the FW fixed (as per your ask) we try NOT to > break existent deployment by using quirks when needed. > > I'll post a possible trivial quirk for you to try about this AMLOGiC > issue. Our SCMI server in BL31 is based on the upstream Trusted Firmware-A "scmi-msg" driver (drivers/scmi-msg/), v2.7 baseline [1]. In TF-A v2.7, the clock protocol reports SCMI_PROTOCOL_VERSION_CLOCK 0x20000 (protocol v2.0) [2], and the CLOCK_ATTRIBUTES reply is built from: struct scmi_clock_attributes_p2a { int32_t status; uint32_t attributes; char clock_name[SCMI_CLOCK_NAME_LENGTH_MAX]; }; i.e. a 20-byte payload with no clock_enable_latency field. So what Lucas observed on the T7 (37 clocks, HDR 0x14/0x03, expected 24 / received 20) is not a modification specific to Amlogic. Later Kamlesh added clock_enable_delay when he submitted a patch introducing SCMI clock protocol version 3.0 [3], So before this upstream TF-A adaptation SCMI clock vendors may encounter similar issues. > >> >> Linux log, one line per clock (37 clocks), with a debug change that >> only warns: >> >> arm-scmi arm-scmi.0.auto: SCMI Protocol v2.0 'AMLOGIC:' Firmware version 0x0 > > While at it, it would be good if the FW guys could fix also the reported > FW version which is now 0x0 BUT it should identify somehow the installed > FW binary blob...given that all of the SCMI quirk framework is based on > this. Regarding the firmware version, we did not change but keep the default version number of TF-A [4]. If this is necessary, we will deliberately improve and manage this version number later. > >> arm-scmi arm-scmi.0.auto: Truncated reply - HDR:002C5003 >> expected:24 received:20 >> ... >> arm-scmi arm-scmi.0.auto: Truncated reply - HDR:014C5003 >> expected:24 received:20 >> >> (protocol 0x14 = clock, message 0x03 = CLOCK_ATTRIBUTES) >> >> Effect on Linux >> --------------- >> linux-next now checks the size of every SCMI reply ("firmware: arm_scmi: >> Add centralized detection of truncated replies"). With the T7 firmware >> every SCMI clock fails, so devices that use them do not probe. On the >> VIM4 the SD card and eMMC hosts fail, and the board cannot mount its >> root filesystem. Older kernels accepted the short reply, but they read >> clock_enable_latency from past the end of it, so the value was wrong >> there too. >> >> Two other replies from the same firmware are also out of spec: >> - CLOCK_DESCRIBE_RATES: Linux needs a quirk for it >> (quirk_clock_rates_triplet_out_of_spec). >> - During SCMI initialisation Linux logs "Malformed reply - >> real_sz:8 calc_sz:4 (loop_num_ret:1)". I have not checked which >> command this is. > > This is an historical quirk that is enabled on any FW, because was > historically present on most of original FW reference from which many > vendor FW were forked....nothing really to do here...the quirk is active > and working... > >> >> Firmware on my board >> -------------------- >> BL2 : Built 11:37:41, Apr 12 2024, t7 projects/t7 g6adeddf >> BL2E : Built 11:23:05, Apr 17 2024, t7 projects/amlogic-dev g31eecf9 >> BL2X : Built 11:37:21, Apr 25 2024, t7 projects/amlogic-dev g767c913 >> BL31 : v1.3.2(release):2dd964006, Built 16:38:51, Feb 1 2026, >> t7 amlogic-dev-1.3 g2dd964006 >> BL32 : ATOS-V3.8.0-ec8c40b03, 11 May 2024 >> U-Boot: 2019.01 (Aug 02 2026), Khadas VIMs mainline build >> SCMI transport: SMC >> >> This BL31 is the newest one Khadas has published: khadas/u-boot branch >> khadas-vims-v2019.01-mainline, commit a7b06ca0498f ("bl31: bl31_1.3: >> bin: update to version 3539ff675", 6 Mar 2026), which contains Amlogic >> BL31 commit 2dd964006 (16 Jan 2026). >> >> Questions >> --------- >> 1. Can the SCMI server send the full 24-byte CLOCK_ATTRIBUTES reply >> (clock_enable_latency may be 0), or report clock protocol version >> 1.0 if version 2.0 is not fully supported? >> 2. Which other SoCs use the same SCMI server code (S4, A4, others)? They >> may have the same problem. Yes, Currently all our SoCs supporting SCMI server are based on the native TF-A v2.7. >> 3. Khadas: if Amlogic fixes this, can you release an updated firmware >> (bootloader) for the VIM4? Yes, If this is necessary later we can provide SCMI clock protocol version support up to 3.0 firmware. >> >> Boards that keep the current firmware will probably still need a >> workaround in Linux, so a firmware fix alone does not solve this. But a >> fixed firmware would help everyone who uses mainline on these boards. >> I have copied Cristian Marussi, who works on the Linux SCMI code and >> wrote the new size check, so that the firmware side and the Linux side >> can be agreed together. > > > I'll post a possoble quirk for you to test...it will be matching against > > Vendor:AMLOGIC SubVendor: FirmVersion:0x0 > > Feel free to adapt to your needs. > > Thanks, > Cristian [1] https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/ [2] https://github.com/TrustedFirmware-A/trusted-firmware-a/commit/c9e8300012113df5d279dbef5435c77f6b6dea67 [3] https://github.com/TrustedFirmware-A/trusted-firmware-a/commit/684952d17275d49ddb0fcb1e3d5df020fb5eae0f [4] https://github.com/TrustedFirmware-A/trusted-firmware-a/blob/main/drivers/scmi-msg/common.h#L21 -- Best regards, Chuan _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic