#
✕ nick:kettenis
#asahi-dev · 2022-03-12 14:13
kettenisj`ey: https://github.com/AsahiLinux/u-boot/tree/lmb
#asahi-dev · 2022-03-12 14:05
ketteniswe know we have at least the best part of 8G on these machines so as long as m1n1 doesn't carve it up in silly ways using 1G chunks for those should always fit
#asahi-dev · 2022-03-12 14:01
kettenisbut maybe 1G for those is a reasonable number
#asahi-dev · 2022-03-12 14:01
kettenisjust need to pick some reasonable sizes for the generic load area (loadaddr) and the ramdisk area (ramdisk_addr_r)
#asahi-dev · 2022-03-12 13:55
kettenismy idea is to make it use the lmb stuff that's also used to do the allocation when you actually load stuff
#asahi-dev · 2022-03-12 13:39
kettenisis there any reasoon you put scriptaddre and pxefile_addr_r near the top of the address space?
#asahi-dev · 2022-03-12 13:38
kettenisjannau: I'm looking at fixing the u-boot dynamic addresses
#asahi-dev · 2022-03-12 11:51
kettenisgood enough for building the installer I'd say
#asahi-dev · 2022-03-12 10:48
kettenisbut I do expect some pushback on such a change
#asahi-dev · 2022-03-12 10:47
kettenisbut changing that to pick the first but override it if we find the one designated by /chosen shouldn't be too hard
#asahi-dev · 2022-03-12 10:47
ketteniscurrently that picks the first one
#asahi-dev · 2022-03-12 10:46
kettenisthe code in u-boot that picks "the" ESP lives in lib/efi_loader/efi_disk.c:efi_disk_add_dev()
#asahi-dev · 2022-03-12 10:39
kettenismaking that pick "the" ESP will require some actual code to recognize the /chosen-specified one
#asahi-dev · 2022-03-12 10:38
kettenisthen there are the EFI variables, which are enabled and if you set one using bottime services, it will put them in a file on the ESP
#asahi-dev · 2022-03-12 10:37
kettenisit is just "a" partition with a filesystem that u-boot understabds
#asahi-dev · 2022-03-12 10:37
kettenissince this is code that doesn't know anything about EFI
#asahi-dev · 2022-03-12 10:36
kettenisalthough in this context ESP is probably the wrong term
#asahi-dev · 2022-03-12 10:36
ketteniscurrently I don't enable persistent u-boot environment support, but when we do that the only really viable option is to store the u-boot environment in a file on "the" ESP
#asahi-dev · 2022-03-12 10:34
kettenisu-boot is really device-oriented; so distroboot iterates over devices trying to boot from them
#asahi-dev · 2022-03-12 10:33
kettenisanyway, back to u-boot, there are several problems here:
#asahi-dev · 2022-03-12 10:32
kettenisadding code for AIC2 to carve out the event register with bus_space_subregion(9) isn't a huge burden, so that's what I went with
#asahi-dev · 2022-03-12 10:31
kettenismarcan: so basically what I did is that for AIC2 I use bus_space_map(9) to map the event register (since it is now separate) and for AIC1 I use bus_space_subregion(9) to carve out the event register
#asahi-dev · 2022-03-12 09:54
kettenisa few more folks with m1
#asahi-dev · 2022-03-12 09:54
kettenisI think there is only one m1 pro/max user besides me ;)
#asahi-dev · 2022-03-12 09:53
kettenismarcan: fixing the aic2 issue in the OpenBSD driver in a way that works with the old DT comes kinda natural, so don't worry about tweaking the DT
#asahi-dev · 2022-03-12 09:51
kettenisthe idea is that once you've installed on nvme you don't want it accidentally boot from usb just because someone plugged in a usb stick of some sorts
#asahi-dev · 2022-03-11 19:53
kettenisnow also has the nvme shutdown patch in it
#asahi-dev · 2022-03-11 19:53
kettenispushed a DT resync to the u-boot repo
#asahi-dev · 2022-03-11 19:52
kettenisok, found a relatively clean way to support both the old and the new DT
#asahi-dev · 2022-03-11 18:28
kettenislet's see what I need to change in my driver to make it work
#asahi-dev · 2022-03-11 18:27
kettenisright, that's what I did
#asahi-dev · 2022-03-11 18:18
kettenisI can work around this i the DT though by extending the first register set a bit
#asahi-dev · 2022-03-11 18:17
kettenisyeah, but the timing sucks a bit :(
#asahi-dev · 2022-03-11 18:13
kettenishmm, the aic2 DT changes break things for me
#asahi-dev · 2022-03-11 17:52
kettenismarcan: thanks cherry-pick it is then
#asahi-dev · 2022-03-11 17:47
kettenisshould I just cherry-pick the one commit that matters from that branch?
#asahi-dev · 2022-03-11 17:47
kettenisany advice on how to resolve this?
#asahi-dev · 2022-03-11 17:44
kettenisbut those conflicts are in files that aren't relevant
#asahi-dev · 2022-03-11 17:44
kettenishmm, because of some rebasing and force pushes on my side marcan's u-boot merge request has some conflicts
#asahi-dev · 2022-03-11 12:07
ketteniswell, if it changes, expect some serious pushback from my end
#asahi-dev · 2022-03-11 12:06
kettenispersonally I would have liked to see the ans2/nvme bindings and dt changes upstreamed even if there are still some loose ends in the Linux driver
#asahi-dev · 2022-03-11 12:05
kettenislimiting the gain is probably the best we can do without embarking onto an interesting research project ;)
#asahi-dev · 2022-03-11 12:04
kettenispovik: that makes absolutely no sense
#asahi-dev · 2022-03-11 11:57
kettenisyes, that is my understanding as well
#asahi-dev · 2022-03-11 11:52
kettenisthe tas2770 chip has "Real-Time Diagnostics Using I/V Speaker Sense"
#asahi-dev · 2022-03-11 11:44
kettenisbut I guess coming up with an agreed upon representation of the filters will be a challenge
#asahi-dev · 2022-03-11 11:44
kettenisideally the filters would be described in the DT somehow
#asahi-dev · 2022-03-11 10:13
ketteniswe can always reconsider of course, but U-Boot policy is to take device trees from the Linux kernel as much as possible
#asahi-dev · 2022-03-10 14:56
kettenissold
#asahi-dev · 2022-03-10 14:54
kettenisglad to learn I'm not the only one who didn't like the armada approach

plus ›