Re: [PATCH 0/2] _scsih_sas_host_add early exits can crash system

2016-05-31 Thread Martin K. Petersen
e to use "mpt3sas: foo bar" in the patch descriptions. You had used "mpt3sas - foo bar". Thanks! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.ker

Re: [PATCH] Use the correct size to set block max sectors

2016-05-31 Thread Martin K. Petersen
>>>>> "Long" == Long Li writes: Long, Long> Yes, this has been fixed in that patch. I'd like to get my patch into scsi-fixes but it needs another set of eyes. Would you mind either testing or reviewing it? Thanks! -- Martin K. Petersen Oracle Linux E

Re: [PATCH] bnx2fc: replace printk() with BNX2FC_IO_DBG()

2016-05-31 Thread Martin K. Petersen
>>>>> "Maurizio" == Maurizio Lombardi writes: Maurizio> The "fcp_rsp_code = %d" message isn't an error, it's meant to Maurizio> be informative only. This patch prevents a flood of such Maurizio> messages in some situations. Applied to 4.8

Re: sd: ZBC Update Read/Write Commands to SCSI spec

2016-05-31 Thread Martin K. Petersen
; commands. Thoughts? That's correct. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/1] scsi: storvsc: Filter out storvsc messages CD-ROM medium not present

2016-06-04 Thread Martin K. Petersen
>>>>> "Cathy" == Cathy Avery writes: Cathy> When a virtual scsi DVD device is present with no image file Cathy> attached the storvsc driver logs all resulting unnecessary sense Cathy> errors whenever IO is issued to the device. Tweaked whitespace and applie

Re: [PATCH 0/3] hisi_sas: v2 hw ACPI support and fix lock

2016-06-06 Thread Martin K. Petersen
pplied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] scsi_debug: fix sleep in invalid context

2016-06-06 Thread Martin K. Petersen
oc(). Instead of Doug> using kzalloc() which reviewers didn't like, use a bucket system Doug> (64 bytes on the stack) and potentially multiple calls to Doug> sg_pcopy_from_buffer() to construct the 'data-in' buffer for the Doug> SCSI REPORT LUNS command. It would be great t

Re: [PATCH v3 2/2] Documentation/scsi: update scsi_eh.txt about ->host_failed

2016-06-06 Thread Martin K. Petersen
>>>>> "Wei" == Wei Fang writes: Wei, Wei> Update the new rules of ->host_failed. Are you going to incorporate the amendment from James? Thanks! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsu

Re: [PATCH] sd: remove redundant check for BLK_DEF_MAX_SECTORS

2016-06-06 Thread Martin K. Petersen
have the luxury of being able to generate VPDs for their attached target devices :) -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] bnx2i: fix spelling mistake "complection" -> "completion"

2016-06-06 Thread Martin K. Petersen
>>>>> "Colin" == Colin King writes: Colin> trivial fix to spelling mistake in printk message Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi&qu

Re: [PATCH v4 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-06-08 Thread Martin K. Petersen
PUs. In this case, ->host_failed will be decreased Wei> simultaneously in scsi_eh_finish_cmd() on different CPUs, and Wei> become abnormal. Applied to 4.7/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH] sd: remove redundant check for BLK_DEF_MAX_SECTORS

2016-06-08 Thread Martin K. Petersen
ower layer driver implements this Long> function in its template and it can change this value there. Those cause limits to be set for the controller. We won't know the device limits until we hit revalidate. blk_queue_max_hw_sectors() will also clamp the R/W max at BLK_DEF_MAX_SECTORS, thoug

Re: [PATCH] Add support for SCT Write Same

2016-06-08 Thread Martin K. Petersen
in libata's SCSI-ATA translation. - if (!scsi_get_vpd_page(sdev, 0x89, buffer, vpd_buf_len)) + if (!scsi_get_vpd_page(sdev, 0x89, buffer, SD_BUF_SIZE)) That vpd_buf_len is intentional. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from th

Re: block: don't check request size in blk_cloned_rq_check_limits()

2016-06-10 Thread Martin K. Petersen
ot. Why is the number of sectors in the request bigger than the queue limit? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: block: don't check request size in blk_cloned_rq_check_limits()

2016-06-11 Thread Martin K. Petersen
ors() is checking limits.max_sectors(), Hannes> but the requests are already fully formed and can extend up to Hannes> limits.max_hw_sectors(). We should not be issuing REQ_TYPE_FS requests larger than max_sectors. How did we get here? -- Martin K. Petersen Oracle Linux Engineering -- To

Re: [PATCH 1/3] sd_try_extended_inquiry for SPC-3 targets

2013-05-21 Thread Martin K. Petersen
tants at device discovery time. Did you remember to include the Block Device Characteristics VPD page in your page 0? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.

Re: PING^7 (was Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542))

2013-05-22 Thread Martin K. Petersen
ace totally wrong. cat iso.img > /dev/sr0 would have been much more in line with how Unix works... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v3 0/6] scsi_debug: bug fixes and cleanups for data integrity support

2013-05-28 Thread Martin K. Petersen
f my next DIF/DIX update that makes some of these things more palatable at the block/SCSI level. Akinobu voiced interest in finishing the scsi_debug work on top of my code. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linu

Re: PING^7 (was Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542))

2013-05-28 Thread Martin K. Petersen
mal applications. That does not preclude special cases where it may make sense to poke at the device directly. For testing purposes, for instance. But I consider it a failure when we start having applications that know about hardware intricacies, cylinders/heads/sectors, etc. That road leads strai

Re: RAID-10 keeps aborting

2013-06-05 Thread Martin K. Petersen
unfortunately a block count of 0 means "write entire device". -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] scsi: Check if the device support WRITE_SAME_10

2013-06-05 Thread Martin K. Petersen
commit adds a test for WRITE_SAME_10. No go. That'll disable WRITE SAME for drives which don't support RSOC. Which means almost all of them. I propose the following... -- Martin K. Petersen Oracle Linux Engineering [PATCH] sd: Update WRITE SAME heuristics SATA drives located be

Re: [PATCH] scsi: Check if the device support WRITE_SAME_10

2013-06-06 Thread Martin K. Petersen
ng a few specimens that report MAX WRITE SAME BLOCKS. -- Martin K. Petersen Oracle Linux Engineering [PATCH] sd: Update WRITE SAME heuristics SATA drives located behind a SAS controller would incorrectly receive WRITE SAME commands. Tweak the heuristics so that: - If REPORT SUPPORTED O

Re: [PATCH v3 0/6] scsi_debug: bug fixes and cleanups for data integrity support

2013-06-06 Thread Martin K. Petersen
ormation. That seems a bit excessive. However, I personally don't care too much about 32-bit platforms, so... Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-29 Thread Martin K. Petersen
028] scsi0 : Areca SATA Host Adapter RAID Nick> Controller Nick> Driver Version 1.20.00.15 2010/08/05 Nick> [...] Interesting. Please provide the output of: # sg_inq /dev/sdd # sg_vpd /dev/sdd # sg_vpd -p ai /dev/sdd -- Martin K. Petersen Oracle Linux Engineering -- To unsubscrib

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-29 Thread Martin K. Petersen
>>>>> "Bernd" == Bernd Schubert writes: Bernd> I tested this patch with ARC-1260 and F/W V1.49, no issues. It could be due to the firmware version discrepancy. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line &qu

Re: Kernel 3.10.3 "reset SuperSpeed USB device number 2 using xhci_hcd"

2013-07-29 Thread Martin K. Petersen
read_write_same() function. But how about we do the following instead? -- Martin K. Petersen Oracle Linux Engineering SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set If a device has the skip_vpd_pages flag set we should simply fail the scsi_get_vpd_page() call

Re: Kernel 3.10.3 "reset SuperSpeed USB device number 2 using xhci_hcd"

2013-07-29 Thread Martin K. Petersen
>>>>> "Alan" == Alan Stern writes: Alan> In the case of these bug reports, the scsi_report_opcode() call Alan> returns -EINVAL. Oh, right. Because I actually do an explicit SCSI version check in scsi_report_opcode(). That's OK, then... -- Martin K. Petersen

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-29 Thread Martin K. Petersen
erted next. Doesn't matter as far as the sg commands are concerned... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-29 Thread Martin K. Petersen
boot but we're trying to find a good blacklist trigger. And that's tricky given that Areca allows you manually specify the SCSI model string for each volume... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe

Re: Kernel 3.10.3 "reset SuperSpeed USB device number 2 using xhci_hcd"

2013-07-30 Thread Martin K. Petersen
nn. Alan> Martin, please submit your patch for inclusion in the stable Alan> kernels as soon as possible. James? [PATCH] SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set If a device has the skip_vpd_pages flag set we should simply fail the scsi_get_vpd_pa

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-30 Thread Martin K. Petersen
is to tweak the driver so that I can set skip_vpd_pages for the ATA models. Under the assumption that the SAS controllers actually feature the ATA Information VPD... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-30 Thread Martin K. Petersen
een. I can try to Bernd> confirm that tomorrow, I just need the system as it is till Bernd> tomorrow noon. That would be a great data point. I don't have any Areca boards. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line &

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-30 Thread Martin K. Petersen
I-ATA Translation layer. The controller firmware in this case. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] scsi disk: Use its own buffer for the vpd request

2013-08-01 Thread Martin K. Petersen
ify it also works for you? Do we get an appropriate error back when we try to issue WRITE SAME 10/16? If so, I'm OK with this fix. And thanks for looking into this! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe

Re: Toshiba USB disk stopped working in 3.10.3

2013-08-05 Thread Martin K. Petersen
scsi&m=137523956310061&w=2 http://marc.info/?l=linux-scsi&m=137536767805820&w=2 -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: State of big-endian for MegaRAID SAS driver

2013-08-14 Thread Martin K. Petersen
tree attached. Happy to forward port if there's interest? -- Martin K. Petersen Oracle Linux Engineering commit 906b6af65cde77a13641a476b55879424bfaae24 Author: Martin K. Petersen Date: Sat Aug 10 17:55:58 2013 -0400 megaraid_sas: Big endian support This driver only

Re: State of big-endian for MegaRAID SAS driver

2013-08-14 Thread Martin K. Petersen
>>>>> "Martin" == Martin K Petersen writes: And against upstream... -- Martin K. Petersen Oracle Linux Engineering commit 6d6db0df277b46ea538be5c70e89347436a8a114 Author: Martin K. Petersen Date: Sat Aug 10 17:55:58 2013 -0400 megarai

Re: State of big-endian for MegaRAID SAS driver

2013-08-14 Thread Martin K. Petersen
reason I did cpu_to_le16(0) etc. was mostly to annotate the endian-sensitive parameters in case somebody changes them in the future. -- Martin K. Petersen Oracle Linux Engineering diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 7bf9c5

Re: Incorrect LBA Returned from scsi_get_lba() and blk_rq_pos() (Possible DIF Impact)

2013-08-14 Thread Martin K. Petersen
>>>>> "Kamaljit" == Kamaljit Singh writes: Kamaljit> Did you get a chance to merge your changes into mainline? I'm Kamaljit> using 3.10.4 and am still seeing this issue. Thanks for the reminder. No, I'm still sitting on some PI patches that need to be

Re: State of big-endian for MegaRAID SAS driver

2013-08-15 Thread Martin K. Petersen
gets rid of the 32-bit DMA limitations on large systems. But I didn't want to clutter the initial submission. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kern

Re: [PATCH] scsi: fix the build warning

2013-08-21 Thread Martin K. Petersen
algorithm used. Also, I believe Akinobu's recent reorganization of this code in question fixed the warning. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.ker

Re: [PATCH 2/4] scsi_debug: fix logical block provisioning support when unmap_alignment != 0

2013-08-21 Thread Martin K. Petersen
>>>>> "Doug" == Douglas Gilbert writes: Doug> This is Martin's area of expertise so I hope he also acks it. Doug> Acked-by: Douglas Gilbert I believe I already did, but: Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering --

Re: [PATCH 0/9] target: Add support for EXTENDED_COPY (VAAI) offload emulation

2013-08-23 Thread Martin K. Petersen
is UNMAP all over again, just 100 times worse :( Anyway. Excited to see nab posting the patches! My copy offload code from the spring has been getting stale both in the T10 and the kernel sense. But at least we know what I'll be working on next week :) -- Martin K. Petersen Oracle Linux

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Martin K. Petersen
patch does not have few changes needed in function Sumit> "megasas_init_fw()"(inside file: megaraid_sas_base.c), Patches welcome! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the bo

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Martin K. Petersen
ort is missing from a later version of the driver... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: SCSI's heuristics for enabling WRITE SAME still need work [was: dm mpath: disable WRITE SAME if it fails]

2013-09-20 Thread Martin K. Petersen
SAME and a block count of one. But it's really icky. And I don't like the notion of actually writing things during discovery. As far as being able to trigger a restacking of the queue limits I think it's inevitable. We see more and more devices that change properties after a firm

Re: [PATCH 1/5] scsi_debug: fix buffer overrun when DIF/DIX is enabled and virtual_gb > 0

2013-09-20 Thread Martin K. Petersen
onding wrap around addresses. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/5] scsi_debug: factor out copying PI from dif_storep to prot_sglist

2013-09-20 Thread Martin K. Petersen
copies protection info to prot_sglist. Akinobu> This factors out the portion of copying protection info into a Akinobu> separate function. It will also be reused in the next change Akinobu> after supporting the opposite direction (copying prot_sglist to Akinobu> dif_storep). Acke

Re: [PATCH 4/5] scsi_debug: fix invalid value check for guard module parameter

2013-09-20 Thread Martin K. Petersen
bu> This fixes it by changing the type of scsi_debug_guard to Akinobu> 'unsigned int' instead of adding extra check for a negative Akinobu> value. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line &q

Re: [PATCH 5/5] scsi_debug: fix sparse warnings related to data integrity field

2013-09-20 Thread Martin K. Petersen
>>>>> "Akinobu" == Akinobu Mita writes: Akinobu> Each member in data integrity field tuple is big-endian. But Akinobu> the endianness of the values being compared with these members Akinobu> are not annotated. So this fixes these sparse warnings. Acked-by:

Re: [PATCH] sd: dif sector calculation

2013-09-20 Thread Martin K. Petersen
>>>>> "Keith" == Keith Busch writes: Keith> The ref tag should be the device's physical LBA rather than the Keith> 512 byte bio sector. The bip sector is just a seed value set by the application. It is not correct to scale it based on sector size or

Re: [PATCH 3/5] scsi_debug: avoid partial copying PI from prot_sglist to dif_storep

2013-09-20 Thread Martin K. Petersen
if_storep is done after all blocks are successfully verified. Akinobu> Reusing dif_copy_prot() with supporting the opposite direction Akinobu> simplifies this fix. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list

Re: [PATCH] scsi disk: Use its own buffer for the vpd request

2013-09-20 Thread Martin K. Petersen
lacklisting a specific Seagate drive. However, skip_vpd_pages is also set by USB. I'm still completely in favor of your patch to reduce the VPD buffer size. Please resubmit and feel free to add my Acked-by:. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list:

Re: SCSI's heuristics for enabling WRITE SAME still need work [was: dm mpath: disable WRITE SAME if it fails]

2013-09-24 Thread Martin K. Petersen
ENDED COPY, etc. The advantage being that we do the matching at discovery time instead of once a WRITE SAME is issued. This would also permit HBA drivers to toggle the feature on a per instance basis. I.e. if "RAID controller firmware rev is lower than XYZ, do not support WRITE SAME".

Re: [dm-devel] SCSI's heuristics for enabling WRITE SAME still need work [was: dm mpath: disable WRITE SAME if it fails]

2013-09-24 Thread Martin K. Petersen
g to fix with his patch. Maybe it would make sense for us to use -EINVAL or something similar to single out the ILLEGAL REQUEST case. While -EREMOTEIO specifically calls out for "no retry" it might be helpful to indicate that we're dealing with an unsupported command. That way

Re: SCSI's heuristics for enabling WRITE SAME still need work [was: dm mpath: disable WRITE SAME if it fails]

2013-09-25 Thread Martin K. Petersen
EGAL REQUEST when you send down a command that can't be handled. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: SCSI's heuristics for enabling WRITE SAME still need work [was: dm mpath: disable WRITE SAME if it fails]

2013-09-26 Thread Martin K. Petersen
unmap bug - I cannot Bernd> unmap the last sector: Yes, it appears there's an off-by-one bug in the UNMAP translation. Sumit, is this something you guys can look into? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v2] scsi: Avoid crashing if device uses DIX but adapter does not support it

2015-01-19 Thread Martin K. Petersen
that to avoid crashing. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 3/3] scsi: Remove VPD quirk for Seagate drives

2015-01-20 Thread Martin K. Petersen
Now that we sanity check the optimal I/O size reported by the device we no longer need to blacklist the VPD pages on certain Seagate drives. Signed-off-by: Martin K. Petersen Cc: sta...@vger.kernel.org --- drivers/scsi/scsi_devinfo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH 2/3] sd: Sanity check the optimal I/O size

2015-01-20 Thread Martin K. Petersen
. Reported-by: Chris Friesen Signed-off-by: Martin K. Petersen Cc: sta...@vger.kernel.org --- drivers/scsi/sd.c | 3 ++- drivers/scsi/sd.h | 9 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index ebf35cb64216..faf3725492ce 100644 --- a

[PATCH 1/3] scsi: Only blacklist WRITE SAME for VMware virtual disks

2015-01-20 Thread Martin K. Petersen
Commit 4089b71cc820 blacklisted WRITE SAME for all VMware disks. However, the WRITE SAME commands are supported for passthrough disks. Change the heuristic so we only blacklist virtual disks. Signed-off-by: Martin K. Petersen Reported-by: Petr Vandrovec Tested-by: Chris J Arges Cc: sta

[PATCH] block: Add discard flag to blkdev_issue_zeroout() function

2015-01-20 Thread Martin K. Petersen
if the discard request fails we will fall back to first REQ_WRITE_SAME and then a regular REQ_WRITE. Also update the callers of blkdev_issue_zero() to reflect the new flag and make sb_issue_zeroout() prefer the discard approach. Signed-off-by: Martin K. Petersen Reviewed-by: Christoph Hellwig

Re: [PATCH 1/1] scsi: Fix max transfer length for 4k disks

2015-01-29 Thread Martin K. Petersen
t;max_xfer_blocks. *blush* Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] drivers: scsi: Remove null check on sdkp

2015-03-06 Thread Martin K. Petersen
>>>>> "Tapasweni" == Tapasweni Pathak writes: Tapasweni> Remove null check on sdkp as it won't be null at this line. Thanks for the heads up. It's actually a merge snafu. The check is supposed to be if (!sdkp->ATO). I already have a patch in my q

Re: use dedicated storage for scsi_debug LUNs

2015-03-06 Thread Martin K. Petersen
on your machine without the need for any hardware . -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: use dedicated storage for scsi_debug LUNs

2015-03-06 Thread Martin K. Petersen
>>>>> "Olaf" == Olaf Hering writes: Olaf> Does that target code offer what scsi_debug offers, a bunch of Olaf> stuff listable with 'lsscsi'? The latter can be passed to Olaf> backstores/pscsi. Yes. -- Martin K. Petersen Oracle Linux Engineerin

Re: [PATCH] SCSI: sd: fix null dereference

2015-03-07 Thread Martin K. Petersen
>>>>> "Sudip" == Sudip Mukherjee writes: Sudip> we were dereferencing sdkp first and then we were checking for it Sudip> being NULL. http://marc.info/?l=linux-kernel&m=142564395705827&w=2 -- Martin K. Petersen Oracle Linux Engineering -- To un

Re: [PATCH 15/21] lpfc: Implement support for wire-only DIF devices

2015-04-07 Thread Martin K. Petersen
en if we would want to support a hack like this we'd do Christoph> it genericly an not in a driver. Agree completely. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/5] megaraid_sas : Code optimization and refactoring

2015-04-07 Thread Martin K. Petersen
servation in adapter's sepcific functions. This needs to be 7 patches and not 1. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH-v2 01/15] target: Convert DIF emulation to use cmd->prot_type

2015-04-07 Thread Martin K. Petersen
_check_prot(), go ahead and nab> use it to allow protected fabrics to function with unprotected nab> devices. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the bod

Re: [PATCH-v2 02/15] target: Add protected fabric + unprotected device support

2015-04-07 Thread Martin K. Petersen
How do you handle RDPROTECT/WRPROTECT values of 3 if the PI is not persistent? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH-v2 03/15] target: Update SPC/SBC emulation for sess_prot_type

2015-04-07 Thread Martin K. Petersen
n be exposed. nab> This is required for fabric sessions supporting T10-PI metadata to nab> backend devices that don't have protection enabled. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "un

Re: [PATCH-v2 04/15] target: Move cmd->prot_op check into target_check_write_prot

2015-04-07 Thread Martin K. Petersen
>>>>> "nab" == Nicholas A Bellinger writes: >> This patch moves the existing target_execute_cmd() check for >> cmd->prot_op into it's own function, so it's easier to add future >> support for WRITE STRIP. nab> Makes sense. Renamed to

Re: [PATCH-v2 05/15] target: Add internal WRITE_STRIP support

2015-04-07 Thread Martin K. Petersen
>>>>> "nab" == Nicholas A Bellinger writes: nab> This patch adds WRITE_STRIP support in target_check_write_prot() nab> that invokes sbc_dif_verify_write() for checking T10-PI metadata nab> before submitting the I/O to a backend driver. With Sagi's sugges

Re: [PATCH-v2 06/15] target: Move cmd->prot_op check into target_check_read_prot

2015-04-07 Thread Martin K. Petersen
>>>>> "nab" == Nicholas A Bellinger writes: nab> This patch moves the existing target_complete_ok_work() check for nab> cmd-> prot_op into it's own function, so it's easier to add future nab> support for READ INSERT. Reviewed-by: Martin K. Pete

Re: [PATCH-v2 07/15] target: Add internal READ_INSERT support

2015-04-07 Thread Martin K. Petersen
exchange protection nab> information, and would like to function with un-protected devices. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majo

Re: [PATCH 15/21] lpfc: Implement support for wire-only DIF devices

2015-04-09 Thread Martin K. Petersen
acklist. We could have an explicit whitelist as well. But it begs the question: Why on earth are 3Par not following the spec? And why don't they just fix their firmware to report the right thing? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line &q

Re: [PATCH-v2 02/15] target: Add protected fabric + unprotected device support

2015-04-13 Thread Martin K. Petersen
which checks have nab> been calculated based on WRPROTECT/RDPROTECT in nab> sbc_set_prot_op_checks(). nab> Finally in sbc_check_prot(), if PROTECT is non-zero for a backend nab> device with DIF disabled, and sess_prot_type is not set go ahead nab> and return INVALID_CDB_FIELD. Loo

Re: [PATCH 1/5] megaraid_sas : Code optimization and refactoring

2015-04-13 Thread Martin K. Petersen
in 7 patches and rest of the patches(2,3,4 and 5) will Sumit> remain unchanged. The other patches looked OK on their own. But it's probably best to repost the whole series since you'll need a review from at least one person other than me. -- Martin K. Petersen Oracle Linux Engi

Re: [PATCH 3/3] target/file: Fix UNMAP with DIF protection support

2015-04-13 Thread Martin K. Petersen
y failure. Akinobu> This fixes it by invalidating protection info for the unmapped Akinobu> region by filling with 0xff pattern. This change also adds Akinobu> helper function fd_do_prot_fill() in order to reduce code Akinobu> duplication with existing fd_format_prot(). Reviewe

Re: [RFC] Simlify dif_verify routines and fixup fileio protection information code.

2015-04-13 Thread Martin K. Petersen
bounce buffer altogether. Looks like a nice cleanup to me. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Has anyone seen this?

2015-04-14 Thread Martin K. Petersen
of 1 is "DIF Type 1" so DIX should never get enabled. But I'll take a look... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] sd: Unregister integrity profile

2015-04-14 Thread Martin K. Petersen
The new integrity code did not correctly unregister the profile for SD disks. Call blk_integrity_unregister() when we release a disk. Signed-off-by: Martin K. Petersen Reported-by: Sagi Grimberg CC: sta...@vger.kernel.org # v3.17+ --- drivers/scsi/sd.c | 1 + 1 file changed, 1 insertion

[PATCH] sd: Fix missing ATO tag check

2015-04-14 Thread Martin K. Petersen
3aec2f41a8bae introduced a merge error where we would end up check for sdkp instead of sdkp->ATO. Fix this so we register app tag capability correctly. Signed-off-by: Martin K. Petersen Cc: # v3.17+ --- drivers/scsi/sd_dif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [RFC] Simlify dif_verify routines and fixup fileio protection information code.

2015-04-15 Thread Martin K. Petersen
> read back you will see PI errors (you currently don't see those Sagi> because your backend drive contains escape values I assume). Sagi> I'd say the correct fix is to calc PI for the block Indeed! Sagi> and "write_same" it... Well, the ref tag needs to be incremented

Re: [RFC] Simlify dif_verify routines and fixup fileio protection information code.

2015-04-15 Thread Martin K. Petersen
NULL as block >>> layer didn't allocate it for WRITE_SAME. Sagi> Actually this is a bug. Why didn't the initiator allocate Sagi> integrity meta-data for WRITE_SAME? Looking at the code it looks Sagi> like it should. We don't issue WRITE SAME with PI so there is n

Re: [RFC] Simlify dif_verify routines and fixup fileio protection information code.

2015-04-16 Thread Martin K. Petersen
requirement that the device, if formatted with PI, will generate and write the correct protection information when WRPROTECT is 0. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES

2012-11-26 Thread Martin K. Petersen
to them either. What if you have an SSD behind one of them? Stefan> Hence let's remove the no_report_opcodes and no_write_same Stefan> blacklist flags so that these commands can be used on Stefan> respectively capable targets. I just erred on the side of caution. If you are happy

Re: [PATCH 0/2] Change type-2 dif to use rq embedded 32 byte cdb

2012-11-26 Thread Martin K. Petersen
se by always allocating 32-byte CDBs. Type 2 is a really rare corner case. So while I agree we should handle the UA scenario correctly, I'm not sure I agree with the fix. Why are you messing with Type 2 devices in the first place? These should really only be used inside disk arrays. --

Re: [PATCH 0/2] Change type-2 dif to use rq embedded 32 byte cdb

2012-12-19 Thread Martin K. Petersen
then the drive will Scott> return the PI interleaved with the data -- it's this raw Scott> pass-through functionality that we need. Also shouldn't be a problem. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

LSF/MM Summit CFP

2013-01-17 Thread Martin K. Petersen
se to improve this year's, please also send that to: lsf...@lists.linux-foundation.org Thank you on behalf of the program committee: Storage: Martin K. Petersen Jens Axboe James Bottomley Filesystems: Ric Wheeler Christoph Hellwig Jaeg

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-07 Thread Martin K. Petersen
t. But the right way would be to pass the ref tag seed in as part of the IOCB and let sd or the HBA hardware do the remapping. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-07 Thread Martin K. Petersen
d by the applications interested in this. It's a lot easier to tweak a few IOCB fields than it is to rewrite how an application does I/O. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a mess

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-07 Thread Martin K. Petersen
own tags in userspace is also Ben> interesting. However, the app tag is really only good for disk drives. Most array vendors use it internally. And going forward we're going to use it for access control instead of opaque storage. So exposing the application tag space to userland applicat

Re: [SCSI] sd: Ensure we correctly disable devices with unknown protection type

2013-02-07 Thread Martin K. Petersen
>>>>> "Dan" == Dan Carpenter writes: Dan> This patch wasn't applied. Nope, but it hasn't been forgotten. I have it in my resubmit queue with a couple of other stable fixes. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-07 Thread Martin K. Petersen
>>>>> "Darrick" == Darrick J Wong writes: Darrick> Is there a newer one than this? Darrick> https://oss.oracle.com/projects/oracleasm/files/sources/ UEK2 git. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line

Re: Incorrect LBA Returned from scsi_get_lba() and blk_rq_pos() (Possible DIF Impact)

2013-02-12 Thread Martin K. Petersen
an incorrect ref tag. I have some patches in the pipeline that fixes this. They also add support for protection intervals different from the logical block size. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi&quo

Re: [PATCH] [SCSI] sd: workaround invalid OPTIMAL TRANSFER LENGTH

2013-04-24 Thread Martin K. Petersen
al_ BLOCK LIMITS VPD field was not specified (0). My only real objection is that UINT_MAX appears to be completely coincidental. What if the next drive specifies UINT_MAX-1 or $RANDOM? Lacking a decent heuristic I'd rather just blacklist the offending drive using the skip_vpd_pages knob we already

Re: T10 WCE interpretation in Linux & device level access

2013-04-24 Thread Martin K. Petersen
d a sync_nv parameter to scsi_disk's sysfs that could be used to set that bit when issuing flush_cmnd. But it would be something we would do manually on a per-device basis and not something that is automatically keyed off of NV_SUP (SYNC_NV doesn't require NV_SUP, btw., so that's not even

Re: [PATCH 2/6] scsi_debug: prohibit scsi_debug_unmap_granularity == scsi_debug_unmap_alignment

2013-04-24 Thread Martin K. Petersen
the only Akinobu> difference with scsi_debug_unmap_alignment == 0 is the logical Akinobu> blocks from 0 to scsi_debug_unmap_alignment - 1 cannot be Akinobu> unmapped. But the difference is not properly handled in the Akinobu> current code. Akinobu> So this prohibits such unusual setting. Acke

<    3   4   5   6   7   8   9   10   11   12   >