From: Ian Campbell Subject: Re: [XEN/ARM: Patch v3 1/1] Add support for the Exynos secure firmware Date: Mon, 22 Sep 2014 12:56:08 +0100 Message-ID: <1411386968.18331.57.camel@kazak.uk.xensource.com> References: <1410809650-12736-1-git-send-email-suriyan.r@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410809650-12736-1-git-send-email-suriyan.r@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Suriyan Ramasami Cc: tim@xen.org, julien.grall@linaro.org, keir@xen.org, jbeulich@suse.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-15 at 12:34 -0700, Suriyan Ramasami wrote: > The existence of secure firmware is dictated by the presence of > "samsung,secure-firmware" in the DT. > > The Arndale board does not have that entry, and uses the address as defined > in "samsung,exynos4210-sysram", offset 0 as the smp init address. This is > possibly true for all SoCs without secure firmware. > > For other boards which do have a "secure-firmware" node, use sysram-ns > at offset +0x1c as the smp init address. > > The "secure-firmware" MMIO range contains ways to idle the CPU. As this gets > mapped to DOM0 because of its presence in the DT, we blacklist it. > > Have tested this on the Odroid XU. I have also tested the other code path > on the Odroid XU by removing "secure-firmware" from its DT. I could see > that the other code path was exercised with correct smp init address > values. > > Signed-off-by: Suriyan Ramasami I think this had already been sent when I accidentally reviewed v2 instead. The main thing which still applies is the EXYNOS_CONFIG_NR_CPUS which needs to be dropped. Ideally I'd like to see exynos_smc and __invoke_psci_fn_smc become a common helper somewhere but I won't insist. The rest looks good, thanks. Ian.