thelounge7571340 has quit [Remote host closed the connection]
unicordian has joined #asahi
Etrien__ has joined #asahi
Etrien has quit [Ping timeout: 480 seconds]
Core1050 has joined #asahi
DarkShadow4444 has quit [Remote host closed the connection]
Core9066 has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
unicordian has quit [Read error: Connection reset by peer]
unicordian has joined #asahi
Dcow_ has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
unicordian has quit [Ping timeout: 480 seconds]
unicordian has joined #asahi
Dcow has joined #asahi
Dcow has quit [Ping timeout: 480 seconds]
riker77 has quit [Ping timeout: 480 seconds]
riker77 has joined #asahi
babble has joined #asahi
babble has quit [Read error: Connection reset by peer]
Stroller has quit [Quit: Stroller]
Stroller has joined #asahi
Stroller has quit []
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
marvin24_ has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
marvin24 has quit [Ping timeout: 480 seconds]
unicordian has quit [Read error: Connection reset by peer]
unicordian has joined #asahi
SSJ_GZ has joined #asahi
kefu has quit [Quit: ciao]
Method_ has quit [Remote host closed the connection]
Method has joined #asahi
kefu_ has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
romeoparadis has joined #asahi
romeoparadis has left #asahi [#asahi]
hippo2012 has joined #asahi
hippo2012 has left #asahi [#asahi]
hippo2012 has joined #asahi
hippo2012 has left #asahi [#asahi]
hippo2012 has joined #asahi
hippo2012 has left #asahi [#asahi]
hippo2012 has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
hippo2012 has quit [Quit: Leaving.]
hippo2012 has joined #asahi
hippo2012 has quit [Quit: Leaving.]
nicolas17 has quit [Quit: Konversation terminated!]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
rvalue has quit [Remote host closed the connection]
rvalue has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
unicordian has quit [Ping timeout: 480 seconds]
unicordian has joined #asahi
kwilczynski has left #asahi [#asahi]
Etrien__ has quit [Read error: Connection reset by peer]
Etrien has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
amarioguy2 has joined #asahi
jjido has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
codingkoopa9 has quit []
mrkajetanp has quit [Remote host closed the connection]
codingkoopa9 has joined #asahi
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
Dcow has joined #asahi
chengsun has joined #asahi
ihaveamac has quit [Quit: fail]
ihaveamac has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
Dcow has quit [Ping timeout: 480 seconds]
chengsun has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Ping timeout: 480 seconds]
duban6 has quit []
duban6 has joined #asahi
<WhyNotHugo>
`wlan0` isn't showing up any more after updating to latest kernel. dmesg shows "brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4378b1-pcie.apple... failed with error -2".
chengsun has joined #asahi
<j`ey>
WhyNotHugo: those error messages are normal, do you see any more brcmfmac messages after that?
amarioguy2 has joined #asahi
<j`ey>
(the way the firmware loading works is that it searches from specific to generic, for the fw files, so it 'fails' to find some and prints that error, but it's usually harmless)
chengsun has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Remote host closed the connection]
chengsun has joined #asahi
rayanamukami34 has joined #asahi
rayanamukami3 has quit [Ping timeout: 480 seconds]
rayanamukami34 is now known as rayanamukami3
Dcow has joined #asahi
<WhyNotHugo>
After that hci_bcm4377 prints in red "Unable to load firmware; tried brcm/brcmbt43..." (it shows two paths).
<WhyNotHugo>
probe of 0000:01:00.1 failed with error -2
<j`ey>
hci is the bluetooth stuff, can you just paste the full dmesg?
<WhyNotHugo>
I have no internet on the device... gimme a few minutes to copy it out
Dcow has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
grange_c has joined #asahi
jjido has joined #asahi
Core9066 has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
Core1050 has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<nvflash>
IOMMU Group 0 lspci: -s: Invalid slot number IOMMU Group 0 lspci: -s: Invalid slot number IOMMU Group 1 lspci: -s: Invalid slot number IOMMU Group 2 lspci: -s: Invalid slot number IOMMU Group 3 01:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BRCM4378 Wireless Network Adapter [14e4:4425] (rev 05) IOMMU Group 3 01:00.1 Network controller [0280]: Broadcom Inc. and subsidiaries Device [14e4:5f69] (r
<nvflash>
@sven Always enabled in firmware or Arm64 Linux kernels don't need a command line option to enable IOMMU for the kernel?
Core8788 has joined #asahi
<sven>
pci doesn’t work without the iommu on these devices
Core9066 has quit [Ping timeout: 480 seconds]
Core8788 has quit [Ping timeout: 480 seconds]
<nvflash>
@sven but does IOMMU work for PCI Passthrough?
<sven>
no idea, never used it
<sven>
I don’t see a reason why it shouldn’t though
<sven>
maybe sone page size issues? are both host and guest 16kb kernels?
<sven>
*some
<nvflash>
I don't know, so little documention for PCI Passthrough on AAARCH64
<nvflash>
I can't get vfio-pci to bind to a device
<sven>
did you make sure to unbind the kernel driver first?
<sven>
for bt/pcie you’ll probably have to unbind both
<sven>
er, *for bt/wifi
<nvflash>
Yes, I black listed the drivers for both so they don't load, but I still get: vfio-pci: probe of 0000:01:00.0 failed with error -22
<nvflash>
BTW, why do we use IRC rather than something rich like Discord?
<j`ey>
nvflash: cos we like it!
nicolas17 has joined #asahi
<nvflash>
Why would you like it, no formating.
<sven>
not the right place to discuss this
<nvflash>
to discus what?
<nicolas17>
chat platforms
<nvflash>
You're the IRC police?
<nicolas17>
no, sven is though (he has +o)
cylm has joined #asahi
<nvflash>
Where is the right place to discuss it, IRC sucks because there is no way to format. How readable are logs without formatting?
<j`ey>
#asahi-offtopic
<nvflash>
ty
<nvflash>
Anyway, back to the topic of PCI Passthough. I'd be interested to see IOMMU groups from AppleSoC Mac's people are using with Asahi. There is a simple shell script for this here:https://gist.github.com/wention/246fa902a93afff153b373cdce8c582d
<sven>
I can pretty much tell you the groups. WiFi/bt will be in one, usb will be another one and Ethernet will be third one for pci
<sven>
other than that almost every non-pci device will get its own iommu group
<sven>
that’s also why your lspci above failed: not all iommu groups are for pci devices
duban6 has quit []
<nvflash>
Well on the 2022 MBP M2 13" really only the wifi/bt get exposed as PCIE devices, but there is some interesting stuff in dmegs for iommu:sudo dmesg | grep iommu [sudo] password for jam: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-asahi root=UUID=1977b9ca-42c7-4d1e-b414-abd00f14503b rw loglevel=3 quiet vfio_iommu_type1.allow_unsafe_interrupts=1 [ 0.015862] iommu: Default domain type: Tran
<nvflash>
Too long to post here, sorry!
<sven>
yeah, cause that mbp doesn’t have Ethernet or the additional usb-a ports
bluetail has quit [Ping timeout: 480 seconds]
<nvflash>
That's why I'm interested in seeing the groups, to see what Mx Mac's expose what PCIE devices that could be used for PCI Passthrough. I assume the M1 Mini and the Apple Studio expose USB and Ethernet.
Gaspare has quit [Quit: Gaspare]
<sven>
on these devices almost everything is behind an iommu and can theoretically pass through almost everything
<nvflash>
On my MBP USB seems to get it's own groups but it's somehow part of the SoC "interconnect bus" rather than PCI?
<sven>
yes
bluetail has joined #asahi
<WhyNotHugo>
marcan: Are you familiar with `bootctl --print-esp-path`?
<sven>
Usb-c ports on the mini are also not attached via pcie
<sven>
you could still pass them through if you wanted to
<bluetail>
Even HDMI is attached to USB, right?
<sven>
it’s only the usb a ports that are attached via pcie
<sven>
no
<nvflash>
Cool, that's good to hear.
<sven>
hdmi on some mbp or something is attached via type-c and unrelated to the dwc3 controller which does usb2/3
<sven>
on the mini hdmi is attached to the internal port that’s normally used for the built in display
<nvflash>
Anyone know how Thunderbolt support is coming along in Asahi?
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
<bcrumb>
should have enough info for ppl to set up
<bcrumb>
i posed in an issue that was mentioning encryption too so it would be nice if someone could add to wiki so ppl can see, probably under sw:distros
<bcrumb>
anybody also possibly know a solution to this problem? i've redacted out asahi from that not to get booted on the arm forums because it's probably hardware agnostic - but if anyone can take a look would be cool
bcrumb has quit [Quit: WeeChat 3.7.1]
Gaspare has joined #asahi
Graypup_ has quit [Quit: meow]
<marcan>
WhyNotHugo: no, but it seems highly unlikely to work properly with our setup
Graypup_ has joined #asahi
<marcan>
yeah, it only looks for *an* ESP by looking at common mountpoints, so it's the vague equivalent of what I do in mount_boot_esp, but it's not mount_sys_esp (which is the more important one)
eichin__ has quit [Ping timeout: 480 seconds]
eichin__ has joined #asahi
thelounge7571340 has joined #asahi
taowa__ has quit [Ping timeout: 480 seconds]
saintdev_ has quit [Ping timeout: 480 seconds]
saintdev_ has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
daniels has quit [Ping timeout: 480 seconds]
<marcan>
sven: there is an IOMMU but there is no interrupt remapping, or at least we don't expose it I think (maybe APCI could do it?), so all the vfio stuff will fail by default
peac_ has quit [Ping timeout: 480 seconds]
<marcan>
that's at the very least one issue
taowa__ has joined #asahi
<marcan>
vfio stuff is complicated, little chance it's going to magically work without someone spending time on it
<sven>
didn’t R write her Bluetooth prototype with irq support using vfio?
jbowen has quit [Ping timeout: 480 seconds]
Puto has quit [Ping timeout: 480 seconds]
jkkm has quit [Ping timeout: 480 seconds]
<marcan>
no idea, but there's vfio_iommu_type1.allow_unsafe_interrupts=1
rwxyz has joined #asahi
_alice has quit [Ping timeout: 480 seconds]
austriancoder has quit [Ping timeout: 480 seconds]
mmarchini____ has quit [Ping timeout: 480 seconds]
stblassitude has quit [Ping timeout: 480 seconds]
rann has quit [Ping timeout: 480 seconds]
<sven>
but yeah, dunno, I never used vfio before
Gaspare has quit [Quit: Gaspare]
peac_ has joined #asahi
daniels has joined #asahi
Manouchehri has quit [Ping timeout: 480 seconds]
NekomimiScience has quit [Ping timeout: 480 seconds]
<sven>
yup, R used vfio to implement that Bluetooth thing
eric_engestrom has quit [Ping timeout: 480 seconds]
austriancoder has joined #asahi
rann has joined #asahi
_alice has joined #asahi
jbowen has joined #asahi
jkkm has joined #asahi
Puto has joined #asahi
NekomimiScience has joined #asahi
mmarchini____ has joined #asahi
Manouchehri has joined #asahi
stblassitude has joined #asahi
eric_engestrom has joined #asahi
Gaspare has joined #asahi
<rwxyz>
Hi,
<rwxyz>
Is there a way to switch between macOS and asahi remotely?
<marcan>
not right now
<marcan>
macOS->asahi yes (bless), asahi->macOS not yet (needs nvram tooling)
<povik>
but it pertains to speakers, so low priority
<j`ey>
povik: probably meant for -dev
<povik>
yeah
calcium has joined #asahi
millenialhacker has joined #asahi
<gausus>
re
<gausus>
who can i talk in order to run a local asahi linux mirror?
<gausus>
the one i've been using isn't working:
<gausus>
error: failed retrieving file 'libmm-glib-1.20.0-1-aarch64.pkg.tar.xz' from mirror.archlinuxarm.org : Failed to connect to gr.mirror.archlinuxarm.org port 80 after 76 ms: Connection refused
<nicolas17>
that's the archlinux-for-ARM repo, not asahi
<nicolas17>
and I can't figure out how to contact them
balrog has quit [Quit: Bye]
<gausus>
thx
balrog has joined #asahi
<ChaosPrincess>
w.r.t nvram tooling - i have something sorta resembling the nvram and bless commands from macos, but it still needs an actual terminal ui and safety features so it is harder to destroy your nvram by accident
mbilker has quit [Quit: Arch Linux Rules]
balrog is now known as Guest175
mbilker has joined #asahi
thelounge7571340 has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi
<bluetail>
gausus I have this too. What helps is wait a day and try 5 times in a row
Gaspare has quit [Quit: Gaspare]
axboe has joined #asahi
<axboe>
just a note that audio seems to work perfectly for me now with current asahi-wip
<axboe>
woot
<axboe>
no half speed stuff anymore
<axboe>
(apple drm still not, but one thing at the time)
<axboe>
thanks povik, chadmed, and everyone else involved in this
Gaspare has joined #asahi
millenialhacker has quit [Quit: Konversation terminated!]
millenialhacker has joined #asahi
<jannau>
axboe: what's the issue with apple-drm? black screen at boot? did you update m1n1 to v1.1.7?
jjido has joined #asahi
millenialhacker has quit [Quit: Konversation terminated!]
millenialhacker has joined #asahi
unicordian has quit [Ping timeout: 480 seconds]
Glanzmann has joined #asahi
<Glanzmann>
marcan: New kernel works for me without issues on the mini (using Debian).
<Glanzmann>
jannau: I used the DRM the last week, I see only one regression: Resizing windows with fvwm2 lags (with simpledrm the border of the window follows the mouse immediately). I work most of the time full screen or use key combinations for resizing windows, so it took a while until I noticed: https://tg.st/u/VID_20221101_201054073.mp4
qyousef has quit [Ping timeout: 480 seconds]
millenialhacker has quit [Quit: Konversation terminated!]
unicordian has joined #asahi
Puto has quit [Ping timeout: 480 seconds]
jonmasters_ has quit [Ping timeout: 480 seconds]
cptcobalt has quit [Ping timeout: 480 seconds]
risk has quit [Ping timeout: 480 seconds]
<axboe>
jannau: either boots into the login screen and stalls when I log in, or I just get a black screen once X starts
maennich_ has quit [Ping timeout: 480 seconds]
<axboe>
jannau: should be on 1.1.7, yes
jlinton has quit [Ping timeout: 480 seconds]
<Glanzmann>
jannau: s/DRM/DCP/
taowa__ has quit [Ping timeout: 480 seconds]
sa1 has quit [Ping timeout: 480 seconds]
snek has quit [Ping timeout: 480 seconds]
aeroraptor has quit [Ping timeout: 480 seconds]
msteffen has quit [Ping timeout: 480 seconds]
esden has quit [Ping timeout: 480 seconds]
sjg1 has quit [Ping timeout: 480 seconds]
tardyp has quit [Ping timeout: 480 seconds]
azenla has quit [Ping timeout: 480 seconds]
jesse-s has quit [Ping timeout: 480 seconds]
robher has quit [Ping timeout: 480 seconds]
maennich_ has joined #asahi
<axboe>
jannau: let me just update it and be totally sure...
<Glanzmann>
axboe: Which models are the nvmes you tested in this dell box?
jonmasters_ has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
<axboe>
Glanzmann: p5800x, 800G
<Glanzmann>
axboe: Thanks.
<axboe>
brb, updating m1n1
eta has quit [Ping timeout: 480 seconds]
cptcobalt has joined #asahi
Puto has joined #asahi
qyousef has joined #asahi
risk has joined #asahi
jesse-s has joined #asahi
msteffen has joined #asahi
tardyp has joined #asahi
snek has joined #asahi
jbowen has joined #asahi
azenla has joined #asahi
jlinton has joined #asahi
sa1 has joined #asahi
aeroraptor has joined #asahi
taowa__ has joined #asahi
sjg1 has joined #asahi
esden has joined #asahi
robher has joined #asahi
millenialhacker has joined #asahi
<axboe>
jannau: updated m1n1, though I think I was on 1.1.7 already
<axboe>
jannau: same behavior - login screen showed up this time, but it never finishes the login
eta has joined #asahi
<axboe>
let me know if you want dmesg or anything like that - there's a bunch of dcp/drm messages in there, above my pay grade
millenialhacker has quit [Quit: Konversation terminated!]
millenialhacker has joined #asahi
<axboe>
it's quite possible I'm missing something here (in terms of kernel config, or else), I haven't been following too closely... just enabled APPLE_DRM (and disabled SIMPLE_DRM) and ensured that m1n1 was updated
<jannau>
axboe: yes, dmesg might be helpful. can you check /sys/kernel/debug/dri/[0-9]/state as well
<axboe>
jannau: dri state while either setting waiting on login or after having input credentials (no change between the tw0
<mps>
axboe: what is your CONFIG_DRM_SIMPLEDRM_BACKLIGHT
<axboe>
mps: I kill DRM_SIMPLEDRM* when I enabled DRM_APPLE
<axboe>
display backlight still works though even when sitting stalled like that
<mps>
I think you need simpledrm but not CONFIG_DRM_SIMPLEDRM_BACKLIGHT
<axboe>
it turns it off and on
<jannau>
the backlight can not be enabled when apple drm is enabled
<axboe>
mps: sure can try that
<jannau>
no need
<axboe>
ok
<mps>
jannau: so drm can now work without simpledrm?
<axboe>
mps: I do get a display, both vt and X
<mps>
appledrm I meant
<axboe>
without simpledrm
<mps>
ah, good
<mps>
lets try this here
<jannau>
this seems to be a compatibility problem between userspace and apple drm. probably either a bug in apple drm or untypical behavior of apple drm
<jannau>
mps: yes, it should have been always possible to use apple drm without simpledrm
<mps>
jannau: thanks, will try in few minutes
<axboe>
xfce4 seems to sit in a loop of doing ppoll, timing out, and then attempting a recvmsg twice from the same fd (3, socket)
<jannau>
the expected config for non-apple silicon specific distros would simpledrm built-in and all supported HW drivers as modules to avoid having very large kernel image
<jannau>
I'll look it myself
<axboe>
jannau: let me know if there's anything I can do
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<Glanzmann>
axboe: I used apple drm in the last week with lightdm and fvwm2 without any issues.
<millenialhacker>
I got a really weird behavior on my M1 MbP with Apple DRM, if I use XOrg/XServer, everything works but it's a little slow, however if I try to use Wayland, the desktop looks dark, really dark.
<millenialhacker>
Has anyone experience this problem before?
<mps>
millenialhacker: yes, drm is somewhat slower with some things
<axboe>
ok blackbox is hardly better...
<axboe>
giving it a go
<mps>
but scroll in FF and some other programs is fine
<millenialhacker>
I'm not sure if describe it as dark is the right way, sorry for my lack of vocabulary here, but I see the colors different like when you play with photoshop / gimp and you get a dark image when you play with brightness
<Glanzmann>
millenialhacker: I only use x. I noticed that resizing windows with apple_drm is slow, everything else is fast for me including watching videos with mpv.
<axboe>
jannau: blackbox loads fine
<jannau>
millenialhacker: using kde? should be fixed in current asahi-wip
<millenialhacker>
Yes, using KDE
<mps>
yes, looks like plane redraw is slower, if I use right term
<millenialhacker>
jannau, give me few minutes to try again, I was using RC2 and experienced the issue