Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp965050rwb; Wed, 28 Sep 2022 11:17:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q/93uckDI/WmvcWqOVgTTfXQ085VM90CHuNpbiwSwYqz1nTaamE1phTsfzLHcqBGoPwV4 X-Received: by 2002:a17:906:5a6a:b0:77c:2c7f:bd69 with SMTP id my42-20020a1709065a6a00b0077c2c7fbd69mr29160627ejc.283.1664389077653; Wed, 28 Sep 2022 11:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664389077; cv=none; d=google.com; s=arc-20160816; b=ex7zY5HiC57cPvRWWMTSBkxJFGuKdrBNCX4fu54PzCwFN6Tl+0V6xrEGqCFJnca7q0 Ci6+CN5HaGWTvW3zO7dwIa+7Y+Lvu8JgZnjGzOkv3avNkuUm1uN+G8JRDTciRKgmdJcX HqBPqV5a9HUJzC0IhzRiy8yUkdzTGNxAaUmTJxatIXeC8HpO8HZSRIrGTnS2JFhLav1t +NW9Zq92yxQ3wsDJXeAM/nmPiF/B3skp9Fhbew71RWEsSNaW7rwt5enELnKNmQC3qGtY uuhIytwb3Gd4ScXTb3NgsUvhVWHdMmflIlp5XQtS/xzaHkosjHePryOdEcBmFzr5o3HA J3Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=szYRUNTBzhtYD1dEwWP+61BLschhE4HnOh0yg58NYWc=; b=fwwWgGWTT47ATF8/SWbP7q2zSyvcCSO1g4PsAQh9st0QWkPapp5YuxQTLAQNUHAS8Y keBBhTLImrodWBAdBDjlJF/sEpy4zPNp7kRB9SVOrEEltG6E+tXGQZCvitAttNhCdRwp BK0WHWb8eHjqeDiJWhK/QFEYGT0HBWKjJy/AaGl7xHN9lQmmNnc1REOXf6SUiVa5bUxq EyOsQGI1y+C5SiZItA2SaFvHur16w++Bz7z54FU68wbcYfGPC185HNH9KW4uS1HviOC1 xBuRX64uUXgtjw6Pq2d0fP8Ud4fPurM2oiszuxDc0+EOSsQ8CwukCUpLE/RzCh9Uq+V+ xUxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mC7G9bQo; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh11-20020a170906a94b00b0077751bae5absi4982537ejb.534.2022.09.28.11.17.31; Wed, 28 Sep 2022 11:17:57 -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=@linaro.org header.s=google header.b=mC7G9bQo; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234694AbiI1Rul (ORCPT + 99 others); Wed, 28 Sep 2022 13:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233803AbiI1Rui (ORCPT ); Wed, 28 Sep 2022 13:50:38 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0B466107 for ; Wed, 28 Sep 2022 10:50:36 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id bu25so19608296lfb.3 for ; Wed, 28 Sep 2022 10:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=szYRUNTBzhtYD1dEwWP+61BLschhE4HnOh0yg58NYWc=; b=mC7G9bQo9HU0f6epli3GndKdWBSE8mKRNHsJbfkCwBZ7Ul8WpsecgIkm8+ZNy2E/dR 0HrdfJS1VZjm0/7ynVDeqMsQDJoQ0ZAurec+DhV40EWxROgQOG8HPTt0UiF2d9aKQ0BM RwsL+gAlJ2kLN4JFQeKYkymK3z6xGwiVXeqOR84hVPaDIndoofLqwt3rOjJSl8pvKcJD 1LdIdHyU9WzWpBu7lSWCaRpFh7TB+qx+LC+nG8sbqQ+tsDoGCqE0nfUk+up8twztsbjb hyKGsUKPSG37/aORpxP1YRncPExyozhskt2hNplrHLzoQpVJGBi4FDXYrClymntdLOCk mj+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=szYRUNTBzhtYD1dEwWP+61BLschhE4HnOh0yg58NYWc=; b=nvtps94pgVlUIuJ/BuA0hpKSqGjaNgOCvqPKoyTPOELAiR0KKOW7vI6UgdcJSIVwNt GWYOlNiSKeaBffpIbhMLTE9qXuykLslpGzbXaBYgm8VztevSIj2BygjetAVu7gi4MDFv daMi2PjYv4+cgSMQFXqKxBXjyNeq2mKywO+//r3TtP+LYjXuTCa7XeI1Qv74COzOqlmb cQmEXF2BpngTNr8ERnCjsKT0OHQHF+Xz+NxFlFKb3IxMuibMrYXmliFx1ftOJU1GgPBN wiWoiLpDI7bK5pfSW0VM9Fw8ttfk6j0nD4heXe3T3ZaE6KvUCQf3PONJ/iPzjLROG5Gm f2Jg== X-Gm-Message-State: ACrzQf1Zb4BMAdgIgMIicJXlC94OAlkW0kbSdnK4mtBlkRMY0jJSbPHd Wz7JT5IJiUObPrVpvdCCUN45yA== X-Received: by 2002:a05:6512:1056:b0:498:efaf:5bd1 with SMTP id c22-20020a056512105600b00498efaf5bd1mr13304252lfb.64.1664387434846; Wed, 28 Sep 2022 10:50:34 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id x25-20020a056512131900b00498ebd60c35sm532566lfu.165.2022.09.28.10.50.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 10:50:34 -0700 (PDT) Message-ID: Date: Wed, 28 Sep 2022 19:50:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v3 02/11] dt-bindings: remoteproc: mediatek: Support MT8195 dual-core SCP Content-Language: en-US To: =?UTF-8?B?VGluZ0hhbiBTaGVuICjmsojlu7fnv7Ap?= , "robh+dt@kernel.org" , =?UTF-8?B?VGlmZmFueSBMaW4gKOael+aFp+ePiik=?= , "mchehab@kernel.org" , =?UTF-8?B?WXVuZmVpIERvbmcgKOiRo+S6kemjnik=?= , "peng.fan@oss.nxp.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "andersson@kernel.org" , =?UTF-8?B?QW5kcmV3LUNUIENoZW4gKOmZs+aZuui/qik=?= , "mathieu.poirier@linaro.org" Cc: "linux-remoteproc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" References: <20220927025606.26673-1-tinghan.shen@mediatek.com> <20220927025606.26673-3-tinghan.shen@mediatek.com> <08abade9-f6f5-77cf-b83d-739b0b81543a@oss.nxp.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 28/09/2022 11:17, TingHan Shen (沈廷翰) wrote: > On Wed, 2022-09-28 at 15:01 +0800, Peng Fan wrote: >> >> On 9/27/2022 10:55 AM, Tinghan Shen wrote: >>> The MT8195 SCP is a dual-core RISC-V MCU. Extend the yaml file >>> to describe the 2nd core as a subnode of the boot core. >>> >>> The configuration register is shared by MT8195 SCP core 0 >>> and core 1. The core 1 can retrieve the information of configuration >>> registers from parent node. >> >> I think the commit message would not convince people you put >> scp 1 as subnode of scp 0. >> >> Regards, >> Peng. >> > Hi Peng, > > Thanks for your review. I should give the most reasonable explanation > for why SCP 1 is a subnode. > > Adding SCP 1 as a subnode helps to assure finish probing SCP 1 > before starting SCP 0 by using of_platform_populate. It's because > that I want to probe SCP 1 as a remoteproc subdevice of SCP 0. > such that when SCP 0 crashed, SCP 0 can reboot SCP 1. As Peng noted, this is not proper description of hardware. The SCP 0/1 do not have parent-child relationship, so do not model it that way in Devicetree. Probe ordering is operating system specific, not related to bindings. Best regards, Krzysztof