-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schemas: pci: bridge: Document PCIe equalization presets #146
Conversation
5d7cb75
to
d9a62e9
Compare
Looks fine to me. @bjorn-helgaas ? |
On Mon, Nov 4, 2024 at 6:54 AM Rob Herring ***@***.***> wrote:
Looks fine to me. @bjorn-helgaas <https://github.com/bjorn-helgaas> ?
OK by me.
I suppose it's obvious to driver writers (though it caused confusion for
me), but is there any reason not to be explicit in the schema descriptions
about where these values go, i.e., eq-presets-8gts values go in Lane
Equalization Control registers (PCIe r6.0, sec 7.7.3.4), eq-presets-16gts
values go in 16.0 GT/s Lane Equalization Control registers (sec 7.7.5.9),
etc?
To me, spec citations would be more useful than the "Each preset value is
used to adjust the transmitter settings to improve signal quality and meet
the electrical requirements" text. Without the details from the spec, that
text isn't enough to help figure out the numbers to put in the array or
where to program them.
Do these patches and discussion get archived anywhere, e.g., on lore, or is
it only on github?
|
Makes sense to me to add that. I would hope there's exactly 1 implementation stuffing these values into registers and not leaving it up to each driver to implement (and therefore get it wrong).
Only on GH. I do take dtschema patches from devicetree-spec list as well if submitter prefer email. |
I will update the description as suggested in next patch. |
Rob, these programming needs to be done before initiating link training, I don't we can have a common implementation for all since at the time of programming these registers pci_dev is not created to use common implementation.
@bjorn-helgaas, let me know which way you prefer. |
On Mon, Nov 04, 2024 at 09:22:59PM -0800, Krishna chaitanya chundru wrote:
> > On Mon, Nov 4, 2024 at 6:54 AM Rob Herring _**@**_.***> wrote: Looks fine to me. @bjorn-helgaas https://github.com/bjorn-helgaas ?
> > OK by me. I suppose it's obvious to driver writers (though it caused confusion for me), but is there any reason not to be explicit in the schema descriptions about where these values go, i.e., eq-presets-8gts values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.3.4), eq-presets-16gts values go in 16.0 GT/s Lane Equalization Control registers (sec 7.7.5.9), etc? To me, spec citations would be more useful than the "Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements" text. Without the details from the spec, that text isn't enough to help figure out the numbers to put in the array or where to program them.
>
> Makes sense to me to add that.
>
> I would hope there's exactly 1 implementation stuffing these values into registers and not leaving it up to each driver to implement (and therefore get it wrong).
Rob, these programming needs to be done before initiating link training, I don't we can have a common implementation for all since at the time of programming these registers pci_dev is not created to use common implementation.
>
> > Do these patches and discussion get archived anywhere, e.g., on lore, or is it only on github?
>
> Only on GH. I do take dtschema patches from devicetree-spec list as well if submitter prefer email.
@bjorn-helgaas, let me know which way you prefer.
Thanks for the pointer to ***@***.*** I'm not
really involved in dtschema stuff, so don't really have standing to
express a preference.
I asked because lore is incredibly useful as a permanent, searchable,
scriptable, public archive. GitHub is also useful but in different
ways.
Sorry about the ugly quote formatting above. I guess GitHub wasn't
really built with plain-text email in mind.
|
The minimum is 1 common function to read the properties. That's what we have for all common properties such as link speed. Ideally, it would just plug the values into the registers as well, but perhaps the config space accessors are not available at that point. Really, I'd like to see the core managing link training as well (with callbacks to handle the h/w specifics). It is possible for link training to happen later (after probe). That happens already on some controller drivers. Anyways, that's all separate from this patch.
Please don't switch in the middle of this. |
I think the few drivers that program these registers (tegra194, qcom, mediatek-gen3) do it via device-specific registers, not via the architected config space ones. The registers in config space are mostly HwInit/RO so likely not writable in general. |
PCIe equalization presets are predefined settings used to optimize signal integrity by compensating for signal loss and distortion in high-speed data transmission. As per PCIe spec 6.0.1 revision section 8.3.3.3 & 4.2.4 for data rates of 8.0 GT/s, 16.0 GT/s, 32.0 GT/s and 64.0 GT/s provides a way to configure lane equalization presets for each lane to enhance the PCIe link reliability. Each preset value represents a different combination of pre-shoot and de-emphasis values. For each data rate it may be required to have a different preset configuration and each lane will have different preset values. Define per data rate equalization preset property with array of 16 representing 16 lanes of the PCIe. Signed-off-by: Krishna chaitanya chundru <[email protected]>
d9a62e9
to
47a0aa4
Compare
PCIe equalization presets are predefined settings used to optimize signal integrity by compensating for signal loss and distortion in high-speed data transmission.
As per PCIe spec 6.0.1 revision section 8.3.3.3 & 4.2.4 for data rates of 8.0 GT/s, 16.0 GT/s, 32.0 GT/s and 64.0 GT/s provides a way to configure lane equalization presets for each lane to enhance the PCIe link reliability. Each preset value represents a different combination of pre-shoot and de-emphasis values.
For each data rate it may be required to have a different preset configuration and each lane will have different preset values.
Define per data rate equalization preset property with array of 16 representing 16 lanes of the PCIe.