|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch v3 1/1] Add Odroid-XU (Exynos5410)
Hello Suriyan, On 13/08/14 22:12, Suriyan Ramasami wrote: This is not necessary. You can directly assign cpu_up_send_sgi to the cpu_up callback of the platform structure. +static int __init exynos_smp_init(unsigned long pa_sysram) paddr_t pa_sysram I would rename S5P_PA_SYSRAM and EXYNOS5_* to something specific to exynos 5250. It would make clear that new platform should use the device tree to get information.
Coding style:
if ( !node )
{
+ dprintk(XENLOG_ERR, "samsung,exynos4210-sysram-ns missing in DT\n"); The coding style doesn't allow to use hard tab.
Coding style:
if ( rc )
{
+ dprintk(XENLOG_ERR, "Error in \"samsung,exynos4210-sysram-ns\"\n"); + return -ENXIO; + } + + dprintk(XENLOG_INFO, "sysram_ns_base_addr: %08x size: %08x\n", + (unsigned int) sysram_ns_base_addr, (unsigned int) size); Why do you cast to unsigned int rather than right printf format?
Please correctly align the second line to the open branch. I.e:
return readl(power ....
S5P_CORE_...
Also, why did you replace the __raw_readl by a readl? The former one
doesn't use barrier while the latter does.
As Linux is using the former one, I don't understand why we would require barrier on Xen. Same here for both coding style and writel. unsigned int.
Coding style:
if ( ... )
{
+ exynos_cpu_set_power_up(power, cpu); I would keep the same name as Linux ie exynos_cpu_power_up to avoid confusion and make backporting easier.
Coding style:
while ( ... )
{
+ if (timeout-- == 0) + break; Coding style: if ( ... )
Coding style:
if ( ... )
{
[..] Where does this compatible come from? I don't find any reference in Linux upstream documentation (Documentation/devicetree/bindings/arm/samsung/pmu.txt).
Coding style:
if ( !node )
{
Coding style
if ( rc )
{
+ dprintk(XENLOG_ERR, "Error in \"samsung,exynos5XXXX-pmu\"\n"); + return -ENXIO; + } + + dprintk(XENLOG_INFO, "power_base_addr: %08x size: %08x\n", I would use XENLOG_DEBUG If exynos_cpu_power_up is failing you never unmap the power region. +PLATFORM_START(exynos5410, "SAMSUNG EXYNOS5410") Nothing looks 5410 specific in structure. I would rename it to exynos5, "SAMSUNG EXYNOS5". So if someone want to add a new exynos5 (such as the octa) it wouldn't have to rename this platform. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |