#asahi-dev · 2023-03-04 01:46
alyssaYep#asahi-dev · 2023-03-04 01:45
chadmedso apple just emulate mesh shaders in metal?#asahi-dev · 2023-03-04 01:44
alyssaand with indirect draws, that # isn't known at draw call time#asahi-dev · 2023-03-04 01:44
alyssabut lowering those to compute (sanely) requires a temporary buffer sized according to the # of vertices drawn#asahi-dev · 2023-03-04 01:43
alyssastill no geom/tess/mesh support in hw#asahi-dev · 2023-03-04 01:43
alyssayepyep#asahi-dev · 2023-03-04 01:43
chadmedalyssa: i figured you meant "less hacks" and not "no hacks" :P#asahi-dev · 2023-03-04 01:43
alyssachadmed: by "primitives" i mean "a hack to let compute kernels dynamically allocate memory"#asahi-dev · 2023-03-04 01:22
chadmedits worth investigating while we have the luxury of not having any of this stuff upstreamed i think#asahi-dev · 2023-03-04 01:21
chadmedthats pretty big boon#asahi-dev · 2023-03-04 01:19
alyssawell. "properly"#asahi-dev · 2023-03-04 01:19
alyssawhich introduces the primitives needed to implement geometry/tessellation/mesh shaders properly#asahi-dev · 2023-03-04 01:18
alyssachadmed: down the line I think I'm going to want 13.x firmware for AGX #asahi-dev · 2023-03-04 00:27
chadmedsupposedly it still doesnt work on some tas2770 machines but i have no machines with that codec so i cant look into it#asahi-dev · 2023-03-04 00:27
chadmedit would be silly to regress s2idle because we dont have shared gpio (yet) and even sillier to block speaker support on something so big now that most of the other pieces are in place#asahi-dev · 2023-03-04 00:26
chadmedon a different topic now that we are getting closer to speaker release it's probably a good idea to merge the codec suspend workaround patches, even if just for tas2764#asahi-dev · 2023-03-04 00:24
chadmedjannau: re dcp firmware versioning i think it makes sense to only support 13.2 if it makes your life significantly easier. it's probably also a good releng test case for adding firmware bundle upgrade support to the installer#asahi-dev · 2023-03-03 21:44
louisadamianjannau: ok thank you#asahi-dev · 2023-03-03 21:43
jannauthose has all asahi specific options and a ton of options one would expect from a distro kernel. for development you want to disable tons of options for faster builds and depending on your workflow switch to builtin drivers instead of modules#asahi-dev · 2023-03-03 21:40
jannaulouisadamian: best reference https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/config and config.edge for additional options#asahi-dev · 2023-03-03 21:08
louisadamianIs there a base config that people can use for building Linux? It looks like there is supposed to be a link to one in the wiki but it's not working.#asahi-dev · 2023-03-03 19:46
jannaulooks like might be enough to do the same thing m1n1 does#asahi-dev · 2023-03-03 19:44
jannaulet's see if anything I tried previously works#asahi-dev · 2023-03-03 19:43
jannaukettenis: thanks, now it's at least clearly broken. #asahi-dev · 2023-03-03 18:28
kettenisjannau: try adding .flags = DM_FLAG_OS_PREPARE to the U_BOOT_DRIVER struct#asahi-dev · 2023-03-03 17:36
jannaua 'BUG()' in there has no effect#asahi-dev · 2023-03-03 17:35
jannaumy testing in u-boot might have been a little flawed. I'm not convinced that apple_pcie_remove() is called at all#asahi-dev · 2023-03-03 16:12
sventhough I dunno which part of that is specific to the usb4 controller#asahi-dev · 2023-03-03 16:08
svenhttps://github.com/AsahiLinux/linux/blob/atcphy-20230219/drivers/pci/controller/pcie-apple.c#L541#asahi-dev · 2023-03-03 16:06
svenjust write 0 to that ltssm reg and then either sleep for a bit or poll a bunch of ltssm status regs #asahi-dev · 2023-03-03 15:29
kettenisi wonder if we need to disable the LTSSM somehow in u-boot before handover#asahi-dev · 2023-03-03 14:53
jannauno, 'apple,always-on' is not checked in u-boot. the reset was in \u-boot's pcie_remove function#asahi-dev · 2023-03-03 14:51
sveniirc the power domain has to be on for the reset to work #asahi-dev · 2023-03-03 14:50
jannauprobably just doesn't do anything if the power-controller has 'apple,always-on;'. I forgot to check that#asahi-dev · 2023-03-03 14:45
svenhuh, for the usb4 controller it actually resets everything #asahi-dev · 2023-03-03 14:44
jannauI tried that with ps_apcie_gp_sys and ps_apcie_gp and it seemed to have no effect. existing pcie devices still worked and the usb controller didn't come back up#asahi-dev · 2023-03-03 14:41
sven*but#asahi-dev · 2023-03-03 14:41
sventhere’s always a full pmgr reset as the last resort bht I’m fairly sure that does require tunables again #asahi-dev · 2023-03-03 14:13
jannauI suspect it might have nothing to do with the pcie controller though as the thunderbolt pcie controllers all have distinct numbers#asahi-dev · 2023-03-03 14:12
jannauhas anyone looked into what function-pcie_port_control does? it refers back to apcie and has for each port an u8 (non-aligned). #asahi-dev · 2023-03-03 12:49
jannausupposedly not, otherwise linux should see the device. the link status is just PORT_LINKSTS_UP and PORT_INT_LINK_UP irq#asahi-dev · 2023-03-03 12:37
kettenislinux#asahi-dev · 2023-03-03 12:35
jannauwhere/when? in u-boot or linux? PORT_LINKSTS_UP isn't set when linux sets the ports up#asahi-dev · 2023-03-03 12:26
kettenisjannau: so the link is reported as up? can you access config space registers?#asahi-dev · 2023-03-03 11:45
jannauclearing PERST_OFF, APPCLK_EN and toggling pwren-gpios resets the link speed but doesn't bring asmedia usb hci back to life#asahi-dev · 2023-03-02 15:29
jannaustill no luck with resetting the ethernet pcie port if u-boot brings it up but skipping the setup in linux when the link is up works#asahi-dev · 2023-03-02 15:25
jannauusing PCIe 2.0 for the sdcard reader works#asahi-dev · 2023-03-02 15:18
jannauthere are uhs-2 cards with a claimed read speed of 300 MB/s which would exceed pcie 1.0#asahi-dev · 2023-03-02 14:56
ketteniss/supports/claims to support/#asahi-dev · 2023-03-02 14:55
kettenisGL9755 supports SD 4.0 UHS-II