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> anyway, I came across this gem:
<arnd> dma_addr_t *buf = (void *)urb->iso_frame_desc[qh->iso_idx].offset + (u32)urb->transfer_dma;
<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> eek: buf = phys_to_virt((u32)chdat->dma_addr) + chdat->transfer_len;
<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]
c1728p9 has joined #armlinux
jlinton has joined #armlinux
djrscally has quit [Ping timeout: 240 seconds]
headless has joined #armlinux
prabhakarlad has joined #armlinux
Pali has joined #armlinux
apritzel has quit [Ping timeout: 246 seconds]
jlinton has quit [Quit: Client closed]
alexels has quit [Quit: WeeChat 3.5]
Turingtoast has joined #armlinux
<HdkR> Anyone have any Ampere Computing contacts that I can talk with for getting hardware sampling of AmpereOne? :)
prabhakarlad has quit [Quit: Client closed]
<HdkR> (Not sarcasm, quite serious. Contact page on their website is just a web form)
machaddr has joined #armlinux
machaddr has quit [Read error: Connection reset by peer]
machaddr has joined #armlinux
jlinton has joined #armlinux
headless_ has joined #armlinux
apritzel has joined #armlinux
headless has quit [Killed (silver.libera.chat (Nickname regained by services))]
headless_ is now known as headless
machaddr_ has joined #armlinux
machaddr has quit [Ping timeout: 246 seconds]
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Tokamak has quit [Ping timeout: 246 seconds]
Tokamak has joined #armlinux
c1728p91 has joined #armlinux
c1728p9 has quit [Ping timeout: 246 seconds]
Amit_T has quit [Quit: Leaving]
c1728p91 has quit [Quit: Leaving]
c1728p9 has joined #armlinux
machaddr__ has joined #armlinux
machaddr_ has quit [Ping timeout: 255 seconds]
machaddr__ has quit [Remote host closed the connection]
machaddr has joined #armlinux
machaddr has quit [Quit: Leaving]
cbeznea has quit [Ping timeout: 244 seconds]
headless has quit [Quit: Konversation terminated!]
c1728p9 has quit [Quit: Leaving]
jlinton has quit [Ping timeout: 252 seconds]
Pali has quit [Ping timeout: 244 seconds]