devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bintian <bintian.wang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Leo Yan <leo.yan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Kevin Hilman <khilman-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Brent Wang <wangbintian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	"dan.zhao-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org"
	<dan.zhao-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	"btw-aAikPa0K0u50tdys+9eLAQ@public.gmane.org"
	<btw-aAikPa0K0u50tdys+9eLAQ@public.gmane.org>,
	Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org>,
	"wangbinghui-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org"
	<wangbinghui-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	"huxinwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org"
	<huxinwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
	Haojian Zhuang
	<haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Haifeng Yan <yanhaifeng-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Rob Herring <rob.herring-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Mike Turquette
	<mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
	"victor.lixin-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org"
	<victor.lixin-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	Xu Wei <xuwei5-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	Jaehoon Chung
	<jh80.chung-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	"sledge.yanwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org"
	<sledge.yanwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
	XinWei Kong
	<kong.kongxinwei-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	"heyunlei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org"
	<heyunlei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
	"puck.chen-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org"
	<puck.chen-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
	Zhangfei
Subject: Re: [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC
Date: Tue, 12 May 2015 13:06:38 +0800	[thread overview]
Message-ID: <55518A5E.7090608@huawei.com> (raw)
In-Reply-To: <20150512030542.GA5889@leoy-linaro>

Hello Kevin,

On 2015/5/12 11:05, Leo Yan wrote:
> hi Kevin,
>
> On Mon, May 11, 2015 at 05:20:54PM -0700, Kevin Hilman wrote:
>> On Thu, May 7, 2015 at 4:11 PM, Brent Wang <wangbintian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>> Hello Kevin,
>>>
>>> 2015-05-08 4:30 GMT+08:00 Kevin Hilman <khilman-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>:
>>>> Bintian Wang <bintian.wang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> writes:
>>>>
>>>>> Hi6220 is one mobile solution of Hisilicon, this patchset contains
>>>>> initial support for Hi6220 SoC and HiKey development board, which
>>>>> supports octal ARM Cortex A53 cores. Initial support is minimal and
>>>>> includes just the arch configuration, clock driver, device tree
>>>>> configuration.
>>>>>
>>>>> PSCI is enabled in device tree and there is no problem to boot all the
>>>>> octal cores, and the CPU hotplug is also working now, you can download
>>>>> and compile the latest firmware based on the following link to run this
>>>>> patch set:
>>>>> https://github.com/96boards/documentation/wiki/UEFI
>>>>
>>>> Do you have any tips for booting this using the HiSi bootloader?  It
>>>> seems that I need to add the magic hisi,boardid property for dtbTool to
>>>> work.  Could you share what that magic value is?
>>> Yes, you need it.
>>> Hisilicon has many different development boards and those boards have some
>>> different hardware configuration, so we need different device tree
>>> files for them.
>>> the original hisi,boardid is used to distinguish different boards and
>>> used by the
>>> bootloader to judge which device tree to use at boot-up.
>>>
>>>> and maybe add it to the wiki someplace?
>>> Maybe add to section "Known Issues" in
>>> "https://github.com/96boards/documentation/wiki/UEFI"
>>> is a good choice, I will update this section later.
>>
>> You updated the wiki, but you didn't specify what the value should be
>> for this to work with the old bootloader.
>>
>> Can you please give the value of that property?
hisi,boardid = <0 0 4 3>
It is needed by the old hisilicon bootloader.

I also updated the wiki page.
>>
>> Also, have you tested this series with the old bootloader as well?
>
> Below are my testing result w/t Bintian's patches and Hisilicon old
> bootloader:
> - Need add property "hisi,boardid" into dts;
> - Need change cpu enable-method from "psci" to "spin-table";
> - The bootloader has not initialized register *cntfrq_el0* so will
>    introduce the failure during init arch timer.
>
> For init cntfrq_el0, we need fix this issue in Hisilicon's old
> bootloader, rather than directly add "clock-frequency" for arch
> timer's node in DTS. i will try to commit one patch for fix this
> issue for Hisilicon's old bootloader.
>
> So i think upper issues mainly are introduced by Hisilicon's old
> bootloader but not come from Bintian's patches. How about u think for
> this?
>
> Below is my local diff which is used to compatible w/t Hisilicon's
> old bootloader; Just for your reference.
>
> Thanks,
> Leo Yan
>
> ---8<---
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> index e36a539..fd1f89e 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> @@ -14,6 +14,7 @@
>
>   / {
>   	model = "HiKey Development Board";
> +	hisi,boardid = <0 0 4 3>;
>   	compatible = "hisilicon,hi6220-hikey", "hisilicon,hi6220";
>
>   	aliases {
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> index 229937f..8ade3d9 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> @@ -13,11 +13,6 @@
>   	#address-cells = <2>;
>   	#size-cells = <2>;
>
> -	psci {
> -		compatible = "arm,psci-0.2";
> -		method = "smc";
> -	};
> -
>   	cpus {
>   		#address-cells = <2>;
>   		#size-cells = <0>;
> @@ -57,56 +52,64 @@
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x0>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu1: cpu@1 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x1>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu2: cpu@2 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x2>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu3: cpu@3 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x3>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu4: cpu@100 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x100>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu5: cpu@101 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x101>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu6: cpu@102 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x102>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>
>   		cpu7: cpu@103 {
>   			compatible = "arm,cortex-a53", "arm,armv8";
>   			device_type = "cpu";
>   			reg = <0x0 0x103>;
> -			enable-method = "psci";
> +			enable-method = "spin-table";
> +			cpu-release-addr = <0x0 0x740fff8>;
>   		};
>   	};
>
> @@ -129,6 +132,7 @@
>   			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
>   			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
>   			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
> +		clock-frequency = <1200000>;
>   	};
>
>   	soc {
Thanks for Leo's replies, Leo is responsible for bootloader
development, you can contact him if you have any problem about
bootloader.

Thanks,

Bintian
>
> .
>

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2015-05-12  5:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 14:00 [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC Bintian Wang
2015-05-07 14:00 ` [PATCH v5 3/6] clk: hi6220: Document devicetree bindings for hi6220 clock Bintian Wang
2015-05-07 14:00 ` [PATCH v5 5/6] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC Bintian Wang
2015-05-07 14:20 ` [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC Bintian
2015-05-07 20:30 ` Kevin Hilman
2015-05-07 23:11   ` Brent Wang
2015-05-12  0:20     ` Kevin Hilman
2015-05-12  3:05       ` Leo Yan
2015-05-12  5:06         ` Bintian [this message]
2015-05-13 10:28 ` Bintian
2015-05-13 10:32   ` Wei Xu
     [not found] ` <1431007225-8513-1-git-send-email-bintian.wang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-05-07 14:00   ` [PATCH v5 1/6] arm64: Enable Hisilicon ARMv8 SoC family in Kconfig and defconfig Bintian Wang
2015-05-07 14:00   ` [PATCH v5 2/6] arm64: hi6220: Document devicetree bindings for Hisilicon hi6220 SoC Bintian Wang
2015-05-07 14:00   ` [PATCH v5 4/6] Documentation: DT: PL011: hi6220: add compatible string for Hisilicon designed UART Bintian Wang
2015-05-07 14:00   ` [PATCH v5 6/6] arm64: dts: Add dts files for Hisilicon Hi6220 SoC Bintian Wang
2015-05-28 16:48   ` [PATCH v5 0/6] arm64,hi6220: Enable " Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55518A5E.7090608@huawei.com \
    --to=bintian.wang-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=btw-aAikPa0K0u50tdys+9eLAQ@public.gmane.org \
    --cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
    --cc=dan.zhao-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=heyunlei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=huxinwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=jh80.chung-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=khilman-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=kong.kongxinwei-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=leo.yan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=puck.chen-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=rob.herring-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=sledge.yanwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=victor.lixin-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=wangbinghui-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=wangbintian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=will.deacon-5wv7dgnIgG8@public.gmane.org \
    --cc=xuwei5-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org \
    --cc=yanhaifeng-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).