* [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) @ 2015-10-29 4:26 bugzilla-daemon 2015-10-29 4:27 ` [Bug 106841] " bugzilla-daemon ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: bugzilla-daemon @ 2015-10-29 4:26 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=106841 Bug ID: 106841 Summary: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) Product: IO/Storage Version: 2.5 Kernel Version: 4.2.4 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: SCSI Assignee: linux-scsi@vger.kernel.org Reporter: tom.ty89@gmail.com Regression: No So I have the following error with a WD My Passport: [tom@localhost ~]$ journalctl -b -p 3 | grep scsi Oct 29 11:18:31 localhost kernel: scsi 7:0:0:1: Failed to get diagnostic page 0x8000002 Oct 29 11:18:31 localhost kernel: scsi 7:0:0:1: Failed to bind enclosure -19 Some info of the drive: [tom@localhost ~]$ sudo sg_ses /dev/sg4 WD SES Device 1065 Supported diagnostic pages: Supported Diagnostic Pages [sdp] [0x0] Short Enclosure Status (SES) [ses] [0x8] <unknown> [0x80] <unknown> [0x83] <unknown> [0x84] <unknown> [0x85] [tom@localhost ~]$ sudo sg_senddiag -P 8 /dev/sg4 Short enclosure status (SES) diagnostic page [0x8] response in hex: 00 08 00 00 00 According to SES-3 (ses3r10.pdf) Table 10, if diagnostic page 08h is supported, all others pages from 01h to 0fh are prohibited. However, the kernel (driver/scsi/ses.c) doesn't seem to be aware of this. FWIW, my drive have a correct SES page (byte 0 should the page code 08h, byte 2-3 should be 0000h, byte 1 is vendor-specific status). -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 106841] do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) 2015-10-29 4:26 [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) bugzilla-daemon @ 2015-10-29 4:27 ` bugzilla-daemon 2016-02-27 1:13 ` [Bug 106841] ses: " bugzilla-daemon ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2015-10-29 4:27 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=106841 --- Comment #1 from Tom Yan <tom.ty89@gmail.com> --- Oops I missed the lsscsi output: [tom@localhost ~]$ sudo lsscsi -g | grep WD [7:0:0:0] disk WD My Passport 083A 1065 /dev/sdc /dev/sg3 [7:0:0:1] enclosu WD SES Device 1065 - /dev/sg4 -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 106841] ses: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) 2015-10-29 4:26 [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) bugzilla-daemon 2015-10-29 4:27 ` [Bug 106841] " bugzilla-daemon @ 2016-02-27 1:13 ` bugzilla-daemon 2016-02-27 1:13 ` bugzilla-daemon 2016-02-27 1:21 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2016-02-27 1:13 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=106841 Tom Yan <tom.ty89@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|do not output error for |ses: do not output error |simple subenclosure (handle |for simple subenclosure |Short Enclosure Status |(handle Short Enclosure |diagnostic page) |Status diagnostic page) -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 106841] ses: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) 2015-10-29 4:26 [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) bugzilla-daemon 2015-10-29 4:27 ` [Bug 106841] " bugzilla-daemon 2016-02-27 1:13 ` [Bug 106841] ses: " bugzilla-daemon @ 2016-02-27 1:13 ` bugzilla-daemon 2016-02-27 1:21 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2016-02-27 1:13 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=106841 Tom Yan <tom.ty89@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Kernel Version|4.2.4 |4.4.1 -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 106841] ses: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) 2015-10-29 4:26 [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) bugzilla-daemon ` (2 preceding siblings ...) 2016-02-27 1:13 ` bugzilla-daemon @ 2016-02-27 1:21 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2016-02-27 1:21 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=106841 --- Comment #2 from Tom Yan <tom.ty89@gmail.com> --- This commit did NOT fix anything: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/scsi/ses.c?id=3417c1b5cb1fdc10261dbed42b05cc93166a78fd Only the error changes from: scsi 7:0:0:1: Failed to get diagnostic page 0x8000002 scsi 7:0:0:1: Failed to bind enclosure -19 to scsi 7:0:0:1: Wrong diagnostic page; asked for 1 got 0 scsi 7:0:0:1: Failed to get diagnostic page 0xffffffea scsi 7:0:0:1: Failed to bind enclosure -19 The ses driver should simply check whether there is an Short Enclosure Status page (i.e. it is a simple subenclosure) FIRST. If that's the case, the device should simply be skipped/bound WITHOUT error. -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-02-27 1:21 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-29 4:26 [Bug 106841] New: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) bugzilla-daemon 2015-10-29 4:27 ` [Bug 106841] " bugzilla-daemon 2016-02-27 1:13 ` [Bug 106841] ses: " bugzilla-daemon 2016-02-27 1:13 ` bugzilla-daemon 2016-02-27 1:21 ` bugzilla-daemon
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).