LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2006, 06:26 PM   #1
mclerand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Custom PCI Hardware


We're trying to bring up some custom PCI hardware under AwardBIOS 6.0 and Fedora Core 5 (2.6.16-1.2111_FC5smp) on an i686 arch. It appears that that hardware has the PCI configuration registers set up correctly (i.e. IRQ Pin register = 0x1 for requesting an IRQ #) but only 0xFF gets written into the IRQ Line PCI config register. Anyone know what could be happening?

Thanks
 
Old 06-10-2006, 09:44 AM   #2
ghatamos
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
did you do the request_mem_region...ioremap_nocache before accessing the PCI configuration registers?

i am not sure about PCI, but usually when you need to access registers from external hardware you need to to these things before being able to read or write (also when reading and writing use readl or writel respectively (for 32-bit access))
 
Old 06-10-2006, 09:56 AM   #3
mclerand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
The system I'm referring to is a single-board computer, on a i686 arch, Pentium 4 2.8GHz with HT. The single-board computer is plugged into a PCI backplane. I can read and write the hardware, no problem. I use ioremap_nocache to remap the PCI memory into kernel space. I can read blocks of memory from the hardware either via DMA or memcpy_fromio, toio. The hardware and driver are fully functional, except for interrupts. We trapped on the PCI config transactions with a logic analyzer and something is just not configuring the IRQ Line register properly. Something is writing 0xFF to this register, instead of a valid IRQ #. I called the BIOS vendor yesterday and they claim that it must be the Linux kernel's problem. They claim to have run Fedora Core 3 and RedHat 9 on it without issue. I really don't want to go back in time that far. I have been doing some searching around and I am finding evidence of others having problems with: ACPI, Linux 2.6, and interrupts. I'm gonna try to track this one down and see if I can't figure out where in the kernel things might be going south. If you have any tips, I'd appreciate it.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCI Hardware Probe - Hangs stlyz3 Linux - Hardware 2 12-26-2007 07:45 AM
Probing PCI hardware TravisOSF SUSE / openSUSE 1 04-16-2006 10:58 AM
Wifi PCI Hardware for Linux pfaendtner Linux - Hardware 2 06-25-2004 09:55 AM
I need help getting my hardware PCI modem working MustangCSA Linux - Newbie 2 02-13-2004 06:50 AM
Hardware RAID PCI Card (Hardware?) MasterC Linux - Hardware 1 03-01-2003 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration