#
…

2024-09-24

00:02pb17 has quit [Ping timeout: 480 seconds]
00:32pb17 has joined #asahi-dev
01:00KxCORP5894000345 has quit [Quit: Bye!]
01:00ddxtanx has joined #asahi-dev
01:00KxCORP5894000345 has joined #asahi-dev
01:13opticron has quit [Ping timeout: 480 seconds]
01:14ipatch has quit [Ping timeout: 480 seconds]
01:35ipatch has joined #asahi-dev
01:46ipatch has quit [Ping timeout: 480 seconds]
01:48opticron has joined #asahi-dev
02:18pb17 has quit [Ping timeout: 480 seconds]
02:23alih has quit []
02:28tobhe_ has joined #asahi-dev
02:34tobhe has quit [Ping timeout: 480 seconds]
02:48pb17 has joined #asahi-dev
03:54nora_ has joined #asahi-dev
03:56nora has quit [Ping timeout: 480 seconds]
04:20john-cabaj has quit [Ping timeout: 480 seconds]
04:23ipatch has joined #asahi-dev
04:33pb17 has quit [Ping timeout: 480 seconds]
04:49pb17 has joined #asahi-dev
05:29ddxtanx has quit [Remote host closed the connection]
06:46pb17 has quit [Ping timeout: 480 seconds]
07:03sand4rt has joined #asahi-dev
07:08pb17 has joined #asahi-dev
07:22sand4rt has quit [Quit: WeeChat 4.4.2]
07:26ddxtanx has joined #asahi-dev
08:00sand4rt has joined #asahi-dev
08:12opticron has quit [Read error: Connection reset by peer]
08:12opticron has joined #asahi-dev
08:18weitcis has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
08:27weitcis has joined #asahi-dev
08:29nela has quit [Ping timeout: 480 seconds]
08:30JayBeeFOSS has quit [Ping timeout: 480 seconds]
08:31JayBeeFOSS has joined #asahi-dev
08:36pb17 has quit [Ping timeout: 480 seconds]
08:55pb17 has joined #asahi-dev
09:12midou has joined #asahi-dev
09:46allmazz has joined #asahi-dev
09:58Tramtris1 has joined #asahi-dev
10:00tramtrist has quit [Ping timeout: 480 seconds]
10:05Tramtris1 is now known as Tramtrist
10:06pb17 has quit [Ping timeout: 480 seconds]
10:30___nick___ has joined #asahi-dev
10:53pb17 has joined #asahi-dev
10:59qdot has joined #asahi-dev
11:02rafsan has joined #asahi-dev
11:07sand4rt has quit [Quit: WeeChat 4.4.2]
11:19rafsan has quit [Quit: rafsan]
11:20rafsan has joined #asahi-dev
11:43rafsan has quit [Quit: rafsan]
12:07pb17 has quit [Ping timeout: 480 seconds]
12:08Tramtrist has quit [Remote host closed the connection]
12:19sand4rt has joined #asahi-dev
12:48pb17 has joined #asahi-dev
13:08alih has joined #asahi-dev
13:42john-cabaj has joined #asahi-dev
14:23pb17 has quit [Ping timeout: 480 seconds]
14:32malfunction54 has quit [Remote host closed the connection]
14:32malfunction54 has joined #asahi-dev
14:47sand4rt has quit [Ping timeout: 480 seconds]
14:50nickchanchaos_princess: i think the brightness encoding is a bit wrong on a11
14:50nickchanm1 /arm-io/mipi-dsim/lcddfr backlight-level-encoding = 8
14:51nickchana11 /arm-io/mipi-dsim/lcd = 11
14:51nickchana11 /arm-io/mipi-dsim/lcd backlight-level-encoding = 11
14:53chaos_princessyea, 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
14:53chaos_princessunfortunately, i do not have the pdf of the version of mipi dcs spec that has that command
14:54nickchanI guess I need another compatible then
14:55nickchan"apple,t8015-summit"
14:55chaos_princessNo need, just add a of property
14:55chaos_princessand fill it from there
14:55chaos_princessm1 display should accept a 2 byte command too in theory
15:02ipatch has quit [Quit: WeeChat 4.4.1]
15:03pb17 has joined #asahi-dev
15:13ipatch has joined #asahi-dev
15:19nickchanokay now i just need to find the mmio that's being poked
15:19nickchanso I can do random things in m1n1
15:29nickchan... which I have no idea how to
15:30nickchannavigate layers and layers of helper functions
15:31chaos_princessdo you have a device tree?
15:32nickchanchaos_princess: yes
15:33chaos_princessin m1 device trees the relevant one is described as mipi-dsim
15:33chaos_princessonly one mmio address there
15:36chaos_princessalso, remind me later today, i might have some of my research notes saved
15:37nickchanchaos_princess: figured it out
15:37nickchan2 byte write
15:37nickchanbrightness 0 - 2047
15:38nickchanencoded as a short
15:38chaos_princessmakes sense, log2(2048) is 1
15:38nickchani wonder if m1 would survive two byte writes
15:38nickchanassume < 256
15:39chaos_princess99% sure it will, from poking at it in general, it implements a lot of mipi spec
15:39nickchanif that is ok on m1 we can fill max brightness from dt
15:54sand4rt has joined #asahi-dev
16:01chaos_princesssure, will test in a bit
16:05ipatch has quit [Ping timeout: 480 seconds]
16:06nickchanwait i forgot to change the width in summit_suspend
16:09chaos_princesssince 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
16:10nickchanchaos_princess: that helper specifically doesn't work here
16:10nickchanbecause we have more than 256 states
16:10nickchanon some panels
16:10nickchanokay wait
16:10nickchani misread the code
16:10chaos_princessbut it does write 16 bits, no?
16:11nickchanI will try making the change
16:15pb17 has quit [Ping timeout: 480 seconds]
16:18nickchanchaos_princess: works on a11 and bushed to the branch above
16:30nickchanfor the panel apple switched from samsung to synopsys in a8
16:31nickchanI hope h6-display-pipe isn't too big of a difference
16:31nickchanalso apple,h7-display-pipe doesn't sound right...
16:31nickchanthe compatible
16:32nickchanreally should have been apple,t7000-display-pipe
16:32nickchanespecially if t7000 is going to be supported by the kernel
16:34nickchannot going to propose any changes to the compaitble until I have the whole driver working though
16:34nickchancurrently it is just backlight
16:41chaos_princessnow im kinda sad that my iphone 10 went spicy pillow and shattered the screen some time ago :P
16:45nickchanthe amount of stuff that works or almost works is amazing
16:46nickchanthe amount of blocks that's still seemingly compatible going back 10 generation to A7 is very sigificant
16:47nickchanDART isn't like that though so that's something to fiddle around with
16:48nickchanwell I think it still isn't *too* different
16:48billak has joined #asahi-dev
16:50nickchanthe otg role-switch controller though, is likely completely different
16:50nickchanand it is not some IP block either
17:01billak has quit [Quit: Konversation terminated!]
17:10ipatch has joined #asahi-dev
17:21pb17 has joined #asahi-dev
17:40ipatch has quit [Ping timeout: 480 seconds]
17:57ipatch has joined #asahi-dev
18:32balrog_ has joined #asahi-dev
18:32balrog has quit [Ping timeout: 480 seconds]
18:38sand4rt has quit [Ping timeout: 480 seconds]
18:54___nick___ has quit []
18:56___nick___ has joined #asahi-dev
18:57___nick___ has quit []
18:58jannautobhe_: do you have usb proxy access to m1n1 on the black screen sequoia/m1n1-1.415 macbook? m1n1 log would be helpful
18:59___nick___ has joined #asahi-dev
19:03ipatch has quit [Ping timeout: 480 seconds]
19:06pb17 has quit [Ping timeout: 480 seconds]
19:24ipatch has joined #asahi-dev
19:51pb17 has joined #asahi-dev
20:04___nick___ has quit [Remote host closed the connection]
20:09tobhe_have never set that up but I could try
20:09tobhe_ is now known as tobhe
20:23sand4rt has joined #asahi-dev
20:27jannautobhe: 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
20:28jannaukernel logs form a boot with black screen would might be helpful
20:28tobheI can easily get those
20:28jannauprobably should create an issue in the m1n1 repository to collect information
20:29tobheyes, i was going to ask
20:29tobheif you create one I can add all my info or I can create one if you prefer that
20:29tobheI'll try the m1n1 stage 2 patch
20:29jannauyes, currently in process
21:01sand4rt has quit [Ping timeout: 480 seconds]
21:03cow123 has joined #asahi-dev
21:23chrisl has quit [Remote host closed the connection]
21:23chrisl has joined #asahi-dev
21:26sand4rt has joined #asahi-dev
21:34ipatch has quit [Ping timeout: 480 seconds]
21:44pb17 has quit [Ping timeout: 480 seconds]
21:50sand4rt has quit [Ping timeout: 480 seconds]
22:08tobheyour 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.
22:09cow123 has quit [Ping timeout: 480 seconds]
22:14john-cabaj has quit [Ping timeout: 480 seconds]
22:18cow123 has joined #asahi-dev
22:25pb17 has joined #asahi-dev
22:25ddxtanx has quit [Remote host closed the connection]
22:49jannautobhe: maybe that's the issue?
22:51tobheadded some more context in a comment
22:52tobhethe backlight thing certainly didn't happen before
22:54jannauit turning on either on dcp linux driver init or Displaymanager start?
22:55jannauif you can still find apple-dcp log messages for the weird boots please attach them in the issue
23:03sting has joined #asahi-dev
23:03tobheI'm pretty sure gnome is what resets the backlight
23:03tobheI'll look for logs
23:04ipatch has joined #asahi-dev
23:05kettenis has joined #asahi-dev
23:27tobheadded some. hope that helps
23:49pb17 has quit [Ping timeout: 480 seconds]
…