SATA / AHCI: Do not play with the link PM during suspend to RAM
Hi,
I have the same symptom as Stephan and came across this thread while googling for more info.
Hardware: Macbook Pro 5,4 (Firmware version 1.7)
OS: Fedora 13 x64
Kernel: 2.6.33.8-149.fc13.x86_64 (stock fedora kernel)
Modifications: Video is on Nvidia proprietary driver and Root and swap are encrypted with luks. Kernel boot parameters are:
kernel /vmlinuz-2.6.33.8-149.fc13.x86_64 ro root=/dev/mapper/luks-f01b2a77-921b-45c1-8f28-6095ab3a56f1 rd_LUKS_UUID=luks-f01b2a77-921b-45c1-8f28-6095ab3a56f1 rd_LUKS_UUID=luks-91e5037b-267c-4572-
9c99-baaa5ca41600 rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb rdblacklist=nouveau vga=792 resume=UUID=91e5037b-267c-4572-9c99-baaa5ca41600
The system seems to go to suspend alright but on resume, the hdd does not seem to wake-up. After resume, in X, the login screen background shows up but the login prompt box does not. If I am logged in before suspend then after resume, every command I run including reboot/shutdown etc returns Input/Output error. After resume, if I try to ssh in, I get the ssh prompt but authentication does not succeed and I get password failures.
Bit more HW/SW info:
1. From lspci -vv
00:0b.0 IDE interface: nVidia Corporation MCP79 SATA Controller (rev b1) (prog-if 85 [Master SecO PriO])
Subsystem: nVidia Corporation Device cb79
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-
Latency: 0 (750ns min, 250ns max) Interrupt: pin A routed to IRQ 27 Region 0: I/O ports at 21d8 [size=8] Region 1: I/O ports at 21ec [size=4] Region 2: I/O ports at 21d0 [size=8] Region 3: I/O ports at 21e8 [size=4] Region 4: I/O ports at 21c0 [size=16] Region 5: Memory at d3584000 (32-bit, non-prefetchable) [size=8K] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [8c] SATA HBA v1.0 InCfgSpace
Capabilities: [b0] MSI: Enable+ Count=1/8 Maskable- 64bit+
Address: 00000000fee0200c Data: 4181
Kernel driver in use: ahci
Kernel modules: ata_generic, pata_acpi
2. HDD Info from smartctl
# smartctl -a /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-redhat-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model: FUJITSU MJA2250BH FFS G1 Serial Number: K94DTA22N7C1 Firmware Version: 00810020 User Capacity: 250,059,350,016 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 3f Local Time is: Sat Aug 28 13:09:06 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled
3. ATA related messages from bootup (dmesg | grep ATA)
ata1: SATA max UDMA/133 irq_stat 0x00400000, PHY RDY changed irq 27
ata2: SATA max UDMA/133 irq_stat 0x00400000, PHY RDY changed irq 27
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-8: FUJITSU MJA2250BH FFS G1, 00810020, max UDMA/100 ata2.00: ATAPI: HL-DT-ST DVDRW GS23N, SB03, max UDMA/133
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0
ANSI: 5
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
4. # cat /sys/class/scsi_host/host0/link_power_management_policy max_performance
5. Some odd errors at boot-up related to 'ata' (captured by directing *.* to a log file in rsyslog)
Aug 28 11:49:39 myfedorahat kernel: ACPI: SSDT 00000000bfee4000 000A5 (v01 SataRe SataPri 00001000 INTL 20061109) Aug 28 11:49:39 myfedorahat kernel: ACPI: SSDT 00000000bfee3000 0009F (v01 SataRe SataSec 00001000 INTL 20061109) Aug 28 11:49:39 myfedorahat kernel: #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000] Aug 28 11:49:39 myfedorahat kernel: Kernel command line: ro
root=/dev/mapper/luks-f01b2a77-921b-45c1-8f28-6095ab3a56f1 rd_LUKS_UUID=luks-f01b2a77-921b-45c1-8f28-6095ab3a56f1 rd_LUKS_UUID=luks-91e5037b-26
7c-4572-9c99-baaa5ca41600 rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb rdblacklist=nouveau vga=792 resume=UUID=91e5037b-267c-4572-9c99-baaa5ca41600
Aug 28 11:49:39 myfedorahat kernel: Memory: 3758324k/5242880k available
(4289k kernel code, 1336536k absent, 148020k reserved, 7539k data, 756k
init)
Aug 28 11:49:39 myfedorahat kernel: ACPI: EC: GPE = 0x3f, I/O:
command/status = 0x66, data = 0x62
Aug 28 11:49:39 myfedorahat kernel: libata version 3.00 loaded.
Aug 28 11:49:39 myfedorahat kernel: ata1: SATA max UDMA/133 irq_stat
0x00400000, PHY RDY changed irq 27
Aug 28 11:49:39 myfedorahat kernel: ata2: SATA max UDMA/133 irq_stat
0x00400000, PHY RDY changed irq 27
Aug 28 11:49:39 myfedorahat kernel: ata3: DUMMY
Aug 28 11:49:39 myfedorahat kernel: ata4: DUMMY
Aug 28 11:49:39 myfedorahat kernel: ata5: DUMMY
Aug 28 11:49:39 myfedorahat kernel: ata6: DUMMY
Aug 28 11:49:39 myfedorahat kernel: ata1: SATA link up 1.5 Gbps (SStatus
113 SControl 300)
Aug 28 11:49:39 myfedorahat kernel: ata2: SATA link up 1.5 Gbps (SStatus
113 SControl 300)
Aug 28 11:49:39 myfedorahat kernel: ata1.00: ATA-8: FUJITSU MJA2250BH
FFS G1, 00810020, max UDMA/100
Aug 28 11:49:39 myfedorahat kernel: ata1.00: 488397168 sectors, multi
16: LBA48 NCQ (depth 31/32)
Aug 28 11:49:39 myfedorahat kernel: ata1.00: configured for UDMA/100
Aug 28 11:49:39 myfedorahat kernel: ata1: exception Emask 0x10 SAct 0x0
SErr 0x5850000 action 0xe frozen
Aug 28 11:49:39 myfedorahat kernel: ata1: irq_stat 0x00000040,
connection status changed
Aug 28 11:49:39 myfedorahat kernel: ata1: SError: { PHYRdyChg CommWake
LinkSeq TrStaTrns DevExch }
Aug 28 11:49:39 myfedorahat kernel: ata2.00: ATAPI: HL-DT-ST DVDRW
GS23N, SB03, max UDMA/133
Aug 28 11:49:39 myfedorahat kernel: ata1: hard resetting link
Aug 28 11:49:39 myfedorahat kernel: ata2.00: configured for UDMA/133
Aug 28 11:49:39 myfedorahat kernel: ata2: exception Emask 0x10 SAct 0x0
SErr 0x5950000 action 0xe frozen
Aug 28 11:49:39 myfedorahat kernel: ata2: irq_stat 0x00400040,
connection status changed
Aug 28 11:49:39 myfedorahat kernel: ata2: SError: { PHYRdyChg CommWake
Dispar LinkSeq TrStaTrns DevExch }
Aug 28 11:49:39 myfedorahat kernel: ata2: hard resetting link
Aug 28 11:49:39 myfedorahat kernel: ata1: SATA link up 1.5 Gbps (SStatus
113 SControl 300)
Aug 28 11:49:39 myfedorahat kernel: ata1.00: configured for UDMA/100
Aug 28 11:49:39 myfedorahat kernel: ata1: EH complete
Aug 28 11:49:39 myfedorahat kernel: ata2: SATA link up 1.5 Gbps (SStatus
113 SControl 300)
Aug 28 11:49:39 myfedorahat kernel: ata2.00: configured for UDMA/133
Aug 28 11:49:39 myfedorahat kernel: ata2: EH complete
Aug 28 11:49:39 myfedorahat kernel: Write protecting the kernel
read-only data: 10240k
Aug 28 11:49:39 myfedorahat kernel: EXT4-fs (dm-0): mounted filesystem
with ordered data mode
Aug 28 11:49:39 myfedorahat kernel: EXT4-fs (sda1): mounted filesystemwith ordered data mode
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful. I tried booting with "pci=nomsi" but that makes the box hang at boot-up. Tried disabling acpi and switched to APM but that seems risky because after suspend, APM does not seem to have control over CPU and fans. With APM enabled, I did a suspend and put the macbook in my bag. Four hours later when I pulled it out of the bag, the fan was spinning at highest RPM and the macbook was running really hot. With ACPI, at least, all the damage is only to filesystem when I have to force reboot on resume :)
Thanks,
- Siddhartha
Quoted 3 lines · Siddhartha Jain
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful.
Setting up netconsole (see Documentation/networking/netconsole.txt in the kernel source tree) would be better.
Thanks.
Signature · 1 line
tejun
Hi Tejun,
Will get more debugging info by setting up netconsole. Meanwhile, syslog did glean some important info, I think. Looks like, for some reason, after resume, device mapping for the hdd changes from sda to sdc. Please see logs below. For ease of troubleshooting, I re-installed the box with stock Fedora 13 x64 with no modifications except that dmcrypt is turned on for root and swap (so using Nouveau display drivers instead of Nvidia).
Aug 29 19:13:45 192.168.1.199 kernel: PM: Syncing filesystems ... done. Aug 29 19:13:45 192.168.1.199 kernel: PM: Preparing system for mem sleep Aug 29 19:18:57 192.168.1.199 kernel: scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Aug 29 19:18:57 192.168.1.199 kernel: ata2.00: detaching (SCSI 1:0:0:0) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write Protect is off Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Aug 29 19:18:57 192.168.1.199 kernel: sdc: Aug 29 19:18:57 192.168.1.199 kernel: scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0 Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi generic sg1 type 5 Aug 29 19:18:58 192.168.1.199 kernel: sdc1 sdc2 sdc3 Aug 29 19:18:58 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Attached SCSI disk Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c61c 0c clock_step -0.389692 s Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c614 04 freq_mode Aug 29 19:20:21 192.168.1.199 ntpd[1466]: 0.0.0.0 c618 08 no_sys_peer Aug 29 19:22:29 192.168.1.199 sshd[2425]: WARNING: no suitable primes in /etc/ssh/primes Aug 29 19:22:29 192.168.1.199 rsyslogd: /var/log/secure Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Connection refused) Aug 29 19:22:37 192.168.1.199 sshd[2425]: Failed password for sjain from 192.168.1.100 port 49902 ssh2 Aug 29 19:22:37 192.168.1.199 auditd[2428]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2428]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[2429]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2429]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19078): audit_pid=0 old=1734 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19079): audit_pid=0 old=0 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:54 192.168.1.199 kernel: EXT3-fs error (device dm-0): ext3_find_entry: reading directory #10445218 offset 0 Aug 29 19:22:54 192.168.1.199 sshd[2426]: Connection closed by 192.168.1.100 Aug 29 19:23:17 192.168.1.199 auditd[2428]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:23:18 192.168.1.199 auditd[2429]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:34:26 192.168.1.199 kernel: CE: hpet increasing min_delta_ns to 15000 nsec Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c612 02 freq_set kernel -65.666 PPM Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c615 05 clock_sync Aug 29 19:38:26 192.168.1.199 kernel: EXT3-fs error (device dm-0):
ext3_find_entry: reading directory #1803721 offset 0
Odd?
Thanks,
- Siddhartha
Quoted 17 lines · Tejun Heo
Quoted 3 lines · Siddhartha Jain
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful.
Setting up netconsole (see
Documentation/networking/netconsole.txtin the kernel source tree) would be better.Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
- Siddhartha WV6U
Got into runlevel 3 and manually invoked suspend via "pm-suspend". On resume, got these logs via netconsole. For some reason, sda becomes sdc and all sorts of panicking ensues.
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (use no_console_suspend to debug)
eth0: link up.
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata2.00: configured for UDMA/133
ata2: EH complete
Buffer I/O error on device dm-0, logical block 41791664 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791665 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791666 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41800003 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41963521 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789440 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789449 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
EXT3-fs: ext3_journal_dirty_data: aborting transaction: IO failure in ext3_journal_dirty_data
EXT3-fs (dm-0): error in ext3_orphan_add: Readonly filesystem EXT3-fs (dm-0): error in ext3_ordered_write_end: IO failure
------------[ cut here ]------------
WARNING: at fs/buffer.c:1159 mark_buffer_dirty+0x2b/0x86()
Hardware name: MacBookPro5,4
Modules linked in: rfcommsco bridge stp llc bnep l2cap sbs sbshc coretemp sunrpc cpufreq_ondemand acpi_cpufreq freq_table ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 netconsole configfs uinput b43 snd_hda_codec_cirrus snd_hda_intel mac80211 snd_hda_codec cfg80211 snd_hwdep snd_seq uvcvideo snd_seq_device ssb snd_pcm applesmc snd_timer videodev snd forcedeth v4l1_compat mmc_core shpchp v4l2_compat_ioctl32 btusb soundcore snd_page_alloc bluetooth i2c_nforce2 joydev input_polldev bcm5974 appleir rfkill mbp_nvidia_bl microcode aes_x86_64 aes_generic xts gf128mul dm_crypt firewire_ohci usb_storage firewire_core crc_itu_t nouveau ttm drm_kms_helper drm i2c_algo_bit vid
eo output i2c_core [last unloaded: scsi_wait_scan]
Pid: 1989, comm: rsyslogd Not tainted 2.6.33.8-149.fc13.x86_64 #1
Call Trace: [<ffffffff81049ecc>] warn_slowpath_common+0x77/0x8f [<ffffffff81049ef3>] warn_slowpath_null+0xf/0x11 [<ffffffff81120247>] mark_buffer_dirty+0x2b/0x86 [<ffffffff81162b24>] ext3_commit_super.clone.0+0x54/0x64 [<ffffffff81162bc4>] ext3_handle_error+0x90/0xb7 [<ffffffff81162c5d>] __ext3_std_error+0x72/0x8f [<ffffffff81162cb9>] __ext3_journal_stop+0x3f/0x49 [<ffffffff8115cf9d>] ext3_ordered_write_end+0xd7/0x11b [<ffffffff810bf335>] generic_file_buffered_write+0x165/0x25f [<ffffffff8115ae9d>] ? ext3_dirty_inode+0x7b/0x84 [<ffffffff810c0479>] __generic_file_aio_write+0x247/0x27c [<ffffffff810c0506>] generic_file_aio_write+0x58/0xa2 [<ffffffff811000cd>] do_sync_write+0xbf/0xfc [<ffffffff8103b7d4>] ? pick_next_task+0x22/0x41 [<ffffffff81427c78>] ? schedule+0x850/0x8e6 [<ffffffff8100f02f>] ? native_sched_clock+0x2d/0x5f [<ffffffff811bcb9f>] ? security_file_permission+0x11/0x13 [<ffffffff8110062b>] vfs_write+0xa9/0x106 [<ffffffff8110073e>] sys_write+0x45/0x69 [<ffffffff81008b02>] system_call_fastpath+0x16/0x1b ---[ end trace 65d387dd571aab2f ]---
JBD: Detected IO errors while flushing file data on dm-0 Aborting journal on device dm-0.
EXT3-fs (dm-0): error in ext3_orphan_add: Journal has aborted EXT3-fs (dm-0): error in ext3_truncate: Journal has aborted
JBD: Detected IO errors while flushing file data on dm-0 EXT3-fs (dm-0): error: ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error: ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error: remounting filesystem read-only
INFO: task ata_aux:27 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.ata_aux D ffff8800057157c0 0 27 2 0x00000000
ffff88013b441950 0000000000000046 ffff8801382a0000 0000000000000000 ffff88013b4418d0 ffffffff812bb5f8 ffff88013b441960 ffff88013b441fd8 ffff88013b441fd8 000000000000f9b0 00000000000157c0 ffff88013b43b268
Call Trace: [<ffffffff812bb5f8>] ? __scsi_get_command+0x15/0x90 [<ffffffff81428079>] schedule_timeout+0x31/0xde [<ffffffff811fb10c>] ? kobject_put+0x47/0x4b [<ffffffff812a8a74>] ? put_device+0x12/0x14 [<ffffffff81427f0b>] wait_for_common+0xd1/0x12c [<ffffffff81044f21>] ? default_wake_function+0x0/0xf [<ffffffff811e980c>] ? __generic_unplug_device+0x2d/0x32 [<ffffffff81427ff0>] wait_for_completion+0x18/0x1a [<ffffffff811ed7a1>] blk_execute_rq+0xa1/0xd0 [<ffffffffa014126c>] ? write_msg+0xe5/0xf4 [netconsole] [<ffffffff811ea366>] ? blk_get_request+0x3c/0x72 [<ffffffff812c1ca5>] scsi_execute+0xf1/0x143 [<ffffffff812c1d9b>] scsi_execute_req+0xa4/0xd6 [<ffffffff812c8ef8>] sd_sync_cache+0x95/0xf3 [<ffffffff81427274>] ? printk+0x3c/0x40 [<ffffffff812c9115>] sd_shutdown+0x93/0x116 [<ffffffff812c92da>] sd_remove+0x56/0x8b [<ffffffff812ac36a>] __device_release_driver+0x70/0xc3 [<ffffffff812ac481>] device_release_driver+0x1e/0x2b [<ffffffff812ab6aa>] bus_remove_device+0xb1/0xe0 [<ffffffff812a9953>] device_del+0x135/0x1a1 [<ffffffff812c5592>] __scsi_remove_device+0x4d/0x98 [<ffffffff812c55fe>] scsi_remove_device+0x21/0x2e [<ffffffff812db944>] ata_scsi_handle_link_detach+0xfe/0x131 [<ffffffff812dbb29>] ata_scsi_hotplug+0x26/0x62 [<ffffffff8105f6e9>] worker_thread+0x1a4/0x232 [<ffffffff812dbb03>] ? ata_scsi_hotplug+0x0/0x62 [<ffffffff810631bf>] ? autoremove_wake_function+0x0/0x34 [<ffffffff8105f545>] ? worker_thread+0x0/0x232 [<ffffffff81062d6f>] kthread+0x7a/0x82 [<ffffffff81009924>] kernel_thread_helper+0x4/0x10 [<ffffffff81062cf5>] ? kthread+0x0/0x82 [<ffffffff81009920>] ? kernel_thread_helper+0x0/0x10
sd 0:0:0:0: timing out command, waited 180s
Thanks,
- Siddhartha
Quoted 107 lines · Siddhartha Jain
Hi Tejun,
Will get more debugging info by setting up netconsole. Meanwhile, syslog did glean some important info, I think. Looks like, for some reason, after resume, device mapping for the hdd changes from sda to sdc. Please see logs below. For ease of troubleshooting, I re-installed the box with stock Fedora 13 x64 with no modifications except that dmcrypt is turned on for root and swap (so using Nouveau display drivers instead of Nvidia).
Aug 29 19:13:45 192.168.1.199 kernel: PM: Syncing filesystems ... done. Aug 29 19:13:45 192.168.1.199 kernel: PM: Preparing system for mem sleep Aug 29 19:18:57 192.168.1.199 kernel: scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Aug 29 19:18:57 192.168.1.199 kernel: ata2.00: detaching (SCSI 1:0:0:0) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write Protect is off Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Aug 29 19:18:57 192.168.1.199 kernel: sdc: Aug 29 19:18:57 192.168.1.199 kernel: scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0 Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi generic sg1 type 5 Aug 29 19:18:58 192.168.1.199 kernel: sdc1 sdc2 sdc3 Aug 29 19:18:58 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Attached SCSI disk Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c61c 0c clock_step -0.389692 s Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c614 04 freq_mode Aug 29 19:20:21 192.168.1.199 ntpd[1466]: 0.0.0.0 c618 08 no_sys_peer Aug 29 19:22:29 192.168.1.199 sshd[2425]: WARNING: no suitable primes in /etc/ssh/primes Aug 29 19:22:29 192.168.1.199 rsyslogd: /var/log/secure Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Connection refused) Aug 29 19:22:37 192.168.1.199 sshd[2425]: Failed password for sjain from 192.168.1.100 port 49902 ssh2 Aug 29 19:22:37 192.168.1.199 auditd[2428]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2428]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[2429]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2429]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19078): audit_pid=0 old=1734 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19079): audit_pid=0 old=0 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:54 192.168.1.199 kernel: EXT3-fs error (device dm-0): ext3_find_entry: reading directory #10445218 offset 0 Aug 29 19:22:54 192.168.1.199 sshd[2426]: Connection closed by 192.168.1.100 Aug 29 19:23:17 192.168.1.199 auditd[2428]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:23:18 192.168.1.199 auditd[2429]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:34:26 192.168.1.199 kernel: CE: hpet increasing min_delta_ns to 15000 nsec Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c612 02 freq_set kernel -65.666 PPM Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c615 05 clock_sync Aug 29 19:38:26 192.168.1.199 kernel: EXT3-fs error (device dm-0):
ext3_find_entry: reading directory #1803721 offset 0Odd?
Thanks,
- Siddhartha
Quoted 8 lines · Tejun Heo
Quoted 3 lines · Siddhartha Jain
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful.
Setting up netconsole (see
Documentation/networking/netconsole.txtin the kernel source tree) would be better.Quoted 9 lines
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
- Siddhartha
WV6U
Signature · 2 lines
- Siddhartha WV6U
Re-installed with encryption off and netconsole logging on. Same result, that is, sda switches to sdc and everything goes haywire.
eth0: link up.
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: configured for UDMA/100
ata1: EH complete
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2884877 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2884877 offset 0
sd 0:0:0:0: [sda] Stopping disk
EXT4-fs error (device sda2): ext4_find_entry: reading directory #13631490 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3677072 offset 0
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=4456517, block=17825828
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3691827 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3812945 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3681172 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670113 offset 0
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2884877 offset 0
scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
ata2.00: detaching (SCSI 1:0:0:0)
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2884877 offset 0
sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) sd 0:0:0:0: [sdc] Write Protect is off
sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc:
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670017 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670068 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #10485761 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670068 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456486 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2883586 offset 0
sr 1:0:0:0: Attached scsi generic sg1 type 5
EXT4-fs error (device sda2): ext4_find_entry: reading directory #2 offset 0 EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
sdc1 sdc2 sdc3
sd 0:0:0:0: [sdc] Attached SCSI disk
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2): __ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
Quoted 234 lines · Siddhartha Jain
Got into runlevel 3 and manually invoked suspend via "pm-suspend". On resume, got these logs via netconsole. For some reason, sda becomes sdc and all sorts of panicking ensues.
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (useno_console_suspendto debug)
eth0: link up.
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata2.00: configured for UDMA/133
ata2: EH complete
Buffer I/O error on device dm-0, logical block 41791664 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791665 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791666 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41800003 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41963521 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789440 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789449 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
EXT3-fs:ext3_journal_dirty_data: aborting transaction: IO failure inext3_journal_dirty_data
EXT3-fs (dm-0): error inext3_orphan_add: Readonly filesystem EXT3-fs (dm-0): error inext3_ordered_write_end: IO failure------------[ cut here ]------------ WARNING: at fs/buffer.c:1159 mark_buffer_dirty+0x2b/0x86() Hardware name: MacBookPro5,4 Modules linked in: rfcommsco bridge stp llc bnep l2cap sbs sbshc coretemp sunrpc
cpufreq_ondemandacpi_cpufreqfreq_tableip6t_REJECTnf_conntrack_ipv6ip6table_filterip6_tablesipv6 netconsole configfs uinput b43snd_hda_codec_cirrussnd_hda_intelmac80211snd_hda_codeccfg80211snd_hwdepsnd_sequvcvideosnd_seq_devicessbsnd_pcmapplesmcsnd_timervideodev snd forcedethv4l1_compatmmc_coreshpchpv4l2_compat_ioctl32btusb soundcoresnd_page_allocbluetoothi2c_nforce2joydevinput_polldevbcm5974 appleir rfkillmbp_nvidia_blmicrocodeaes_x86_64aes_genericxts gf128muldm_cryptfirewire_ohciusb_storagefirewire_corecrc_itu_tnouveau ttmdrm_kms_helperdrmi2c_algo_bitvid
eo outputi2c_core[last unloaded:scsi_wait_scan]
Pid: 1989, comm: rsyslogd Not tainted 2.6.33.8-149.fc13.x86_64 #1Call Trace: [<ffffffff81049ecc>] warn_slowpath_common+0x77/0x8f [<ffffffff81049ef3>] warn_slowpath_null+0xf/0x11 [<ffffffff81120247>] mark_buffer_dirty+0x2b/0x86 [<ffffffff81162b24>] ext3_commit_super.clone.0+0x54/0x64 [<ffffffff81162bc4>] ext3_handle_error+0x90/0xb7 [<ffffffff81162c5d>] __ext3_std_error+0x72/0x8f [<ffffffff81162cb9>] __ext3_journal_stop+0x3f/0x49 [<ffffffff8115cf9d>] ext3_ordered_write_end+0xd7/0x11b [<ffffffff810bf335>] generic_file_buffered_write+0x165/0x25f [<ffffffff8115ae9d>] ? ext3_dirty_inode+0x7b/0x84 [<ffffffff810c0479>] __generic_file_aio_write+0x247/0x27c [<ffffffff810c0506>] generic_file_aio_write+0x58/0xa2 [<ffffffff811000cd>] do_sync_write+0xbf/0xfc [<ffffffff8103b7d4>] ? pick_next_task+0x22/0x41 [<ffffffff81427c78>] ? schedule+0x850/0x8e6 [<ffffffff8100f02f>] ? native_sched_clock+0x2d/0x5f [<ffffffff811bcb9f>] ? security_file_permission+0x11/0x13 [<ffffffff8110062b>] vfs_write+0xa9/0x106 [<ffffffff8110073e>] sys_write+0x45/0x69 [<ffffffff81008b02>] system_call_fastpath+0x16/0x1b ---[ end trace 65d387dd571aab2f ]---JBD: Detected IO errors while flushing file data on dm-0 Aborting journal on device dm-0.
EXT3-fs (dm-0): error inext3_orphan_add: Journal has aborted EXT3-fs (dm-0): error inext3_truncate: Journal has aborted
JBD: Detected IO errors while flushing file data on dm-0 EXT3-fs (dm-0): error:ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error:ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error: remounting filesystem read-onlyINFO: task ata_aux:27 blocked for more than 120 seconds."echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.ata_auxDffff8800057157c00 27 20x00000000ffff88013b4419500000000000000046ffff8801382a00000000000000000000ffff88013b4418d0ffffffff812bb5f8ffff88013b441960ffff88013b441fd8ffff88013b441fd8000000000000f9b000000000000157c0ffff88013b43b268Call Trace: [<ffffffff812bb5f8>] ? __scsi_get_command+0x15/0x90 [<ffffffff81428079>] schedule_timeout+0x31/0xde [<ffffffff811fb10c>] ? kobject_put+0x47/0x4b [<ffffffff812a8a74>] ? put_device+0x12/0x14 [<ffffffff81427f0b>] wait_for_common+0xd1/0x12c [<ffffffff81044f21>] ? default_wake_function+0x0/0xf [<ffffffff811e980c>] ? __generic_unplug_device+0x2d/0x32 [<ffffffff81427ff0>] wait_for_completion+0x18/0x1a [<ffffffff811ed7a1>] blk_execute_rq+0xa1/0xd0 [<ffffffffa014126c>] ? write_msg+0xe5/0xf4 [netconsole] [<ffffffff811ea366>] ? blk_get_request+0x3c/0x72 [<ffffffff812c1ca5>] scsi_execute+0xf1/0x143 [<ffffffff812c1d9b>] scsi_execute_req+0xa4/0xd6 [<ffffffff812c8ef8>] sd_sync_cache+0x95/0xf3 [<ffffffff81427274>] ? printk+0x3c/0x40 [<ffffffff812c9115>] sd_shutdown+0x93/0x116 [<ffffffff812c92da>] sd_remove+0x56/0x8b [<ffffffff812ac36a>] __device_release_driver+0x70/0xc3 [<ffffffff812ac481>] device_release_driver+0x1e/0x2b [<ffffffff812ab6aa>] bus_remove_device+0xb1/0xe0 [<ffffffff812a9953>] device_del+0x135/0x1a1 [<ffffffff812c5592>] __scsi_remove_device+0x4d/0x98 [<ffffffff812c55fe>] scsi_remove_device+0x21/0x2e [<ffffffff812db944>] ata_scsi_handle_link_detach+0xfe/0x131 [<ffffffff812dbb29>] ata_scsi_hotplug+0x26/0x62 [<ffffffff8105f6e9>] worker_thread+0x1a4/0x232 [<ffffffff812dbb03>] ? ata_scsi_hotplug+0x0/0x62 [<ffffffff810631bf>] ? autoremove_wake_function+0x0/0x34 [<ffffffff8105f545>] ? worker_thread+0x0/0x232 [<ffffffff81062d6f>] kthread+0x7a/0x82 [<ffffffff81009924>] kernel_thread_helper+0x4/0x10 [<ffffffff81062cf5>] ? kthread+0x0/0x82 [<ffffffff81009920>] ? kernel_thread_helper+0x0/0x10sd 0:0:0:0: timing out command, waited 180s
Thanks,
- Siddhartha
Quoted 100 lines · Siddhartha Jain
Hi Tejun,
Will get more debugging info by setting up netconsole. Meanwhile, syslog did glean some important info, I think. Looks like, for some reason, after resume, device mapping for the hdd changes from sda to sdc. Please see logs below. For ease of troubleshooting, I re-installed the box with stock Fedora 13 x64 with no modifications except that dmcrypt is turned on for root and swap (so using Nouveau display drivers instead of Nvidia).
Aug 29 19:13:45 192.168.1.199 kernel: PM: Syncing filesystems ... done. Aug 29 19:13:45 192.168.1.199 kernel: PM: Preparing system for mem sleep Aug 29 19:18:57 192.168.1.199 kernel: scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Aug 29 19:18:57 192.168.1.199 kernel: ata2.00: detaching (SCSI 1:0:0:0) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write Protect is off Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Aug 29 19:18:57 192.168.1.199 kernel: sdc: Aug 29 19:18:57 192.168.1.199 kernel: scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0 Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi generic sg1 type 5 Aug 29 19:18:58 192.168.1.199 kernel: sdc1 sdc2 sdc3 Aug 29 19:18:58 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Attached SCSI disk Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c61c 0c clock_step -0.389692 s Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c614 04 freq_mode Aug 29 19:20:21 192.168.1.199 ntpd[1466]: 0.0.0.0 c618 08 no_sys_peer Aug 29 19:22:29 192.168.1.199 sshd[2425]: WARNING: no suitable primes in /etc/ssh/primes Aug 29 19:22:29 192.168.1.199 rsyslogd: /var/log/secure Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Connection refused) Aug 29 19:22:37 192.168.1.199 sshd[2425]: Failed password for sjain from 192.168.1.100 port 49902 ssh2 Aug 29 19:22:37 192.168.1.199 auditd[2428]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2428]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[2429]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2429]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19078): audit_pid=0 old=1734 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19079): audit_pid=0 old=0 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:54 192.168.1.199 kernel: EXT3-fs error (device dm-0): ext3_find_entry: reading directory #10445218 offset 0 Aug 29 19:22:54 192.168.1.199 sshd[2426]: Connection closed by 192.168.1.100 Aug 29 19:23:17 192.168.1.199 auditd[2428]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:23:18 192.168.1.199 auditd[2429]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:34:26 192.168.1.199 kernel: CE: hpet increasing min_delta_ns to 15000 nsec Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c612 02 freq_set kernel -65.666 PPM Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c615 05 clock_sync Aug 29 19:38:26 192.168.1.199 kernel: EXT3-fs error (device dm-0):
ext3_find_entry: reading directory #1803721 offset 0Odd?
Thanks,
- Siddhartha
Quoted 17 lines · Tejun Heo
Quoted 3 lines · Siddhartha Jain
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful.
Setting up netconsole (see
Documentation/networking/netconsole.txtin the kernel source tree) would be better.Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Upgraded to latest stable release - 2.6.35.4. Same errors:
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (use no_console_suspend to debug)
eth0: link up.
scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
ata2.00: detaching (SCSI 1:0:0:0)
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) EXT4-fs error (device sda2): ext4_find_entry: inode #2884877: (comm udevd) reading directory lblock 0
sd 0:0:0:0: [sdc] Write Protect is off
sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc:
scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5
EXT4-fs error (device sda2): ext4_find_entry: inode #4456450: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #4456489: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #3670077: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #3670017: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #3670068: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #10485761: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #3670068: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2): ext4_find_entry: inode #4456450: (comm gnome-panel) reading directory lblock 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy sr 1:0:0:0: Attached scsi CD-ROM sr0
sr 1:0:0:0: Attached scsi generic sg1 type 5
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2): __ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
sdc1 sdc2 sdc3
sd 0:0:0:0: [sdc] Attached SCSI disk
Quoted 478 lines · Siddhartha Jain
Re-installed with encryption off and netconsole logging on. Same result, that is, sda switches to sdc and everything goes haywire.
eth0: link up.
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: configured for UDMA/100
ata1: EH complete
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2884877 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2884877 offset 0
sd 0:0:0:0: [sda] Stopping disk
EXT4-fs error (device sda2):ext4_find_entry: reading directory #13631490 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3677072 offset 0
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=4456517, block=17825828
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3691827 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3812945 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3681172 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670113 offset 0
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2884877 offset 0
scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 sd 0:0:0:0: Attached scsi generic sg0 type 0
ata2.00: detaching (SCSI 1:0:0:0)
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2884877 offset 0
sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) sd 0:0:0:0: [sdc] Write Protect is off
sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc:
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456489 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670017 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670068 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #10485761 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670068 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456486 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2883586 offset 0
sr 1:0:0:0: Attached scsi generic sg1 type 5
EXT4-fs error (device sda2):ext4_find_entry: reading directory #2 offset 0 EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
sdc1 sdc2 sdc3
sd 0:0:0:0: [sdc] Attached SCSI disk
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670077 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #3670026 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):ext4_find_entry: reading directory #4456450 offset 0
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=2885332, block=11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984
EXT4-fs error (device sda2):__ext4_get_inode_loc: unable to read inode block - inode=13631490, block=54525984Quoted 234 lines · Siddhartha Jain
Got into runlevel 3 and manually invoked suspend via "pm-suspend". On resume, got these logs via netconsole. For some reason, sda becomes sdc and all sorts of panicking ensues.
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (useno_console_suspendto debug)
eth0: link up.
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata2.00: configured for UDMA/133
ata2: EH complete
Buffer I/O error on device dm-0, logical block 41791664 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791665 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791666 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41800003 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41963521 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789440 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41789449 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
Buffer I/O error on device dm-0, logical block 41791667 lost page write due to I/O error on dm-0
EXT3-fs:ext3_journal_dirty_data: aborting transaction: IO failure inext3_journal_dirty_data
EXT3-fs (dm-0): error inext3_orphan_add: Readonly filesystem EXT3-fs (dm-0): error inext3_ordered_write_end: IO failure------------[ cut here ]------------ WARNING: at fs/buffer.c:1159 mark_buffer_dirty+0x2b/0x86() Hardware name: MacBookPro5,4 Modules linked in: rfcommsco bridge stp llc bnep l2cap sbs sbshc coretemp sunrpc
cpufreq_ondemandacpi_cpufreqfreq_tableip6t_REJECTnf_conntrack_ipv6ip6table_filterip6_tablesipv6 netconsole configfs uinput b43snd_hda_codec_cirrussnd_hda_intelmac80211snd_hda_codeccfg80211snd_hwdepsnd_sequvcvideosnd_seq_devicessbsnd_pcmapplesmcsnd_timervideodev snd forcedethv4l1_compatmmc_coreshpchpv4l2_compat_ioctl32btusb soundcoresnd_page_allocbluetoothi2c_nforce2joydevinput_polldevbcm5974 appleir rfkillmbp_nvidia_blmicrocodeaes_x86_64aes_genericxts gf128muldm_cryptfirewire_ohciusb_storagefirewire_corecrc_itu_tnouveau ttmdrm_kms_helperdrmi2c_algo_bitvid
eo outputi2c_core[last unloaded:scsi_wait_scan]
Pid: 1989, comm: rsyslogd Not tainted 2.6.33.8-149.fc13.x86_64 #1Call Trace: [<ffffffff81049ecc>] warn_slowpath_common+0x77/0x8f [<ffffffff81049ef3>] warn_slowpath_null+0xf/0x11 [<ffffffff81120247>] mark_buffer_dirty+0x2b/0x86 [<ffffffff81162b24>] ext3_commit_super.clone.0+0x54/0x64 [<ffffffff81162bc4>] ext3_handle_error+0x90/0xb7 [<ffffffff81162c5d>] __ext3_std_error+0x72/0x8f [<ffffffff81162cb9>] __ext3_journal_stop+0x3f/0x49 [<ffffffff8115cf9d>] ext3_ordered_write_end+0xd7/0x11b [<ffffffff810bf335>] generic_file_buffered_write+0x165/0x25f [<ffffffff8115ae9d>] ? ext3_dirty_inode+0x7b/0x84 [<ffffffff810c0479>] __generic_file_aio_write+0x247/0x27c [<ffffffff810c0506>] generic_file_aio_write+0x58/0xa2 [<ffffffff811000cd>] do_sync_write+0xbf/0xfc [<ffffffff8103b7d4>] ? pick_next_task+0x22/0x41 [<ffffffff81427c78>] ? schedule+0x850/0x8e6 [<ffffffff8100f02f>] ? native_sched_clock+0x2d/0x5f [<ffffffff811bcb9f>] ? security_file_permission+0x11/0x13 [<ffffffff8110062b>] vfs_write+0xa9/0x106 [<ffffffff8110073e>] sys_write+0x45/0x69 [<ffffffff81008b02>] system_call_fastpath+0x16/0x1b ---[ end trace 65d387dd571aab2f ]---JBD: Detected IO errors while flushing file data on dm-0 Aborting journal on device dm-0.
EXT3-fs (dm-0): error inext3_orphan_add: Journal has aborted EXT3-fs (dm-0): error inext3_truncate: Journal has aborted
JBD: Detected IO errors while flushing file data on dm-0 EXT3-fs (dm-0): error:ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error:ext3_journal_start_sb: Detected aborted journal EXT3-fs (dm-0): error: remounting filesystem read-onlyINFO: task ata_aux:27 blocked for more than 120 seconds."echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.ata_auxDffff8800057157c00 27 20x00000000ffff88013b4419500000000000000046ffff8801382a00000000000000000000ffff88013b4418d0ffffffff812bb5f8ffff88013b441960ffff88013b441fd8ffff88013b441fd8000000000000f9b000000000000157c0ffff88013b43b268Call Trace: [<ffffffff812bb5f8>] ? __scsi_get_command+0x15/0x90 [<ffffffff81428079>] schedule_timeout+0x31/0xde [<ffffffff811fb10c>] ? kobject_put+0x47/0x4b [<ffffffff812a8a74>] ? put_device+0x12/0x14 [<ffffffff81427f0b>] wait_for_common+0xd1/0x12c [<ffffffff81044f21>] ? default_wake_function+0x0/0xf [<ffffffff811e980c>] ? __generic_unplug_device+0x2d/0x32 [<ffffffff81427ff0>] wait_for_completion+0x18/0x1a [<ffffffff811ed7a1>] blk_execute_rq+0xa1/0xd0 [<ffffffffa014126c>] ? write_msg+0xe5/0xf4 [netconsole] [<ffffffff811ea366>] ? blk_get_request+0x3c/0x72 [<ffffffff812c1ca5>] scsi_execute+0xf1/0x143 [<ffffffff812c1d9b>] scsi_execute_req+0xa4/0xd6 [<ffffffff812c8ef8>] sd_sync_cache+0x95/0xf3 [<ffffffff81427274>] ? printk+0x3c/0x40 [<ffffffff812c9115>] sd_shutdown+0x93/0x116 [<ffffffff812c92da>] sd_remove+0x56/0x8b [<ffffffff812ac36a>] __device_release_driver+0x70/0xc3 [<ffffffff812ac481>] device_release_driver+0x1e/0x2b [<ffffffff812ab6aa>] bus_remove_device+0xb1/0xe0 [<ffffffff812a9953>] device_del+0x135/0x1a1 [<ffffffff812c5592>] __scsi_remove_device+0x4d/0x98 [<ffffffff812c55fe>] scsi_remove_device+0x21/0x2e [<ffffffff812db944>] ata_scsi_handle_link_detach+0xfe/0x131 [<ffffffff812dbb29>] ata_scsi_hotplug+0x26/0x62 [<ffffffff8105f6e9>] worker_thread+0x1a4/0x232 [<ffffffff812dbb03>] ? ata_scsi_hotplug+0x0/0x62 [<ffffffff810631bf>] ? autoremove_wake_function+0x0/0x34 [<ffffffff8105f545>] ? worker_thread+0x0/0x232 [<ffffffff81062d6f>] kthread+0x7a/0x82 [<ffffffff81009924>] kernel_thread_helper+0x4/0x10 [<ffffffff81062cf5>] ? kthread+0x0/0x82 [<ffffffff81009920>] ? kernel_thread_helper+0x0/0x10sd 0:0:0:0: timing out command, waited 180s
Thanks,
- Siddhartha
Quoted 100 lines · Siddhartha Jain
Hi Tejun,
Will get more debugging info by setting up netconsole. Meanwhile, syslog did glean some important info, I think. Looks like, for some reason, after resume, device mapping for the hdd changes from sda to sdc. Please see logs below. For ease of troubleshooting, I re-installed the box with stock Fedora 13 x64 with no modifications except that dmcrypt is turned on for root and swap (so using Nouveau display drivers instead of Nvidia).
Aug 29 19:13:45 192.168.1.199 kernel: PM: Syncing filesystems ... done. Aug 29 19:13:45 192.168.1.199 kernel: PM: Preparing system for mem sleep Aug 29 19:18:57 192.168.1.199 kernel: scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Aug 29 19:18:57 192.168.1.199 kernel: ata2.00: detaching (SCSI 1:0:0:0) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write Protect is off Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 Aug 29 19:18:57 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Aug 29 19:18:57 192.168.1.199 kernel: sdc: Aug 29 19:18:57 192.168.1.199 kernel: scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 Aug 29 19:18:57 192.168.1.199 kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0 Aug 29 19:18:57 192.168.1.199 kernel: sr 1:0:0:0: Attached scsi generic sg1 type 5 Aug 29 19:18:58 192.168.1.199 kernel: sdc1 sdc2 sdc3 Aug 29 19:18:58 192.168.1.199 kernel: sd 0:0:0:0: [sdc] Attached SCSI disk Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c61c 0c clock_step -0.389692 s Aug 29 19:20:20 192.168.1.199 ntpd[1466]: 0.0.0.0 c614 04 freq_mode Aug 29 19:20:21 192.168.1.199 ntpd[1466]: 0.0.0.0 c618 08 no_sys_peer Aug 29 19:22:29 192.168.1.199 sshd[2425]: WARNING: no suitable primes in /etc/ssh/primes Aug 29 19:22:29 192.168.1.199 rsyslogd: /var/log/secure Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Connection refused) Aug 29 19:22:37 192.168.1.199 sshd[2425]: Failed password for sjain from 192.168.1.100 port 49902 ssh2 Aug 29 19:22:37 192.168.1.199 auditd[2428]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2428]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 auditd[1734]: Record was not written to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[1734]: write: Audit daemon detected an error writing an event to disk (Read-only file system) Aug 29 19:22:37 192.168.1.199 auditd[2429]: Audit daemon failed to exec (null) Aug 29 19:22:37 192.168.1.199 auditd[2429]: The audit daemon is exiting. Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19078): audit_pid=0 old=1734 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:37 192.168.1.199 kernel: type=1305 audit(1283134957.511:19079): audit_pid=0 old=0 auid=4294967295 ses=4294967295 res=1 Aug 29 19:22:54 192.168.1.199 kernel: EXT3-fs error (device dm-0): ext3_find_entry: reading directory #10445218 offset 0 Aug 29 19:22:54 192.168.1.199 sshd[2426]: Connection closed by 192.168.1.100 Aug 29 19:23:17 192.168.1.199 auditd[2428]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:23:18 192.168.1.199 auditd[2429]: Error setting audit daemon pid (Resource temporarily unavailable) Aug 29 19:34:26 192.168.1.199 kernel: CE: hpet increasing min_delta_ns to 15000 nsec Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c612 02 freq_set kernel -65.666 PPM Aug 29 19:35:46 192.168.1.199 ntpd[1466]: 0.0.0.0 c615 05 clock_sync Aug 29 19:38:26 192.168.1.199 kernel: EXT3-fs error (device dm-0):
ext3_find_entry: reading directory #1803721 offset 0Odd?
Thanks,
- Siddhartha
Quoted 17 lines · Tejun Heo
Quoted 3 lines · Siddhartha Jain
I am going to try pointing rsyslog at a remote syslog server to see if I can capture what happens at resume-time but any other pointers to debug/troubleshoot this issue will be helpful.
Setting up netconsole (see
Documentation/networking/netconsole.txtin the kernel source tree) would be better.Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
- Siddhartha WV6U
Hi Tejun,
Was any of this debug info helpful?
Thanks,
- Siddhartha
Quoted 55 lines · Siddhartha Jain
Upgraded to latest stable release - 2.6.35.4. Same errors:
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (useno_console_suspendto debug)
eth0: link up.
scsi 0:0:0:0: Direct-Access ATA FUJITSU MJA2250B 0081 PQ: 0 ANSI: 5 sd 0:0:0:0: Attached scsi generic sg0 type 0
ata2.00: detaching (SCSI 1:0:0:0)
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
sd 0:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB) EXT4-fs error (device sda2):ext4_find_entry: inode #2884877: (comm udevd) reading directory lblock 0
sd 0:0:0:0: [sdc] Write Protect is off
sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc:
scsi 1:0:0:0: CD-ROM HL-DT-ST DVDRW GS23N SB03 PQ: 0 ANSI: 5 EXT4-fs error (device sda2):ext4_find_entry: inode #4456450: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #4456489: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #3670077: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #3670017: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #3670068: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #10485761: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #3670068: (comm gnome-panel) reading directory lblock 0
EXT4-fs error (device sda2):ext4_find_entry: inode #4456450: (comm gnome-panel) reading directory lblock 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda caddy sr 1:0:0:0: Attached scsi CD-ROM sr0
sr 1:0:0:0: Attached scsi generic sg1 type 5
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
EXT4-fs error (device sda2):__ext4_get_inode_loc: inode #2885332:
(comm udevd) unable to read inode block 11534477
sdc1 sdc2 sdc3
sd 0:0:0:0: [sdc] Attached SCSI disk
Hello,
Can you please the patch in the following message?
http://article.gmane.org/gmane.linux.ide/47387/raw
Thanks.
Signature · 1 line
tejun
Applied patch to 2.6.35.4. Patched cleanly and kernel compile was smooth.
Suspend works beautifully now. Not only does the system resume properly but earlier suspend would take minutes, now it goes to suspend within seconds (less than 10).
I will re-build my laptop with dmcrypt + ext4, apply this patch and use the system for a while to ensure all play together nicely.
Thanks Tejun!! Really appreciate the quick turnaround on this issue. I saved debugging info from the successful resume where I have debugging turned on for various modules - acpi, pci etc. Let me know if you need me to send it across.
- Siddhartha
Quoted 11 lines · Tejun Heo
Hello,
Can you please the patch in the following message?
http://article.gmane.org/gmane.linux.ide/47387/raw
Thanks.
--
tejun
Signature · 2 lines
- Siddhartha WV6U
Hello,
Quoted 6 lines · Siddhartha Jain
Applied patch to 2.6.35.4. Patched cleanly and kernel compile was smooth.
Suspend works beautifully now. Not only does the system resume properly but earlier suspend would take minutes, now it goes to suspend within seconds (less than 10).
Quoted 7 lines
I will re-build my laptop with dmcrypt + ext4, apply this patch and use the system for a while to ensure all play together nicely.
Thanks Tejun!! Really appreciate the quick turnaround on this issue. I saved debugging info from the successful resume where I have debugging turned on for various modules - acpi, pci etc. Let me know if you need me to send it across.
Debugging was mostly done by Rafael, so he deserves most of credit. Can you please keep testing for a few more days and let me know the result?
Thanks.
Signature · 1 line
tejun
Just wanted to checkin and report that so far I applied the patch to two revisions of 2.6.34 from fedora 13 x64 and have had no issues. My macbook pro sleeps well and wakes up as normal everytime.
Thanks again to all involved. When should I expect it to be updated in the main trunk?
Quoted 26 lines · Tejun Heo
Hello,
Quoted 6 lines · Siddhartha Jain
Applied patch to 2.6.35.4. Patched cleanly and kernel compile was smooth.
Suspend works beautifully now. Not only does the system resume properly but earlier suspend would take minutes, now it goes to suspend within seconds (less than 10).
Quoted 7 lines
I will re-build my laptop with dmcrypt + ext4, apply this patch and use the system for a while to ensure all play together nicely.
Thanks Tejun!! Really appreciate the quick turnaround on this issue. I saved debugging info from the successful resume where I have debugging turned on for various modules - acpi, pci etc. Let me know if you need me to send it across.
Debugging was mostly done by Rafael, so he deserves most of credit. Can you please keep testing for a few more days and let me know the result?
Thanks.
--
tejun
Signature · 2 lines
- Siddhartha WV6U
Quoted 6 lines · Siddhartha Jain
Just wanted to checkin and report that so far I applied the patch to two revisions of 2.6.34 from fedora 13 x64 and have had no issues. My macbook pro sleeps well and wakes up as normal everytime.
Thanks again to all involved. When should I expect it to be updated in the main trunk?
It's in the main trunk:
commit e2f3d75fc0e4a0d03c61872bad39ffa2e74a04ff
Author: Tejun Heo <[email protected]> Date: Tue Sep 7 14:05:31 2010 +0200
libata: skip EH autopsy and recovery during suspend