LinuxQuestions.org
Register a domain and help support LQ
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 07-05-2006, 04:06 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Understanding the output of lspci


Hi,

Can anyone help me to understand the output of the lspci command specificially with respect to the IDE controller information. I am trying to resolve a DMA related problem wtih my IDE controller and I need to find out about the status of a particular bit(enable/disable) in PCI configuration space for my IDE controller device. From the man pages of lspci
Code:
-xxx
    Show hexadecimal dump of the whole PCI configuration space. It is available only to root as several PCI devices crash when you try to read some parts of the config space (this behavior probably doesn't violate the PCI standard, but it's at least very stupid). However, such devices are rare, so you needn't worry much.
And here is the output of my lspci command for my IDE controller
Code:
0000:00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
        Subsystem: Intel Corporation 82801DB (ICH4) IDE Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at <ignored>
        Region 1: I/O ports at <ignored>
        Region 2: I/O ports at <ignored>
        Region 3: I/O ports at <ignored>
        Region 4: I/O ports at dc00 [size=16]
        Region 5: Memory at 40000000 (32-bit, non-prefetchable) [size=1K]
00: 86 80 cb 24 07 00 80 02 02 8a 01 01 00 00 00 00
10: 01 ec 00 00 01 e8 00 00 01 e4 00 00 01 e0 00 00
20: 01 dc 00 00 00 00 00 40 00 00 00 00 86 80 cb 24
30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 00 00
40: 07 a3 00 80 00 00 00 00 01 00 01 00 00 00 00 00
50: 00 00 00 00 11 14 00 00 00 00 00 00 00 00 00 00
60: 08 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 60 0f 00 00 00 00 00 00
Now what I am trying to find out is whether the IDE(dma) port(bit) is enabled or not in the PCI configuration space of the device and the above output is the hexadecimal dump of the PCI configuration space. How can I find out about that bit?

Thanks in advance. Any help will be highly appreciated.
 
Old 07-05-2006, 08:11 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Theres an easier way try

hdparm /dev/hdX

This will return information about the disk attached, This is the output for my main disk

Code:
hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 24792/255/63, sectors = 398297088, start = 0
you can also use hdparm to change these settings but be very careful, as its easy to screw up your system, if you don't know what your doing.

Last edited by leonscape; 07-05-2006 at 08:12 PM.
 
Old 07-05-2006, 08:33 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by leonscape
Theres an easier way try

hdparm /dev/hdX

This will return information about the disk attached, This is the output for my main disk

Code:
hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 24792/255/63, sectors = 398297088, start = 0
you can also use hdparm to change these settings but be very careful, as its easy to screw up your system, if you don't know what your doing.
Well I have already done all that and hdparm does not allow be to enable the DMA (saying operation not permitted). My driver "AMDCS5536" loads fine but during the loading it gives the following message which indicated that I have to debug PCI configuration space.
Here is a part of dmesg related to the IDE controller driver:
Code:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AMD5536: IDE controller at PCI slot 0000:00:0f.2
AMD5536: chipset revision 1
AMD5536: not 100% native mode: will probe irqs later
AMD5536: 0000:00:0f.2 (rev 01) UDMA100 controller
AMD5536: neither IDE port enabled (BIOS)
The culprit is the line "AMD5536: neither IDE port enabled (BIOS)" and that; why I am tring to debug this issue.

Thanks....Any inputs?
 
Old 07-05-2006, 08:50 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Some BIOSes for this chipset have a problem, so check the board manufacturer for a BIOS update.
 
Old 07-05-2006, 11:35 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by leonscape
Some BIOSes for this chipset have a problem, so check the board manufacturer for a BIOS update.
Hi Leonscape. Yes that;s what I have found that some BIOSes have issue with this. So I was wondering if there is any way if I can set some particular bit through the use of some software in Linux. Do you know any utility that allows to set the Registers of the PCI configuration space? Or some utility which allows us to interact with BIOS?

Thanks a lot once again.
 
  


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
Belkin F5d7000 Install On FC4, odd lspci output Sabrelinux Linux - Hardware 1 05-20-2006 01:27 AM
trying to copy the output of /sbin/lspci to another window interndan Slackware 9 11-18-2005 04:24 AM
Interpreting the output of 'lspci' command. drminix Linux - Hardware 2 06-14-2005 03:20 AM
Need help analysing lspci output benjaminrtz Linux - Newbie 1 03-16-2005 03:54 PM
Changing the output of lspci GT_Onizuka Linux - General 2 04-30-2004 05:50 PM


All times are GMT -5. The time now is 03:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration