linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* APIC misconfiguration
@ 2008-10-06 16:23 Andrey Batyiev
  2008-10-06 16:50 ` Cyrill Gorcunov
  0 siblings, 1 reply; 7+ messages in thread
From: Andrey Batyiev @ 2008-10-06 16:23 UTC (permalink / raw)
  To: linux-kernel

Hello everyone

I'm trying to create touchscreen driver for Wibrain UMPC. I found out that device doesn't emit interrupts until I switch polarity field in IO_APIC_route_entry. To do this, I need to export ioapic_read_entry and ioapic_write_entry symbols from arch/x86/kernel/io_apic_{32,64}.c
Is there any other (better) way to do this?

Thanks,
   Andrey

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 16:23 APIC misconfiguration Andrey Batyiev
@ 2008-10-06 16:50 ` Cyrill Gorcunov
  2008-10-06 16:55   ` Andrey Batyiev
  0 siblings, 1 reply; 7+ messages in thread
From: Cyrill Gorcunov @ 2008-10-06 16:50 UTC (permalink / raw)
  To: Andrey Batyiev; +Cc: linux-kernel

[Andrey Batyiev - Mon, Oct 06, 2008 at 07:23:08PM +0300]
| Hello everyone
| 
| I'm trying to create touchscreen driver for Wibrain UMPC. I found
| out that device doesn't emit interrupts until I switch polarity
| field in IO_APIC_route_entry. To do this, I need to export
| ioapic_read_entry and ioapic_write_entry symbols from
| arch/x86/kernel/io_apic_{32,64}.c
| Is there any other (better) way to do this?
| 
| Thanks,
|    Andrey
| 

Hi Andrey,

actually it's not a bug of APIC itself but rather misconfigured
device I think. Not sure thru which bus it does work (pci
i suppose) but I think you better are to fix it on more higher
level like in config space of this device. PCI guys could tell
you more about this area I believe.

		- Cyrill -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 16:50 ` Cyrill Gorcunov
@ 2008-10-06 16:55   ` Andrey Batyiev
  2008-10-06 17:17     ` Cyrill Gorcunov
  0 siblings, 1 reply; 7+ messages in thread
From: Andrey Batyiev @ 2008-10-06 16:55 UTC (permalink / raw)
  To: Cyrill Gorcunov; +Cc: linux-kernel

Hi Cyrill,

> actually it's not a bug of APIC itself but rather misconfigured
> device I think. Not sure thru which bus it does work (pci
> i suppose) but I think you better are to fix it on more higher
> level like in config space of this device. PCI guys could tell
> you more about this area I believe.

Device is connected to ISA bus and haven't any autoconfiguration methods.

Thanks,
   Andrey

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 16:55   ` Andrey Batyiev
@ 2008-10-06 17:17     ` Cyrill Gorcunov
  2008-10-06 17:30       ` Andrey Batyiev
  0 siblings, 1 reply; 7+ messages in thread
From: Cyrill Gorcunov @ 2008-10-06 17:17 UTC (permalink / raw)
  To: Andrey Batyiev; +Cc: linux-kernel

[Andrey Batyiev - Mon, Oct 06, 2008 at 07:55:28PM +0300]
| Hi Cyrill,
| 
| > actually it's not a bug of APIC itself but rather misconfigured
| > device I think. Not sure thru which bus it does work (pci
| > i suppose) but I think you better are to fix it on more higher
| > level like in config space of this device. PCI guys could tell
| > you more about this area I believe.
| 
| Device is connected to ISA bus and haven't any autoconfiguration methods.
| 
| Thanks,
|    Andrey
| 

hmm... don't we have any ISA quirks already? If this device support
PnP there should be descriptor for irq line where you could change it
since I don't believe it would be a first device in kernel which behave
not as supposed and developers has to override some configs bits.
Hope it help (i didn't check ISA code though -- too busy now).

		- Cyrill -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 17:17     ` Cyrill Gorcunov
@ 2008-10-06 17:30       ` Andrey Batyiev
  2008-10-06 17:54         ` Cyrill Gorcunov
  2008-10-07 11:47         ` Matthew Garrett
  0 siblings, 2 replies; 7+ messages in thread
From: Andrey Batyiev @ 2008-10-06 17:30 UTC (permalink / raw)
  To: Cyrill Gorcunov; +Cc: linux-kernel

> hmm... don't we have any ISA quirks already? If this device support
> PnP there should be descriptor for irq line where you could change it
> since I don't believe it would be a first device in kernel which behave
> not as supposed and developers has to override some configs bits.
> Hope it help (i didn't check ISA code though -- too busy now).

Well, it seems device haven't either PnP or isapnp doesn't detect it.

Thanks,
   Andrey

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 17:30       ` Andrey Batyiev
@ 2008-10-06 17:54         ` Cyrill Gorcunov
  2008-10-07 11:47         ` Matthew Garrett
  1 sibling, 0 replies; 7+ messages in thread
From: Cyrill Gorcunov @ 2008-10-06 17:54 UTC (permalink / raw)
  To: Andrey Batyiev; +Cc: linux-kernel

[Andrey Batyiev - Mon, Oct 06, 2008 at 08:30:42PM +0300]
| > hmm... don't we have any ISA quirks already? If this device support
| > PnP there should be descriptor for irq line where you could change it
| > since I don't believe it would be a first device in kernel which behave
| > not as supposed and developers has to override some configs bits.
| > Hope it help (i didn't check ISA code though -- too busy now).
| 
| Well, it seems device haven't either PnP or isapnp doesn't detect it.
| 
| Thanks,
|    Andrey
| 

Lets better wait for advices for other developers. Writting directly
to io-apic routing table is not a good idea i think. Some quirks
should be involved.

		- Cyrill -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: APIC misconfiguration
  2008-10-06 17:30       ` Andrey Batyiev
  2008-10-06 17:54         ` Cyrill Gorcunov
@ 2008-10-07 11:47         ` Matthew Garrett
  1 sibling, 0 replies; 7+ messages in thread
From: Matthew Garrett @ 2008-10-07 11:47 UTC (permalink / raw)
  To: Andrey Batyiev; +Cc: Cyrill Gorcunov, linux-kernel

On Mon, Oct 06, 2008 at 08:30:42PM +0300, Andrey Batyiev wrote:
> > hmm... don't we have any ISA quirks already? If this device support
> > PnP there should be descriptor for irq line where you could change it
> > since I don't believe it would be a first device in kernel which behave
> > not as supposed and developers has to override some configs bits.
> > Hope it help (i didn't check ISA code though -- too busy now).
> 
> Well, it seems device haven't either PnP or isapnp doesn't detect it.

It'd be more likely to be acpipnp nowadays. Does it appear anywhere in 
/sys/class/pnp?

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-07 11:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-06 16:23 APIC misconfiguration Andrey Batyiev
2008-10-06 16:50 ` Cyrill Gorcunov
2008-10-06 16:55   ` Andrey Batyiev
2008-10-06 17:17     ` Cyrill Gorcunov
2008-10-06 17:30       ` Andrey Batyiev
2008-10-06 17:54         ` Cyrill Gorcunov
2008-10-07 11:47         ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).