Skip to contentSkip to conversation

pca953x - warning on irq

DISCUSSION Manfred Gruber 3 participants 4 messages Dec 25, 2011 – Feb 13, 2012

lore
Share & tools
lore
#0 lore raw

Hello RT developers!

Great work on Preempt RT!

I get a warning at 3.0.9-rt25+ in a i2c pca953x chip when using IRQs at the gpio lines. It appears only once when the first irq happens, after that the warning is away. On 3.2.0-rc7 the warning does not happen.

I do not know how to remove/solve the warning, has someone an idea what I do wrong?

[   28.616000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   45.240000] ------------[ cut here ]------------
[   45.240000] WARNING: at kernel/irq/handle.c:130 
handle_irq_event_percpu+0x68/0x168()
[   45.240000] irq 130 handler irq_default_primary_handler+0x0/0x8 enabled 
interrupts
[   45.242000] Modules linked in:
[   45.242000] [<c0039cd8>] (unwind_backtrace+0x0/0xec) from [<c00473d4>] 
(warn_slowpath_common+0x4c/)
[   45.242000] [<c00473d4>] (warn_slowpath_common+0x4c/0x64) from [<c0047480>] 
(warn_slowpath_fmt+0x3)
[   45.242000] [<c0047480>] (warn_slowpath_fmt+0x30/0x40) from [<c0078264>] 
(handle_irq_event_percpu+)
[   45.242000] [<c0078264>] (handle_irq_event_percpu+0x68/0x168) from 
[<c00783b8>] (handle_irq_event+)
[   45.242000] [<c00783b8>] (handle_irq_event+0x54/0x78) from [<c007a828>] 
(handle_simple_irq+0x84/0x)
[   45.242000] [<c007a828>] (handle_simple_irq+0x84/0xac) from [<c0077eb0>] 
(generic_handle_irq+0x30/)
[   45.242000] [<c0077eb0>] (generic_handle_irq+0x30/0x48) from [<c0168508>] 
(pca953x_irq_handler+0x9)
[   45.242000] [<c0168508>] (pca953x_irq_handler+0x98/0xac) from [<c0078930>] 
(irq_thread_fn+0x1c/0x3)
[   45.242000] [<c0078930>] (irq_thread_fn+0x1c/0x38) from [<c00787ec>] 
(irq_thread+0xc8/0x1f0)
[   45.242000] [<c00787ec>] (irq_thread+0xc8/0x1f0) from [<c006082c>] 
(kthread+0x7c/0x84)
[   45.242000] [<c006082c>] (kthread+0x7c/0x84) from [<c00358dc>] 
(kernel_thread_exit+0x0/0x8)
[   45.242000] ---[ end trace 0000000000000002 ]---
# cat /proc/interrupts 
           CPU0       
  1:       8340       AIC  ttyS0
  7:          2       AIC  ttyS2
  9:        327       AIC  mmc0
 12:      22381       AIC  atmel_spi.0
 13:      74311       AIC  atmel_spi.1
 19:     245940       AIC  tc_clkevt
 20:        541       AIC  ohci_hcd:usb1
 21:          2       AIC  eth0
103:          5      GPIO  0-0070
128:          0   pca953x  gpiolib
129:          0   pca953x  gpiolib
130:          2   pca953x  gpiolib
131:          0   pca953x  gpiolib
132:          0   pca953x  gpiolib

thx, regards manfred gruber

#1 lore raw
Quoted 10 lines · Manfred Gruber

Hello RT developers!

Great work on Preempt RT!

I get a warning at 3.0.9-rt25+ in a i2c pca953x chip when using IRQs at the gpio lines. It appears only once when the first irq happens, after that the warning is away. On 3.2.0-rc7 the warning does not happen.

I do not know how to remove/solve the warning, has someone an idea what I do wrong?

Could you please try upstream commit [6dd599f8: gpio/pca953x: Fix warning of enabled interrupts in handler] ?

BTW, I think that commit should go to -stable.

Thanks,
Yong

Quoted 59 lines

[   28.616000] sd 1:0:0:0: [sdb] Attached SCSI removable disk [   45.240000] ------------[ cut here ]------------ [   45.240000] WARNING: at kernel/irq/handle.c:130

handle_irq_event_percpu+0x68/0x168()
[   45.240000] irq 130 handler irq_default_primary_handler+0x0/0x8 enabled

interrupts
[   45.242000] Modules linked in:
[   45.242000] [<c0039cd8>] (unwind_backtrace+0x0/0xec) from [<c00473d4>] (warn_slowpath_common+0x4c/)
[   45.242000] [<c00473d4>] (warn_slowpath_common+0x4c/0x64) from [<c0047480>] (warn_slowpath_fmt+0x3)
[   45.242000] [<c0047480>] (warn_slowpath_fmt+0x30/0x40) from [<c0078264>] (handle_irq_event_percpu+)
[   45.242000] [<c0078264>] (handle_irq_event_percpu+0x68/0x168) from [<c00783b8>] (handle_irq_event+)
[   45.242000] [<c00783b8>] (handle_irq_event+0x54/0x78) from [<c007a828>] (handle_simple_irq+0x84/0x)
[   45.242000] [<c007a828>] (handle_simple_irq+0x84/0xac) from [<c0077eb0>] (generic_handle_irq+0x30/)
[   45.242000] [<c0077eb0>] (generic_handle_irq+0x30/0x48) from [<c0168508>] (pca953x_irq_handler+0x9)
[   45.242000] [<c0168508>] (pca953x_irq_handler+0x98/0xac) from [<c0078930>] (irq_thread_fn+0x1c/0x3)
[   45.242000] [<c0078930>] (irq_thread_fn+0x1c/0x38) from [<c00787ec>] (irq_thread+0xc8/0x1f0)
[   45.242000] [<c00787ec>] (irq_thread+0xc8/0x1f0) from [<c006082c>] (kthread+0x7c/0x84)
[   45.242000] [<c006082c>] (kthread+0x7c/0x84) from [<c00358dc>] (kernel_thread_exit+0x0/0x8)
[   45.242000] ---[ end trace 0000000000000002 ]---

# cat /proc/interrupts
          CPU0
 1:       8340       AIC  ttyS0
 7:          2       AIC  ttyS2
 9:        327       AIC  mmc0
 12:      22381       AIC  atmel_spi.0
 13:      74311       AIC  atmel_spi.1
 19:     245940       AIC  tc_clkevt
 20:        541       AIC  ohci_hcd:usb1
 21:          2       AIC  eth0
103:          5      GPIO  0-0070
128:          0   pca953x  gpiolib
129:          0   pca953x  gpiolib
130:          2   pca953x  gpiolib
131:          0   pca953x  gpiolib
132:          0   pca953x  gpiolib

thx, regards manfred gruber

--

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Only stand for myself
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

Hi Yong Zhang!

Thx a lot, that fix removed the warning on 3.0.14-rt31+.

Regards Manfred

Am Tuesday 27 December 2011 schrieb Yong Zhang:

Quoted 1 line

On Mon, Dec 26, 2011 at 12:40 AM, Manfred Gruber <[email protected]>

Quoted 75 lines · wrote:
Quoted 10 lines

Hello RT developers!

Great work on Preempt RT!

I get a warning at 3.0.9-rt25+ in a i2c pca953x chip when using IRQs at the gpio lines. It appears only once when the first irq happens, after that the warning is away. On 3.2.0-rc7 the warning does not happen.

I do not know how to remove/solve the warning, has someone an idea what I do wrong?

Could you please try upstream commit [6dd599f8: gpio/pca953x: Fix warning of enabled interrupts in handler] ?

BTW, I think that commit should go to -stable.

Thanks,
Yong

Quoted 56 lines
[   28.616000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   45.240000] ------------[ cut here ]------------
[   45.240000] WARNING: at kernel/irq/handle.c:130
handle_irq_event_percpu+0x68/0x168()
[   45.240000] irq 130 handler irq_default_primary_handler+0x0/0x8
enabled interrupts
[   45.242000] Modules linked in:
[   45.242000] [<c0039cd8>] (unwind_backtrace+0x0/0xec) from [<c00473d4>]
(warn_slowpath_common+0x4c/)
[   45.242000] [<c00473d4>] (warn_slowpath_common+0x4c/0x64) from
[<c0047480>] (warn_slowpath_fmt+0x3)
[   45.242000] [<c0047480>] (warn_slowpath_fmt+0x30/0x40) from
[<c0078264>] (handle_irq_event_percpu+)
[   45.242000] [<c0078264>] (handle_irq_event_percpu+0x68/0x168) from
[<c00783b8>] (handle_irq_event+)
[   45.242000] [<c00783b8>] (handle_irq_event+0x54/0x78) from
[<c007a828>] (handle_simple_irq+0x84/0x)
[   45.242000] [<c007a828>] (handle_simple_irq+0x84/0xac) from
[<c0077eb0>] (generic_handle_irq+0x30/)
[   45.242000] [<c0077eb0>] (generic_handle_irq+0x30/0x48) from
[<c0168508>] (pca953x_irq_handler+0x9)
[   45.242000] [<c0168508>] (pca953x_irq_handler+0x98/0xac) from
[<c0078930>] (irq_thread_fn+0x1c/0x3)
[   45.242000] [<c0078930>] (irq_thread_fn+0x1c/0x38) from [<c00787ec>]
(irq_thread+0xc8/0x1f0)
[   45.242000] [<c00787ec>] (irq_thread+0xc8/0x1f0) from [<c006082c>]
(kthread+0x7c/0x84)
[   45.242000] [<c006082c>] (kthread+0x7c/0x84) from [<c00358dc>]
(kernel_thread_exit+0x0/0x8)
[   45.242000] ---[ end trace 0000000000000002 ]---
# cat /proc/interrupts
          CPU0
 1:       8340       AIC  ttyS0
 7:          2       AIC  ttyS2
 9:        327       AIC  mmc0
 12:      22381       AIC  atmel_spi.0
 13:      74311       AIC  atmel_spi.1
 19:     245940       AIC  tc_clkevt
 20:        541       AIC  ohci_hcd:usb1
 21:          2       AIC  eth0
103:          5      GPIO  0-0070
128:          0   pca953x  gpiolib
129:          0   pca953x  gpiolib
130:          2   pca953x  gpiolib
131:          0   pca953x  gpiolib
132:          0   pca953x  gpiolib

thx, regards manfred gruber

--

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
mfg
	Manfred Gruber
	[email protected]
	http://www.unverspurt.at
#3 lore raw
Quoted 3 lines · Manfred Gruber

Hi Yong Zhang!

Thx a lot, that fix removed the warning on 3.0.14-rt31+.

Hi,

I was thinking that this would have came into -rt as a 3.0 stable tree, but it doesn't seem to.

Should this go into mainline stable?

And is it still needed for 3.0-rt?

Thanks!

-- Steve

Quoted 83 lines

Regards Manfred

Am Tuesday 27 December 2011 schrieb Yong Zhang:

Quoted 1 line

On Mon, Dec 26, 2011 at 12:40 AM, Manfred Gruber <[email protected]>

Quoted 75 lines · wrote:
Quoted 10 lines

Hello RT developers!

Great work on Preempt RT!

I get a warning at 3.0.9-rt25+ in a i2c pca953x chip when using IRQs at the gpio lines. It appears only once when the first irq happens, after that the warning is away. On 3.2.0-rc7 the warning does not happen.

I do not know how to remove/solve the warning, has someone an idea what I do wrong?

Could you please try upstream commit [6dd599f8: gpio/pca953x: Fix warning of enabled interrupts in handler] ?

BTW, I think that commit should go to -stable.

Thanks,
Yong

Quoted 56 lines
[   28.616000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   45.240000] ------------[ cut here ]------------
[   45.240000] WARNING: at kernel/irq/handle.c:130
handle_irq_event_percpu+0x68/0x168()
[   45.240000] irq 130 handler irq_default_primary_handler+0x0/0x8
enabled interrupts
[   45.242000] Modules linked in:
[   45.242000] [<c0039cd8>] (unwind_backtrace+0x0/0xec) from [<c00473d4>]
(warn_slowpath_common+0x4c/)
[   45.242000] [<c00473d4>] (warn_slowpath_common+0x4c/0x64) from
[<c0047480>] (warn_slowpath_fmt+0x3)
[   45.242000] [<c0047480>] (warn_slowpath_fmt+0x30/0x40) from
[<c0078264>] (handle_irq_event_percpu+)
[   45.242000] [<c0078264>] (handle_irq_event_percpu+0x68/0x168) from
[<c00783b8>] (handle_irq_event+)
[   45.242000] [<c00783b8>] (handle_irq_event+0x54/0x78) from
[<c007a828>] (handle_simple_irq+0x84/0x)
[   45.242000] [<c007a828>] (handle_simple_irq+0x84/0xac) from
[<c0077eb0>] (generic_handle_irq+0x30/)
[   45.242000] [<c0077eb0>] (generic_handle_irq+0x30/0x48) from
[<c0168508>] (pca953x_irq_handler+0x9)
[   45.242000] [<c0168508>] (pca953x_irq_handler+0x98/0xac) from
[<c0078930>] (irq_thread_fn+0x1c/0x3)
[   45.242000] [<c0078930>] (irq_thread_fn+0x1c/0x38) from [<c00787ec>]
(irq_thread+0xc8/0x1f0)
[   45.242000] [<c00787ec>] (irq_thread+0xc8/0x1f0) from [<c006082c>]
(kthread+0x7c/0x84)
[   45.242000] [<c006082c>] (kthread+0x7c/0x84) from [<c00358dc>]
(kernel_thread_exit+0x0/0x8)
[   45.242000] ---[ end trace 0000000000000002 ]---
# cat /proc/interrupts
          CPU0
 1:       8340       AIC  ttyS0
 7:          2       AIC  ttyS2
 9:        327       AIC  mmc0
 12:      22381       AIC  atmel_spi.0
 13:      74311       AIC  atmel_spi.1
 19:     245940       AIC  tc_clkevt
 20:        541       AIC  ohci_hcd:usb1
 21:          2       AIC  eth0
103:          5      GPIO  0-0070
128:          0   pca953x  gpiolib
129:          0   pca953x  gpiolib
130:          2   pca953x  gpiolib
131:          0   pca953x  gpiolib
132:          0   pca953x  gpiolib

thx, regards manfred gruber

--

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html