[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Re: Controlling the Expansion port as a GPIO with Petalinux
thank you, will give it a shot
On Tue, Apr 21, 2009 at 10:01 AM, Wendy Liang <wendy.liang@xxxxxxxxxxxxx>
Currently, in the xilinx_gpio driver, it enables the Xilinx GPIO interrupts just after it successfully requesting IRQ resource but before the interrupt waiting queue initialization and the gpio instance linking to the gpio list. This causes problem.
I moved the GPIO interrupt enabling to the end of the probe function and used push button gpio with interrupt enabled to do the test. I kept pressing and releasing the buttons during kernel boot. The kernel successfully booted with the change.
I have attached the patch with this mail. Please go the `trunk` directory to apply it and have a try.
On Mon, Apr 20, 2009 at 6:17 PM, Karthik T <sir.nigel.loring@xxxxxxxxx>
Yes, this is indeed so, tnx, and my apologies to wendy, i seem to have misunderstood what u said.
It turned out the circuit i had connected to the expansion port, was causing the issue. I disconnected all wires, and petalinux booted up. However as i tried to reconnect the wires i got the following error. can anything be done?
petalinux login: root
# BUG: at kernel/softirq.c:128 _local_bh_enable()
601bde30 800000a4 800000a4 800000a4 00000001 6000f8a4 6017ba80 6017ba94
00000080 6017baa8 601b05d8 00000017 00000000 601dce6c 6000f8e0 00000001
00000000 00000000 605862e0 00000000 00000000 000000a0 00000000 00000001
On Mon, Apr 20, 2009 at 7:14 AM, John Williams <john.williams@xxxxxxxxxxxxx>
On Tue, Apr 14, 2009 at 1:06 PM, Sir Nigel Loring
> anyone have any further thoughts on what can be done?I think Wendy is on the right track - you may be getting an interrupt
event from the GPIO before the kernel IRQ subsystem is up and running.
Then, when the IRQ subsystem is initialised, the presence of
"pending" events may be confusing the kernel. If so, we need to fix
it, so we'll try to emulate the situation here and see if we can
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
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/