#
…

2021-10-26

00:00bgb_ has joined #asahi
00:03user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:07alexstore06 has quit [Ping timeout: 480 seconds]
00:11phire has quit [Ping timeout: 480 seconds]
00:16alexstore06 has joined #asahi
00:17TheLink has quit [Ping timeout: 480 seconds]
00:18TheLink has joined #asahi
00:24alexstore06 has quit [Ping timeout: 480 seconds]
00:52alexstore06 has joined #asahi
01:05user982492 has joined #asahi
01:07yuyichao has quit [Ping timeout: 480 seconds]
01:08bgb_ has quit [Ping timeout: 480 seconds]
01:16bgb_ has joined #asahi
01:22rohin2 has joined #asahi
01:36kode54so glad I updated to 12.0.1 to find my GPU problem is not fixed
01:36kode54games perform worse, and within 10-15 minutes of playing them, the GPU locks up
01:36chadmed>apple software fixing things
01:37kode54so glad they don't actually expect people to use their software
01:40user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:46DarkShadow44 has joined #asahi
01:46DarkShadow4444 has quit [Read error: Connection reset by peer]
01:58user982492 has joined #asahi
02:01XeR has quit [Remote host closed the connection]
02:01XeR has joined #asahi
02:01milek7 has quit [Remote host closed the connection]
02:02milek7 has joined #asahi
02:10PhilippvK has joined #asahi
02:13user982492 has quit [Read error: Connection reset by peer]
02:13user982492_ has joined #asahi
02:14phiologe has quit [Ping timeout: 480 seconds]
02:15chadmed has quit [Quit: Konversation terminated!]
02:18chadmed has joined #asahi
02:18citizen1[m]given how many linux users choose macbook as their machine in the corporate works (even trovalds does it) i am surprised macan didn't reach his patreon/opencollective goal to develop linux for m1 full time
02:19chadmedits sad but im not surprised tbh. people are slow to part with their cash even in good times. globally, we are currently _not_ in good times.
02:19chadmedcost of living has exploded in recent months too for a lot of folks
02:20citizen1[m]iphone sales disagree
02:20citizen1[m]people spending crazy in that
02:20chadmedthe death throes of neoliberalism. it will drag us all down with it
02:21citizen1[m]plus i believe power in numbers. $5 x 100k linux users = $500k
02:21chadmeddont forget a lot of people in many markets get their phones on contract still. even in australia where that isnt common, many people are on rolling 2 year handset replacement contracts where you just get a new phone every two years regardless
02:21citizen1[m]people are just stingy and want everything absolutely free. when they donate a dollar is like they donate their fortunes
02:22chadmedso looking at the sales for those things probably isnt a good indicator of economic health. i prefer looking at metrics like cost of housing as a function of median yearly income and inflation (but real inflation figures not this crap where they just take out components of the index that make it look worse than they want)
02:23chadmedsince this time last year the price of bread has more than doubled, used cars are up like 80%, energy prices are up like 40%
02:23chadmedthings are rough
02:33citizen1[m]but how can prices increases when people are getting poorer, demand and supply should make prices lower
02:33citizen1[m]if a car used to be $20k in good times, logically who will pay for it at $35 in rough times🤷🏻‍♂️
02:36citizen1[m]tbf the asahi project needs campaigning. I think many do not know about it or think its dead
03:03chadmedcitizen1[m]: consider that maybe the dogma about supply and demand is utter bs :)
03:08chadmedthis is getting really off topic but like, economics are a bit more complex than the supply and demand graph. using the used car example, especially in the US and Australia you have enormous captive markets of people who absolutely _must_ own a car to get basically anywhere. so, you as a seller can charge whatever you want and peopel will pay it
03:09chadmedespecially if global supply chains for new products are in tatters which means they cant get reasonably priced new cars
03:09yuyichao has joined #asahi
03:10chadmeddoubly especially if reserve banks in every developed country are being forced by their governments to print trillions of dollars in cash in the absence of proper fiscal policy, triply especially if those governments also demand that interest rates remain ultra low to encourage people to borrow money and keep cash flowing through their economies
03:27marvin24 has joined #asahi
03:30marvin24_ has quit [Ping timeout: 480 seconds]
04:04kenjigashu has joined #asahi
04:36kenjigashu has quit []
04:37kenjigashu has joined #asahi
04:42kenjigashu has quit []
04:45balrog has quit [Remote host closed the connection]
04:46balrog has joined #asahi
04:52rohin2 has quit [Ping timeout: 480 seconds]
05:00c10l has quit [Quit: The Lounge - https://thelounge.chat]
05:00c10l has joined #asahi
05:03gabuscus has joined #asahi
05:35kenjigashu has joined #asahi
05:37kenjigashu has quit []
05:51Namidairo has quit [Quit: ZNC - https://znc.in]
05:51Namidairo has joined #asahi
05:52maor26 has joined #asahi
06:13nuh^ has joined #asahi
06:37robinp_ is now known as robinp
07:35user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:47user982492 has joined #asahi
08:12user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:04gabuscus_ has joined #asahi
09:08gabuscus has quit [Ping timeout: 480 seconds]
09:11gabuscus has joined #asahi
09:14gabuscus_ has quit [Ping timeout: 480 seconds]
10:02kov has joined #asahi
10:16nuh^ has quit [Ping timeout: 480 seconds]
10:30poviknsklaus_: well i do have a github account and github.com/povik/linux is where i post the driver as-is
10:30povikbut watching this and the -dev channel is probably the best source to see if there's any progress
10:44nsklaus_povik: thanks for telling
10:45mazagraf: in KVM, I consider that a S2 exit on d-side CMO for non-memory always succeeds. since there is no mapping, there is nothing to cache.
10:46agrafmaz: thanks, my hvf patch to QEMU does the same now :)
10:46c10l has quit [Quit: The Lounge - https://thelounge.chat]
10:48nsklaus_povik: since you're around, would you mind if i asked how much do you suspect implementing support for the headphone port will be hard thing to do ? if you have time to talk a bit prospective and perceived difficulty about next steps of this sound driver you're making.. if you don't have time, then ignore my question
10:49poviknsklaus_: sure, i have the time, am happy to answer
10:49povikit snhouldn't be too difficult
10:49poviki have a m1n1 python script which outputs audio on the headphone port
10:50poviknothing stops me from doing the same mmio pokes in the linux driver right now and get a driver for the headphone port
10:50povikbut i am trying to understand what the mmio pokes do at the moment
10:51povikso that's why i don't jump onto the linux driver just yet
10:51c10l has joined #asahi
10:51c10l has quit []
10:51c10l has joined #asahi
10:52gabuscus has quit [Ping timeout: 480 seconds]
10:52j_eypovik: oh cool, didnt know you got the headphones working
10:54poviknsklaus_: ^^ essentialy i am trying to figure out where do these numbers come from
10:54povikso that the driver is a bit more universal
10:54nsklaus_i see (well, kind of, since i'm not hardware dev, but i see what you mean). so you're doing some form of reverse enginering, chip analysis, to develop this driver ? it's a complete new driver for linux with no previous support ?
10:56nsklaus_you're using marcan's hypervisor and other tools, to analyze the sound chip, what registers it toggle, what info it treats, and how ? that kind of things ?
10:57povikwell you have two parts of the problem
10:57povikthe SoC part, where you have to convince a peripheral to take the samples from memory and put them onto a serial digital interface
10:57povikand then the codec part, where another IC part on the circuit board takes those samples from the digital interace and creates an analog signal from them
10:58povikin the second part there is for example already a driver for a similar speaker-amp/codec IC in linux
10:58povikso that i just invoked with some small fix to get the speaker working
10:58povikin the first, SoC part, you are starting from scratch
10:59nsklaus_interesting, do you have to fiddle with interupts and ipc stuffs for the various socs elements to talk to each other in the correct time frame and all ?
10:59poviknot that much, you have a DMA engine which takes the samples from memory which triggers an interrupt to ask for more samples
11:00povikother than that, you just have to turn on the elements in the correct order
11:00nsklaus_many thanks for the infos, it's interesting to hear those details
11:01povikhappy to answer :)
11:04gabuscus has joined #asahi
11:05nsklaus_would be nice to hear from those adventurous enough to already have asahi up and running if they can manage to get headphone port to work, especialy on laptops
11:06nsklaus_although, i'm wondering how much that headphone support, being only in the m1n1 part, also allow it to be used when everything else (linux itself) is fully up and running ?
11:08nsklaus_if i'm understanding correctly, it would just be a matter of running the python script through a m1n1 remote term, even if linux is fully up and running on the target machine ?
11:08povikthe python script is just a demo
11:08nsklaus_yes i understand that, but it's a nice test
11:09povikthe knowledge there contained needs to be transferred into the linux driver before it's of any use to you on linux
11:09povikso no, it's not just a matter of running the pythons script while linux is booted up :-p
11:09nsklaus_just testing if audio does or does not come out of headphone plug on laptop, even though if right now it's just for testing a sample audio
11:09povikmaybe if you had two mac minis!
11:09povikone running linux, the other the m1n1 proxy
11:10povikthan you could use the second as a fancy external sound card for the first
11:10nsklaus_a 700$ external soundcard
11:10povikwell that's how i was using my mini once i got the speaker up initially
11:11povika form of celebration i suppose
11:11nsklaus_of course yes
11:14nsklaus_i'm disgressing but the silent explosion of joy, when you're a dev, working on something and you finaly manage to get some success after fiddling long hours, you're alone in the night, and it start working, and you feel like fireworks and celebration are in order but noone's around, everyone is sleeping and you must stay quiet, that part alway amused me :)
11:14nuh^ has joined #asahi
11:15gabuscus_ has joined #asahi
11:18nsklaus_but maybe that's just me because i only vaguely know what i'm doing and when by accident i finaly make it work i'm then more joyful than i should be..
11:19gabuscus has quit [Ping timeout: 480 seconds]
11:20nsklaus_anyway, i'm very much looking forward having sound support in asahi, wish you courage and perseverence
11:22gabuscus has joined #asahi
11:24poviknsklaus_: i think we all get joyful when we get things working in the middle of a night :)
11:25gabuscus_ has quit [Ping timeout: 480 seconds]
11:25povikthanks. i will let you know once i get headphones working on the '14 macbook pro i am expecting to arrive
11:25povikotherwise i only have the mini to test on
11:26nsklaus_ah you took one of these new beasts
11:27nsklaus_good to hear
11:28rktpovik: Do you think is there any new model Mac mini this year with M1 max or pro soc?
11:28gabuscus_ has joined #asahi
11:29poviki don't think so. but my guess is as good as anyone elses
11:30rktpovik: Apple release new M1 chip too fast. we can not catch up.
11:30rktIt seems Apple are planning to release M2 chip as fast as macOS and iOS
11:31rkttypo: M1
11:31poviknot necessarily we can't catch up. we will see how this goes but i expect most of the work on m1 will transfer to the new chips well
11:32gabuscus has quit [Ping timeout: 480 seconds]
11:32nsklaus_rkt: on the good side, if i'm not mistaken, apple keeps api and registers names and all the same across the same arch. i think marcan talked about that a little while ago ?
11:32nsklaus_so everything should stay more or less quite similar from m1 to m1pro and m1max
11:33nsklaus_..hopefully..
11:34rktnsklaus_: yeah, i think they will keep instructions set the same for a long time.
11:35rktBut if not, that’s normal, since they just need to update their compiler. :p
11:43gabuscus_ has quit [Remote host closed the connection]
11:44gabuscus has joined #asahi
11:48gabuscus has quit [Read error: Connection reset by peer]
11:56gabuscus has joined #asahi
12:14nuh^ has quit [Remote host closed the connection]
12:18alexstor_ has joined #asahi
12:18chadmedrkt: its not so much the instruction set, linux has had arm support for a very very long time. the hard work is platform-specific drivers for things like the GPU, SPI controller, USB host controllers, etc
12:19chadmedthe things that actually make a computer useful
12:23chadmedif apple make material changes to these things then these changes have to be reverse engineered and drivers modified to reflect them
12:24alexstore06 has quit [Ping timeout: 480 seconds]
12:38gabuscus_ has joined #asahi
12:39gabuscus_ has quit [Read error: Connection reset by peer]
12:40gabuscus has quit [Ping timeout: 480 seconds]
12:54gabuscus has joined #asahi
13:06aleasto has joined #asahi
13:31marcanrkt: I expect to "catch up" on monday
13:31marcanpeople vastly overestimate the delta effort required to support newer chips
13:31marcanespecially "we just doubled all the things" type changes like this one
13:35rktmarcan: I just read a news from the interenet on Arashi Linux a few days ago, they qouted that you were ordering some m1pro m1max Macs.
13:35marcanthe pro is arriving on friday, and I'm going to try to bring it up on monday
13:35marcan(busy weekend)
13:36gabuscus has quit [Ping timeout: 480 seconds]
13:38sailorek1234 has joined #asahi
13:43gabuscus has joined #asahi
13:49gabuscus_ has joined #asahi
13:53gabuscus has quit [Ping timeout: 480 seconds]
13:59sailorek1234 has quit [Quit: sailorek1234]
14:00sailorek1234 has joined #asahi
14:01sailorek1234 has quit []
14:03j_eymarcan: 2am zzZzzZz
14:04marcanit's likely to go on until well into the morning in EU ;)
14:04marcanI have ~8h allocated that day
14:05j_eylucky monday is my day off!
14:19TheLinkBank holiday in my part of Germany
14:34hspak6 has joined #asahi
14:35hspak has quit [Remote host closed the connection]
14:35hspak6 is now known as hspak
14:47hspak has quit [Ping timeout: 480 seconds]
15:00jmr2 has joined #asahi
15:03jmr2agraf: off-topic... I was looking at the status of your patches for the M1 in QEMU. If I understand correctly, everything is merged upstream, just not included in any official release yet?
15:03agrafjmr2: yeah, it will be in the next release. Also you can't boot Windows :)
15:04jmr2Not that it bothers me much, but why is that?
15:04agrafjmr2: (well, you can, with a trick: Use -M virt,virtualization=on. That will switch internal QEMU logic into treating SMC calls as PSCI calls)
15:05jmr2Another patch coming ?
15:05agrafjmr2: Windows is running an SMC call on boot. The QEMU arm maintainer considers the default virt machine to have "no EL3 implemented" which means the SMC instruction is supposed to trigger a #UDEF according to the spec
15:06agrafIt's one of those bits in the spec where based on what functionality your CPU has, the hypervisor's ability to trap it changes
15:06yuyichao has quit [Ping timeout: 480 seconds]
15:08jmr2Thanks for the clarifications - and for your persistence in getting those upstream. The number of revisions was impressive.
15:20jmr2 has quit [Remote host closed the connection]
15:29yuyichao has joined #asahi
15:47bps has quit [Ping timeout: 480 seconds]
16:02X-Scale` has joined #asahi
16:05user982492 has joined #asahi
16:08X-Scale has quit [Ping timeout: 480 seconds]
16:16bps has joined #asahi
16:33* kovsees the discussion on qemu and checks if his patches for keyboard input quality of life have made it yet
16:33___nick___ has joined #asahi
16:34kovnope, I guess the cocoa mantainers are still MIA xD
16:37___nick___ has quit []
16:38___nick___ has joined #asahi
16:39___nick___ has quit []
16:40___nick___ has joined #asahi
16:44bps has quit [Ping timeout: 480 seconds]
16:45nobodyna1a has joined #asahi
16:50nobodynada has quit [Ping timeout: 480 seconds]
17:15user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:02bgb_ has quit [Ping timeout: 480 seconds]
18:22user982492 has joined #asahi
18:51jacoxon has joined #asahi
18:54jacoxon has quit []
18:55jacoxon has joined #asahi
19:08Nspace has joined #asahi
19:11tophevich[m]TheLink: don't forget that at the time of the stream you will already have changed to CET (the day before will still being on CEST). Meaning on Sunday Japan 11:00 would be 04:00 Germany but on Monday it is 03:00.
19:13TheLinkgiven that until earlier today I had totally forgotten about this holiday, this is getting quite complicated :P
19:17tophevich[m]you can't just forget the catholic "day of the dead", a day of rememberance ... (just yanking your chain :D)
19:21user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:21TheLinkmy grandma wanted me to become a priest, good thing I didn't
19:27tophevich[m]but in all honesty, it is the one "religious" day I can get behind, as it is a free day to remember the dead, which is a good thing independent of religion, it's just that they (religions) monopolized "grieving culture", as large non theist communities don't exist long enough in big enough numbers to develop their own to be generally known or available.
19:27* tophevich[m]is sorry for going so far off-topic
19:29tophevich[m](talking about "western" world, as I'm quite ignorant)
19:31jacoxon has quit []
19:32maor26 has quit [Quit: Leaving]
19:34user982492 has joined #asahi
19:38X-Scale has joined #asahi
19:42X-Scale` has quit [Ping timeout: 480 seconds]
19:56jeffmiw has joined #asahi
19:57user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:30user982492 has joined #asahi
21:10jeffmiwdid anyone booted linux under the hv recently ? I must be doing something wrong.
21:11jeffmiwI'm creating my macho this way: cat ../../m1n1_marcan/build/m1n1.macho arch/arm64/boot/Image.gz arch/arm64/boot/dts/apple/t8103-j274.dtb ../../initrd/init-new.gz > m1n1-payload.macho
21:11jeffmiwand doing a run_guest this way: python3.9 ../../m1n1_marcan/proxyclient/tools/run_guest.py m1n1-payload.macho
21:12j_eyjeffmiw: and?
21:12jeffmiwjust after jumping to the kernel it is like it is rebooting in m1n1 and stay there
21:13j_eyweird.. did you update m1n1? Im on the latests and its fine
21:15jeffmiwyes I'm chainloading the latest version 0d0a646
21:16jeffmiwok, if you have it working with similar commands, I'll try to understand why it is not working on my side
21:18bps has joined #asahi
21:21jeffmiwsame result, I think there is something wrong with my macho payload, m1n1 says it found kernel/devicetree/initramfs but then No valid payload found
21:23jeffmiwyes, you need to put the kernel Image.gz at the end ... so the macho image shall be constructed like this: cat ../../m1n1_marcan/build/m1n1.macho arch/arm64/boot/dts/apple/t8103-j274.dtb ../../initrd/init-new.gz arch/arm64/boot/Image.gz > m1n1-payload.macho
21:23j_eymy image.gz is first
21:25jeffmiwhumm first but still after the m1n1.macho ?
21:26Nspace has quit [Quit: Nspace]
21:26jeffmiwI have the linux kernel booting but it is taking over the USB and I'm loosing the HV proxy interface :(
21:26j_eyyeah sorry
21:26j_eyyou need to disable the usb ports in the dtb
21:27j_eyor just one of them
21:33jeffmiwso I should turn one of the USB_DWC3/2 off or both to keep one for the hv ?
21:35j_eyi cant remember which port is which, but comment one of them out.. if it doesnt work, its the other one :p
21:42jeffmiwstrange, I'm back to the no valid payload found. It seems I need to dig into this one
21:45jeffmiwok ok ... I needed your patch in payload_run for the m1n1 in the concatenated macho image ... not just chainloading it. now things are making sense
21:46jeffmiw has quit [Remote host closed the connection]
21:48jeffmiw has joined #asahi
21:55j_eyi always chainload and payload the same m1n1
22:02yuyichao has quit [Ping timeout: 480 seconds]
22:09bps has quit [Ping timeout: 480 seconds]
22:19Nspace has joined #asahi
22:37bps has joined #asahi
22:44user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:48user982492 has joined #asahi
23:06aleasto has quit [Quit: Konversation terminated!]
23:23user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
…