~dthompso-98/ubuntu/+source/linux-bluefield/+git/jammy:bf3_gige

Last commit made on 2022-10-28
Get this branch:
git clone -b bf3_gige https://git.launchpad.net/~dthompso-98/ubuntu/+source/linux-bluefield/+git/jammy
Only David Thompson can upload to this branch. If you are David Thompson please log in for upload directions.

Branch merges

Branch information

Recent commits

1ed4f19... by David Thompson

UBUNTU: SAUCE: mlxbf_gige: add BlueField-3 ethtool_ops

BugLink: https://bugs.launchpad.net/bugs/1995148

This patch adds logic to support initialization of a
BlueField-3 specific "ethtool_ops" data structure. The
BlueField-3 data structure supports the "set_link_ksettings"
callback, while the BlueField-2 data structure does not.

Signed-off-by: David Thompson <email address hidden>
Signed-off-by: Asmaa Mnebhi <email address hidden>

9c64912... by David Thompson

UBUNTU: SAUCE: mlxbf_gige: add BlueField-3 Serdes configuration

BugLink: https://bugs.launchpad.net/bugs/1995148

The BlueField-3 out-of-band Ethernet interface requires
SerDes configuration. There are two aspects to this:

Configuration of PLL:
    1) Initialize UPHY registers to values dependent on p1clk clock
    2) Load PLL best known values via the gateway register
    3) Set the fuses to tune up the SerDes voltage
    4) Lock the PLL
    5) Get the lanes out of functional reset.
    6) Configure the UPHY microcontroller via gateway reads/writes

Configuration of lanes:
    1) Configure and open TX lanes
    2) Configure and open RX lanes

Signed-off-by: David Thompson <email address hidden>
Signed-off-by: Asmaa Mnebhi <email address hidden>

cd1a9ad... by David Thompson

UBUNTU: SAUCE: mlxbf_gige: support 10M/100M/1G speeds on BlueField-3

BugLink: https://bugs.launchpad.net/bugs/1995148

The BlueField-3 OOB interface supports 10Mbps, 100Mbps, and 1Gbps speeds.
The external PHY is responsible for autonegotiating the speed with the
link partner. Once the autonegotiation is done, the BlueField PLU needs
to be configured accordingly.

This patch does two things:
1) Initialize the advertised control flow/duplex/speed in the probe
   based on the BlueField SoC generation (2 or 3)
2) Adjust the PLU speed config in the PHY interrupt handler

Signed-off-by: David Thompson <email address hidden>
Signed-off-by: Asmaa Mnebhi <email address hidden>

2c23bd3... by David Thompson

UBUNTU: SAUCE: mlxbf_gige: add MDIO support for BlueField-3

BugLink: https://bugs.launchpad.net/bugs/1995148

This patch adds initial MDIO support for the BlueField-3
SoC. Separate header files for the BlueField-2 and the
BlueField-3 SoCs have been created. These header files
hold the SoC-specific MDIO macros since the register
offsets and bit fields have changed. Also, in BlueField-3
there is a separate register for writing and reading the
MDIO data. Finally, instead of having "if" statements
everywhere to differentiate between SoC-specific logic,
a mlxbf_gige_mdio_gw_t struct was created for this purpose.

Signed-off-by: David Thompson <email address hidden>
Signed-off-by: Asmaa Mnebhi <email address hidden>

841f32e... by Bartlomiej Zolnierkiewicz

UBUNTU: Ubuntu-bluefield-5.15.0-1009.11

Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>

d0b9941... by Bartlomiej Zolnierkiewicz

UBUNTU: [Config] bluefield: Enable TRACE_IRQFLAGS_NMI_SUPPORT config on arm64

BugLink: https://bugs.launchpad.net/bugs/1990162

Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>

3a1cf61... by Bartlomiej Zolnierkiewicz

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1991984
Properties: no-test-build
Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>

1c01eaa... by Bartlomiej Zolnierkiewicz

UBUNTU: [Config] bluefield: Drop CRYPTO_BLAKE2S config (gone away)

BugLink: https://bugs.launchpad.net/bugs/1990162

 Signed-off-by: Kamal Mostafa <email address hidden>
 Signed-off-by: Stefan Bader <email address hidden>

Copied from master

Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>

38e2beb... by Bartlomiej Zolnierkiewicz

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>

399e064... by Peng Wu <email address hidden>

net/mlxbf_gige: Fix an IS_ERR() vs NULL bug in mlxbf_gige_mdio_probe

BugLink: https://bugs.launchpad.net/bugs/1991403

The devm_ioremap() function returns NULL on error, it doesn't return
error pointers.

Fixes: 3a1a274e933f ("mlxbf_gige: compute MDIO period based on i1clk")
Signed-off-by: Peng Wu <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 4774db8dfc6a2e6649920ebb2fc8e2f062c2080d)
Signed-off-by: David Thompson <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>