+ ieee1394-sbp2-dont-prefer-mode-sense-10.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     ieee1394: sbp2: don't prefer MODE SENSE 10

has been added to the -mm tree.  Its filename is

     ieee1394-sbp2-dont-prefer-mode-sense-10.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: ieee1394: sbp2: don't prefer MODE SENSE 10
From: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>

In the old days, sbp2 used to coerce all MODE SENSE commands into the 10
bytes version.  When all command set conversions were removed from sbp2
several months ago, sdev->use_10_for_ms = 1 was added.  Meaning, higher
SCSI layers preferred the 10 bytes version but would try the 6 bytes
version if the former failed.

Recently, a problem with the 10 bytes version was discovered.  An Initio
INIC-1530 firmware accepted the 10 bytes version but replied with bogus
data, showing the HDD incorrectly as write-protected.  Since RBC actually
mandates MODE SENSE (6), I checked which version was sent by Windows XP and
Mac OS X 10.3 to an SBP-2 target hosted by Linux --- it was the 6 bytes
version.  (Exception: OS X sent the 10 bytes version to an MMC target.  RBC
and SBC got MODE SENSE (6).)

Therefore, drop the use_10_for_ms flag from sbp2.  Now the upper layers
will try MODE SENSE (6) before MODE SENSE (10) on all SBP-2 devices.

Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/ieee1394/sbp2.c |    1 -
 1 file changed, 1 deletion(-)

diff -puN drivers/ieee1394/sbp2.c~ieee1394-sbp2-dont-prefer-mode-sense-10 drivers/ieee1394/sbp2.c
--- a/drivers/ieee1394/sbp2.c~ieee1394-sbp2-dont-prefer-mode-sense-10
+++ a/drivers/ieee1394/sbp2.c
@@ -2529,7 +2529,6 @@ static int sbp2scsi_slave_configure(stru
 
 	blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
 	sdev->use_10_for_rw = 1;
-	sdev->use_10_for_ms = 1;
 
 	if (sdev->type == TYPE_DISK &&
 	    scsi_id->workarounds & SBP2_WORKAROUND_MODE_SENSE_8)
_

Patches currently in -mm which might be from stefanr@xxxxxxxxxxxxxxxxx are

git-ieee1394.patch
ieee1394-fix-kerneldoc-of-hpsb_alloc_host.patch
ieee1394-shrink-tlabel-pools-remove-tpool-semaphores.patch
ieee1394-remove-include-asm-semaphoreh.patch
ieee1394-sbp2-safer-last_orb-and.patch
ieee1394-sbp2-discard-return-value-of.patch
ieee1394-sbp2-optimize-dma-direction-of.patch
ieee1394-sbp2-safer-initialization-of.patch
ieee1394-sbp2-more-checks-of-status.patch
ieee1394-sbp2-convert.patch
ieee1394-safer-definition-of-empty-macros.patch
ieee1394-sbp2-enable-auto-spin-up-for-all-sbp-2-devices.patch
config_pm=n-slim-drivers-ieee1394-ohci1394c.patch
the-scheduled-removal-of-drivers-ieee1394-sbp2cforce_inquiry_hack.patch
ieee1394-sbp2-handle-sbp2util_node_write_no_wait-failed.patch
ieee1394-sbp2-safer-agent-reset-in-error-handlers.patch
ieee1394-sbp2-recheck-node-generation-in-sbp2_update.patch
ieee1394-sbp2-better-handling-of-transport-errors.patch
ieee1394-sbp2-update-includes.patch
ieee1394-sbp2-prevent-rare-deadlock-in-shutdown.patch
initialize-ieee1394-early-when-built-in.patch
ieee1394-sbp2-more-help-in-kconfig.patch
ieee1394-nodemgr-fix-rwsem-recursion.patch
ieee1394-nodemgr-grab-classsubsysrwsem-in.patch
ieee1394-sbp2-dont-prefer-mode-sense-10.patch
ieee1394-sbp2-enable-auto-spin-up-for-all-sbp-2.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux