Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

DMA not working on acer tm 4150

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
24 posts • Page 1 of 1
Author
Message
kamikaze04
Guru
Guru
User avatar
Posts: 366
Joined: Sun Mar 28, 2004 1:52 pm
Location: Valencia-Spain

DMA not working on acer tm 4150

  • Quote

Post by kamikaze04 » Tue Jul 05, 2005 7:42 pm

Hello everybody,

I have just installed my gentoo on an acer travelmate 4150. Everything works fine, except the fact that i cannnot enable DMA. I have tried everything, and now i copy my tests with hdparm,and kernel config to see if you could help me:

Code: Select all

Apolo-bis ~ # hdparm /dev/hdc

/dev/hdc:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 60011642880, start = 0

Code: Select all

Apolo-bis ~ # hdparm -i /dev/hdc

/dev/hdc:

 Model=IC25N060ATMR04-0, FwRev=MO3OAD4A, SerialNo=MRA301KEKZWGVH
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=7884kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2
 AdvancedPM=yes: mode=0xFE (254) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:

 * signifies the current active mode


Code: Select all

hdparm -I /dev/hdc

.....
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Vendor, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: 254 (0xfe)
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=240ns  IORDY flow control=120ns
....

Code: Select all

Apolo-bis ~ # hdparm -d1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

And here my kernel config, (if you need more, just tell me)

Code: Select all

  <*> ATA/ATAPI/MFM/RLL support                                                                │ │
  │ │                   <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support                                 
  │ │                   ---     Please see Documentation/ide.txt for help/info on IDE drives                   
  │ │                   [ ]     Support for SATA (deprecated; conflicts with libata SATA driver)                    
  │ │                   [ ]     Use old disk-only driver on primary interface                       
  │ │                   <*>     Include IDE/ATA-2 DISK support                                         
  │ │                   [*]     Use multi-mode by default                                                          
  │ │                   <*>     PCMCIA IDE support                                            
  │ │                   <*>     Include IDE/ATAPI CDROM support                                                
  │ │                   < >     Include IDE/ATAPI TAPE support (EXPERIMENTAL)                        
  │ │                   <*>     SCSI emulation support                                                              
  │ │                   [*]     IDE Taskfile Access                                                                
  │ │                   ---     IDE chipset support/bugfixes                                                        
  │ │                   <*>     generic/default IDE chipset support                                               
  │ │                   [*]     CMD640 chipset bugfix/support                                                     
  │ │                   [ ]       CMD640 enhanced support                                                          
  │ │                   [*]     PCI IDE chipset support                                                           
  │ │                   [*]       Sharing PCI IDE interrupts support                                              
  │ │                   [ ]       Boot off-board chipsets first support                                             
  │ │                   <*>       Generic PCI IDE Chipset Support                                                 
  │ │                   < >       OPTi 82C621 chipset enhanced support (EXPERIMENTAL)                              
  │ │                   < >       RZ1000 chipset bugfix/support                                                   
                           [*]       Generic PCI bus-master DMA support                                                 
  │ │                   [ ]         Force enable legacy 2.0.X HOSTS to use DMA                                    
  │ │                   [*]         Use PCI DMA by default when available                                        
  │ │                   [ ]           Enable DMA only for disks                                                     
  │ │                   < >         AEC62XX chipset support                                                       

And here the output from lspci

Code: Select all

Apolo-bis ~ # lspci
0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
0000:00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
0000:00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
0000:00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
0000:00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
0000:01:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
0000:01:01.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
0000:01:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
Any ideas will be good. Thanks a lot!
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jul 05, 2005 8:05 pm

kamikaze04,

Further down the menu from

Code: Select all

[*]     PCI IDE chipset support 
You need to turn on the PXII Chipset Support then rebuild your kernel. It must be built in, not a module.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
kamikaze04
Guru
Guru
User avatar
Posts: 366
Joined: Sun Mar 28, 2004 1:52 pm
Location: Valencia-Spain

  • Quote

Post by kamikaze04 » Tue Jul 05, 2005 10:17 pm

thanks NeddySeagoon,

but...:oops: ...sorry, i forgot to copy/paste that line too...

I have tried with and without the pxiin support, but still having the same result, no DMA.

Any one could point me about my missconfiguration?

Thanks a los.
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jul 05, 2005 10:31 pm

kamikaze04,

That chip can be dificult to set up for DMA. If you look in lspci you will see its listed as a SATA driver but it controls your CD-ROM as /dev/hdc.
It has two configuration settings in the kernel and posiibly your BIOs too. Try adding in SCSI support, SCSI Disk Support and under Low Level SCSI Drivers, SATA and PIIX.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Winamp
n00b
n00b
Posts: 4
Joined: Sun Jul 10, 2005 7:11 am

  • Quote

Post by Winamp » Sun Jul 10, 2005 7:14 am

Have the same problem :(((
Added all of that NeddySeagoon said, but still no result (now ata can't find any devices) :(
Mitsubishi Pajero IO Rules :)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jul 10, 2005 8:51 am

Winamp,

Please post your lspci output.
Lines that mention SATA and/or IDE will be enough.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Winamp
n00b
n00b
Posts: 4
Joined: Sun Jul 10, 2005 7:11 am

  • Quote

Post by Winamp » Sun Jul 10, 2005 12:04 pm

Here is my lspci output:

Code: Select all

0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
0000:00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
0000:00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
0000:00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
0000:00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
0000:01:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
0000:01:01.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
0000:01:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
0000:01:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
0000:01:04.1 FLASH memory: ENE Technology Inc: Unknown device 0530 (rev 01)
0000:01:04.2 Class 0805: ENE Technology Inc: Unknown device 0550 (rev 01)
0000:01:04.3 FLASH memory: ENE Technology Inc: Unknown device 0520 (rev 01)
0000:01:04.4 FLASH memory: ENE Technology Inc: Unknown device 0551 (rev 01)
With this kernel configuration (ide & scsi only):

Code: Select all


#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=m

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_IDEDMA_FORCED=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

#
# SCSI Transport Attributes
#
CONFIG_SCSI_FC_ATTRS=y

#
# SCSI low-level drivers
#
CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y
CONFIG_SCSI_QLA2XXX=y
CONFIG_SCSI_QLA22XX=y
I get /dev/hdc as my HDD and /dev/hdd as my optical drive... so I cannot turn on dma for them...

But when I turn select ide section in kernel configuration as module, I get the following - http://www.carbotec.ru/img/acer_nb.jpg


Thank you in advance
Mitsubishi Pajero IO Rules :)
Top
Winamp
n00b
n00b
Posts: 4
Joined: Sun Jul 10, 2005 7:11 am

  • Quote

Post by Winamp » Tue Jul 12, 2005 11:29 am

So no ideas at all??? :(((
Mitsubishi Pajero IO Rules :)
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

DMA not working on acer tm 4150

  • Quote

Post by gama » Mon Jul 25, 2005 10:53 pm

I have the same notebook tm 4152lmi and searching in the net i try to change the libata.h file but i didin't enable dma for the disk and the dvd.
Anyone had found the solution please
Top
schlummerkissen
n00b
n00b
Posts: 39
Joined: Sat Jun 18, 2005 1:21 pm
Location: Ludwigshafen am Rhein (Germany)

  • Quote

Post by schlummerkissen » Tue Jul 26, 2005 12:41 pm

i own a travelmate 4101 wlmi and after some kernel changes i got dma running here is my config
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
CONFIG_IDE_TASK_IOCTL=y

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set
maybe you need some more changes but here it works, and i dont think that your notebook has much differences.
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

DMA not working on acer tm 4150

  • Quote

Post by gama » Tue Jul 26, 2005 9:20 pm

Thank you in advance schlummerkissen, now I try your kernel configuration, but first only one question: did you enable some scsi support in your kernel? The hard disk e dvd are always hdc and hdd?
Top
schlummerkissen
n00b
n00b
Posts: 39
Joined: Sat Jun 18, 2005 1:21 pm
Location: Ludwigshafen am Rhein (Germany)

  • Quote

Post by schlummerkissen » Tue Jul 26, 2005 9:36 pm

my hard disk is /dev/hda
and my dvd is /dev/cdrom
i have compiled some scsi-stuff, but only as modules and not loaded.
It should work without.
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

DMA not working on acer tm 4150

  • Quote

Post by gama » Wed Jul 27, 2005 9:38 am

Thank you schlummerkissen, but yours kernel configuration don't work for me. I can't enable dma for the disk and dvd so my notebook it's very slow and I can't burn anythings in my dvd-rw. For information my disc it's /dev/hdc and the dvd it's /dev/hdd. I tried to disable in the kernel all ide drivers as suggested in this thread: http://forums.gentoo.org/viewtopic-t-35 ... ight-.html
but I can't boot y gentoo due to kernel panic.
Any suggsuggestion?
Top
13Homer
Guru
Guru
User avatar
Posts: 461
Joined: Tue Jul 12, 2005 1:07 pm

  • Quote

Post by 13Homer » Wed Jul 27, 2005 10:34 am

I had similar problem with my Acer Aspire 5012. The solution was enabling (built-in into kernel) ATI IXP chipset (AIR the only not compiled in by default!).
I didn't change other settings. And it started working.
Maybe try enable all chipsets?

Uh! And sorry for my english
Top
schlummerkissen
n00b
n00b
Posts: 39
Joined: Sat Jun 18, 2005 1:21 pm
Location: Ludwigshafen am Rhein (Germany)

  • Quote

Post by schlummerkissen » Wed Jul 27, 2005 2:41 pm

maybe you try first to run a live-cd like kanotix and test if dma mode runs there.
Then you could compare the config of the life-cd and the loaded modules etc. with your gentoo-kernel.
May be it could help you.
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

DMA not working on acer tm 4150

  • Quote

Post by gama » Wed Jul 27, 2005 8:30 pm

I tried enable all the ide chipset but nothing all the same; then I booted knoppix live cd but also this linux distribution don't enable dma; i tried Mandriva 10.1 the same things; at the end I tried Ubuntu 5.04 but was impossible to boot the live-cd because the distribution didn't see the cdrom (dvdrom). Now I'm downloading kanotix and ......
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

DMA not working on acer tm 4150 (Solved for me)

  • Quote

Post by gama » Wed Jul 27, 2005 10:24 pm

Finally I apply manually this patch: http://marc.theaimsgroup.com/?l=linux-i ... 832526&w=2 at the gentoo-sources kernel (adding manually the four line in the piix.c file because the command patch -p0 < ...... didn't work for me), recompiling the kernel without any SCSI and PATA drivers and now dma is working.
Thanks to all.
Top
Mos
n00b
n00b
User avatar
Posts: 48
Joined: Mon Mar 17, 2003 1:32 pm
Location: Brussels, Belgium

  • Quote

Post by Mos » Sun Sep 11, 2005 8:30 pm

worked for me too, on my acer tm 4150. :) :) :) :) :)

Thanks alot gama !!
Top
gentleman
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 140
Joined: Fri Dec 02, 2005 9:02 pm
Location: Germany, Paderborn

  • Quote

Post by gentleman » Fri Mar 31, 2006 3:29 pm

Hm, I'm just too stupid to understand what I have to do here. Can s.o. explain what four lines have to be cpoied to which file? I get a little bit confused by page behind this link =).

Thanks a lot.
Everything works, you just have to do it correctly.
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

  • Quote

Post by gama » Sun Apr 02, 2006 1:05 pm

Now, with the new gentoo kernel is not necessary to apply that patch.
In the kernel 2.6.15-r7 and newer it's sufficient enable SCSI disk support - SCSI generic support - Serial ATA (SATA) support - AHCI SATA support - Intel PIIX/ICH SATA support. In this way the hard disk will be SDA and the cdrom SR0 and the DMA is always on. Remember to change the fstab before rebooting.
Top
djedy
n00b
n00b
Posts: 1
Joined: Mon Apr 10, 2006 5:32 pm

  • Quote

Post by djedy » Mon Apr 10, 2006 5:39 pm

hi,i compiled the kernel with that options & without IDE,but iafter boot it hangs in grub,with a mesage about error 17
can anybody help m?
Top
gama
n00b
n00b
Posts: 13
Joined: Sun Mar 14, 2004 2:48 pm

  • Quote

Post by gama » Tue Apr 11, 2006 8:01 pm

I don't use grub so I don't know the error 17 but are you sure you changed the file etc/grub.conf with the new disk?
Remember that now the hard disk is recognize as SCSI disk
Top
kamikaze04
Guru
Guru
User avatar
Posts: 366
Joined: Sun Mar 28, 2004 1:52 pm
Location: Valencia-Spain

  • Quote

Post by kamikaze04 » Mon Jul 03, 2006 8:47 am

I also did the same. I applied the patch and dma is now on.

The patch is

Code: Select all

diff -Naurp linux-2.6.16.orig/drivers/ide/pci/piix.c linux-2.6.16/drivers/ide/pci/piix.c
--- linux-2.6.16.orig/drivers/ide/pci/piix.c	2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16/drivers/ide/pci/piix.c	2006-03-24 00:29:34.000000000 +0100
@@ -132,6 +132,7 @@ static u8 piix_ratemask (ide_drive_t *dr
 		case PCI_DEVICE_ID_INTEL_82801DB_11:
 		case PCI_DEVICE_ID_INTEL_82801EB_11:
 		case PCI_DEVICE_ID_INTEL_ESB_2:
+		case PCI_DEVICE_ID_INTEL_ICH6_5:
 		case PCI_DEVICE_ID_INTEL_ICH6_19:
 		case PCI_DEVICE_ID_INTEL_ICH7_21:
 		case PCI_DEVICE_ID_INTEL_ESB2_18:
@@ -447,6 +448,7 @@ static unsigned int __devinit init_chips
 		case PCI_DEVICE_ID_INTEL_82801EB_11:
 		case PCI_DEVICE_ID_INTEL_82801E_11:
 		case PCI_DEVICE_ID_INTEL_ESB_2:
+		case PCI_DEVICE_ID_INTEL_ICH6_5:
 		case PCI_DEVICE_ID_INTEL_ICH6_19:
 		case PCI_DEVICE_ID_INTEL_ICH7_21:
 		case PCI_DEVICE_ID_INTEL_ESB2_18:
@@ -578,6 +580,7 @@ static ide_pci_device_t piix_pci_info[] 
 	/* 22 */ DECLARE_PIIX_DEV("ICH4"),
 	/* 23 */ DECLARE_PIIX_DEV("ESB2"),
 	/* 24 */ DECLARE_PIIX_DEV("ICH8M"),
+	/* 25 */ DECLARE_PIIX_DEV("ICH6M"),
 };
 
 /**
@@ -655,6 +658,7 @@ static struct pci_device_id piix_pci_tbl
 	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 22},
 	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_18, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 23},
 	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_6, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 24},
+	{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 25},
 	{ 0, },
 };
 MODULE_DEVICE_TABLE(pci, piix_pci_tbl);
diff -Naurp linux-2.6.16.orig/include/linux/pci_ids.h linux-2.6.16/include/linux/pci_ids.h
--- linux-2.6.16.orig/include/linux/pci_ids.h	2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16/include/linux/pci_ids.h	2006-03-24 00:28:35.000000000 +0100
@@ -2092,6 +2092,7 @@
 #define PCI_DEVICE_ID_INTEL_ICH6_0	0x2640
 #define PCI_DEVICE_ID_INTEL_ICH6_1	0x2641
 #define PCI_DEVICE_ID_INTEL_ICH6_2	0x2642
+#define PCI_DEVICE_ID_INTEL_ICH6_5	0x2653
 #define PCI_DEVICE_ID_INTEL_ICH6_16	0x266a
 #define PCI_DEVICE_ID_INTEL_ICH6_17	0x266d
 #define PCI_DEVICE_ID_INTEL_ICH6_18	0x266e
Good luck
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Top
blue_american
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Fri Sep 16, 2005 12:58 pm
Location: Coimbra, Portugal

  • Quote

Post by blue_american » Tue Sep 19, 2006 4:40 pm

I tried your patch (also downloaded 2.6.16 kernel) and I got:

dunkelheit ~ # patch -p0 < piix.patch
patching file linux-2.6.16/drivers/ide/pci/piix.c
Hunk #1 FAILED at 132.
Hunk #2 FAILED at 448.
Hunk #3 FAILED at 580.
Hunk #4 FAILED at 658.
4 out of 4 hunks FAILED -- saving rejects to file linux-2.6.16/drivers/ide/pci/piix.c.rej

dunkelheit ~ # patch -p0 < pci_ids.patch
patching file linux-2.6.16/include/linux/pci_ids.h
Hunk #1 FAILED at 2092.
1 out of 1 hunk FAILED -- saving rejects to file linux-2.6.16/include/linux/pci_ids.h.rej

Any ideias?
Top
Post Reply

24 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic