LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* dma ripping
@ 2004-05-14 15:29 Daniele Bernardini
  2004-05-15 10:14 ` Jens Axboe
  0 siblings, 1 reply; 15+ messages in thread
From: Daniele Bernardini @ 2004-05-14 15:29 UTC (permalink / raw)
  To: linux-kernel

Hi Folks, 

I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
IBM thinkpad R50 with dvdram drive. 

It works for a while and then hangs. At this point nothing short of a
reboot works. Ripping stop working when the message 
	cdrom: dropping to single frame dma
comes up. The system feels slow for a couple of seconds and then is back
to normal, but no ripping until next reboot

I am running the 2.6.4 compiled by SuSE.

Any idea?

Thanks

Daniele

P.S. keep up the great job :)



dmesg returns:

0000000000000000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d2000 - 00000000000d4000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007ff60000 (usable)
 BIOS-e820: 000000007ff60000 - 000000007ff78000 (ACPI data)
 BIOS-e820: 000000007ff78000 - 000000007ff7a000 (ACPI NVS)
 BIOS-e820: 000000007ff80000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
128MB vmalloc/ioremap area available.
1151MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 524128
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 225280 pages, LIFO batch:16
  HighMem zone: 294752 pages, LIFO batch:16
DMI present.
IBM machine detected. Enabling interrupts during APM calls.
IBM machine detected. Disabling SMBus accesses.
ACPI: RSDP (v002 IBM                                       ) @
0x000f6b40
ACPI: XSDT (v001 IBM    TP-1R    0x00002140  LTP 0x00000000) @
0x7ff6c263
ACPI: FADT (v003 IBM    TP-1R    0x00002140 IBM  0x00000001) @
0x7ff6c300
ACPI: SSDT (v001 IBM    TP-1R    0x00002140 MSFT 0x0100000e) @
0x7ff6c4b4
ACPI: ECDT (v001 IBM    TP-1R    0x00002140 IBM  0x00000001) @
0x7ff77e26
ACPI: TCPA (v001 IBM    TP-1R    0x00002140 PTL  0x00000001) @
0x7ff77e78
ACPI: BOOT (v001 IBM    TP-1R    0x00002140  LTP 0x00000001) @
0x7ff77fd8
ACPI: DSDT (v001 IBM    TP-1R    0x00002140 MSFT 0x0100000e) @
0x00000000
ACPI: PM-Timer IO Port: 0x1008
ACPI: local apic disabled
Built 1 zonelists
Kernel command line: root=/dev/hda3 vga=0x342 desktop resume=/dev/hda2
splash=verbose
bootsplash: verbose mode.
Initializing CPU#0
PID hash table entries: 4096 (order 12: 32768 bytes)
CKRM Initialized
Detected 1694.770 MHz processor.
Using pmtmr for high-res timesource
Console: colour dummy device 80x25
Memory: 2074512k/2096512k available (1970k kernel code, 20828k reserved,
677k data, 212k init, 1179008k highmem)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay loop... 3358.72 BogoMIPS
Security Scaffold v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
There is already a security framework initialized, register_security
failed.
Failure registering capabilities with the kernel
selinux_register_security:  Registering secondary module capability
Capability LSM initialized
Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Looking for DSDT in initrd ...No customized DSDT found in initrd!
Freeing initrd memory: 1057k freed
CPU:     After generic identify, caps: a7e9f9bf 00000000 00000000
00000000
CPU:     After vendor identify, caps: a7e9f9bf 00000000 00000000
00000000
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 1024K
CPU:     After all inits, caps: a7e9f9bf 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel(R) Pentium(R) M processor 1700MHz stepping 05
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
do_initcalls
init_elf_binfmt
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfd8d6, last bus=5
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
No customized DSDT found!
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Found ECDT
    ACPI-0179: *** Warning: The ACPI AML in your computer contains
errors, please nag the manufacturer to correct it.
    ACPI-0182: *** Warning: Allowing relaxed access to fields; turn on
CONFIG_ACPI_DEBUG for details.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
 ... the first call_usermodehelper: pci_bus
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: Embedded Controller [EC] (gpe 28)
ACPI: Power Resource [PUBS] (on)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even
'acpi=off'
vesafb: framebuffer at 0xe0000000, mapped to 0xf8815000, size 32704k
vesafb: mode is 1400x1050x16, linelength=2800, pages=10
vesafb: protected mode interface info at c000:580d
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
Simple Boot Flag at 0x35 set to 0x1
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
Initial HugeTLB pages allocated: 0
ikconfig 0.7 with /proc/config*
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.1
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
bootsplash 3.1.6-2004/03/31: looking for picture... no good signature
found.
Console: switching to colour frame buffer device 175x65
Real Time Clock Driver v1.12
Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing
enabled
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
ICH4: IDE controller at PCI slot 0000:00:1f.1
PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
ICH4: chipset revision 1
ICH4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1860-0x1867, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio
hda: IC25N080ATMR04-0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: MATSHITADVD-RAM UJ-811, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: Host Protected Area detected.
        current capacity is 149285282 sectors (76434 MB)
        native  capacity is 156301488 sectors (80026 MB)
hda: Host Protected Area disabled.
hda: 156301488 sectors (80026 MB) w/7884KiB Cache, CHS=65535/16/63,
UDMA(100)
 hda: hda1 hda2 hda3 hda4
ide-floppy driver 0.99.newide
mice: PS/2 mouse device common for all mice
input: PC Speaker
serio: i8042 AUX port at 0x60,0x64 irq 12
Synaptics Touchpad, model: 1
 Firmware: 5.9
 Sensor: 44
 new absolute packet format
 Touchpad has extended capability bits
 -> multifinger detection
 -> palm detection
 -> pass-through port
input: SynPS/2 Synaptics TouchPad on isa0060/serio1
serio: Synaptics pass-through port at isa0060/serio1/input0
input: PS/2 Generic Mouse on synaptics-pt/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 16384 buckets, 128Kbytes
TCP: Hash tables configured (established 524288 bind 65536)
NET: Registered protocol family 1
NET: Registered protocol family 8
NET: Registered protocol family 20
Resume Machine: resuming from /dev/hda2
Resuming from device hda2
Resume Machine: This is normal swap space
PM: Reading pmdisk image.
PM: Resume from disk failed.
ACPI: (supports S0 S3 S4 S5)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
ReiserFS: hda3: found reiserfs format "3.6" with standard journal
ReiserFS: hda3: using ordered data mode
ReiserFS: hda3: journal params: device hda3, size 8192, journal first
block 18, max trans len 1024, max batch 900, max commit age 30, max
trans age 30
ReiserFS: hda3: checking transaction log (hda3)
ReiserFS: hda3: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Trying to move old root to /initrd ... failed
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing unused kernel memory: 212k freed
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
NTFS driver 2.1.6 [Flags: R/O MODULE].
NTFS volume version 3.1.
subfs 0.9
Adding 514072k swap on /dev/hda2.  Priority:42 extents:1
NET: Registered protocol family 10
Disabled Privacy Extensions on device c03545c0(lo)
IPv6 over IPv4 tunneling driver
Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k2
Copyright (c) 1999-2004 Intel Corporation.
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
hostap_crypt: registered algorithm 'NULL'
ipw2100: no version for "hostap_get_crypto_ops" found: kernel tainted.
ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 0.42
ipw2100: Copyright(c) 2003-2004 Intel Corporation
Detected ipw2100 PCI device at 0000:02:02.0, dev: eth1, mem:
0xC0214000-0xC0214FFF -> fa937000, irq: 11
eth1: Using hotplug firmware load.
Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]
Yenta: CardBus bridge found at 0000:02:00.0 [1014:0552]
Yenta: ISA IRQ mask 0x04b8, PCI irq 11
Socket status: 30000086
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0820-0x08ff: clean.
cs: IO port probe 0x0800-0x080f: clean.
cs: IO port probe 0x03e0-0x04ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x0100-0x03af: clean.
cs: IO port probe 0x0a00-0x0aff: clean.
ipw2100: Associated with 'SpeedStream' at 11Mbps, channel 11
NET: Registered protocol family 17
hw_random hardware driver 1.0.0 loaded
ehci_hcd 0000:00:1d.7: EHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: irq 11, pci mem faa66000
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.4-54.5-default ehci_hcd
usb usb1: SerialNumber: 0000:00:1d.7
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ieee1394: Initialized config rom entry `ip1394'
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1d.0: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: irq 11, io base 00001800
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.4-54.5-default uhci_hcd
usb usb2: SerialNumber: 0000:00:1d.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: UHCI Host Controller
Linux agpgart interface v0.100 (c) Dave Jones
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: irq 11, io base 00001820
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.4-54.5-default uhci_hcd
usb usb3: SerialNumber: 0000:00:1d.1
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: irq 11, io base 00001840
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.4-54.5-default uhci_hcd
usb usb4: SerialNumber: 0000:00:1d.2
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ohci1394: $Rev: 1193 $ Ben Collins <bcollins@debian.org>
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[11] 
MMIO=[c0215000-c02157ff]  Max Packet=[2048]
agpgart: Detected an Intel 855PM Chipset.
agpgart: Maximum main memory to use for agp memory: 1919M
agpgart: AGP aperture is 256M @ 0xd0000000
eth1: Association lost.
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00061b0324000368]
ipw2100: Associated with 'SpeedStream' at 11Mbps, channel 11
eth1: Association lost.
ipw2100: Associated with 'SpeedStream' at 11Mbps, channel 11
eth0: no IPv6 routers present
eth1: no IPv6 routers present
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Processor [CPU] (supports C1 C2 C3, 8 throttling states)
ACPI: Thermal Zone [THM0] (47 C)
speedstep-centrino: found "Intel(R) Pentium(R) M processor 1700MHz": max
frequency: 1700000kHz
intel8x0_measure_ac97_clock: measured 49547 usecs
intel8x0: clocking to 48000
Non-volatile memory driver v1.2
hdc: ATAPI 63X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
SCSI subsystem initialized
st: Version 20040318, fixed bufsize 32768, s/g segs 256
BIOS EDD facility v0.13 2004-Mar-09, 1 devices found
parport0: PC-style at 0x3bc [PCSPP,TRISTATE]
lp0: using parport0 (polling).
drivers/usb/serial/usb-serial.c: USB Serial support registered for
Generic
drivers/usb/core/usb.c: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
end_request: I/O error, dev fd0, sector 0
mtrr: 0xe0000000,0x2000000 overlaps existing 0xe0000000,0x1000000
[drm] Initialized radeon 1.10.0 20020828 on minor 0: ATI Radeon Lf R250
Mobility 9000 M9
mtrr: 0xe0000000,0x2000000 overlaps existing 0xe0000000,0x1000000
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
[drm] Loading R200 Microcode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
eth1: Association lost.
ipw2100: Associated with 'SpeedStream' at 11Mbps, channel 11
eth1: Association lost.
ipw2100: Associated with 'SpeedStream' at 11Mbps, channel 11
eth0: no IPv6 routers present
eth1: no IPv6 routers present
e1000: eth0: e1000_watchdog: NIC Link is Down
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
[drm] Loading R200 Microcode
spurious 8259A interrupt: IRQ7.
cdrom: dropping to single frame dma



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 10:14 ` Jens Axboe
@ 2004-05-15  8:45   ` Daniele Bernardini
  2004-05-15 14:58     ` Jens Axboe
  0 siblings, 1 reply; 15+ messages in thread
From: Daniele Bernardini @ 2004-05-15  8:45 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel


On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
> On Fri, May 14 2004, Daniele Bernardini wrote:
> > Hi Folks, 
> > 
> > I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> > IBM thinkpad R50 with dvdram drive. 
> > 
> > It works for a while and then hangs. At this point nothing short of a
> > reboot works. Ripping stop working when the message 
> > 	cdrom: dropping to single frame dma
> > comes up. The system feels slow for a couple of seconds and then is back
> > to normal, but no ripping until next reboot
> > 
> > I am running the 2.6.4 compiled by SuSE.
> 
> Can you retest with this small debug patch applied.
> 
> --- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
> +++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
> @@ -1987,6 +1987,7 @@
>  			struct request_sense *s = rq->sense;
>  			ret = -EIO;
>  			cdi->last_sense = s->sense_key;
> +			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
>  		}
>  
>  		if (blk_rq_unmap_user(rq, ubuf, bio, len))

I did it and started ripping a cd it froze after 9 tracks, though did
not see your message. I was looking at /var/log/messages (see below).
BTW the system got instable and then froze had to power down. It
happened before always after the ripping problem.

Should I aswitch on debug for the cdrom?



May 15 09:53:52 linux syslogd 1.4.1: restart.
May 15 09:53:57 linux rcpowersaved: enter 'speedstep-centrino' into
POWERSAVE_CPUFREQD_MODULE in /etc/sysconfig/powersave/com
mon.
May 15 09:53:57 linux rcpowersaved: this will speed up starting
powersaved and avoid unnecessary warnings in syslog.
May 15 09:53:57 linux kernel: klogd 1.4.1, log source = /proc/kmsg
started.
May 15 09:53:57 linux kernel: Inspecting
/boot/System.map-2.6.4-54.5-default
May 15 09:53:58 linux sshd[3733]: Server listening on :: port 22.
May 15 09:53:58 linux kernel: Loaded 23440 symbols from
/boot/System.map-2.6.4-54.5-default.
May 15 09:53:58 linux kernel: Symbols match kernel version 2.6.4.
May 15 09:53:58 linux kernel: No module symbols loaded - kernel modules
not enabled.
May 15 09:53:58 linux kernel: drivers/usb/core/usb.c: registered new
driver usbfs
May 15 09:53:58 linux kernel: drivers/usb/core/usb.c: registered new
driver hub
May 15 09:53:58 linux kernel: Intel(R) PRO/1000 Network Driver - version
5.2.30.1-k2
May 15 09:53:58 linux kernel: Copyright (c) 1999-2004 Intel Corporation.
May 15 09:53:58 linux kernel: e1000: eth0: e1000_probe: Intel(R)
PRO/1000 Network Connection
May 15 09:53:58 linux kernel: Linux Kernel Card Services
May 15 09:53:58 linux kernel:   options:  [pci] [cardbus] [pm]
May 15 09:53:58 linux kernel: Yenta: CardBus bridge found at
0000:02:00.0 [1014:0552]
May 15 09:53:58 linux kernel: Yenta: ISA IRQ mask 0x04b8, PCI irq 11
May 15 09:53:58 linux kernel: Socket status: 30000086
May 15 09:53:58 linux kernel: hostap_crypt: registered algorithm 'NULL'
May 15 09:53:58 linux kernel: ipw2100: no version for
"hostap_get_crypto_ops" found: kernel tainted.
May 15 09:53:58 linux kernel: ipw2100: Intel(R) PRO/Wireless 2100
Network Driver, 0.42
May 15 09:53:58 linux kernel: ipw2100: Copyright(c) 2003-2004 Intel
Corporation
May 15 09:53:58 linux kernel: Detected ipw2100 PCI device at
0000:02:02.0, dev: eth1, mem: 0xC0214000-0xC0214FFF -> fac35000,
 irq: 11
May 15 09:53:58 linux kernel: eth1: Using hotplug firmware load.
May 15 09:53:58 linux kernel: cs: IO port probe 0x0c00-0x0cff: clean.
May 15 09:53:58 linux kernel: cs: IO port probe 0x0820-0x08ff: clean.
May 15 09:53:58 linux kernel: cs: IO port probe 0x0800-0x080f: clean.
May 15 09:53:58 linux kernel: cs: IO port probe 0x03e0-0x04ff: excluding
0x4d0-0x4d7
May 15 09:53:58 linux kernel: cs: IO port probe 0x0100-0x03af: clean.
May 15 09:53:58 linux kernel: cs: IO port probe 0x0a00-0x0aff: clean.
May 15 09:53:58 linux kernel: NET: Registered protocol family 17
May 15 09:53:58 linux kernel: ipw2100: Associated with 'SpeedStream' at
11Mbps, channel 11
May 15 09:53:58 linux [powersaved][3623]: resmgr: server response code
200
May 15 09:53:58 linux kernel: eth1: Association lost.
May 15 09:53:58 linux kernel: ipw2100: Associated with 'SpeedStream' at
11Mbps, channel 11
May 15 09:53:58 linux kernel: hw_random hardware driver 1.0.0 loaded
May 15 09:53:58 linux kernel: ieee1394: Initialized config rom entry
`ip1394'
May 15 09:53:58 linux kernel: ohci1394: $Rev: 1193 $ Ben Collins
<bcollins@debian.org>
May 15 09:53:58 linux kernel: ohci1394: fw-host0: OHCI-1394 1.1 (PCI):
IRQ=[11]  MMIO=[c0215000-c02157ff]  Max Packet=[2048]
May 15 09:53:58 linux kernel: USB Universal Host Controller Interface
driver v2.2
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.0: UHCI Host
Controller
May 15 09:53:58 linux kernel: PCI: Setting latency timer of device
0000:00:1d.0 to 64
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.0: irq 11, io base
00001800
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.0: new USB bus
registered, assigned bus number 1
May 15 09:53:58 linux kernel: usb usb1: Product: UHCI Host Controller
May 15 09:53:58 linux kernel: usb usb1: Manufacturer: Linux
2.6.4-54.5-default uhci_hcd
May 15 09:53:58 linux kernel: usb usb1: SerialNumber: 0000:00:1d.0
May 15 09:53:58 linux kernel: hub 1-0:1.0: USB hub found
May 15 09:53:58 linux kernel: hub 1-0:1.0: 2 ports detected
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.1: UHCI Host
Controller
May 15 09:53:58 linux kernel: PCI: Setting latency timer of device
0000:00:1d.1 to 64
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.1: irq 11, io base
00001820
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.1: new USB bus
registered, assigned bus number 2
May 15 09:53:58 linux kernel: usb usb2: Product: UHCI Host Controller
May 15 09:53:58 linux kernel: usb usb2: Manufacturer: Linux
2.6.4-54.5-default uhci_hcd
May 15 09:53:58 linux kernel: usb usb2: SerialNumber: 0000:00:1d.1
May 15 09:53:58 linux kernel: hub 2-0:1.0: USB hub found
May 15 09:53:58 linux kernel: hub 2-0:1.0: 2 ports detected
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.2: UHCI Host
Controller
May 15 09:53:58 linux kernel: PCI: Setting latency timer of device
0000:00:1d.2 to 64
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.2: irq 11, io base
00001840
May 15 09:53:58 linux kernel: uhci_hcd 0000:00:1d.2: new USB bus
registered, assigned bus number 3
May 15 09:53:58 linux kernel: usb usb3: Product: UHCI Host Controller
May 15 09:53:58 linux kernel: usb usb3: Manufacturer: Linux
2.6.4-54.5-default uhci_hcd
May 15 09:53:58 linux kernel: usb usb3: SerialNumber: 0000:00:1d.2
May 15 09:53:58 linux kernel: hub 3-0:1.0: USB hub found
May 15 09:53:58 linux kernel: hub 3-0:1.0: 2 ports detected
May 15 09:53:58 linux kernel: ehci_hcd 0000:00:1d.7: EHCI Host
Controller
May 15 09:53:58 linux kernel: PCI: Setting latency timer of device
0000:00:1d.7 to 64
May 15 09:53:58 linux kernel: ehci_hcd 0000:00:1d.7: irq 11, pci mem
fa833000
May 15 09:53:58 linux kernel: ehci_hcd 0000:00:1d.7: new USB bus
registered, assigned bus number 4
May 15 09:53:58 linux kernel: PCI: cache line size of 32 is not
supported by device 0000:00:1d.7
May 15 09:53:58 linux kernel: ehci_hcd 0000:00:1d.7: USB 2.0 enabled,
EHCI 1.00, driver 2003-Dec-29
May 15 09:53:58 linux kernel: usb usb4: Product: EHCI Host Controller
May 15 09:53:58 linux kernel: usb usb4: Manufacturer: Linux
2.6.4-54.5-default ehci_hcd
May 15 09:53:58 linux kernel: usb usb4: SerialNumber: 0000:00:1d.7
May 15 09:53:58 linux kernel: hub 4-0:1.0: USB hub found
May 15 09:53:58 linux kernel: hub 4-0:1.0: 6 ports detected
May 15 09:53:58 linux kernel: Linux agpgart interface v0.100 (c) Dave
Jones
May 15 09:53:58 linux kernel: agpgart: Detected an Intel 855PM Chipset.
May 15 09:53:58 linux kernel: agpgart: Maximum main memory to use for
agp memory: 1919M
May 15 09:53:58 linux kernel: agpgart: AGP aperture is 256M @ 0xd0000000
May 15 09:53:58 linux kernel: eth1: Association lost.
May 15 09:53:58 linux kernel: ieee1394: Host added: ID:BUS[0-00:1023] 
GUID[00061b0324000368]
May 15 09:53:58 linux kernel: ipw2100: Associated with 'SpeedStream' at
11Mbps, channel 11
May 15 09:53:58 linux kernel: PCI: Setting latency timer of device
0000:00:1f.5 to 64
May 15 09:53:58 linux kernel: intel8x0_measure_ac97_clock: measured
49524 usecs
May 15 09:53:58 linux kernel: intel8x0: clocking to 48000
May 15 09:53:58 linux kernel: hdc: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW
drive, 2048kB Cache
May 15 09:53:58 linux kernel: Uniform CD-ROM driver Revision: 3.20
May 15 09:53:58 linux kernel: ACPI: AC Adapter [AC] (on-line)
May 15 09:53:58 linux kernel: ACPI: Battery Slot [BAT0] (battery
present)
May 15 09:53:58 linux kernel: ACPI: Power Button (FF) [PWRF]
May 15 09:53:58 linux kernel: ACPI: Lid Switch [LID]
May 15 09:53:58 linux kernel: ACPI: Sleep Button (CM) [SLPB]
May 15 09:53:58 linux kernel: ACPI: Processor [CPU] (supports C1 C2 C3,
8 throttling states)
May 15 09:53:58 linux kernel: ACPI: Thermal Zone [THM0] (48 C)
May 15 09:53:58 linux kernel: speedstep-centrino: found "Intel(R)
Pentium(R) M processor 1700MHz": max frequency: 1700000kHz
May 15 09:53:58 linux kernel: NET: Registered protocol family 10
May 15 09:53:58 linux kernel: Disabled Privacy Extensions on device
c03545c0(lo)
May 15 09:53:58 linux kernel: IPv6 over IPv4 tunneling driver
May 15 09:53:58 linux kernel: Disabled Privacy Extensions on device
f6cf0c00(sit0)
May 15 09:53:59 linux modprobe: FATAL: Error inserting sonypi
(/lib/modules/2.6.4-54.5-default/kernel/drivers/char/sonypi.ko)
: No such device
May 15 09:53:59 linux /etc/hotplug/block.agent[3763]: grep:
/sys/class/scsi_host/ide1/proc_name: No such file or directory
May 15 09:53:59 linux /etc/hotplug/block.agent[3763]: grep:
/sys/class/scsi_host/ide1/proc_name: No such file or directory
May 15 09:53:59 linux /etc/hotplug/block.agent[3763]: new block device
/block/hdc
May 15 09:54:00 linux kernel: SCSI subsystem initialized
May 15 09:54:03 linux root: spamd starting
May 15 09:54:03 linux ifup: No configuration found for sit0
May 15 09:54:03 linux kernel: st: Version 20040318, fixed bufsize 32768,
s/g segs 256
May 15 09:54:03 linux kernel: BIOS EDD facility v0.13 2004-Mar-09, 1
devices found
May 15 09:54:04 linux kernel: Non-volatile memory driver v1.2
May 15 09:54:08 linux kernel: eth0: no IPv6 routers present
May 15 09:54:08 linux kernel: eth1: no IPv6 routers present
May 15 09:54:14 linux kernel: parport0: PC-style at 0x3bc
[PCSPP,TRISTATE]
May 15 09:54:14 linux kernel: lp0: using parport0 (polling).
May 15 09:54:15 linux kernel: drivers/usb/serial/usb-serial.c: USB
Serial support registered for Generic
May 15 09:54:15 linux kernel: drivers/usb/core/usb.c: registered new
driver usbserial
May 15 09:54:15 linux kernel: drivers/usb/serial/usb-serial.c: USB
Serial Driver core v2.0
May 15 09:54:15 linux /usr/sbin/cron[4530]: (CRON) STARTUP (fork ok)
May 15 09:54:18 linux kernel: end_request: I/O error, dev fd0, sector 0
May 15 09:54:21 linux kernel: mtrr: 0xe0000000,0x2000000 overlaps
existing 0xe0000000,0x1000000
May 15 09:54:21 linux kernel: [drm] Initialized radeon 1.10.0 20020828
on minor 0: ATI Radeon Lf R250 Mobility 9000 M9
May 15 09:54:21 linux kernel: mtrr: 0xe0000000,0x2000000 overlaps
existing 0xe0000000,0x1000000
May 15 09:54:21 linux kernel: agpgart: Found an AGP 2.0 compliant device
at 0000:00:00.0.
May 15 09:54:21 linux kernel: agpgart: Putting AGP V2 device at
0000:00:00.0 into 1x mode
May 15 09:54:21 linux kernel: agpgart: Putting AGP V2 device at
0000:01:00.0 into 1x mode
May 15 09:54:21 linux kernel: [drm] Loading R200 Microcode
May 15 09:54:50 linux kdm: :0[4425]: pam_unix2: session started for user
dbernardini, service xdm
May 15 09:55:24 linux gconfd (dbernardini-4784): starting (version
2.4.0.1), pid 4784 user 'dbernardini'
May 15 09:55:24 linux gconfd (dbernardini-4784): Resolved address
"xml:readonly:/etc/opt/gnome/gconf/gconf.xml.mandatory" to
a read-only config source at position 0
May 15 09:55:24 linux gconfd (dbernardini-4784): Resolved address
"xml:readwrite:/home/dbernardini/.gconf" to a writable conf
ig source at position 1
May 15 09:55:24 linux gconfd (dbernardini-4784): Resolved address
"xml:readonly:/etc/opt/gnome/gconf/gconf.xml.defaults" to a
 read-only config source at position 2
May 15 09:56:18 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorhshIeb.slave-socket: resmgr: server response code 502
May 15 09:56:21 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 09:56:56 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 09:57:03 linux last message repeated 16 times
May 15 09:57:15 linux su: (to root) dbernardini on /dev/pts/36
May 15 09:57:15 linux su: pam_unix2: session started for user root,
service su
May 15 09:58:12 linux kernel: spurious 8259A interrupt: IRQ7.
May 15 09:59:00 linux /USR/SBIN/CRON[4857]: (root) CMD ( rm -f
/var/spool/cron/lastrun/cron.hourly)
May 15 09:59:17 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:00:53 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:02:12 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:03:23 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:06:03 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:08:07 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:10:27 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502
May 15 10:12:44 linux kdeinit: kio_audiocd audiocd
/tmp/ksocket-dbernardini/klauncherCe2j3a.slave-socket
/tmp/ksocket-dbernar
dini/konquerorTnSdoa.slave-socket: resmgr: server response code 502



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 14:58     ` Jens Axboe
@ 2004-05-15 10:13       ` Daniele Bernardini
  2004-05-15 14:03       ` Daniele Bernardini
  1 sibling, 0 replies; 15+ messages in thread
From: Daniele Bernardini @ 2004-05-15 10:13 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

On Sat, 2004-05-15 at 16:58, Jens Axboe wrote:
> On Sat, May 15 2004, Daniele Bernardini wrote:
> > 
> > On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
> > > On Fri, May 14 2004, Daniele Bernardini wrote:
> > > > Hi Folks, 
> > > > 
> > > > I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> > > > IBM thinkpad R50 with dvdram drive. 
> > > > 
> > > > It works for a while and then hangs. At this point nothing short of a
> > > > reboot works. Ripping stop working when the message 
> > > > 	cdrom: dropping to single frame dma
> > > > comes up. The system feels slow for a couple of seconds and then is back
> > > > to normal, but no ripping until next reboot
> > > > 
> > > > I am running the 2.6.4 compiled by SuSE.
> > > 
> > > Can you retest with this small debug patch applied.
> > > 
> > > --- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
> > > +++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
> > > @@ -1987,6 +1987,7 @@
> > >  			struct request_sense *s = rq->sense;
> > >  			ret = -EIO;
> > >  			cdi->last_sense = s->sense_key;
> > > +			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
> > >  		}
> > >  
> > >  		if (blk_rq_unmap_user(rq, ubuf, bio, len))
> > 
> > I did it and started ripping a cd it froze after 9 tracks, though did
> > not see your message. I was looking at /var/log/messages (see below).
> > BTW the system got instable and then froze had to power down. It
> > happened before always after the ripping problem.
> > 
> > Should I aswitch on debug for the cdrom?
> 
> Just an idea - can you log vmstat 5 info while doing this burn? Maybe
> there's still a little leak in there, so watch the ram usage
> (used/free/swap/cache).
> 
> Does your drive have dma enabled?

How do you check if dma is enabled?

BTW it works with ide-scsi, so whatever the problem is must be ide-cd
specific

Ill post the test result later


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-14 15:29 dma ripping Daniele Bernardini
@ 2004-05-15 10:14 ` Jens Axboe
  2004-05-15  8:45   ` Daniele Bernardini
  0 siblings, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2004-05-15 10:14 UTC (permalink / raw)
  To: Daniele Bernardini; +Cc: linux-kernel

On Fri, May 14 2004, Daniele Bernardini wrote:
> Hi Folks, 
> 
> I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> IBM thinkpad R50 with dvdram drive. 
> 
> It works for a while and then hangs. At this point nothing short of a
> reboot works. Ripping stop working when the message 
> 	cdrom: dropping to single frame dma
> comes up. The system feels slow for a couple of seconds and then is back
> to normal, but no ripping until next reboot
> 
> I am running the 2.6.4 compiled by SuSE.

Can you retest with this small debug patch applied.

--- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
+++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
@@ -1987,6 +1987,7 @@
 			struct request_sense *s = rq->sense;
 			ret = -EIO;
 			cdi->last_sense = s->sense_key;
+			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
 		}
 
 		if (blk_rq_unmap_user(rq, ubuf, bio, len))

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 14:58     ` Jens Axboe
  2004-05-15 10:13       ` Daniele Bernardini
@ 2004-05-15 14:03       ` Daniele Bernardini
  2004-05-15 21:19         ` Jens Axboe
  2004-05-17 22:12         ` Bill Davidsen
  1 sibling, 2 replies; 15+ messages in thread
From: Daniele Bernardini @ 2004-05-15 14:03 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

On Sat, 2004-05-15 at 16:58, Jens Axboe wrote:
> On Sat, May 15 2004, Daniele Bernardini wrote:
> > 
> > On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
> > > On Fri, May 14 2004, Daniele Bernardini wrote:
> > > > Hi Folks, 
> > > > 
> > > > I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> > > > IBM thinkpad R50 with dvdram drive. 
> > > > 
> > > > It works for a while and then hangs. At this point nothing short of a
> > > > reboot works. Ripping stop working when the message 
> > > > 	cdrom: dropping to single frame dma
> > > > comes up. The system feels slow for a couple of seconds and then is back
> > > > to normal, but no ripping until next reboot
> > > > 
> > > > I am running the 2.6.4 compiled by SuSE.
> > > 
> > > Can you retest with this small debug patch applied.
> > > 
> > > --- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
> > > +++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
> > > @@ -1987,6 +1987,7 @@
> > >  			struct request_sense *s = rq->sense;
> > >  			ret = -EIO;
> > >  			cdi->last_sense = s->sense_key;
> > > +			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
> > >  		}
> > >  
> > >  		if (blk_rq_unmap_user(rq, ubuf, bio, len))
> > 
> > I did it and started ripping a cd it froze after 9 tracks, though did
> > not see your message. I was looking at /var/log/messages (see below).
> > BTW the system got instable and then froze had to power down. It
> > happened before always after the ripping problem.
> > 
> > Should I aswitch on debug for the cdrom?
> 
> Just an idea - can you log vmstat 5 info while doing this burn? Maybe
> there's still a little leak in there, so watch the ram usage
> (used/free/swap/cache).
> 
> Does your drive have dma enabled?

dma was off. I turned it on and now everything is fine I am through the
third cd without a glitch...

Thanks and sorry for being so stupid :)

Daniel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15  8:45   ` Daniele Bernardini
@ 2004-05-15 14:58     ` Jens Axboe
  2004-05-15 10:13       ` Daniele Bernardini
  2004-05-15 14:03       ` Daniele Bernardini
  0 siblings, 2 replies; 15+ messages in thread
From: Jens Axboe @ 2004-05-15 14:58 UTC (permalink / raw)
  To: Daniele Bernardini; +Cc: linux-kernel

On Sat, May 15 2004, Daniele Bernardini wrote:
> 
> On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
> > On Fri, May 14 2004, Daniele Bernardini wrote:
> > > Hi Folks, 
> > > 
> > > I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> > > IBM thinkpad R50 with dvdram drive. 
> > > 
> > > It works for a while and then hangs. At this point nothing short of a
> > > reboot works. Ripping stop working when the message 
> > > 	cdrom: dropping to single frame dma
> > > comes up. The system feels slow for a couple of seconds and then is back
> > > to normal, but no ripping until next reboot
> > > 
> > > I am running the 2.6.4 compiled by SuSE.
> > 
> > Can you retest with this small debug patch applied.
> > 
> > --- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
> > +++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
> > @@ -1987,6 +1987,7 @@
> >  			struct request_sense *s = rq->sense;
> >  			ret = -EIO;
> >  			cdi->last_sense = s->sense_key;
> > +			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
> >  		}
> >  
> >  		if (blk_rq_unmap_user(rq, ubuf, bio, len))
> 
> I did it and started ripping a cd it froze after 9 tracks, though did
> not see your message. I was looking at /var/log/messages (see below).
> BTW the system got instable and then froze had to power down. It
> happened before always after the ripping problem.
> 
> Should I aswitch on debug for the cdrom?

Just an idea - can you log vmstat 5 info while doing this burn? Maybe
there's still a little leak in there, so watch the ram usage
(used/free/swap/cache).

Does your drive have dma enabled?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 14:03       ` Daniele Bernardini
@ 2004-05-15 21:19         ` Jens Axboe
  2004-05-16 15:26           ` Philip Dodd
  2004-05-17 22:12         ` Bill Davidsen
  1 sibling, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2004-05-15 21:19 UTC (permalink / raw)
  To: Daniele Bernardini; +Cc: linux-kernel

On Sat, May 15 2004, Daniele Bernardini wrote:
> On Sat, 2004-05-15 at 16:58, Jens Axboe wrote:
> > On Sat, May 15 2004, Daniele Bernardini wrote:
> > > 
> > > On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
> > > > On Fri, May 14 2004, Daniele Bernardini wrote:
> > > > > Hi Folks, 
> > > > > 
> > > > > I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
> > > > > IBM thinkpad R50 with dvdram drive. 
> > > > > 
> > > > > It works for a while and then hangs. At this point nothing short of a
> > > > > reboot works. Ripping stop working when the message 
> > > > > 	cdrom: dropping to single frame dma
> > > > > comes up. The system feels slow for a couple of seconds and then is back
> > > > > to normal, but no ripping until next reboot
> > > > > 
> > > > > I am running the 2.6.4 compiled by SuSE.
> > > > 
> > > > Can you retest with this small debug patch applied.
> > > > 
> > > > --- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
> > > > +++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
> > > > @@ -1987,6 +1987,7 @@
> > > >  			struct request_sense *s = rq->sense;
> > > >  			ret = -EIO;
> > > >  			cdi->last_sense = s->sense_key;
> > > > +			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
> > > >  		}
> > > >  
> > > >  		if (blk_rq_unmap_user(rq, ubuf, bio, len))
> > > 
> > > I did it and started ripping a cd it froze after 9 tracks, though did
> > > not see your message. I was looking at /var/log/messages (see below).
> > > BTW the system got instable and then froze had to power down. It
> > > happened before always after the ripping problem.
> > > 
> > > Should I aswitch on debug for the cdrom?
> > 
> > Just an idea - can you log vmstat 5 info while doing this burn? Maybe
> > there's still a little leak in there, so watch the ram usage
> > (used/free/swap/cache).
> > 
> > Does your drive have dma enabled?
> 
> dma was off. I turned it on and now everything is fine I am through the
> third cd without a glitch...
> 
> Thanks and sorry for being so stupid :)

You are not being stupid, I think we have a leak in there some where.
PIO should work just fine. Slower than DMA of course, but it should work
perfectly of course.

I'll check up on this...

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 21:19         ` Jens Axboe
@ 2004-05-16 15:26           ` Philip Dodd
  2004-05-16 15:39             ` Hugo Mills
  0 siblings, 1 reply; 15+ messages in thread
From: Philip Dodd @ 2004-05-16 15:26 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Daniele Bernardini, linux-kernel

Jens Axboe wrote:
8<
> You are not being stupid, I think we have a leak in there some where.
> PIO should work just fine. Slower than DMA of course, but it should work
> perfectly of course.

Hi All,

Just a quick "me too" here - though symptoms don't appear to be 
identical.  Running 2.6.6 on Debian Sid and using nvidia binary modules. 
  My system doesn't hang, but when I get the log message "cdrom: 
dropping to single frame dma" ripping stops working.  It still rips but 
I get silence - it will rip the track OK, as in read through the correct 
track length, but I get silence on the resulting wav file.

Please let me know if I can let you have any information about this problem.

Kind regards,

Phil

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-16 15:26           ` Philip Dodd
@ 2004-05-16 15:39             ` Hugo Mills
  2004-05-17 22:06               ` Philip Dodd
  0 siblings, 1 reply; 15+ messages in thread
From: Hugo Mills @ 2004-05-16 15:39 UTC (permalink / raw)
  To: Philip Dodd; +Cc: Jens Axboe, Daniele Bernardini, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

On Sun, May 16, 2004 at 05:26:44PM +0200, Philip Dodd wrote:
> Jens Axboe wrote:
> 8<
> >You are not being stupid, I think we have a leak in there some where.
> >PIO should work just fine. Slower than DMA of course, but it should work
> >perfectly of course.
> 
> Hi All,
> 
> Just a quick "me too" here - though symptoms don't appear to be 
> identical.  Running 2.6.6 on Debian Sid and using nvidia binary modules. 
>  My system doesn't hang, but when I get the log message "cdrom: 
> dropping to single frame dma" ripping stops working.  It still rips but 
> I get silence - it will rip the track OK, as in read through the correct 
> track length, but I get silence on the resulting wav file.

   Put me down for this latter one, too. I'm using a vanilla 2.6.[56]
on amd64. Controller is VIA.

   It seems to be related to hard-to-read CDs (dirty/scratched/badly-
made) -- I've got a couple here that I'm pretty sure I can use as test
cases to trigger the problem instantly.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 1C335860 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- "What's so bad about being drunk?" "You ask a glass of water" ---  
                                                                         

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-16 15:39             ` Hugo Mills
@ 2004-05-17 22:06               ` Philip Dodd
  2004-05-20  2:31                 ` Philip Dodd
  2004-05-20 13:34                 ` Jens Axboe
  0 siblings, 2 replies; 15+ messages in thread
From: Philip Dodd @ 2004-05-17 22:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: Hugo Mills, Jens Axboe, Daniele Bernardini

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

Hugo Mills wrote:
8<
>    Put me down for this latter one, too. I'm using a vanilla 2.6.[56]
> on amd64. Controller is VIA.
> 
>    It seems to be related to hard-to-read CDs (dirty/scratched/badly-
> made) -- I've got a couple here that I'm pretty sure I can use as test
> cases to trigger the problem instantly.
8<
Hi,

OK - I don't know if any of this helps, but I guess a little more 
precision won't do anyone any harm.
Intel i820 Chipset on P3C-D mobo.
ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:pio
hda: ASUS DVD-ROM E616, ATAPI CD/DVD-ROM drive
hda: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)

ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:DMA, hdd:pio
hdc: RICOH CD-R/RW MP7060A, ATAPI CD/DVD-ROM drive
hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, DMA

Now hda is the one that bogs out, ripping silence after the "cdrom:
dropping to single frame dma" error. hdc can rip for hours and hardly 
ever get cdparanoia errors - even on "problematic" CDs that would appear 
to be a declenching factor for the single frame dma switch for hda.

Don't know what other info might be useful - attached is config file if 
that's of any interest.

Kind regards,

Phil

[-- Attachment #2: config.txt --]
[-- Type: text/plain, Size: 19541 bytes --]

#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y

#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=15
# CONFIG_HOTPLUG is not set
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODULE_UNLOAD is not set
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y

#
# Processor type and features
#
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_SMP=y
CONFIG_NR_CPUS=2
CONFIG_PREEMPT=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
# CONFIG_X86_MCE_P4THERMAL is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set

#
# Firmware Drivers
#
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y
CONFIG_HIGHPTE=y
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_IRQBALANCE=y
CONFIG_HAVE_DEC_LOCK=y

#
# Power management options (ACPI, APM)
#
# CONFIG_PM is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
# CONFIG_ACPI is not set
CONFIG_ACPI_BOOT=y

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
# CONFIG_PCI_USE_VECTOR is not set
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y

#
# Device Drivers
#

#
# Generic Driver Options
#

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play support
#

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_CARMEL is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_LBD is not set

#
# 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_HD_IDE is not set
# CONFIG_BLK_DEV_IDEDISK is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_IDE_GENERIC is not set
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_GENERIC 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_ADMA=y
# 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_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_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_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

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

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set

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

#
# SCSI Transport Attributes
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set

#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_ACARD is not set
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=64
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
# CONFIG_AIC7XXX_BUILD_FIRMWARE is not set
# CONFIG_AIC7XXX_DEBUG_ENABLE is not set
CONFIG_AIC7XXX_DEBUG_MASK=0
# CONFIG_AIC7XXX_REG_PRETTY_PRINT is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA6322 is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set

#
# Networking support
#
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not set
CONFIG_UNIX=y
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_NETFILTER is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set

#
# ARCnet devices
#
# CONFIG_ARCNET is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_MII is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
CONFIG_NET_VENDOR_3COM=y
CONFIG_VORTEX=y
# CONFIG_TYPHOON is not set

#
# Tulip family network device support
#
# CONFIG_NET_TULIP is not set
# CONFIG_HP100 is not set
# CONFIG_NET_PCI is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_R8169 is not set
# CONFIG_SK98LIN is not set
# CONFIG_TIGON3 is not set

#
# Ethernet (10000 Mbit)
#
# CONFIG_IXGB is not set
# CONFIG_S2IO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NET_FC is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set

#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not set
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# CONFIG_QIC02_TAPE is not set

#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
CONFIG_HW_RANDOM=y
CONFIG_NVRAM=y
CONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y

#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not set

#
# I2C Hardware Bus support
#
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_SCx200_ACB is not set

#
# Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set

#
# Other I2C Chip support
#
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set

#
# Misc devices
#
# CONFIG_IBM_ASM is not set

#
# Multimedia devices
#
CONFIG_VIDEO_DEV=y

#
# Video For Linux
#

#
# Video Adapters
#
CONFIG_VIDEO_BT848=y
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_SAA5246A is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_TUNER_3036 is not set
# CONFIG_VIDEO_ZORAN is not set
# CONFIG_VIDEO_SAA7134 is not set
# CONFIG_VIDEO_MXB is not set
# CONFIG_VIDEO_DPC is not set
# CONFIG_VIDEO_HEXIUM_ORION is not set
# CONFIG_VIDEO_HEXIUM_GEMINI is not set

#
# Radio Adapters
#
# CONFIG_RADIO_GEMTEK_PCI is not set
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_MAESTRO is not set

#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
CONFIG_VIDEO_TUNER=y
CONFIG_VIDEO_BUF=y
CONFIG_VIDEO_BTCX=y
CONFIG_VIDEO_IR=y

#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y

#
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
# CONFIG_SND_MIXER_OSS is not set
# CONFIG_SND_PCM_OSS is not set
# CONFIG_SND_SEQUENCER_OSS is not set
CONFIG_SND_RTCTIMER=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set

#
# PCI devices
#
CONFIG_SND_AC97_CODEC=y
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
CONFIG_SND_EMU10K1=y
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VX222 is not set

#
# ALSA USB devices
#
# CONFIG_SND_USB_AUDIO is not set

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y

#
# USB Host Controller Drivers
#
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set

#
# USB Imaging devices
#
# CONFIG_USB_MICROTEK is not set

#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_KONICAWC is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_W9968CF is not set

#
# USB Network adaptors
#
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_USBNET is not set

#
# USB port drivers
#

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set

#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=y
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVPTS_FS_XATTR=y
CONFIG_DEVPTS_FS_SECURITY=y
CONFIG_TMPFS=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_RAMFS=y

#
# Miscellaneous filesystems
#
# CONFIG_HFSPLUS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y

#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set

#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
CONFIG_EARLY_PRINTK=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_FRAME_POINTER is not set
# CONFIG_4KSTACKS is not set
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y

#
# Security options
#
# CONFIG_SECURITY is not set

#
# Cryptographic options
#
# CONFIG_CRYPTO is not set

#
# Library routines
#
CONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_X86_STD_RESOURCES=y
CONFIG_PC=y

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-15 14:03       ` Daniele Bernardini
  2004-05-15 21:19         ` Jens Axboe
@ 2004-05-17 22:12         ` Bill Davidsen
  1 sibling, 0 replies; 15+ messages in thread
From: Bill Davidsen @ 2004-05-17 22:12 UTC (permalink / raw)
  To: linux-kernel

Daniele Bernardini wrote:
> On Sat, 2004-05-15 at 16:58, Jens Axboe wrote:
> 
>>On Sat, May 15 2004, Daniele Bernardini wrote:
>>
>>>On Sat, 2004-05-15 at 12:14, Jens Axboe wrote:
>>>
>>>>On Fri, May 14 2004, Daniele Bernardini wrote:
>>>>
>>>>>Hi Folks, 
>>>>>
>>>>>I am trying to get cd ripping to work on a freshly installed SuSE 9.1 on
>>>>>IBM thinkpad R50 with dvdram drive. 
>>>>>
>>>>>It works for a while and then hangs. At this point nothing short of a
>>>>>reboot works. Ripping stop working when the message 
>>>>>	cdrom: dropping to single frame dma
>>>>>comes up. The system feels slow for a couple of seconds and then is back
>>>>>to normal, but no ripping until next reboot
>>>>>
>>>>>I am running the 2.6.4 compiled by SuSE.
>>>>
>>>>Can you retest with this small debug patch applied.
>>>>
>>>>--- drivers/cdrom/cdrom.c~	2004-05-15 12:12:24.770228291 +0200
>>>>+++ drivers/cdrom/cdrom.c	2004-05-15 12:13:25.101720866 +0200
>>>>@@ -1987,6 +1987,7 @@
>>>> 			struct request_sense *s = rq->sense;
>>>> 			ret = -EIO;
>>>> 			cdi->last_sense = s->sense_key;
>>>>+			printk("rip failed, sense %x/%x/%x\n", s->sense_key, s->asc, s->ascq);
>>>> 		}
>>>> 
>>>> 		if (blk_rq_unmap_user(rq, ubuf, bio, len))
>>>
>>>I did it and started ripping a cd it froze after 9 tracks, though did
>>>not see your message. I was looking at /var/log/messages (see below).
>>>BTW the system got instable and then froze had to power down. It
>>>happened before always after the ripping problem.
>>>
>>>Should I aswitch on debug for the cdrom?
>>
>>Just an idea - can you log vmstat 5 info while doing this burn? Maybe
>>there's still a little leak in there, so watch the ram usage
>>(used/free/swap/cache).
>>
>>Does your drive have dma enabled?
> 
> 
> dma was off. I turned it on and now everything is fine I am through the
> third cd without a glitch...
> 
> Thanks and sorry for being so stupid :)

It seems likely that this kernel was built to enable DMA on disk only, 
an option which is appropriate for a vendor kernel, I guess, but results 
in this behaviour.

In any case it appears that an unexpected feature of PIO mode is now 
behaving in a more useful way, so your report was of general benefit. I 
suspect many people may be unhappy with the CPU used to burn CDs with 
that kernel config, particularly on fast burners.

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-17 22:06               ` Philip Dodd
@ 2004-05-20  2:31                 ` Philip Dodd
  2004-05-20 13:34                 ` Jens Axboe
  1 sibling, 0 replies; 15+ messages in thread
From: Philip Dodd @ 2004-05-20  2:31 UTC (permalink / raw)
  To: Philip Dodd; +Cc: linux-kernel, Hugo Mills, Jens Axboe, Daniele Bernardini

Philip Dodd wrote:
8<
> Intel i820 Chipset on P3C-D mobo.
> ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:pio
> hda: ASUS DVD-ROM E616, ATAPI CD/DVD-ROM drive
> hda: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
> 
> ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:DMA, hdd:pio
> hdc: RICOH CD-R/RW MP7060A, ATAPI CD/DVD-ROM drive
> hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
> 
> Now hda is the one that bogs out, ripping silence after the "cdrom:
> dropping to single frame dma" error. hdc can rip for hours and hardly 
> ever get cdparanoia errors - even on "problematic" CDs that would appear 
> to be a declenching factor for the single frame dma switch for hda.
8<
Hi - just a quick update: after ripping 5Gb of oggs hdc "went funny" - 
DMA was disabled and after hdc just stopped ripping altogether.

I've moved back to ide-scsi and am using that as a workaround, as it now 
appears as the only way of getting this stuff working.

Many thanks;

Phil

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-17 22:06               ` Philip Dodd
  2004-05-20  2:31                 ` Philip Dodd
@ 2004-05-20 13:34                 ` Jens Axboe
  2004-05-30 17:36                   ` Philip Dodd
  1 sibling, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2004-05-20 13:34 UTC (permalink / raw)
  To: Philip Dodd; +Cc: linux-kernel, Hugo Mills, Daniele Bernardini

On Tue, May 18 2004, Philip Dodd wrote:
> Hugo Mills wrote:
> 8<
> >   Put me down for this latter one, too. I'm using a vanilla 2.6.[56]
> >on amd64. Controller is VIA.
> >
> >   It seems to be related to hard-to-read CDs (dirty/scratched/badly-
> >made) -- I've got a couple here that I'm pretty sure I can use as test
> >cases to trigger the problem instantly.
> 8<
> Hi,
> 
> OK - I don't know if any of this helps, but I guess a little more 
> precision won't do anyone any harm.
> Intel i820 Chipset on P3C-D mobo.
> ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:pio
> hda: ASUS DVD-ROM E616, ATAPI CD/DVD-ROM drive
> hda: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
> 
> ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:DMA, hdd:pio
> hdc: RICOH CD-R/RW MP7060A, ATAPI CD/DVD-ROM drive
> hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
> 
> Now hda is the one that bogs out, ripping silence after the "cdrom:
> dropping to single frame dma" error. hdc can rip for hours and hardly 
> ever get cdparanoia errors - even on "problematic" CDs that would appear 
> to be a declenching factor for the single frame dma switch for hda.

Any chance you can see if this makes any difference (on 2.6.6-BK)?

===== drivers/block/ll_rw_blk.c 1.252 vs edited =====
--- 1.252/drivers/block/ll_rw_blk.c	2004-05-15 08:11:55 +02:00
+++ edited/drivers/block/ll_rw_blk.c	2004-05-20 14:38:53 +02:00
@@ -1760,21 +1760,20 @@
  *    A matching blk_rq_unmap_user() must be issued at the end of io, while
  *    still in process context.
  */
-struct request *blk_rq_map_user(request_queue_t *q, int rw, void __user *ubuf,
-				unsigned int len)
+struct request *blk_rq_map_user(request_queue_t *q, struct rq_map_data *rmd)
 {
 	struct request *rq = NULL;
 	char *buf = NULL;
 	struct bio *bio;
 	int ret;
 
-	rq = blk_get_request(q, rw, __GFP_WAIT);
+	rq = blk_get_request(q, rmd->rw, __GFP_WAIT);
 	if (!rq)
 		return ERR_PTR(-ENOMEM);
 
-	bio = bio_map_user(q, NULL, (unsigned long) ubuf, len, rw == READ);
+	bio = bio_map_user(q, NULL, rmd->userptr, rmd->len, rmd->rw == READ);
 	if (!bio) {
-		int bytes = (len + 511) & ~511;
+		int bytes = (rmd->len + 511) & ~511;
 
 		buf = kmalloc(bytes, q->bounce_gfp | GFP_USER);
 		if (!buf) {
@@ -1782,21 +1781,26 @@
 			goto fault;
 		}
 
-		if (rw == WRITE) {
-			if (copy_from_user(buf, ubuf, len)) {
+		if (rmd->rw == WRITE) {
+			char *userptr = (char *) rmd->userptr;
+
+			if (copy_from_user(buf, userptr, rmd->len)) {
 				ret = -EFAULT;
 				goto fault;
 			}
 		} else
-			memset(buf, 0, len);
+			memset(buf, 0, rmd->len);
 	}
 
 	rq->bio = rq->biotail = bio;
 	if (rq->bio)
 		blk_rq_bio_prep(q, rq, bio);
 
+	rmd->buf = buf;
+	rmd->bio = bio;
+
 	rq->buffer = rq->data = buf;
-	rq->data_len = len;
+	rq->data_len = rmd->len;
 	return rq;
 fault:
 	if (buf)
@@ -1806,6 +1810,8 @@
 	if (rq)
 		blk_put_request(rq);
 
+	rmd->bio = NULL;
+	rmd->buf = NULL;
 	return ERR_PTR(ret);
 }
 
@@ -1820,18 +1826,19 @@
  * Description:
  *    Unmap a request previously mapped by blk_rq_map_user().
  */
-int blk_rq_unmap_user(struct request *rq, void __user *ubuf, struct bio *bio,
-		      unsigned int ulen)
+int blk_rq_unmap_user(struct request *rq, struct rq_map_data *rmd)
 {
-	const int read = rq_data_dir(rq) == READ;
+	const int read = rmd->rw == READ;
 	int ret = 0;
 
-	if (bio)
-		bio_unmap_user(bio, read);
-	if (rq->buffer) {
-		if (read && copy_to_user(ubuf, rq->buffer, ulen))
+	if (rmd->bio)
+		bio_unmap_user(rmd->bio, read);
+	else if (rmd->buf) {
+		char *userptr = (char *) rmd->userptr;
+
+		if (read && copy_to_user(userptr, rmd->buf, rmd->len))
 			ret = -EFAULT;
-		kfree(rq->buffer);
+		kfree(rmd->buf);
 	}
 
 	blk_put_request(rq);
===== drivers/block/scsi_ioctl.c 1.42 vs edited =====
--- 1.42/drivers/block/scsi_ioctl.c	2004-04-27 15:20:34 +02:00
+++ edited/drivers/block/scsi_ioctl.c	2004-05-20 15:10:56 +02:00
@@ -110,8 +110,8 @@
 {
 	unsigned long start_time;
 	int reading, writing;
+	struct rq_map_data rmd;
 	struct request *rq;
-	struct bio *bio;
 	char sense[SCSI_SENSE_BUFFERSIZE];
 
 	if (hdr->interface_id != 'S')
@@ -128,6 +128,7 @@
 	if (hdr->dxfer_len > (q->max_sectors << 9))
 		return -EIO;
 
+	memset(&rmd, 0, sizeof(rmd));
 	reading = writing = 0;
 	if (hdr->dxfer_len) {
 		switch (hdr->dxfer_direction) {
@@ -144,8 +145,10 @@
 			break;
 		}
 
-		rq = blk_rq_map_user(q, writing ? WRITE : READ, hdr->dxferp,
-				     hdr->dxfer_len);
+		rmd.userptr = (unsigned long) hdr->dxferp;
+		rmd.len = hdr->dxfer_len;
+		rmd.rw = writing ? WRITE : READ;
+		rq = blk_rq_map_user(q, &rmd);
 
 		if (IS_ERR(rq))
 			return PTR_ERR(rq);
@@ -165,7 +168,6 @@
 	rq->sense_len = 0;
 
 	rq->flags |= REQ_BLOCK_PC;
-	bio = rq->bio;
 
 	rq->timeout = (hdr->timeout * HZ) / 1000;
 	if (!rq->timeout)
@@ -201,7 +203,7 @@
 			hdr->sb_len_wr = len;
 	}
 
-	if (blk_rq_unmap_user(rq, hdr->dxferp, bio, hdr->dxfer_len))
+	if (blk_rq_unmap_user(rq, &rmd))
 		return -EFAULT;
 
 	/* may not have succeeded, but output values written to control
===== drivers/cdrom/cdrom.c 1.52 vs edited =====
--- 1.52/drivers/cdrom/cdrom.c	2004-04-27 15:11:55 +02:00
+++ edited/drivers/cdrom/cdrom.c	2004-05-20 15:13:30 +02:00
@@ -1946,23 +1946,26 @@
 {
 	request_queue_t *q = cdi->disk->queue;
 	struct request *rq;
-	struct bio *bio;
-	unsigned int len;
 	int nr, ret = 0;
 
 	if (!q)
 		return -ENXIO;
 
 	while (nframes) {
+		struct rq_map_data rmd;
+
 		nr = nframes;
 		if (cdi->cdda_method == CDDA_BPC_SINGLE)
 			nr = 1;
 		if (nr * CD_FRAMESIZE_RAW > (q->max_sectors << 9))
 			nr = (q->max_sectors << 9) / CD_FRAMESIZE_RAW;
 
-		len = nr * CD_FRAMESIZE_RAW;
+		memset(&rmd, 0, sizeof(rmd));
+		rmd.userptr = (unsigned long) ubuf;
+		rmd.len = nr * CD_FRAMESIZE_RAW;
+		rmd.rw = READ;
 
-		rq = blk_rq_map_user(q, READ, ubuf, len);
+		rq = blk_rq_map_user(q, &rmd);
 		if (IS_ERR(rq))
 			return PTR_ERR(rq);
 
@@ -1981,7 +1984,6 @@
 		rq->cmd_len = 12;
 		rq->flags |= REQ_BLOCK_PC;
 		rq->timeout = 60 * HZ;
-		bio = rq->bio;
 
 		if (blk_execute_rq(q, cdi->disk, rq)) {
 			struct request_sense *s = rq->sense;
@@ -1989,7 +1991,7 @@
 			cdi->last_sense = s->sense_key;
 		}
 
-		if (blk_rq_unmap_user(rq, ubuf, bio, len))
+		if (blk_rq_unmap_user(rq, &rmd))
 			ret = -EFAULT;
 
 		if (ret)
===== include/linux/blkdev.h 1.145 vs edited =====
--- 1.145/include/linux/blkdev.h	2004-05-19 18:02:45 +02:00
+++ edited/include/linux/blkdev.h	2004-05-20 14:37:09 +02:00
@@ -501,6 +501,24 @@
 	unsigned block_size_bits;
 };
 
+/*
+ * passed in and out of blk_rq_map/unmap_user()
+ */
+struct rq_map_data {
+	/*
+	 * input data
+	 */
+	unsigned long userptr;
+	unsigned int len;
+	int rw;
+
+	/*
+	 * output data
+	 */
+	struct bio *bio;
+	unsigned char *buf;
+};
+
 extern int blk_register_queue(struct gendisk *disk);
 extern void blk_unregister_queue(struct gendisk *disk);
 extern void register_disk(struct gendisk *dev);
@@ -523,8 +541,8 @@
 extern void __blk_stop_queue(request_queue_t *q);
 extern void blk_run_queue(request_queue_t *);
 extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *);
-extern struct request *blk_rq_map_user(request_queue_t *, int, void __user *, unsigned int);
-extern int blk_rq_unmap_user(struct request *, void __user *, struct bio *, unsigned int);
+extern struct request *blk_rq_map_user(request_queue_t *q, struct rq_map_data *rmd);
+extern int blk_rq_unmap_user(struct request *rq, struct rq_map_data *rmd);
 extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *);
 
 static inline request_queue_t *bdev_get_queue(struct block_device *bdev)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-20 13:34                 ` Jens Axboe
@ 2004-05-30 17:36                   ` Philip Dodd
  2004-05-31  5:19                     ` Tvrtko A. Uršulin
  0 siblings, 1 reply; 15+ messages in thread
From: Philip Dodd @ 2004-05-30 17:36 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Philip Dodd, linux-kernel, Hugo Mills, Daniele Bernardini

Jens Axboe wrote:
> On Tue, May 18 2004, Philip Dodd wrote:
>>Hugo Mills wrote:
>>>  Put me down for this latter one, too. I'm using a vanilla 2.6.[56]
>>>on amd64. Controller is VIA.
>>>  It seems to be related to hard-to-read CDs (dirty/scratched/badly-
>>>made) -- I've got a couple here that I'm pretty sure I can use as test
>>>cases to trigger the problem instantly.
>>Hi,
>>OK - I don't know if any of this helps, but I guess a little more 
>>precision won't do anyone any harm.
>>Intel i820 Chipset on P3C-D mobo.
>>ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:pio
>>hda: ASUS DVD-ROM E616, ATAPI CD/DVD-ROM drive
>>hda: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
>>ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:DMA, hdd:pio
>>hdc: RICOH CD-R/RW MP7060A, ATAPI CD/DVD-ROM drive
>>hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
>>Now hda is the one that bogs out, ripping silence after the "cdrom:
>>dropping to single frame dma" error. hdc can rip for hours and hardly 
>>ever get cdparanoia errors - even on "problematic" CDs that would appear 
>>to be a declenching factor for the single frame dma switch for hda.

> Any chance you can see if this makes any difference (on 2.6.6-BK)?

Hi,

Sorry it took a while for me to get you feedback on this patch.  I have 
just applied this patch against 2.6.7-rc2 (some fuzz and some offset - I 
can get you details if you would like).  It exhibits exactly the same 
symptoms as before - ie. certain CDs will cause the "kernel: cdrom: 
dropping to single frame dma", and all ripping form that point on until 
reboot will just rip to silence (I have one test case that does it 75% 
of the way through track 4, as regular as clockwork, but several other 
do to, and some even appear not to do it all the time - physically the 
CD is in good shape and rips fine using Win32 ripping tools on my laptop).

My next guess is that this is a hardware problem, though I'd appreciate 
your feedback on whether that patch should have fixed or not.

Thanks again for all your help on this,

Phil

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: dma ripping
  2004-05-30 17:36                   ` Philip Dodd
@ 2004-05-31  5:19                     ` Tvrtko A. Uršulin
  0 siblings, 0 replies; 15+ messages in thread
From: Tvrtko A. Uršulin @ 2004-05-31  5:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Philip Dodd, Jens Axboe, Hugo Mills, Daniele Bernardini


> symptoms as before - ie. certain CDs will cause the "kernel: cdrom:
> dropping to single frame dma", and all ripping form that point on until
> reboot will just rip to silence (I have one test case that does it 75%
> of the way through track 4, as regular as clockwork, but several other

I have the same problem. Kernel is 2.6.6.

May 29 16:35:56 sol kernel: hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB 
Cache, UDMA(33)

Error:

May 29 16:13:32 sol kernel: cdrom: dropping to single frame dma

And after that I got some:

May 29 16:35:04 sol kernel: hdc: command error: error=0x54
May 29 16:35:04 sol kernel: end_request: I/O error, dev hdc, sector 0
May 29 16:35:04 sol kernel: Buffer I/O error on device hdc, logical block 0
May 29 16:35:04 sol kernel: hdc: command error: status=0x51 { DriveReady 
SeekComplete Error }

Temporary solution was:

rmmod ide-cd
modprobe ide-cd


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-05-31  5:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 15:29 dma ripping Daniele Bernardini
2004-05-15 10:14 ` Jens Axboe
2004-05-15  8:45   ` Daniele Bernardini
2004-05-15 14:58     ` Jens Axboe
2004-05-15 10:13       ` Daniele Bernardini
2004-05-15 14:03       ` Daniele Bernardini
2004-05-15 21:19         ` Jens Axboe
2004-05-16 15:26           ` Philip Dodd
2004-05-16 15:39             ` Hugo Mills
2004-05-17 22:06               ` Philip Dodd
2004-05-20  2:31                 ` Philip Dodd
2004-05-20 13:34                 ` Jens Axboe
2004-05-30 17:36                   ` Philip Dodd
2004-05-31  5:19                     ` Tvrtko A. Uršulin
2004-05-17 22:12         ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).