Re: [RFC PATCH 2/4] fdomain: Resurrect driver (PCI support)

2019-04-23 Thread Christoph Hellwig
Looks fine (modulo the potentional Kconfig tweak mentioned for the previous patch): Reviewed-by: Christoph Hellwig

Re: [RFC PATCH 1/4] fdomain: Resurrect driver (core)

2019-04-23 Thread Christoph Hellwig
> +/* FIFO_COUNT: The host adapter has an 8K cache (host adapters based on the > + * 18C30 chip have a 2k cache). When this many 512 byte blocks are filled by > + * the SCSI device, an interrupt will be raised. Therefore, this could be as > + * low as 0, or as high as 16. Note, however, that val

Re: [PATCH 2/2] scsi: core: avoid to pre-allocate big chunk for sg list

2019-04-23 Thread Christoph Hellwig
On Tue, Apr 23, 2019 at 06:32:40PM +0800, Ming Lei wrote: > big, the whole pre-allocation for sg list can consume huge memory. > For example of lpfc, nr_hw_queues can be 70, each queue's depth > can be 3781, so the pre-allocation for data sg list can be 70*3781*2k > =517MB for single HBA. We shoul

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Hannes Reinecke
On 4/24/19 3:45 AM, Ming Lei wrote: On Wed, Apr 24, 2019 at 09:12:42AM +0800, Ming Lei wrote: On Tue, Apr 23, 2019 at 04:07:49PM +0200, Hannes Reinecke wrote: On 4/23/19 3:30 PM, Ming Lei wrote: Hi Hannes, Thanks for your response. On Tue, Apr 23, 2019 at 01:19:33PM +0200, Hannes Reinecke wr

[PATCH 1/1] iscsi target: fix discovery auth enforcement

2019-04-23 Thread Mike Christie
If the user writes 0 to enforce_discovery_auth to disable CHAP during discovery we will set the AuthMethod arguments to CHAP,None even if there are no CHAP settings. The initiator can then only login if it has its AuthMethod set to only None. If it is set to CHAP,None, login will fail, because the

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Ming Lei
On Wed, Apr 24, 2019 at 09:12:42AM +0800, Ming Lei wrote: > On Tue, Apr 23, 2019 at 04:07:49PM +0200, Hannes Reinecke wrote: > > On 4/23/19 3:30 PM, Ming Lei wrote: > > > Hi Hannes, > > > > > > Thanks for your response. > > > > > > On Tue, Apr 23, 2019 at 01:19:33PM +0200, Hannes Reinecke wrote:

Re: [PATCH v2 26/79] docs: powerpc: convert docs to ReST and rename to *.rst

2019-04-23 Thread Andrew Donnellan
On 22/4/19 11:27 pm, Mauro Carvalho Chehab wrote: Convert docs to ReST and add them to the arch-specific book. The conversion here was trivial, as almost every file there was already using an elegant format close to ReST standard. The changes were mostly to mark literal blocks and add a few mis

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Ming Lei
On Tue, Apr 23, 2019 at 04:07:49PM +0200, Hannes Reinecke wrote: > On 4/23/19 3:30 PM, Ming Lei wrote: > > Hi Hannes, > > > > Thanks for your response. > > > > On Tue, Apr 23, 2019 at 01:19:33PM +0200, Hannes Reinecke wrote: > > > On 4/22/19 5:30 AM, Ming Lei wrote: > [ .. ] > > > > > > > > Hi H

Re: [PATCH 1/2] scsi: core: avoid to pre-allocate big chunk for protection meta data

2019-04-23 Thread Ming Lei
On Tue, Apr 23, 2019 at 08:33:47AM -0700, Bart Van Assche wrote: > On Tue, 2019-04-23 at 18:32 +0800, Ming Lei wrote: > > +/* > > + * Size of integrity meta data size is usually small, 1 inline sg > ^^ > Please change this into "metadata". Mentioning "size" twice

[PATCH 0/2] qla2xxx: Minor fixes

2019-04-23 Thread Himanshu Madhani
Hi Martin, These patches fix small issue where device stays in blocked state due to driver not marking port offline and moving debug message to correct verbose level. Please apply to 5.2/scsi-queue branch for inclusion at your earliest convenience. Thanks, Himanshu Himanshu Madhani (1): q

[PATCH 2/2] qla2xxx: Silence Sucessful ELS IOCB message

2019-04-23 Thread Himanshu Madhani
ELS IOCB done message should be moved to verbose logging to prevent confusion about the error case v/s sucessful submission case. Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c

[PATCH 1/2] qla2xxx: Fix device staying in blocked state

2019-04-23 Thread Himanshu Madhani
From: Quinn Tran This patch fixes issue reported by some of the customers, who discovered that after cable pull scenario the devices disappear and path seems to remain in blocked state. Once the device reappears, driver does not seem to update path to online. This issue appears because of the def

[Bug 199435] HPSA + P420i resetting logical Direct-Access never complete

2019-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199435 --- Comment #32 from Don (don.br...@microsemi.com) --- Created attachment 282479 --> https://bugzilla.kernel.org/attachment.cgi?id=282479&action=edit Patch to correct resets hpsa: correct device resets - Correct a race condition that o

Re: [PATCH 2/2] scsi: core: avoid to pre-allocate big chunk for sg list

2019-04-23 Thread Bart Van Assche
On Tue, 2019-04-23 at 18:32 +0800, Ming Lei wrote: > #define SCSI_INLINE_PROT_SG_CNT 1 > > +#define SCSI_INLINE_SG_CNT 2 So this patch inserts one kmalloc() and one kfree() call in the hot path for every SCSI request with more than two elements in its scatterlist? Isn't "2" too low? Or in o

Re: [PATCH 1/2] scsi: core: avoid to pre-allocate big chunk for protection meta data

2019-04-23 Thread Bart Van Assche
On Tue, 2019-04-23 at 18:32 +0800, Ming Lei wrote: > +/* > + * Size of integrity meta data size is usually small, 1 inline sg ^^ Please change this into "metadata". Mentioning "size" twice is not useful. > + * should cover normal cases. > + */ > +#define SCSI_IN

[PATCH -next] scsi: qedf: remove set but not used variables

2019-04-23 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warnings: drivers/scsi/qedf/qedf_els.c: In function 'qedf_process_els_compl': drivers/scsi/qedf/qedf_els.c:149:20: warning: variable 'sc_cmd' set but not used [-Wunused-but-set-variable] drivers/scsi/qedf/qedf_els.c:148:28: warning: variabl

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Hannes Reinecke
On 4/23/19 3:30 PM, Ming Lei wrote: Hi Hannes, Thanks for your response. On Tue, Apr 23, 2019 at 01:19:33PM +0200, Hannes Reinecke wrote: On 4/22/19 5:30 AM, Ming Lei wrote: [ .. ] Hi Hannes, Could you please let us know if you have better idea for this issue? Otherwise, I think we need to

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Ming Lei
Hi Hannes, Thanks for your response. On Tue, Apr 23, 2019 at 01:19:33PM +0200, Hannes Reinecke wrote: > On 4/22/19 5:30 AM, Ming Lei wrote: > > On Wed, Apr 17, 2019 at 08:59:43PM +0800, Ming Lei wrote: > > > On Wed, Apr 17, 2019 at 02:08:59PM +0200, Hannes Reinecke wrote: > > > > On 4/17/19 5:44

Re: [PATCH V6 6/9] blk-mq: always free hctx after request queue is freed

2019-04-23 Thread Hannes Reinecke
On 4/22/19 5:30 AM, Ming Lei wrote: On Wed, Apr 17, 2019 at 08:59:43PM +0800, Ming Lei wrote: On Wed, Apr 17, 2019 at 02:08:59PM +0200, Hannes Reinecke wrote: On 4/17/19 5:44 AM, Ming Lei wrote: In normal queue cleanup path, hctx is released after request queue is freed, see blk_mq_release().

[PATCH 1/2] scsi: core: avoid to pre-allocate big chunk for protection meta data

2019-04-23 Thread Ming Lei
Now scsi_mq_setup_tags() pre-allocates a big buffer for protection sg list, and the buffer size is scsi_mq_sgl_size(). This way isn't correct, scsi_mq_sgl_size() is used to pre-allocate sg list for IO data. And the protection data buffer is much less, for example, one 512byte sector needs 8byte pr

[PATCH 0/2] scis: core: avoid big pre-allocation for sg list

2019-04-23 Thread Ming Lei
Hi, Since supporting to blk-mq, big pre-allocation for sg list is introduced, this way is very unfriendly wrt. memory consumption. There were Red Hat internal reports that some scsi_debug based tests can't be run because of too big pre-allocation. Also lpfc users commplained that 1GB+ ram is pre

[PATCH 2/2] scsi: core: avoid to pre-allocate big chunk for sg list

2019-04-23 Thread Ming Lei
Now scsi_mq_setup_tags() pre-allocates a big buffer for IO sg list, and the buffer size is scsi_mq_sgl_size() which depends on smaller value between shost->sg_tablesize and SG_CHUNK_SIZE. Modern HBA's DMA capabilty is often capable of deadling with very big segment number, so scsi_mq_sgl_size() is