#
…

2022-08-30

00:03cuolin^ has quit [Ping timeout: 480 seconds]
00:13dmmcf has joined #asahi-dev
00:48e1eph4nt has quit [Ping timeout: 480 seconds]
01:19e1eph4nt has joined #asahi-dev
01:19riker77_ has joined #asahi-dev
01:23riker77 has quit [Ping timeout: 480 seconds]
01:23riker77_ is now known as riker77
01:24cuolin^ has joined #asahi-dev
02:27e1eph4nt has quit [Ping timeout: 480 seconds]
02:43nicolas17 has quit [Remote host closed the connection]
02:49derzahl has quit [Remote host closed the connection]
02:50e1eph4nt has joined #asahi-dev
03:00skipwich_ has quit []
03:01skipwich has joined #asahi-dev
03:07pyropeter3 has joined #asahi-dev
03:09pyropeter2 has quit [Ping timeout: 480 seconds]
04:04e1eph4nt has quit [Ping timeout: 480 seconds]
04:05marcanI use moduleless kernels for my servers (for security/simplicity). It's a lot more practical for a sever where the hardware never changes and there is no hotplugging of random devices.
04:26e1eph4nt has joined #asahi-dev
04:34e1eph4nt has quit [Ping timeout: 480 seconds]
04:41yuyichao_ has quit [Ping timeout: 480 seconds]
04:43e1eph4nt has joined #asahi-dev
04:52pyropeter3 has quit [Quit: WeeChat 3.1]
05:07yuyichao_ has joined #asahi-dev
05:09mxw39 has joined #asahi-dev
05:16mini0n has quit [Read error: Connection reset by peer]
05:34cuolin^ has quit [Remote host closed the connection]
05:58mxw39 has quit [Quit: Konversation terminated!]
06:00DmitrySharshakov[m]Since many usecases include Mac mini or Mac Studio as a server/build machine, this option should be considered a useful one
06:01DmitrySharshakov[m]So CONFIG_APPLE_KTRR could be added which depends on !CONFIG_MODULES
06:03DmitrySharshakov[m]And maybe even ship such sealed kernels, idk. I think many people would be fine with internal hardware + standard USB classes support for some super extended security
06:05e1eph4nt has quit [Ping timeout: 480 seconds]
06:08marcanyes, that is a viable thing
06:08marcanbut again we're talking about very niche spinoffs that don't really make sense to think about now :)
06:08marcanlet's get the hardware supported first and worry about special-purpose kernels and niche security setups later
06:09marcanright now, I think our priority after the hardware support is decent should be to support reasonable secure boot (i.e. chaining into existing secure boot paradigms), SEP-assisted FDE/unlock, and also Fedora Silverblue as a proof of concept that Linux can also do the macOS SSV thing
06:10DmitrySharshakov[m]> <@_oftc_marcan:matrix.org> let's get the hardware supported first and worry about special-purpose kernels and niche security setups later
06:11DmitrySharshakov[m]What's the state of multiarch in Fedora? I haven't investigated it deeply, but looks like you cannot have x86_64 libs on aarch64 system, so emulation will require a separate dir for libs
06:12Dcow[m]I think it's a best to discuss in there
06:14e1eph4nt has joined #asahi-dev
06:17mpsI doubt that any distro will build special purpose kernels
06:17DmitrySharshakov[m]Yes, but a config option could be added for people who have special usecases
06:18DmitrySharshakov[m]E.g. an extra hardened home server. User could build without module support but with KTRR on their own
06:19mpswell, I maintained for some time special kernels for some arm SoCs on alpine linux but stopped few months ago, always someone ask to enable something and someone to disable something
06:20mpsthough I still build them for my machines
06:21DmitrySharshakov[m]Shipping those is a no-way of course, that'll get crazy as people will try to convince you that all of them use some weird joystick and you should ship the driver builtin xD
06:21DmitrySharshakov[m]So leave that choice to pro users
06:22Dcow[m]that's sound like genkernel+hardened tool
06:24mpslong ago I used LIDS patches to kernel for servers which allowed load modules on boot and lock it in that state, so later modules can't be loaded
06:25mpslong ago == 20 years
06:25mpsnow there is lockdown option but I didn't tested it even
06:43chadmedhas anyone had a look at AVD since R last did? ive been reading the exynos codec v4l2 driver and from what i remember of her initial RE efforts it seems similar to that
06:44skipwich has quit [Ping timeout: 480 seconds]
07:01duban has quit [Quit: I'm out]
07:02duban has joined #asahi-dev
07:14skipwich has joined #asahi-dev
07:21e1eph4nt has quit [Ping timeout: 480 seconds]
07:23marcanchadmed: don't think anyone has looked at it, though some exynos legacy would not be unexpected...
07:29Race has joined #asahi-dev
07:30e1eph4nt has joined #asahi-dev
07:38e1eph4nt has quit [Ping timeout: 480 seconds]
07:47e1eph4nt has joined #asahi-dev
07:54dottedmagDcow[m]: Is Fedora Asahi channel bridged to IRC?
07:55svenI think it’s matrix only
07:55e1eph4nt has quit [Ping timeout: 480 seconds]
07:56dottedmag(obligatory XKCD IRC reference)
07:58WindowPain_ has quit [Remote host closed the connection]
08:04e1eph4nt has joined #asahi-dev
08:09WindowPain has joined #asahi-dev
08:21jakebot602 has joined #asahi-dev
08:26jakebot60 has quit [Ping timeout: 480 seconds]
08:26jakebot602 is now known as jakebot60
08:28benpoulson has joined #asahi-dev
08:31benpoulson has quit [Remote host closed the connection]
08:46Stnby[m] has joined #asahi-dev
08:47_jannau_povik: j493 adt has 'amp-dcblocker-config = 16641' in the speaker node if you can make any sense of it
08:47uniq has joined #asahi-dev
08:48DmitrySharshakov[m]Do other machines have adt props for amp safety settings?
08:48DmitrySharshakov[m]btw which speaker has that prop, where's the whole atd dump?
08:49DmitrySharshakov[m]I guess there should be 2 speakers with this config and 4 with another or the other way around
08:51DmitrySharshakov[m]Probably that's a custom bitmask
08:51_jannau_please look at the ADT. there is a general speaker node holding references to all speakers. the macbook pro 13" has just 4 speakers
08:52DmitrySharshakov[m]Where can I look?
08:53DmitrySharshakov[m]upd it appears that it enables 2 Hz filter on both playback and rec, as well as enabling either IRQZ pullup or edge rate control
08:54DmitrySharshakov[m](derived info from the datasheet, depends on how they order MSB and LSB into registers
08:54leitao has joined #asahi-dev
08:55povikwe have a whole tracing infrastructure, we know what macos configures
08:55povikthis is a matter of identifying it with adt, possibly simplifying the work
08:55poviksince we can look up something in adt instead of obtaining a trace for every model
08:56DmitrySharshakov[m]Appears that it's edge rate control (enabled by default after reset)
08:56DmitrySharshakov[m]Do other models have these node?
08:56povikwhat you mean, the 16441?
08:56povikall models will have the nodes
08:56DmitrySharshakov[m]Where can ADTs be found online?
08:56DmitrySharshakov[m]povik: yea, decoded it with the datasheet table
08:56povikehm, marcan has some of them uploaded
08:57povikyou can search the irc logs
08:57DmitrySharshakov[m]Probably on private gists?
08:59leitao has quit [Read error: Connection reset by peer]
09:00leitao has joined #asahi-dev
09:06povik_jannau_: yeah, i can't make sense of it
09:06povikfrom the trace it sets 0x1 (the default) to the register on all speakers
09:06povikso far i haven't seen macos write anything other there
09:06DmitrySharshakov[m]Yes, ERC is 1 after chip reset by default, so it doesn't change
09:07poviksurprising they have a prop for it on j493, i don't see one on j314, where i would reckon the 'dc blocker' is potentially more interesting to set
09:08DmitrySharshakov[m]they might've invented the idea of saving this in the DT after j314 got released
09:08DmitrySharshakov[m]probably earlier they just set the value hardcoded in the driver
09:09c10l has quit [Quit: Bye o/]
09:09c10l has joined #asahi-dev
09:15e1eph4nt has quit [Ping timeout: 480 seconds]
09:25e1eph4nt has joined #asahi-dev
09:26leitao has quit [Ping timeout: 480 seconds]
09:38svenmarcan/jannau: any reason the iboot protocol wouldn’t work for dcpext?
09:41Swiftloke has quit [Remote host closed the connection]
09:42Swiftloke has joined #asahi-dev
09:44sven has quit [Quit: ZNC 1.8.2 - https://znc.in]
09:44sven has joined #asahi-dev
10:11jakebot60 has quit [Quit: The Lounge - https://thelounge.chat]
10:17jakebot602 has joined #asahi-dev
10:18marcansven: not really, other than maybe it expects some init we don't do, or it's outright disabled for dcpext?
10:18marcanhow does it fail?
10:19svenDoesn’t get past the “waiting for hpd” thing, I’m not convinced I have the correct dpphy bringup though
10:21svenmaybe I should just update this Mac mini and try the real protocol though just to be sure
10:24uniq has quit [Quit: Textual IRC Client: www.textualapp.com]
10:26marcanoh then yeah, no hpd just means nothing connected to the output
10:26marcanso that's probably your fault :>
10:27marcanthe thing is, there are DCP EPIC protocols for the DP stuff that may be required for dcpext too
10:27marcansince the firmware knows about atcphy/etc
10:27marcanso maybe there are commands to send there (those aren't part of the main dcpep thing)
10:28marcansee dcpav.py, but there's more missing
10:34e1eph4nt has quit [Ping timeout: 480 seconds]
10:34marcanfor DP stuff there's an object with stuff like SetLinkRate/SetLaneCount/SetDriveSettings
10:35marcanand another one with stuff like RetrainLink/GetSinkCount
10:35marcanand another DP-related one has SetPower too
10:36marcanand there is an AppleDCPDPTXRemotePort that has DisplayRequest/DisplayRelease/ConnectTo/ValidateConnection
10:36marcanI wonder if that's the one you need
10:38marcanconnectTo references this string: "core%u -> %u,%u (ATC%u::%s) supportsHPD=%u: ret=0x%08x"
10:38marcanso I think the iboot thing is a red herring, you should keep using that (since it's easier) and look into the other EPIC endpoints
10:40marcanit's possible the crossbar is a literal N:M of wiring? and so the dcp side has to choose the route to a given ATC, and the ATC has to choose the route from that DCP, on both ends
10:42svenyeah, that would make sense
10:43e1eph4nt has joined #asahi-dev
10:52e1eph4nt has quit [Ping timeout: 480 seconds]
11:00e1eph4nt has joined #asahi-dev
11:04dmmcf has quit [Quit: dmmcf]
11:09e1eph4nt has quit [Ping timeout: 480 seconds]
11:18e1eph4nt has joined #asahi-dev
11:21yuyichao has joined #asahi-dev
11:22yuyichao_ has quit [Ping timeout: 480 seconds]
11:26nafod has quit [Remote host closed the connection]
11:26nafod has joined #asahi-dev
11:35svenyeah, it's clearly talking to AppleDCPDPTXRemotePort
11:36svenand here I thought I could just ignore whatever is going with DCP :D
11:50marcansven: let me get you some code
11:53marcanit doesn't seem to actually do anything with RemotePort
11:53marcanbut it does initialize it, maybe that's enough
11:53svenI see a lot of <Ch 0 Type NOTIFY Ver 2 Tag 625 here for that port
11:54svenwhatever that is
11:54marcanso a DCPDPDevice is apparently supposed to magically appear
11:54marcanbut the only commands before that are GetLocation and GetUnit
11:54marcanso maybe it just wants that endpoint initialized
11:54marcanhooking it up now, I need some refactoring because indeed, there are 2 instances of everything here
11:55svensounds good, I do see a few commands at the beginning I think.
11:55svenbut I don't quite understand what's going on yet
11:55* svenhas managed to successfully ignore anything DCP so far
11:55sventhere's e.g. some command followed by [cpu5] [DCPTracer@/arm-io/dcpext] [syslog] * [AppleDCPDPTX.cpp:361][AFK]powering nub 0x8553a8
12:01marcanyes, but those are just those requests
12:01marcanso I get the feeling this is just the endpoint coming up
12:01marcanand now I wonder, because ConnectTo is not used
12:01marcanmaybe DCP just has its *own* dpmux functionality?
12:01marcanand macos just doesn't use it?
12:01marcan(maybe we should!)
12:01svenhah :D
12:02svenwhich MMIO can dcp access?
12:02marcanit does have a bunch built in... need to check the DART
12:02svenmaybe it'll just try to write to the same crossbar regs
12:02marcanyup, entirely possible
12:02sventhe xnu function which sets up the crossbar is called connect and/or bringConnectionUp iirc
12:05svendoesn't seem to contain the xbar
12:05_jannau_I don't rememeber to what they map, one is afaik pmgr
12:21DmitrySharshakov[m]povik: Are the I2C buses amps sit on left exposed to userspace via `/dev/i2c-*`? I guess you might have to probe `i2c-dev` to find that out.
12:22DmitrySharshakov[m]Those should be hidden to ensure nobody like lm-sensors detection accidentally taps them
12:22DmitrySharshakov[m]Probably only I2C buses which should remain visible are DCP ones (when supported)
12:23poviknot sure
12:24DmitrySharshakov[m]Idk if i2c-dev can be made to avoid some buses in its current condition
12:25_jannau_we don't have direct access to DDC/CI
12:26DmitrySharshakov[m]Is there any way to use ddc/ci via firmware?
12:26e1eph4nt has quit [Ping timeout: 480 seconds]
12:26DmitrySharshakov[m]Does macOS support DDC/CI on Apple Silicon machines?
12:35e1eph4nt has joined #asahi-dev
12:35AlbertoBasaglia[m] is now known as albertobasaglia[m]
12:39marcansven: try experiments/dcpext_iboot.py
12:40marcanit doesn't do anything for me, but maybe it will for you when you actually set up the xbar
12:42marcanalso fetch again, I had a HV regression that wasn't committed yet
13:05svenNameError: name 'DEFAULT_ARCH' is not defined <-- I think you forgot to push some changes
13:05svenand/or this breaks on macos only
13:06j`eyyeah povik hit that too
13:07j`eysven: (dumb) question, what does DPIN0 and DPIN1 actually mean?
13:08svenprobably display port input 0/1 for the usb4 tunelling mess
13:08j`eybut isn't display port.. output?
13:08sveninput from ATC's point of view
13:11svenlooks like i'm still missing some initialization stuff for the dpphy fwiw
13:22povikthe last PR i opened with a commit stash has the DEFAULT_ARCH fix
13:31povikha! knew there was the way to get the PR merged :p
13:31poviks/there/that
13:42e1eph4nt has quit [Ping timeout: 480 seconds]
13:52e1eph4nt has joined #asahi-dev
14:00povikmarcan: if you get a moment please also review the 9p export
14:12gladiac has joined #asahi-dev
14:15Race has quit [Ping timeout: 480 seconds]
14:21marcanlol I just realized EPIC is EndpointInterfaceClient
14:58e1eph4nt has quit [Ping timeout: 480 seconds]
15:00e1eph4nt has joined #asahi-dev
15:18e1eph4nt has quit [Remote host closed the connection]
15:18e1eph4nt has joined #asahi-dev
15:33e1eph4nt has quit [Ping timeout: 480 seconds]
15:38e1eph4nt has joined #asahi-dev
16:11jannaupovik: amp-dcblocker-config seems to be a m2 thing. now I fear that apple uses not only per SoC kernel/driver binaries but also per SoC source code
16:31svenwouldn’t surprise me :D
16:32DmitrySharshakov[m]Maybe they got tired of hardcoding things and started moving more to DT? I really hope code tries to search for prefs in DT and if not found applies the hardcoded default
16:40shorneHello, I am working on installing my own kernel on the m2 air (I am a kernel developer). In grub I don't get a keyboard to select the appropriate kernel
16:40shorneI read that this is fixed in the latest u-boot
16:41shorneso I installed the latest u-boot (as I understand), is latest uboot this one? https://github.com/AsahiLinux/u-boot/commits/asahi (0c9bd6e64020c95731caacf787d94d70daec3f16)
16:42shorneah, asahi-releng, I didn't find that reference
16:42shorneI saw that, didn't make the link, ok let me try that on
16:43shornej`ey: thank you
16:47shornej`ey: thanks, I see and the tag and the branch are the same commit, I didnt know of the PKGBUILDs repo yet
16:48shornehere it goes
16:52e1eph4nt has quit [Ping timeout: 480 seconds]
16:55shornewell that didnt work, after probing the USB devices u-boot fails to find the dtb's
16:55shornemaybe I packaged it incorrectly
16:57jannauwhy would u-boot search for dtbs after it probed usb?
16:58jannaushorne: u-boot has to use the dtb passed along by m1n1
16:59shornejannau: yes, it seems that failed
16:59shornej`ey: thanks, maybe its good to have this script referenced in the readme's
17:00jannauu-boot shouldn't be able to probe usb without dtb passed along from m1n1
17:00j`eyshorne: what distro are you using?
17:01shornejannau: I am just remembering the error it showed, its not in front of me right now after I rebooted
17:02shornej`ey: arch
17:02j`eyshorne: then why couldnt you just update the package?
17:03gladiac is now known as Guest1596
17:03gladiac has joined #asahi-dev
17:03shornej`ey: right, I could do that, at first I didn't think it was packaged yet because the only info I found was a tweet saying its fixed on a dev branch
17:03shornenow I see its in PKGBUILDs so right, I can just use that
17:05j`eyshorne: packages like uboot/kernel go into the asahi-dev repo first: https://cdn.asahilinux.org/aarch64/asahi-dev/ and then get moved into the main repo after testing
17:06clararussel[m] has joined #asahi-dev
17:07shorneAha, I was understanding asahi-dev repo as the git repo !_!
17:07shorneI am not too familiar with arch yet
17:09Guest1596 has quit [Ping timeout: 480 seconds]
17:15marcansven: figured out how to enable a bunch of extra DCP debug, not sure if it's useful though (see latest commits)
17:16svenI’m reasonably sure I mess up the atcphy/dpphy stuff somewhere fwiw
17:16svensomething is missing to establish the connection
17:19e1eph4nt has joined #asahi-dev
17:23pabloscloud[m]So.. How far is the graphic driver? 😃
17:24pabloscloud[m]I‘m super excited about running Linux on my Mac and it already worked pretty well a months ago except videos
17:27e1eph4nt has quit [Ping timeout: 480 seconds]
17:32marcansven: also made displayRequest() not hang, so that triggers that power up message in case that helps
17:33marcangoing to sleep
17:33marcanpabloscloud[m]: asking isn't going to make it go any faster, and asking in the channel where developers are trying to work on things *definitely* isn't going to make it go faster ;)
17:33svengoodnight! I’m gonna give it another try later
17:34svenjust adopt my policy that ever question about $x progress delays $x by a month :>
17:36e1eph4nt has joined #asahi-dev
17:37mazsven: make it exponential!
17:37svenohhh…. that’s even better!
17:49shornej`ey: ok, now I have the asahi-dev arch package repo enabled, I have keyboard and can boot my own kernels
17:56jannaushorne: should be in the asahi pkg repo as well since https://twitter.com/AsahiLinux/status/1560955501831417856
18:09bluetail21 has quit [Read error: Connection reset by peer]
18:09bluetail21 has joined #asahi-dev
18:10jakebot602 has quit [Remote host closed the connection]
18:11jakebot602 has joined #asahi-dev
18:27pabloscloud[m]<marcan> "pabloscloud: asking isn't..." <- So what? Didn’t want to make it faster
18:27jannauis up to 10Gbit/s a valid claim for the usb xhci with "pci 0000:04:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0000:00:03.0 (capable of 15.752 Gb/s with 8.0 GT/s PCIe x2 link"
18:28bluetail21 has quit [Read error: Connection reset by peer]
18:28bluetail21 has joined #asahi-dev
18:29bpye has quit [Quit: Ping timeout (120 seconds)]
18:29bpye has joined #asahi-dev
18:30opticronpabloscloud[m], he means that bothering the devs for status only slows them down, this is the wrong channel/room for that question anyway and pollutes discussion about development issues
18:31pabloscloud[m]Didn’t know there where other rooms
18:31pabloscloud[m]s/where/were/
18:32jannau893.54 MB/sec
18:33jannauvs. 785.06 MB/sec on one of the usb-a ports of the mac studio
18:41bluetail215 has joined #asahi-dev
18:42bluetail21 has quit [Read error: Connection reset by peer]
18:43e1eph4nt has quit [Ping timeout: 480 seconds]
18:44svenmarcan: the debug stuff is nice, still stuck at "waiting for HPD" though. I'll have to look again and see if I missed any dpphy/atcphy init
18:53e1eph4nt has joined #asahi-dev
19:11hays has quit [Remote host closed the connection]
19:25derzahl has joined #asahi-dev
19:44gladiac has quit [Quit: k thx bye]
19:45hays has joined #asahi-dev
19:48povikjannau: i just remembered seeing that one of MCA or ADMAC had surprisingly different driver kexts for t8103 and t6000 (judging on strings), so that furthers the suspicion
20:00e1eph4nt has quit [Ping timeout: 480 seconds]
20:00e1eph4nt has joined #asahi-dev
20:02bluetail215 has quit [Read error: Connection reset by peer]
20:02bluetail215 has joined #asahi-dev
20:05bluetail215 has quit []
20:07bluetail215 has joined #asahi-dev
20:09e1eph4nt has quit [Ping timeout: 480 seconds]
20:18e1eph4nt has joined #asahi-dev
20:27e1eph4nt has quit [Ping timeout: 480 seconds]
20:27bluetail215 has quit []
20:27bluetail215 has joined #asahi-dev
20:34bluetail215 has quit []
20:34bluetail215 has joined #asahi-dev
20:35e1eph4nt has joined #asahi-dev
20:45bluetail215 has quit []
20:45bluetail215 has joined #asahi-dev
20:55bluetail215 has quit [Ping timeout: 480 seconds]
21:04shornehi, as I mentioned before I am looking to help with getting s2idle working. Probably nothing new here, but I compile the kernel with CONFIG_SUSPEND on and played with "mem" suspend.
21:05shorneAs other reported it doesn't work, but I see now exactly where
21:05tpw_rulesi think it doesn't work because stuff like the hard disk won't wake back up properly
21:05shornebrcmfmac 0000:01:00.0: brcmf_pcie_pm_enter_D3: Timeout on response for entering D3 substate
21:06shornethe dirver sends a request to enter D3 in its .suspend callback
21:06shornebut the wifi device doesnt respond
21:06shorneI guess we have to reverse engineer the protocol that apple uses to suspend the device
21:07shorneI'll search if there is any documentation on this already
21:07shorneotherwise ill start looking in m1n1
21:08shorneneed to go to bed
21:08jannaushorne: I don't think so. marcan is planning to use the PCI tracer he started yesterday to see what macos is doing
21:09jannaufor wifi
21:12bluetail215 has joined #asahi-dev
21:31StupidYui has joined #asahi-dev
21:42e1eph4nt has quit [Ping timeout: 480 seconds]
21:59Manouchehri_ has quit []
22:26e1eph4nt has joined #asahi-dev
22:28bluetail215 has quit []
22:29bluetail215 has joined #asahi-dev
23:31e1eph4nt has quit [Ping timeout: 480 seconds]
23:40e1eph4nt has joined #asahi-dev
23:49jluthra_ has quit [Remote host closed the connection]
23:49jluthra_ has joined #asahi-dev
…