Re: 2.6.31-rc1: sparc cannot boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/6/18 David Miller <davem@xxxxxxxxxxxxx>:
> From: Alexander Beregalov <a.beregalov@xxxxxxxxx>
> Date: Thu, 18 Jun 2009 15:53:40 +0400
>
>>> See what value sparc64_init_timers() ends up using for "freq".
>> It returns freq=0.
>
> Please, dig deeper :-)
>
> Where is it getting it from?  cpu_data()->clock_tick?
Yes, exactly.
freq = local_cpu_data().clock_tick;

>
> If so, see if of_fill_in_cpu_data() is even running, and if so
> why it isn't storing a non-zero value there.

Oops. Digging deeper I found that I incorrectly applied your patch.
I manually edited init_64.c and wrote #ifdef instead of #ifndef.
Sorry :)

Your patch is really working.
Thanks!

fill_in_one_cpu():
<...>
        cpu_data(cpuid).clock_tick =
                of_getintprop_default(dp, "clock-frequency", 0);
printk("cpuid: %u; clock_tick: %lu\n", cpuid,  cpu_data(cpuid).clock_tick);

prints
cpuid: 0; clock_tick: 440000000
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux