All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Anand Kumar Santhanam <AnandKumar.Santhanam@pmcs.com>
Cc: Jack Wang <xjtuwjp@gmail.com>,
	linux-scsi@vger.kernel.org, lindar_liu@usish.com,
	Sangeetha Gnanasekaran <Sangeetha.Gnanasekaran@pmcs.com>,
	jinpu.wang@profitbricks.com
Subject: Re: [PATCH] pm80xx: fix Adaptec 71605H hang
Date: Thu, 25 Jul 2013 08:47:15 +0200	[thread overview]
Message-ID: <51F0C9F3.7030500@xs4all.nl> (raw)
In-Reply-To: <E5DEE6F468524847995699AD11E8088501BED4A5@BBY1EXM11.pmc_nt.nt.pmc-sierra.bc.ca>

Hi Anand,

On 07/25/2013 06:44 AM, Anand Kumar Santhanam wrote:
> Hi Hans,
> 
> Are you planning to address the below comment and submit an updated
> patch?

I think there was a misunderstanding there. It was my impression that you
would do a follow-up patch for that.

I can add the define if you want, but where do you want it? In pm8001_defs.h
with the name PM80XX_MPI_IOMB_SIZE_SPCV? Should I create a PM8001_MPI_IOMB_SIZE_SPCV
as well?

Regards,

	Hans

> 
> Regards
> Anand
> 
> -----Original Message-----
> From: Jack Wang [mailto:xjtuwjp@gmail.com] 
> Sent: Monday, July 15, 2013 3:14 PM
> To: Hans Verkuil
> Cc: linux-scsi@vger.kernel.org; Anand Kumar Santhanam;
> lindar_liu@usish.com; Sangeetha Gnanasekaran;
> jinpu.wang@profitbricks.com
> Subject: Re: [PATCH] pm80xx: fix Adaptec 71605H hang
> 
> On 07/14/2013 10:25 AM, Hans Verkuil wrote:
>> The IO command size is 128 bytes for these new controllers as opposed 
>> to 64 for the old 8001 controller.
>>
>> The Adaptec out-of-tree driver did this correctly. After comparing the
> 
>> two this turned out to be the crucial difference.
> Thanks Hans for this fix.
> We'd better use more meaningful Micro like:
> 
> #define MPI_IOMB_SIZE_SPCV 128 and replace current hard coded one.
> 
> Thanks,
> Jack
>>
>> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
>> Acked-by: AnandKumar.Santhanam@pmcs.com
>> Cc: stable@vger.kernel.org      # for v3.10 and up
>> ---
>>  drivers/scsi/pm8001/pm80xx_hwi.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c 
>> b/drivers/scsi/pm8001/pm80xx_hwi.c
>> index 302514d..e1db5ca 100644
>> --- a/drivers/scsi/pm8001/pm80xx_hwi.c
>> +++ b/drivers/scsi/pm8001/pm80xx_hwi.c
>> @@ -275,7 +275,7 @@ static void init_default_table_values(struct 
>> pm8001_hba_info *pm8001_ha)
>>  
>>  	for (i = 0; i < PM8001_MAX_SPCV_INB_NUM; i++) {
>>  		pm8001_ha->inbnd_q_tbl[i].element_pri_size_cnt	=
>> -			PM8001_MPI_QUEUE | (64 << 16) | (0x00<<30);
>> +			PM8001_MPI_QUEUE | (128 << 16) | (0x00<<30);
>>  		pm8001_ha->inbnd_q_tbl[i].upper_base_addr	=
>>  			pm8001_ha->memoryMap.region[IB +
> i].phys_addr_hi;
>>  		pm8001_ha->inbnd_q_tbl[i].lower_base_addr	=
>> @@ -301,7 +301,7 @@ static void init_default_table_values(struct
> pm8001_hba_info *pm8001_ha)
>>  	}
>>  	for (i = 0; i < PM8001_MAX_SPCV_OUTB_NUM; i++) {
>>  		pm8001_ha->outbnd_q_tbl[i].element_size_cnt	=
>> -			PM8001_MPI_QUEUE | (64 << 16) | (0x01<<30);
>> +			PM8001_MPI_QUEUE | (128 << 16) | (0x01<<30);
>>  		pm8001_ha->outbnd_q_tbl[i].upper_base_addr	=
>>  			pm8001_ha->memoryMap.region[OB +
> i].phys_addr_hi;
>>  		pm8001_ha->outbnd_q_tbl[i].lower_base_addr	=
>>

  reply	other threads:[~2013-07-25  6:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-14  8:25 [PATCH] pm80xx: fix Adaptec 71605H hang Hans Verkuil
2013-07-15  9:44 ` Jack Wang
2013-07-25  4:44   ` Anand Kumar Santhanam
2013-07-25  6:47     ` Hans Verkuil [this message]
2013-07-25  7:20       ` Anand Kumar Santhanam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51F0C9F3.7030500@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=AnandKumar.Santhanam@pmcs.com \
    --cc=Sangeetha.Gnanasekaran@pmcs.com \
    --cc=jinpu.wang@profitbricks.com \
    --cc=lindar_liu@usish.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=xjtuwjp@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.