* [PATCHv2] hpsa: expose enclosures
@ 2017-02-23 10:55 Hannes Reinecke
2017-03-07 15:05 ` Don Brace
0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2017-02-23 10:55 UTC (permalink / raw)
To: Martin K. Petersen
Cc: Christoph Hellwig, James Bottomley, linux-scsi, Hannes Reinecke,
Don Brace, Hannes Reinecke
Some servers have a built-in enclosure which will show up on the
same bus as the internal physical devices. This patch fixes the
driver to expose them.
Cc: Don Brace <don.brace@microsemi.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
drivers/scsi/hpsa.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 524a0c7..a77ed5a 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -4407,7 +4407,10 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h)
* Expose all devices except for physical devices that
* are masked.
*/
- if (MASKED_DEVICE(lunaddrbytes) && this_device->physical_device)
+ if (this_device->devtype == TYPE_ENCLOSURE)
+ this_device->expose_device = 1;
+ else if (MASKED_DEVICE(lunaddrbytes) &&
+ this_device->physical_device)
this_device->expose_device = 0;
else
this_device->expose_device = 1;
--
1.8.5.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCHv2] hpsa: expose enclosures
2017-02-23 10:55 [PATCHv2] hpsa: expose enclosures Hannes Reinecke
@ 2017-03-07 15:05 ` Don Brace
2017-03-07 15:24 ` Hannes Reinecke
0 siblings, 1 reply; 4+ messages in thread
From: Don Brace @ 2017-03-07 15:05 UTC (permalink / raw)
To: Hannes Reinecke, Martin K. Petersen
Cc: Christoph Hellwig, James Bottomley, linux-scsi@vger.kernel.org,
Hannes Reinecke
> -----Original Message-----
> From: Hannes Reinecke [mailto:hare@suse.de]
> Sent: Thursday, February 23, 2017 4:55 AM
> To: Martin K. Petersen <martin.petersen@oracle.com>
> Cc: Christoph Hellwig <hch@lst.de>; James Bottomley
> <james.bottomley@hansenpartnership.com>; linux-scsi@vger.kernel.org;
> Hannes Reinecke <hare@suse.de>; Don Brace
> <don.brace@microsemi.com>; Hannes Reinecke <hare@suse.com>
> Subject: [PATCHv2] hpsa: expose enclosures
>
> EXTERNAL EMAIL
>
>
> Some servers have a built-in enclosure which will show up on the
> same bus as the internal physical devices. This patch fixes the
> driver to expose them.
>
> Cc: Don Brace <don.brace@microsemi.com>
> Signed-off-by: Hannes Reinecke <hare@suse.com>
Masking various SES targets is a conscious choice, not a design oversight.
So, I have to decline this patch.,
Thanks,
Don Brace
ESC - Smart Storage
Microsemi Corporation
> ---
> drivers/scsi/hpsa.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
> index 524a0c7..a77ed5a 100644
> --- a/drivers/scsi/hpsa.c
> +++ b/drivers/scsi/hpsa.c
> @@ -4407,7 +4407,10 @@ static void hpsa_update_scsi_devices(struct
> ctlr_info *h)
> * Expose all devices except for physical devices that
> * are masked.
> */
> - if (MASKED_DEVICE(lunaddrbytes) && this_device-
> >physical_device)
> + if (this_device->devtype == TYPE_ENCLOSURE)
> + this_device->expose_device = 1;
> + else if (MASKED_DEVICE(lunaddrbytes) &&
> + this_device->physical_device)
> this_device->expose_device = 0;
> else
> this_device->expose_device = 1;
> --
> 1.8.5.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHv2] hpsa: expose enclosures
2017-03-07 15:05 ` Don Brace
@ 2017-03-07 15:24 ` Hannes Reinecke
2017-03-07 16:33 ` Don Brace
0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2017-03-07 15:24 UTC (permalink / raw)
To: Don Brace, Hannes Reinecke, Martin K. Petersen
Cc: Christoph Hellwig, James Bottomley, linux-scsi@vger.kernel.org
On 03/07/2017 04:05 PM, Don Brace wrote:
>> -----Original Message-----
>> From: Hannes Reinecke [mailto:hare@suse.de]
>> Sent: Thursday, February 23, 2017 4:55 AM
>> To: Martin K. Petersen <martin.petersen@oracle.com>
>> Cc: Christoph Hellwig <hch@lst.de>; James Bottomley
>> <james.bottomley@hansenpartnership.com>; linux-scsi@vger.kernel.org;
>> Hannes Reinecke <hare@suse.de>; Don Brace
>> <don.brace@microsemi.com>; Hannes Reinecke <hare@suse.com>
>> Subject: [PATCHv2] hpsa: expose enclosures
>>
>> EXTERNAL EMAIL
>>
>>
>> Some servers have a built-in enclosure which will show up on the
>> same bus as the internal physical devices. This patch fixes the
>> driver to expose them.
>>
>> Cc: Don Brace <don.brace@microsemi.com>
>> Signed-off-by: Hannes Reinecke <hare@suse.com>
>
> Masking various SES targets is a conscious choice, not a design oversight.
> So, I have to decline this patch.,
>
Would you be okay with a module parameter for this?
It really feels stupid to present the user with an enclosure device
during boot (as hpsa presents all physical LUNs during booting), but not
exporting it to the user.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.com +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCHv2] hpsa: expose enclosures
2017-03-07 15:24 ` Hannes Reinecke
@ 2017-03-07 16:33 ` Don Brace
0 siblings, 0 replies; 4+ messages in thread
From: Don Brace @ 2017-03-07 16:33 UTC (permalink / raw)
To: Hannes Reinecke, Hannes Reinecke, Martin K. Petersen
Cc: Christoph Hellwig, James Bottomley, linux-scsi@vger.kernel.org
> -----Original Message-----
> From: Hannes Reinecke [mailto:hare@suse.com]
> Sent: Tuesday, March 07, 2017 9:25 AM
> To: Don Brace <don.brace@microsemi.com>; Hannes Reinecke
> <hare@suse.de>; Martin K. Petersen <martin.petersen@oracle.com>
> Cc: Christoph Hellwig <hch@lst.de>; James Bottomley
> <james.bottomley@hansenpartnership.com>; linux-scsi@vger.kernel.org
> Subject: Re: [PATCHv2] hpsa: expose enclosures
>
> EXTERNAL EMAIL
>
>
> On 03/07/2017 04:05 PM, Don Brace wrote:
> >> -----Original Message-----
> >> From: Hannes Reinecke [mailto:hare@suse.de]
> >> Sent: Thursday, February 23, 2017 4:55 AM
> >> To: Martin K. Petersen <martin.petersen@oracle.com>
> >> Cc: Christoph Hellwig <hch@lst.de>; James Bottomley
> >> <james.bottomley@hansenpartnership.com>; linux-scsi@vger.kernel.org;
> >> Hannes Reinecke <hare@suse.de>; Don Brace
> >> <don.brace@microsemi.com>; Hannes Reinecke <hare@suse.com>
> >> Subject: [PATCHv2] hpsa: expose enclosures
> >>
> >> EXTERNAL EMAIL
> >>
> >>
> >> Some servers have a built-in enclosure which will show up on the
> >> same bus as the internal physical devices. This patch fixes the
> >> driver to expose them.
> >>
> >> Cc: Don Brace <don.brace@microsemi.com>
> >> Signed-off-by: Hannes Reinecke <hare@suse.com>
> >
> > Masking various SES targets is a conscious choice, not a design oversight.
> > So, I have to decline this patch.,
> >
> Would you be okay with a module parameter for this?
> It really feels stupid to present the user with an enclosure device
> during boot (as hpsa presents all physical LUNs during booting), but not
> exporting it to the user.
>
> Cheers,
>
> Hannes
We would not be able to support this as it can cause issues with
LED management. A customer could pull the wrong drive and lose data because the LED state was incorrect.
That results in support issues.
We like to show the enclosures even if masked as it helps with diagnosing problems.
Thanks,
Don Brace
ESC - Smart Storage
Microsemi Corporation
> --
> Dr. Hannes Reinecke zSeries & Storage
> hare@suse.com +49 911 74053 688
> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
> GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
> HRB 21284 (AG Nürnberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-07 23:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 10:55 [PATCHv2] hpsa: expose enclosures Hannes Reinecke
2017-03-07 15:05 ` Don Brace
2017-03-07 15:24 ` Hannes Reinecke
2017-03-07 16:33 ` Don Brace
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox