OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [PATCH 2/2] transport-pci: Move transitional device id to legacy section


> From: Michael S. Tsirkin <mst@redhat.com>
> Sent: Saturday, February 25, 2023 5:58 PM
> 
> On Sat, Feb 25, 2023 at 09:38:16PM +0000, Parav Pandit wrote:
> >
> > > From: Michael S. Tsirkin <mst@redhat.com>
> > > Sent: Saturday, February 25, 2023 12:27 PM
> > >
> > > On Sat, Feb 25, 2023 at 01:12:32AM +0200, Parav Pandit wrote:
> > > > Currently PCI device requirements section contains mix of
> > > > normative statements for for regular (non transitional) device and
> > > > transitional device under one section.
> > > >
> > > > Some requirements of the transitional device are also located in
> > > > legacy interface section which is the right section for it.
> > >
> > > > Hence,
> > > > 1. Move transitional device requirements to their designated Legacy
> > > >    interface section
> > > > 2. Describe regular device requirements without quoting it as "non
> > > >    transitional device"
> > >
> > > I do not think this is the way to go.
> > >
> > > Spec covers the functioning of modern devices and the transitional
> > > devices when operated by modern drivers.
> > We do not have a modern driver term in the spec.
> > We have the legacy driver and the transitional driver in spec.
> > The modern driver is the way of Linux implementation as far as I understand
> that binds to transitional and nontransitional devices.
> 
> Technically, non-transitional:
> 
> 	Devices or drivers with no legacy compatibility are referred to as
> 	non-transitional devices and drivers, respectively.
> 
Right.
So the movement by this patch aligns to what you described above.

> 
> > > The text that covers using modern interfaces belongs in the regular section.
> > >
> > What do you mean by modern interfaces in the context of spec?
> >
> > Spec at beginning says "Requirements pertaining to transitional devices and
> drivers is contained in sections named 'Legacy Interface'
> > like this one."
> 
> yes, but also:
> 
> 	When device is used through the legacy interface, transitional
> 	devices and transitional drivers MUST operate according to the
> 	requirements documented within these legacy interface sections.
> 	Specification text within these sections generally does not apply
> 	to non-transitional devices.
> 
o.k. transitional device related description is moved to the legacy interfaces section.


> 
> > So the content I moved is for the "transitional device" to the Legacy interface
> section.
> >
> > A Linux implementation is free to implement a modern driver that probes
> transitional and non-transitional devices.
> 
> Let's not confuse things please. Legacy sections talk about the legacy interface.
Yes, it talks about legacy interface.
But not limited to only legacy interface.
It describes the transitional device interface to like the below revision id example.

> If something applies when device is not used through the legacy interface then
> it does not belong in the legacy section.
> 
> What you are missing is that a non-transitional driver must work with a
> transitional device. Similarly a non-transitional device must work with a
> transitional driver.
> Things you are trying to move are relevant for this.
> 
> 
A description of device id vs revision id for a transitional device in the different section is weird.
This patch brings them under same section.

> 
> > > Legacy devices and drivers are covered in separate legacy sections
> > > which are non-normative (not because they have to, but simply
> > > because writing normative sections for legacy devices would be extra
> effort).
> > >
> > > Take this example. Modern drivers ignore revision, but transitional
> > > ones need to have 0 because this is what legacy drivers expect.
> > > Reporting 0 in revision this belongs in legacy section.
> > >
> > Sure. And that is how the spec is documented as you have described.
> >
> > "Transitional devices MUST have a PCI Revision ID of 0.".
> 
> And that's in the legacy section.
> 
Right. And similarly Transitional device id also now with this patch in legacy section.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]