Bug#395031: Kernel complains about DMA

2006-10-25 Thread Panagiotis Issaris
Hi,

On Wed, Oct 25, 2006 at 06:25:09AM +0200, Frederik Schueler wrote:
 Hello,
 
 On Tue, Oct 24, 2006 at 04:30:50PM +0200, Panagiotis Issaris wrote:
  Oct 24 11:00:25 localhost kernel: CMD643: IDE controller at PCI slot 
  :00:08.0
  Oct 24 11:00:25 localhost kernel: CMD643: chipset revision 0
  Oct 24 11:00:25 localhost kernel: CMD643: not 100%% native mode: will probe 
  irqs later
  Oct 24 11:00:25 localhost kernel: CMD643: simplex device: DMA forced
 ^^
  Oct 24 11:00:25 localhost kernel: ide0: BM-DMA at 0xfe00-0xfe07, BIOS 
  settings: hda:pio, hdb:pio
  Oct 24 11:00:25 localhost kernel: ide1: BM-DMA at 0xfe08-0xfe0f, BIOS 
  settings: hdc:pio, hdd:pio
 
 I doubt this box will do DMA, ever. AFAIK the chipset just does not
 support it.

Apparently drivers/ide/setup-pci.c forces it to use DMA as there's a switch in
which certain chipsets are forced to use DMA, while the default handling is to
disable it.

Thanks for your useful reply!

With friendly regards,
Takis

-- 
vCard: http://www.issaris.be/pi.vcf
Public key: http://www.issaris.be/pi.key

diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 0719b64..5a7b6f6 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -226,7 +226,6 @@ #endif /* CONFIG_BLK_DEV_IDEDMA_FORCED *
case PCI_DEVICE_ID_AL_M5219:
case PCI_DEVICE_ID_AL_M5229:
case PCI_DEVICE_ID_AMD_VIPER_7409:
-   case PCI_DEVICE_ID_CMD_643:
case PCI_DEVICE_ID_SERVERWORKS_CSB5IDE:
case PCI_DEVICE_ID_REVOLUTION:
simplex_stat = hwif-INB(dma_base + 2);




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-25 Thread Panagiotis Issaris
Hi,

As requested, the bug-id in the Linux kernel Bugzilla database is 7413 and thus
the URL is:
http://bugzilla.kernel.org/show_bug.cgi?id=7413

With friendly regards,
Takis
-- 
vCard: http://www.issaris.be/pi.vcf
Public key: http://www.issaris.be/pi.key


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-24 Thread Panagiotis Issaris
Package: kernel-image-2.6.8-3-386
Version: 2.6.8-16sarge5

When booting the abovementioned kernel on a friends laptop, it shows errors when
trying to initialize the IDE controller. When showing the errors, it waits for
quite some time, increasing the boottime with about a minute (raw guestimate).

The laptop is a Dell Lattitude xpi cd p150st and it is running the current
Debian stable.

Oct 24 11:00:24 localhost kernel: Linux version 2.6.8-3-386 ([EMAIL PROTECTED]) 
(gcc
version 3.3.5 (Debian 1:3.3.5-13)) #1 Sat Jul 15 09:26:40 UTC 2006
Oct 24 11:00:24 localhost kernel: BIOS-provided physical RAM map:
Oct 24 11:00:24 localhost kernel:  BIOS-e820:  - 
000a (usable)
Oct 24 11:00:24 localhost kernel:  BIOS-e820: 0010 - 
0300 (usable)
Oct 24 11:00:24 localhost kernel: 48MB LOWMEM available.
Oct 24 11:00:24 localhost kernel: On node 0 totalpages: 12288
Oct 24 11:00:24 localhost kernel:   DMA zone: 4096 pages, LIFO batch:1
Oct 24 11:00:24 localhost kernel:   Normal zone: 8192 pages, LIFO batch:2
Oct 24 11:00:24 localhost kernel:   HighMem zone: 0 pages, LIFO batch:1
Oct 24 11:00:24 localhost kernel: DMI not present.
Oct 24 11:00:24 localhost kernel: ACPI: Unable to locate RSDP
Oct 24 11:00:24 localhost kernel: Built 1 zonelists
Oct 24 11:00:24 localhost kernel: Kernel command line: root=/dev/hda1 ro
Oct 24 11:00:24 localhost kernel: No local APIC present or hardware disabled
Oct 24 11:00:24 localhost kernel: Initializing CPU#0
Oct 24 11:00:24 localhost kernel: PID hash table entries: 256 (order 8: 2048 
bytes)
Oct 24 11:00:24 localhost kernel: Detected 150.429 MHz processor.
Oct 24 11:00:24 localhost kernel: Using tsc for high-res timesource
...
Oct 24 11:00:25 localhost kernel: SCSI subsystem initialized
Oct 24 11:00:25 localhost kernel: libata version 1.02 loaded.
Oct 24 11:00:25 localhost kernel: Uniform Multi-Platform E-IDE driver Revision: 
7.00alpha2
Oct 24 11:00:25 localhost kernel: ide: Assuming 33MHz system bus speed for PIO 
modes; override with idebus=xx
Oct 24 11:00:25 localhost kernel: CMD643: IDE controller at PCI slot 
:00:08.0
Oct 24 11:00:25 localhost kernel: CMD643: chipset revision 0
Oct 24 11:00:25 localhost kernel: CMD643: not 100%% native mode: will probe 
irqs later
Oct 24 11:00:25 localhost kernel: CMD643: simplex device: DMA forced
Oct 24 11:00:25 localhost kernel: ide0: BM-DMA at 0xfe00-0xfe07, BIOS 
settings: hda:pio, hdb:pio
Oct 24 11:00:25 localhost kernel: ide1: BM-DMA at 0xfe08-0xfe0f, BIOS 
settings: hdc:pio, hdd:pio
Oct 24 11:00:25 localhost kernel: hda: IBM-DCRA-22160, ATA DISK drive
Oct 24 11:00:25 localhost kernel: Using anticipatory io scheduler
Oct 24 11:00:25 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Oct 24 11:00:25 localhost kernel: hda: max request size: 128KiB
Oct 24 11:00:25 localhost kernel: hda: 4233600 sectors (2167 MB) w/96KiB Cache, 
CHS=4200/16/63, DMA
Oct 24 11:00:25 localhost kernel:  /dev/ide/host0/bus0/target0/lun0:4hda: 
dma_timer_expiry: dma status == 0x24
Oct 24 11:00:25 localhost kernel: hda: DMA timeout error
Oct 24 11:00:25 localhost kernel: hda: dma timeout error: status=0x50 { 
DriveReady SeekComplete }
Oct 24 11:00:25 localhost kernel:
Oct 24 11:00:25 localhost kernel:  p1 p2 4hda: dma_timer_expiry: dma status 
== 0x24
Oct 24 11:00:25 localhost kernel: hda: DMA timeout error
Oct 24 11:00:25 localhost kernel: hda: dma timeout error: status=0x50 { 
DriveReady SeekComplete }
Oct 24 11:00:25 localhost kernel:
Oct 24 11:00:25 localhost kernel:  p5 
Oct 24 11:00:25 localhost kernel: hdc: CD-ROM CDR-N16D, ATAPI CD/DVD-ROM drive
Oct 24 11:00:25 localhost kernel: ide1 at 0x170-0x177,0x376 on irq 15
Oct 24 11:00:25 localhost kernel: ide2: I/O resource 0x3EE-0x3EE not free.
Oct 24 11:00:25 localhost kernel: ide2: ports already in use, skipping probe
Oct 24 11:00:25 localhost kernel: hda: dma_timer_expiry: dma status == 0x24
Oct 24 11:00:25 localhost kernel: hda: DMA timeout error
Oct 24 11:00:25 localhost kernel: hda: dma timeout error: status=0x50 { 
DriveReady SeekComplete }
Oct 24 11:00:25 localhost kernel:
Oct 24 11:00:25 localhost kernel: hda: dma_timer_expiry: dma status == 0x24
Oct 24 11:00:25 localhost kernel: hda: DMA timeout error
Oct 24 11:00:25 localhost kernel: hda: dma timeout error: status=0x50 { 
DriveReady SeekComplete }
Oct 24 11:00:25 localhost kernel:
Oct 24 11:00:25 localhost kernel: EXT3-fs: INFO: recovery required on readonly 
filesystem.
Oct 24 11:00:25 localhost kernel: EXT3-fs: write access will be enabled during 
recovery.
Oct 24 11:00:25 localhost kernel: kjournald starting.  Commit interval 5 seconds
...

For now, I've compiled a 2.6.19-rc3 kernel without DMA support which boots fine
(and fast). I'm about to test a 2.6.19-rc3 kernel _with_ DMA to see if the bug
has been fixed sometime after the 2.6.8 kernels.

With friendly regards,
Takis

-- 
vCard: http://www.issaris.be/pi.vcf
Public key: http://www.issaris.be/pi.key


-- 
To UNSUBSCRIBE, email to [EMAIL 

Bug#395031: Kernel complains about DMA

2006-10-24 Thread Panagiotis Issaris
Hi,

I've also reported this bug to the main Linux kernel mailinglist. Links to the
report listed below:
http://marc.theaimsgroup.com/?t=11617026821r=1w=2
http://thread.gmane.org/gmane.linux.kernel/460176/focus=460176

-- 
vCard: http://www.issaris.be/pi.vcf
Public key: http://www.issaris.be/pi.key


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-24 Thread Panagiotis Issaris
I've tested this on Linux 2.6.19-rc3, and the problem remains.

With friendly regards,
Takis
-- 
vCard: http://www.issaris.be/pi.vcf
Public key: http://www.issaris.be/pi.key


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-24 Thread maximilian attems
On Tue, Oct 24, 2006 at 05:49:59PM +0200, Panagiotis Issaris wrote:
 I've tested this on Linux 2.6.19-rc3, and the problem remains.
 
 With friendly regards,
 Takis
 

thanks for your tests, please file the bug upstream in
bugzilla.kernel.org with dmesg lspci -v attachment.

please let us know the upstream bug nr.

best regards

-- 
maks

ps sorry for closing the bug so quickly but 2.6.8 is really outdated..


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-24 Thread dann frazier
 For now, I've compiled a 2.6.19-rc3 kernel without DMA support which boots 
 fine
 (and fast). I'm about to test a 2.6.19-rc3 kernel _with_ DMA to see if the bug
 has been fixed sometime after the 2.6.8 kernels.

Please try the 2.6.18 from backports.org - that is what we plan to
ship in etch.

-- 
dann frazier



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#395031: Kernel complains about DMA

2006-10-24 Thread Frederik Schueler
Hello,

On Tue, Oct 24, 2006 at 04:30:50PM +0200, Panagiotis Issaris wrote:
 Oct 24 11:00:25 localhost kernel: CMD643: IDE controller at PCI slot 
 :00:08.0
 Oct 24 11:00:25 localhost kernel: CMD643: chipset revision 0
 Oct 24 11:00:25 localhost kernel: CMD643: not 100%% native mode: will probe 
 irqs later
 Oct 24 11:00:25 localhost kernel: CMD643: simplex device: DMA forced
^^
 Oct 24 11:00:25 localhost kernel: ide0: BM-DMA at 0xfe00-0xfe07, BIOS 
 settings: hda:pio, hdb:pio
 Oct 24 11:00:25 localhost kernel: ide1: BM-DMA at 0xfe08-0xfe0f, BIOS 
 settings: hdc:pio, hdd:pio

I doubt this box will do DMA, ever. AFAIK the chipset just does not
support it.

Best regards
Frederik Schueler

-- 
ENOSIG


signature.asc
Description: Digital signature