From: Rolf Offermanns <roffermanns@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Weird hard disk noise on shutdown (bug #7674)
Date: Thu, 22 Feb 2007 16:22:20 +0100 [thread overview]
Message-ID: <erkcfc$f3n$1@sea.gmane.org> (raw)
In-Reply-To: 20070222135306.4eb757c2@lxorguk.ukuu.org.uk
Alan wrote:
>> However, i'm not still sure i enabled as much debugging info as i
>> could in the kernel configuration. If you need more, please point me
>> to precise configuration options.
>
> You grabbed a lot of junk but you did grab this line
>
> [17179682.560000] Synchronizing SCSI cache for disk sda:
>
> Which means sd_sync_cache got called and flushed the data to disk.
>
> I don't think you can do the other needed debugging without a recompile.
>
> The following will generate a vast amount of debug of which only the end
> matters. You may well want to build a kernel this way, boot it with
> init=/bin/sh and then at the shell prompt do "halt -f" so you don't get
> too much debug
>
> In include/linux/libata.h change
>
> #undef ATA_DEBUG /* debugging output */
> #undef ATA_VERBOSE_DEBUG /* yet more debugging output */
>
> so both of the undef-s read define
>
> #define ATA_DEBUG
> #define ATA_VERBOSE_DEBUG
>
> and recompile
I hear the same strange noise on poweroff (2.6.20 vanilla). This is what I
get on my system with ATA_DEBUG and ATA_VERBOSE_DEBUG both defined. The
system will *not* poweroff with "halt -f" so there was no noise!
md: stopping all md devices.
Synchronizing SCSI cache for disk sda:
ata_scsi_dump_cdb: CDB (1:0,0,0) 35 00 00 00 00 00 00 00 00
ata_scsi_translate: ENTER
ata1: ata_dev_select: ENTER, ata1: device 0, wait 1
ata_tf_load_pio: device 0xA0
ata_exec_command_pio: ata1: cmd 0xE7
ata_scsi_translate: EXIT
ata_host_intr: ata1: protocol 1 task_state 2
ata_hsm_move: ata1: protocol 1 task_state 2 (dev_stat 0x50)
ata_hsm_move: ata1: dev 0 command complete, drv_stat 0x50
System halted.
If I do a sysrq-o right after this, the above message repeate once more and
the system turns off w/o the disturbing noise.
For the next messages, I booted the system completely (no init=/bin/sh) and
did a "poweroff" at the console prompt after the boot was completed. This
time the noise was there.
ata_host_intr: ata1: protocol 3 task_state 2
ata_host_intr: ata1: host_stat 0x24
ata_hsm_move: ata1: protocol 3 task_state 2 (dev_stat 0x50)
ata_hsm_move: ata1: dev 0 command complete, drv_stat 0x50
ata_sg_clean: unmapping 1 sg elements
ata_scsi_dump_cdb: CDB (1:0,0,0) 28 00 04 b5 d4 c8 00 00 08
ata_scsi_translate: ENTER
scsi_10_lba_len: ten-byte command
ata_sg_setup: ENTER, ata1
ata_sg_setup: 1 sg elements mapped
ata_fill_sg: PRD[0] = (0x39A63000, 0x1000)
ata_tf_load_pio: feat 0x0 nsect 0x8 lba 0xC8 0xD4 0xB5
ata_tf_load_pio: device 0xE4
ata_exec_command_pio: ata1: cmd 0xC8
ata_scsi_translate: EXIT
ata_host_intr: ata1: protocol 3 task_state 2
ata_host_intr: ata1: host_stat 0x24
ata_hsm_move: ata1: protocol 3 task_state 2 (dev_stat 0x50)
ata_hsm_move: ata1: dev 0 command complete, drv_stat 0x50
ata_sg_clean: unmapping 1 sg elements
ata_scsi_dump_cdb: CDB (1:0,0,0) 35 00 00 00 00 00 00 00 00
ata_scsi_translate: ENTER
ata_tf_load_pio: device 0xA0
ata_exec_command_pio: ata1: cmd 0xE7
ata_scsi_translate: EXIT
ata_host_intr: ata1: protocol 1 task_state 2
ata_hsm_move: ata1: protocol 1 task_state 2 (dev_stat 0x50)
ata_hsm_move: ata1: dev 0 command complete, drv_stat 0x50
Power down.
HTH,
Rolf
next prev parent reply other threads:[~2007-02-22 15:22 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 22:15 Weird hard disk noise on shutdown (bug #7674) Francesco Pretto
2007-02-21 23:55 ` Alan
2007-02-22 1:01 ` Francesco Pretto
2007-02-22 13:53 ` Alan
2007-02-22 15:22 ` Rolf Offermanns [this message]
2007-02-22 22:47 ` Francesco Pretto
[not found] <fa.Ia7dfo7Zd5kB6KhSYisfswa1aj4@ifi.uio.no>
[not found] ` <fa.YHt2nIlQmoW5r2enmTSzsaySwH4@ifi.uio.no>
2007-02-22 2:43 ` Robert Hancock
2007-02-23 20:35 ` Francesco Pretto
[not found] ` <e5ab0f710703020009u2b94fb72ja51e85b8b90eaba0@mail.gmail.com>
2007-03-02 23:43 ` Dan Gilliam
2007-05-04 19:12 ` Phillip Susi
2007-05-04 20:39 ` Tejun Heo
2007-05-06 18:19 ` Francesco Pretto
2007-05-06 18:24 ` Tejun Heo
2007-05-14 17:32 ` Tejun Heo
2007-05-14 20:46 ` Francesco Pretto
2007-05-15 6:59 ` Tejun Heo
2007-05-15 13:16 ` Henrique de Moraes Holschuh
2007-05-15 13:47 ` Tejun Heo
2007-05-15 21:08 ` Dave Jones
2007-05-16 5:29 ` Rob Landley
2007-05-16 9:15 ` Francesco Pretto
2007-05-16 11:38 ` Tejun Heo
2007-05-16 23:47 ` Rob Landley
2007-05-17 9:12 ` Tejun Heo
2007-05-16 11:41 ` Tejun Heo
2007-05-16 23:48 ` Rob Landley
2007-05-17 0:58 ` Henrique de Moraes Holschuh
2007-05-17 3:05 ` Rob Landley
2007-05-17 3:39 ` Henrique de Moraes Holschuh
2007-05-17 15:04 ` Lennart Sorensen
2007-05-18 7:16 ` Rob Landley
2007-05-18 12:35 ` Alan Cox
2007-05-18 18:27 ` Lennart Sorensen
2007-05-17 9:14 ` Tejun Heo
2007-05-16 12:47 ` Stephen Clark
2007-05-16 13:49 ` Francesco Pretto
2007-05-16 23:52 ` Rob Landley
2007-05-16 11:38 ` Tejun Heo
[not found] ` <fa.7/l6y5w9DWACpMl9PLWnCeZVtaY@ifi.uio.no>
[not found] ` <fa.jM0Jz2vqE6sFKJ24x7Krs9Md4+Y@ifi.uio.no>
[not found] ` <fa.htPXmkKzsdLgiNC0YHDJwdgDLHg@ifi.uio.no>
2007-02-23 0:25 ` Robert Hancock
[not found] <fa.Fk9DulKIUBewV0V2B72MDzbelmU@ifi.uio.no>
[not found] ` <fa.RCbhxyLCSR5f65HWabMGmxZNYQ4@ifi.uio.no>
[not found] ` <fa.G4k+9fbJDE0N5pygu22mRYU6gfE@ifi.uio.no>
2007-02-22 6:27 ` Robert Hancock
2007-02-22 7:11 ` Tejun Heo
2007-02-22 11:33 ` Francesco Pretto
[not found] <fa.3exEXR8lVInBQnVOUQZm+V7aqZE@ifi.uio.no>
[not found] ` <fa.SUiPva6BdeZMJsAbFE/HC5i0jfs@ifi.uio.no>
[not found] ` <fa.YdL5PeKPp7ARbGWGIgctXVh/iLQ@ifi.uio.no>
[not found] ` <fa.xsAgWkCiu+x5MGhvd/b5EHrU+ic@ifi.uio.no>
[not found] ` <fa.FUWb3SroQ9sotSIAakSnOjAJ6Ks@ifi.uio.no>
2007-02-22 14:34 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='erkcfc$f3n$1@sea.gmane.org' \
--to=roffermanns@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).