Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp577979rdb; Tue, 19 Sep 2023 04:30:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHotTY5bisLSbs/Cn2Kurje6T/+ZDFkQHKWXsw44oY8dEr0+WLfhOv6OVdPxk65Bbya5om8 X-Received: by 2002:a05:6a00:2344:b0:68e:43ed:d30b with SMTP id j4-20020a056a00234400b0068e43edd30bmr10206027pfj.21.1695123055549; Tue, 19 Sep 2023 04:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695123055; cv=none; d=google.com; s=arc-20160816; b=nEKrfVw/xuqCIVZD/U7FUygC2/8qqAqSEfqVLflO/TRxgEVdBie4PAu5CHLKauVpcu LSCYE3T/QjcNGfXNLuHRzZnEo6gIJM36FB7iL7j929wvO/T5fMdqxVJB6YvU40Yw4GdB cE269uqsaS2N9b38WHMqMt9PK1pCZNg3nYOIJTbdN2TjyA94aCnHJsse8JGB5BU7wk8g VU/MelxfOELNGZwgFZbslmJQ7ezlDTsOHTuDkJbFoPgrKVNA3McESXF+EzoKxPKZpVSO 7rWE732opj8hFrPzOqQZNjbpVXepNW09a8vhIom4TsIkBMMPQBAcaiAUU+Zda/+xZqKa YE5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3q8O8tWvnLQBFm13Z0K7FvFC/W1hQRUqZ5JIYPkfrQ4=; fh=E47gGpHJBeCM58d1d5d+9OWzmvAkhjWIXhtXWt06sdQ=; b=Q6WNJFINqdLRcjZNE+POKQGcbK+nWure2B/z2ZTemFslAO/g6uc9W/Ndfc0N4S3M8h nw5n+AZ2xa9PVYoZfOC+7w1qvqPdaU8n0yByHbgKSye0sr1ARKTw8DwfBckndFrg2nXp hhMrPHiqlV9cp2T0jZbQo/CwnUNxJwuQac1kH5h7U1SDd3Wv1bIoWl+louqXMu4I8OEI N3vE2nGYyf8O33iUXX40LU3GsOJLMjZfabrk+oNgYJ29r9Zsh1iTna6bFl8WhZcytk1Z lumVFZMM/su0JcR47nNfAf9se9EelDl2K9Rb8lAyXXUeiEEd5JL+xSANfULXDqB7JXXf UMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dV91rxTw; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id fp7-20020a056a00608700b0068fce0c7193si9595402pfb.282.2023.09.19.04.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:30:55 -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=@chromium.org header.s=google header.b=dV91rxTw; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DF58C8328AC5; Mon, 18 Sep 2023 22:08:15 -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 S231204AbjISFHs (ORCPT + 99 others); Tue, 19 Sep 2023 01:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbjISFHq (ORCPT ); Tue, 19 Sep 2023 01:07:46 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC35FF for ; Mon, 18 Sep 2023 22:07:39 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-500bbe3ef0eso6181392e87.1 for ; Mon, 18 Sep 2023 22:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695100057; x=1695704857; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3q8O8tWvnLQBFm13Z0K7FvFC/W1hQRUqZ5JIYPkfrQ4=; b=dV91rxTw/MLnB+Ine8ZmNXwK/oeYUIEZye/fSGnee46HIURUKElX/qZzwFtgWAEtc3 b/L6bnCSMgPTLgIEgrGitLqvoHzf1WZ7yyFN4lhfw2sbCe7vYiLwugUEjSYtkS5gFWgu xVm39ur227FrjLx4HaNSKFrFCTfmkvsUoxox0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695100057; x=1695704857; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3q8O8tWvnLQBFm13Z0K7FvFC/W1hQRUqZ5JIYPkfrQ4=; b=Bx2aG2jTtvfu2xzpMoRHcxTCJ+qNtk1xwKBiK0+Cl5SoYjWCimEtlCF0GJX1yqvD2/ jutixqs/7lKKxSClrSvUIkbtyXLd1hk3a5WOuXvkEU94r6B7xYIp6bGQBxwkQ6+Ozz80 cFC0W5CoVLy6KDqKORL2ieygkwb/mp2MouAs+gy13ebu4OAB7188dF2RxfSqF/vD6SWY HhQoAGFBI9J1bab6DNui+eLW4/vAmZOifrQWTYIyEbZSFSv/+GVt8zJdq+M2a627fTiE 2UhxrFB+ksy+jXUC6SEU2RMVagKhsI+afDG7SYnFPKgjBO8nRjC/fZ4H+pqVbResuh23 i4MQ== X-Gm-Message-State: AOJu0Yyhzj4BAFe/1IgwQvWNoLPCvPu1QvARweBB8XaI02FIyHN0Qp8E VghxxzE8HE8ttYPoZF9UhHRTVJzdiDKfxeZwaTjFgQ== X-Received: by 2002:a05:6512:3b06:b0:4fe:8ba8:1a8b with SMTP id f6-20020a0565123b0600b004fe8ba81a8bmr650772lfv.7.1695100057325; Mon, 18 Sep 2023 22:07:37 -0700 (PDT) MIME-Version: 1.0 References: <20230918103141.126271-1-laura.nao@collabora.com> In-Reply-To: From: Chen-Yu Tsai Date: Tue, 19 Sep 2023 13:07:26 +0800 Message-ID: Subject: Re: [PATCH v17 00/14] Add support for MT8195 SCP 2nd core To: Mathieu Poirier Cc: Laura Nao , tinghan.shen@mediatek.com, angelogioacchino.delregno@collabora.com, Project_Global_Chrome_Upstream_Group@mediatek.com, andersson@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-remoteproc@vger.kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 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]); Mon, 18 Sep 2023 22:08:16 -0700 (PDT) On Tue, Sep 19, 2023 at 9:17=E2=80=AFAM Mathieu Poirier wrote: > > On Mon, Sep 18, 2023 at 06:44:25PM +0800, Chen-Yu Tsai wrote: > > On Mon, Sep 18, 2023 at 6:32=E2=80=AFPM Laura Nao wrote: > > > > > > > Other than patch 2 and 14, I have applied this set. The remaining = patches will > > > > have to be resent to Matthias. > > > > > > > Thanks, > > > > Mathieu > > > > > > Hello, > > > > > > With patch 2 missing, the SCP is not probed correctly anymore on asur= ada (MT8192) and kukui (MT8183). The mtk-scp driver relies on the existence= of the `cros-ec-rpmsg` node in the dt to determine if the SCP is single or= multicore. Without patch 2 the driver wrongly assumes the SCP on MT8192 an= d MT8183 are multicore, leading to the following errors during initializati= on: > > > > > > 10696 04:33:59.126671 <3>[ 15.465714] platform 10500000.scp:cros-e= c: invalid resource (null) > > > 10697 04:33:59.142855 <3>[ 15.478560] platform 10500000.scp:cros-e= c: Failed to parse and map sram memory > > > 10698 04:33:59.149650 <3>[ 15.486121] mtk-scp 10500000.scp: Failed= to initialize core 0 rproc > > > > > > The issue was caught by KernelCI, complete logs can be found here: > > > - asurada: https://storage.kernelci.org/next/master/next-20230914/arm= 64/defconfig+arm64-chromebook+videodec/gcc-10/lab-collabora/baseline-nfs-mt= 8192-asurada-spherion-r0.html > > > - kukui: https://storage.kernelci.org/next/master/next-20230914/arm64= /defconfig+arm64-chromebook+videodec/gcc-10/lab-collabora/baseline-nfs-mt81= 83-kukui-jacuzzi-juniper-sku16.html > > > > > > Reporting the issue so that patch 2 and 14 can be resent and merged s= oon. > > > > This being a backward incompatible DT binding change, maybe we should r= evert > > the node name change. Or, the driver could simply count the number of c= hild > > nodes that have the "mediatek,rpmsg-name" property, which is required. > > > > You have a point. Can someone send a patch that makes this patchset back= ward > compatible? Please do so as quickly as possible to that it can go in the= next > merge window with the rest of this feature. Otherwize I'll have to back = out the > whole thing. I sent out a patch [1] implementing my proposed change. ChenYu [1] https://lore.kernel.org/linux-remoteproc/20230919050305.3817347-1-wenst= @chromium.org/