[PATCH 03/14] block: Deprecate integrity tagging functions

2014-05-28 Thread Martin K. Petersen
None of the filesystems appear interested in using the integrity tagging feature. Potentially because very few storage devices actually permit using the application tag space. Deprecate the tagging functions. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- Documentation/block

[PATCH 02/14] block: Replace bi_integrity with bi_special

2014-05-28 Thread Martin K. Petersen
a pointer to the integrity payload (when applicable). Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- Documentation/block/data-integrity.txt | 10 +- block/bio-integrity.c | 23 --- drivers/scsi/sd_dif.c | 8

[PATCH 13/14] lib: Add T10 Protection Information functions

2014-05-28 Thread Martin K. Petersen
The T10 Protection Information format is also used by some devices that do not go through the SCSI layer (virtual block devices, NVMe). Relocate the relevant functions to a library that can be used without involving SCSI. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block

[PATCH 05/14] block: Deprecate the use of the term sector in the context of block integrity

2014-05-28 Thread Martin K. Petersen
The protection interval is not necessarily tied to the logical block size of a block device. Stop using the terms sector and sectors. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/bio-integrity.c | 46 +- block/blk-integrity.c

[PATCH 11/14] block: Don't merge requests if integrity flags differ

2014-05-28 Thread Martin K. Petersen
We'd occasionally merge requests with conflicting integrity flags. Introduce a merge helper which checks that the requests have compatible integrity payloads. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/blk-integrity.c | 36 ++-- block

[PATCH 12/14] block: Add specific data integrity errors

2014-05-28 Thread Martin K. Petersen
Introduce a set of error codes that can be used by the block integrity subsystem to signal which class of error was encountered by either the I/O controller or the storage device. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/blk-core.c | 12

[PATCH 07/14] block: Add prefix to block integrity profile flags

2014-05-28 Thread Martin K. Petersen
Add a BLK_ prefix to the integrity profile flags. Also rename the flags to be more consistent with the generate/verify terminology in the rest of the integrity code. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/bio-integrity.c | 4 ++-- block/blk-integrity.c | 43

[PATCH 04/14] block: Remove bip_buf

2014-05-28 Thread Martin K. Petersen
bip_buf is not really needed so we can remove it. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/bio-integrity.c | 10 ++ include/linux/bio.h | 3 --- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/block/bio-integrity.c b/block/bio-integrity.c

[PATCH 06/14] block: Clean up the code used to generate and verify integrity metadata

2014-05-28 Thread Martin K. Petersen
Instead of the operate parameter we pass in a seed value and a pointer to a function that can be used to process the integrity metadata. The generation function is changed to have a return value to fit into this scheme. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/bio

[PATCH 08/14] block: Add a disk flag to block integrity profile

2014-05-28 Thread Martin K. Petersen
with protection information. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- Documentation/ABI/testing/sysfs-block | 9 + block/blk-integrity.c | 11 +++ drivers/scsi/sd_dif.c | 8 +++- include/linux/blkdev.h| 1 + 4

[PATCH 10/14] block: Integrity checksum flag

2014-05-28 Thread Martin K. Petersen
Make the choice of checksum a per-I/O property by introducing a flag that can be inspected by the SCSI layer. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/bio-integrity.c | 3 +++ drivers/scsi/sd_dif.c | 6 -- include/linux/bio.h| 1 + include/linux/blkdev.h

[PATCH 14/14] sd: Honor block layer integrity handling flags

2014-05-28 Thread Martin K. Petersen
property. Update sd_protect_op to communicate the relevant information to the low-level device driver via a set of flags in scsi_cmnd. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- drivers/scsi/sd.c| 56 drivers/scsi/sd.h

[PATCH 1/6] block: Replace bi_integrity with bi_special

2014-05-28 Thread Martin K. Petersen
a pointer to the integrity payload (when applicable). Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- Documentation/block/data-integrity.txt | 10 +- block/bio-integrity.c | 23 --- drivers/scsi/sd_dif.c | 8

[PATCH 3/6] block: Introduce copy offload library function

2014-05-28 Thread Martin K. Petersen
K. Petersen martin.peter...@oracle.com --- block/blk-lib.c| 85 ++ include/linux/blkdev.h | 2 ++ 2 files changed, 87 insertions(+) diff --git a/block/blk-lib.c b/block/blk-lib.c index 97a733cf3d5f..5a0afc6e933e 100644 --- a/block/blk-lib.c

[PATCH 6/6] [SCSI] sd: Implement copy offload support

2014-05-28 Thread Martin K. Petersen
. The copy block range limit can be overridden in scsi_disk's max_copy_block sysfs attribute. sd_setup_copy_command() is used to prepare any REQ_COPY requests. The relevant descriptors are placed in a payload page akin to REQ_DISCARD. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com

[PATCH 5/6] [SCSI] Look up and store NAA if VPD page 0x83 is present

2014-05-28 Thread Martin K. Petersen
Copy offloading requires us to know the NAA descriptor for both source target device. This descriptor is mandatory in the Device Identification VPD page. Locate this descriptor in the returned VPD data so we don't have to do lookups for every copy command. Signed-off-by: Martin K. Petersen

Copy offload

2014-05-28 Thread Martin K. Petersen
| 21 ++ include/linux/blkdev.h | 22 ++ include/scsi/scsi_device.h |3 include/uapi/linux/fs.h|1 18 files changed, 553 insertions(+), 41 deletions(-) -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from

[PATCH 2/6] block: Implement support for copy offload operations

2014-05-28 Thread Martin K. Petersen
. This descriptor contains the source bdev and source sector for the copy operation. Target bdev/sector/size are described by the bio proper. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- Documentation/ABI/testing/sysfs-block | 9 + block/blk-core.c | 5

[PATCH 4/6] block: Copy offload ioctl

2014-05-28 Thread Martin K. Petersen
Add an ioctl which can be used to clone a block range within a single block device. This is useful for testing the copy offload code. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- block/ioctl.c | 35 +++ include/uapi/linux/fs.h | 1

Re: [PATCH 6/6] [SCSI] sd: Implement copy offload support

2014-05-29 Thread Martin K. Petersen
. Yep. That's what I used for development. -- 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 00/33] SG table chaining support

2007-07-16 Thread Martin K. Petersen
. With the old stack we'd be stuck at 512KB because the sg limitations caused us to come just short of 1MB... -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [RFC] Fix device not ready printk

2007-07-19 Thread Martin K. Petersen
Matthew == Matthew Wilcox [EMAIL PROTECTED] writes: Matthew After three weeks with no discussion, I guess it may as well Matthew be applied. Matthew scsi: Better error messages when device not ready Looks good to me. Acked-by: Martin K. Petersen [EMAIL PROTECTED] -- Martin K. Petersen

Re: questions on scsi_level Read command?

2007-07-27 Thread Martin K. Petersen
that we'll use READ(10) for LBAs below 2TB and READ(16) for LBAs above (assuming 512 byte sectors). READ(32) / WRITE(32) are slightly different and are there to support devices formatted with DIF Type 2 protection. -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from this list

Re: Is there any tool can perform a READ Capacity command?

2007-08-02 Thread Martin K. Petersen
jidong == jidong xiao [EMAIL PROTECTED] writes: jidong I know sg_modes can help to perform a SCSI MODE SENSE command, jidong is there any tool/command that can perform a READ Capacity jidong command? sg_readcap -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from

Re: [PATCH 2.6.13-rc6] remove dead reset function from cpqfcTS driver

2005-08-16 Thread Martin K. Petersen
help... -- Martin K. Petersen http://mkp.net/ - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [patch] Re: SCSI logging sucks

2007-02-07 Thread 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] SCSI: Make error printing more user friendly

2007-02-19 Thread Martin K. Petersen
of this. It can probably be fixed by James including blkdev.h from scsi_device.h You must have had a reject on scsi_device.h. My patch did include linux/blkdev.h to fix that very issue. -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from this list: send the line unsubscribe linux

Re: end to end error recovery musings

2007-02-27 Thread Martin K. Petersen
Eric == Moore, Eric [EMAIL PROTECTED] writes: Eric Martin K. Petersen on Data Intergrity Feature, which is also Eric called EEDP(End to End Data Protection), which he presented some Eric ideas/suggestions of adding an API in linux for this. T10 DIF is interesting for a few things

Re: end to end error recovery musings

2007-02-27 Thread Martin K. Petersen
similar) in the ATA camp. So for now it's a SCSI-only thing. I encourage people to lean on their favorite disk manufacturer. This would be a great feature to have on SATA too... -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from this list: send the line unsubscribe linux

[PATCH 1/4] SCSI: constants.c cleanup, verbose result printing

2007-02-27 Thread Martin K. Petersen
() with scsi_print_result() which is verbose when CONFIG_SCSI_CONSTANTS is on. Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- drivers/scsi/constants.c | 267 +-- include/scsi/scsi_dbg.h | 10 + 2 files changed, 151 insertions(+), 126 deletions

[PATCH 2/4] SCSI: Make error printing more verbose

2007-02-27 Thread Martin K. Petersen
This patch enhances SCSI error printing by: - Making use of scsi_print_result() in the completion functions. - Having scmd_printk() output the disk name (when applicable). Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- drivers/scsi/scsi.c| 47

[PATCH 3/4] SCSI: Make sd printing use a common prefix

2007-02-27 Thread Martin K. Petersen
that output is consistent Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- drivers/scsi/sd.c | 253 -- include/scsi/sd.h | 70 ++ 2 files changed, 165 insertions(+), 158 deletions(-) Index: scsi-misc-2.6/drivers/scsi/sd.c

[PATCH 4/4] SCSI: Convert sd logging to new printk helpers

2007-02-27 Thread Martin K. Petersen
Convert the sd.c SCSI logging calls to scmd_printk()/sd_printk() instead of plain printk(). Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- sd.c | 50 +- 1 files changed, 29 insertions(+), 21 deletions(-) Index: scsi-misc-2.6

[PATCH] SCSI: Update ASC list

2007-02-28 Thread Martin K. Petersen
Add missing additional sense code and provide pointer to upstream reference (from Doug Gilbert). Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- constants.c |5 + 1 files changed, 5 insertions(+) Index: scsi-misc-2.6/drivers/scsi/constants.c

RE: end to end error recovery musings

2007-02-28 Thread Martin K. Petersen
for all the other sectors Eric within the boundary. In other words you only support one app tag per request and not per sector? -- Martin K. Petersen Oracle Linux Engineering - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED

[PATCH] SCSI: Update ASC list and make it const

2007-02-28 Thread Martin K. Petersen
Add missing additional sense code and provide pointer to upstream reference (from Doug Gilbert). Add missing const (from Michael Tokarev). Signed-off-by: Martin K. Petersen [EMAIL PROTECTED] --- constants.c |7 ++- 1 files changed, 6 insertions(+), 1 deletion(-) Index: scsi-misc

Re: [PATCH] SCSI: Update ASC list and make it const

2007-02-28 Thread Martin K. Petersen
Daniel == Daniel J Priem [EMAIL PROTECTED] writes: Daniel - * http://www.t10.org/lists/asc-num.txt+ */ Daniel + * http://www.t10.org/lists/asc-num.txt */ Daniel its a typo. The diff looks fine both here and in the archives. Maybe your mailer mangled it? -- Martin K. Petersen Oracle

Re: end to end error recovery musings

2007-02-28 Thread Martin K. Petersen
James == James Bottomley [EMAIL PROTECTED] writes: James However, I could see the SATA manufacturers selling capacity at James 512 (or the new 4096) sectors but allowing their OEMs to James reformat them 520 (or 4160) 4104. It's 8 bytes per hardware sector. At least for T10... -- Martin K

Re: [SCSI] mpt2sas T10 DIF fixes

2012-08-17 Thread Martin K. Petersen
an incorrect NVDATA flag from within the driver. Instead LSI has promised to revert to the original behavior in their firmware/NVDATA updates. Eric, can you give us an update? There was another bug report on linux-scsi just a couple of weeks ago. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi_debug: Fix off-by-one bug when unmapping region

2012-08-17 Thread Martin K. Petersen
block to unmap + 1. However in Lukas the condition it is handled as the last block of the region to Lukas unmap. Acked-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: [patch 1/2]block: handle merged discard request

2012-08-17 Thread Martin K. Petersen
quite finish the block stuff, mainly due to some conflicts with a few topology changes I also have pending. I'll take a look at your series. Maybe I'll swap things around and put the topology changes on top instead of below. Leverage some of the work you did... -- Martin K. Petersen Oracle

Re: [SCSI] mpt2sas T10 DIF fixes

2012-08-19 Thread Martin K. Petersen
logical block sizes that are not powers of two. -- 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] mpt2sas T10 DIF fixes

2012-08-19 Thread Martin K. Petersen
in the Standard Inquiry VPD page). We don't support driving the HBA in PI mode with a non-PI target. -- 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

Re: [SCSI] mpt2sas T10 DIF fixes

2012-08-20 Thread Martin K. Petersen
/disable/configure T10 PI for Pasi md/dm raid? Perhaps the Pasi bdev/integrite/{write_enable|read_verify} work directly for the Pasi md/dm device? You don't have to configure anything. If all component devices are capable the md/dm device will register a suitable integrity profile. -- Martin K

Re: [SCSI] mpt2sas T10 DIF fixes

2012-08-20 Thread Martin K. Petersen
provide the same LBA count regardless of whether PI is enabled or not. So there isn't much point in not enabling it. -- 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

Re: [SCSI] mpt2sas T10 DIF fixes

2012-08-22 Thread Martin K. Petersen
of metadata for a parity sector is not valid T10 protection information, for instance. -- 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

[PATCH] block/scsi: Allow request and error handling timeouts to be specified

2012-08-28 Thread Martin K. Petersen
error handling code. However, for some fast-fail scenarios it is necessary to be able to tune this as it can take several iterations (bus device, target, bus, controller) before we give up. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com diff --git a/Documentation/ABI/testing/sysfs

[PATCH] block: Provide I/O alignment statistics

2012-08-28 Thread Martin K. Petersen
respectively. There are separate metrics for reads and writes and the reported device alignment is taken into account. The statistics are available in block/alignment_stat and block/part/alignment_stat. The output format is documented in Documentation/ABI/testing/sysfs-block. Signed-off-by: Martin K. Petersen

[PATCH 1/5] sd: Avoid remapping bad reference tags

2012-08-28 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com It does not make sense to translate ref tags with unexpected values. Instead we simply ignore them and let the upper layers catch the problem. Ref tags that contain the expected value are still remapped. Signed-off-by: Martin K. Petersen

[PATCH 2/5] sd: Allow protection_type to be overridden

2012-08-28 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com We have encountered a few devices that misbehaved when operating in T10 PI mode. Allow T10 PI protection type to be overridden from userland. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- drivers/scsi/sd.c | 25

[PATCH 3/5] scsi: Disable DIF on Hitachi Ultrastar 15K300

2012-08-28 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Hitachi Ultrastar 15K300 is quirky. Disable T10 PI (DIF). Signed-off-by: Martin K. Petersen martin.peter...@oracle.com --- drivers/scsi/scsi_devinfo.c |1 + drivers/scsi/scsi_scan.c|3 +++ include/scsi/scsi_device.h |4

[PATCH 4/5] mpt2sas: Return the correct sense key for DIF errors

2012-08-28 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Only a target device should return ABORTED COMMAND when a PI error is discovered. The HBA should always set the sense key to ILLEGAL REQUEST. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com Cc: nagalakshmi.nandig...@lsi.com Cc

[PATCH 5/5] mpt2sas: Add a module parameter that permits overriding protection capabilities

2012-08-28 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Add a parameter that allows the host protection capabilities mask to be provided at module load time. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com Cc: nagalakshmi.nandig...@lsi.com Cc: eric.mo...@lsi.com --- drivers/scsi

[PATCH 2/8] block: Consolidate command flag and queue limit checks for merges

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com - blk_check_merge_flags() verifies that cmd_flags / bi_rw are compatible. This function is called for both req-req and req-bio merging. - blk_rq_get_max_sectors() and blk_queue_get_max_sectors() can be used to query the maximum

[PATCH 4/8] block: Make blkdev_issue_zeroout use WRITE SAME

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com If the device supports WRITE SAME, use that to optimize zeroing of blocks. If the device does not support WRITE SAME or if the operation fails, fall back to writing zeroes the old-fashioned way. Signed-off-by: Martin K. Petersen martin.peter

[PATCH 1/8] block: Clean up special command handling logic

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Remove special-casing of non-rw fs style requests (discard). The nomerge flags are consolidated in blk_types.h, and rq_mergeable() and bio_mergeable() have been modified to use them. bio_is_rw() is used in place of bio_has_data() a few places

[PATCH 5/8] block: ioctl to zero block ranges

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Introduce a BLKZEROOUT ioctl which can be used to clear block ranges by way of blkdev_issue_zeroout(). Signed-off-by: Martin K. Petersen martin.peter...@oracle.com Acked-by: Mike Snitzer snit...@redhat.com --- block/ioctl.c | 27

[PATCH 6/8] scsi: Add a report opcode helper

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com The REPORT SUPPORTED OPERATION CODES command can be used to query whether a given opcode is supported by a device. Add a helper function that allows us to look up commands. We only issue RSOC if the device reports compliance with SPC-3 or later

[PATCH 3/8] block: Implement support for WRITE SAME

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com The WRITE SAME command supported on some SCSI devices allows the same block to be efficiently replicated throughout a block range. Only a single logical block is transferred from the host and the storage device writes the same data to all blocks

[PATCH 8/8] sd: Implement support for WRITE SAME

2012-09-18 Thread Martin K. Petersen
From: Martin K. Petersen martin.peter...@oracle.com Implement support for WRITE SAME(10) and WRITE SAME(16) in the SCSI disk driver. - We set the default maximum to 0x because there are several devices out there that only support two-byte block counts even with WRITE SAME(16). We only

Re: [PATCH 07/22] [SCSI] mpt2sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081

2014-12-10 Thread Martin K. Petersen
value mean? Sreekanth The meaning of this log info value is Virtual IO has failed Sreekanth and has to be retried. OK, I'd prefer to see that documented in the patch. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: [PATCH 09/22] [SCSI] mpt2sas, mpt3sas: Added a support to set cpu affinity for each MSIX vector enabled by the HBA

2014-12-10 Thread Martin K. Petersen
are you reverting to iterating over the queues? A while back I fixed this up so it wouldn't fail when nr_cpus the number of reply queues. -- 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

Re: [PATCH 06/22] [SCSI] mpt2sas, mpt3sas: Removing uppper boundary restriction for the module parameter max_sgl_entries

2014-12-10 Thread Martin K. Petersen
{ ioc-shost-sg_tablesize = MPT2SAS_SG_DEPTH; } Wouldn't it be better to print the new scatterlist limit after it has been clamped to reflect what it's actually being set to? -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] scsi:storvsc enable reading from VPD pages on SPC-2

2014-12-10 Thread Martin K. Petersen
, BLIST_TRY_VPD_PAGES}, Is that version field meaningful or is it safe for us to inquire about VPD pages without problems on older versions? -- 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

Re: [PATCH] scsi:storvsc enable reading from VPD pages on SPC-2

2014-12-11 Thread Martin K. Petersen
block provisioning heuristics and is not affected by no_write_same at all. -- 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

Re: T10-PI: Getting failed tag info

2014-12-11 Thread Martin K. Petersen
tooling to ensure that the right things are reported when a PI error is injected at various places in the stack. One thing that needs to be done is to make returning these new errors to userland conditional on !BIP_BLOCK_INTEGRITY. I'll put that on my list. -- Martin K. Petersen Oracle Linux

Re: T10-PI: Getting failed tag info

2014-12-15 Thread Martin K. Petersen
. My original patch did this. More on that in my response to hch... -- 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

Re: T10-PI: Getting failed tag info

2014-12-15 Thread Martin K. Petersen
struct thing. Open to ideas. The many-clones-to-one-completion-status issue isn't entirely trivial to tackle. -- 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

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

2015-01-14 Thread Martin K. Petersen
)) { Failing more gracefully is OK with me. Acked-by: Martin K. Petersen martin.peter...@oracle.com -- 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

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

2015-01-19 Thread Martin K. Petersen
. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- 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] block: Add discard flag to blkdev_issue_zeroout() function

2015-01-20 Thread Martin K. Petersen
or 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 martin.peter...@oracle.com Reviewed

[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 martin.peter...@oracle.com Cc: sta...@vger.kernel.org --- drivers/scsi/scsi_devinfo.c | 1 - 1 file changed, 1 deletion

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

2015-01-20 Thread Martin K. Petersen
. Reported-by: Chris Friesen chris.frie...@windriver.com Signed-off-by: Martin K. Petersen martin.peter...@oracle.com 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

Re: [PATCH 1/2] target: Don't arbitrary limit I/O size to fabric_max_sectors

2015-01-09 Thread Martin K. Petersen
exception status. Given that you're already splitting I/Os in IBLOCK I think it would probably be better to pick a size you're comfortable with. 4 or 8 megs sound reasonable to be -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: [PATCH 06/22] [SCSI] mpt2sas, mpt3sas: Removing uppper boundary restriction for the module parameter max_sgl_entries

2015-01-09 Thread Martin K. Petersen
for the message log whenever the user sets Sreekanth the max_sgl_entries to a value greater than Sreekanth SCSI_MAX_SG_SEGMENTS to warn about the kernel definition Sreekanth overriding. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 09/22] [SCSI] mpt2sas, mpt3sas: Added a support to set cpu affinity for each MSIX vector enabled by the HBA

2015-01-09 Thread Martin K. Petersen
. 4. then call Sreekanth the free_cpumask_var API to free the memory allocated in step Sreekanth 2. (Still dreaming of a combined mpt2sas and mpt3sas so I wouldn't have to review everything twice). Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux

Re: T10-PI: Getting failed tag info

2015-01-06 Thread Martin K. Petersen
. What does that buy us? I agree with not leaking any of the new errors to unsuspecting applications and only passing them out if the caller has explicitly enabled DIX. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: [PATCH 06/22] [SCSI] mpt2sas, mpt3sas: Removing uppper boundary restriction for the module parameter max_sgl_entries

2015-01-06 Thread Martin K. Petersen
provided as override value. At the very least print a warning if you subsequently clamp the value to MAX_SG_CHAIN_SEGMENTS. Requested number of segments %u is bigger than kernel max %u. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line

Re: [PATCH 6/8] megaraid_sas : Reserve commands for IOCTLs and internal DCMDs

2015-01-06 Thread Martin K. Petersen
, increased per controller Sumit can_queue. Behavior of MFI controllers will remain unchanged. This whole reserved commands business seems a bit brittle to me. But I don't have any particular objections to the code. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen

Re: [PATCH 8/8] megaraid_sas : Driver version update

2015-01-06 Thread Martin K. Petersen
Sumit == sumit.sax...@avagotech.com writes: Sumit Update megaraid_sas driver version. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body

Re: [LSF/MM ATTEND] discuss blk-mq related to DM-multipath and status of XCOPY

2015-01-06 Thread Martin K. Petersen
, I'd like to get that sorted out too. It got stuck on running out of request flags and that requires some block layer surgery. I'll try to get that piece done right away for 3.20 so we can get xcopy into 3.21. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list

Re: [dm-devel] [LSF/MM ATTEND] discuss blk-mq related to DM-multipath and status of XCOPY

2015-01-06 Thread Martin K. Petersen
Hannes == Hannes Reinecke h...@suse.de writes: Hannes Yep. That definitely needs to be discussed. Especially we'd Hannes need to discuss how to handle exceptions, seeing that XCOPY Hannes might fail basically at any time. Like any SCSI command :) -- Martin K. Petersen Oracle Linux

Re: [PATCH 1/8] megaraid_sas : Endianness related bug fixes and code optimization

2015-01-06 Thread Martin K. Petersen
should be 256bytes Sumit aligned. Code is optimized to reduce the size of frame for fusion Sumit adapters and make the MFI frame size calculation a bit Sumit transparent and readable. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/8] megaraid_sas : Fix the problem of non-existing VD exposed to host

2015-01-06 Thread Martin K. Petersen
-by: Martin K. Petersen martin.peter...@oracle.com -- 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 5/8] megaraid_sas : Complete outstanding IOCTLs before killing adapter

2015-01-06 Thread Martin K. Petersen
don't get stuck in wait state Sumit and IOCTLs are returned to application. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- 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

Re: [PATCH 7/8] megaraid_sas : Remove redundant code of memset load_balance_info to zero

2015-01-06 Thread Martin K. Petersen
Sumit == sumit.sax...@avagotech.com writes: Sumit struct fusion_context *fusion is already memset to '0', so remove Sumit redundant code of meset fusion-load_balance_info to '0'. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 07/22] [SCSI] mpt2sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081

2015-01-06 Thread Martin K. Petersen
. Petersen martin.peter...@oracle.com -- 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 4/8] megaraid_sas : Disable interrupt_mask before enabling hardware interrupts

2015-01-06 Thread Martin K. Petersen
Sumit == sumit.sax...@avagotech.com writes: Sumit Update driver mask_interrupts before enable/disable hardware Sumit interrupt in order to avoid missing interrupts because of Sumit mask_interrupts still set to 1 and hardware interrupts are Sumit enabled. Reviewed-by: Martin K. Petersen

Re: [PATCH 2/8] megaraid_sas : Support for secure JBOD

2015-01-06 Thread Martin K. Petersen
commands to JBOD will be sent via Sumit fastpath. 2) If firmware does not support SED JBOD, driver will Sumit fall back to old design .i.e send all JBOD IOs via fastpath. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe

Re: [dm-devel] [LSF/MM ATTEND] discuss blk-mq related to DM-multipath and status of XCOPY

2015-01-08 Thread 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 1/2] target: Don't arbitrary limit I/O size to fabric_max_sectors

2015-01-08 Thread Martin K. Petersen
values. Reporting queue_max_hw_sectors sounds sane to me. What's your concern wrt. older 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

Re: [PATCH 1/8] megaraid_sas : Endianness related bug fixes and code optimization

2015-01-08 Thread Martin K. Petersen
the code works fine on big endian with this patch in place. -- 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: [dm-devel] [LSF/MM ATTEND] discuss blk-mq related to DM-multipath and status of XCOPY

2015-01-07 Thread Martin K. Petersen
the manual procedure. It saves the data a roundtrip on the fabric. That itself may be more valuable than a direct bandwidth win if there is concurrent I/O on the wire. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body

Re: use dedicated storage for scsi_debug LUNs

2015-03-06 Thread Martin K. Petersen
Olaf == Olaf Hering o...@aepfle.de 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 Engineering -- To unsubscribe from this list: send

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

2015-03-06 Thread Martin K. Petersen
Tapasweni == Tapasweni Pathak tapaswenipat...@gmail.com 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 queue to fix this. -- Martin K

Re: use dedicated storage for scsi_debug LUNs

2015-03-06 Thread 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] SCSI: sd: fix null dereference

2015-03-07 Thread Martin K. Petersen
Sudip == Sudip Mukherjee sudipm.mukher...@gmail.com writes: Sudip we were dereferencing sdkp first and then we were checking for it Sudip being NULL. http://marc.info/?l=linux-kernelm=142564395705827w=2 -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send

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

2015-01-29 Thread Martin K. Petersen
* Reviewed-by: Martin K. Petersen martin.peter...@oracle.com -- 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

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

2015-04-13 Thread Martin K. Petersen
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(). Reviewed-by: Martin K. Petersen martin.peter

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

2015-04-13 Thread Martin K. Petersen
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 Engineering -- To unsubscribe from

<    1   2   3   4   5   6   7   8   9   10   >