#asahi-dev · 2023-09-07 15:00
marcanthere is a register#asahi-dev · 2023-09-07 15:00
eilnthe hard-coded values are per-sensor, which are unrelated to the board type (e.g. m1 pro & m2 air)#asahi-dev · 2023-09-07 14:59
eilnmarcan: following ANE I think "revision" means board type. it makes sense at that point in probe too. it's not in adt but there might be a register. #asahi-dev · 2023-09-07 14:56
marcanstill might though#asahi-dev · 2023-09-07 14:54
marcanI'm starting to doubt whether it actually makes sense to alloc in m1n1, since you have a pile of per-hw hardcoded values in the kernel anyway#asahi-dev · 2023-09-07 14:51
marcaneiln: so I think the heap top thing is per ISP hardware rev, not per firmware#asahi-dev · 2023-09-07 13:37
eilnleft another comment which might be useful#asahi-dev · 2023-09-07 13:29
marcan_jannau__: this is allocated by macOS#asahi-dev · 2023-09-07 13:28
_jannau__have you checked if i-boot creates a carveout? check carveout-memory-map in the adt#asahi-dev · 2023-09-07 13:28
marcan(I like putting stupid stuff in m1n1)#asahi-dev · 2023-09-07 13:28
marcanthen we can also put the silly hardcoded table in m1n1#asahi-dev · 2023-09-07 13:28
marcanworking on it#asahi-dev · 2023-09-07 13:27
marcanI'm saying we just alloc the heap in m1n1 and treat it like another region, so it just works#asahi-dev · 2023-09-07 13:27
marcanlinux does the mapping, m1n1 just tells it via reserved-regions#asahi-dev · 2023-09-07 13:27
marcanoh on power off?#asahi-dev · 2023-09-07 13:26
eilnmarcan: I tried and failed to do both the mapping and the heap in m1n1 some time ago. it really should be a locked dart, except it's not, so the mapping didn't persist I think#asahi-dev · 2023-09-07 13:18
eilnalso left some comments in the draft pr#asahi-dev · 2023-09-07 13:17
marcanI'm trying out this idea and cleaning up the m1n1 side a bit#asahi-dev · 2023-09-07 13:17
marcant8103 m1 air, should be the same as you#asahi-dev · 2023-09-07 13:17
eilnmarcan: woohoo! device?#asahi-dev · 2023-09-07 13:11
marcaneiln: I have this idea that we just carve out the heap in m1n1 and drop it in as a reserved region and let the linux side be oblivious to it#asahi-dev · 2023-09-07 12:24
marcanargs.unk_size = 0x1800000; that sure looks like the heap size thing#asahi-dev · 2023-09-07 12:18
marcannow let me see if I can clean up the DART stuff a bit#asahi-dev · 2023-09-07 12:18
marcanwith that removed it works \o/#asahi-dev · 2023-09-07 12:16
marcanor was this broken in the asahi branch still? (I rebased on asahi-wip, please always use that as a base; asahi is more so random packagers don't package random dev kernels, but I keep forgetting to update asahi...)#asahi-dev · 2023-09-07 12:14
marcaneiln: what's up with apple_isp_resv_region? that stuff is already handled in common code, no? it actually fails for me because of_iommu already took care of it and the mappings end up duplicated...#asahi-dev · 2023-09-07 11:49
marcangoing to poke around on an M1 air and see if I can clean up a bit#asahi-dev · 2023-09-07 11:13
eilnmarcan: yeah, that part's really shaky and it's pretty relevant rn.#asahi-dev · 2023-09-07 11:07
marcaneiln: left some comments on the m1n1 PR, but I'm tempted to hack on this a bit myself if you don't mind#asahi-dev · 2023-09-07 10:11
eilnah-: can you try setting ctrr_size=0xf00000 under dt_set_isp_fwdata() in m1n1 src/kboot.c#asahi-dev · 2023-09-07 10:11
eilnI just remembered the firmware is per-device. god.#asahi-dev · 2023-09-07 10:11
eilnah-: sorry for the late reply, $dayjob#asahi-dev · 2023-09-06 06:58
marcanyeah, it looks like all the overrides in the Apple Silicon range are completely boring#asahi-dev · 2023-09-06 06:56
marcanso I guess we don't need to worry about magic color profiles then#asahi-dev · 2023-09-06 06:55
marcanI think it's just supposed to be Display P3 and DCP/DISP do the actual calibration behind the scenes#asahi-dev · 2023-09-06 06:55
marcanand then I realized switching between the custom color profile and Display P3 in system settings does nothing...#asahi-dev · 2023-09-06 06:55
marcanhuh, I spent way too much time trying to figure out how to map from machine to the display profile override plists... only to find at least some/most of the AS ones are basically empty#asahi-dev · 2023-09-06 00:58
ah-hmm, the bootargs look fishy, too many 0s in there#asahi-dev · 2023-09-06 00:12
ah-looks like it dies after an assert: [ 18.168618] apple-isp 384000000.isp: [ipc_tm_handle] ISPASC: ASSERT: ./h10isp/common/misc/H13/CSystemConfiguratorConnectivityH13Jade.cpp, 472: 0#asahi-dev · 2023-09-06 00:12
ah-ooh, it gets further than expected. with debug logging enabled in the driver it even gets firmware logs: https://gist.github.com/ah-/34d440894e30980f4b110d0e758b9e0f#asahi-dev · 2023-09-05 22:06
ah-it crashes soon after, but looks like t6000 can now somewhat init the isp and talk to it a bit#asahi-dev · 2023-09-05 22:05
ah-[ 4.838547] apple-isp 384000000.isp: [isp_firmware_boot_stage3] firmware booted!#asahi-dev · 2023-09-05 22:05
ah-haha! https://gist.github.com/ah-/25eb6fba1000322de8e1675226487162 \o/#asahi-dev · 2023-09-05 15:27
marcanyeah, I should fix that. not sure how it got left out.#asahi-dev · 2023-09-05 12:32
j`eykettenis: yup, thats the one#asahi-dev · 2023-09-05 11:32
kettenisj'ey: is that what ahdeb[m] was trying to point out? I guess it is in marcan's usb patches then#asahi-dev · 2023-09-05 09:41
j`eytalking about uboot, there was a report about a missing NULL check, in the logs about 12h back#asahi-dev · 2023-09-05 09:25
kettenisI think there is still some time to sneak this into 2023.10 and even if it misses that it isn't a big issue#asahi-dev · 2023-09-05 09:24
kettenisno worries#asahi-dev · 2023-09-05 09:21
jannaukettenis: will do, wasn't in the right state of mind yesterday evening to deal with git + email