Re: [PATCH RESEND] wifi: ath12k: fix SPT vaddr handling on big endian systems
Baochen Qiang <[email protected]>
| Newsgroups | org.infradead.lists.ath12k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On 6/29/2026 3:56 PM, Alexander Wilhelm wrote: > SPT pages store descriptor addresses in their vaddr field as little endian > 64 bit values. Treating these entries as native pointers produces invalid > addresses on big endian systems. > > Convert vaddr to __le64 and update all access paths. Write descriptor > addresses as endian annotated 64 bit values and load them by converting > back to native pointers. Return __le64* instead of void* from the SPT > lookup and translate the stored value in the descriptor getters. > > This ensures correct and consistent handling of descriptor addresses on big > endian systems, while little endian systems remain unaffected. > > Signed-off-by: Alexander Wilhelm <[email protected]> Reviewed-by: Baochen Qiang <[email protected]>