Kernel + DMA

Instalacja Slackware Linux, problemy i wstępna konfiguracja, aktualizacje do nowszych wersji.

Moderatorzy: Moderatorzy, Administratorzy

Awatar użytkownika
djk
Użytkownik
Posty: 110
Rejestracja: 2006-06-22, 22:29

Kernel + DMA

Post autor: djk »

Witam

W jaki sposób mogę sprawdzić czy w jądrze włączona jest obsługa DMA :roll:

Z góry dziękuje i pozdrawiam
[url=http://motooferta.pl][img]http://djkprojects.w.interia.pl/468x60.gif[/img][/url]
[url=http://vb.djkprojects.pl]Programowanie VB 6.0 i VB.NET[/url]
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: Kernel + DMA

Post autor: difrost »

dmesg i komunikaty jądra, hdparm.

EDIT: Dyski SATA mają domyślnie włączone DMA, ale to też zależy od kontrolera, bo nie wszystkie są w pełni obsługiwane.
Ostatnio zmieniony 2007-10-12, 10:19 przez difrost, łącznie zmieniany 1 raz.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
gauthama
Użytkownik
Posty: 10
Rejestracja: 2007-07-02, 08:36
Lokalizacja: /rc.futerkowo

Re: Kernel + DMA

Post autor: gauthama »

do dyskow sata o ile dobrze kojarze sluży sdparm:)
Slackware Current at EeePc 1001px

Butter don't fly...
Awatar użytkownika
djk
Użytkownik
Posty: 110
Rejestracja: 2006-06-22, 22:29

Re: Kernel + DMA

Post autor: djk »

Domyślam się że w jadrze właczona jest obsługa DMA - prosiłbym o sprawdzenie czy tak jest:
Linux version 2.4.33grs-bipiv-ipv4-32 (root@xxxxxx) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #1 SMP lun oct 23 19:00:07 CEST 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001f7f0000 (usable)
BIOS-e820: 000000001f7f0000 - 000000001f7f3000 (ACPI NVS)
BIOS-e820: 000000001f7f3000 - 000000001f800000 (ACPI data)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
503MB LOWMEM available.
found SMP MP-table at 000f54c0
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f0000 reserved twice.
hm, page 000f1000 reserved twice.
On node 0 totalpages: 129008
zone(0): 4096 pages.
zone(1): 124912 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 VIAP4X ) @ 0x000f6e70
ACPI: RSDT (v001 VIAP4X AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f3000
ACPI: FADT (v001 VIAP4X AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f3040
ACPI: MADT (v001 VIAP4X AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1f7f6d80
ACPI: DSDT (v001 VIAP4X AWRDACPI 0x00001000 MSFT 0x0100000d) @ 0x00000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 Pentium 4(tm) XEON(tm) APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 Pentium 4(tm) XEON(tm) APIC version 20
Using ACPI for processor (LAPIC) configuration information
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode: Flat. Using 1 I/O APICs
Processors: 2
Kernel command line: auto BOOT_IMAGE=linux ro root=301 nousb
Initializing CPU#0
Detected 3073.755 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 6134.16 BogoMIPS
Memory: 505352k/516032k available (2445k kernel code, 10296k reserved, 266k data, 328k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
CPU0: Intel(R) Pentium(R) 4 CPU 3.06GHz stepping 09
per-CPU timeslice cutoff: 1462.86 usecs.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Booting processor 1/1 eip 2000
Initializing CPU#1
masked ExtINT on CPU#1
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Calibrating delay loop... 6134.16 BogoMIPS
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#1.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
CPU1: Intel(R) Pentium(R) 4 CPU 3.06GHz stepping 09
Total of 2 processors activated (12268.33 BogoMIPS).
cpu_sibling_map[0] = 1
cpu_sibling_map[1] = 0
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-5, 2-10, 2-12, 2-17, 2-18, 2-20, 2-22 not connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 19.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
....... : Delivery Type: 0
....... : LTS : 0
.... register #01: 00178003
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0003
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 003 03 0 0 0 0 0 1 1 39
02 003 03 0 0 0 0 0 1 1 31
03 003 03 0 0 0 0 0 1 1 41
04 003 03 0 0 0 0 0 1 1 49
05 000 00 1 0 0 0 0 0 0 00
06 003 03 0 0 0 0 0 1 1 51
07 003 03 0 0 0 0 0 1 1 59
08 003 03 0 0 0 0 0 1 1 61
09 003 03 0 0 0 0 0 1 1 69
0a 000 00 1 0 0 0 0 0 0 00
0b 003 03 1 1 0 1 0 1 1 71
0c 000 00 1 0 0 0 0 0 0 00
0d 003 03 0 0 0 0 0 1 1 79
0e 003 03 0 0 0 0 0 1 1 81
0f 003 03 0 0 0 0 0 1 1 89
10 003 03 1 1 0 1 0 1 1 91
11 000 00 1 0 0 0 0 0 0 00
12 000 00 1 0 0 0 0 0 0 00
13 003 03 1 1 0 1 0 1 1 99
14 000 00 1 0 0 0 0 0 0 00
15 003 03 1 1 0 1 0 1 1 A1
16 000 00 1 0 0 0 0 0 0 00
17 003 03 1 1 0 1 0 1 1 A9
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ11 -> 0:11
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ19 -> 0:19
IRQ21 -> 0:21
IRQ23 -> 0:23
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 3073.6682 MHz.
..... host bus clock speed is 133.6376 MHz.
cpu: 0, clocks: 1336376, slice: 445458
CPU0<T0:1336368,T1:890896,D:14,S:445458,C:1336376>
cpu: 1, clocks: 1336376, slice: 445458
CPU1<T0:1336368,T1:445440,D:12,S:445458,C:1336376>
checking TSC synchronization across CPUs: passed.
Waiting on wait_init_idle (map = 0x2)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfb550, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Via IRQ fixup
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
PCI->APIC IRQ transform: (B0,I16,P0) -> 21
PCI->APIC IRQ transform: (B0,I16,P1) -> 21
PCI->APIC IRQ transform: (B0,I16,P2) -> 21
PCI->APIC IRQ transform: (B0,I16,P3) -> 19
PCI->APIC IRQ transform: (B0,I17,P0) -> 11
PCI->APIC IRQ transform: (B0,I18,P0) -> 23
PCI->APIC IRQ transform: (B1,I0,P0) -> 16
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10f
Software Watchdog Timer: 0.05, timer margin: 60 sec
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 7.2.7-NAPI
Copyright (c) 1999-2006 Intel Corporation.
pcnet32.c:v1.30h 06.24.2004 tsbogend@alpha.franken.de
sk98lin: No adapter found.
via-rhine.c:v1.10-LK1.1.19 July-12-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at 0xe000, 00:e0:4c:c3:a8:49, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 41e1.
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:pio

hda: Hitachi HDS721680PLAT80, ATA DISK drive
keyboard: Timeout - AT keyboard not present?(ed)
keyboard: Timeout - AT keyboard not present?(f4)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 160836480 sectors (82348 MB) w/7384KiB Cache, CHS=10011/255/63, UDMA(133)
Partition check:
hda: hda1 hda2 hda3
SCSI subsystem driver Revision: 1.00
Loading Adaptec I2O RAID: Version 2.4 Build 5
Detecting Adaptec I2O RAID controllers...
3ware Storage Controller device driver for Linux v1.02.00.037.
3w-xxxx: No cards found.
3ware 9000 Storage Controller device driver for Linux v2.24.04.009.
3w-9xxx: No cards successfully initialized.
libata version 1.20 loaded.
Fusion MPT base driver 2.06.38
Copyright (c) 1999-2006 LSI Logic
mptbase: 0 MPT adapters found, 0 installed.
Fusion MPT SCSI Host driver 2.06.38
Fusion MPT misc device (ioctl) driver 2.06.38
mptctl: Registered with Fusion MPT base driver
mptctl: /dev/mptctl @ (major,minor=10,220)
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 3584.800 MB/sec
32regs : 2203.200 MB/sec
pIII_sse : 3986.400 MB/sec
pII_mmx : 3632.800 MB/sec
p5_mmx : 3592.400 MB/sec
raid5: using function: pIII_sse (3986.400 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
IPv4 over IPv4 tunneling driver
ip_conntrack version 2.1 (4031 buckets, 32248 max) - 288 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
(recovery.c, 257): journal_recover: JBD: recovery, exit status 0, recovered transactions 1842767 to 1843075
(recovery.c, 260): journal_recover: JBD: Replayed 2164 and revoked 0/0 blocks
kjournald starting. Commit interval 5 seconds
EXT3-fs: ide0(3,1): orphan cleanup on readonly fs
ext3_orphan_cleanup: deleting unreferenced inode 331334
ext3_orphan_cleanup: deleting unreferenced inode 331330
ext3_orphan_cleanup: deleting unreferenced inode 331328
ext3_orphan_cleanup: deleting unreferenced inode 331326
EXT3-fs: ide0(3,1): 4 orphan inodes deleted
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 328k freed
Adding Swap: 522104k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
grsec: time set by /sbin/hwclock[hwclock:18962] uid/euid:0/0 gid/egid:0/0, parent /etc/rc.d/rc.S[rc.S:13152] uid/euid:0/0 gid/egid:0/0
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
eth0: Setting full-duplex based on MII #1 link partner capability of 41e1.

HDPARM zwraca:
/dev/hda: using_dma =1 (on)
Chciałbym od razu dodać, że pojawiły mi się logach takie komunikaty:
kernel: hda: dma_timer_expiry: dma status == 0x24
kernel: hda: DMA interrupt recovery
kernel: hda: lost interrupt
stąd moje pytanie

Dziękuję i pozdrawiam
Ostatnio zmieniony 2007-10-12, 10:27 przez djk, łącznie zmieniany 1 raz.
[url=http://motooferta.pl][img]http://djkprojects.w.interia.pl/468x60.gif[/img][/url]
[url=http://vb.djkprojects.pl]Programowanie VB 6.0 i VB.NET[/url]
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: Kernel + DMA

Post autor: difrost »

Timeout na przerwaniu może być spowodowany przez APIC. Jeśli to nie jest serwer produkcyjny, to sprawdź, czy błąd pojawia się przy wyłączonym APIC.

Czy ten komunikat pojawia się po dopaleniu hdparm?
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Awatar użytkownika
djk
Użytkownik
Posty: 110
Rejestracja: 2006-06-22, 22:29

Re: Kernel + DMA

Post autor: djk »

Witam - nie bardzo rozumiem co masz na myśli pisząc "serwer produkcyjny" ;)

W jaki sposób mogę wyłączyć APIC ? :roll:

Po odpaleniu hdparm nie dostaję takich komunikatów

Chciałem dodać, że nie mam fizycznego dostępu do tego serwera takze do BIOSA zajrzeć też nie mam jak.
Ostatnio zmieniony 2007-10-12, 10:59 przez djk, łącznie zmieniany 1 raz.
[url=http://motooferta.pl][img]http://djkprojects.w.interia.pl/468x60.gif[/img][/url]
[url=http://vb.djkprojects.pl]Programowanie VB 6.0 i VB.NET[/url]
gauthama
Użytkownik
Posty: 10
Rejestracja: 2007-07-02, 08:36
Lokalizacja: /rc.futerkowo

Re: Kernel + DMA

Post autor: gauthama »

uruchom obraz jadra z opcją noapic nolapic
nazwa jadra + opcja
np:
huge26.s noapic
Slackware Current at EeePc 1001px

Butter don't fly...
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: Kernel + DMA

Post autor: difrost »

Samo noapic powinno wystarczyć, a serwer produkcyjny, to taki co zarabia i raczej nie można przerwać jego pracę.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Awatar użytkownika
djk
Użytkownik
Posty: 110
Rejestracja: 2006-06-22, 22:29

Re: Kernel + DMA

Post autor: djk »

Lilo.conf:

boot=/dev/hda
prompt
timeout=50
lba32
default=linux
append="nousb"
serial=0,9600n8

image=/boot/bzImage-2.4.33-grs-bipiv-ipv4-32
label=linux
root=/dev/hda1
read-only

Mam dopisać noapic do 'append' ->
append = "nousb noapic nolapic"

czy pod read-only:
append = noapic nolapic

Sorry za niewiedzę ale wciąż poznaję Slackware'a ;)
Ostatnio zmieniony 2007-10-12, 11:21 przez djk, łącznie zmieniany 1 raz.
[url=http://motooferta.pl][img]http://djkprojects.w.interia.pl/468x60.gif[/img][/url]
[url=http://vb.djkprojects.pl]Programowanie VB 6.0 i VB.NET[/url]
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: Kernel + DMA

Post autor: difrost »

Do append :D
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
ODPOWIEDZ