#
#asahi-dev · 2023-02-19 12:54
svenpovik: w.r.t. those SIO bindings, do I understand it correctly that the memory-region things have to be mapped inside the SIO DART, that m1n1 will prepare e.g. sio_auxdata2 and then put the hardcoded IOVA pointing to sio_auxdata2 into apple,sio-firmware-params?
#asahi-dev · 2023-02-19 11:52
jannauthe PMU regression fix was merged yesterday for 6.2
#asahi-dev · 2023-02-19 11:09
chadmedi thought there was something off about 1024 * 1024 * 1024 not adding up to 128
#asahi-dev · 2023-02-19 11:08
chadmedyeah, all the comments in proxyutils references 128mb as the default too though which is where i got confused
#asahi-dev · 2023-02-19 11:07
povikthat's the 128mb i was referring to earlier ;)
#asahi-dev · 2023-02-19 11:07
chadmedthen i did a grep for 128 on a whim :P
#asahi-dev · 2023-02-19 11:06
chadmedyeah thats why i was stumped as to why it wasnt working
#asahi-dev · 2023-02-19 11:06
jannauProxyUtils default heap size is 1GB
#asahi-dev · 2023-02-19 11:06
chadmednot hv/__init__.py
#asahi-dev · 2023-02-19 11:06
chadmedsorry, in proxyutils.py
#asahi-dev · 2023-02-19 11:05
poviki don't see it
#asahi-dev · 2023-02-19 11:04
povikchadmed: what do you mean by the default heap size in hv/__init__?
#asahi-dev · 2023-02-19 11:03
jannauyes, compressed_writemem should fail (from quick code inspection) if it can't allocate enough heap
#asahi-dev · 2023-02-19 11:02
povikif you find the root cause it would be good to fix
#asahi-dev · 2023-02-19 11:02
povikstill it's a bug it silently overrides/crops the data instead of erroring out
#asahi-dev · 2023-02-19 10:42
chadmedargh found it, run_guest.py overrides the default heap size in m1n1/hv/__init__.py
#asahi-dev · 2023-02-19 10:01
chadmednot quite, its most of the gentoo installer with firmware and some other useless stuff ripped out
#asahi-dev · 2023-02-19 09:54
svendid you put your entire rootfs into the initrd? :D
#asahi-dev · 2023-02-19 09:53
jannauhave you tried compressing the same initrd with xz?
#asahi-dev · 2023-02-19 09:52
chadmedi bumped that to 2 << 30 with no success
#asahi-dev · 2023-02-19 09:51
jannauin payload.c:decompress_gz()
#asahi-dev · 2023-02-19 09:51
jannau"
#asahi-dev · 2023-02-19 09:51
jannauthat's close: "unsigned int source_len = size, dest_len = 1 << 30; // 1 GiB should be enough hopefully
#asahi-dev · 2023-02-19 09:50
jannauyou could try https://github.com/AsahiLinux/m1n1/pull/268 which defers uncompressing to linux
#asahi-dev · 2023-02-19 09:50
chadmed986mb
#asahi-dev · 2023-02-19 09:50
jannauhow large is the initrd uncompressed?
#asahi-dev · 2023-02-19 09:44
chadmedit returns that for virtually everything that goes pear shaped lmfao
#asahi-dev · 2023-02-19 09:44
povikyeah
#asahi-dev · 2023-02-19 09:43
jannauTINF_DATA_ERROR sounds like the error one would expect for partial or overwritten data
#asahi-dev · 2023-02-19 09:42
povikunless there's some trailer it's checking for
#asahi-dev · 2023-02-19 09:42
poviksanity check probably wouldn't see that the data past a point are missing
#asahi-dev · 2023-02-19 08:54
chadmedi bumped up the heap to a few gigs just in case and it didnt help
#asahi-dev · 2023-02-19 08:53
chadmedit errors out somewhere in the block-level decompress (didnt dig any deeper than that)
#asahi-dev · 2023-02-19 08:53
chadmednot sure the hv is cropping off the tail of the file since it passes all of tinf's length sanity checks
#asahi-dev · 2023-02-19 07:54
povikand compressed_writemem uses the heap internally
#asahi-dev · 2023-02-19 07:54
poviki am surprised this doesn't error out on that large a payload since run_guest.py allocated 128mb for the heap
#asahi-dev · 2023-02-19 07:53
povikhttps://github.com/AsahiLinux/m1n1/blob/v1.2.4/proxyclient/m1n1/hv/__init__.py#L1658
#asahi-dev · 2023-02-19 07:51
povikisn't it simply a case of the hypervisor cropping the payload or otherwise damaging it past a certain size limit?
#asahi-dev · 2023-02-19 02:23
chadmedseems to be something up with the file at the block level... thats very strange
#asahi-dev · 2023-02-19 02:19
ah-i think the nick was just "t"
#asahi-dev · 2023-02-19 02:18
ah-amarioguy: a while ago someone here was asking about the camera driver
#asahi-dev · 2023-02-19 01:41
chadmedwhich is odd because it decompresses fine when passing to linux.py, just not run_guest.py
#asahi-dev · 2023-02-19 01:12
chadmedi get TINF_DATA_ERROR with a 330mb initrd, but making a smaller one with the same method works fine so i assume its a size thing
#asahi-dev · 2023-02-19 01:05
chadmeddoes m1n1 have a size limit for gzipped initrds?
#asahi-dev · 2023-02-18 17:47
amarioguyalso some irl stuff too
#asahi-dev · 2023-02-18 17:46
amarioguyoh hey been a while since i was here, lot had happened in the interim... (including my motherboard's nvme slot going bad which is... '''fun''')
#asahi-dev · 2023-02-18 17:36
svenso, uh, it looks acio reset literally is “power down this power domain and then power it up again while atcphy is in reset”. normal pd reset doesn’t seem to work :/
#asahi-dev · 2023-02-18 15:40
svenurgh.. so I can restart acio now but that also requires disabling its dart :(
#asahi-dev · 2023-02-18 13:31
sven*disabled
#asahi-dev · 2023-02-18 13:31
svenand I think those survive a disable power domain

plus ›