Porting MIPS IRQ handler to ARM
Hello,
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.c
static void tangox_irq_handler(unsigned int irq, struct irq_desc *desc)
{
struct irq_domain *dom = irq_desc_get_handler_data(desc);
struct tangox_irq_chip *chip = dom->host_data;
unsigned int status, status_hi;
unsigned int sr = 0;
status = intc_readl(chip, chip->ctl + IRQ_STATUS);
status_hi = intc_readl(chip, chip->ctl + IRQ_CTL_HI + IRQ_STATUS);
if (!(status | status_hi)) {
spurious_interrupt();
return;
}
if (chip->mask)
sr = clear_c0_status(chip->mask);
tangox_dispatch_irqs(dom, status, 0);
tangox_dispatch_irqs(dom, status_hi, 32);
if (chip->mask)
write_c0_status(sr);
} CC drivers/irqchip/irq-tangox.odrivers/irqchip/irq-tangox.c: In function 'tangox_irq_handler':drivers/irqchip/irq-tangox.c:85:3: error: implicit declaration of function 'spurious_interrupt' [-Werror=implicit-function-declaration]
spurious_interrupt();
^drivers/irqchip/irq-tangox.c:90:3: error: implicit declaration of function 'clear_c0_status' [-Werror=implicit-function-declaration]
sr = clear_c0_status(chip->mask);
^drivers/irqchip/irq-tangox.c:96:3: error: implicit declaration of function 'write_c0_status' [-Werror=implicit-function-declaration]
write_c0_status(sr);
^drivers/irqchip/irq-tangox.c: In function 'tangox_irq_init':drivers/irqchip/irq-tangox.c:205:41: error: 'STATUSB_IP2' undeclared (first use in this function)
chip->mask = ((1 << (irq - 2)) - 1) << STATUSB_IP2;
^drivers/irqchip/irq-tangox.c:205:41: note: each undeclared identifier is reported only once for each function it appears in
In arch/mips/kernel/irq.c
atomic_t irq_err_count;
int arch_show_interrupts(struct seq_file *p, int prec)
{
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
return 0;
}asmlinkage void spurious_interrupt(void)
{
atomic_inc(&irq_err_count);
}In arch/arm/kernel/irq.c
unsigned long irq_err_count;
int arch_show_interrupts(struct seq_file *p, int prec) {
#ifdef CONFIG_FIQ show_fiq_list(p, prec); #endif #ifdef CONFIG_SMP show_ipi_list(p, prec); #endif seq_printf(p, "%*s: %10lu\n", prec, "Err", irq_err_count); return 0; }
static inline void ack_bad_irq(int irq)
{
extern unsigned long irq_err_count;
irq_err_count++;
pr_crit("unexpected IRQ trap at vector %02x\n", irq);
}Replacing spurious_interrupt() with ack_bad_irq() doesn't feel correct. (Writing to the console from an IRQ handler can't be good?)
It's the same interrupt controller hardware on the MIPS and ARM platforms. Are there platform-agnostic / generic alternatives?
In arch/mips/include/asm/mipsregs.h
/*
* Manipulate bits in a c0 register.
*/
#define __BUILD_SET_C0(name)
set_c0_##name
clear_c0_##name
change_c0_##name__BUILD_SET_C0(status)
#define read_c0_status() __read_32bit_c0_register($12, 0)
#define write_c0_status(val) __write_32bit_c0_register($12, 0, val)
Obviously very platform-specific...
Guess I'll have to take a look@the MIPS programmer's guide.
Regards.
Quoted 5 lines · Mason
Hello,
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.c
On MIPS, you usually have a built-in interrupt controller in the CPU off which you can have as many interrupt controllers which are SoC-specific. This means that you typically register a cascading handler for one of the MIPS HW interrupts (typically 2 and 3).
Calling clear_c0_status() and write_c0_status() in tangox_irq_handler() sounds like a layering violation here, this should be taken care of by the interrupt code once proper parenting between the MIPS IRQ controller and your tangox controller is established.
You could take a look at drivers/irqchip/irq-bcm7038-l1.c and arch/mips/bmips/irq.c for an example of an interrupt controller that works on both ARM and MIPS.
Quoted 115 lines
static void
tangox_irq_handler(unsigned int irq, struct irq_desc *desc){ struct irq_domain *dom = irq_desc_get_handler_data(desc); struct tangox_irq_chip *chip = dom->host_data; unsigned int status, status_hi; unsigned int sr = 0; status = intc_readl(chip, chip->ctl + IRQ_STATUS); status_hi = intc_readl(chip, chip->ctl + IRQ_CTL_HI + IRQ_STATUS); if (!(status | status_hi)) { spurious_interrupt(); return; } if (chip->mask) sr = clear_c0_status(chip->mask); tangox_dispatch_irqs(dom, status, 0); tangox_dispatch_irqs(dom, status_hi, 32); if (chip->mask) write_c0_status(sr); }CC
drivers/irqchip/irq-tangox.odrivers/irqchip/irq-tangox.c: In function 'tangox_irq_handler':drivers/irqchip/irq-tangox.c:85:3: error: implicit declaration of function 'spurious_interrupt' [-Werror=implicit-function-declaration]spurious_interrupt(); ^ drivers/irqchip/irq-tangox.c:90:3: error: implicit declaration of function 'clear_c0_status' [-Werror=implicit-function-declaration] sr = clear_c0_status(chip->mask); ^ drivers/irqchip/irq-tangox.c:96:3: error: implicit declaration of function 'write_c0_status' [-Werror=implicit-function-declaration] write_c0_status(sr); ^ drivers/irqchip/irq-tangox.c: In function 'tangox_irq_init': drivers/irqchip/irq-tangox.c:205:41: error: 'STATUSB_IP2' undeclared (first use in this function) chip->mask = ((1 << (irq - 2)) - 1) << STATUSB_IP2; ^
drivers/irqchip/irq-tangox.c:205:41: note: each undeclared identifier is reported only once for each function it appears inIn
arch/mips/kernel/irq.c
atomic_tirq_err_count;int
arch_show_interrupts(struct seq_file *p, int prec){ seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); return 0; }asmlinkage void
spurious_interrupt(void){ atomic_inc(&irq_err_count); }In
arch/arm/kernel/irq.cunsigned long
irq_err_count;int
arch_show_interrupts(struct seq_file *p, int prec){#ifdef CONFIG_FIQ show_fiq_list(p, prec); #endif #ifdef CONFIG_SMP show_ipi_list(p, prec); #endif seq_printf(p, "%*s: %10lu\n", prec, "Err", irq_err_count); return 0; }static inline void
ack_bad_irq(int irq){ extern unsigned long irq_err_count; irq_err_count++; pr_crit("unexpected IRQ trap at vector %02x\n", irq); }Replacing
spurious_interrupt()withack_bad_irq()doesn't feel correct. (Writing to the console from an IRQ handler can't be good?)It's the same interrupt controller hardware on the MIPS and ARM platforms. Are there platform-agnostic / generic alternatives?
In
arch/mips/include/asm/mipsregs.h/*
* Manipulate bits in a c0 register.
*/
#define__BUILD_SET_C0(name)
set_c0_##name
clear_c0_##name
change_c0_##name__BUILD_SET_C0(status)#define
read_c0_status()__read_32bit_c0_register($12, 0)
#definewrite_c0_status(val)__write_32bit_c0_register($12, 0, val)Obviously very platform-specific...
Guess I'll have to take a look at the MIPS programmer's guide.Regards.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 1 line
Florian
Quoted 9 lines · Florian Fainelli
Quoted 2 lines · Mason
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.cCalling
clear_c0_status()andwrite_c0_status()intangox_irq_handler()sounds like a layering violation here, this should be taken care of by the interrupt code once proper parenting between the MIPS IRQ controller and your tangox controller is established.
Following Mans' suggestion, I deleted the arch-specific code, and the driver now compiles and links.
Unfortunately, I still can't get it to work, and I've been banging my head against the wall over this device tree monstrosity.
tangox_irq_init() fails in irq_of_parse_and_map()
I see thatirqchip_init is calledgic_of_init is called
but of_irq_parse_one(dev, index, &oirq) fails... :-(
Also, it makes no sense to me that an "interrupt-parent" specifies "downstream" controllers. Parent relationship usually moves closer to the "source" (like clk IIRC).
I've attached my (lame) attempt at a device tree.
If anyone can help me, I'd be eternally grateful. It doesn't help that device tree syntax looks like Klingon to me. My eyes have been glazing over [1] for days, but nothing is sinking in, and I find myself unscientifically hacking random bits with 0 success.
[1] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
Regards.
-------------- next part --------------
/dts-v1/;
/ {
compatible = "sigma,tango4-soc";
#address-cells = <1>;
#size-cells = <1>;
gic: interrupt-controller at 20001000 {
compatible = "arm,cortex-a9-gic";
interrupt-controller;
#interrupt-cells = <3>;
reg = <0x20001000 0x1000>,
<0x20000100 0x0100>;
};
soc {
compatible = "simple-bus";
interrupt-parent = <&irqintc>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
uart0: serial at 10700 {
compatible = "ns16550a";
reg = <0x10700 0x100>;
clock-frequency = <7372800>;
reg-shift = <2>;
no-loopback-test;
};/* eth0: emac at 26000 {
compatible = "sigma,smp8640-emac";
reg = <0x26000 0x800>;
interrupts = <38>;
clocks = <396000000>;
}; */
};
cpublock: cpublock {
compatible = "simple-bus";
reg = <0x60000 0x10000>;
ranges = <0x0 0x60000 0x10000>;
interrupt-parent = <&irqintc>;
#address-cells = <1>;
#size-cells = <1>;
intc: intc at e000 {
compatible = "sigma,tango-intc";
reg = <0xe000 0x1000>;
ranges = <0x0 0xe000 0x1000>;
interrupt-parent = <&gic>;
interrupt-controller;
#address-cells = <1>;
#size-cells = <1>;
irqintc: irq at 000 {
reg = <0x000 0x100>;
#interrupt-cells = <2>;
interrupts = <2>;
label = "IRQ";
};
fiqintc: fiq at 100 {
reg = <0x100 0x100>;
#interrupt-cells = <2>;
interrupts = <3>;
label = "FIQ";
};
iiqintc: iiq at 300 {
reg = <0x300 0x100>;
#interrupt-cells = <2>;
interrupts = <4>;
label = "IIQ";
};
};
};};
Quoted 18 lines · Mason
Quoted 9 lines · Florian Fainelli
Quoted 2 lines · Mason
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.cCalling
clear_c0_status()andwrite_c0_status()intangox_irq_handler()sounds like a layering violation here, this should be taken care of by the interrupt code once proper parenting between the MIPS IRQ controller and your tangox controller is established.Following Mans' suggestion, I deleted the arch-specific code, and the driver now compiles and links.
Unfortunately, I still can't get it to work, and I've been banging my head against the wall over this device tree monstrosity.
Quoted 6 lines
tangox_irq_init()fails inirq_of_parse_and_map()I see that
irqchip_initis calledgic_of_initis called
butof_irq_parse_one(dev, index, &oirq)fails... :-(
Use the latest DT from my tree. It looks like you're missing some changes.
Signature · 2 lines
M?ns Rullg?rd mans at mansr.com
Quoted 2 lines · M?ns Rullg?rd
Use the latest DT from my tree. It looks like you're missing some changes.
Indeed, my repo is not up-to-date. (I was vaguely worried that you'd have made further changes that I'd have to revert when back-porting to 3.14)
I'll try upgrading and report back.
By the way, did you write the DT from scratch?
Are there people walking this earth that can write device tree like C?
Regards.
Quoted 9 lines · Mason
Quoted 2 lines · M?ns Rullg?rd
Use the latest DT from my tree. It looks like you're missing some changes.
Indeed, my repo is not up-to-date. (I was vaguely worried that you'd have made further changes that I'd have to revert when back-porting to 3.14)
Quoted 5 lines
I'll try upgrading and report back.
By the way, did you write the DT from scratch?
Are there people walking this earth that can write device tree like C?
No cigar :-(
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)
I've attached the current version I'm playing with (I tried to make it as small as possible). If some charitable soul spots an obvious problem... (Commented blocks have been tested uncommented, of course.)
Regards
-------------- next part --------------
/dts-v1/;
/ {
compatible = "sigma,tango4-soc";
#address-cells = <1>;
#size-cells = <1>;
gic: interrupt-controller at 20001000 {
compatible = "arm,cortex-a9-gic";
interrupt-controller;
#interrupt-cells = <3>;
reg = <0x20001000 0x1000>,
<0x20000100 0x0100>;
};
soc {
compatible = "simple-bus";
/* interrupt-parent = <&irqintc>; */
#address-cells = <1>;
#size-cells = <1>;
ranges;
uart0: uart at 10700 {
compatible = "ns16550a";
reg = <0x10700 0x100>;
clock-frequency = <7372800>;
reg-shift = <2>;
no-loopback-test;
};
};
cpublock: cpublock {
compatible = "simple-bus";
reg = <0x60000 0x10000>;
ranges = <0x0 0x60000 0x10000>;
/* interrupt-parent = <&irqintc>; */
#address-cells = <1>;
#size-cells = <1>;
intc: intc at e000 {
compatible = "sigma,tango-intc";
reg = <0xe000 0x1000>;
ranges = <0x0 0xe000 0x1000>;
interrupt-parent = <&gic>;
interrupt-controller;
#address-cells = <1>;
#size-cells = <1>;
irqintc: irq at 000 {
reg = <0x000 0x100>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <2>;
label = "IRQ";
};/*
fiqintc: fiq at 100 {
reg = <0x100 0x100>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <3>;
label = "FIQ";
};
iiqintc: iiq at 300 {
reg = <0x300 0x100>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <4>;
label = "IIQ";
};
*/
};
};};
Quoted 19 lines · Mason
Quoted 9 lines · Mason
Quoted 2 lines · M?ns Rullg?rd
Use the latest DT from my tree. It looks like you're missing some changes.
Indeed, my repo is not up-to-date. (I was vaguely worried that you'd have made further changes that I'd have to revert when back-porting to 3.14)
Quoted 5 lines
I'll try upgrading and report back.
By the way, did you write the DT from scratch?
Are there people walking this earth that can write device tree like C?
No cigar :-(
Quoted 8 lines
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)I've attached the current version I'm playing with (I tried to make it as small as possible). If some charitable soul spots an obvious problem... (Commented blocks have been tested uncommented, of course.)
What happens when you try to boot with this device tree?
Quoted 36 lines
/dts-v1/;
/ { compatible = "sigma,tango4-soc"; #address-cells = <1>; #size-cells = <1>; gic: interrupt-controller at 20001000 { compatible = "arm,cortex-a9-gic"; interrupt-controller; #interrupt-cells = <3>; reg = <0x20001000 0x1000>, <0x20000100 0x0100>; }; soc { compatible = "simple-bus"; /* interrupt-parent = <&irqintc>; */ #address-cells = <1>; #size-cells = <1>; ranges; uart0: uart at 10700 { compatible = "ns16550a"; reg = <0x10700 0x100>; clock-frequency = <7372800>; reg-shift = <2>; no-loopback-test; }; }; cpublock: cpublock { compatible = "simple-bus"; reg = <0x60000 0x10000>; ranges = <0x0 0x60000 0x10000>;
Quoted 8 lines
/* interrupt-parent = <&irqintc>; */
#address-cells = <1>; #size-cells = <1>; intc: intc at e000 { compatible = "sigma,tango-intc"; reg = <0xe000 0x1000>; ranges = <0x0 0xe000 0x1000>;
Are you sure these addresses are correct? Those are the values from tango3.
Quoted 10 lines
interrupt-parent = <&gic>;
interrupt-controller;
#address-cells = <1>;
#size-cells = <1>;
irqintc: irq at 000 {
reg = <0x000 0x100>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <2>;This "interrupts" specification is wrong for a source wired into the GIC. For the correct format, see the binding spec in Documentation/devicetree/bindings/arm/gic.txt:
The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI interrupts.
The 2nd cell contains the interrupt number for the interrupt type. SPI interrupts are in the range [0-987]. PPI interrupts are in the range [0-15].
The 3rd cell is the flags, encoded as follows:
bits[3:0] trigger type and level flags.
1 = low-to-high edge triggered
2 = high-to-low edge triggered (invalid for SPIs) 4 = active high level-sensitive
8 = active low level-sensitive (invalid for SPIs).
bits[15:8] PPI interrupt cpu mask. Each bit corresponds to each of the 8 possible cpus attached to the GIC. A bit set to '1' indicated the interrupt is wired to that CPU. Only valid for PPI interrupts. Also note that the configurability of PPI interrupts is IMPLEMENTATION DEFINED and as such not guaranteed to be present (most SoC available in 2014 seem to ignore the setting of this flag and use the hardware default value).
The correct values for these three fields should be available in your datasheet.
Quoted 24 lines
label = "IRQ"; };/*
fiqintc: fiq at 100 { reg = <0x100 0x100>; interrupt-controller; #interrupt-cells = <2>; interrupts = <3>; label = "FIQ"; }; iiqintc: iiq at 300 { reg = <0x300 0x100>; interrupt-controller; #interrupt-cells = <2>; interrupts = <4>; label = "IIQ"; }; */ }; };};
Signature · 2 lines
M?ns Rullg?rd mans at mansr.com
Quoted 7 lines · M?ns Rullg?rd
Quoted 5 lines · Mason
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)
Quoted 5 lines
Quoted 3 lines
I've attached the current version I'm playing with (I tried to make it as small as possible). If some charitable soul spots an obvious problem... (Commented blocks have been tested uncommented, of course.)
What happens when you try to boot with this device tree?
It panics in tangox_irq_init IIRC.
Quoted 2 lines
Are you sure these addresses are correct? Those are the values from tango3.
AFAIU, that HW block hasn't changed in a long time, but I'll double-check to be sure.
Quoted 11 lines
Quoted 10 lines
interrupt-parent = <&gic>; interrupt-controller; #address-cells = <1>; #size-cells = <1>; irqintc: irq at 000 { reg = <0x000 0x100>; interrupt-controller; #interrupt-cells = <2>; interrupts = <2>;
Quoted 3 lines
This "interrupts" specification is wrong for a source wired into the GIC. For the correct format, see the binding spec in
Documentation/devicetree/bindings/arm/gic.txt:
Doooh! I'd read that document (about 12 times) but for some reason, it never occurred to me that I had to follow the syntax for the intc (although that seems obvious now that you mention it).
I suspect you've nailed my problem. Wish I could test right away, but it'll have to wait after the weekend.
Thanks (again).
Regards.
Quoted 15 lines · Mason
Quoted 7 lines · M?ns Rullg?rd
Quoted 5 lines · Mason
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)Quoted 5 lines
Quoted 3 lines
I've attached the current version I'm playing with (I tried to make it as small as possible). If some charitable soul spots an obvious problem... (Commented blocks have been tested uncommented, of course.)
What happens when you try to boot with this device tree?
Quoted 7 lines
It panics in
tangox_irq_initIIRC.Quoted 2 lines
Are you sure these addresses are correct? Those are the values from tango3.
AFAIU, that HW block hasn't changed in a long time, but I'll double-check to be sure.
Even if the HW block itself is unchanged, it may be mapped at a different address. ARM and MIPS systems generally have quite different-looking memory maps, so I'd actually be surprised if hasn't been moved.
Signature · 2 lines
M?ns Rullg?rd mans at mansr.com
Quoted 15 lines · Mason
Quoted 13 lines · Mason
Quoted 2 lines · M?ns Rullg?rd
Use the latest DT from my tree. It looks like you're missing some changes.
Indeed, my repo is not up-to-date. (I was vaguely worried that you'd have made further changes that I'd have to revert when back-porting to 3.14)
I'll try upgrading and report back.
By the way, did you write the DT from scratch?
Quoted 8 lines
Quoted 1 line
Are there people walking this earth that can write device tree like C?
No cigar :-(
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)
Here's something: http://devicetree.org/Device_Tree_Usage
Signature · 2 lines
M?ns Rullg?rd mans at mansr.com
Quoted 16 lines · M?ns Rullg?rd
Quoted 15 lines · Mason
Quoted 13 lines · Mason
Quoted 2 lines · M?ns Rullg?rd
Use the latest DT from my tree. It looks like you're missing some changes.
Indeed, my repo is not up-to-date. (I was vaguely worried that you'd have made further changes that I'd have to revert when back-porting to 3.14)
I'll try upgrading and report back.
By the way, did you write the DT from scratch?
Are there people walking this earth that can write device tree like C?
Quoted 8 lines
Quoted 6 lines
No cigar :-(
There's just too much DT syntax that flies light-years over my head. #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc. Basically, all I understand is /dts-v1/;
(Anyone have links to good tutorials?)Here's something: http://devicetree.org/Device_Tree_Usage
And here:
http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
Video to the slides:
https://www.youtube.com/watch?v=m_NyYEBxfn8
Have fun ;)
Matthias
Quoted 5 lines · Mason
Hello,
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.c
Go get the latest version of that file. It should work on ARM now.
Signature · 2 lines
M?ns Rullg?rd mans at mansr.com
Quoted 6 lines · M?ns Rullg?rd
Quoted 2 lines · Mason
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.cGo get the latest version of that file. It should work on ARM now.
It would probably have taken me days to figure out I could just delete the arch-dependent code. Linux internals are so hard to grok... <sigh>
Would you like me to ask if they can send you a dev board? :-)
By the way, it seems the generic UART driver does not use interrupts, which would explain why the console works despite my busted device tree. Does that mean that the driver polls? (I'll take a closer look tomorrow.)
Is it not worth it to use interrupts for slow devices?
Regards.
Quoted 9 lines · Mason
Quoted 6 lines · M?ns Rullg?rd
Quoted 2 lines · Mason
I'm trying to port to my ARM platform: IRQ handling code written for MIPS.
https://github.com/mansr/linux-tangox/blob/master/drivers/irqchip/irq-tangox.cGo get the latest version of that file. It should work on ARM now.
Quoted 8 lines
It would probably have taken me days to figure out I could just delete the arch-dependent code. Linux internals are so hard to grok... <sigh>
Would you like me to ask if they can send you a dev board? :-)
By the way, it seems the generic UART driver does not use interrupts, which would explain why the console works despite my busted device tree. Does that mean that the driver polls? (I'll take a closer look tomorrow.)
Kernel console is buffer and polled, user-space (tty) console uses interrupts.
Signature · 1 line
Florian
Quoted 8 lines · Florian Fainelli
Quoted 3 lines · Mason
By the way, it seems the generic UART driver does not use interrupts, which would explain why the console works despite my busted device tree. Does that mean that the driver polls? (I'll take a closer look tomorrow.)
Kernel console is buffer and polled, user-space (tty) console uses interrupts.
Thanks for clearing that up.