#
…

2022-10-30

00:00nicolas17ok no, something still went wrong
00:01nicolas17I think I forgot to rebuild the initrd for the new 6.x kernel
00:21zzywysm has quit [Read error: Connection reset by peer]
00:21zzywysm has joined #asahi-dev
00:22kevans91_ has joined #asahi-dev
00:26kevans91 has quit [Ping timeout: 480 seconds]
00:27kazuki__ has quit [Quit: Konversation terminated!]
00:53thelounge7571340 has joined #asahi-dev
00:53thelounge7571340 has quit [Remote host closed the connection]
00:57Dcow has quit [Remote host closed the connection]
01:06Dcow has joined #asahi-dev
01:15Dcow has quit [Ping timeout: 480 seconds]
01:24Etrien has joined #asahi-dev
01:25nicolas17ChaosPrincess: I compiled your PR and I still had no /dev/mtd0
01:25nicolas17I noticed MTD was disabled in the kernel config, so I enabled mtd and spi-nand modules... and still don't have an mtd0 device
01:26nicolas17I'm wondering if I need to do something else to get devicetree changes to take effect
01:31Etrien__ has quit [Ping timeout: 480 seconds]
01:36ayke_ is now known as ayke
01:41Dcow has joined #asahi-dev
01:47Etrien__ has joined #asahi-dev
01:50Dcow has quit [Ping timeout: 480 seconds]
01:54thelounge7571340 has joined #asahi-dev
01:54thelounge7571340 has quit [Remote host closed the connection]
01:55Etrien has quit [Ping timeout: 480 seconds]
02:17Dcow has joined #asahi-dev
02:19chadmed has joined #asahi-dev
02:25Dcow has quit [Ping timeout: 480 seconds]
02:28nicolas17yeahhh don't I need to rebuild m1n1 to change the devicetree?
02:28chadmedyou dont need to rebuild it, just run update-m1n1
02:29nicolas17why isn't all this on the wiki /o\
02:32nicolas17oh so I need to update /usr/lib/asahi-boot/dtb too
02:42thelounge7571340 has joined #asahi-dev
02:43thelounge7571340 has quit [Remote host closed the connection]
02:44nicolas17update-m1n1 gets dtbs from /lib/modules/*-ARCH/dtbs/*
02:44nicolas17my self-built kernel did *not* put dtbs in the modules directory
02:46nicolas17there is a "make dtbs_install" in the kernel but that installs into /boot/dtbs
02:48nicolas17finally...
02:49nicolas17I copied dtbs from the kernel build directory into /usr/lib/asahi-boot/dtb thinking that would work and it didn't, then I modified update-m1n1 to get them from there and it worked
02:50nicolas17ChaosPrincess: this may be relevant (dmesg): "spi-nor spi0.0: unrecognized JEDEC id bytes: c2 2b 27 c2 2b 27"
03:03nicolas17(/dev/mtd0 still didn't appear, and that error may be why)
03:41bluetail5 has joined #asahi-dev
03:48bluetail has quit [Ping timeout: 480 seconds]
03:48bluetail5 is now known as bluetail
03:48thelounge7571340 has joined #asahi-dev
03:48thelounge7571340 has quit [Remote host closed the connection]
03:56nicolas17 has quit [Quit: Konversation terminated!]
03:59SSJ_GZ has joined #asahi-dev
04:03Dcow has joined #asahi-dev
04:12Dcow has quit [Ping timeout: 480 seconds]
04:42psykose has quit [Remote host closed the connection]
04:43psykose has joined #asahi-dev
04:55thelounge7571340 has joined #asahi-dev
04:55thelounge7571340 has quit [Remote host closed the connection]
05:12Etrien has joined #asahi-dev
05:18Etrien__ has quit [Ping timeout: 480 seconds]
05:32kettenis has quit [Ping timeout: 480 seconds]
05:38Etrien has quit [Remote host closed the connection]
05:38Etrien has joined #asahi-dev
05:49uur has joined #asahi-dev
06:09thelounge7571340 has joined #asahi-dev
06:09thelounge7571340 has quit [Remote host closed the connection]
06:14uur has quit [Remote host closed the connection]
06:15uur has joined #asahi-dev
06:18uur has quit [Remote host closed the connection]
06:24Dcow has joined #asahi-dev
06:26Etrien__ has joined #asahi-dev
06:29Etrien has quit [Ping timeout: 480 seconds]
06:31uur has joined #asahi-dev
06:32Dcow has quit [Ping timeout: 480 seconds]
06:52uur has quit [Remote host closed the connection]
07:00duban6 has quit []
07:04duban6 has joined #asahi-dev
07:11thelounge7571340 has joined #asahi-dev
07:12thelounge7571340 has quit [Remote host closed the connection]
07:12uur has joined #asahi-dev
07:13Etrien__ has quit [Read error: Connection reset by peer]
07:14Etrien has joined #asahi-dev
07:32brentr123 has joined #asahi-dev
07:33brentr123 has quit []
07:36brentr123 has joined #asahi-dev
07:37brentr123 has quit []
07:40brentr123 has joined #asahi-dev
07:51brentr123 has quit [Quit: Leaving...]
08:03millenialhacker has joined #asahi-dev
08:11kettenis has joined #asahi-dev
08:17thelounge7571340 has joined #asahi-dev
08:18thelounge7571340 has quit [Remote host closed the connection]
08:22brentr123 has joined #asahi-dev
08:23brentr123 has quit []
08:38ChaosPrincessWelp, i hoped that m2 would just work(tm), but apparently this is not happening
09:01uur has quit [Remote host closed the connection]
09:10uur has joined #asahi-dev
09:13brentr123 has joined #asahi-dev
09:13Etrien__ has joined #asahi-dev
09:18Etrien has quit [Ping timeout: 480 seconds]
09:18thelounge7571340 has joined #asahi-dev
09:18thelounge7571340 has quit [Remote host closed the connection]
09:19brentr123 has quit [Quit: Leaving...]
09:19brentr123 has joined #asahi-dev
09:21Etrien has joined #asahi-dev
09:24brentr123 is now known as Guest4505
09:25Guest4505 has quit [Quit: Leaving...]
09:25brentr123 has joined #asahi-dev
09:27Etrien__ has quit [Ping timeout: 480 seconds]
09:36brentr123 has quit [Quit: Leaving...]
09:37systwi has quit [Read error: Connection reset by peer]
09:38systwi has joined #asahi-dev
09:45brentr123 has joined #asahi-dev
09:47aleasto has quit [Quit: ZNC 1.8.2 - https://znc.in]
09:54aleasto has joined #asahi-dev
10:08amarioguy has quit [Remote host closed the connection]
10:08amarioguy has joined #asahi-dev
10:09kazuki has joined #asahi-dev
10:09kazukichadmed: Your patch doesn't build
10:09chadmedyeah i sent the wrong version lmao, first time using git send-email
10:10chadmedill send a v2
10:10chadmedi do have a built, tested and working version here
10:20thelounge7571340 has joined #asahi-dev
10:21thelounge7571340 has quit [Remote host closed the connection]
10:25chadmedlinux-pm and asahi mailing lists
10:26chadmedthis one works
10:35uur has quit [Remote host closed the connection]
10:35uur has joined #asahi-dev
10:37kazuki has quit [Quit: Konversation terminated!]
10:53gabuscus_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:53gabuscus has joined #asahi-dev
11:04r0ni has quit [Quit: Leaving]
11:05millenialhacker_ has joined #asahi-dev
11:09millenialhacker has quit [Ping timeout: 481 seconds]
11:09chengsun has joined #asahi-dev
11:14r0ni has joined #asahi-dev
11:23thelounge7571340 has joined #asahi-dev
11:24thelounge7571340 has quit [Remote host closed the connection]
11:32r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
11:36chengsun has quit [Ping timeout: 480 seconds]
11:38millenialhacker has joined #asahi-dev
11:42millenialhacker_ has quit [Ping timeout: 480 seconds]
11:52amarioguy2 has joined #asahi-dev
11:52amarioguy has quit [Ping timeout: 480 seconds]
11:55amarioguy2 is now known as amarioguy
12:00duban6 has quit []
12:03duban6 has joined #asahi-dev
12:06___nick___ has joined #asahi-dev
12:13brentr123 has quit [Quit: Connection closed for inactivity]
12:24kazuki has joined #asahi-dev
12:26thelounge7571340 has joined #asahi-dev
12:26thelounge7571340 has quit [Remote host closed the connection]
12:27uur has quit [Remote host closed the connection]
12:38Dcow has joined #asahi-dev
12:52kazukiOh I messed up some stuff
12:53chadmed_ has joined #asahi-dev
12:54chadmed_i caught the missing curly brace, but we dont need to go to free_microwatt in that last case right
12:54chadmed_if we get to that stage and supplies is still -1 then microwatt was never allocated
13:00kazukiAh right yes
13:01kazukiNo need for the if (pcount) too
13:03chadmed_same goes for microamp and microvolt, theyre only allocated iff icount/vcount are valid, so if we make it to free_* then we know that i/vcount arent 0
13:07kazukiThey might not get allocated if !icount/!vcount
13:08chadmed_if ive written the code correctly they should never be allocated under such conditions
13:08chadmed_theyre only there to be indexed into for populating the regulator struct
13:09chadmed_if !vcount, !icount or !pcount then theres no data to populate so we dont need those arrays
13:09chadmed_and they should not be allocated
13:09kazukiYes, that's why we don't need to kfree them
13:10chadmed_yeah so why do we need to jump to free_* in branches where theyre not allocated
13:10chadmed_the previous code just returned straight out of the branch like i had it before
13:12uur has joined #asahi-dev
13:13kazukiWhat if microvolt is not allocated but microamp is, and we want to exit in microwatt path
13:14chadmed_oh of course that makes sense
13:16chadmed_in that case would it be better to have one error: label which checks all three and cleans up ones that have been allocated instead of three discrete ones
13:22chadmed_instead of having free_*, we condense them into one operation that just frees any of the arrays that were allocated
13:23chadmed_my thinking is that since theres no longer a hierarchy of props, any of them could be allocated out of order and having individual ops to error out of parsing them could leave some non-freed memory behind depending on the order they were parsed/allocated
13:23ccs1 has joined #asahi-dev
13:24ccs1😁️
13:24chadmed_given that we dont actually populate the regs under any error condition, we should just check for all three arrays and free any that were allocated on all error paths to guarantee we dont leave anything behind
13:27brentr123 has joined #asahi-dev
13:27thelounge7571340 has joined #asahi-dev
13:27thelounge7571340 has quit [Remote host closed the connection]
13:27kazukiSure, I guess it's up to the maintainer to decide at this point then
13:29kazukiTechnically yours have more overhead (more branches) but I guess that's mostly irrelevant
13:30ccs1just wondering anyone work on the "SSM3515" ? newbie here would like to learn some driver dev.
13:39Dcow has quit [Remote host closed the connection]
13:39Dcow has joined #asahi-dev
13:45thelounge7571340 has joined #asahi-dev
13:45thelounge7571340 has quit [Remote host closed the connection]
13:45chengsun has joined #asahi-dev
13:54chengsun has quit [Ping timeout: 480 seconds]
14:09Dcow_ has joined #asahi-dev
14:15Dcow has quit [Ping timeout: 480 seconds]
14:29millenialhackerDoes DCP improved battery life?
14:30millenialhackers/improved/improve/g
14:42uur has quit [Remote host closed the connection]
14:54thelounge7571340 has joined #asahi-dev
14:54thelounge7571340 has quit [Remote host closed the connection]
14:55gladiac has joined #asahi-dev
15:01ccs1 has quit [Ping timeout: 480 seconds]
15:02uur has joined #asahi-dev
15:19ljs has joined #asahi-dev
15:22millenialhacker has quit [Quit: Konversation terminated!]
15:26lkron has joined #asahi-dev
15:34chadmed_ has quit [Remote host closed the connection]
15:36brentr123 has quit [Quit: Connection closed for inactivity]
15:41kazuki has quit [Quit: Konversation terminated!]
15:47DarkShadow44 has joined #asahi-dev
15:47DarkShadow4444 has quit [Remote host closed the connection]
15:48DarkShadow44 has quit []
15:51DarkShadow4444 has joined #asahi-dev
15:51DarkShadow44 has joined #asahi-dev
15:52ljs has quit [Ping timeout: 480 seconds]
15:57thelounge7571340 has joined #asahi-dev
15:57thelounge7571340 has quit [Remote host closed the connection]
16:33gladiac has quit [Quit: k thx bye]
16:33gladiac has joined #asahi-dev
16:34gladiac has quit []
16:34gladiac has joined #asahi-dev
16:50brentr123 has joined #asahi-dev
16:59thelounge7571340 has joined #asahi-dev
17:00thelounge7571340 has quit [Remote host closed the connection]
17:13brentr123 has quit [Quit: Leaving...]
17:19Dcow_ has quit [Remote host closed the connection]
17:34Dcow has joined #asahi-dev
18:01thelounge7571340 has joined #asahi-dev
18:01thelounge7571340 has quit [Remote host closed the connection]
18:20uur has quit [Remote host closed the connection]
18:26uur has joined #asahi-dev
18:38lkron has quit [Read error: No route to host]
18:41lkron has joined #asahi-dev
19:04thelounge7571340 has joined #asahi-dev
19:05thelounge7571340 has quit [Remote host closed the connection]
19:35c10l5 has quit []
19:35c10l has joined #asahi-dev
19:42chengsun has joined #asahi-dev
19:50chengsun has quit [Ping timeout: 480 seconds]
20:04jannausigh, I finally found out how to set the backlight. much easier than thought, it's encoded in 0x2e4 - 0x2f3 of dcp_swap/swap_rec
20:05jannauI still don't understand the how exactly it's coded and what the limits are
20:12thelounge7571340 has joined #asahi-dev
20:12thelounge7571340 has quit [Remote host closed the connection]
20:35gladiac has quit [Quit: k thx bye]
20:45jluthra has quit [Remote host closed the connection]
20:46jluthra has joined #asahi-dev
20:49l3k has joined #asahi-dev
21:02thelounge7571340 has joined #asahi-dev
21:02thelounge7571340 has quit [Remote host closed the connection]
21:03Dcowjannau: nice! I guess it's not 0-255?
21:05Dcowoh right, it's not. to big size for that
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:09Dcowthis is for LG 5k Ultrafine display, made for Apple
21:11jannauscale is 0x10000000 - 0x7F3FABC0 (SDR, macbook pro 14") and it reports back nits. 4 - 500 Nits in this case
21:12jannaubased on the ADT I suspect the scale might be current
21:14Etrien__ has joined #asahi-dev
21:18Etrien has quit [Ping timeout: 480 seconds]
21:28Etrien has joined #asahi-dev
21:32Etrien__ has quit [Ping timeout: 480 seconds]
21:36Dcow has quit [Remote host closed the connection]
21:37Dcow has joined #asahi-dev
21:46uur has quit [Remote host closed the connection]
21:49Dcow_ has joined #asahi-dev
21:51uur has joined #asahi-dev
21:56Dcow has quit [Ping timeout: 480 seconds]
21:59uur has quit [Ping timeout: 480 seconds]
22:03thelounge7571340 has joined #asahi-dev
22:04thelounge7571340 has quit [Remote host closed the connection]
22:11Core8963 has joined #asahi-dev
22:14Core1912 has joined #asahi-dev
22:15Core9066 has quit [Ping timeout: 480 seconds]
22:17uur has joined #asahi-dev
22:19Core8963 has quit [Ping timeout: 480 seconds]
22:30uur has quit [Remote host closed the connection]
22:30uur has joined #asahi-dev
22:40r0ni has joined #asahi-dev
22:50nicolas17 has joined #asahi-dev
22:52nicolas17ChaosPrincess: I guess the SPI address is wrong, and the next step is me figuring out how to run macOS on m1n1 and getting you logs? :)
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:03SSJ_GZ has quit [Ping timeout: 480 seconds]
23:16brentr123 has joined #asahi-dev
23:16nicolas17hm, macos ioreg says "spi1@35104000" while your devicetree says "spi1: spi@235104000"
23:20thelounge7571340 has joined #asahi-dev
23:21nicolas17nvm there isn't any >8 digit address in ioreg so maybe it's ioreg being dumb
23:21thelounge7571340 has quit [Remote host closed the connection]
23:23brentr12_ has joined #asahi-dev
23:25Esmil has quit [Ping timeout: 480 seconds]
23:28jannauthe adt translates the base mmio by 0x200000000
23:29lkron has quit [Quit: leaving]
23:29r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
23:32Method_ has quit [Ping timeout: 480 seconds]
23:33Core9066 has joined #asahi-dev
23:37r0ni has joined #asahi-dev
23:39Core1912 has quit [Ping timeout: 480 seconds]
23:39brentr12_ has quit [Quit: Leaving...]
23:54ccs1 has joined #asahi-dev
23:55nicolas17 has quit [Remote host closed the connection]
…