marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
zkrx has quit [Ping timeout: 240 seconds]
jeffmiw_ has joined #asahi
klaus has quit [Ping timeout: 252 seconds]
jeffmiw_ has quit [Ping timeout: 240 seconds]
raster has quit [Quit: Gettin' stinky!]
klaus has joined #asahi
zkrx has joined #asahi
klaus has quit [Ping timeout: 265 seconds]
klaus has joined #asahi
klaus has quit [Ping timeout: 268 seconds]
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi
klaus has joined #asahi
arekm has quit [Ping timeout: 252 seconds]
arekm has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
klaus has quit [Ping timeout: 246 seconds]
odmir has quit [Ping timeout: 240 seconds]
<marcan> pipcet[m]: isn't the touchbar oled?
<marcan> though I guess it might have a brightness control and oled displays might export that as a backlight
<marcan> in which case it'd be a display backlight since it's a display
klaus has joined #asahi
klaus has quit [Ping timeout: 240 seconds]
<JTL> I'd be curious if you'd be able to manipulate the PWM and/or "refresh" frequency
odmir has joined #asahi
<marcan> https://pid.codes/1209/316D/ well that got merged fast :)
<JTL> I wasn't aware of pid.codes and the grandfathered "sublicensing" exemption of USB-IF. Interesting.
<tpw_rules> why does that need its own PID?
<marcan> JTL: there is also openmoko
<marcan> tpw_rules: because we don't have one?
<marcan> it's not like we should be using Apple's
<marcan> I mean yes we could use a generic one, but that's ugly and makes it harder to tell the device apart
<JTL> marcan: ah yeah, glad to see something good come out of openmoko
<nico_32> easier to write udev rules :)
<marcan> SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="316d", KERNEL=="ttyACM*", SYMLINK+="m1n1"
klaus has joined #asahi
<tpw_rules> i guess a lot of products are just USB-CDC devices. it initially seemed weird to me that you would need one as a common device class
klaus has quit [Ping timeout: 240 seconds]
<tpw_rules> i wonder how many VIDs are left
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
pthariensflame has joined #asahi
phiologe has quit [Ping timeout: 250 seconds]
phiologe has joined #asahi
pthariensflame has quit []
klaus has joined #asahi
odmir has joined #asahi
klaus has quit [Ping timeout: 240 seconds]
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Ping timeout: 246 seconds]
marvin24 has quit [Ping timeout: 276 seconds]
marvin24_ has joined #asahi
klaus has joined #asahi
klaus has quit [Ping timeout: 265 seconds]
klaus has joined #asahi
klaus has quit [Ping timeout: 252 seconds]
Chainsaw_ has joined #asahi
Chainsaw has quit [Ping timeout: 240 seconds]
klaus has joined #asahi
klaus has quit [Ping timeout: 246 seconds]
VinDuv has joined #asahi
klaus has joined #asahi
klaus has quit [Ping timeout: 246 seconds]
PedroArajo[m] has joined #asahi
modrobert has quit [Remote host closed the connection]
klaus has joined #asahi
klaus has quit [Ping timeout: 246 seconds]
klaus has joined #asahi
klaus has quit [Ping timeout: 260 seconds]
klaus has joined #asahi
klaus has quit [Ping timeout: 252 seconds]
bdju has quit [Ping timeout: 246 seconds]
klaus has joined #asahi
bdju has joined #asahi
klaus has quit [Ping timeout: 240 seconds]
modrobert has joined #asahi
Chainsaw_ has quit [Changing host]
Chainsaw_ has joined #asahi
Chainsaw_ is now known as Chainsaw
<sven> tpw_rules: the reason i used a common device class is such that we don't need customer kernel drivers or require libusb in proxyclient/*
<sven> *custom
klaus has joined #asahi
TD-Linux has joined #asahi
jeffmiw_ has joined #asahi
jeffmiw_ has quit [Ping timeout: 252 seconds]
jeffmiw_ has joined #asahi
jeffmiw__ has joined #asahi
jeffmiw_ has quit [Read error: Connection reset by peer]
jeffmiw__ has quit [Client Quit]
hothotleg[m] has quit [Quit: Idle for 30+ days]
ponikrf[m] has quit [Quit: Idle for 30+ days]
zkrx has quit [Ping timeout: 252 seconds]
ephe_meral1 has joined #asahi
raster has joined #asahi
Crisco has quit [Ping timeout: 245 seconds]
zkrx has joined #asahi
Crisco has joined #asahi
Crisco has quit [Changing host]
Crisco has joined #asahi
Major_Biscuit has joined #asahi
raster has quit [Quit: Gettin' stinky!]
Major_Biscuit has quit [Ping timeout: 240 seconds]
thestr4ng3r has quit [Read error: Connection reset by peer]
thestr4ng3r has joined #asahi
thestr4ng3r has quit [Read error: Connection reset by peer]
thestr4ng3r has joined #asahi
raster has joined #asahi
Crisco has quit [Ping timeout: 258 seconds]
Crisco has joined #asahi
Crisco has quit [Ping timeout: 258 seconds]
Crisco has joined #asahi
inglor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
raster has quit [Quit: Gettin' stinky!]
inglor has joined #asahi
choozy has joined #asahi
maknho_ has joined #asahi
maknho has quit [Ping timeout: 265 seconds]
Crisco has quit [Ping timeout: 258 seconds]
Crisco has joined #asahi
Major_Biscuit has joined #asahi
Major_Biscuit has quit [Ping timeout: 252 seconds]
Major_Biscuit has joined #asahi
maknho__ has joined #asahi
maknho_ has quit [Ping timeout: 268 seconds]
Crisco has quit [Ping timeout: 258 seconds]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Crisco has joined #asahi
mxw39 has quit [Quit: Konversation terminated!]
<amw> Has anyone tried CONFIG_EARLY_PRINTK_USB_XDBC as per linux/Documentation/driver-api/usb/usb3-debug-port.rst ?
<amw> It sounds like it might be the next step after using a normal USB m1n1 boot for linux serial console
mxw39 has joined #asahi
mxw39 has quit [Remote host closed the connection]
<sven> nah, but i have usb gadget mode working in linux as well
<sven> it's somewhat hacked together, but tl;dr: grab my iommu patches, make sure the usb PHY has been brought up from m1n1 and add a dwc3 node attached to the iommu to the device tree
<sven> make sure to enable g_serial as well ofc ;)
mxw39 has joined #asahi
<sven> or alternatively: enable full bypass mode in the usb iommu, add dma-ranges to the device tree, patch the dwc3 driver to use 64bit dma addresses and add a node for it to the device tree as well
<amw> I found the usb2 debug port to not be very reliable in practise - might be better with usb3
<amw> A few posts suggest that gadget mode is not so useful for debugging as it starts up quite late
<sven> yeah, but i'm not so sure if the mac mini even has a usb3 debug port
<amw> I think it's standard on the USB controllers, usally the first port only, but might require some other hardware/PHY tweaks possibly?
<sven> probably
<sven> it might also just not be supported on apple hw. they don't seem to care much about standards
<amw> Can the gadget driver be used as a console at all? Or only has a serial port e.g. once booted?
<sven> "The xHCI debug capability (DbC) is an optional but standalone functionality provided by the xHCI host controller. " let's see
<sven> it comes up quite some time before userspace afaik, but i haven't played much with it because macos doesn't seem to attach their cdc kext to it
Major_Biscuit has quit [Ping timeout: 240 seconds]
<amw> I can just try it and see what happens, I might get lucky :-)
<sven> sure :)
<sven> you'll probably still need the dwc3 node though
<sven> because the kernel won't be able to find the xhci controller otherwise
<sven> i might've messed up, but afaict the dwc3 xhci doesn't support this debug port
<amw> Ok - I'll have to dig into that - is there an example node for the dts?
<sven> not really. you'll probably also need to bring up the iommu
Major_Biscuit has joined #asahi
<sven> 0x8e0 0x401 USB Legacy Support
<sven> 0x8f0 0x2000402 Supported Protocol
<sven> 0x900 0x3100002 Supported Protocol
<sven> that's all the xhci register space claims to support
<sven> i.e. no debug port mode
<amw> ok - Sigh. Thanks again - Time for bed - I was getting excited :-(
<marcan> it should be possible to write an earlyprintk thing that takes a gadget handoff from the bootloader
<marcan> I've been mulling over whether to give that a shot
<sven> that sounds like a neat hack :D
<sven> or you could just shave another yak and finish that usb-pd cable you've been meaning to build :P
<marcan> :p
Major_Biscuit has quit [Ping timeout: 240 seconds]
Bublik_ has quit [Ping timeout: 252 seconds]
Bublik_ has joined #asahi
vimal has quit [Quit: Leaving]
zopieux has quit [Ping timeout: 260 seconds]
zopieux has joined #asahi
exception has quit [Quit: ZNC 1.8.2 - https://znc.in]
odmir has joined #asahi
odmir has quit [Ping timeout: 260 seconds]
user1tt[m] has quit [Quit: Idle for 30+ days]
manu1volta[m] has quit [Quit: Idle for 30+ days]
<pipcet[m]> hmm. Turning off the main panel's backlight is easy enough on the MacBook Pro, but does it save any power?
<pipcet[m]> I mean, fighting light pollution is all good and noble, but if it's the only thing that's doing...
<tpw_rules> why would it not save power?
Major_Biscuit has joined #asahi
<pipcet[m]> I suppose it's likely that it does, but the display subsystem has been strange to me so far...
<pipcet[m]> anyway, it's key "gP12" on the SMC; 1 enables, 0 disables.
Major_Biscuit has quit [Ping timeout: 240 seconds]
Major_Biscuit has joined #asahi
Major_Biscuit has quit [Ping timeout: 268 seconds]
Mary_ has joined #asahi
vimal has joined #asahi
odmir has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
odmir has joined #asahi
odmir_ has joined #asahi
odmir has quit [Read error: Connection reset by peer]
Major_Biscuit has joined #asahi
radex has quit [Ping timeout: 260 seconds]
user1tt[m] has joined #asahi
radex has joined #asahi
<pipcet[m]> speaking of which, that's one of the SMC keys interpreted, 1422 to go :-)
vimal has quit [Ping timeout: 260 seconds]
Major_Biscuit has quit [Ping timeout: 240 seconds]
vimal has joined #asahi
Major_Biscuit has joined #asahi
raster has joined #asahi
odmir_ has quit [Remote host closed the connection]
odmir has joined #asahi
VinDuv has quit [Quit: Leaving.]
odmir has quit [Ping timeout: 260 seconds]
odmir has joined #asahi
choozy has joined #asahi
ephe_meral1 has quit [Ping timeout: 240 seconds]
<pipcet[m]> what's the usual epoch on macs?
pthariensflame has joined #asahi
pthariensflame has quit [Client Quit]
odmir has quit [Ping timeout: 240 seconds]
odmir has joined #asahi
Major_Biscuit has quit [Quit: WeeChat 3.0.1]
maknho___ has joined #asahi
maknho__ has quit [Ping timeout: 240 seconds]
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
roxfan has quit [Remote host closed the connection]
roxfan has joined #asahi
odmir has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
odmir has quit [Ping timeout: 240 seconds]
odmir has joined #asahi
mxw39 has quit [Ping timeout: 252 seconds]
odmir has quit [Ping timeout: 260 seconds]
mxw39 has joined #asahi
raster has quit [Quit: Gettin' stinky!]
odmir has joined #asahi