2021-08-23
00:14al3xtjames has quit [Quit: Ping timeout (120 seconds)]
00:14al3xtjames has joined #asahi
00:19kettenis has quit [Ping timeout: 480 seconds]
00:33robinpalyssa: see https://www.phoronix.com/scan.php?page=news_item&px=Linux-Apple-M1-Boots-GNOME ?
00:42kettenis has joined #asahi
01:26klangeDon't skip school. The paper they give you can be really useful even if the other bits aren't.
02:45Gues__________________________ has joined #asahi
02:46Gues__________________________ has left #asahi [#asahi]
02:56PhilippvK has joined #asahi
02:59phiologe has quit [Ping timeout: 480 seconds]
03:10quarkyalice has quit [Remote host closed the connection]
03:12quarkyalice has joined #asahi
03:18quarkyalice has quit [Remote host closed the connection]
03:19quarkyalice has joined #asahi
03:40marvin24_ has joined #asahi
03:44marvin24 has quit [Ping timeout: 480 seconds]
04:10yuyichao has joined #asahi
04:41klangeI skipped quite a few classes in my uni days and almost didn't get the paper because of it, would not recommend doing too much of that.
04:44analoq has joined #asahi
04:45quarkyalice_ has joined #asahi
04:47quarkyalice has quit [Ping timeout: 480 seconds]
04:51analoq_ has quit [Ping timeout: 480 seconds]
05:21quarkyalice has joined #asahi
05:53svenskipped lots of classes during my bsc and msc, still got a phd in the end. now i wouldn't necessarily recommend it but i'd do it again this way
05:56skali has joined #asahi
05:57skali has quit []
06:15marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
06:31chadmedthe woman that ran my uni's anatomical sciences department is insane. she designs her assessments to be as inconvenient and convoluted as possible such that they require you to simply have knowledge outside of the curriculum. she admitted in her first lecture that she deliberately does this to make our grades worse as a "reality check"
06:32chadmedi do not know why such people are allowed to become educators, or allowed to stay in those positions once their stupid bs has been outed
06:34chadmedwishing i actually did computer science as my undergrad now, but even then the unis in my city have terrible compsci degrees. one is basically just bachelor of oracle db and the other is just bachelor of web development. no one i know who graduated from either actually did ANY computer science. i think one uni has a course where you have to show that you can use ssh to pass but thats about it
07:15chadmedyeah suffice it to say i have not enjoyed my undergrad much at all mostly on account of this woman. sucks doubly hard because in order to progress to med school here you need to have certain grades in her courses and she knows that
07:18OliverGraff[m] has joined #asahi
07:20OliverGraff[m] is now known as ograff
07:56x56 has quit [Quit: Ծ-Ծ]
08:00x56 has joined #asahi
08:00aleasto has joined #asahi
08:07aleasto has quit [Quit: Konversation terminated!]
08:09aleasto has joined #asahi
08:13rethematrix[m] has joined #asahi
08:24aleasto has quit [Quit: Konversation terminated!]
08:25aleasto has joined #asahi
08:26aleasto has quit []
08:32aleasto has joined #asahi
08:36aleasto has quit []
08:37aleasto has joined #asahi
08:58j_ey has quit [Quit: leaving]
09:18chadmed has quit [Remote host closed the connection]
09:19chadmed has joined #asahi
09:19notjoey has joined #asahi
09:19chadmed has quit [Remote host closed the connection]
09:55notjoey has quit [Quit: WeeChat 3.2]
09:59tomtastic_ has joined #asahi
10:02tomtastic has quit [Ping timeout: 480 seconds]
10:16obflv[m] has joined #asahi
10:22chadmed has joined #asahi
10:50j_ey_ has joined #asahi
10:51j_ey_ has left #asahi [#asahi]
10:52j_ey has joined #asahi
11:45landscape15[m]Do you need to set permissive security also for the main OS drive? Sometimes i get some errors with bputil.
11:59j_eymarcan: cherry-picked the new clock gate code, and it works with the keyboard patches I have
12:11svenmarcan: how did this ever work for you? i get serrors unless i fix that line to map it as nonposted
12:13j_eyI have to look back at the _np details.. but that was only for certain memory regions right? not all mmio?
12:31afwolfe has joined #asahi
12:33afwolfe has quit []
12:44yuyichao has quit [Ping timeout: 480 seconds]
12:47j_eyalso m1n1's 017f050fffb8f426eafe65b6a24d71fdc16131f7 reboots my m1 and kills the python side for me
12:58mazmarcan: I can trigger one almost at will from a KVM guest: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?h=hack/m1-pcie-v2&id=2c9981b6a289354c22989e70cef0e51b9e632091
12:59svenhttps://f.svpe.de/a815b109b34d9c5a48775f181a7812d7431cb19cd656b097d9b5082ffceba215_0001-HACK-print-M1-SError-sys-regs.patch
13:00mazmarcan: I suspect that it happens at the point where we turn the MMU off between the EFI stub and the kernel proper.
13:03mazsven: thanks, I'll give that a go and see what or reports (though that will probably be just more random numbers we can't make sense of).
13:07marcanand AIUI this firmware is not macos-tied, so if the update broke it we were doing something wrong to begin with
13:08alyssamarcan: bringing up display driver without UART was real "fun", since adding the disp0 DART to the dt automatically caused the screen to go black on boot :-p
13:08marcanI think it's pretty enough to have a chance at upstream, I'll probably throw it over the fence soon, once we verify it works with all the bits and pieces so far
13:09marcandebugging ASC/RTKit stuff is going to be a massive PITA without it, sane debug should be part of the driver forever
13:11alyssaI think I have corellium's driver? or was it sven's one with the commit message "WIP"? or....
13:12jbowen has joined #asahi
13:15mazkettenis: it didn't look too bad last time I checked. at least, that's a (semi) universal way of describing a range.
13:16kettenismaz: you'd be happy with a msi-controller.yaml that defines the controller side of things?
13:17marcanI guess then there's another cause register, probably ESR itself then, or one of the impdef regs
13:18mazmarcan: yup, that's what I thought. the ESR always has the same IMPDEF value 0xbf40100a. it triggers exactly once per VM boot (every time the guest reboots as well).
13:40marcanpanic(cpu 0 caller 0xfffffe0014dc288c): GFX SERROR Exception class=0x2f (SError interrupt), IL=1, iss=0 - agx_background(2)
13:40marcanI guess that's *another* firmware with compat issues. hopefully not as insane as DCP though.
13:41marcan[ASCTracer@/arm-io/ans] [syslog] <0x1(GetBuf) 0010400000000000 (TYPE=0x1, UNK1=0x4, DVA=0x0)
13:42marcan[ASCTracer@/arm-io/ans] [syslog] >0x1(GetBuf_Ack) 0010400823d90000 (TYPE=0x1, UNK1=0x4, DVA=0x823d90000)
13:42alyssathe field doesn't exist it's just a horror film trope that whenever you think about it the number goes up by one and when the field overflows something ominous happens
13:46marcanthey get to play fast and loose with this crap with DCP and AGX and a few others, but ANS, SEP, SMC and friends have to be backwards compatible forever
13:48marcanI mean think about it, downgrading firmware on your *SSD* would be a terrible idea for your data
13:52PedroArajo[m] has joined #asahi
13:54PedroArajo[m] has left #asahi [#asahi]
13:57j_eymarcan: ok, the vuart is working better now. Dunno what happened before (I know I was chainloading.. but *shrug*)
14:11marcanfwiw DCP says [12,12], which sounds like the version number is a general RTKit thing, not anything specific to each device
14:11chadmed has quit [Ping timeout: 480 seconds]
14:13marcanalso it's starting to sound like I should be dumping a proper rootfs on my nvme, finally...
14:16svenand i kinda want to wait until i cleanup rtkit until alyssa tortures it with DCP and we actually know what we need there
14:44jeffmiw has joined #asahi
15:01jeremiah has quit [Ping timeout: 480 seconds]
15:10marcandidn't bother CCing anyone other than the get_maintainers stuff for that ioremap thing since it's beyond trivial
15:11alyssamarcan: trivial or not, I'd like to be aware of all m1 related patches so I can collect fixes on my downstream
15:11marcanalyssa: I'm still going to do that devel branch thing, might spend some time on that tomorrow before i2c
15:12marcanso you probably want to go off of that (and anything upstreamed should end up there first)
15:18chadmed has joined #asahi
15:18marcanpeople push to feature branches and they get automatically merged into a branch, a la linux-next
15:20alyssalinux-next works because, AFAIU, it's overwhelmingly patches that will land in mainline as-is
15:20marcanconflicts aren't resolved; largely we should be touching different subsystems, the only pain point I foresee is the devicetree
15:21alyssasven: here have a name drop, you'll be able to get your non-bobsledding achievements on WP in no time 😋 https://www.theregister.com/2021/08/23/gnome_asahi_linux/
15:25alyssaI thought it through and came to the conclusion that manually rebasing would be less work than trying to automate, but I wouldn't mind being proved wrong.
15:29marcanI mean you'll still want to rebase as you work, the main thing is we have a weirdo dependency chain in some places and this would let us point people at one place instead
15:29marcanbut it might make more sense to do it manually, maybe I should just make it a weekly thing or something
15:40jeremiah has joined #asahi
16:12phiologe has joined #asahi
16:15PhilippvK has quit [Ping timeout: 480 seconds]
17:01stelleg[m] has joined #asahi
17:11jbowen has quit [Read error: Connection reset by peer]
17:17jbowen has joined #asahi
17:26j_eymarcan: I dont understand why the vuart clears irqs for the real hardware? https://github.com/AsahiLinux/m1n1/commit/017f050fffb8f426eafe65b6a24d71fdc16131f7#diff-1b336351c4d6687f2272c4e7182649df4ea05fe131588cecc0ec32f575ed2940R44
17:27jeremiah has quit [Ping timeout: 480 seconds]
17:49mazmarcan: the SError seems to be triggered by this sorry excuse for a vGIC. thankfully, we can repurpose the ThunderX hacks, which seem to do a reasonable job at hiding the HW issues.
18:11mazalyssa: writing a full blown hypervisor is similar to writing a CPU. I guess this satisfies my HW inclination enough that I don't have to write any RTL...
18:12hramrachthe ting is that linux-next is manually resolved. There tends to be no linux-next on weekends if you look closely
18:17jeremiah has joined #asahi
18:27jeffmiw has quit [Ping timeout: 480 seconds]
18:56yrlf has quit [Quit: Ping timeout (120 seconds)]
18:57yrlf has joined #asahi
18:59jbowen has quit [Ping timeout: 480 seconds]
19:04jbowen has joined #asahi
19:08jeffmiw has joined #asahi
19:17erincandescent has quit [Remote host closed the connection]
19:18erincandescent has joined #asahi
19:30shaman_br[m] has joined #asahi
19:42jbowen has quit [Ping timeout: 480 seconds]
20:00jbowen has joined #asahi
20:17yuyichao has joined #asahi
20:31yuyichao has quit [Ping timeout: 480 seconds]
20:33yuyichao has joined #asahi
20:39PhilippvK has joined #asahi
20:42phiologe has quit [Ping timeout: 480 seconds]
21:10jeffmiwTrying to look at spi/kbd interrupt and transfer stuff, I see accesses to sio and dart-sio, I understand that dart-sio should do some address translation of some sort(iommu like), but no clue on what sio is. Any one haveing any idea on how to look at them and interpret what there are doing ?
21:15jbowen has quit [Ping timeout: 480 seconds]
21:15j_eyjeffmiw: I think the dart sio.. might be something unrelated? there appears to be an sio that looks like a coprocessor
21:19jeffmiwmy understanding of the spi/kb patches are they are not using the interrupt and doing polling, so I was trying to better understand the interrupt mechanism
21:24j_eyapple_spimc_irq for the actual spi irq and applespi_gpioirq_isr for the part in the keyboard driver
21:33pipcet[m]jeffmiw; is it at all possible you've got audio feedback for keystrokes enabled? because audio would make sense, IMHO...
21:33jeffmiwI was looking at the ones from amw : https://github.com/amworsley/AsahiLinux/tree/asahi-keyboard
21:42jeremiah has quit [Quit: leaving]
21:49svenfwiw, dart-sio is special and either needs full bypass mode or someone to reverse engineer how DAPF actually works and set that one up
21:52jbowen has joined #asahi
21:56sventhey *could* do something crazy like have that co-processor drive the SPI controller and then DMA the results back but uhhh.... that would surprise me
22:08jbowen has quit [Quit: leaving]
22:14jeffmiwmay be they need to do this "crazy" thing not for the keypad but because of the touchpad: touchpad will need more data volume and speed than the keypad for sure, and from a power it may be better to use a dma than cpu cycles for that ...
22:19desairc has joined #asahi
22:25jeffmiw has quit [Ping timeout: 480 seconds]
22:29alyssasven: still possibly higher power consumption for the copro to do ld/st/ld/st/ld/st than a hw dma block
22:35aleasto has quit [Quit: Konversation terminated!]
22:45desairc has quit [Quit: desairc]
22:58desairc has joined #asahi
23:19skoobasteeve_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:19skoobasteeve has joined #asahi
23:24skoobasteeve has quit []
23:26skoobasteeve has joined #asahi