View previous topic :: View next topic |
Author |
Message |
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Mon Nov 20, 2006 8:54 pm Post subject: 100% Auslast bei CDLaufwerk (DMA-Modus deaktiviert) |
|
|
Hi allerseits,
wenn ich auf mein CD/DVD-Combo-Laufwerk (Matshita UJ-841S) zugreife, habe ich immer 100% Prozessorauslastung. Man kann dann nicht mehr vernünftig arbeiten.
Kaffeine gibt mir ein Indiz, woran es liegen könnte Code: | DMA Modus deaktiviert! Für flüssige DVD Wiedergabe muss folgendes als "root" eingegeben werden: "hdparm -d1 /dev/dvd". |
Wenn ich das mache, erhalte ich folgende Meldung: Code: | /dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off) |
Diese Fehlermeldung findet man über google häufig, aber keine der angebotenen Lösungsmöglichkeiten hilft mir weiter Fehlt irgendwas im Kernel? Code: | tobi@wacken:/usr/src/linux$ grep DMA .config
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA_DMA_API=y
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_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_SCSI_PDC_ADMA is not set
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
# CONFIG_CARDMAN_4000 is not set
# CONFIG_CARDMAN_4040 is not set
# DMA Engine support
# CONFIG_DMA_ENGINE is not set
# DMA Clients
# DMA Devices |
Die Datei /usr/src/linux/drivers/dma/Kconfig habe ich schon durchgelesen. Aber ich verstehe da kaum ein Wort
Bin für jede Hilfe dankbar
Gruß
Tobi
Last edited by Eisbrecher on Sun Dec 03, 2006 7:00 pm; edited 2 times in total |
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Tue Nov 21, 2006 9:12 pm Post subject: |
|
|
Was für hardware? Und zeig mal deine fstab, welches ist dein wirkliches device für das laufwerk? dmesg | grep dvd _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
tuam l33t
Joined: 04 May 2004 Posts: 765 Location: CGN, Germany
|
Posted: Tue Nov 21, 2006 9:34 pm Post subject: Re: 100% Auslastung bei CD/DVD-Laufwerk (DMA-Modus deaktivie |
|
|
Eisbrecher wrote: | Fehlt irgendwas im Kernel? |
Meistens fehlt der Treiber für den Chipsatz - bitte fest einkompiliert, nicht als Modul. Hast Du PATA-Festplatten? Laufen die im DMA-Modus? Den Chipsatz kannst Du vermutlich mittels lspci herausfinden.
FF,
Daniel _________________ Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Wed Nov 22, 2006 10:39 am Post subject: |
|
|
Danke für die Antworten. Hier mal die gewünschten Ausgaben.
dmesg | grep dvd bringt keine Ausgabe. /dev/dvd ist bei mir eine Verknüpfung mit /dev/hdc. Die Eingabe von hdparm -d1 /dev/hdc bringt kein anderes Ergebnis.
/etc/fstab sieht so aus (gekürzt)
Code: | /dev/sda6 / ext3 noatime 0 1
/dev/sda7 /home ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/hdc /media/cdrom iso9660 noauto,ro,users 0 0
/dev/sdb1 /media/usb auto noauto,rw,users,noatime,umask=000 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
Wie kann ich sehen, ob meine Festplatten im dma-Modus laufen?
Und hier noch die Ausgabe von lspci
Code: | 00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc M26 [Radeon Mobility X700 XL] (PCIE)
06:05.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
06:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
06:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:09.1 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:09.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
06:09.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:09.4 Class 0805: Texas Instruments PCI6411, PCI6421, PCI6611, PCI6621, PCI7411, PCI7421, PCI7611, PCI7621 Secure Digital (SD) Controller |
|
|
Back to top |
|
|
Phlogiston Veteran
Joined: 27 Jan 2004 Posts: 1925 Location: Europe, Swizerland
|
Posted: Wed Nov 22, 2006 11:07 am Post subject: |
|
|
Das ist doch sata oder nicht? Ich habe nämlich denselben Chip in meinem Notebook. Dafür brauchst du unter SCSI die SATA Treiber für INTEL.
Grüsse _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Wed Nov 22, 2006 4:29 pm Post subject: |
|
|
Ja, das ist SATA. Habe ich vorhin vergessen. Meinst du folgende Treiber?
Code: |
Device Drivers --->
SCSI Device Support --->
SCSI low level Drivers ---->
<*>Serial ATA (SATA) support
<*> AHCI SATA support
<*> Intel PIIX/ICH SATA support |
Die waren bei mir schon so einkompiliert. Andere habe ich spontan nicht gefunden |
|
Back to top |
|
|
tuam l33t
Joined: 04 May 2004 Posts: 765 Location: CGN, Germany
|
Posted: Wed Nov 22, 2006 9:33 pm Post subject: |
|
|
OK, aber das DVD-Laufwerk ist per PATA angebunden und deswegen /dev/hdc Dann bräuchtest Du vermutlich noch den PATA-Teil des Treibers
Code: | -> Device Drivers
-> ATA/ATAPI/MFM/RLL support
-> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
-> PCI IDE chipset support
-> Generic PCI bus-master DMA support
-> Intel PIIXn chipsets support |
FF,
Daniel _________________ Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard |
|
Back to top |
|
|
Bitspyer Apprentice
Joined: 17 Dec 2002 Posts: 211 Location: Mainz, Germany
|
Posted: Thu Nov 23, 2006 10:36 am Post subject: |
|
|
Ich hab hier auf einem Rechner das gleiche Problem....
lspci:
Code: |
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440SE AGP 8x] (rev a2)
02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller
|
Ist eine SATA Platte angeschlossen und am anderen Channel hängt per PATA das DVD.
hdparm bringt folgende Meldung:
Code: |
/dev/hdc:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device
|
Und wenn ich ein hdparm -d1 /dev/hdc versuche kommt diese Meldung:
Code: |
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
|
Intel PIIXN chipset ist fest einkompiliert, ebenso der Intel SATA Treiber.... Aber es will nicht.... _________________ Der Weg zur Dunklen Seite... Schneller er ist, verführerischer, leichter. |
|
Back to top |
|
|
Soneji n00b
Joined: 14 May 2005 Posts: 13 Location: Magdeburg/Germany
|
Posted: Thu Nov 23, 2006 1:03 pm Post subject: |
|
|
Bei mit hat in einem solchen Fall folgender Kernel-Parameter geholfen:
Code: |
libata.atapi_enabled=1 hdc=noprobe
|
hdc ist das Device, wenn das CDROM vom normalen ATAPI-Treiber angesprochen wird.
Hinterher ist das CDROM als /dev/sr0 ansprechbar und automatisch im DMA-Mode, falls SCSI-CDROM-Unterstützung im Kernel aktiviert ist. |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Fri Nov 24, 2006 3:38 pm Post subject: |
|
|
tuam wrote: | OK, aber das DVD-Laufwerk ist per PATA angebunden und deswegen /dev/hdc Dann bräuchtest Du vermutlich noch den PATA-Teil des Treibers
Code: | -> Device Drivers
-> ATA/ATAPI/MFM/RLL support
-> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
-> PCI IDE chipset support
-> Generic PCI bus-master DMA support
-> Intel PIIXn chipsets support |
|
Das war auch schon so einkompiliert. Aber Sonejis Kernelparameter hat geholfen. Danke für eure Hilfe |
|
Back to top |
|
|
Finswimmer Bodhisattva
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Fri Nov 24, 2006 3:44 pm Post subject: |
|
|
Dann bitte ein [Solved]
Tobi _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Fri Nov 24, 2006 3:54 pm Post subject: |
|
|
Erledigt. Und zwangsweise Titel gekürzt |
|
Back to top |
|
|
tekknokrat Apprentice
Joined: 17 Apr 2005 Posts: 278 Location: Magdeburg
|
Posted: Sat Nov 25, 2006 12:27 pm Post subject: nur am rande.... |
|
|
hatte so ein problem mit 100% cpu last auch schon mit den via sata chipsatz und einem plextor sata brenner.
hier hat damals (2005) nur ein umstieg auf nen adaptec kontroller geholfen weil vor einem jahr die entwicklung für atapi-sata noch nicht soweit war. |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Sun Dec 03, 2006 7:01 pm Post subject: |
|
|
Ich würde den Thread gerne wieder aufwärmen, wobei ich mir unsicher war, ob ich nicht doch einen neuen Thread aufmachen. Da aber beide Probleme zusammenhängen, habe ich mich für hier entschieden
Mit der Bootoption Code: | libata.atapi_enabled=1 hdc=noprobe | läuft zwar das CD-Laufwerk problemlos, dafür kann ich meinen USB-Stick nicht mehr mounten, weil /dev/sdb1 nicht mehr existiert
Hat jemand eine Möglichkeit, wie ich beide Probleme gleichzeitig lösen kann? |
|
Back to top |
|
|
Soneji n00b
Joined: 14 May 2005 Posts: 13 Location: Magdeburg/Germany
|
Posted: Sun Dec 03, 2006 8:01 pm Post subject: |
|
|
Mh, geht hier mit den Parametern problemlos. Hast du noch etwas anderes Veraendert? |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Sun Dec 03, 2006 8:11 pm Post subject: |
|
|
Die einzige Änderung, die ich bewußt gemacht habe, war das Deinstallieren von coldplug, weil es die aktualisierung von udev blockiert hat. Das erklärt mir aber nicht, warum auch das mounten von Hand nicht funktioniert.
udev-Regeln habe ich von Hand keine erstellt. Lediglich der Eintrag Code: | /dev/sdb1 /media/usb auto noauto,rw,users,noatime,umask=000 0 0 | in /etc/fstab ist von mir gemacht worden.
Wenn ich ohne die Option boote, habe ich /dev/sdb1 auch wieder. |
|
Back to top |
|
|
Eisbrecher Tux's lil' helper
Joined: 31 Aug 2006 Posts: 84
|
Posted: Mon Dec 04, 2006 3:37 pm Post subject: |
|
|
Ich muss meine Aussage korrigieren. Meinen "normalen" USB-Stick kann ich mounten. Lediglich der IPOD-Nano geht nicht. Ich dachte, das wäre das gleiche wie ein USB-Stick *schäm*. Der IPOD wird ohne Bootoption automatisch mit /dev/sdb2 gemountet, steht aber nicht in /etc/fstab.
Ich glaube, da wird es wirklich langsam Zeit für einen neuen Thread Aber bis dahin werde ich noch ein bißchen testen und selbst nach Fehlern suchen.
Über Lösungsansätze freue ich mich aber trotzdem |
|
Back to top |
|
|
tuxian l33t
Joined: 26 Jan 2004 Posts: 766 Location: Austria
|
Posted: Mon Dec 04, 2006 10:09 pm Post subject: |
|
|
Fehlt eventuell eine udev-Regel?
Funktioniert es wenn du udevstart eingibst?
Wenn ja dann in der /etc/conf.d/rc RC_COLDPLUG="yes" setzen falls das nicht gesetzt ist! |
|
Back to top |
|
|
|