Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7289504imu; Tue, 22 Jan 2019 03:38:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN7zuetVjRjlaWsNqaC44p+iRw8V48/OAAY/HS3Z6U8I6/7BQP07ZsPTRDdpzNtFfRxkukYQ X-Received: by 2002:a62:ae04:: with SMTP id q4mr33237639pff.126.1548157085071; Tue, 22 Jan 2019 03:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548157085; cv=none; d=google.com; s=arc-20160816; b=Ik058ggUJ1Vl0tJZwJHaf6k0U7tL29ALVrvl0jdqQ55P4y3ls1vraUNd9qYiy4q09S v5to3F0ofInXonqvRJTYwatzcMtkZSgCGZE2zwyEbEPBxkkmKitY2TbgA5Uxr3pHbXpf 5mjdI7Zgk7uwRTPG3H0gfzQ7/0GJNS/fNnac8rCbbbcu9yoBosjzdmjSJ8aKPiOMtr6S 4cIHg7f2WZHscIcKzmaXHdtO9NvvkAGaFMpRUxFSOJc1hHiQkKw9PDbhhnkjF23DWOJr VOPR+tmppV3FFDe637ucr0Jcae3kb2CGsWftkFJWh9qvG6MYHufmQi8D8lsD8tp71/1/ yjnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DF1bnwnaq4lBgjRNJqAdMwHBw/FDLWI507q2V8sVZmI=; b=m5STsGSrsD8gvZAqIva0z3mzL9kZTuxMsS33VXO82au7ydIzd0zb3E7tbcCk/fGDHH FYXmKpheCxwf8o5m5/DHvDXias9m1jJXaIPedhvbNAQhue0IOdmMpcnPjoEoETLsEaGm 1+kBR7VRVfqkJiuZ2tO8G5LcaxqmQD+k+77k6XxMD5Ckm9JfqBN7X1khXHjZYX9rVnuV a27vDQ51ILLUuG09Fpy2Mq+BqwBM0uUOtIdW/gLjryf6/pAhQUQ+LiuQjmKZbuO/R8mZ qZmp9RP+ReJ0WV8UbQuMB4dI52DySHUde7S7Kwa+LFrbL7rAJihkFfNvkgCw/mo/s13b o0PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si11297725plz.327.2019.01.22.03.37.49; Tue, 22 Jan 2019 03:38:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728264AbfAVLgH (ORCPT + 99 others); Tue, 22 Jan 2019 06:36:07 -0500 Received: from mx.socionext.com ([202.248.49.38]:47427 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727777AbfAVLgH (ORCPT ); Tue, 22 Jan 2019 06:36:07 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Jan 2019 20:36:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id C70D360062; Tue, 22 Jan 2019 20:36:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 22 Jan 2019 20:36:04 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 880281A04E1; Tue, 22 Jan 2019 20:36:04 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id 6552F1210BF; Tue, 22 Jan 2019 20:36:04 +0900 (JST) Subject: Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description To: Rob Herring Cc: Stephen Boyd , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-clk , "linux-kernel@vger.kernel.org" , "open list:SERIAL DRIVERS" , Michael Turquette , Mark Rutland , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Russell King , Jiri Slaby , Masami Hiramatsu , Jassi Brar References: <1542589274-13878-1-git-send-email-sugaya.taichi@socionext.com> <1542589274-13878-3-git-send-email-sugaya.taichi@socionext.com> <154337047410.88331.9696178601340675631@swboyd.mtv.corp.google.com> <154356579701.88331.5043467509900444879@swboyd.mtv.corp.google.com> <90b00858-6e9e-8f7c-f6d4-b35e5daa6eee@socionext.com> From: "Sugaya, Taichi" Message-ID: Date: Tue, 22 Jan 2019 20:36:03 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 2018/12/04 22:32, Rob Herring wrote: > On Tue, Dec 4, 2018 at 5:30 AM Sugaya, Taichi > wrote: >> >> Hi >> >> On 2018/12/04 0:49, Rob Herring wrote: >>> On Mon, Dec 3, 2018 at 1:42 AM Sugaya, Taichi >>> wrote: >>>> >>>> Hi, >>>> >>>> On 2018/11/30 17:16, Stephen Boyd wrote: >>>>> Quoting Sugaya, Taichi (2018-11-29 04:24:51) >>>>>> On 2018/11/28 11:01, Stephen Boyd wrote: >>>>>>> Quoting Sugaya Taichi (2018-11-18 17:01:07) >>>>>>>> create mode 100644 Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt >>>>>>>> >>>>>>>> diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt b/Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt >>>>>>>> new file mode 100644 >>>>>>>> index 0000000..f5d906c >>>>>>>> --- /dev/null >>>>>>>> +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt >>>>>>>> @@ -0,0 +1,12 @@ >>>>>>>> +Socionext M10V SMP trampoline driver binding >>>>>>>> + >>>>>>>> +This is a driver to wait for sub-cores while boot process. >>>>>>>> + >>>>>>>> +- compatible: should be "socionext,smp-trampoline" >>>>>>>> +- reg: should be <0x4C000100 0x100> >>>>>>>> + >>>>>>>> +EXAMPLE >>>>>>>> + trampoline: trampoline@0x4C000100 { >>>>>>> Drop the 0x part of unit addresses. >>>>>> >>>>>> Okay. >>>>>> >>>>>> >>>>>>>> + compatible = "socionext,smp-trampoline"; >>>>>>>> + reg = <0x4C000100 0x100>; >>>>>>> Looks like a software construct, which we wouldn't want to put into DT >>>>>>> this way. DT doesn't describe drivers. >>>>>> We would like to use this node only getting the address of the >>>>>> trampoline area >>>>>> in which sub-cores wait. (They have finished to go to this area in previous >>>>>> bootloader process.) >>>>> >>>>> Is this area part of memory, or a special SRAM? If it's part of memory, >>>>> I would expect this node to be under the reserved-memory node and >>>>> pointed to by some other node that uses this region. Could even be the >>>>> CPU nodes. >>>> >>>> Yes, 0x4C000100 is a part of memory under the reserved-memory node. So >>>> we would like to use the SRAM ( allocated 0x00000000 ) area instead. >>>> BTW, sorry, the trampoline address of this example is simply wrong. We >>>> were going to use a part of the SRAM from the beginning. >>>> >>>>> >>>>>> >>>>>> So should we embed the constant value in source codes instead of getting >>>>>> from >>>>>> DT because the address is constant at the moment? Or is there other >>>>>> approach? >>>>>> >>>>> >>>>> If it's constant then that also works. Why does it need to come from DT >>>>> at all then? >>>> >>>> We think it is not good to embed constant value in driver codes and do >>>> not have another way... >>>> Are there better ways? >>> >>> If this is just memory, can you use the standard spin-table binding in >>> the DT spec? There are some requirements like 64-bit values even on >>> 32-bit machines (though this gets violated). >> >> The spin-table seems to be used on only 64-bit arch. Have it ever worked >> on 32-bit machine? > > Yes. > >> And I would like not to use it because avoid violation. > > The issue now that I remember is cpu-release-addr is defined to always > be a 64-bit value while some platforms made it a 32-bit value. > 'cpu-release-addr' is also used for some other enable-methods. I have a question about the spin-table. The code "smp_spin_table.c" is only in "arch/arm64/kernel" directory so can not be compiled in arm-v7 arch. That means the spin-table can not be used arm-v7 arch..? , or is there the way to compile the code in arm-v7 arch? Thanks, Sugaya Taichi > > Rob >