RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-04 Thread Ed Lin
> -Original Message- > From: James Bottomley [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 04, 2007 10:36 AM > To: Ed Lin > Cc: linux-scsi; linux-kernel; jeff; Promise_Linux > Subject: RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue > > > On Wed, 20

RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-04 Thread James Bottomley
On Wed, 2007-04-04 at 10:31 -0700, Ed Lin wrote: > Sorry. It seems the mail server has problem. The patch is here in plain > text. I hope this time it does not mess up. I have problem with > linux-scsi > mail list, if you have comment please cc me. Thanks. > --Ed Lin The lines are still broken, I

RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-04 Thread Ed Lin
> -Original Message- > From: Ed Lin > Sent: Monday, April 02, 2007 4:01 PM > To: 'James Bottomley' > Cc: linux-scsi; linux-kernel; jeff; Promise_Linux > Subject: RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue > > > > > > -Original

RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-02 Thread Ed Lin
> -Original Message- > From: James Bottomley [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 7:22 AM > To: Ed Lin > Cc: linux-scsi; linux-kernel; jeff; Promise_Linux > Subject: Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue > > > On Fri, 2007-0

RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-02 Thread Ed Lin
> -Original Message- > From: James Bottomley [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 7:22 AM > To: Ed Lin > Cc: linux-scsi; linux-kernel; jeff; Promise_Linux > Subject: Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue > > > On Fri, 2007-0

RE: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-04-02 Thread Ed Lin
> -Original Message- > From: Christoph Hellwig [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 2:27 AM > To: Ed Lin > Cc: linux-scsi; linux-kernel; james.Bottomley; jeff; Promise_Linux > Subject: Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue > > &

Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-03-31 Thread James Bottomley
On Fri, 2007-03-30 at 15:21 -0700, Ed Lin wrote: > The internal id/lun mapping of st_vsc and st_vsc1 controllers is different > from st_shasta. The original driver code can only map first 16 'entities' > for st_vsc and st_vsc1 while there are actually 128 available. > > Also the ST_MAX_LUN_PER_T

Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-03-31 Thread Christoph Hellwig
On Fri, Mar 30, 2007 at 03:21:33PM -0700, Ed Lin wrote: > + if (hba->cardtype == st_shasta) { > req->lun = lun; > req->target = id; > + } else if (hba->cardtype == st_yosemite){ > + req->lun = id * ST_MAX_LUN_PER_TARGET + lun; > + req->tar

Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue

2007-03-30 Thread Jeff Garzik
Ed Lin wrote: The internal id/lun mapping of st_vsc and st_vsc1 controllers is different from st_shasta. The original driver code can only map first 16 'entities' for st_vsc and st_vsc1 while there are actually 128 available. Also the ST_MAX_LUN_PER_TARGET should be 8, although this can do no