Bug#587418: linux-image-2.6.32-5-686: using old IDE driver fails, probably due to missing ide_pci_generic module

2010-07-02 Thread Ben Hutchings
On Fri, 2010-07-02 at 03:28 +0100, Russell Marks wrote:
 Ben Hutchings b...@decadent.org.uk wrote:
 
  On Tue, 2010-06-29 at 03:35 +0100, Russell Marks wrote:
   hdparm still works with libata-based drivers, so you should not need to
   build a custom kernel.
  
  As you might imagine, hdparm was the first thing I tried. It seems not
  all of hdparm's features work with libata-based drivers, in particular I
  can't disable/enable DMA with it:
  
  r...@cartman:2005:/home/russudo hdparm -d 0 /dev/sda
  
  /dev/sda:
   setting using_dma to 0 (off)
   HDIO_SET_DMA failed: Inappropriate ioctl for device
   HDIO_GET_DMA failed: Inappropriate ioctl for device
  r...@cartman:2006:/home/russudo hdparm -d 0 /dev/hda
  /dev/hda: No such file or directory
  r...@cartman:2007:/home/rus
 
  Sorry, I thought most hdparm features would still work.
 
  You can still disable DMA by setting a module option for libata.  Put
 
 Or by using a kernel command-line option (e.g. libata.dma=0 which I'm
 using for now). But with hdparm I could turn it on and off at run-time,
 which is useful on one particular machine I use, and which I don't
 believe is possible now.
 
 I think if changes to the kernel package are partly breaking another
 package, which I've demonstrated is happening here, that seems like it
 should count as a bug in Debian. Maybe hdparm or even sdparm is more to
 blame, I don't know, but I think this has to be a regression somewhere
 doesn't it?

OK, sure, it's a regression.  It is unlikely to be fixed, though, as
there is very little reason to control this at run-time.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.


signature.asc
Description: This is a digitally signed message part


Bug#587418: linux-image-2.6.32-5-686: using old IDE driver fails, probably due to missing ide_pci_generic module

2010-06-28 Thread Russell Marks
Package: linux-2.6
Version: 2.6.32-15
Severity: important

The 2.6.32-5-686 kernel uses libata rather than the old IDE driver,
which is fine I suppose, but I wanted to use the old IDE driver so I
could still use hdparm for e.g. enabling/disabling DMA post-boot (I
could go into why, but you probably don't want to know :-)). I
eventually figured out how to do this, but it kept waiting for the root
all the time. A bit of poking around later, I realised
ide-pci-generic.ko was missing from the initrd, so I checked my real
/lib/modules and sure enough, it was missing from the 2.6.32-5-686 tree.

I could be wrong, but I think this means the old IDE driver is largely
impossible to use without building a custom kernel. Since *most*
old-IDE-driver-related kernel modules are still being built, I presume
this was unintentional, so I'm reporting it as a bug.

I can only guess at how general this problem is, so I'm reporting it for
the particular package I've personally had the trouble with.

-- Package-specific info:
** Version:
Linux version 2.6.32-5-686 (Debian 2.6.32-15) (b...@decadent.org.uk) (gcc 
version 4.3.5 (Debian 4.3.5-1) ) #1 SMP Tue Jun 1 04:59:47 UTC 2010

** Command line:
BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686 
root=UUID=c5e95b09-66b2-4eb3-94d7-fe188b4eda1b ro nohz=off clocksource=notsc 
libata.dma=0 quiet

** Not tainted

** Kernel log:
[3.063728] uhci_hcd :00:07.3: UHCI Host Controller
[3.063811] uhci_hcd :00:07.3: new USB bus registered, assigned bus 
number 2
[3.063885] uhci_hcd :00:07.3: irq 11, io base 0xd800
[3.064284] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[3.064295] usb usb2: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[3.064304] usb usb2: Product: UHCI Host Controller
[3.064311] usb usb2: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[3.064318] usb usb2: SerialNumber: :00:07.3
[3.067070] usb usb2: configuration #1 chosen from 1 choice
[3.067921] hub 2-0:1.0: USB hub found
[3.068190] hub 2-0:1.0: 2 ports detected
[3.085946] 8139too Fast Ethernet driver 0.9.28
[3.087325] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 12
[3.087338] PCI: setting IRQ 12 as level-triggered
[3.087355] 8139too :00:0f.0: PCI INT A - Link[LNKC] - GSI 12 (level, 
low) - IRQ 12
[3.090692] eth0: RealTek RTL8139 at 0xdc00, 00:30:bd:72:4a:3a, IRQ 12
[3.256550] ata1.00: ATA-6: ST380011A, 8.01, max UDMA/100
[3.256565] ata1.00: 156301488 sectors, multi 16: LBA48 
[3.272541] ata1.00: configured for PIO4
[3.273110] scsi 0:0:0:0: Direct-Access ATA  ST380011A8.01 
PQ: 0 ANSI: 5
[3.372097] usb 1-1: new full speed USB device using uhci_hcd and address 2
[3.436443] ata2.01: ATAPI: _NEC DVD_RW ND-2510A, 2.18, max UDMA/33
[3.444387] ata2.01: configured for PIO4
[3.446631] scsi 1:0:1:0: CD-ROM_NEC DVD_RW ND-2510A  2.18 
PQ: 0 ANSI: 5
[3.549170] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 
GB/74.5 GiB)
[3.549453] sd 0:0:0:0: [sda] Write Protect is off
[3.549466] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[3.549640] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[3.550564]  sda: sda1 sda2 sda3 
[3.574244] usb 1-1: New USB device found, idVendor=0ace, idProduct=1215
[3.574260] usb 1-1: New USB device strings: Mfr=16, Product=32, 
SerialNumber=0
[3.574270] usb 1-1: Product: USB2.0 WLAN
[3.574276] usb 1-1: Manufacturer: ZyDAS
[3.574739] usb 1-1: configuration #1 chosen from 1 choice
[3.578216] sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[3.578233] Uniform CD-ROM driver Revision: 3.20
[3.580210]  sda5 sda6
[3.590031] sr 1:0:1:0: Attached scsi CD-ROM sr0
[3.601410]  sda7  sda4
[3.612601] sd 0:0:0:0: [sda] Attached SCSI disk
[3.727737] sd 0:0:0:0: Attached scsi generic sg0 type 0
[3.731225] sr 1:0:1:0: Attached scsi generic sg1 type 5
[4.841688] PM: Starting manual resume from disk
[4.841715] PM: Resume from partition 8:1
[4.841720] PM: Checking hibernation image.
[4.855577] PM: Error -22 checking image file
[4.855588] PM: Resume from disk failed.
[8.614002] udev: starting version 157
[9.696246] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   10.992409] Marking TSC unstable due to TSC halts in idle
[   11.009206] processor LNXCPU:00: registered as cooling_device0
[   11.011056] Switching to clocksource acpi_pm
[   11.039358] input: Power Button as 
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[   11.039431] ACPI: Power Button [PWRB]
[   11.040619] input: Power Button as 
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[   11.040666] ACPI: Power Button [PWRF]
[   11.204012] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   11.378209] parport_pc: VIA 686A/8231 detected
[   11.378232] parport_pc: probing current configuration
[   11.378261] parport_pc: Current parallel