[Debian-eeepc-devel] Trying to extend storage on a 701 with LVM and getting USB PERSIST to work in suspend/resume cycle

Francois Lorrain francois.lorrain at gmail.com
Tue Feb 2 21:06:20 UTC 2010


Hello,

I have the original EEE PC 701 with the 4GB flash drive and I am
trying to extend the main storage with an 8G USB flash drive with LVM.
I am running Debian unstable (sid)

The install went without problem and I am trying to get the suspend to
RAM working with the kernel 2.6.32.
I tried some time ago but learned the hard way that this was not
possible until 2.6.32.

With the new USB PERSIST feature in 2.6.32, it seems it should work
but it does not - unless I missed something :-)

So I have debian sid with the latest kernel :
eee:~# uname -a
Linux eee 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686 GNU/Linux

lsusb reports :

Bus 002 Device 004: ID 0a5c:2100 Broadcom Corp. Bluetooth 2.0+eDR dongle
Bus 002 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 002 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub
(part of BCM2046 Bluetooth)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID eb1a:2761 eMPIA Technology, Inc. EeePC 701
integrated Webcam
Bus 001 Device 005: ID 1aa6:0201 eFortune Technology Corp. ===> 8GB
USB flash drive
Bus 001 Device 004: ID 0951:1606 Kingston Technology
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

(the extra USB flash drive and the bluetooth dongle are mounted
internally, connected to the free internal USB ports on the main
board)

The USB PERSIST feature is enabled for the USB flash drive :

eee:~# cat /sys/bus/usb/devices/1-6/power/persist
1
eee:~# cat /sys/bus/usb/devices/1-6/idProduct
0201
eee:~# cat /sys/bus/usb/devices/1-6/idVendor
1aa6

during boot, the USB flash drive is recognized as /dev/sdc :
Feb  2 20:38:34 eee kernel: [    4.618190] usbhid: v2.6:USB HID core driver
Feb  2 20:38:34 eee kernel: [    4.645442] usb 2-1.1: new full speed
USB device using uhci_hcd and address 4
Feb  2 20:38:34 eee kernel: [    4.783405] usb 2-1.1: New USB device
found, idVendor=0a5c, idProduct=2100
Feb  2 20:38:34 eee kernel: [    4.783414] usb 2-1.1: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Feb  2 20:38:34 eee kernel: [    4.783423] usb 2-1.1: Product: BCM2045A
Feb  2 20:38:34 eee kernel: [    4.783430] usb 2-1.1: Manufacturer:
Broadcom Corp
Feb  2 20:38:34 eee kernel: [    4.783437] usb 2-1.1: SerialNumber: 000000000000
Feb  2 20:38:34 eee kernel: [    4.783696] usb 2-1.1: configuration #1
chosen from 1 choice
Feb  2 20:38:34 eee kernel: [    8.252920] scsi 2:0:0:0: Direct-Access
    USB2.0   CardReader SD0   0100 PQ: 0
Feb  2 20:38:34 eee kernel: [    8.265518] sd 2:0:0:0: [sdb] Attached
SCSI removable disk
Feb  2 20:38:34 eee kernel: [    8.472900] scsi 3:0:0:0: Direct-Access
    USB_DISK USB_DISK         2.00 PQ: 0
Feb  2 20:38:34 eee kernel: [    8.475657] sd 3:0:0:0: [sdc] 15512064
512-byte logical blocks: (7.94 GB/7.39 Gi
Feb  2 20:38:34 eee kernel: [    8.476241] sd 3:0:0:0: [sdc] Write
Protect is off
Feb  2 20:38:34 eee kernel: [    8.478444]  sdc: sdc1
Feb  2 20:38:34 eee kernel: [    8.482064] sd 3:0:0:0: [sdc] Attached
SCSI removable disk
Feb  2 20:38:34 eee kernel: [   13.131036] device-mapper: uevent: version 1.0.3

But after a suspend /resume cycle, there is an error, and the USB
flash drive is seen as /dev/sdd - that tells me something is wrong ...

Here is the log for the suspend /resume operation :

[  309.993554] PM: Syncing filesystems ... done.
[  310.119003] Freezing user space processes ... (elapsed 0.00 seconds) done.
[  310.121165] Freezing remaining freezable tasks ... (elapsed 0.00
seconds) done.
[  310.121327] Suspending console(s) (use no_console_suspend to debug)
[  310.123344] btusb_intr_complete: hci0 urb f5569c80 failed to resubmit (1)
[  310.124328] btusb_bulk_complete: hci0 urb f5569d80 failed to resubmit (1)
[  310.125325] btusb_bulk_complete: hci0 urb f5569d00 failed to resubmit (1)
[  310.220042] sd 1:0:0:0: [sda] Stopping disk
[  310.767794] ath5k 0000:01:00.0: PCI INT A disabled
[  310.780240] ACPI handle has no context!
[  310.780252] atl2 0000:03:00.0: PCI INT A disabled
[  310.780262] ACPI handle has no context!
[  310.796246] ata_piix 0000:00:1f.2: PCI INT B disabled
[  310.812083] ehci_hcd 0000:00:1d.7: PCI INT A disabled
[  310.812097] uhci_hcd 0000:00:1d.3: PCI INT D disabled
[  310.812111] uhci_hcd 0000:00:1d.2: PCI INT C disabled
[  310.812124] uhci_hcd 0000:00:1d.1: PCI INT B disabled
[  310.812136] uhci_hcd 0000:00:1d.0: PCI INT A disabled
[  310.812170] HDA Intel 0000:00:1b.0: PCI INT A disabled
[  310.857984] i915 0000:00:02.0: PCI INT A disabled
[  310.888435] ACPI: Preparing to enter system sleep state S3
[  310.890085] Disabling non-boot CPUs ...

Sleeping

[  310.890123] Back to C!
[  310.890123] CPU0: Thermal monitoring enabled (TM1)
[  310.890123] Force enabled HPET at resume
[  310.890123] ACPI: Waking up from system sleep state S3
[  310.929513] HDA Intel 0000:00:1b.0: restoring config space at
offset 0x1 (was 0x100006, writing 0x100002)
[  310.929563] pcieport 0000:00:1c.0: restoring config space at offset
0x9 (was 0x1fff1, writing 0x80318021)
[  310.929576] pcieport 0000:00:1c.0: restoring config space at offset
0x8 (was 0xfff0, writing 0x80108000)
[  310.929588] pcieport 0000:00:1c.0: restoring config space at offset
0x7 (was 0xf0, writing 0x1010)
[  310.929607] pcieport 0000:00:1c.0: restoring config space at offset
0x1 (was 0x100104, writing 0x100507)
[  310.929672] pcieport 0000:00:1c.1: restoring config space at offset
0x9 (was 0x1fff1, writing 0x80518041)
[  310.929685] pcieport 0000:00:1c.1: restoring config space at offset
0x7 (was 0xf0, writing 0x2020)
[  310.929704] pcieport 0000:00:1c.1: restoring config space at offset
0x1 (was 0x100106, writing 0x100507)
[  310.929770] pcieport 0000:00:1c.2: restoring config space at offset
0x7 (was 0xf0, writing 0x3030)
[  310.929789] pcieport 0000:00:1c.2: restoring config space at offset
0x1 (was 0x100106, writing 0x100507)
[  310.929856] uhci_hcd 0000:00:1d.0: restoring config space at offset
0x1 (was 0x2800005, writing 0x2800001)
[  310.929897] uhci_hcd 0000:00:1d.1: restoring config space at offset
0x1 (was 0x2800005, writing 0x2800001)
[  310.929936] uhci_hcd 0000:00:1d.2: restoring config space at offset
0x1 (was 0x2800005, writing 0x2800001)
[  310.929976] uhci_hcd 0000:00:1d.3: restoring config space at offset
0x1 (was 0x2800005, writing 0x2800001)
[  310.930027] ehci_hcd 0000:00:1d.7: restoring config space at offset
0x1 (was 0x2900006, writing 0x2900002)
[  310.930058] pci 0000:00:1e.0: restoring config space at offset 0xf
(was 0x60000, writing 0x600ff)
[  310.930301] ath5k 0000:01:00.0: restoring config space at offset
0xf (was 0x100, writing 0x10a)
[  310.930334] ath5k 0000:01:00.0: restoring config space at offset
0x4 (was 0x4, writing 0xfbef0004)
[  310.930346] ath5k 0000:01:00.0: restoring config space at offset
0x3 (was 0x0, writing 0x4)
[  310.930361] ath5k 0000:01:00.0: restoring config space at offset
0x1 (was 0x100000, writing 0x100007)
[  311.210229] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  311.210241] i915 0000:00:02.0: setting latency timer to 64
[  311.305151] render error detected, EIR: 0x00000010
[  311.305158] page table error
[  311.305162]   PGTBL_ER: 0x00000010
[  311.305171] [drm:i915_handle_error] *ERROR* EIR stuck: 0x00000010, masking
[  311.305187] render error detected, EIR: 0x00000010
[  311.305191] page table error
[  311.305195]   PGTBL_ER: 0x00000010
[  311.311508] [drm] LVDS-8: set mode 800x480 1c
[  311.331712] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level,
low) -> IRQ 16
[  311.331725] HDA Intel 0000:00:1b.0: setting latency timer to 64
[  311.331771] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[  311.331783] uhci_hcd 0000:00:1d.0: setting latency timer to 64
[  311.331813] usb usb2: root hub lost power or was reset
[  311.331855] uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[  311.331867] uhci_hcd 0000:00:1d.1: setting latency timer to 64
[  311.331894] usb usb3: root hub lost power or was reset
[  311.331919] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[  311.331931] uhci_hcd 0000:00:1d.2: setting latency timer to 64
[  311.331958] usb usb4: root hub lost power or was reset
[  311.331983] uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
[  311.331994] uhci_hcd 0000:00:1d.3: setting latency timer to 64
[  311.332040] usb usb5: root hub lost power or was reset
[  311.332076] ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[  311.332089] ehci_hcd 0000:00:1d.7: setting latency timer to 64
[  311.332122] pci 0000:00:1e.0: setting latency timer to 64
[  311.332142] ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[  311.332152] ata_piix 0000:00:1f.2: setting latency timer to 64
[  311.383357] atl2 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[  311.383369] atl2 0000:03:00.0: setting latency timer to 64
[  311.388063] ath5k 0000:01:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[  311.504397] ata2.00: ACPI cmd ef/03:44:00:00:00:a0 (SET FEATURES)
filtered out
[  311.504409] ata2.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES)
filtered out
[  311.520375] ata2.00: configured for UDMA/66
[  311.892064] sd 1:0:0:0: [sda] Starting disk
[  312.004048] usb 1-5: reset high speed USB device using ehci_hcd and address 4
[  312.248039] usb 1-8: reset high speed USB device using ehci_hcd and address 6
[  313.028043] usb 2-1: reset full speed USB device using uhci_hcd and address 2
[  313.656036] usb 2-2: reset low speed USB device using uhci_hcd and address 3
[  313.946055] usb 2-2: device firmware changed
[  314.022059] usb 2-1.1: reset full speed USB device using uhci_hcd
and address 4
[  314.137059] btusb 2-1.1:1.0: no reset_resume for driver btusb?
[  314.137067] btusb 2-1.1:1.1: no reset_resume for driver btusb?
[  314.389067] Restarting tasks ...
[  314.389675] usb 1-6: USB disconnect, address 5
[  314.451043] done.
[  314.672081] usb 1-6: new high speed USB device using ehci_hcd and address 7
[  314.805088] usb 1-6: New USB device found, idVendor=1aa6, idProduct=0201
[  314.805099] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  314.805108] usb 1-6: Product: USB_DISK
[  314.805115] usb 1-6: Manufacturer: USB_DISK
[  314.805122] usb 1-6: SerialNumber: 000000020000727
[  314.805456] usb 1-6: configuration #1 chosen from 1 choice
[  314.816186] scsi4 : SCSI emulation for USB Mass Storage devices
[  314.820324] usb 2-2: USB disconnect, address 3
[  314.826046] usb-storage: device found at 7
[  314.826054] usb-storage: waiting for device to settle before scanning
[  314.854799] devkit-disks-da[1964]: segfault at c ip 080660da sp
bff28570 error 4 in devkit-disks-daemon[8048000+28000]
[  314.936110] usb 2-2: new low speed USB device using uhci_hcd and address 7
[  315.113276] usb 2-2: New USB device found, idVendor=046d, idProduct=c03e
[  315.113288] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  315.113297] usb 2-2: Product: USB-PS/2 Optical Mouse
[  315.113305] usb 2-2: Manufacturer: Logitech
[  315.113607] usb 2-2: configuration #1 chosen from 1 choice
[  315.131716] input: Logitech USB-PS/2 Optical Mouse as
/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input13
[  315.132654] generic-usb 0003:046D:C03E.0004: input,hidraw0: USB HID
v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on
usb-0000:00:1d.0-2/input0
[  315.177374] [drm] DAC-6: set mode 640x480 0
[  315.653244] [drm] DAC-6: set mode 640x480 0
[  315.875151] [drm] TV-12: set mode NTSC 480i 0
[  316.160504] atl2 0000:03:00.0: irq 27 for MSI/MSI-X
[  316.161204] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  316.312810] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  316.446016] [drm] TV-12: set mode NTSC 480i 0
[  319.824256] usb-storage: device scan complete
[  319.824870] scsi 4:0:0:0: Direct-Access     USB_DISK USB_DISK
  2.00 PQ: 0 ANSI: 0 CCS
[  319.833708] sd 4:0:0:0: [sdd] 15512064 512-byte logical blocks:
(7.94 GB/7.39 GiB)
[  319.834324] sd 4:0:0:0: [sdd] Write Protect is off
[  319.834337] sd 4:0:0:0: [sdd] Mode Sense: 03 00 00 00
[  319.834344] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  319.841069] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  319.841087]  sdd: sdd1
[  319.850455] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  319.850471] sd 4:0:0:0: [sdd] Attached SCSI removable disk
[  319.949226] Buffer I/O error on device dm-0, logical block 1030321
[  319.949239] lost page write due to I/O error on dm-0
[  319.949272] Buffer I/O error on device dm-0, logical block 1030503
[  319.949279] lost page write due to I/O error on dm-0
[  319.949289] Buffer I/O error on device dm-0, logical block 1030504
[  319.949296] lost page write due to I/O error on dm-0
[  322.471916] JBD: Detected IO errors while flushing file data on dm-0
[  322.504198] Buffer I/O error on device dm-0, logical block 1015808
[  322.504209] lost page write due to I/O error on dm-0
[  322.504269] Buffer I/O error on device dm-0, logical block 1015866
[  322.504277] lost page write due to I/O error on dm-0


and then the root filesystem is remounted as readonly

[  379.691551] EXT3-fs error (device dm-0): read_block_bitmap: Cannot
read block bitmap - block_group = 31, block_bitmap = 1015808
[  379.699760] Aborting journal on device dm-0.
[  379.704185] ext3_abort called.
[  379.708361] EXT3-fs error (device dm-0): ext3_journal_start_sb:
Detected aborted journal
[  379.712857] Remounting filesystem read-only
[  379.745664] Remounting filesystem read-only
[  379.751961] EXT3-fs error (device dm-0) in
ext3_reserve_inode_write: Journal has aborted
[  379.756547] EXT3-fs error (device dm-0) in start_transaction:
Journal has aborted

and the machine restart properly but is not really usable with the
root disk readonly :-)

the internal flash disk is setup with a small EFI partition, a
separate /boot and the LVM volume uses the rest of the drive and
extend onto the USB FLASH drive.

Other than that, this setup works fine but I'd like to get the suspend
to RAM working.

Am I missing something ?

Regards

Francois



More information about the Debian-eeepc-devel mailing list