Skip to content

thunderbolt: ASMedia FW update support

Desnes Nunes requested to merge desnesn/centos-stream-9:rh2124944 into main

BUGZILLA

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2124944

UPSTREAM STATUS

Upstream Status: Patches have been accepted on kernel/git/torvalds/linux.git

CONFLICTS

None

BUILD INFORMATION

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=50718939

TESTING

Functional testing: TBD

Smoke test:

# modinfo thunderbolt
name:           thunderbolt
filename:       (builtin)
license:        GPL
file:           drivers/thunderbolt/thunderbolt
parm:           xdomain:allow XDomain protocol (default: true) (bool)
parm:           start_icm:start ICM firmware if it is not running (default: false) (bool)
parm:           clx:allow low power states on the high-speed lanes (default: true) (bool)

# cat /lib/modules/$(uname -r)/modules.builtin | grep thunderbolt
kernel/drivers/thunderbolt/thunderbolt.ko

# dmesg | grep thunder
[    6.060468] ACPI: bus type thunderbolt registered

# uname -r
5.14.0-265.rh2124944.el9.x86_64

# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.1 (Plow)

# rpm -q --changelog kernel-5.14.0-265.rh2124944.el9.x86_64.rpm | head 
* Mon Feb 13 2023 Desnes Nunes <desnesn@redhat.com> [5.14.0-265.rh2124944.el9]
- thunderbolt: Add support for ASMedia NVM image format (Desnes Nunes)
- thunderbolt: Move vendor specific NVM handling into nvm.c (Desnes Nunes)
- thunderbolt: Provide tb_retimer_nvm_read() analogous to tb_switch_nvm_read() (Desnes Nunes)
- thunderbolt: Move tb_xdomain_parent() to tb.h (Desnes Nunes)
- thunderbolt: Rename and make nvm_read() available for other files (Desnes Nunes)
- thunderbolt: Extend NVM version fields to 32-bits (Desnes Nunes)
- thunderbolt: Allow NVM upgrade of USB4 host routers (Desnes Nunes)

* Thu Feb 09 2023 Herton R. Krzesinski <herton@redhat.com> [5.14.0-265.el9]

# lscpu | grep -m1 "Model name"
Model name:                      AMD EPYC 7542 32-Core Processor

# dmidecode | grep -A3 '^System Information'
System Information
	Manufacturer: Dell Inc.
	Product Name: PowerEdge R6515
	Version: Not Specified

DESCRIPTION

This series enables ASMedia USB4 controller firmware update support.

OEM Storm Peak platforms are expected to be include ASMedia USB4 controllers that have the ability to upgrade the FW accordingly.

Signed-off-by: Desnes Nunes desnesn@redhat.com

Merge request reports