Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp917101iob; Wed, 4 May 2022 10:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB5FHWOdcBQ/+3aW6Z6OymcoP0vGI9xFKdJx+NSDbQPnqMnZmReh5lboKOuG1ghQRuypqf X-Received: by 2002:a05:6a00:15c7:b0:510:48c9:f302 with SMTP id o7-20020a056a0015c700b0051048c9f302mr2774947pfu.23.1651685702731; Wed, 04 May 2022 10:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651685702; cv=none; d=google.com; s=arc-20160816; b=qDCS42Clbt/q4zP2xKndffci+Efe1E5VlD/CeV20A6YTpctq1EJQjwopyS2D64/13L KrqkrfhocjfAYZiusGRDaSSmoxBXlRqBxnumlJU5Jz4G8OP1jrue6+nY1y7NgtXz6T9P gw8aIPfz69mMYzfsylIook0P1po0ESuV+BPANN8/TMnqH1z+49nC/w2K7/QNNWOi/p4K PIaYbavrxSYTvJr1+aoY+iM3RhYNr+FGbGrLi5V+r3IbZVeolTG86z374iPVPagyFC1H Jj5PM2veAuCVTRdNFm9UR3TYZEymsPPb5O/W7OAmMbrva+V6hY3sMUfgBwKp5OGpAUY3 B20A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bZOr4HtGpaWrCWq6twhnfSIMm+TDbavFaWLE4oY5Z9c=; b=dpTVl5ZnzEkhUuJ7nZFEElaQWnr12DGqDFvcuI8XA2Nwyus62KLzJavCQU1EnSus02 7Y3n3eocVwEryhs9Bc1s+xMOpx4DQ3WBDoIqwoASh/A5VCgXuGfgmVs2tJ00v7WeGE+x FCPfRKwBJ0vSF9Q+9uWn+G0f0bCfbrQScYaPGOnU6KOtHVmr2bJExreRCjH2+E1Nsd+S BlQBprvcPLl94URsxHn2Q8rKBCd4rxi0OaezGpdkDKZmMRv4UCRMCe8C8YwGJatBIqGV BNzlRZXmU2Ni3dG9ar7uFs/wV0WaQK2p+eeLdF7tOqESK3woFEOiPUc/zawt/VVsTVgb aUOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nDXrvhpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s65-20020a637744000000b003c283b9e984si5161124pgc.106.2022.05.04.10.34.45; Wed, 04 May 2022 10:35:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nDXrvhpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbiEDMwr (ORCPT + 99 others); Wed, 4 May 2022 08:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349977AbiEDMwq (ORCPT ); Wed, 4 May 2022 08:52:46 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC10366AE for ; Wed, 4 May 2022 05:49:10 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id dk23so2664616ejb.8 for ; Wed, 04 May 2022 05:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bZOr4HtGpaWrCWq6twhnfSIMm+TDbavFaWLE4oY5Z9c=; b=nDXrvhpETmVWGr629uSMqiX19ijYfRXKXMhGz8o5tIvCP8S9zxByN1mXXSY4xpoyTF jIY9vEofi63VivguJwzrnZNRqBW7uDuHVGNtAWDnzg4vNj4H2/zyrb0QptxtKV8gLC1F dv0FOA9BnfulRLlZab66QXb6HOMz27lWvJIcOv3yF31liu7NCeh+j9BrInw3No6No0Uz d9qp5fioReOska3ktJXacTPQ6LTbdnbYSe4vg2Fe96CAXuIjRPmUXLKUB9znlaVBAAot UW6WNL/GzCT1Ezrs0i+ltz9xZUWqgynEtu3Y55k7MXOS1CqpSn6V6FWrEpjaVq8skmIW 9LlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bZOr4HtGpaWrCWq6twhnfSIMm+TDbavFaWLE4oY5Z9c=; b=UwUziZx6xk4DSWxOazpkeK0psl20SiAQcF0wNhAo3yihWatgyLFam6LWszUUaGKTLw J4Gr8NTxhMz5fSAY3rgzzPFbGky75YYSFOKZF440EHS4Cvc5hsht0sqHbMePp2FpGfiB e39o+/9ZOPxXtM36Mus0Unaxpkcq9oIwWCJtEcjhncaqwhkcG1VDSX+8r5HNU8uGurlk iROcoOOMnZPSotVNGlyPK2TeGfE84Jzzq/UKBp/NRoMMGnxZ/YrFbrV74AdBksUQhZVI X+1vulF9PeCSBOlvz+bMK4L8pwX/xj+m9iaxc0XIg0nAeCuQxzESvhdIg+BJDnmY/Ady olbw== X-Gm-Message-State: AOAM533nnosoNjGdlu5tKej7hanO2NqSSN1LKB/DqM/Wya2jJ0uFpKjC LBwQqp6LF8phRAzthKlfg5k= X-Received: by 2002:a17:907:2d24:b0:6f4:3152:3d1a with SMTP id gs36-20020a1709072d2400b006f431523d1amr15972250ejc.324.1651668549151; Wed, 04 May 2022 05:49:09 -0700 (PDT) Received: from archbook.localnet (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id qr48-20020a1709068cb000b006f3ef214e0bsm5768686ejc.113.2022.05.04.05.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 05:49:08 -0700 (PDT) From: Nicolas Frattaroli To: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org, Heiko Stuebner , Liang Chen , Sudeep Holla , linux-kernel@vger.kernel.org, Kever Yang Subject: [BUG] New arm scmi check in linux-next causing rk3568 not to boot due to firmware bug Date: Wed, 04 May 2022 14:49:07 +0200 Message-ID: <1698297.NAKyZzlH2u@archbook> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Good day, a user on the #linux-rockchip channel on the Libera.chat IRC network reported that their RK3568 was no longer getting a CPU and GPU clock from scmi and consequently not booting when using linux-next. This was bisected down to the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/firmware/arm_scmi/base.c?h=next-20220503&id=3b0041f6e10e5bdbb646d98172be43e88734ed62 The error message in the log is as follows: arm-scmi firmware:scmi: Malformed reply - real_sz:8 calc_sz:4, t->rx.len is 12, sizeof(u32) is 4, loop_num_ret is 3 The rockchip firmware (bl31) being used was v1.32, from here: https://github.com/JeffyCN/rockchip_mirrors/blob/rkbin/bin/rk35/rk3568_bl31_v1.32.elf This seems like a non-fatal firmware bug, for which a kernel workaround is certainly possible, but it would be good if rockchip could fix this in their firmware. The user going by "amazingfate" reported that commenting out the ret = -EPROTO; break; fixes the issue for them. I'm writing here to get the discussion started on how we can resolve this before the Linux 5.19 release. Sudeep Holla has already told me they'll gladly add a workaround before the 5.19 release, but would rather see this fixed in the vendor firmware first. Would rockchip be able and willing to fix it and publish a new bl31 for rk3568? Regards, Nicolas Frattaroli