mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Barto <mister.freeman@laposte.net>
To: Christoph Hellwig <hch@infradead.org>
Cc: "Elliott, Robert (Server Storage)" <Elliott@hp.com>,
	Guenter Roeck <linux@roeck-us.net>,
	linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: BUG in scsi_lib.c due to a bad commit
Date: Thu, 20 Nov 2014 19:27:49 +0100	[thread overview]
Message-ID: <546E32A5.4040202@laposte.net> (raw)
In-Reply-To: <20141120175316.GA19590@infradead.org>

Hello,

here is the result of the command :

$ for i in /sys/class/scsi_host/*; do cat $i/can_queue; done
1
1
1
1
1
1
31
31

but the sata DVD burner is now connected on a Jmicron sata PCIe card (
with this configuration the bug doesn't occur ), I don't know if this
change can modify the result of your command,

here is the result of another command :

$ for i in /sys/class/scsi_host/*; do cat $i/proc_name; done
pata_jmicron
pata_jmicron
ata_piix
ata_piix
ata_piix
ata_piix
ahci
ahci

$ dmesg | grep ahci
[    0.883351] ahci 0000:03:00.0: version 3.0
[    0.883505] ahci 0000:03:00.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps
0x3 impl SATA mode
[    0.883508] ahci 0000:03:00.0: flags: 64bit ncq pm led clo pmp pio
slum part
[    0.884329] scsi host6: ahci
[    0.884502] scsi host7: ahci

Le 20/11/2014 18:53, Christoph Hellwig a écrit :
> On Thu, Nov 20, 2014 at 06:44:32PM +0100, Barto wrote:
>> I notice that my motherboard doesn't support "AHCI" mode, my motherboard
>> uses an ICH7 sata controler, ICH7 doesn't support AHCI if I check the
>> technical specifications of this controler,
>>
>> it seems that my bios treats SATA devices like IDE devices ( IDE
>> emulation mode ), for example I can read in the bios these lines "IDE 0
>> channel master : "the name of Sata harddisk 1", "IDE 3 channel master :
>> "the name of Sata harddisk 2",
>>
>> perhaps the bug only occurs when the AHCI mode is not used ?
> 
> Looks like it.  I suspect you device only supports a single outstanding
> command without AHCI, can you confirm this by doing:
> 
> for i in /sys/class/scsi_host/*; do cat $i/can_queue; done
> 
> 

  reply	other threads:[~2014-11-20 18:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20  6:09 Christoph Hellwig
2014-11-20 17:44 ` Barto
2014-11-20 17:53   ` Christoph Hellwig
2014-11-20 18:27     ` Barto [this message]
2014-11-24  9:18       ` Christoph Hellwig
2014-11-24 15:12         ` Barto
  -- strict thread matches above, loose matches on Subject: below --
2014-11-11 23:33 Barto
2014-11-12  0:17 ` Bjorn Helgaas
2014-11-12  2:53   ` Guenter Roeck
2014-11-13  3:28     ` Barto
2014-11-13  5:33       ` Elliott, Robert (Server Storage)
2014-11-13  9:38         ` Barto
2014-11-13 14:29           ` Christoph Hellwig
2014-11-13 15:13             ` Barto
2014-11-13 17:14             ` Barto
2014-11-13 17:54               ` Christoph Hellwig
2014-11-13 22:55                 ` Barto
2014-11-14  7:32                   ` Christoph Hellwig
2014-11-14 16:30                     ` Barto
2014-11-16 18:30                     ` Barto
2014-11-19 20:21                     ` Barto

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=546E32A5.4040202@laposte.net \
    --to=mister.freeman@laposte.net \
    --cc=Elliott@hp.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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

Powered by JetHome