From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 2/7] xen/arm: Implement hip04-d01 platform Date: Tue, 04 Nov 2014 13:21:09 +0000 Message-ID: <5458D2C5.7050900@linaro.org> References: <1415033196-30529-1-git-send-email-frediano.ziglio@huawei.com> <1415033196-30529-3-git-send-email-frediano.ziglio@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1415033196-30529-3-git-send-email-frediano.ziglio@huawei.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: Frediano Ziglio , Ian Campbell , Stefano Stabellini , Tim Deegan Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Frediano, On 11/03/2014 04:46 PM, Frediano Ziglio wrote: > Add this new platform to Xen. > This platform requires specific code to initialize CPUs. I guess your platform doesn't support PSCI? > Signed-off-by: Frediano Ziglio > Signed-off-by: Zoltan Kiss > --- > +static void hip04_reset(void) > +{ > + unsigned long data; > + > + if ( !gb2 ) > + return; gb2 will never be NULL. Xen will panic if the initialization callback failed. > + > + data = readl_relaxed(gb2); > + writel_relaxed(data & ~0x4000000u, gb2); > + > + mdelay(10); > +} > + > +static void hip04_set_snoop_filter(unsigned int cluster, unsigned int on) > +{ > + unsigned long data; > + > + if ( !fabric ) > + return; Ditto. [..] > +static void __init hip04_iounmap(void __iomem **p) > +{ > + if ( *p ) > + { > + iounmap(*p); > + *p = NULL; > + } > +} What is used for? Should not iounmap enough? Regards, -- Julien Grall