All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy
  2002-08-26 17:01 [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDD reentrancy Aron Zeh
@ 2002-08-26 21:33 ` Luben Tuikov
  0 siblings, 0 replies; 3+ messages in thread
From: Luben Tuikov @ 2002-08-26 21:33 UTC (permalink / raw)
  To: linux-scsi

Aron Zeh wrote:
> 
> I currently don't know of a way that SCSI devices (LUNs) generate hotplug
> notifications by. (FC sends RSCNs and other nasty stuff for ports, which
> are one level higher up. I don't think reconfiguring the LUNs behind a port
> would generate any message, would it?)

Unit Attention condition should be generated.

Some (all?) transports allow for the target sending an asynchronous
message to the initiator, but in SAM-3, an initiator being
a real such and a target being a real target, the target is the passive
device and the initiator is the active one, thus Unit Attention
condition is generated (SAM-3, 5.8.5).

> Even of messages are generated, they'd probably differ according to the
> underlying hardware. Would HBA drivers have to catch them and use more
> generic callbacks to tell the SCSI stack?

Forget about HBAs. In order to get anything working it has to be
at SAM-3 level.

It's ok when we plug into the PCI bus, but what happens
when SAN box number XXXX comes up and you're connected to
the farm over with iSCSI. How are you to know?...

That is, we cannot assume that it's an HBA there anymore,
just as we stopped assuming that the HBA is SPI, some time ago.
(It could be FCP, iSCSI, etc.)

-- 
Luben

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

* Re: [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy
@ 2002-08-27  7:52 Aron Zeh
  2002-08-27 21:04 ` Luben Tuikov
  0 siblings, 1 reply; 3+ messages in thread
From: Aron Zeh @ 2002-08-27  7:52 UTC (permalink / raw)
  To: Luben Tuikov; +Cc: linux-scsi


> Aron Zeh wrote:
> >
> > I currently don't know of a way that SCSI devices (LUNs) generate
hotplug
> > notifications by. (FC sends RSCNs and other nasty stuff for ports,
which
> > are one level higher up. I don't think reconfiguring the LUNs behind a
port
> > would generate any message, would it?)
>
> Unit Attention condition should be generated.
>
> Some (all?) transports allow for the target sending an asynchronous
> message to the initiator, but in SAM-3, an initiator being
> a real such and a target being a real target, the target is the passive
> device and the initiator is the active one, thus Unit Attention
> condition is generated (SAM-3, 5.8.5).
>
That's exactly where my question comes in. How do we see that an
asynchronous
reconfiguration on unit level has taken place? Unit Attentions are only
reported
in piggy-back fashion on top of a command per the standard you quoted (if I
did not misread it).
If a unit was just added to the configuration (and holds "unit was just
powered on" attention)
then I cannot see how Linux could find out.

> > Even of messages are generated, they'd probably differ according to the
> > underlying hardware. Would HBA drivers have to catch them and use more
> > generic callbacks to tell the SCSI stack?
>
> Forget about HBAs. In order to get anything working it has to be
> at SAM-3 level.
>
> It's ok when we plug into the PCI bus, but what happens
> when SAN box number XXXX comes up and you're connected to
> the farm over with iSCSI. How are you to know?...
>
> That is, we cannot assume that it's an HBA there anymore,
> just as we stopped assuming that the HBA is SPI, some time ago.
> (It could be FCP, iSCSI, etc.)

So you're ruling out the use of transport specific hotplug notifications
like RSCN on FC?
I currently cannot quite see how this would work. Isn't there always the
need to interpret reconfigurations of the hardware used to transport SAM-3
data on a lower level? Or has SAM-3 some capabilites for doing just that
that I have missed?

Aron

> --
> Luben
> -


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

* Re: [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy
  2002-08-27  7:52 [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy Aron Zeh
@ 2002-08-27 21:04 ` Luben Tuikov
  0 siblings, 0 replies; 3+ messages in thread
From: Luben Tuikov @ 2002-08-27 21:04 UTC (permalink / raw)
  To: linux-scsi

Aron Zeh wrote:
> 
> That's exactly where my question comes in. How do we see that an
> asynchronous
> reconfiguration on unit level has taken place? Unit Attentions are only
> reported
> in piggy-back fashion on top of a command per the standard you quoted (if I
> did not misread it).
> If a unit was just added to the configuration (and holds "unit was just
> powered on" attention)
> then I cannot see how Linux could find out.

Yes, we have a similar conundrum.

Well, a notification is needed just because the transport has to know
in order to process properly any resevations/etc.

But all this is transport specific and UA is what SAM-3 specifies
as per Target/Initiator architecture (client/server). (SAM-3, 4.6(.1)) 

This model is properly preserved in Linux by the Scsi_Host_Template.

> So you're ruling out the use of transport specific hotplug notifications
> like RSCN on FC?

Not really ``ruling out'', but you can notify of such an event by other
means.

> I currently cannot quite see how this would work. Isn't there always the
> need to interpret reconfigurations of the hardware used to transport SAM-3
> data on a lower level? Or has SAM-3 some capabilites for doing just that
> that I have missed?

SAM-3 doesn't provide for ``hotplugging''. It's the whole server/client
architecture.

Since a human/robot is doing the hotplugging, such events can be
notified of by other means.

-- 
Luben

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

end of thread, other threads:[~2002-08-27 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-27  7:52 [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy Aron Zeh
2002-08-27 21:04 ` Luben Tuikov
  -- strict thread matches above, loose matches on Subject: below --
2002-08-26 17:01 [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDD reentrancy Aron Zeh
2002-08-26 21:33 ` [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDDreentrancy Luben Tuikov

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.