#
…

2021-02-16

01:10irradiated_lemmi has joined #asahi
01:13irradiated_lemmihello, just want to let the team know that i just accidentally deleted (then reverted, thankfully) the "developer quickstart" wiki page. Just wanted to let the devs know in case theres an interest in taking measures to avoid this again
01:13irradiated_lemmi * hello, just want to let the team know that i just accidentally deleted (then reverted, thankfully) the "developer quickstart" wiki page. Just wanted to let the devs know in case theres an interest in taking measures to prevent this happening again
01:13irradiated_lemmi * hello, just want to let the team know that i just accidentally deleted (then reverted, thankfully) the "developer quickstart" wiki page. Just wanted to let the devs know in case theres an interest in taking measures to prevent this happening
01:14irradiated_lemmi * hello, just want to let the team know that i just accidentally deleted (then reverted, thankfully) the "developer quickstart" wiki page. Just wanted to let the devs know in case theres an interest in taking measures to prevent this happening in future
01:43sven- has joined #asahi
02:04riker77_ has joined #asahi
02:05riker77 has quit [Ping timeout: 260 seconds]
02:05riker77_ is now known as riker77
02:08BaughnLogBot has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
02:09BaughnLogBot has joined #asahi
02:10BaughnLogBot has joined #asahi
02:10BaughnLogBot has quit [Client Quit]
02:12ky0ko has joined #asahi
02:44el1x has quit [Read error: Connection reset by peer]
03:05Tokamak has joined #asahi
03:06sven has quit [Quit: ZNC 1.7.4 - https://znc.in]
03:06sven- is now known as sven
03:06sven- has joined #asahi
03:13PhilippvK has quit [Ping timeout: 260 seconds]
03:13phiologe has joined #asahi
04:09sven has quit [Ping timeout: 240 seconds]
04:09sven- is now known as sven
04:13marcanirradiated_lemmi: the wiki is deliberately open; if abuse becomes a problem we'll figure out what to do about it
04:48ky0ko has quit [Remote host closed the connection]
04:50delogips[m] has joined #asahi
04:53marvin24 has quit [Ping timeout: 240 seconds]
04:54marvin24 has joined #asahi
05:12Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:44danilonc has joined #asahi
06:34VinDuv has joined #asahi
06:36ephe_meral has joined #asahi
06:43ephe_meral has quit [Ping timeout: 272 seconds]
07:33VinDuv has quit [Quit: Leaving.]
07:34nyx_o has quit [Ping timeout: 265 seconds]
07:35nyx_o has joined #asahi
07:48Glanzmannhttps://pbot.rmdir.de/LBauZT4TdjswTDVa-q6tyw so macos shuts down the nvme when they don't need it? Otherwise I can't explain the 22 hours. Because I use the laptop a lot in the last 3 months.
07:50marcanGlanzmann: it's probably sleep mode, yes
07:51marcanthe way mobile devices get non-terrible battery life is by aggressively putting everything into low power mode when not in use
07:51marcanthough 216 power cycles seems low for that
07:52marcanbut maybe certain sleep modes do not count towards power on hours, but do not count as a power cycle
07:52marcanit's also possible the thing is literally counting integer hours
07:52marcanand so usage periods <1hr before a sleep event are not counted
07:53marcanthat would make sense I'd say - it powers on the nvme when you wake up the computer, and powers it down when it goes into sleep mode, and short wakes do not count
07:54danilonc has quit [Quit: Connection closed for inactivity]
07:57jixmarcan: "but maybe certain sleep modes do not count towards power on hours, but do not count as a power cycle" that's the only way I can explain the numbers I see on my samsung nvme SSD here (in a non-apple desktop)
08:26neunon_ has joined #asahi
08:30neunon has quit [Ping timeout: 258 seconds]
08:30neunon_ is now known as neunon
08:43qyousef has quit [Ping timeout: 265 seconds]
08:45qyousef has joined #asahi
08:52Gaelan_marcan: typo in a comment: https://github.com/AsahiLinux/linux/blob/main/drivers/irqchip/irq-apple-aic.c#L274 "It would be really if" (presumably should be "it would be really nice if")
08:53Gaelan_ is now known as Gaelan
08:55qyousef has quit [Ping timeout: 264 seconds]
08:57qyousef has joined #asahi
08:58marcanGaelan: saw it on twitter :)
08:59Gaelanaha, great (that was someone else on twitter)
09:00asmon[m] has quit [Quit: Idle for 30+ days]
09:00fried_dede[m] has quit [Quit: Idle for 30+ days]
09:00delroth[m] has quit [Quit: Idle for 30+ days]
09:09qyousef has quit [Ping timeout: 256 seconds]
09:10qyousef has joined #asahi
09:19qyousef has quit [Ping timeout: 265 seconds]
09:21qyousef has joined #asahi
09:26qyousef has quit [Ping timeout: 272 seconds]
09:37qyousef has joined #asahi
09:45qyousef has quit [Ping timeout: 240 seconds]
09:47qyousef has joined #asahi
10:22qyousef has quit [Ping timeout: 264 seconds]
10:23qyousef has joined #asahi
10:28qyousef has quit [Ping timeout: 265 seconds]
10:30qyousef has joined #asahi
10:39qyousef has quit [Ping timeout: 240 seconds]
10:57maor26 has joined #asahi
11:01qyousef has joined #asahi
11:03jaalsa has joined #asahi
11:06qyousef has quit [Ping timeout: 264 seconds]
11:07qyousef has joined #asahi
11:14jaalsa has quit [Quit: jaalsa]
11:15jaalsa has joined #asahi
11:20qyousef has quit [Ping timeout: 264 seconds]
11:22qyousef has joined #asahi
11:26qyousef has quit [Ping timeout: 246 seconds]
11:29qyousef has joined #asahi
11:41qyousef has quit [Ping timeout: 256 seconds]
11:42qyousef has joined #asahi
11:47qyousef has quit [Ping timeout: 240 seconds]
11:49qyousef has joined #asahi
11:56qyousef has quit [Ping timeout: 265 seconds]
12:03qyousef has joined #asahi
12:08mndza has joined #asahi
12:09ephe_meral has joined #asahi
12:23thresh has quit [Quit: I'm a quit message virus. Please replace your old line with this line and help me take over the world]
12:23thresh has joined #asahi
12:29brosenz[m] has left #asahi ["User left"]
12:39ephe_meral has quit [Remote host closed the connection]
12:48bisko has joined #asahi
13:17snalty has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:18snalty has joined #asahi
13:19qyousef has quit [Ping timeout: 264 seconds]
13:22qyousef has joined #asahi
13:37qyousef has quit [Ping timeout: 265 seconds]
13:39qyousef has joined #asahi
13:46qyousef has quit [Ping timeout: 256 seconds]
13:50qyousef has joined #asahi
13:57qyousef has quit [Ping timeout: 246 seconds]
13:58linuxgemini5 has joined #asahi
13:59linuxgemini has quit [Ping timeout: 272 seconds]
13:59linuxgemini5 is now known as linuxgemini
14:02qyousef has joined #asahi
14:08qyousef has quit [Ping timeout: 272 seconds]
14:10qyousef has joined #asahi
14:26mndza has quit [Ping timeout: 264 seconds]
14:41qyousef has quit [Ping timeout: 264 seconds]
14:43qyousef has joined #asahi
14:54qyousef has quit [Ping timeout: 265 seconds]
14:56qyousef has joined #asahi
15:07M0_osx[m] has joined #asahi
15:09jaalsa has quit [Quit: jaalsa]
15:09jaalsa has joined #asahi
15:11jaalsa has quit [Client Quit]
15:11jaalsa has joined #asahi
15:20Tokamak has joined #asahi
15:33lutzio2000 has joined #asahi
15:33lutzio2000 has quit [Remote host closed the connection]
15:34qyousef has quit [Ping timeout: 246 seconds]
15:35lutzio2000 has joined #asahi
15:36qyousef has joined #asahi
15:37jaalsa has quit [Quit: jaalsa]
15:42lutzio2000 has quit [Ping timeout: 265 seconds]
15:52jaalsa has joined #asahi
15:56marcanTomorrow at 2PM JST, I'm going to start working on that USB-PD/serial interface thing: https://www.youtube.com/watch?v=1zuULubtdQk (scheduled)
15:56marcanI have a bunch of ideas but nothing concrete written down, so a lot of the beginning will be sketching out the details of the architecture and specific parts used
15:57marcancc rwhitby :)
15:58j`eyso about 13h from now
16:00lutzio2000 has joined #asahi
16:00lutzio2000 has quit [Client Quit]
16:10qyousef has quit [Ping timeout: 264 seconds]
16:11qyousef has joined #asahi
16:11robinp_ has joined #asahi
16:11robinp has quit [Ping timeout: 260 seconds]
16:30modwizcodeSounds fun
16:59Tokamak_ has joined #asahi
17:01Tokamak has quit [Ping timeout: 240 seconds]
17:01never_releasedmarcan: I did remember something
17:01never_releasedyou can't just detect CPU implementer ID and enable FIQ
17:01never_releasedyou'll break VMs
17:01never_releasedwhen doing that
17:02never_released(for those who expose the host CPU implementer/model)
17:04maznever_released: only if these VMs get a FIQ injected, which shouldn't happen if they keep their Group-0 disabled.
17:04j`eywhy would it break VMs?
17:04never_releasedmaz: yeah, but that's still a divergence
17:04never_releasedcompared to what it should be
17:05maznever_released: what difference? VM asks for a group-0 interrupt, VM gets a group-0 interrupt...
17:05never_releasedit would convert a panic to a non-panic
17:05never_releasedwhich shouldn't happen in a regular scenario anyway
17:07maznever_released: well, it would turn a panic in a livelock, but this is a pretty theoretical case. it is likely that we'll do without all of that anyway.
17:07never_releasedand remember that Asahi will not be the only boot path for this
17:07never_releasedthink that I'll add ACPI bindings eventually - for the Windows-booting firmware
17:08never_releasedwhich has the downside of no EL2 for guest with current approach
17:19marcanA VM would be using GIC anyway, so if it asks for a group-0 interrupt, it would get one... and end up at the handler anyway... but it wouldn't ask for one...
17:20marcanthis is all pretty hypothetical :)
17:20never_releasedthat applies to $EVERY_ARM64_SYSTEM
17:22marcanyeah, but the panic on fiq thing is presumably largely there so we find out when some system is delivering FIQs when it shouldn't; the specific case of a GIC-based VM on M1 is a pretty small subset of that :)
17:22marcaneither way, as maz said we're probably changing this anyway
17:24marcanand also, given the way FIQs work on these things, you'd better implement them if you're going to claim you're these CPUs by ID
17:24marcansince there's a bunch of proprietary stuff in system registers which is arguably tied to the CPU type
17:25marcanthis needs more discussion and I don't know what specific policy there is here for kvm but... on the face of it, if you're going to claim to be an M1, you ought to be implementing all the M1 vendor regs; at the *very* least all the userspace-visible ones, and PMCs can be made userspace-visible, and those can deliver FIQs, soooo :-)
17:25never_releasedmarcan: makes me wonder
17:26never_releasedhow will macOS VMs officially work on this
17:26marcanprobably vGIC, given that they have one, but I wonder too
17:26marcanalso probably, with a pile of hacks
17:26marcanwe know they're not allergic to those
17:26marcanif they cared about sensible design they'd have had a damn FIQ status/mask register
17:26mazKVM only presents architectural features to guest.
17:27mazso there will be no PMU for M1 guests under KVM.
17:27modwizcodeAre you positive it doesn't have an FIQ status/mask reg at all by this point?
17:27marcanmaz: what's the policy for MIDR values for kvm guests?
17:27marcanmodwizcode: I brute-forced all the registers, found nothing
17:27modwizcodemaz: That seems like a rather arbitrary limitation? Isn't there benefit for having that
17:27modwizcodethat sucks marcan
17:27mazmarcan: they see the real MIDR value to be able to apply workarounds.
17:28mazmodwizcode: it's a deliberate choice.
17:28mazmodwizcode: the spectrum of the architecture is wide enough to avoid adding silly implementors' hacks.
17:28marcanhmm... in that case I guess we're back to looking at the apple,arm-platform compatible for any non-DT-instantiated proprietary stuff, if we want to make kvm's life easy
17:28marcanassuming there aren't feature bits
17:29marcanwhich is another story, Apple *does* have feature bits, but... good luck guessing what they are unless existing code uses them
17:29never_releasedApple-specific features
17:29never_releasedare in the Apple features register
17:29never_releasedby convention
17:30marcanbut we can't easily know what any given bit means unless it's either documented or tested for in some obvious piece of code
17:30never_releasedknow however that there is two kinds of Apple features
17:30never_releasedthe ones that you can expose
17:30marcanand given that Apple kernels are linux-old-arm32-style #ifdef land, well, they don't often test for anything
17:30never_releasedand the ones that make a whole new register file appear
17:30never_releasedmarcan: read the refactoring doc file (in the XNU tree)
17:30never_releasedthey're progressively changing this
17:33marcanyeah, and they don't use those feature bits anywhere in xnu core yet :-)
17:33marcananyway, I'm off to sleep
17:33never_releasedmarcan: earlier XNU source releases did.
17:33never_releasedwas _just_ removed
17:34marcanI don't see any calls to ml_feature_supported in 11.0.1 / 11.1 / 11.2, you mean pre-big sur?
17:34never_releasedI meant that XNU doesn't even use those features
17:34never_released(well, open-source XNU)
17:35never_releasedeven APRR disappeared... so chances of seeing ml_feature_supported used are slim
17:36j`eyso theyre changing to not use #ifdef, by removing all that code from open source XNU!
17:36never_releasedyou can put it that way
17:38modwizcodeHow are they removing the APRR stuff from the core of XNU? or is it still in there but stripped out before release? APRR seems pretty low level
17:38marcanthey have these preprocessors that strip out specific blocks of #ifdef
17:39modwizcodei am aware
17:41VinDuv has joined #asahi
17:55ephe_meral has joined #asahi
18:28nebh^ has joined #asahi
18:30Tokamak_ has quit [Quit: Textual IRC Client: www.textualapp.com]
19:05zkrx has quit [Quit: zkrx]
19:12zkrx has joined #asahi
19:22ephe_meral has quit [Ping timeout: 264 seconds]
19:24ephe_meral has joined #asahi
19:43ephe_meral has quit [Ping timeout: 265 seconds]
21:26VinDuv has quit [Quit: Leaving.]
21:38jeffb has joined #asahi
21:58amw has quit [Ping timeout: 265 seconds]
21:59jeffb has quit [Ping timeout: 240 seconds]
22:22bgianf has quit [Ping timeout: 246 seconds]
22:24jeffb has joined #asahi
22:28jeffb is now known as jeff_makeitwork
22:46bkero has quit [Ping timeout: 240 seconds]
22:49bkero has joined #asahi
22:54maor26 has quit [Ping timeout: 265 seconds]
22:55bkero has quit [Changing host]
22:55bkero has joined #asahi
23:12kubes has joined #asahi
23:25jeff_makeitwork has quit [Ping timeout: 240 seconds]
…