#
…

2021-05-29

01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:56XeR` has joined #asahi-dev
01:56XeR has quit [Remote host closed the connection]
02:12yuyichao has joined #asahi-dev
02:24phiologe has joined #asahi-dev
02:24aquijoule_ has quit [Ping timeout: 480 seconds]
02:25Dragonfly has joined #asahi-dev
02:26Dragonfly has quit [Remote host closed the connection]
02:27PhilippvK has quit [Ping timeout: 480 seconds]
02:28Skinny_Minny has joined #asahi-dev
02:29Skinny_Minny has quit [Remote host closed the connection]
02:31Baby_Bird has joined #asahi-dev
02:32Baby_Bird has quit [Remote host closed the connection]
02:36Carrot has joined #asahi-dev
02:36Carrot has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 02:36:23)]
02:40Cheeky has joined #asahi-dev
02:40Cheeky has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 02:40:43)]
03:07Bean has joined #asahi-dev
03:07Bean_ has joined #asahi-dev
03:07Bean_ has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:07:33)]
03:07Bean has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:07:33)]
03:19Dum_Dum has joined #asahi-dev
03:19Dum_Dum has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:19:47)]
03:22Lefty has joined #asahi-dev
03:22Lefty has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:22:23)]
03:24LaLa has joined #asahi-dev
03:25LaLa has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:25:01)]
03:28Gator has joined #asahi-dev
03:28Gator has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:28:51)]
03:31Diesel has joined #asahi-dev
03:31Diesel has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:31:44)]
03:36Double_Bubble has joined #asahi-dev
03:36Double_Bubble has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:36:48)]
03:40Chicken_Legs has joined #asahi-dev
03:40Chicken_Legs has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:40:21)]
03:40yuyichao_ has joined #asahi-dev
03:41yuyichao_ has quit []
03:41yuyichao_ has joined #asahi-dev
03:43Pansy has joined #asahi-dev
03:43Pansy has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:43:29)]
03:46Turtle has joined #asahi-dev
03:46Turtle has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:46:45)]
03:49Bunny_Rabbit has joined #asahi-dev
03:50Bunny_Rabbit has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:50:03)]
03:56Swiss_Miss has joined #asahi-dev
03:56Swiss_Miss has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:56:33)]
03:59Swiss_Miss has joined #asahi-dev
03:59Swiss_Miss has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:59:48)]
04:02Mustache has joined #asahi-dev
04:03Mustache has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 04:03:04)]
04:06String_Bean has joined #asahi-dev
04:06String_Bean has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 04:06:19)]
04:23bloom"You need at least 70GB for the stub partition"
04:23bloomI am not comfortable with this take me back to userspace
04:54Lightsword has quit []
04:55Lightsword has joined #asahi-dev
05:09Lightsword has quit []
05:24VinDuv has joined #asahi-dev
05:51marcanbloom: I hope we can make this all much saner in the future, but that's currently blocked on a) better understanding what we can do, and b) apple implementing things that are still broken properly
06:43VinDuv has quit [Read error: Connection reset by peer]
07:00thunfisch has quit [Quit: frrrp!]
07:09dhewgI usually break thinks unproperly
07:15VinDuv has joined #asahi-dev
08:07pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
09:28pcm720 has joined #asahi-dev
09:32pcm720 has quit []
10:08thunfisch has joined #asahi-dev
10:26thunfisch is now known as Guest70
10:26thunfisch has joined #asahi-dev
10:27Guest70 has quit [Ping timeout: 480 seconds]
10:43thunfisch is now known as Guest72
10:43thunfisch has joined #asahi-dev
10:45Guest72 has quit [Ping timeout: 480 seconds]
11:53thunfisch has quit [Ping timeout: 480 seconds]
12:16jannau45GB for the second mac os installation is not enough for installing mac os updates
12:16jnoh wow
12:16jnalmost like one of those modern video games
12:19jannausomething like 12GB free with nothing but the os installed
12:21marcanjannau: our guide says 70GB, you can't even install it fresh with 50 these days, it fails
12:21marcanthe updater/installer is extremely inefficient
12:24thunfisch has joined #asahi-dev
12:31jannauyes, that was intended as confirmation, that 70GB is a reasonable value
12:33bps has quit [Ping timeout: 480 seconds]
12:36marcanOTOH, if all you care about is linux, that partition is useless once you have a user/password set up; you can mostly wipe it and shrink it
12:36marcanI already confirmed you can build up such a partition from scratch; the only choke point is getting credentials for kmutil/bputil
12:38marcanso we can easily implement our own updates; ideally from 1TR, so the flow would be that you update 1TR using the primary macos partition and then use some tooling we provide to update your blobs/iboot2/etc in the m1n1 partition
12:39marcanI wonder if we can get idevicerestore to do 1TR/NAND updates without breaking bootpolicy too badly; if we can then this would be convenient to keep firmware up to date for those who don't want macos
12:39marcaneventually we can probably implement SFR updates from linux, but that will probably take a while until it's safe enough to use
12:41jannauI don't want to get rid of it for now, I'm preparing to boot into it via m1n1/hv
12:41marcanyeah, that's one reason to keep it :)
12:44svenbloom: https://github.com/AsahiLinux/m1n1/pull/65 and https://github.com/AsahiLinux/linux/commits/dart/dev and enabling dwc3+whatever else you need in .config and you have your usb support
12:54bloomsven: ha-ha!
13:00bloomwhy is this a tri-state?
13:00bloomI imagine booting an M1 with this in =m mode would rough (oookay I guess we could throw it in the initramfs which might make debian happy)
13:01svenbecause i probably copy&pasted it from somewhere :D
13:01j_eyexample: tristate "ARM Ltd. System MMU (SMMU) Support"
13:02pipcet[m]shouldn't hurt, might conceivably help with development?
13:02bloomj_ey: lolol
13:02bloomfair enough
13:02bloom"Note that this also does not include a PHY driver but instead relies
13:02bloomon the bootloader to setup everything correctly."
13:03bloomI imagine the m1n1 code needs to be ported to linux eventually for things like otg?
13:04bloomsven: "Note that this also does not include a PHY driver but instead relies
13:04bloom+int i2c_smbus_write32(i2c_dev_t *dev, u8 addr, u8 reg, u32 val)
13:04bloomdo you not have memcpy in m1n1? :-p
13:05bloommemcpy(bfr, &val, 4)
13:05bloom+ u32 cmd_status = 0xffffffff; // just needs to be different from 0 and TPS_CMD_INVALID
13:05bloomuse a do-while?
13:06sveneuh, can you maybe just comment on the github pr? i'll forget about all of this otherwise in an hour or two :D
13:06bloomyep sorry
13:08bloomhey, could someone here running the latest macOS run a test for me?
13:08bloom(I want to make sure GPU things don't break catastrophically with the updates)
13:08brentr123[m]yeh i have macos
13:08brentr123[m]do i need m1n1?
13:08brentr123[m]ok im one version behind
13:08jannauI can in about 6 minutes
13:09bloomprobably latest is best
13:09jannaucurrently updating to 11.4
13:10bloombut -- install XQuartz (there's a bundle upstream), clone https://github.com/asahilinux/gpu and make, and run the binary ./demo-bin
13:14bloomthanks :)
13:17brentr123[m]i dont know if it is a error with building or with my macos version
13:17brentr123[m]or the script
13:20roxfan2 has joined #asahi-dev
13:20VinDuv has quit [Quit: Leaving.]
13:20roxfan has quit [Read error: Connection reset by peer]
13:20Fanfwe has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
13:21brentr123[m]<bloom "but -- install XQuartz (there's "> should i post a screenshot of what I got on here? If it's broken on 11.2.3 then it might be broken on 11.4 also
13:21bloomyes, please
13:21Fanfwe has joined #asahi-dev
13:26jannaubloom: what is it supposed to render? it looks slow but not obviously broken on 11.4
13:26bloomspinning cube
13:26bloomIIRC solid colour on that tre
13:31bloomgotta say, it's real nice not seeing an EULA when I type apt upgrade :rolleye:
13:32bloomuhhh no but if it's rendering at all it's probably not a kernel issue :p
13:32jannaubloom: ^^^, the polygon started smaller and expanded to the right
13:32bloomoh yes alright
13:33bloomthat was a _really_ old demo then
13:33bloomman did I really never merge my newer stuff? ah well
13:34brentr123[m]can confirm same thing with 11.2.3
13:34brentr123[m]i had to open xquartz first duh
13:35jannaumain is from 2021-04-12, wip and relocs branches are newer but segfault
13:36bloomah yes that would be why i never meged :p
13:37bloomthank you :)
13:39jannauyou're welcome
13:43VinDuv has joined #asahi-dev
14:03jannausven: usb host seems to work (I need to enable more stuff to test storage and network devices). They are found and a usb keyboard works
14:07svenwhat probably doesn't work is hotplugging
14:07svenor, well, reusing any usb port twice
14:07sveni still have to figure out how to detect that
14:07robinp_ has joined #asahi-dev
14:08pipcet[m]are we sure there's a way to do that? Maybe we just need to watch the i2c chips and reset the dwc3 when the line's disconnected.
14:08pipcet[m]but I guess we'll have mmiotraces soon :-)
14:08svenit's either the i2c chip or the phy itself i guess
14:09sven[ 28.536076] usb 3-1: USB disconnect, device number 2 <-- looks like i get disconnect events in host mode though
14:12jannauunplugging and repluggin seems to work for me
14:13svenhuh, really?
14:13svenweird. it doesn't for me
14:14robinp has quit [Ping timeout: 480 seconds]
14:15jannaukeyboard still works
14:16svenso you disconnect the usb hub, then connect it again and it works after that?
14:17bloomWTF why is macOS flashing blue and black
14:17jannauon the left usb-c port of a mac mini, right port is configured as "peripheral"
14:17bloomis this what injury looks like i was just trying to update i have SEP enabled and everything
14:18Lightsword has joined #asahi-dev
14:18jannausven: reconnecting the hub or single devices from the hub works
14:18sventhe single devices from the hub is no surprise
14:19roxfan2 is now known as roxfan
14:19svenbut that reconfiguring the hub itself works is unexpected
14:19bloomoh, went away after a few minutes
14:19jannauwith CONFIG_USB_DWC3_DUAL_ROLE=y
14:19svenif i reconnect my yubikey (only usb c thing i have with me right now) it isn't recognized again
14:21bloomyou don't have all your devices usb-c? :-p
14:22bloomI still remember the first time I got a Samsung Chromebook Plus (RK3399), specifically to install linux
14:22bloomand then I'm thinking "how to install Linux? You told me it had 2 usb ports. This has no usb ports"
14:23blooman hour round trip to the Apple store and $20 later, ....
14:24jannausven: with a usb-c device it's also broken for me. the hub is USB-A with a USB-C to USB-A adapter
14:27sveninteresting
14:40bloomdiskutil what is this madness
14:41bloomreally looking forward to the shiny new intall flows :-p
14:43bloomI guess shrinking APFS will take a while
14:45poljar has joined #asahi-dev
14:45poljar has quit [Remote host closed the connection]
14:45jannauUSB rootfs and network are working
14:49bloom"Macintosh HD"
14:49bloomthis is out of date
14:49bloomshould be "Macintosh 4k"
15:09altwazar-M has joined #asahi-dev
15:10altwazar-M has quit [Read error: Connection reset by peer]
15:14bps has joined #asahi-dev
15:17thunfisch is now known as Guest90
15:17thunfisch has joined #asahi-dev
15:19Guest90 has quit [Ping timeout: 480 seconds]
15:55thunfisch is now known as Guest93
15:55thunfisch has joined #asahi-dev
15:57Guest93 has quit [Ping timeout: 480 seconds]
16:02thunfisch is now known as Guest95
16:02thunfisch has joined #asahi-dev
16:04thunfisch has quit []
16:08Guest95 has quit [Ping timeout: 480 seconds]
16:08bloommarcan: Dumb question but can you run 1TR in the hypervisor?
16:08bloomfor poking at the different security model utils?
16:09bloomwait those are userspace you could dyld_preload from 1TR couldn't you heh
16:14balrogbloom: pretty sure that 1TR won't run from a user-signed-OS context
16:14balrogand pretty sure you can't dyld_preload in 1TR either
16:15marcanbloom: the tools work out side of 1TR, it's just the SEP will hate you for not being in that mode
16:15marcanobviously you can't boot the HV in 1TR mode so that's kind of moot
16:15bloomAttributeError: 'super' object has no attribute '_reset_input_buffer'
16:15* bloombreathes
16:15marcanthat again
16:15marcanpyserial version?
16:15bloomyep yep
16:16bloomAttributeError: 'super' object has no attribute '_reset_input_buffer'
16:16bloom"Have fun!" ha ha!
16:16Mary8 has joined #asahi-dev
16:19yrlfat this point we could even add a "if not hasattr(serial.Serial, "_reset_input_buffer"): print("check your pyserial version")
16:19yrlfif I remember correctly this happened quite a few times already
16:19TheLinkbrowser games brick breaker
16:19TheLink(wrong keyboard)
16:20yrlfthe classic incorrect focus oops
16:20VinDuvso older versions of pyserial don’t reset the input buffer on open?
16:20yrlfat least it wasn't your password
16:21yrlfVinDuv: they don't seem to have a function named "_reset_input_buffer"; maybe it's been factored out at some point
16:21j_eyoh, is it too new a pyserial?
16:22bloomand i can't reliably get usb
16:22Mary has quit [Ping timeout: 480 seconds]
16:22Mary8 is now known as Mary
16:22bloomthat's a kernel bug on my laptop though
16:22marcanyrlf: fixed
16:23marcanshould work with both versions now
16:23marcanbloom: you too?
16:23marcansomeone else had that earlier
16:24bloommarcan: no this is a bug with my laptop's kernel
16:24bloomnot just m1n1, any usb
16:24marcanwell, someone else had m1n1 tickling a kernel bug :p
16:25yrlffrom a quick git blame it seems the function was introduced in v3.5
16:25yrlfmarcan: well that's a way to "fix" this, but it does work for now ^^
16:25kettenismarcan: me ;)
16:25marcanwe don't actually use that method
16:25bloomkettenis: Rk3399 user?
16:25kettenisno, pserial 3.4 issues
16:25ketteniswell, I have rk3399 boards as well
16:26marcanit used to be used for the linux tty stuff I think, but that got refactored to use vanilla serial.
16:26marcanit just gets instantiated before boot so no data is lost
16:26marcanso now all we care about is neutering that reset method
16:27kettenisI simply commented out the reset_input_buffer() method
16:38brentr123[m]Hey is there any way I can be a "tester", like if anyone here needs specific programs related to asahi or whatever tested
16:40koorogi has quit [Remote host closed the connection]
16:44DragoonAethis has quit [Quit: No Ping reply in 180 seconds.]
16:45DragoonAethis has joined #asahi-dev
16:47koorogi has joined #asahi-dev
16:48_jannau_ has quit [Ping timeout: 480 seconds]
16:49_jannau_ has joined #asahi-dev
17:07bloomIn the mean time, let's poke the display driver from m1n1. This is fun!
17:15* bloomtries to understand ADT
17:25kettenisbloom: biggest gotcha is that 64-bit addresses/sizes are "little endian" instead of "big endian"
17:32bloomtotal noob question - why is there an 0x2.. prefix to all the registers that's missing in the ADT?
17:36kettenisso the ranges property of onr of the toplevel nodes defines an address-space translation just like it does for normal device trees
17:37kettenisthe /arm-io node to be specefic
17:37kettenisour device tree doesn't do this because frankly it is just confusing
17:49kettenisok, teaching the OpenBSD/arm64 installer about GPT partitions helped, but something went wrong as I ended up with 2G /home
17:49kettenisthe presence of all those apple partitions seems to confuse the code that autosizes the partitions
17:51bloomI still can't figure out where this address is
17:51bloom0x230850000
17:51bloomthe 2 goes away with the above thing to 0x30850000
17:51bloombut I can't find that in the ADT anywhere
17:52bloomand m1n1's adt lookup can't find it either
17:53bloomI /think/ it's supposed to be the first reg in disp0 but the size there is too small
17:53pipcet[m]bloom: the display controller? the Corellium source code uses 0x230850030 to set the pixel format
17:53bloomand there's a ton of display controller regs there beyond what corellium uses
17:54pipcet[m]so many ways to blank your screen and force a reboot :-)
17:54bloom>>> read32(0x230850030)
17:54bloom>>> read32(0x230050030)
17:54bloommemory mirroring, then
17:54pipcet[m]I don't think so, try writing it
17:54bloom...nope. nothing
17:55bloomWTF intensifies
17:55bloomthis is why i stick to userspace
17:55pipcet[m](I set out to hunt the backlight controls, no luck so far)
17:55bloomcan't help you there, I have a mini
17:55bloomthis is very odd.
17:55bloomthe register contents are mirrored but writes are not
17:55pipcet[m]I can blank the backlight at least :-)
17:56pipcet[m]maybe there are just two "surfaces", or "displays", or whatever?
17:56bloomactually, more interesting is that writes to 0x230050030 are ignored
17:56pipcet[m]any idea how to find the frame buffer once macos moves it?
17:57bloomi..e. if I write to 0x230850030 and read it back, it's read back as expected
17:57bloomcan't be said of 0x230050030
17:57bloomsimilarly, if I write to 0x230850030, the value is indeed propagated to 0x230050030
17:57bloomso it's a read only mirror I guess? then why isn't that reflected in the adt
17:58jannau0x230850030 is not in any reg range of the adt as far m1n1 parses it
17:58pipcet[m]I'm no longer entirely sure, but I think the "read only mirror" had different values when I started m1n1 in parallel to macos
18:00bloomjannau: indeed
18:00pipcet[m]jannau: is there a part m1n1 doesn't parse? my parser also doesn't know about that range, which is why it was a bit weird to see it in the corellium code.
18:00pipcet[m]and obviously the display controller is there...
18:01bloomis it possible the adt is incomplete?
18:01milek7pipcet[m]: backlight controls would be in mmio or in separate chip controlled through eg. i2c?
18:01jannauat least when printed it looks like the parsing is not yet complete
18:01bloommilek7: i2c does seem likely
18:01pipcet[m]milek7: probably, yes.
18:01pipcet[m]milek7: there's a master power switch in the SMC but no PWM as far as I can tell.
18:02bloomproposal to rename "i2c" to "-c"
18:02pipcet[m]the weird thing is I haven't seen anything in my mmiotraces yet, so decided to wait for marcan's instead.
18:03pipcet[m])bloom: I suspect the display stuff is indeed not fully reflected in the adt.
18:06pipcet[m]and I'm not sure how much of the shared memory region is really mmio in disguise.
18:07jannaumaybe the size of the first disp0 reg is just wrong. 0x230000000,0x3fc000 and then nothing until 0x231300000 for dart-disp0
18:09pipcet[m]jannau: my ADT also has an "#address-cels" property, so I suspect it wouldn't be the only typo
18:13bloom...does macOS use the ADT? :P
18:13bloomor is this whole file just copied fom an iphone and then they modified the M1 and nobody thought to update the ADT ;-p
18:14pipcet[m]I think it's our best bet, and it's quite accurate as far as I can tell.
18:14pipcet[m]"strings" also shows some strings that look like ADT keys for the macos kernel
18:17svenxnu is using the ADT for sure
18:17jannauyes, the ADT is used xnu. It is part of the boot process and iboot prepares it for the kernel
18:18bloomboring :-p
18:19Glanzmann has quit [Quit: leaving]
18:21svenit wouldn't surprise me if xnu just ignores the size of regions, etc. though
18:22sventhere are also some nodes missing in the ADT. there's e.g. a DAPF (some address filter iommu thingy) directly after the sio dart
18:22svenbut i don't think these are used by xnu
18:23bloomi just want to figure out how to get mini in 4k ;-p
18:23svenyes please!
18:25svenyou asked for usb and i delivered. now it's your turn! :P
18:26pipcet[m]oh, iboot doesn't initialize to a decent resolution?
18:27bloomshh working on it
18:39bloomah-ha! colour mask registers, fun!
18:39bloomfor all your, uh, colour masking needs
18:40marcanpipcet[m]: the display controller is handled by a side core
18:41marcanso it's entirely likely that none of these registers are written by macos
18:41marcanand instead it all goes through a mailbox to the DCP
18:41bloomthat would make sense
18:41bloomnow go to sleep marcan
18:41pipcet[m]we'll find out :-)
18:43marcansven: it's your fault, you didn't find me AFSR1_GL{1,2,12} and I was using the EL2 one for everything and stuff was exploding :'(
18:43marcanfixed now
18:43marcan(there goes 1h of sleep)
18:44svenpfrt, i can't do everything for you! :-P
18:51bloomI found the hidden mickeys!
18:51bloomBrought to you by iBoot, Ltd.
18:52svenlittle apples :D
18:53jnone big apple and four small ones — reads like a variantion on the big/little penguins to show how many and which CPUs you have :)
18:53bloomjannau: :D
18:55bloomalso lol no comments on the state of my desk
18:56sventhat setup looks about as clean/messy as mine does :D
18:57kettenismuch cleaner than mine ;)
18:58kettenisI have two arm boards, a breadboard, a breakoutboard and two usb-to-serial converters (one acting as a power supply) just to get serial out of the mini
19:01* jnread "state of my disk" and ended up a bit confused
19:01jnmy desk is of course worse
19:08marcanby the way, the hypervisor vuart thing works well enough for xnu now, if anyone wants to try
19:08marcanit's enabled by default now
19:08marcanspits it out the second CDC ACM interface
19:09jndoes the non-debug XNU kernel use the UART for log messages, too?
19:09bloommarcan: go the f*** to sleep
19:09marcanyes, if you ask it to, IIRC
19:09marcanbloom: I was taking a shower!
19:10bloomwoah, TMI, no need to get all defensive ;P
19:10marcanI already told bloom how to run the hv, so now she gets to teach everyone else; goodnight :p
19:19bloomc'mon where is this display hidden mickey bit
19:39ayydavay[m] has joined #asahi-dev
20:14bloom>>> write32(0x230850000 + (14*4), (7<<2))
20:14bloomIt's... Cyrillic?
20:15pipcet[m]right-to-left video? :-)
20:15bloompipcet[m]: See, if it were right-to-left the whole screen would flip
20:15bloomnot just one char at a time
20:15bloomin palce
20:15pipcet[m]oh, byte order then?
20:16bloom(change 7 to 0...7 for effects at different sizes)
20:16bloom"reverse every N pixels horizontally" or something
20:17bloompipcet[m]: I do appreciate that you had mini up to try that :-p
20:18jnOh, fun. i've had that kind of effect with linux on a PowerMac with an nvidia GPU
20:18bloomany idea why you'd want it? :-p
20:18j_eybloom: can you take a pic?
20:19jnto look like a kewl hakker :P
20:19bloomjn: Assuredly you want write32(0x230850000 + (14*4), 0x1d)
20:20bloomj_ey: I did my moving photos from phone is too many steps
20:20blooms/my/but/
20:20j_eybloom: hehe no worries
20:21pipcet[m]bloom: beats me. If you want to see something really weird there is an MMIO range writes to which will temporarily "highlight" (make whiter) bits of the screen...
20:22bloompipcet[m]: hehe
20:22bloomultimately i'm more looking for things like texture tiling
20:23pipcet[m](I know virtually nothing about modern graphics. I understand it's not just bitblitting anymore?)
20:24bloomDisplay controllers are still simple enough
20:24bloomIt's 3D that's really out there
20:24bloomThis is all just display
20:25Bastian[m]I know nothing of graphics/display stuff but the whitening of parts of the display might be related to https://prolost.com/blog/edr ? total guess though
20:27pipcet[m]oooh, that sounds likely
20:29klltkr has joined #asahi-dev
20:29pipcet[m]bloom: now what I'd like to know is why macos gives me a pink screen of death just before it reboots when I do horrible things to it.
20:31bloomBastian[m]: oh, interesting
20:31bloompipcet[m]: heh
20:36bloomfound the swizzle field
20:36bloom^register
20:36bloomthis tells me the Corellium code is overcomplicated
20:37pipcet[m]wait, I thought they just did a single register write?
20:37bloomThey setup the display controller to do fancy colourspace conversion stuff
20:37bloomwhich is very much not necessary if all you want is reordering channels
20:39pipcet[m]which version is that? The one I looked at only writes 0x5000 to 0x230850030
20:39bloomand then it writes a bunch of things to 0x230850178, 0x230850188, ...
20:41pipcet[m]you mean the code they dropped on january 20? :-)
20:42bloomoh, they did change that. ok.
20:42bloomThere you go, then
20:42pipcet[m]thought I was missing something in the code, sorry :-)
20:43VinDuv has quit [Quit: Leaving.]
20:43bloomregardless neither version of the code had the swizzle register, so still a win
20:50ayydavay[m] is now known as davay[m]
20:50bloomI see code in m1n1 referring to an rgb565 framebuffer mode?
20:55bloom>>> write32(0x230850000 + (12*4), 0x5230)
20:55bloomI believe that's more useful :-p
20:58pipcet[m]while True: write32(0x230850000 + 124, 0x5220); write32(0x230850000 + 124, 0x5230)
20:58pipcet[m]it's not immediate, there's intermediate states that shouldn't be there
20:59klltkr has quit [Ping timeout: 480 seconds]
21:00bloomso many of these wegde the display controller ugh
21:00bloomthank marcan for reboot(1)
21:03pipcet[m]bloom: I don't have many notes because I was looking for something else but 0x230046330/0x230046328 seemed very weird to me. They're counters increasing at different rates, if I'm reading this correctly, at least on this machine.
21:04pipcet[m](yeah, it's a large MMIO space...)
21:06bloomcounter indeed..
21:07bloomuse it as a timer? :-p
21:07bloomah ha! ok what's happening here
21:25bloom compatible-device-fallback = iPad8,6
21:25bloomlololol
21:33bps has quit [Ping timeout: 480 seconds]
21:53bps has joined #asahi-dev
22:33bloomI think this /might/ be related to cursor planes, or overlay planes
22:46bloomwell, I find the brightness field
22:47pipcet[m]what does it do?
22:47bloomchanges the brightness
22:47bloomunrelated to backlight, this is an ext monitor on a mini
22:47bloom>>> write32(0x230850000 + (2*4), 0x1ff)
22:48bloomif you want to play with it, it's an 11-bit signed integer (i.e. values above 0x3ff make it darker)
22:51pipcet[m]weird, I would have expected two registers, one each for white level and black level
22:55bloomok this is definitely some kind of overlay/cursor
22:56pipcet[m]compatible-device-fallback=c64,sprite?
23:03thunfisch has joined #asahi-dev
23:07bloomc'mon i think i'm close to cursors
23:08bloom>>> write32(0x230850000 + (23*4), read32(0x230850000 + (22*4)))
23:08bloom i think this will open up doors
23:15bloomDefinitely looking like there are 3 planes
23:32bloomWIP notes
…