Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1037193iob; Fri, 13 May 2022 20:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzlQCLHiDKLwqSdaF6AcCSP2UvkdGGQ/KRrd1RMRU01yGP1a2eAtAGgz7GqPqJj79mnRQG X-Received: by 2002:a5d:6d51:0:b0:20c:e06f:702b with SMTP id k17-20020a5d6d51000000b0020ce06f702bmr6257633wri.502.1652499281779; Fri, 13 May 2022 20:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652499281; cv=none; d=google.com; s=arc-20160816; b=SoK/kcRyy764XkSnMS+KlwPfOkAJH9AImUEpzP+eFoXphzHni1Hq+HYyU/zTMLcUUv PouJVArM2WtcZrsCXOVThYleCnEWvpu1RhAvlCO0hxSIUP+gvfCahlWJxw5aoa39KgAO 0C2Gp4gEoDPo7o9xTysPnN8IO4/pmb8GI12JNMovcDBRUT4XBUKoH4buMhJdVleFLp9Z g514HxOYoWRNJ7pICb9mFbsFeWWjReFJRzZ0/iLITUQhDdTt3ZocdmFCiBDp93C3lShs rZtZ94jcfCc53IJv6hG28kZuWR8GdQBfOUQwCDJ7hLO3/Y/lnVu/Ru0k9Vr0Xi8p1bE4 KloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NpSINpDETSbqQ8kuCYB8/3th0pcSa+77c/avszgXaYU=; b=ZEaOL/BfMPUl6GgfIn4QPlDTcB3e98vgcBBqqrQT04cUhMUZWjPkIxwTKC22QcUWao Zx4Ret7/UcDFID7bT1+VJfuI6RAYQLNRxjzpbZkYY6axBt8JwUgw96uNxA5JaVkfOY9Z b+3b8tLlHeGU1WmFzxqeGXWwX9UDG6JOsSgrcZgJSukma4Gg/5m77jlORe5glLfEc/v1 7vEEuBDGx1MZ4QQAdtEYpekZI+WgCGc2vwfSjQ1oT7x6hgQMXZLmkh4RYRTj7Yt0GRUr aOI8d/7RRteNEqb91ZmTKMt424cboQioRWtjf4oVEUs5YQXFAGmJoGk24y36gzawy8Kv s+Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVgumAXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e15-20020adfef0f000000b0020c5fc22ee5si3700110wro.57.2022.05.13.20.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVgumAXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 409E24360CA; Fri, 13 May 2022 17:10:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378522AbiEMI6c (ORCPT + 99 others); Fri, 13 May 2022 04:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243338AbiEMI63 (ORCPT ); Fri, 13 May 2022 04:58:29 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6769D104C90 for ; Fri, 13 May 2022 01:58:28 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id m25so9424735oih.2 for ; Fri, 13 May 2022 01:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NpSINpDETSbqQ8kuCYB8/3th0pcSa+77c/avszgXaYU=; b=oVgumAXJ+VQc7CQO3qYv73vAoQnhh0vFgw3BxSBiCr2EYIifreB+9BrI6ZNmnhIKBx 92Uc0Gpwu1ET19ShHNwi4x3AsOWl3s7NSQILJ0J+IdAnhwortPYFAoDGWIRmg+5GxQHw 2xxGUqcIotThN96zCVpp7grCwO6X/NIohPfQZEYmiX21UMcniP4hAHvp/fEubjP1cfh/ cEEmCGT4ja2naAQGleImvN0huyjfCQlzr2P1MYg8bRfn95MALtdvPMIOB+AJGoqCgL/5 Rd6mUvUB7QhIyHuZHfBebJqxyN7wksjrjF02Ah/+0OZQWJlSi1wyYqvQqtHkJ//4fAdb lFwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NpSINpDETSbqQ8kuCYB8/3th0pcSa+77c/avszgXaYU=; b=Kd5sXqPJS3wj6ZRNSaMhcAYXuhFWAp5kQpZfsb38gyOk3TADq961WWGJ18cesXjRss 0cFp0KvNeXL6yR0t90229wHwqqqeqhllhZdrKAelvB4duPR3oM69qnl4jQWCgLLr5Xvk O3QpVmEq+Ipmpt23Lkt92vTrXgh+jITMmE40JFFviXqgbrrAR5L/cnF60g5GyfhzcOVN yU7fZi1Owi9ESaJovOq0hgqQs39bCIdd75JToGBE3uO5htpd8O0pHNdtX3hl4nED5uSO wk2MWzgLhiwfMN+hS2Yn2rx8WWUs3Hke5TatOytlNIjxmeIRCVtQvtqKzprANQnIFK4G 0zNw== X-Gm-Message-State: AOAM533Q4+74mNbKMLuJ8R0gVHhHxwq9cx77N5IcLzKpbBd+Fc8QgQrw PaaJmiFuyzW2/8MYHR2mkB7ilZ89I265exwIwQ2X7C9Yz6F5lHyc X-Received: by 2002:a05:6808:114d:b0:328:aaa2:10c9 with SMTP id u13-20020a056808114d00b00328aaa210c9mr1828896oiu.217.1652432307735; Fri, 13 May 2022 01:58:27 -0700 (PDT) MIME-Version: 1.0 References: <1698297.NAKyZzlH2u@archbook> <6587375.6lpfYT6tjA@archbook> In-Reply-To: From: Etienne Carriere Date: Fri, 13 May 2022 10:58:17 +0200 Message-ID: Subject: Re: [BUG] New arm scmi check in linux-next causing rk3568 not to boot due to firmware bug To: Sudeep Holla Cc: Nicolas Frattaroli , Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Heiko Stuebner , Liang Chen , linux-kernel@vger.kernel.org, Kever Yang , Jeffy Chen , Peter Geis Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello all, On Thu, 12 May 2022 at 16:34, Sudeep Holla wrote: > > On Thu, May 12, 2022 at 01:11:22PM +0200, Nicolas Frattaroli wrote: > > Hello, > > > > sorry for the late reply, completely missed that there was a question > > for me in this mail. > > > > On Donnerstag, 5. Mai 2022 11:40:09 CEST Etienne Carriere wrote: > > > Hello Nicolas, Cristian, > > > [...] > > > > > > Indeed the firmware implementation is wrong in TF-A. > > > And also in OP-TEE by the way: > > > https://github.com/OP-TEE/optee_os/blob/3.17.0/core/drivers/scmi-msg/base.c#L163-L166 > > > > > > @Nicoals, do you want to send a patch to TF-A, or do you want me to do it? > > > > I have no experience with TF-A, so I'd prefer if you could do it. > > > > In good news, Rockchip has confirmed they're preparing to release RK356x > > TF-A sources, so I'll be able to port the patch over to their sources once > > they are released, if they don't already apply it themselves. > > > > So, there is no way to get a blob release with the patch applied ? > We know it is a bug in TF-A and if Rockchip is using that codebase, it > will be the same bug there too causing this issue. Waiting until the > code is released and the proper TF-A port is done may not be acceptable > for many developers. So someone from the rockchip doing these tf-a blob > release must get involved here, understand the situation and get the fixed. > > We can workaround, but I want to hear that it will be fixed instead of > getting ignored until proper port is available. > > Etienne, are you not the author for the related TF-A code ? How can we > get that fixed in the TF-A code base. If you are not, then I will try to > get my repo login credentials sorted so that I can only push TF-A change. Yes, I'm the author of the code. I have created a gerrit change in TF-A to fix the issue: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/15196 OP-TEE implementation also embeds the same scmi-msg drivers and have the same issue. I should be fixed by P-R: https://github.com/OP-TEE/optee_os/pull/5334 I will ask TF-A if this specific change can hit TF-A release v2.7 tag, if posisble. Feedbacks are welcome on these 2 forums. Regards, etienne > > -- > Regards, > Sudeep