ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
apritzel has quit [Ping timeout: 255 seconds]
bps3 has quit [Ping timeout: 246 seconds]
Nact has quit [Quit: Konversation terminated!]
iivanov has joined #armlinux
monstr has joined #armlinux
cbeznea has joined #armlinux
jwerner_ has quit [Ping timeout: 256 seconds]
jwerner has joined #armlinux
luispm has joined #armlinux
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 276 seconds]
Peng_Fan has joined #armlinux
Amit_T has joined #armlinux
matthias_bgg has joined #armlinux
<arnd>
tmlind: I was trying to look at the dma bug, it's musb_cppi41.c I think, not cppi_dma.c
<arnd>
where 'transfer_dma' is a dma_addr_t, and 'buf' gets passed into another function that takes a dma_addr_t
<arnd>
it's not the bug we are looking for, but it's amazing that this made it through code review multiple times
alexels has joined #armlinux
<ardb>
wow
archetech has joined #armlinux
<ardb>
so buf is a pointer to dma_addr_t??
<arnd>
right, but then it's cast back to a plain 'u32', which is compatible with dma_addr_t
<arnd>
removing all the casts and the extra '*' would make it perfectly readable and not change behavior
<ardb>
:maybe they 'fixed' the code for LPAE?
<arnd>
I think it was just the author being new to C and pointers
<ardb>
perhaps
<arnd>
without the casts it would actually work with LPAE, and build on 64-bit
<ardb>
arnd: so AIUI, we've identified MUSB DMA as the culprit for the latest vmap stack related issue, right?
<arnd>
ardb: I still think it's more likely to be the FT-X serial port driver
<arnd>
the URB buffers get allocated by the USB device driver, mapped by the USB core code, and passed down to musb as dma_addr_t, and from there to the dmaengine
<ardb>
but for a peripheral that is only widely used on ARM but not arm64 or x86?
<arnd>
that's what I was thinking, but then again the musb driver is clearly suspicious, see exhibit #1
<arnd>
if there are no other devices connected to MUSB, they could try printing the DMA address just before it gets passed to the hardware
headless has joined #armlinux
Turingtoast has joined #armlinux
<tmlind>
arnd: ok musb_cppi41.c sounds right for am335x
<tmlind>
hmm so how come pinephone musb is working
<tmlind>
bbl
<arnd>
tmlind: he did say that it happened only with CAN on FT-X but not another FTDI chip on a different machine. It could be a combination of two bugs
<arnd>
it's just odd that DMA debugging showed no output
<arnd>
that's from tusb6010_omap, so I guess not on this chip, and it's also not this bug, but this is also really bad
<arnd>
if there was a virt_to_phys() in place of dma_map_single(), that would explain how dma-debug missed the problem
<ardb>
indeed
<ardb>
phys_to_virt() OTOH is not likely to be noticed in the absence of highmem or SMMU
<arnd>
FWIW, I created a series to remove virt_to_bus()/bus_to_virt() the other day, these were created originally to allow machines with phys!=bus before we had the dma-mapping interfaces
<arnd>
lots of fun history in there, including a completely obsolete Documentation/core-api/bus-virt-phys-mapping.rst that describes part of the linux-2.0 driver interface and a comment in drivers/scsi/BusLogic.c that complains about being unable to use dma-mapping.h because it lacks a bus_to_virt() replacement
apritzel has joined #armlinux
Turingtoast has quit [Ping timeout: 260 seconds]
Turingtoast has joined #armlinux
archetech has quit [Quit: Konversation terminated!]
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Peng_Fan has quit [Quit: Connection closed for inactivity]
bps3 has joined #armlinux
headless has quit [Quit: Konversation terminated!]
<mwalle>
is anyone aware of recent cma (or maybe dma changes). I'm getting the following splat on the latest next: https://pastebin.com/raw/JY2nFJjT
<mwalle>
I guess the real problem here is the "cma_alloc: reserved: alloc failed". The i2c splat is just a consequence of that
prabhakarlad has joined #armlinux
Turingtoast has joined #armlinux
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
prabhakarlad has quit [Quit: Client closed]
Turingtoast has joined #armlinux
Turingtoast has quit [Client Quit]
Turingtoast has joined #armlinux
Turingtoast has quit [Client Quit]
Turingtoast has joined #armlinux
Turingtoast has quit [Client Quit]
iivanov has quit [Quit: Leaving...]
monstr has quit [Remote host closed the connection]