Re: Need help with libata error handling in libsas

2008-02-25 Thread Brian King
eset and default to PIO mode only. Any DMA transfer that is attempted simply hangs. The other issue is PMP support. The more that gets pushed into libsas, the more libsas needs to know about things such as PMP. -Brian -- Brian King Linux on Power Virtualization IBM Linux Technology Center

[RFC 3/3] ipr: Use new libata EH API

2007-10-29 Thread Brian King
This patch converts ipr to use the new libata EH API. This simplifies a lot of the code, should make it more maintainable, and also provides more robust error handling. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- linux-2.6-bjking1/drivers/scsi/ipr.c

[RFC 2/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
should hopefully make is easier to support PMP on SAS. 3. SATA rphy's have their own scsi_host, which makes SAS much more like all the other SATA drivers. 4. It eliminates tying scsi_target object lifetimes to ata_port lifetimes and introduces a cleaner API. Signed-off-by: Brian

[RFC 1/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
r to the ata_port. This allows for ap->dev to be any arbitrary struct device. This is to be used by the libata SAS LLDDs. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- linux-2.6-bjking1/drivers/ata/libata-core.c | 13 - linux-2.6-bjking1/include/linux/libata.h|2 ++

[RFC 0/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
added some code to ipr. Longer term, block layer queue groups might be another way to do this. I'm still polishing this up, but it is up and running and seems to work with what testing I've done so far. -Brian -- Brian King Linux on Power Virtualization IBM Linux Technology Center - To u

Re: ipr using libata old-EH

2007-07-12 Thread Brian King
ler(), ->freeze(), ->thaw(). I'll look into this. -Brian -- Brian King Linux on Power Virtualization IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [git patches] libata reset sequence update

2007-05-08 Thread Brian King
Jeff Garzik wrote: > This has been testing in -mm for a while, but I wanted to send it > separated from the main libata update, since it has a chance of > breakage. > > Most notably, a cumulative timeout (deadline) helps the code from diving > into overly-long reset sequences. > > Please pull fro

Recent ipr breakage (ata_do_eh api change)

2007-05-04 Thread Brian King
hanks, Brian -- Brian King eServer Storage I/O IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 03/12] libata: separate out ata_host_alloc() and ata_host_attach()

2007-03-14 Thread Brian King
Tejun Heo wrote: > Brian King wrote: >> For SAS, the scsi_host pointer in the ata port is NULL today, since libata >> is really not managing the scsi host, the LLDD is. I think the initialization >> model we want for SAS is a little different than the one you are heading &g

Re: [PATCH 03/12] libata: separate out ata_host_alloc() and ata_host_attach()

2007-03-13 Thread Brian King
t sense for these devices for SAS is done without entering eh today. Would you want to move this into eh as well? Brian -- Brian King eServer Storage I/O IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [EMAI

Re: [PATCH 03/12] libata: separate out ata_host_alloc() and ata_host_attach()

2007-03-12 Thread Brian King
eing used in the current implementation. My guess is that aic94xx will have similar issues/concerns. Brian -- Brian King eServer Storage I/O IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [EMAIL PROTE

[PATCH 1/1] libata: Initialize nbytes for internal sg commands

2007-01-30 Thread Brian King
Some LLDDs, like ipr, use nbytes and pad_len to determine the total data transfer length of a command. Make sure nbytes gets initialized for internally generated commands. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- Jeff, This bug is already fixed in #upstream, with Tejun's p

Re: [git patches] libata fixes

2007-01-24 Thread Brian King
Jeff Garzik wrote: > All fixes for ugly bugs and/or regressions. > > Brian King (2): > libata: Fixup n_elem initialization > libata: Initialize qc->pad_len Thanks for pulling this in. There is one patch outstanding preventing ipr SATA from working: http://marc.t

Re: [PATCH 2/3] libata: Initialize nbytes for internal sg commands

2007-01-22 Thread Brian King
Brian King wrote: > Tejun Heo wrote: >> Brian King wrote: >>> Some LLDDs, like ipr, use nbytes and pad_len to determine >>> the total data transfer length of a command. Make sure >>> nbytes gets initialized for internally generated commands. >> I thin

Re: [PATCH 2/3] libata: Initialize nbytes for internal sg commands

2007-01-18 Thread Brian King
Tejun Heo wrote: > Brian King wrote: >> Some LLDDs, like ipr, use nbytes and pad_len to determine >> the total data transfer length of a command. Make sure >> nbytes gets initialized for internally generated commands. > > I think it's better to apply the fol

Re: [PATCH] libata: initialize qc->dma_dir to DMA_NONE

2007-01-17 Thread Brian King
Brian King wrote: > Jeff Garzik wrote: >> Brian King wrote: >>> ACK >> Does this response mean that you've tested it, and successfully verified >> your problem is gone? > > Yes, I have tested it, but all my problems are not gone with this > one patch. T

[PATCH 3/3] libata: Initialize qc->pad_len

2007-01-17 Thread Brian King
Initialize qc->pad_len for each new command. This ensures that pad_len is not set to a stale value for zero data length commands. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- linux-2.6-bjking1/include/linux/libata.h |1 + 1 files changed, 1 insertion(+) diff -puN incl

[PATCH 1/3] libata: Fixup n_elem initialization

2007-01-17 Thread Brian King
ipr adapters. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- linux-2.6-bjking1/drivers/ata/libata-scsi.c |2 +- linux-2.6-bjking1/include/linux/libata.h|1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/ata/libata-scsi.c~libata_fixup_nelem drivers/ata/liba

[PATCH 2/3] libata: Initialize nbytes for internal sg commands

2007-01-17 Thread Brian King
Some LLDDs, like ipr, use nbytes and pad_len to determine the total data transfer length of a command. Make sure nbytes gets initialized for internally generated commands. Signed-off-by: Brian King <[EMAIL PROTECTED]> --- linux-2.6-bjking1/drivers/ata/libata-core.c |1 + 1 files chan

Re: [PATCH] libata: initialize qc->dma_dir to DMA_NONE

2007-01-17 Thread Brian King
Jeff Garzik wrote: > Brian King wrote: >> ACK > > Does this response mean that you've tested it, and successfully verified > your problem is gone? Yes, I have tested it, but all my problems are not gone with this one patch. This fixes the problem I was seeing where the

Re: [PATCH] libata: initialize qc->dma_dir to DMA_NONE

2007-01-16 Thread Brian King
ed_cmd *qc) > { > + qc->dma_dir = DMA_NONE; > qc->__sg = NULL; > qc->flags = 0; > qc->cursect = qc->cursg = qc->cursg_ofs = 0; > - > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a mess

Re: ipr SATA problems in 2.6.20

2007-01-16 Thread Brian King
Brian King wrote: > James Bottomley wrote: >> On Tue, 2007-01-16 at 17:45 -0500, Jeff Garzik wrote: >>> Tejun recently updated the CDB length areas of the code. I bet it's >>> either a bug somewhere in there, or the SCSI layer isn't passing us >&g

Re: ipr SATA problems in 2.6.20

2007-01-16 Thread Brian King
ection like ata_scsi_translate() does? I think we are OK here since atapi_xlate is only ever called by ata_scsi_translate. Brian -- Brian King eServer Storage I/O IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

ipr SATA problems in 2.6.20

2007-01-16 Thread Brian King
7;ve been seeing is that I am getting zero length commands, such as TEST_UNIT_READY with a dma_dir of DMA_FROM_DEVICE. Shouldn't this be DMA_NONE? I'm still tracking this down. Brian -- Brian King eServer Storage I/O IBM Linux Technology Center - To unsubscribe from this list: send th