ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
KxCORP5894000345 has quit [Quit: Bye!]
ddxtanx has joined #asahi-dev
KxCORP5894000345 has joined #asahi-dev
opticron has quit [Ping timeout: 480 seconds]
ipatch has quit [Ping timeout: 480 seconds]
ipatch has joined #asahi-dev
ipatch has quit [Ping timeout: 480 seconds]
opticron has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
alih has quit []
tobhe_ has joined #asahi-dev
tobhe has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
nora_ has joined #asahi-dev
nora has quit [Ping timeout: 480 seconds]
john-cabaj has quit [Ping timeout: 480 seconds]
ipatch has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
pb17 has quit [Ping timeout: 480 seconds]
sand4rt has joined #asahi-dev
pb17 has joined #asahi-dev
sand4rt has quit [Quit: WeeChat 4.4.2]
ddxtanx has joined #asahi-dev
sand4rt has joined #asahi-dev
opticron has quit [Read error: Connection reset by peer]
opticron has joined #asahi-dev
weitcis has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
weitcis has joined #asahi-dev
nela has quit [Ping timeout: 480 seconds]
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
midou has joined #asahi-dev
allmazz has joined #asahi-dev
Tramtris1 has joined #asahi-dev
tramtrist has quit [Ping timeout: 480 seconds]
Tramtris1 is now known as Tramtrist
pb17 has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
pb17 has joined #asahi-dev
qdot has joined #asahi-dev
rafsan has joined #asahi-dev
sand4rt has quit [Quit: WeeChat 4.4.2]
rafsan has quit [Quit: rafsan]
rafsan has joined #asahi-dev
rafsan has quit [Quit: rafsan]
pb17 has quit [Ping timeout: 480 seconds]
Tramtrist has quit [Remote host closed the connection]
sand4rt has joined #asahi-dev
pb17 has joined #asahi-dev
alih has joined #asahi-dev
john-cabaj has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
malfunction54 has quit [Remote host closed the connection]
malfunction54 has joined #asahi-dev
sand4rt has quit [Ping timeout: 480 seconds]
<nickchan> chaos_princess: i think the brightness encoding is a bit wrong on a11
<nickchan> m1 /arm-io/mipi-dsim/lcddfr backlight-level-encoding = 8
<nickchan> a11 /arm-io/mipi-dsim/lcd = 11
<nickchan> a11 /arm-io/mipi-dsim/lcd backlight-level-encoding = 11
<chaos_princess> yea, i guess it has extra bits on primary display, and other devices send 2 bytes there https://elixir.bootlin.com/linux/v6.11/source/drivers/gpu/drm/drm_mipi_dsi.c#L1342
<chaos_princess> unfortunately, i do not have the pdf of the version of mipi dcs spec that has that command
<nickchan> I guess I need another compatible then
<nickchan> "apple,t8015-summit"
<chaos_princess> No need, just add a of property
<chaos_princess> and fill it from there
<chaos_princess> m1 display should accept a 2 byte command too in theory
ipatch has quit [Quit: WeeChat 4.4.1]
pb17 has joined #asahi-dev
ipatch has joined #asahi-dev
<nickchan> okay now i just need to find the mmio that's being poked
<nickchan> so I can do random things in m1n1
<nickchan> ... which I have no idea how to
<nickchan> navigate layers and layers of helper functions
<chaos_princess> do you have a device tree?
<nickchan> chaos_princess: yes
<chaos_princess> in m1 device trees the relevant one is described as mipi-dsim
<chaos_princess> only one mmio address there
<chaos_princess> also, remind me later today, i might have some of my research notes saved
<nickchan> chaos_princess: figured it out
<nickchan> 2 byte write
<nickchan> brightness 0 - 2047
<nickchan> encoded as a short
<nickchan> uint16
<chaos_princess> makes sense, log2(2048) is 1
<chaos_princess> *11
<nickchan> i wonder if m1 would survive two byte writes
<nickchan> assume < 256
<chaos_princess> 99% sure it will, from poking at it in general, it implements a lot of mipi spec
<nickchan> if that is ok on m1 we can fill max brightness from dt
sand4rt has joined #asahi-dev
<chaos_princess> sure, will test in a bit
ipatch has quit [Ping timeout: 480 seconds]
<nickchan> wait i forgot to change the width in summit_suspend
<nickchan> https://github.com/asdfugil/linux-apple/commits/apple/bits/060-adp/ okay just pick the most recent two non-dts commit
<chaos_princess> since you are touching it all anyway, it might make sense to use this helper https://elixir.bootlin.com/linux/v6.11/source/drivers/gpu/drm/drm_mipi_dsi.c#L1339
<nickchan> chaos_princess: that helper specifically doesn't work here
<chaos_princess> oh?
<nickchan> because we have more than 256 states
<nickchan> on some panels
<nickchan> anyways
<nickchan> okay wait
<nickchan> i misread the code
<chaos_princess> but it does write 16 bits, no?
<nickchan> I will try making the change
pb17 has quit [Ping timeout: 480 seconds]
<nickchan> chaos_princess: works on a11 and bushed to the branch above
<nickchan> pushed
<chaos_princess> kk
<nickchan> for the panel apple switched from samsung to synopsys in a8
<nickchan> I hope h6-display-pipe isn't too big of a difference
<nickchan> also apple,h7-display-pipe doesn't sound right...
<nickchan> the compatible
<nickchan> really should have been apple,t7000-display-pipe
<nickchan> especially if t7000 is going to be supported by the kernel
<nickchan> not going to propose any changes to the compaitble until I have the whole driver working though
<nickchan> currently it is just backlight
<chaos_princess> now im kinda sad that my iphone 10 went spicy pillow and shattered the screen some time ago :P
<nickchan> the amount of stuff that works or almost works is amazing
<nickchan> the amount of blocks that's still seemingly compatible going back 10 generation to A7 is very sigificant
<nickchan> DART isn't like that though so that's something to fiddle around with
<nickchan> well I think it still isn't *too* different
billak has joined #asahi-dev
<nickchan> the otg role-switch controller though, is likely completely different
<nickchan> and it is not some IP block either
billak has quit [Quit: Konversation terminated!]
ipatch has joined #asahi-dev
pb17 has joined #asahi-dev
ipatch has quit [Ping timeout: 480 seconds]
ipatch has joined #asahi-dev
balrog_ has joined #asahi-dev
balrog has quit [Ping timeout: 480 seconds]
sand4rt has quit [Ping timeout: 480 seconds]
___nick___ has quit []
___nick___ has joined #asahi-dev
___nick___ has quit []
<jannau> tobhe_: do you have usb proxy access to m1n1 on the black screen sequoia/m1n1-1.415 macbook? m1n1 log would be helpful
___nick___ has joined #asahi-dev
ipatch has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
ipatch has joined #asahi-dev
pb17 has joined #asahi-dev
___nick___ has quit [Remote host closed the connection]
<tobhe_> have never set that up but I could try
tobhe_ is now known as tobhe
sand4rt has joined #asahi-dev
<jannau> tobhe: if you're kernel has CONFIG_MTD_PHRAM you could patch your 2nd stage m1n1 with https://github.com/AsahiLinux/m1n1/pull/399 if you have ssh access
<jannau> kernel logs form a boot with black screen would might be helpful
<tobhe> I can easily get those
<jannau> probably should create an issue in the m1n1 repository to collect information
<tobhe> yes, i was going to ask
<tobhe> if you create one I can add all my info or I can create one if you prefer that
<tobhe> I'll try the m1n1 stage 2 patch
<jannau> yes, currently in process
<tobhe> thx
sand4rt has quit [Ping timeout: 480 seconds]
cow123 has joined #asahi-dev
chrisl has quit [Remote host closed the connection]
chrisl has joined #asahi-dev
sand4rt has joined #asahi-dev
ipatch has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
sand4rt has quit [Ping timeout: 480 seconds]
<tobhe> your m1n1 patches work. interestingly I can't trigger the problem now, instead of being entirely dark the backlight is off during boot and comes back with my graphical session starting.
cow123 has quit [Ping timeout: 480 seconds]
john-cabaj has quit [Ping timeout: 480 seconds]
cow123 has joined #asahi-dev
pb17 has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
<jannau> tobhe: maybe that's the issue?
<tobhe> added some more context in a comment
<tobhe> the backlight thing certainly didn't happen before
<jannau> it turning on either on dcp linux driver init or Displaymanager start?
<jannau> if you can still find apple-dcp log messages for the weird boots please attach them in the issue
sting has joined #asahi-dev
<tobhe> I'm pretty sure gnome is what resets the backlight
<tobhe> I'll look for logs
ipatch has joined #asahi-dev
kettenis has joined #asahi-dev
<tobhe> added some. hope that helps
pb17 has quit [Ping timeout: 480 seconds]