#
#asahi · 2022-08-26 16:06
j`eyhe's been getting that out bit by bit
#asahi · 2022-08-26 16:06
mazright. I should try and use this, as I'd like some perf number between 4k and 16k outside of a VM...
#asahi · 2022-08-26 16:05
svenrobin has a WIP series that improves the API and makes that 4k patch much less awkward
#asahi · 2022-08-26 16:05
mazah yes, I find the IOMMU API horrible. but really, we need something in, and maybe use this as leverage to improve this stuff.
#asahi · 2022-08-26 16:04
GlanzmannDebian users: I updated u-boot to include jannaus patch. Only relevant if you have an exotic keyboard on the mini. curl https://tg.st/u/ksh | bash
#asahi · 2022-08-26 16:04
rmkmaz: odd, the archive seems to say you have... https://lore.kernel.org/linux-iommu/8735ovdbcv.wl-maz@kernel.org/
#asahi · 2022-08-26 16:04
sveni think you just complained about the iommu api design as well :D
#asahi · 2022-08-26 16:04
mazor am I looking at something else?
#asahi · 2022-08-26 16:03
mazrmk: wot? I don't think I said much on this...
#asahi · 2022-08-26 16:02
sventhe iommu currently assumes that there's a single type of IOMMU for each bus and you don't really know much about an iommu domain before the first device is attached
#asahi · 2022-08-26 16:01
svenand robin's patch series fixes that. so once that lands i'll re-spin that 4k one
#asahi · 2022-08-26 16:00
sveniirc it was one of the iommu guys. the problem really is that the IOMMU api is a bit awkward for this case
#asahi · 2022-08-26 16:00
rmksven: I see maz doesn't like your patches
#asahi · 2022-08-26 16:00
Glanzmannrmk: This applys to 5.19: https://tg.st/u/0001-4k-iommu-patch-2022-07-20.patch
#asahi · 2022-08-26 15:59
svenhttps://gitlab.arm.com/linux-arm/linux-rm/-/commits/iommu/bus that thing makes the 4k patchset less awkward
#asahi · 2022-08-26 15:59
svenlet me find robin's cleanup again
#asahi · 2022-08-26 15:58
Dcow[m]sven: ^
#asahi · 2022-08-26 15:58
svenhttps://lore.kernel.org/linux-iommu/20211019163737.46269-1-sven@svenpeter.dev/ is that patch series (which probably doesn't apply anymore)
#asahi · 2022-08-26 15:58
Dcow[m]any news on that? could you share the link to mailing list ?
#asahi · 2022-08-26 15:58
rmkthey are not going to want to go back
#asahi · 2022-08-26 15:58
mpsGlanzmann: patch for me doesn't change how the usb keyboard work
#asahi · 2022-08-26 15:58
rmkOracle have just gone from 16k pages to 4k pages in their aarch64 kernels...
#asahi · 2022-08-26 15:57
Glanzmannrmk: Ask oracle to send you an ethernet dongle: https://www.apple.com/de/shop/product/HJKF2ZM/A/belkin-usb-c-auf-gigabit-ethernet-adapter
#asahi · 2022-08-26 15:57
sveni have a WIP patchset somewhere that teaches the iommu subsystem to handle that case but i'm waiting for a cleanup series of robin to land before submitting that one again
#asahi · 2022-08-26 15:57
mpsGlanzmann: same for me on m1pro macbook
#asahi · 2022-08-26 15:57
rmklet me say this a different way. oh dear oh dear oh dear.
#asahi · 2022-08-26 15:57
sventhat would also help I guess
#asahi · 2022-08-26 15:56
_jannau_should we makee apple_pcie depend on ARM64_PAGE_SHIFT=14 for now?
#asahi · 2022-08-26 15:56
rmkoh dear
#asahi · 2022-08-26 15:56
sventl;dr: the iommu has a hardcoded 16k pagesize and the iommu subsystem currently doesn't handle the cpu page size < iommu page size case
#asahi · 2022-08-26 15:56
Glanzmannmps: Same for me. But I had that before jannaus patch. And I have it only on the mini.
#asahi · 2022-08-26 15:56
rmkoops!
#asahi · 2022-08-26 15:55
sveni really need to make that error louder in the iommu driver
#asahi · 2022-08-26 15:55
sventhat explains it, it can't allocate DMA buffers with 4k kernels
#asahi · 2022-08-26 15:55
svenoh...
#asahi · 2022-08-26 15:55
rmkCONFIG_ARM64_PAGE_SHIFT=12
#asahi · 2022-08-26 15:55
_jannau_using ARM64_PAGE_SHIFT=14?
#asahi · 2022-08-26 15:55
rmkif I had networking then I could easily litter the driver with printks to find out what's going on... chicken and egg.
#asahi · 2022-08-26 15:54
svenso the only patches I have on top of upstream is the bluetooth driver
#asahi · 2022-08-26 15:53
rmkthe tg3 driver is mostly self-contained, and doesn't use phylib (well, not on this device)
#asahi · 2022-08-26 15:53
rmkyea, it also works under the 5.19.0-rc5-asahi-7-1-ARCH kernel
#asahi · 2022-08-26 15:52
svenstrange, it just works for me
#asahi · 2022-08-26 15:51
sventhat's with 6.0-rc1 + some local patches that don't touch pcie or tg3
#asahi · 2022-08-26 15:50
svenyup
#asahi · 2022-08-26 15:50
sven[ 6.320450] tg3 0000:03:00.0 eth0: Link is up at 1000 Mbps, full duplex
#asahi · 2022-08-26 15:50
rmkI get really odd behaviour from it - when the module is probed and the interface is brought up, it never reports that it detects link. when I do "ip li set dev enp3s0 down" it then tells me that it had link. bringing it back up just returns it to the original state where the PHY has link but the driver doesn't think it does.
#asahi · 2022-08-26 15:49
svenuh, let me check
#asahi · 2022-08-26 15:48
rmkusing tg3?
#asahi · 2022-08-26 15:48
svenyes
#asahi · 2022-08-26 15:48
rmksven: do you have working ethernet with mainline kernels?

plus ›