linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SSP frame iu defines
@ 2015-10-08 14:17 John Garry
  2015-10-08 14:22 ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: John Garry @ 2015-10-08 14:17 UTC (permalink / raw)
  To: michaelc, linux-scsi, James.Bottomley, hare
  Cc: zhangfei, john.garry2, xuwei (O), Arnd Bergmann

Hi,

For a new driver I am preparing for a SAS controller, I need defintions 
for the SSP command and TMF iu structures. Currently these are defined 
in the following:
ssp_command_iu, ssp_task_iu: drivers/scsi/aic94xx_sas.h
ssp_cmd_iu, ssp_task_iu: drivers/scsi/isci/sas.h

I plan to move them to include/scsi/sas.h . Any objections?

Thanks,
John


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SSP frame iu defines
  2015-10-08 14:17 SSP frame iu defines John Garry
@ 2015-10-08 14:22 ` Arnd Bergmann
  2015-10-08 14:47   ` John Garry
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2015-10-08 14:22 UTC (permalink / raw)
  To: John Garry
  Cc: michaelc, linux-scsi, James.Bottomley, hare, zhangfei,
	john.garry2, xuwei (O)

On Thursday 08 October 2015 15:17:49 John Garry wrote:
> Hi,
> 
> For a new driver I am preparing for a SAS controller, I need defintions 
> for the SSP command and TMF iu structures. Currently these are defined 
> in the following:
> ssp_command_iu, ssp_task_iu: drivers/scsi/aic94xx_sas.h
> ssp_cmd_iu, ssp_task_iu: drivers/scsi/isci/sas.h
> 
> I plan to move them to include/scsi/sas.h . Any objections?

Hi John,

I think a question like this is better asked by sending a patch,
to make it easier to see what the resulting change is.

	Arnd

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SSP frame iu defines
  2015-10-08 14:22 ` Arnd Bergmann
@ 2015-10-08 14:47   ` John Garry
  2015-10-12 14:46     ` Hannes Reinecke
  2015-10-12 14:55     ` James Bottomley
  0 siblings, 2 replies; 6+ messages in thread
From: John Garry @ 2015-10-08 14:47 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: michaelc, linux-scsi, James.Bottomley, hare, zhangfei,
	john.garry2, xuwei (O)

On 08/10/2015 15:22, Arnd Bergmann wrote:
> On Thursday 08 October 2015 15:17:49 John Garry wrote:
>> Hi,
>>
>> For a new driver I am preparing for a SAS controller, I need defintions
>> for the SSP command and TMF iu structures. Currently these are defined
>> in the following:
>> ssp_command_iu, ssp_task_iu: drivers/scsi/aic94xx_sas.h
>> ssp_cmd_iu, ssp_task_iu: drivers/scsi/isci/sas.h
>>
>> I plan to move them to include/scsi/sas.h . Any objections?
>
> Hi John,
>
> I think a question like this is better asked by sending a patch,
> to make it easier to see what the resulting change is.
>
> 	Arnd
>
>
OK, can I put this together.
I feel that the code may get messy due to byte-ordering difference in 
isci versions.

Regards,
John


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SSP frame iu defines
  2015-10-08 14:47   ` John Garry
@ 2015-10-12 14:46     ` Hannes Reinecke
  2015-10-12 14:55     ` James Bottomley
  1 sibling, 0 replies; 6+ messages in thread
From: Hannes Reinecke @ 2015-10-12 14:46 UTC (permalink / raw)
  To: John Garry, Arnd Bergmann
  Cc: michaelc, linux-scsi, James.Bottomley, zhangfei, john.garry2,
	xuwei (O)

On 10/08/2015 04:47 PM, John Garry wrote:
> On 08/10/2015 15:22, Arnd Bergmann wrote:
>> On Thursday 08 October 2015 15:17:49 John Garry wrote:
>>> Hi,
>>>
>>> For a new driver I am preparing for a SAS controller, I need
>>> defintions
>>> for the SSP command and TMF iu structures. Currently these are
>>> defined
>>> in the following:
>>> ssp_command_iu, ssp_task_iu: drivers/scsi/aic94xx_sas.h
>>> ssp_cmd_iu, ssp_task_iu: drivers/scsi/isci/sas.h
>>>
>>> I plan to move them to include/scsi/sas.h . Any objections?
>>
>> Hi John,
>>
>> I think a question like this is better asked by sending a patch,
>> to make it easier to see what the resulting change is.
>>
>>     Arnd
>>
>>
> OK, can I put this together.
> I feel that the code may get messy due to byte-ordering difference
> in isci versions.
> 
Then define a standard version, and use the appropriate conversion
macros in the driver itself.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SSP frame iu defines
  2015-10-08 14:47   ` John Garry
  2015-10-12 14:46     ` Hannes Reinecke
@ 2015-10-12 14:55     ` James Bottomley
  2015-10-13 17:17       ` John Garry
  1 sibling, 1 reply; 6+ messages in thread
From: James Bottomley @ 2015-10-12 14:55 UTC (permalink / raw)
  To: John Garry
  Cc: Arnd Bergmann, michaelc, linux-scsi, hare, zhangfei, john.garry2,
	xuwei (O)

On Thu, 2015-10-08 at 15:47 +0100, John Garry wrote:
> On 08/10/2015 15:22, Arnd Bergmann wrote:
> > On Thursday 08 October 2015 15:17:49 John Garry wrote:
> >> Hi,
> >>
> >> For a new driver I am preparing for a SAS controller, I need defintions
> >> for the SSP command and TMF iu structures. Currently these are defined
> >> in the following:
> >> ssp_command_iu, ssp_task_iu: drivers/scsi/aic94xx_sas.h
> >> ssp_cmd_iu, ssp_task_iu: drivers/scsi/isci/sas.h
> >>
> >> I plan to move them to include/scsi/sas.h . Any objections?
> >
> > Hi John,
> >
> > I think a question like this is better asked by sending a patch,
> > to make it easier to see what the resulting change is.
> >
> > 	Arnd
> >
> >
> OK, can I put this together.
> I feel that the code may get messy due to byte-ordering difference in 
> isci versions.

That's why we develop with the show me the code model.  Rather than
arguing theoretically about whether something should or should not be
done, you propose the actual change.  If it looks like a dog's breakfast
and all attempts to clean it up fail, chances are it's a bad change and
it won't go in.  However, if it looks good, chances are it will.

James



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SSP frame iu defines
  2015-10-12 14:55     ` James Bottomley
@ 2015-10-13 17:17       ` John Garry
  0 siblings, 0 replies; 6+ messages in thread
From: John Garry @ 2015-10-13 17:17 UTC (permalink / raw)
  To: James Bottomley
  Cc: Arnd Bergmann, michaelc, linux-scsi, hare, zhangfei, john.garry2,
	xuwei (O)


>> OK, can I put this together.
>> I feel that the code may get messy due to byte-ordering difference in
>> isci versions.
>
> That's why we develop with the show me the code model.  Rather than
> arguing theoretically about whether something should or should not be
> done, you propose the actual change.  If it looks like a dog's breakfast
> and all attempts to clean it up fail, chances are it's a bad change and
> it won't go in.  However, if it looks good, chances are it will.
>
> James
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> .
>

There is a patch for this in "[PATCH 01/25] [SCSI] sas: centralise ssp 
frame information units".

Thanks,
John


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-13 17:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 14:17 SSP frame iu defines John Garry
2015-10-08 14:22 ` Arnd Bergmann
2015-10-08 14:47   ` John Garry
2015-10-12 14:46     ` Hannes Reinecke
2015-10-12 14:55     ` James Bottomley
2015-10-13 17:17       ` John Garry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).