ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
djrscally has quit [Ping timeout: 256 seconds]
torez has quit [Ping timeout: 256 seconds]
Turingtoast has joined #armlinux
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<arnd>
one bit I'm still unsure about is how to deal with IRQ0 on iop32x, as this is considered a valid IRQ number by the platform but not the generic irq code
<arnd>
I /think/ it broke in 2014 after a71b092a9c68 ("ARM: Convert handle_IRQ to use __handle_domain_irq") without anyone caring, but I want to make my version at least superficially sensible, and I need to decide whether to call the arm version of handle_IRQ() which rejects IRQ 0, or generic_handle_irq(), which just passes it into irq_to_desc() and hopes to get a valid descriptor out
<arnd>
maz: is this broken in both cases, or does generic_handle_irq(0) have a chance of working?
apritzel_ has joined #armlinux
apritzel_ has quit [Ping timeout: 256 seconds]
<maz>
arnd: it may have a chance to work it you're never using irq domains. the old way to sidestep the problem would be to offset all interrupts by 1, fixing up the offset when interacting with the interrupt controller.
<maz>
work if*
<maz>
but isn't iop32x dead already?
luisgpm has joined #armlinux
<arnd>
There must have been a reason why we did not remove the platform last January when I went through them all, but it probably was a close call
luispm has quit [Ping timeout: 264 seconds]
<arnd>
I know that the debian build infrastructure was a reason a few years ago, but they now build on 64-bit with chroot
<arnd>
Rmk had a machine he was using, I should ask him if he still does
<arnd>
Openwrt removed support a few years ago as well
<maz>
even openwrt seems to have declared it as broken.
<maz>
yup
alexels has joined #armlinux
<arnd>
Apparently I concluded a year ago that there were still enough users. The Thecus N2100 is clearly one of the nicer ARMv5 platforms ever made, with 512MB of RAM and dual SATA, and probably more reliable than the Kirkwood. Whether those users still plan to do kernel updates in the future is another question
<arnd>
maz: I think I'd just start with a patch to offset the interrupt numbers and then do my conversion on top. Do you think a71b092a9c68 ("ARM: Convert handle_IRQ to use __handle_domain_irq") is the correct reference if I want a Fixes tag, or should I just leave it out?
* maz
digs.
Pali has joined #armlinux
<maz>
arnd: I don't think this commit broke it. we pass 'false' for lookup, so we won't hit any irqdomain, and we then perform the irqdesc lookup.
<maz>
I definitely remember testing this stuff on non-DT platforms with 0 as a valid IRQ (I think it was a PXA270 at the time).
monstr has joined #armlinux
<arnd>
maz: I don't see it yet. It looks like this would run into the 'if (!irq) ack_bad_irq(irq); else generic_handle_irq(irq);' from 76ba59f8366f ("genirq: Add irq_domain-aware core IRQ handler"), and fail there. Am I looking in the wrong place?
<maz>
arnd: ah darn, you must be right.
<maz>
I guess my testing wasn't that great at the time!
matthias_bgg has joined #armlinux
<arnd>
maz: If I read this correctly, there is only one pxa board that uses the ssp3 irq: sound/soc/pxa/zylonite.c, the other boards use only the first two audio channels that have non-zero IRQs
<arnd>
and this is only one of the reference boards, which I think in case of pxa are super rare compared to the commercial boards and pcketpc machines
<arnd>
I'm not going to touch that one today
<maz>
I use to have access to one of those, but I think the one I tested on was Zeus. And it is not unlikely that with NR_IRQS_LEGACY > 0, none of the SoC IRQs were anywhere near 0.
<arnd>
actually, pxa is probably fine (at least now), because it seems to use domains correctly
matthias_bgg has quit [Ping timeout: 252 seconds]
matthias_bgg has joined #armlinux
luisgpm has quit [Ping timeout: 268 seconds]
<arnd>
updated the branch now with the added iop32x patch, and managed to kill off handle_IRQ() as well
<broonie>
arnd: The default audio on the Zylonite was AC'97 not SSP.
<broonie>
SSP was only used if you replaced the audio module.
ardb has quit [Quit: Leaving.]
ardb has joined #armlinux
jlinton has joined #armlinux
rbutler1728 has joined #armlinux
luispm has joined #armlinux
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
torez has joined #armlinux
headless has joined #armlinux
Tokamak has joined #armlinux
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #armlinux
iivanov__ has joined #armlinux
iivanov__ has quit [Read error: Connection reset by peer]
iivanov__ has joined #armlinux
iivanov has quit [Ping timeout: 264 seconds]
headless has quit [Quit: Konversation terminated!]
torez has quit [Ping timeout: 264 seconds]
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gpiccoli_ has joined #armlinux
HdkR has quit [Ping timeout: 256 seconds]
sud has quit [Ping timeout: 256 seconds]
kristinam has quit [Ping timeout: 256 seconds]
nashpa has joined #armlinux
gpiccoli has quit [Ping timeout: 256 seconds]
javierm has quit [Ping timeout: 256 seconds]
dliviu has quit [Ping timeout: 256 seconds]
palmer has quit [Ping timeout: 256 seconds]
mal`` has quit [Ping timeout: 256 seconds]
gpiccoli_ is now known as gpiccoli
kristinam has joined #armlinux
HdkR has joined #armlinux
javierm has joined #armlinux
mal`` has joined #armlinux
torez has joined #armlinux
sud has joined #armlinux
palmer has joined #armlinux
rbutler1728 has quit [Read error: Connection reset by peer]
guillaume_g has quit [Quit: Konversation terminated!]