On 5/1/2024 9:14 AM, Ziyang Huang wrote:
On 64bit OS, when ab->mem_ce is lower than or 4G far away from ab->mem,
u32 is not enough to store the offsets, which makes ath11k_ahb_read32()
and ath11k_ahb_write32() access incorrect address and causes Data Abort
Exception.
Are you actually observing this issue?
Or is this a hypothetical situation?
Let's use the high bits of offsets to decide where to access, which is
similar as ath11k_pci_get_window_start() done. In the future, we can merge
these functions for unified regs accessing.
Performing unnecessary tests and masking for every ioread/write operation will
potentially impact performance.
What other fixes were considered (i.e. did you consider making all the
register addresses u64?)