2021-08-20
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi
01:10citizen1[m]i hope no one mind my question but if Linux alreaddy works on ARM and m1 is ARM why do we need special work to be done for Asahi to work on m1?
01:11sorearlinux supports the arm instruction set but a platform is more than an instruction set. it's true that 80-90% of the work is already done for us
01:15citizen1[m]oh ok i see
01:15citizen1[m]thanks
01:22citizen1[m]what is asahi based on? debian?
01:33citizen1[m]thanks
02:57PhilippvK has joined #asahi
03:40yuyichao has quit [Ping timeout: 480 seconds]
03:53marvin24_ has joined #asahi
03:56marvin24 has quit [Ping timeout: 480 seconds]
04:11yuyichao has joined #asahi
05:00jbowen has joined #asahi
05:08jbowen has quit [Ping timeout: 480 seconds]
06:38jeffmiw has quit [Ping timeout: 480 seconds]
06:47lethalnyan has quit [Remote host closed the connection]
06:47lethalbit has joined #asahi
08:40jncitizen1[m]: as others hinted at, the big difference between ARM-based SoCs is in the parts that are not specified by the ARM instruction set, i.e. the on-chip peripherals. these are often reinvented by the particular hardware vendor (Apple in this case), and new drivers have to be written for them
08:55svenand then apple also ignores part of the arm specifications and does their own thing (like the FIQs or that stuck VHE bit)
09:10mazthat's assuming that EL3 exists. there are at least another example of a system without EL3.
09:16chadmedapple has an architecture license which means they can produce any design they like but it has to be compliant with the ISA spec. impl dep stuff has existed since the dawn of time on commercial riscs, you just dont usually get to see the result of it in the consumer space because we are spoonfed drivers and software
09:18chadmedsparc for example has entire chapters of its manual dedicated to different valid ways of implementing the same thing, all of which need different drivers and firmware to talk to the chip properly
09:26mazchadmed: IMPDEF stuff is all fine. things that actively break the architecture, less so. somehow, Apple is allowed to do that, while it is frowned upon for most other architecture licensees.
09:37jbowen has joined #asahi
09:41landscape15[m]<jn> "citizen1: as others hinted at..." <- So this is the reason why other computer vendors won't switch to ARM for laptops and desktops. They should create a new standard (such as UEFI+ACPI) for all ARM chips right?
09:42chadmed(fwiw i agree the glut of arm init systems and fw interfaces and stuff is deeply troubling and only serves to hinder interoperability)
09:45landscape15[m]Yes, and as i know even if this standard exist, it is not implemented by OEM. I'm thinking about all those 2 in 1 laptops which run Windows 10 on Arm.
09:45jbowen has quit [Ping timeout: 480 seconds]
09:46jni think the big compatibility advantage of x86 is that there are only two (important) vendors - Intel and AMD
09:49landscape15[m]jn: Sure it is. But i think we won't see ARM Intel and AMD cpus for at least two/three years. After this time something will start to change.
09:51jnlandscape15[m]: Intel/AMD ARM SoCs wouldn't solve anything, i think. the advantage right now is that they have a high market share (due to excluding everyone else) and (can afford to) contribute most of the necessary drivers to linux directly -- at least as far as SoC drivers are concerned, with peripherals it can get a little broken too
09:53jnthat said, i like that there are many ARM vendors, it's just that i'd hope they'd share a few more hardware interfaces, so that more drivers could be shared
09:55landscape15[m]Yes i also think this is the only way they have. And it surely takes a lot of time.
09:55landscape15[m] * Yes also i think this is the only way they have. And it surely takes a lot of time.
10:02chadmedis because the US courts allowed PC clones to continue to be manufactured, and intel were slugged with heaps of antitrust suits in the 90s that forced them to open up the platform to competitors
10:03chadmedand by now its just expected that these systems can work with each other. dont forget that many of the standards we take for granted now were originally just intel's specs, even things down to how PC motherboard VRMs talk to the chips they power
10:04chadmedthe reason the courts cant force this for ARM is because its not a unified platform. or rather, the computer manufacturers have convinced governments that it shouldnt be considered a unified platform.
10:06chadmedi was at one point not that long ago working on a proposal for a sort of interoperable PC-like platform for ARM or RISC-V (it didn't matter which at the stage i got to working on it) with prescribed I/O, firmware interfaces and sockets, but i had to return to my studies in a completely unrelated field and dropped it.
10:06chadmedtheres no commercial interest in such a proposal anyway since the trend in the industry now is vendor lockin
10:12JTLI guess you could say the relative "openness" of x86 and the PC is an artifact of the time period involved and a bunch of happy accidents :)
10:36pipcet[m]can't wait to try it! (I actually think polled is better when it comes to interaction, because IRQs always break when you need them, but that might just be me)
10:47j_eysven just had an idea to emulate another driver that doesnt use interrupts, rather than writng a new one
10:48j_eycos I think all that we need then is an option to overwrite the serials compatible in the dtb
10:53kettenis has joined #asahi
10:58phiologe has joined #asahi
11:02PhilippvK has quit [Ping timeout: 480 seconds]
11:16cgv[m]CLIDR correctly shows separated L1, and unified L2; although CSSIDRs give a dummy value (0x70ffe07b)
11:18cgv[m]if I fill the cache to force evictions then I get timing differences, meaning that the measurement works
11:28mazcgv[m]: it has FEAT_SWB, so it is likely that clean to the PoU are implemented as NOPs (the i-side can snoop the d-side).
11:32mazcgv[m]: right. that's totally expected, and inline with the architecture. you should observe timing differences with cleans to the PoC though, unless that one also reports 0...
11:33mazyou may also see different behaviours if you run in a guest where the hypervisor has set FWB.
11:37mazfair enough. KVM uses it extensively, as it makes everything much simpler when dynamically mapping/unmapping guest pages. for the m1n1 case, it probably doesn't have any advantage.
11:37cgv[m]LoC is 1, which means that only cleans/invalidates L1? if the latency is hidden by barrier that could explain that i do not observe the differences between L1 hit and L2 hit
11:39mazcgv[m]: you can't really directly associate what is reported by CLIDR_EL1 to actual cache levels. all you know is that it is ordered before something that would report '2'. And yes, I would fully expect the DSB to be where the cost can be measured.
11:51cgv[m]maz: i see. then i don't know whats going on, i dropped the barriers and can see a 1 cycle delay with data dependencies, the L1 miss should show up.
12:09yuyichao has quit [Quit: Konversation terminated!]
12:41j_eymarcan: I may or may not have a look later, what I just did is working well enough and uses an upstream driver
13:37etsukata[m] has joined #asahi
13:56jbowen has joined #asahi
14:06jbowen has quit [Quit: leaving]
14:12jbowen has joined #asahi
15:23bps has quit [Ping timeout: 480 seconds]
15:26stblassitude has quit [Read error: Connection reset by peer]
15:26brinly has quit [Remote host closed the connection]
15:27sorear has quit [Remote host closed the connection]
15:31sorear has joined #asahi
15:31desairc has quit [Quit: desairc]
15:31stblassitude has joined #asahi
15:31brinly has joined #asahi
17:39bps has joined #asahi
17:57citizen1[m]i don't mean to sound like a smart alec but can't others help Marcan to reverse engineer or make linux work on M1? or he is the only one with the know how who can do this
18:04bps has quit [Ping timeout: 480 seconds]
18:17marvin24_ has quit [Ping timeout: 480 seconds]
18:37marvin24 has joined #asahi
18:38jbowen has quit [Ping timeout: 480 seconds]
18:42citizen1[m]oh ok i thought everyone is just waiting for him to get the job done
18:44svenhe's the only one working full time on it, so especially very time-intensive tasks can realistically only be done by him
18:49kwilczynski has quit []
18:50sirn- has joined #asahi
18:50bps has joined #asahi
18:57sirn has quit [Ping timeout: 480 seconds]
18:57sirn- is now known as sirn
18:59bps has quit [Ping timeout: 480 seconds]
19:02citizen1[m]8 billion people in the world only one can afford to do this full time, shame on us
19:02marcansven: not quite full time, we never reached that patreon goal, but I try to make it most of the way to full time :)
19:03marcanbut I think I see my job here as doing whatever nobody else wants to do, and building tools to make everyone else's lives easier
19:04citizen1[m]i am honored to meet you
19:04citizen1[m]you are a tech. super hero
19:21bps has joined #asahi
19:29jbowen has joined #asahi
19:32marcannico_32: actually 57%. patreon has a stupid bug with currency conversions, try switching your currency to $ in an incognito window
19:38citizen1[m]<marcan> "citizen1: tbh though, open..." <- that's true and this is why i say shame on us. Society wants to break from corporate clutches but too stingy to donate few dollars
19:39citizen1[m]but the foss community is to be blamed too. So many forks of the same software and all requesting donations makes efforts and money distributed all around and lose its power
19:39citizen1[m]if we all donated to 3-4 linux distros instead we can see things much better
19:40marcanmultiple competing forks aren't really a thing the vast majority of the time, much less soliciting donations
19:45citizen1[m]in the case of asahi it's doing something different but xubuntu kubuntu ubuntu mint zorin pop os , mx linux, debian elementary slackware , garuda , manjaro... idk , do we really need this much? like 85% of pcs run windows 10 which is good for all
19:47marcandistros just package software, and most of those are derivatives of each other so don't duplicate work
19:47j_eyand if people didnt work on those distros, doesnt mean they'd work on whatever 3-4 ""blessed"" disros there are
19:48citizen1[m]yea but if all resources get poured in one, we can have something much more effective or a replacement for windows and me office maybe
19:48marcanlike we're going to be releasing images of an Asahi version of Arch Linux ARM that a lot of people will probably call Asahi Linux, but the amount of work going into "having a distro" will be tiny for us, compared to everything else we do
19:48marcansame for many of those variant distros, they focus on specific things that matter to them, they don't duplicate work
19:50citizen1[m]my point is foss efforts and money is too distributed, meanwhile on the proprietary side its concentrated mainly in 4 companies: Apple, Microsoft, facebook, and Google
19:50alyssaand not about some reindeer named Sven who happens to hack on the Linux kernel with his buddy Kristoff
19:51jbowen has quit [Ping timeout: 480 seconds]
20:01jbowen has joined #asahi
20:11jbowen has quit [Ping timeout: 480 seconds]
20:13s-h-i-n-o-b-i_ has quit []
20:28jbowen has joined #asahi
20:49jbowen has quit [Ping timeout: 480 seconds]
20:59jbowen has joined #asahi
21:06jbowen has quit [Quit: leaving]
21:16dottedmagThere still seems to be no good business model around free software, for individuals and small shops, unfortunately. Would I work on Wayland full time? Sure. Is it Patreon'able? No. Are free software companies paying competitive salaries? Not really, no. Can you build a business around it? Hardly.
21:39citizen1[m]i think what we can do is promote donation culture and make people understand there is no such thing as free lunch. The good thing is that small numbers are very effective $3 * million donors= $3M!
21:39citizen1[m]i also think a way to make money is to charge businesses for foss software
21:42citizen1[m]indeed
21:42landscape15[m]citizen1[m]: Perrhaps at first you should include donation informations into the asahi-installer (only for reference).
22:02jeremiah has joined #asahi
22:13marvin24_ has joined #asahi
22:16marvin24 has quit [Ping timeout: 480 seconds]
23:17robinp has quit [Read error: Connection reset by peer]
23:18robinp has joined #asahi
23:27Graypup_ has quit [Quit: meow]
23:27Graypup_ has joined #asahi
23:28Graypup_ has quit []
23:28analoq has joined #asahi
23:28Graypup_ has joined #asahi
23:29citizen1[m]there is no 1 time donation option for asahi except you have to contact marcan personally... people don't like commitment
23:30citizen1[m]if there is 1 time donation maybe more money pours in
23:31analoqi just saw that 5.13 has seemingly pretty good M1 support already. at what stage is video acceleration at the moment? i want to feed 4k h264/265 to a tv via hdmi. I assume that's not (yet) doable due to the missing gpu support?
23:34linearcannon has quit [Remote host closed the connection]