Re: [PATCH] megaraid: update version reported by MEGAIOC_QDRVRVER

2007-04-24 Thread David Milburn
Christoph Hellwig wrote: On Thu, Apr 19, 2007 at 12:10:24PM -0500, David Milburn wrote: Update the driver version reported by MEGAIOC_QDRVRVER to match LSI_COMMON_MOD_VERSION. Why does this matter? It is needed so that the correct driver version is reported by user-space tools that use

Re: [RFC PATCH]: Rewritten ESP driver, porters needed!

2007-04-24 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 24 Apr 2007 13:45:27 +0100 > Oh, btw - there is a problem with the generic code beeing esp.ko - > we already have drivers/char/esp.c which buids into esp.ko for > ISA platforms, which have a bit of overlap with ESP-using platforms. > Maybe the

Re: [PATCH]: Final ESP driver rewrite

2007-04-27 Thread David Miller
From: Jan Engelhardt <[EMAIL PROTECTED]> Date: Fri, 27 Apr 2007 09:57:34 +0200 (MEST) > > On Apr 27 2007 00:28, David Miller wrote: > > >This is the patch I intend to send to Linus via my > >sparc-2.6 tree. > > > >Thanks to everyone fo

Re: [PATCH]: Final ESP driver rewrite

2007-04-27 Thread David Miller
From: Jan Engelhardt <[EMAIL PROTECTED]> Date: Fri, 27 Apr 2007 10:33:30 +0200 (MEST) > Well the patch looks like it's done in one commit (rather than two - > delete+add), but that's probably just because it's the diff over both commits. I didn't do it in multiple commits, I did it in one. If I

Re: [RFC PATCH]: Rewritten ESP driver, porters needed!

2007-04-27 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Fri, 27 Apr 2007 16:16:58 +0100 > aic7xxx might not be the best driver to look at either :) In practice > a softirq has short enough latency so this doesn't matter, but you > should probably benchmark it on your hardware. 53x700.c which is > the

Re: [PATCH] esp_scsi.c: fix compilation

2007-04-27 Thread David Miller
From: Alexey Dobriyan <[EMAIL PROTECTED]> Date: Sat, 28 Apr 2007 02:09:01 +0400 > irqreturn.h for irqreturn_t and dma_addr_t being u128 warnings ;-) > > Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> I'll apply this, thanks. - To unsubscribe from this list: send the line "unsubscribe linux-s

Re: SAVE_DATA / RESTORE_POINTERS message confusion

2007-04-29 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Sun, 29 Apr 2007 16:18:19 -0500 > On Sun, 2007-04-29 at 22:56 +0200, Guennadi Liakhovetski wrote: > > 2. are they ever sent apart from when accompanying the DISCONNECT / > > RESELECT? > > I've never seen an occasion, no. I have. > > 3. if "yes" t

Re: SAVE_DATA / RESTORE_POINTERS message confusion

2007-04-30 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Mon, 30 Apr 2007 13:24:07 -0500 > On Mon, 2007-04-30 at 20:15 +0200, Guennadi Liakhovetski wrote: > > Ok, looking through t10 docs there seem to be quite a few functions for > > the SAVE DATA POINTERS / MODIFY DATA POINTER / RESTORE POINTERS (btw, e

RE: [RFC] [PATCH 4/5] qla4xxx: Add IPv6 support and misc

2007-05-07 Thread David Somayajulu
> From: Mike Christie [mailto:[EMAIL PROTECTED] > Sent: Monday, May 07, 2007 11:31 AM > David C Somayajulu wrote: > > Signed-off-by: David Somayajulu <[EMAIL PROTECTED]> > > > > --- > > drivers/scsi/qla4xxx/ql4_mbx.c | 190 ++-- > > &g

Re: [patch 16/30] drivers/scsi/aic7xxx_old: Convert to generic boolean-values

2007-05-08 Thread David Miller
From: Andrew Morton <[EMAIL PROTECTED]> Date: Tue, 8 May 2007 13:11:52 -0700 > On Tue, 08 May 2007 14:24:32 -0500 > James Bottomley <[EMAIL PROTECTED]> wrote: > > > However, could we compromise and just add TRUE = true, FALSE = false to > > the enum? > > That sounds sane. But I don't recall all

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-11 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 11 May 2007 13:33:41 -0500 > Right at the moment, we're planning to clean up the way SCSI drivers > process commands. The proposals are essentially: > > 1. Get rid of the now unnecessary map_single path (every command is > either

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-11 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 11 May 2007 16:12:47 -0500 > I could probably cook up a patch for you, if you like? ... I've already > done it for several other architectures. I don't want to use that "if (bus == &sbus_bus_type)" scheme so if that's what your patch will do do

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-11 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 11 May 2007 16:36:56 -0500 > On PARISC, we actually use a table of function pointers, but then we > also have several other oddities including having to walk up the bus > tree to find our IOMMU (having several) which can actually be on a > diffe

Re: [PATCH 0/19] clean ups on the drivers

2007-05-15 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Tue, 15 May 2007 12:57:25 -0400 > It might make sense to put it in lib ... however, I don't think many > architectures have the problems we have ... specifically certain boxes > can have >1 IOMMU, then you really have to know *which* iommu you're > p

RE: [RFC] [PATCH] qla4xxx: Updated add IPv6 and misc support bugfixes cleanup

2007-05-17 Thread David Somayajulu
> Mike Christie wrote: > David C Somayajulu wrote: > > This patch OBSOLETES previous patches 0/5 thru 5/5 titled qla4xxx: Add IPv6 support and misc. It > incorporates the feedback received from Mike Christie and others, and encapsulates everything into a > single patch. > >

Re: [PATCH] jazz_esp converted to use esp_core

2007-05-21 Thread David Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Mon, 21 May 2007 19:45:22 -0400 > David Miller wrote: > > I disagree, I want people to be able to do test builds > > even if their platform lacks a front-end driver. And > > for platforms with multiple front ends it'

Re: [PATCH] jazz_esp converted to use esp_core

2007-05-21 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 22 May 2007 00:00:41 +0100 > > --- a/drivers/scsi/Makefile > > +++ b/drivers/scsi/Makefile > > @@ -121,7 +121,7 @@ obj-$(CONFIG_BLK_DEV_3W__RAID) += 3w-.o > > obj-$(CONFIG_SCSI_3W_9XXX) += 3w-9xxx.o > > obj-$(CONFIG_SCSI_PPA)

Re: [patch 14/25] SCSI: use irq_handler_t where appropriate

2007-05-23 Thread David Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Wed, 23 May 2007 18:07:35 -0400 > hrm. This appears to have been sent to linux-scsi at least three times. > > If it doesn't stick, I'll go ahead and send it up myself. The latency on linux-scsi review and integration of patches is not so hot lately, o

Re: s390 error: implicit declaration of function sg_dma_len

2007-05-25 Thread David Miller
From: Olaf Hering <[EMAIL PROTECTED]> Date: Fri, 25 May 2007 10:22:38 +0200 > Current Linus tree does not compile on s390 because esp_scsi references > unavailable functions. I have a fix for this pending in my sparc-2.6 tree which I'll send to Linus tomorrow, thanks for the report. - To unsubscr

Re: [PATCH] s390 error: implicit declaration of function sg_dma_len

2007-05-25 Thread David Miller
From: Hannes Reinecke <[EMAIL PROTECTED]> Date: Fri, 25 May 2007 11:08:08 +0200 > James, please apply. ESP cards simply don't fit in a mainframe :-) No James, please don't, I have a patch in my sparc-2.6 queue which will fix this already, and in a different way. - To unsubscribe from this list: s

Re: [PATCH] s390 error: implicit declaration of function sg_dma_len

2007-05-25 Thread David Miller
From: Hannes Reinecke <[EMAIL PROTECTED]> Date: Fri, 25 May 2007 11:08:08 +0200 > - depends on SCSI > + depends on SCSI && !S390 And for the record, the correct test would be HAS_DMA not !S390. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a me

Re: [PATCH] s390 error: implicit declaration of function sg_dma_len

2007-05-25 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 25 May 2007 08:47:38 -0500 > OK, I won't ... but we're growing users of this base driver now, like > this one: > > http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=352e921f0dd42f79652cdb50dd91122d068d7209 > > Could y

Re: [PATCH 2/2] esp: use shost_priv

2007-05-31 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Thu, 31 May 2007 20:12:32 +0200 > > Signed-off-by: Christoph Hellwig <[EMAIL PROTECTED]> Looks great, thanks for doing this Christoph. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROT

[SCSI]: JAZZ ESP and SUN ESP need SPI_ATTRS

2007-06-03 Thread David Miller
Reported by Meelis Roos. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 572034c..e2b2838 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1532,6 +1532,7 @@ source "drivers/scsi/arm/Kconfig"

Re: [SCSI]: JAZZ ESP and SUN ESP need SPI_ATTRS

2007-06-03 Thread David Miller
From: Randy Dunlap <[EMAIL PROTECTED]> Date: Sun, 3 Jun 2007 17:56:04 -0700 > On Sun, 03 Jun 2007 17:36:25 -0700 (PDT) David Miller wrote: > > > > > Reported by Meelis Roos. > > > > Signed-off-by: David S. Miller <[EMAIL PROTECTED]> > > >

[PATCH]: ESP reset bug fix

2007-06-13 Thread David Miller
Signed-off-by: David S. Miller <[EMAIL PROTECTED]> diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index ec71061..71caf2d 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -2033,6 +2033,7 @@ static void esp_reset_cleanu

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Woodhouse
On Fri, 2007-06-15 at 13:39 +0200, Geert Uytterhoeven wrote: > Add a Disk Storage Driver for the PS3: > - Implemented as a block device driver with a dynamic major > - Disk names (and partitions) are of the format ps3d%c(%u) > - Uses software scatter-gather with a 64 KiB bounce buffer as the

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: Geert Uytterhoeven <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 16:43:05 +0200 (CEST) > On Fri, 15 Jun 2007, David Woodhouse wrote: > > On Fri, 2007-06-15 at 13:39 +0200, Geert Uytterhoeven wrote: > > > Add a Disk Storage Driver for the PS3: > > > - Implemen

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 17:15:45 +0100 > > > Any particular reason why this is done as a separate block device driver > > > rather than as SCSI? > > > > Because no new fake SCSI drivers are accepted anymore. > > Where did drivers/ata come from ;) > > How about

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 17:28:31 -0400 > David Miller wrote: > > If the SCSI guys were smart, there would be a totally generic helper > > layer that allows anyone to hook into the SCSI layer as a virtual SCSI > > disk provid

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 17:50:50 -0400 > FWIW that's why libata followed the path it did: faking SCSI required > the least amount of code for the maximal amount of existing storage > driver and platform installer support. > > Well, that and the fact that AT

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 15:40:42 -0700 > On Fri, 2007-06-15 at 14:19 -0700, David Miller wrote: > > Another quirk I have to deal with is that under LDOMs you > > can export full disks and also just slices. So I'll have > >

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-15 Thread David Miller
From: James Bottomley <[EMAIL PROTECTED]> Date: Fri, 15 Jun 2007 16:28:03 -0700 > On Fri, 2007-06-15 at 16:08 -0700, David Miller wrote: > > From: James Bottomley <[EMAIL PROTECTED]> > > Date: Fri, 15 Jun 2007 15:40:42 -0700 > > > > > On Fri, 200

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 19 Jun 2007 07:53:58 +0200 > On Fri, Jun 15, 2007 at 02:19:17PM -0700, David Miller wrote: > > Another quirk I have to deal with is that under LDOMs you > > can export full disks and also just slices. So I'll hav

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 19 Jun 2007 07:56:29 +0200 > A SCSI pass through is of course perfectly fine. If you have a separate > block passthrough that has additional magic a separate block driver is > the way to go because it actually is simpler than a scsi driver de

Re: Userspace regression with 6baca7601bde ("scsi: target: drop unused pi_prot_format attribute storage")

2019-02-03 Thread David Disseldorp
with open(path, 'r') as file_fd: > > PermissionError: [Errno 13] Permission denied: > > '/sys/kernel/config/target/core/fileio_28/xxx/attrib/pi_prot_format' > > This looks like an intentional behavior change with > > commit 6baca7601bdee2e57f20

Re: [PATCH net-next] qed*: Utilize FW 8.33.1.0

2017-12-20 Thread David Miller
From: Jakub Kicinski Date: Tue, 19 Dec 2017 15:46:51 -0800 > On Tue, 19 Dec 2017 16:05:23 +0200, Tomer Tayar wrote: >> Sorry for the very long patch. >> The firmware changes are spread all over w/o a good modularity. > > Rings false. Significant portion of this patch is just whitespace > and c

Re: [PATCH v2 net-next 0/3] qed*: Advance to FW 8.33.1.0

2017-12-26 Thread David Miller
This says "0/3" and then a 4 patch series shows up...

Re: [PATCH v4 net-next 0/4] qed*: Advance to FW 8.33.1.0

2018-01-02 Thread David Miller
From: Tomer Tayar Date: Wed, 27 Dec 2017 19:30:04 +0200 > This series advances all qed* drivers to use firmware 8.33.1.0 which brings > new capabilities and initial support of new HW. The changes are mostly in > qed, and include changes in the FW interface files, as well as updating the > FW init

RE: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread David Laight
s 'rep movsb' relying on the hardware to DTRT. For uncached accesses (typical for io) the 'RT' has to be byte transfers. So instead of the 8 byte transfers (on 64 bit) you get single bytes. This won't be what is intended! memcpy_toio() should probably use 'rep movsd' for the bulk of the transfer. David

RE: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread David Laight
From: Andy Shevchenko > Sent: 23 February 2018 16:51 > On Fri, Feb 23, 2018 at 6:41 PM, David Laight wrote: > > From: Arnd Bergmann > >> Sent: 23 February 2018 15:37 > >> > >> 32-bit architectures generally cannot use writeq(), so we now get a

RE: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread David Laight
From: Andy Shevchenko > Sent: 23 February 2018 17:13 > To: David Laight > Cc: Arnd Bergmann; James Smart; Dick Kennedy; James E.J. Bottomley; Martin K. > Petersen; Hannes > Reinecke; Johannes Thumshirn; linux-scsi@vger.kernel.org; > linux-ker...@vger.kernel.org > Subject: R

RE: [PATCH] scsi: resolve COMMAND_SIZE at compile time

2018-03-13 Thread David Laight
<< 12 + 6 << 8 + 6 << 4 + 10). > + * Command group 3 is reserved and should never be used. > + */ > +#define COMMAND_SIZE(opcode) \ > + (16 - (15 & (1715488362 >> (4 * (((opcode) >> 5) & 7) Why not: (6 + (15 & (0x446a6440u Specifying the constant in hex makes it more obvious. It is a shame about the 16, but an offset is easier than the negate. David

RE: [PATCH] bfa: remove VLA

2018-03-15 Thread David Laight
TUS_OK) { is easier to focus on :-) David

Re: [PATCH v2 net-next] qed*: Utilize FW 8.33.11.0

2018-03-29 Thread David Miller
From: Michal Kalderon Date: Wed, 28 Mar 2018 11:42:16 +0300 > This FW contains several fixes and features > > RDMA Features > - SRQ support > - XRC support > - Memory window support > - RDMA low latency queue support > - RDMA bonding support > > RDMA bug fixes > - RDMA remote invalidate during

Vmbus series...

2018-03-29 Thread David Miller
Please feel free put it in via the scsi tree: Acked-by: David S. Miller

Re: [PATCH 1/1] target:separate tx/rx cmd_puds

2019-04-15 Thread David Disseldorp
[replying to an old thread] On Sun, 8 Apr 2018 11:57:18 +0800, Zhang Zhuoyu wrote: > > On Thu, 5 Apr 2018 13:12:12 +0200, David Disseldorp wrote: > > > > > > -CONFIGFS_ATTR_RO(target_stat_tgt_port_, in_cmds); > > > > +CONFIGFS_ATTR_RO(target_stat_tgt_port_,

Re: [PATCH v2 net-next 00/11] qed*: Improve performance on 100G link for offload protocols

2019-05-26 Thread David Miller
From: Michal Kalderon Date: Sun, 26 May 2019 15:22:19 +0300 > This patch series modifies the current implementation of PF selection. > The refactoring of the llh code enables setting additional filters > (mac / protocol) per PF, and improves performance for offload protocols > (RoCE, iWARP, iSCSI

Re: [PATCH] target/iscsi: fix possible condition with no effect (if == else)

2019-05-27 Thread David Disseldorp
return 2; - else if (strstr("SPKM2", authtype)) - return 2; - else if (strstr("KRB5", authtype)) - return 2; - else - return 2; + /* SRP, SPKM1, SPKM2 and KRB5 are unsupported */ + return 2; } Cheers, David

Re: [Patch v2] target/iscsi: fix possible condition with no effect (if == else)

2019-05-28 Thread David Disseldorp
nges in v2: treat SRP as unsupported authtype. >Remove unnecessary else >return 2 in all unsupported cases Reviewed-by: David Disseldorp Cheers, David

Re: [PATCH v2 net-next] cxgb4/libcxgb/cxgb4i/cxgbit: enable eDRAM page pods for iSCSI

2019-06-04 Thread David Miller
From: Varun Prakash Date: Tue, 4 Jun 2019 15:41:49 +0530 > +static int setup_ppod_edram(struct adapter *adap) > +{ > + int ret; > + unsigned int param, val; Reverse christmas tree please.

Re: [PATCH] revert async probing of VMBus scsi device

2019-06-05 Thread David Miller
From: Christoph Hellwig Date: Wed, 5 Jun 2019 12:07:23 -0700 > On Wed, Jun 05, 2019 at 12:06:40PM -0700, Stephen Hemminger wrote: >> > Which is true for every device, and why we use UUIDs or label for >> > mounts that are supposed to be stable. >> >> Not everyone is smart enough to do that. > >

Re: [PATCH v3 net-next] cxgb4/libcxgb/cxgb4i/cxgbit: enable eDRAM page pods for iSCSI

2019-06-10 Thread David Miller
From: Varun Prakash Date: Mon, 10 Jun 2019 18:36:34 +0530 > Page pods are used for direct data placement, this patch > enables eDRAM page pods if firmware supports this feature. > > Signed-off-by: Varun Prakash > --- > v3: reordered local variable declarations in reverse christmas tree format

RE: [RFC PATCH 0/4] iscsi: chap: introduce support for SHA1 and SHA3-256

2019-09-03 Thread Black, David
number of the people who will be involved in ensuring that the proverbial "right thing" happens, e.g., the Transport Area Directors. Thanks, --David > -Original Message- > From: Christoph Hellwig > Sent: Tuesday, September 3, 2019 3:00 AM > To: Maurizio Lombardi > C

RE: [PATCH 4/4] lib/hexdump.c: Allow multiple groups to be separated by lines '|'

2019-04-10 Thread David Laight
ly counted. I'm not even sure that is needed if you are printing 32bit words. OTOH 32bit words makes 64bit values really stupid on LE systems. Bytes with extra spaces every 4 bytes is the format I prefer even for long lines. Oh, and if you are using hexdump() a lot you want a version th

RE: [PATCH 3/4] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-04-15 Thread David Laight
t bytes. In that case you may want hexdump to return the flags for the next call when a large buffer is being dumped in fragments. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)

RE: [PATCH 1/4] lib/hexdump.c: Allow 64 bytes per line

2019-04-15 Thread David Laight
The function shouldn't dictate what the > caller can and can't do beyond the technical limits of it's implementation. Why powers of two? You may want the length to match sizeof (struct foo). You might even want the address increment to be larger that the number of lines dumped.

RE: [PATCH 3/4] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-04-15 Thread David Laight
uppressing lines of zeros and dumping a buffer in several blocks then subsequent calls need to know that the last line of the previous call was suppressed zeros - and carry on with the same suppressed block. I've not looked to see if it does support suppressing lines of zeros/0xff.

Re: [PATCH net-next 07/10] qed*: Add iWARP 100g support

2019-05-01 Thread David Miller
From: Michal Kalderon Date: Wed, 1 May 2019 12:57:19 +0300 > diff --git a/drivers/infiniband/hw/qedr/main.c > b/drivers/infiniband/hw/qedr/main.c > index d93c8a893a89..8bc6775abb79 100644 > --- a/drivers/infiniband/hw/qedr/main.c > +++ b/drivers/infiniband/hw/qedr/main.c > @@ -52,6 +52,10 @@ MOD

RE: [PATCH v2 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-05-08 Thread David Laight
de which is dominated by its tracing!) then you don't want all the function calls and conditionals even if you want some of the functionality. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)

Re: [PATCH net-next 0/4] qed: Enhance storage APIs

2017-06-02 Thread David Miller
From: Yuval Mintz Date: Fri, 2 Jun 2017 08:58:29 +0300 > This series is intended to add additional information and features > to the API between qed and its storage protocol drivers [qedi, qedf]. > > Patch #2 adds some information stored on device such as wwpn & wwnn > to allow qedf utilize it;

Re: [PATCH net-next] cxgb4: Fix tids count for ipv6 offload connection

2017-06-07 Thread David Miller
From: Ganesh Goudar Date: Wed, 7 Jun 2017 15:04:51 +0530 > the adapter consumes two tids for every ipv6 offload > connection be it active or passive, calculate tid usage > count accordingly. > > Also change the signatures of relevant functions to get > the address family. > > Signed-off-by: Ri

RE: remove dma_alloc_noncoherent

2017-06-20 Thread David Laight
27;noncoherent'. Grepping the source for other uses is easier if the wrapper is left. David

Re: [PATCH 12/22] vmxnet3: avoid format strint overflow warning

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:04 +0200 > gcc-7 notices that "-event-%d" could be more than 11 characters long > if we had larger 'vector' numbers: > > drivers/net/vmxnet3/vmxnet3_drv.c: In function 'vmxnet3_activate_dev': > drivers/net/vmxnet3/vmxnet3_drv.c:2095:40: error: 'sp

Re: [PATCH 13/22] liquidio: fix possible eeprom format string overflow

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:05 +0200 > gcc reports that the temporary buffer for computing the > string length may be too small here: > > drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function > 'lio_get_eeprom_len': > /drivers/net/ethernet/cavium/liquidio/lio_etht

Re: [PATCH 11/22] net: thunder_bgx: avoid format string overflow warning

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:03 +0200 > gcc warns that the temporary buffer might be too small here: > > drivers/net/ethernet/cavium/thunder/thunder_bgx.c: In function 'bgx_probe': > drivers/net/ethernet/cavium/thunder/thunder_bgx.c:1020:16: error: '%d' > directive writing b

Re: [PATCH 10/22] bnx2x: fix format overflow warning

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:02 +0200 > gcc notices that large queue numbers would overflow the queue name > string: > > drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c: In function > 'bnx2x_get_strings': > drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:3165:25: err

Re: [PATCH 09/22] net: niu: fix format string overflow warning:

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:01 +0200 > We get a warning for the port_name string that might be longer than > six characters if we had more than 10 ports: > > drivers/net/ethernet/sun/niu.c: In function 'niu_put_parent': > drivers/net/ethernet/sun/niu.c:9563:21: error: '%d' d

Re: [PATCH 08/22] isdn: divert: fix sprintf buffer overflow warning

2017-07-14 Thread David Miller
From: Arnd Bergmann Date: Fri, 14 Jul 2017 14:07:00 +0200 > One string we pass into the cs->info buffer might be too long, > as pointed out by gcc: > > drivers/isdn/divert/isdn_divert.c: In function 'll_callback': > drivers/isdn/divert/isdn_divert.c:488:22: error: '%d' directive writing > betwe

RE: [PATCH 04/22] scsi: fusion: fix string overflow warning

2017-07-17 Thread David Laight
ize 32 > > We can simply double the size of the local buffer here to be on the > safe side. I think I'd change it to snprintf() as well. Saves any worries if ioc->name isn't '\0' terminated. David

[PATCH v2 1/5] target: use ISCSI_IQN_LEN in iscsi_target_stat

2018-10-12 Thread David Disseldorp
Move the ISCSI_IQN_LEN definition up, so that it can be used in more places instead of a hardcoded value. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 4 ++-- include/target/iscsi/iscsi_target_core.h | 6 +++--- include/target/iscsi/iscsi_target_stat.h | 4

[PATCH v2 3/5] target: log NOP ping timeouts as errors

2018-10-12 Thread David Disseldorp
Events resulting in connection outages like this should be logged as errors. Include the I_T Nexus in the message to aid path identification. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_util.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[PATCH v2 0/5] target: improve Data-Out and NOP timeout error reporting

2018-10-12 Thread David Disseldorp
-lio-trigger-dataout-timeout https://github.com/ddiss/libiscsi/tree/hack-lio-trigger-nop-timeout Cheers, David --- Changes since v1 - split out and use a helper function for cxn timeout error stashing - add I_T Nexus to error messages drivers/target/iscsi/iscsi_target_erl0.c | 15

[PATCH v2 5/5] target: stash sess_err_stats on Data-Out timeout

2018-10-12 Thread David Disseldorp
sess_err_stats are currently filled on NOP ping timeout, but not Data-Out timeout. Stash details of Data-Out timeouts using a ISCSI_SESS_ERR_CXN_TIMEOUT value for last_sess_failure_type. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_erl1.c | 1 + 1 file changed, 1

[PATCH v2 2/5] target: log Data-Out timeouts as errors

2018-10-12 Thread David Disseldorp
Data-Out timeouts resulting in connection outages should be logged as errors. Include the I_T Nexus in the message to aid path identification. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_erl1.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions

[PATCH v2 4/5] target: split out helper for cxn timeout error stashing

2018-10-12 Thread David Disseldorp
Replace existing nested code blocks with helper function calls. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_erl0.c | 15 +- drivers/target/iscsi/iscsi_target_util.c | 35 +--- drivers/target/iscsi/iscsi_target_util.h | 1 + 3

Re: [PATCH v2 4/5] target: split out helper for cxn timeout error stashing

2018-10-13 Thread David Disseldorp
. If that > not's the case, how about using strlcpy() to make it easy for anyone who > reads the source code that no output buffer overflow will occur? Both arrays are the same size (ISCSI_IQN_LEN). I'll change this over to use strlcpy(), as I agree that it helps readability. Cheers, David

[PATCH v3] target: split out helper for cxn timeout error stashing

2018-10-13 Thread David Disseldorp
Replace existing nested code blocks with helper function calls. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_erl0.c | 15 + drivers/target/iscsi/iscsi_target_util.c | 36 ++-- drivers/target/iscsi/iscsi_target_util.h | 1 + 3

Re: [PATCH v3 4/5] target: split out helper for cxn timeout error stashing

2018-10-14 Thread David Disseldorp
) This patch is a v3 respin of an individual patch within the series: [PATCH v2 0/5] target: improve Data-Out and NOP timeout error reporting The sess declaration is provided in [PATCH v2 3/5]. I guess I'll resend entire series in future to avoid false kbuild reports. Cheers, David

Re: [PATCH v3 4/5] target: split out helper for cxn timeout error stashing

2018-10-16 Thread David Disseldorp
to 4.20/scsi-queue. Thanks Martin. Cheers, David

[RFC PATCH 2/3] target: remove unused session PDU-format-errors metric

2018-10-17 Thread David Disseldorp
Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 14 +- include/target/iscsi/iscsi_target_stat.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target/iscsi/iscsi_target_stat.c

[RFC PATCH 3/3] target: remove cumulative session errors metric

2018-10-17 Thread David Disseldorp
The cumulative session errors metric matches cxn_timeout_errors, so drop the duplicate. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target

[RFC PATCH 1/3] target: remove unused session digest-errors metric

2018-10-17 Thread David Disseldorp
Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 14 +- include/target/iscsi/iscsi_target_stat.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target/iscsi/iscsi_target_stat.c

[RFC PATCH 0/3] target: remove some unused stats

2018-10-17 Thread David Disseldorp
This patchset removes a couple of unused error stat counters and a redundant cumulative counter. I've tagged this patchset RFC, as it may be considered a kernel<->user (configfs) API change. Cheers, David --- drivers/target/iscsi/iscsi_target_

Re: [RFC PATCH 0/3] target: remove some unused stats

2018-10-29 Thread David Disseldorp
On Wed, 17 Oct 2018 17:48:17 +0200, David Disseldorp wrote: > This patchset removes a couple of unused error stat counters and a > redundant cumulative counter. > I've tagged this patchset RFC, as it may be considered a kernel<->user > (configfs) API change. Ping, any th

[PATCH v4] target: add emulate_pr backstore attr to toggle PR support

2018-10-30 Thread David Disseldorp
s to block such requests, avoiding the need for multi-node reservation state propagation. When explicitly disabled, PR and RESERVE/RELEASE requests receive Invalid Command Operation Code response sense data. Signed-off-by: David Disseldorp --- drivers/target/target_core_configfs.c

Re: [PATCH v4] target: add emulate_pr backstore attr to toggle PR support

2018-11-07 Thread David Disseldorp
d > TRANSPORT_FLAG_PASSTHROUGH_PGR is set, userspace cannot detect what the > backend supports. We would have to temporarily set emaulate_pr sow e can > read the file then clear it. Agreed, that'd be awkward and is unnecessary given the presence of both configfs attributes. I'll send a new version which drops this hunk. Cheers, David

[PATCH v5] target: add emulate_pr backstore attr to toggle PR support

2018-11-07 Thread David Disseldorp
s to block such requests, avoiding the multi-node reservation state propagation. When explicitly disabled, PR and RESERVE/RELEASE requests receive Invalid Command Operation Code response sense data. Signed-off-by: David Disseldorp --- drivers/target/target_core_configfs.c

Re: [RFC PATCH 0/3] target: remove some unused stats

2018-11-16 Thread David Disseldorp
anything stopping us from plumbing them into the corresponding error paths, so I'll withdraw this patchset. Cheers, David

Re: [PATCH v5] target: add emulate_pr backstore attr to toggle PR support

2018-11-19 Thread David Disseldorp
Ping, did anyone get a chance to look at this one? Cheers, David

[PATCH v3 2/4] target: don't assume t10_wwn.vendor is null terminated

2018-11-19 Thread David Disseldorp
Signed-off-by: David Disseldorp --- drivers/target/target_core_stat.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/target/target_core_stat.c b/drivers/target/target_core_stat.c index f0db91ebd735..89f35167f036 100644 --- a/drivers/target

[PATCH v3 4/4] target: remove hardcoded T10 Vendor ID in INQUIRY response

2018-11-19 Thread David Disseldorp
Use the value stored in t10_wwn.vendor, which defaults to "LIO-ORG", but can be reconfigured via the vendor_id ConfigFS attribute. Signed-off-by: David Disseldorp --- drivers/target/target_core_spc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH v3 0/4] target: user configurable T10 Vendor ID

2018-11-19 Thread David Disseldorp
PI changes. David Disseldorp (4): target: use consistent left-aligned ASCII INQUIRY data target: don't assume t10_wwn.vendor is null terminated target: add device vendor_id configfs attribute target: remove hardcoded T10 Vendor ID in INQUIRY response drivers/target/target_

[PATCH v3 3/4] target: add device vendor_id configfs attribute

2018-11-19 Thread David Disseldorp
t when the backstore device is enabled. Signed-off-by: David Disseldorp --- drivers/target/target_core_configfs.c | 55 +++ include/target/target_core_base.h | 3 +- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/drivers/target/target_core_con

[PATCH v3 1/4] target: use consistent left-aligned ASCII INQUIRY data

2018-11-19 Thread David Disseldorp
the standard INQUIRY data as well as the T10 VENDOR IDENTIFICATION field in the INQUIRY Device Identification VPD Page are zero-terminated/zero-padded. Fix this inconsistency by using space-padding for all of the above fields. Signed-off-by: David Disseldorp --- drivers/target/target_core_spc.c

Re: [PATCH v3 2/4] target: don't assume t10_wwn.vendor is null terminated

2018-11-20 Thread David Disseldorp
On Tue, 20 Nov 2018 08:49:24 -0800, Christoph Hellwig wrote: > This could use a little more explanation, the code doesn't just > add a little if but also changes the existing case. Also where > can't it be null currently? I'll add an explanation in the next round. This patch shouldn't cause any

Re: [PATCH v3 3/4] target: add device vendor_id configfs attribute

2018-11-20 Thread David Disseldorp
On Tue, 20 Nov 2018 09:24:39 -0800, Bart Van Assche wrote: > On Mon, 2018-11-19 at 22:06 +0100, David Disseldorp wrote: > > /* > > + * STANDARD and VPD page 0x80 T10 Vendor Identification > > + */ > > +static ssize_t target_wwn_vendor_id_show(struct config_item *item,

[RFC PATCH] target: sanitize ALUA and PR state file paths before use

2018-11-22 Thread David Disseldorp
Block ALUA and PR state storage if any of the dynamic subdirectory components include a path separator. Fixes: c66ac9db8d4a ("[SCSI] target: Add LIO target core v4.0.0-rc6") Signed-off-by: David Disseldorp Signed-off-by: Lee Duncan --- Note: Submitted as an RFC, as I've not prop

[PATCH] target: drop unnecessary get_fabric_name() accessor from fabric_ops

2018-11-22 Thread David Disseldorp
unfortunately need to keep both strings around for now. Replace the useless .get_fabric_name() accessor function with a const string fabric_name member variable. Signed-off-by: David Disseldorp --- Note: This conflicts with: [RFC PATCH] target: sanitize ALUA and PR state file paths before use I&#x

Re: [PATCH] target: drop unnecessary get_fabric_name() accessor from fabric_ops

2018-11-23 Thread David Disseldorp
On Thu, 22 Nov 2018 23:19:10 -0800, Christoph Hellwig wrote: > On Thu, Nov 22, 2018 at 03:16:23PM +0100, David Disseldorp wrote: > > All fabrics return a const string. In all cases *except* iSCSI the > > get_fabric_name() string matches fabric_ops.name. > > > > Both

<    1   2   3   4   5   6   7   >