~vicamo/+git/ubuntu-kernel:bug-2000133/amd-navi31-ubsan-warns/oem-6.0

Last commit made on 2022-12-23
Get this branch:
git clone -b bug-2000133/amd-navi31-ubsan-warns/oem-6.0 https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-2000133/amd-navi31-ubsan-warns/oem-6.0
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

797b48b... by You-Sheng Yang

Bug 2000133: Fix UBSAN errors on AMD navi31 GPU

ff8930c... by Ma Jun <email address hidden>

drm/amdkfd: Fix the warning of array-index-out-of-bounds

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

For some GPUs with more CUs, the original sibling_map[32]
in struct crat_subtype_cache is not enough
to save the cache information when create the VCRAT table,
so skip filling the struct crat_subtype_cache info instead
fill struct kfd_cache_properties directly to fix this problem.

Signed-off-by: Ma Jun <email address hidden>
Reviewed-by: Felix Kuehling <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(backported from commit c0cc999f3c32e65a7c88fb323893ddf897b24488)
[vicamo: fix conflict in kfd_get_gpu_cache_info]
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

65f3044... by Ma Jun <email address hidden>

drm/amdkfd: Remove unused variable

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

kfd_topology_device->cache_count is not used by
other fucntions, so remove it.

Signed-off-by: Ma Jun <email address hidden>
Reviewed-by: Felix Kuehling <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit ee22f63b1085fd5cf1649e8915b1e2617cd33ca0)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

4807da9... by Prike Liang <email address hidden>

drm/amdkfd: introduce dummy cache info for property asic

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

This dummy cache info will enable kfd base function support.

Signed-off-by: Prike Liang <email address hidden>
Reviewed-by: Alex Deucher <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit fd72e2cb2f9dd2734e8013b3e185a21f0d605d3e)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

1da4e7f... by You-Sheng Yang

Experimental linux-oem-6.0/jammy changes

6be75cb... by Szuying Chen <email address hidden>

thunderbolt: Add support for ASMedia NVM image format

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

Add support for ASMedia specific NVM image format. This makes it
possible to upgrade the NVM firmware of ASMedia routers in addition to
Intel ones.

Signed-off-by: Szuying Chen <email address hidden>
Signed-off-by: Mika Westerberg <email address hidden>
(cherry picked from commit a52958321bbb4e8b2b4ab5849b8cbb0202b1029d linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

b1a5339... by Szuying Chen <email address hidden>

thunderbolt: Move vendor specific NVM handling into nvm.c

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

As there will be more USB4 devices that support NVM firmware upgrade from
various vendors, it makes sense to split out the Intel specific NVM
image handling from the generic code. This moves the Intel specific NVM
handling into a new structure that will be matched by the device type
and the vendor ID. Do this for both routers and retimers.

This makes it easier to extend the NVM support to cover new vendors and
NVM image formats in the future.

Signed-off-by: Szuying Chen <email address hidden>
Signed-off-by: Mika Westerberg <email address hidden>
(cherry picked from commit aef9c693e7e550954fc526b919342cc7d8047ed1 linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

26a2fc6... by Mika Westerberg <email address hidden>

thunderbolt: Provide tb_retimer_nvm_read() analogous to tb_switch_nvm_read()

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

As we are moving the NVM vendor specifics into nvm.c we need to deal
witht he retimer NVM formats too. For this reason provide retimer
specific function that can be used to read the contents of the NVM and
rename the internal ones accordingly analogous to what we do with
routers.

Signed-off-by: Mika Westerberg <email address hidden>
(backported from commit 8b02b2da77c89d9b9031f522e50af9eb2270585a linux-next)
[vicamo: fix conflict due to the lack of commit 7f333ace02578]
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

b7bd0c2... by Szuying Chen <email address hidden>

thunderbolt: Rename and make nvm_read() available for other files

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

In order to support non-Intel NVM formats the vendor specific NVM
validation code that will live in nvm.c needs to be able to read various
parts of the NVM so make the function available outside of switch.c and
rename it accordingly.

Signed-off-by: Szuying Chen <email address hidden>
Signed-off-by: Mika Westerberg <email address hidden>
(cherry picked from commit 7bfafaa5185be3088e57f046956d6db0155ddc17 linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

451da8f... by Szuying Chen <email address hidden>

thunderbolt: Extend NVM version fields to 32-bits

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

In order to support non-Intel NVM image formats extend the NVM major and
minor version to 32-bits to better accommondate different versioning
schemes.

No functional impact.

Signed-off-by: Szuying Chen <email address hidden>
Signed-off-by: Mika Westerberg <email address hidden>
(cherry picked from commit 5424e1bf16f96bd681c780f5fd12e33588c7ade3 linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>