linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ath12k: hal_reo_dest_ring on PowerPC?
@ 2025-07-14  9:57 Alexander Wilhelm
  0 siblings, 0 replies; only message in thread
From: Alexander Wilhelm @ 2025-07-14  9:57 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: ath12k, linux-wireless

Hello devs,

I'm trying to bring up the ath12k driver on big endian PPC platform. Currently
I'm stuck and need your help.

In the function _ath12k_dp_rx_process_ inside _dp_rx.c_ the _desc_va_ is
extraced as the following:

    desc_va = ((u64)le32_to_cpu(desc->buf_va_hi) << 32 |
               le32_to_cpu(desc->buf_va_lo));
    desc_info = (struct ath12k_rx_desc_info *)((unsigned long)desc_va);

As you can see the _buf_va_hi_ and _buf_va_lo_ are swapped on big endian since
the data type is __le32. However that swap leads to kernel panic on my machine.
The entire _struct hal_reo_dest_ring_ consists only of little endian member
values and it seems to be correct. Therefore I assume the values are already set
wrong earlier, but I cannot find a place in a source code where they are set.
Can someone explain to me how and where those values are set, so I can fix the
problem?


Best regards
Alexander Wilhelm

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-14 10:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14  9:57 ath12k: hal_reo_dest_ring on PowerPC? Alexander Wilhelm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).