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

Re: [microblaze-uclinux] Re: BUG: scheduling while atomic



Hi Victor,

On Tue, Aug 11, 2009 at 5:42 PM, Victor G.<vga9@xxxxxx> wrote:
>> Victor G. wrote:
>>> On Sat, Aug 1, 2009 at 1:55 AM, Victor G.<vga9@xxxxxx> wrote:
>>>> Hi,
>>>>
>>>> My boot procedure is stuck before mounting partitions and displays the
>>>> error found at the end of the following kernel's printing to uart. The
>>>> system is ML505, build from scratch in 11.1, is similar to the
>>>> provided non-MMU example in 10.1 but does not have additional
>>>> peripherals like Ethernet controller. Both caches are enabled. Could
>>>> these be some stack size issues?
>>>>
>>>> ...
>>>> uartlite.0: ttyUL0 at MMIO 0x84020000 (irq = 2) is a uartlite
>>>> uartlite.1: ttyUL1 at MMIO 0x84000000 (irq = 0) is a uartlite
>>>> RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
>>>> uclinux[mtd]: RAM probe address=0x501c885c size=0xef000
>>>> Creating 1 MTD partitions on "RAM":
>>>> 0x00000000-0x000ef000 : "ROMfs"
>>>> uclinux[mtd]: set ROMfs to be root filesystem index=0
>>>> TCP cubic registered
>>>> NET: Registered protocol family 1
>>>> NET: Registered protocol family 17
>>>> VFS: Mounted root (cramfs filesystem) readonly.
>>>> Freeing unused kernel memory: 84k freed
>>>> BUG: scheduling while atomic: /0xb8083fb0/3261
>>>>
>>>> Stack:
>>>>  00001f10 00000001 00000000 00000000 00000000 500040e4 50170f94 5ffe8da0
>>>>  b8083fb0 00000cbd 885bb200 00001e78 b0005008 00000013 00000010 5fe9ff21
>>>>  00000001 00000000 00000000 00000000 00000000 00000000 00000000 5fe9fe74
>>>> Call Trace: [<500040e4>]
>>>>
>>>>
>>>> Here is the petalinux-send-config otuput.
>>>> ----
>>>> #SYSTEM CONFIGS
>>>> CONFIG_DEFAULTS_XILINX=y
>>>> CONFIG_DEFAULTS_XILINX_XILINX_ML505_TEST_11_1=y
>>>> CONFIG_DEFAULTS_KERNEL_2_6=y
>>>> CONFIG_DEFAULTS_LIBC_NONE=y
>>>> CONFIG_VENDOR=Xilinx
>>>> CONFIG_PRODUCT=Xilinx-ML505-test_11.1
>>>> CONFIG_LINUXDIR=linux-2.6.x
>>>> CONFIG_LIBCDIR=
>>>>
>>>> ... etc
>>>
>>> Looking at http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2007/07/msg00043.html,
>>> I have tried enabling kernel preemption, but still see the "BUG:
>>> scheduling while atomic" error. I am using nonMMU kernel.
>>>
>>> The config file now has the following line:
>>> CONFIG_PREEMPT=y
>>>
>>> Following the thread further I found that two other patches helped
>>> solving the problem. That was July 2007.
>>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2007/07/msg00137.html
>>> Have these patches being applied in the latest petalinux-v0.40-rc4 release?
>>>
>>> I will have to read about git to understand its history syntax and
>>> usage. For now it looks like the current files in my kernel directory
>>> are different from what the patch is suggesting.
>>>
>>> Thanks,
>>> Victor
>>>
>>> ___________________________
>>> microblaze-uclinux mailing list
>>> microblaze-uclinux@xxxxxxxxxxxxxx
>>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>>> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>>
>>>
>>
>> --
>> Michal Simek, Ing. (M.Eng)
>> PetaLogix - Linux Solutions for a Reconfigurable World
>> w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@xxxxxxxxxxxxxx
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
>>
>
> On Sun, Aug 2, 2009 at 8:40 PM, Michal Simek<michal.simek@xxxxxxxxxxxxx> wrote:
>> Hi,
>>
>> I personally don't have any experience with Microblaze 7.20.a which you use
>> but I think that Xilinx released 7.20.b. You should try this version
>> or you can try to use 7.10.d which I used and there is no problem.
>>
>> This problem could be relate with any cpu.
>>
>> Please try it and let us know.
>>
>> Thanks,
>> Michal
>>
>>
>
> Hi,
>
> I have replaced MicroBlaze 7.20.b with 7.10.d as you have suggested
> and made sure the required ports are connected (resets, clock,
> interrupts, etc). Compiled the system built kernel without errors, but
> getting the same "BUG: scheduling while atomic error".
>
> Boot log and petalinux-send-config output are attached below.
>
> As a reminder, I am using EDK 11.1 with petalinux-v0.40-rc4,
> CONFIG_PREEMPT enabled, caches enabled. The design has been created
> using wizard with only a few peripherals: DDR2, intc, timer, 2 uarts,
> and other basic modules like reset, clock, and bus interfaces.


Can you please try with CONFIG_PREMPT disabled?

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/