2023-03-14
01:12zkrx has quit [Remote host closed the connection]
01:15zkrx has joined #asahi-dev
01:41mini0n has joined #asahi-dev
02:00barrett has quit [Ping timeout: 480 seconds]
02:10zef_ has joined #asahi-dev
02:17zef has quit [Ping timeout: 480 seconds]
02:30sirn has quit [Read error: Connection reset by peer]
02:31sirn has joined #asahi-dev
02:32skipwich has quit [Quit: DISCONNECT]
02:32skipwich has joined #asahi-dev
02:57barrett has joined #asahi-dev
03:05marcaneiln: saw that, might wait until the current crop of kernel issues/release is sorted before merging new stuff though
03:42Mary6 has quit []
03:42Cromulent has joined #asahi-dev
03:42Mary6 has joined #asahi-dev
03:57pbsds has quit [Quit: The Lounge - https://thelounge.chat]
03:59pbsds has joined #asahi-dev
04:12mini0n has quit [Read error: Connection reset by peer]
04:29barrett has quit [Ping timeout: 480 seconds]
05:20blacktop has joined #asahi-dev
05:22blacktopis there a way to get the verbose boot logs to be writen to a file when booting a custom kc?
05:25blacktop has quit [Quit: leaving]
05:33skipwich_ has joined #asahi-dev
05:34skipwich has quit [Read error: Connection reset by peer]
05:47blacktop has joined #asahi-dev
06:00gladiac has joined #asahi-dev
06:06chip_x has quit [Ping timeout: 480 seconds]
06:26blacktop has quit [Quit: leaving]
08:21MajorBiscuit has joined #asahi-dev
09:04Major_Biscuit has joined #asahi-dev
09:05MajorBiscuit has quit [Ping timeout: 480 seconds]
09:06nyilas has joined #asahi-dev
09:07nyilas has quit [Remote host closed the connection]
09:09nyilas has joined #asahi-dev
09:25mazamarioguy: if you can dump these results somewhere, I'll have a look at what it means for KVM, and whether we can shoehorn that or not.
09:32Hibyehello_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
09:32Hibyehello has joined #asahi-dev
09:37Hibyehello has quit [Quit: ZNC 1.8.2 - https://znc.in]
09:38Hibyehello has joined #asahi-dev
09:48nsklaus has joined #asahi-dev
10:24MajorBiscuit has joined #asahi-dev
10:27nyilas has quit [Remote host closed the connection]
10:32Major_Biscuit has quit [Ping timeout: 480 seconds]
10:43nyilas has joined #asahi-dev
10:46veeyee has joined #asahi-dev
10:51Cromulent has quit [Quit: Connection closed for inactivity]
11:22amarioguyshould be sufficient, poke me if you need anything else tested, testing config was t6002 Mac Studio in m1n1 console
11:27nsklaus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:30mazamarioguy: cool, thanks. one question I have is whether there is a control that allows the IMPDEF PMU to count at EL1&0 with HCR_EL2.{E2H,TGE}={1,0}. From what I've seen, it normally doesn't count when running a guest.
11:32mazgiven that the KVM virtual PMU is backed by perf counters, we would need the PMU to be able to count whilst running the guest.
11:33amarioguymaz: got it, there should be smth that allows that given apple's official virt solution needs that to work
11:34marcannot as much of a perf improvement as I'd hoped, but the diffstat is ~-50 lines of code vs upstream and might have fixed the reboot issues and obsoletes a pile of downstream mailbox patches we had trouble upstreaming that fixed various broken stuff
11:34mazamarioguy: I'd hope so. the alternative is to snapshot the cycle counter on each entry/exit of the guest, and only expose that.
11:35mazalso, when you say that PMMIR_EL1 is not trapped: does it mean it undefs at EL1? or is always readable from EL1?
11:38mazamarioguy: OK, so they don't pretend to have PMUv3p4. I guess that leaves us with PMUv3p1 at best.
11:48mazamarioguy: in your description, you're saying "Apple specific PMU control reg writes still permitted when bit 56 is set (because the apple specific controls for PMCs/Uncore PMCs are independently trapped by bits 57-58)"
11:49amarioguymaz: that was mainly to clarify that this bit does not affect read/write of the impdef stuff since that's controlled by separate bits
11:58amarioguymaz: good news, when HCR_EL2.TIDCP = 1, all the impdef PMU regs i tested reads/writes from EL1 with, trap to EL2
11:59amarioguymarcan: quick feature request, can we please get an "bit set/bit clear" msr command in m1n1, would make bit twiddling much easier :P
12:00amarioguy(test results are serious - that is the behavior i see, and the same is true of the Uncore PMCs too)
12:05marcanamarioguy: hint: s3_1_c15_c7_2 has the same layout as PMCR1_EL1, it's probably PMCR1_EL12 (and then s3_1_c15_c6_2 is probably PMCR1_EL2)
12:05marcanthere's probably a whole set of parallel impdef PMC registers for {E2H,TGE}={1,0}, as there is for most apple impdef stuff
12:17marcanamarioguy: the PMCs definitely count for me in EL1 with those bits set, and possibly others (checking)
12:20marcanalso s3_1_c15_c11_0 is some kind of global enable, if that is 0 the PMCs don't count (but it's 0xfffff by default)
12:22marcanmaz: re mailbox, it's just bad. atomic mode bugs, a fixed-size queue that errors out if full instead of blocking, missing a way to set up the mailbox and *then* enable reception once everything is set up, etc.
12:23marcanI literally took the mailbox driver, ripped out the parts that talk to the subsystem, and just made rtkit call into it directly
12:24sveni would've expected those two or three context switches for each send to matter more but I guess the CPU is just too fast
12:35marcanOTOH if actually hitting the hardware is the bottleneck, then my dedup thing should help in normal mode once I implement it
12:41sventhe DT abstractions are nice and in theory the idea of mailbox also makes sense. it's just that there are >10 different hw implementations that make different assumptions about the API
12:43svenit would be nice to improve that api ofc but the last tries weren't very successful *shrug*
12:53darkapex has joined #asahi-dev
12:56darkapex1 has quit [Ping timeout: 480 seconds]
12:57darkapex1 has joined #asahi-dev
12:57barrett has joined #asahi-dev
13:01barrett has quit [Remote host closed the connection]
13:02darkapex has quit [Ping timeout: 480 seconds]
13:06Bey0ndB1nary has joined #asahi-dev
13:09darkapex1 has quit []
13:12darkapex has joined #asahi-dev
13:17j`ey_ is now known as j`ey
13:48kujeger has quit [Ping timeout: 480 seconds]
14:13nsklaus has joined #asahi-dev
14:20kujeger has joined #asahi-dev
14:21balrog has quit [Quit: Bye]
14:25nsklaus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:30nsklaus has joined #asahi-dev
14:38darkapex1 has joined #asahi-dev
14:39darkapex has quit [Ping timeout: 480 seconds]
14:53eiln has quit [Remote host closed the connection]
15:02balrog has joined #asahi-dev
15:11jannausomething strange: with mbox, rtkit, sart and nvme built-in the nvme probes only after other rtkit drivers (those start probing after waiting 10s on the root device)
15:33jannauKconfig for mbox and rtkit is fine, I was surprised that could deselect APPLE_MBOX. That seems to be caused by ASAHI selecting RTKIT. Kconfig documentation warns about this
15:37MajorBiscuit has quit [Ping timeout: 480 seconds]
15:38MajorBiscuit has joined #asahi-dev
16:02c10l has quit [Ping timeout: 480 seconds]
16:11nsklaus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:18marcanalso in theory on edge, dropping the asahi mkinitcpio hook now shouldn't leave your system totally unbootable I think
16:18axboedrivers/soc/apple/rtkit.c:674:6: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
16:39marcanfor people with M2s, can I get some confirmation of keyboard codes? `dmesg | grep 'Keyboard type'`
16:47bluetail4 has joined #asahi-dev
16:48marcanthat's where the %3 guess came from, and the assumption that there was a model they scrapped between those two (or out of order)
16:49nsklaus has joined #asahi-dev
16:50nsklaus has quit []
16:50nsklaus has joined #asahi-dev
16:50nsklaus has quit []
16:54bluetail has quit [Ping timeout: 480 seconds]
16:56jannaumaybe we should just use kblang-calibration, we still have to make a distinction between different iso layouts in hid-apple
16:56bluetail4 has quit [Ping timeout: 480 seconds]
16:58marcanjannau: does hid-apple actually need to know more than iso/ansi/jis? I thought it only checked that (it can only check that, those are the only three types ever exposed in hid->country)
17:01psykose has quit [Remote host closed the connection]
17:02psykose has joined #asahi-dev
17:03veeyee has quit [Quit: Leaving.]
17:04marcanOTOH using kblang-calibration would mean we don't need to touch the driver for new devices...
17:06jannauhid.country=iso is unfortunately not enough information, there are apple iso layouts which have KEY_GRAVE on KEY_102ND and others not
17:07marcanjannau: I thought that flag was for iso vs non-iso, implying that all ISO layouts needed the quirk by default
17:10jannauI orginally tought so too but it differs between iso english international and german (and a other european languages)
17:11jannauI now suspect it's original intention was to make apple's iso international layout similar to the PC us international layout
17:14marcanhttps://m.media-amazon.com/images/W/IMAGERENDERING_521856-T1/images/I/71NQ6Rx0lRL._AC_SL1500_.jpg lol
17:14marcanI was using Greek as a test and apparently... normal Greek keyboards just have that key duplicated?
17:33tobhe has joined #asahi-dev
17:35tobhe_ has quit [Ping timeout: 480 seconds]
18:02Bey0ndB1nary has quit []
18:04MajorBiscuit has quit [Quit: WeeChat 3.6]
18:05tobhe_ has joined #asahi-dev
18:11tobhe has quit [Ping timeout: 480 seconds]
18:13c10l has joined #asahi-dev
18:24eric_engestrommarcan: just saw your toot, I have what you're looking for: m2 air with iso keyboard
18:24eric_engestromhow can I help?
18:26eric_engestromwrong one?
18:26eric_engestromsorry :/
18:27c10l has quit [Quit: Bye o/]
18:28eric_engestromor maybe I misremember what I got
18:28eric_engestromhow do I check?
18:30eric_engestromyeah, international english iso
18:34c10l has joined #asahi-dev
19:10___nick___ has joined #asahi-dev
19:40___nick___ has quit []
19:43___nick___ has joined #asahi-dev
19:43___nick___ has quit []
19:46___nick___ has joined #asahi-dev
19:58bcrumb has joined #asahi-dev
20:01bcrumb has quit []
20:12hightower2 has joined #asahi-dev
20:55crabbedhaloablut has quit []
21:03crabbedhaloablut has joined #asahi-dev
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:14crabbedhaloablut has quit []
21:25crabbedhaloablut has joined #asahi-dev
22:04nyilas has quit [Remote host closed the connection]
22:42stipa is now known as Guest7738
22:42stipa has joined #asahi-dev
22:42kesslerd has joined #asahi-dev
22:43Guest7738 has quit [Read error: Connection reset by peer]
23:39eiln has joined #asahi-dev