Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8252903imu; Tue, 4 Dec 2018 05:35:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNz/if9/Mkty4pcMC8uD2QLKWXtERDDrKLQt+POOm6C7kxTzxb2syHjlZ7AsNdyvx0O2SU X-Received: by 2002:aa7:8552:: with SMTP id y18mr20428261pfn.83.1543930533767; Tue, 04 Dec 2018 05:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543930533; cv=none; d=google.com; s=arc-20160816; b=tTh1uDc7DsJ71kq1ur1OpHlNeQ/Hiz0U6/OQuXPNYFf7uAoV/HLslhPCZ9vSrNZY77 VEMZvRf1wYYa33rkgPJ/HROogahmZBeuxhVwT2hlRETQpU+qtqWL6cb2gUH9PJdRnrJD 8ceYyQeTEPbjLUlPWVoTRFjgY3PfvFcUGDEFcZ3c/JESnWwPHxpey6vqD31iwKb145lW BKGxDvWZQWDq6sCEXKLk1nSskOJUAOyAMgcaNyb1vLm8qzVTGA89z6F5xq1v/xpnmGx1 vMmu0PYz2WkXQ9G1QglbyAfELEdeBmcAemLE12tkLT+5XsdvRbvSK0fw+JVfO6cktOl4 Z9SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zAwPpPfAvM9fTe6FmZX69I/xF2QQUEZNTG/hxc6hnaQ=; b=N83Aw5YVaj8tadxVVNvISD9xC4aJNAbAetSfiBSPznPIQ65l2mIYSk4upubfKlMgRS XqiPXQ7Qj35PzfCHZjaia57l6B73GPP8u2f2eZ0ljR5fd3c5zfdkrb3omP5aT1A9b6TS 20d1LdQiTTtuRbUZLl78PX/f59e6kzQHv6pLtVcceA0hYqaaNrTMyltl+x/NRzf5eKNV LbAuGwcJ33DYXADXJnVZefwr9CHOaTgPKzJQaX8vnUicN/L7IfY5rgsCdf42qCPsvr1h 2rVk+eCNOnPybvwe1CPSz6TGTehdzjPAlt+AY+7f3f4Rbecq5tYpLZ2bxbTh+YoVi3jN hzFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kpmubcok; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si16677913plp.304.2018.12.04.05.35.12; Tue, 04 Dec 2018 05:35:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kpmubcok; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726444AbeLDNcy (ORCPT + 99 others); Tue, 4 Dec 2018 08:32:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:40018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbeLDNcy (ORCPT ); Tue, 4 Dec 2018 08:32:54 -0500 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5056B20851; Tue, 4 Dec 2018 13:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543930373; bh=sBFcr+Jb62B48Hwe1h8iPAD26K2EHQzJ9SUJepkarjA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kpmubcokEvNZiAPDAgfqFP6gCoI+6KbzxfoQ4SwiZvNwM0q5aLMmDW2g0ZAq1Vt42 6hGAnaYHK3D1zjQCtNqzm5jUsYG4amSrI30bt2jvB/9GRqXIswScvvb82o6eKPPZLt SvMAq4HzzlqjYXjmBOwt5FjVuxYAQrQlrBLYnWis= Received: by mail-qk1-f175.google.com with SMTP id m5so9545546qka.9; Tue, 04 Dec 2018 05:32:53 -0800 (PST) X-Gm-Message-State: AA+aEWYb/+Zs5ati2G93m1pm93Vc8IHVaLnbCWmwcuGR34lMMaNtTJUE NnnF27OnT71Rqc+F2vTEwzaSi2D6H4C1ByVgOA== X-Received: by 2002:ae9:ef14:: with SMTP id d20mr18998224qkg.147.1543930372509; Tue, 04 Dec 2018 05:32:52 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <90b00858-6e9e-8f7c-f6d4-b35e5daa6eee@socionext.com> From: Rob Herring Date: Tue, 4 Dec 2018 07:32:41 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description To: sugaya.taichi@socionext.com 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob