#
…

2021-05-15

00:10raster has joined #asahi
00:14raster- has joined #asahi
00:15raster has quit [Ping timeout: 246 seconds]
00:15raster- has quit [Client Quit]
00:16raster has joined #asahi
00:25mixfix41 has joined #asahi
00:32raster- has joined #asahi
00:32raster has quit [Ping timeout: 245 seconds]
00:37raster- has quit [Client Quit]
00:48jottr has quit [Ping timeout: 252 seconds]
01:01jottr has joined #asahi
01:06jottr has quit [Ping timeout: 268 seconds]
01:16scooby2 has quit [Read error: Connection reset by peer]
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:21jottr has joined #asahi
01:21Emantor has joined #asahi
01:34marcanjannau: that was a nice thing to wake up to, thanks :)
01:35marcanalmost exactly what I had in mind, I just want to change the dwc side API to take a pipe parameter instead of having two versions, and then put wrappers to call those in usb.c (this also gets rid of the ugly casts there)
01:35marcanno worries if you don't get to it by the time I start working on the other stuff, I'll just merge it and tack that on as a separate commit
02:39phiologe has quit [Ping timeout: 245 seconds]
02:40phiologe has joined #asahi
03:13rjeffman has quit [Ping timeout: 246 seconds]
03:35marvin24 has quit [Ping timeout: 250 seconds]
03:35KindTwo has joined #asahi
03:35KindOne has quit [Ping timeout: 240 seconds]
03:35marvin24 has joined #asahi
03:37KindTwo is now known as KindOne
05:03jeffmiw has joined #asahi
05:07maknho has joined #asahi
05:07jeffmiw has quit [Ping timeout: 245 seconds]
05:08maknho has quit [Client Quit]
05:09maknho has joined #asahi
05:22VinDuv has joined #asahi
06:00adamcstephens has quit [Quit: The Lounge - https://thelounge.chat]
06:04adamcstephens has joined #asahi
06:42m0drobert is now known as modrobert
06:55m42uko has quit [Quit: Leaving.]
07:07m42uko has joined #asahi
07:11raster has joined #asahi
08:13raster has quit [Quit: Gettin' stinky!]
08:54vimal has joined #asahi
09:10raster has joined #asahi
09:18jannaumarcan: yes, that's cleaner. is there a reason for the ssize_t / size_t return type mismatch between iodev .write/.read and usb_dwc3_read/write?
09:19marcaniodev can return errors as negative numbers
09:19marcanjannau: I was going to stream now but I spent some time on #-dev, so if you want to tweak that soonish I can merge it then :)
09:21jannauPR already refreshed with using wrappers in usb.c
09:21Eighth_Doctor is now known as Conan_Kudo
09:21jannauusb_dwc.c returns 0 on errors
09:22Conan_Kudo is now known as Eighth_Doctor
09:24marcanjannau: it's kind of ambiguous what to return on errors, depending on what kind of error, might be worth reviewing the failure paths, but not a priority right now
09:24marcan(I should document this too...)
09:48marcanjannau: you have a clang-format issue :)
09:49jannaumarcan: fixed
09:50marcanjannau: can you drop the USAGE_VUART thing? I'm just going to make the python side pick the right one
09:50marcannot point in trying to write to both, especially since one will be handed off to the guest
09:50marcanyou can leave the hv_vuart change as is, I'm going to mess with that anyway
09:50marcanjust no need for the usage flag, it can just be 0
09:51jannausure proably faster if you edit to the state you like
09:51marcanI'll just edit and push :)
09:58jannauenum is in usb_dwc3.h
09:59jannaumarcan: in usb_dwc3.h is still CDC_ACM_PIPE_VUART
10:02j`eywhat does this second vuart add?
10:03j`ey(I mean, whats the usage, the purpose etc)
10:04j`eyohhh (answered by marcan on stream)
10:06jannaumarcan: the acm interfaces are 1 and 3
10:07jannau0 and 2 are the control ones
10:21aquijoule_ has quit [Ping timeout: 240 seconds]
10:22richbridger has joined #asahi
10:25jannaumarcan: running m1n1 as guest worked here without errors
10:26jannaui.e. without USB errors
10:26odmir_ has joined #asahi
10:31odmir_ has quit [Ping timeout: 268 seconds]
10:35jannaumy change rebased on main still works here
11:35j`eymarcan: what was the bug, i missed it
11:36j`eylol woops
11:58jeffmiw has joined #asahi
12:02jeffmiw has quit [Ping timeout: 246 seconds]
12:07zkrx has quit [Ping timeout: 268 seconds]
12:28zkrx has joined #asahi
12:40raster has quit [Quit: Gettin' stinky!]
13:06jabashque has quit [Quit: Connection closed for inactivity]
13:08agnem has quit [Ping timeout: 252 seconds]
13:17VinDuv has quit [Quit: Leaving.]
13:30ephe_meral1 has joined #asahi
13:45emptynine has quit [Ping timeout: 260 seconds]
14:18odmir has joined #asahi
14:23odmir has quit [Ping timeout: 260 seconds]
14:34VinDuv has joined #asahi
15:08ephe_meral1 has quit [Ping timeout: 265 seconds]
15:44kettenis has quit [Ping timeout: 252 seconds]
15:48maknho_ has joined #asahi
15:50maknho has quit [Ping timeout: 245 seconds]
15:56kettenis has joined #asahi
16:00AONeiLL[m] has quit [Quit: Idle for 30+ days]
16:22zkrx has quit [Ping timeout: 260 seconds]
16:24herbas has joined #asahi
16:34zkrx has joined #asahi
16:53herbas has quit [Quit: herbas]
16:59kettenis has quit [Ping timeout: 252 seconds]
17:01kettenis has joined #asahi
18:03kettenismarcan: thanks for merging that pcie PR
18:04marcansorry it took so long, it was really silly of me to leave it on the backburner like that
18:04marcanwasn't even much of a review
18:04marcan(feel free to ping me in the future if I do this again...)
18:04kettenisheads up to folks using u-boot: you need the code on the apple-m1-mini-pcie branch if you update m1n1 to a newer version
18:05marcanI should try it, now that I have sven's hack merged too
18:05marcanI want to see the pcie stuff work :)
18:05marcanwonder if it all works under the hypervisor too!
18:08kettenisnot sure what will happen if you try to boot macos after running that code
18:08ephe_meral1 has joined #asahi
18:09kettenisI've been experimenting a bit with better pinctrl and pcie DT bindings
18:10kettenissumitted the pinctrl bindings to the linux mailing list last weekend
18:11kettenisI'll probably do a v2 to fix a typo tomorrow and submit the pcie series as well
18:12_aliceWhat’s up?
18:12kettenisbeen distracted a bit as some folks threw me a RISC-V curveball
18:13kettenisbut we need proper clock and DART DT bindings as well before I can think about upstreaming the U-Boot stuff
18:13* svenhides
18:14sveni could just submit the clock stuff which maps a single page for each clock
18:15svenregarding the DART stuff I wanted to make sure this DAPF or the SMMU instances don't need special treatment first. i think they don't.
18:15svennow i just need to fix that 16k/4k pages issue and then i can submit v3
18:17kettenisI still think it is a mistake to have the darts and sub-darts as separate device nodes, but I guess I'll cope
18:18sveni still don't have a strong opinion on that
18:18svenbut the maintainers seemed to prefer the separate node thing *shrug*
18:19svenit's still weird that some parts of the dwc controller have to use the first dart and others the second dart though
18:28rjeffman has joined #asahi
18:34marcanthat just sounds like a massive hack
18:35marcanlike they had two DMA masters that get randomly used
18:35marcanand couldn't funnel them into a single DART so they just yolo'd it and threw two on there
18:37svenpeterThe truly weird part is that a single DART should support up to 16 masters
18:38marcanis that really 16 masters, or is it 16 tags on a single master?
18:38kettenisAttributeError: 'super' object has no attribute '_reset_input_buffer'
18:38marcanpyserial version difference?
18:39marcanthat's from sven's PR
18:39kettenisthis is version 3.4
18:39marcantty_dev.reset_input_buffer()
18:39marcanI had it without the _hm
18:40marcanI have 3.5
18:43marcankettenis: you can just comment that stuff out, it's just about managing messages in the uart buffer at script startup time
18:43marcangoing to sleep now but I'll look tomorrow
18:44choozy has joined #asahi
18:53svenpeterHmmm… good point, it might be 16 tags for a single master
18:53svenpeterThat would also explain why literally every single device has its own dart
18:56kettenisso there is a separate dart for each pcie root port but devices behind those ports each use their own tag?
18:57kettenisin other news, with the updated m1n1, the timeout of the OpenBSD bootloader prompt suddenly behaves as it should
18:57ketteniswonder what changed there
18:58pipcet[m]in hypervisor mode or just chain-loaded?
18:58kettenisjust chain loaded
18:59ketteniswonder if that fixes the slowness of netbooting that was reported the other day
19:00pugguu[m]Odd question but would installing asahi linux void warrenty
19:00pipcet[m]svenpeter: maybe they're just dart cheap
19:01pipcet[m]I do think it's weird that even the touchbar display goes through a dart of its own
19:02pugguu[m]Also will there be a a debian based image once we have everything working
19:03kettenisonce evrything works, any linux distro should just work
19:04pugguu[m]But wouldn't the distro creator need to make a image first
19:05pugguu[m]Or could i use a raspberry pi image or dose it have to be a generic aarch64 image
19:05kettenisa standard arm64 image should just work
19:05pugguu[m]Just intrested
19:05j`eypugguu[m]: depends if the rpi kernel disables features
19:05svenpeterEventually most Linux installers should just work once all kernel patches have propagated downstream
19:06pipcet[m](Debian works fine with the Corellium kernel, with the exception of Emacs which had a 4KB page size assumption)
19:07kettenisI've already loaded a Linux kernel from a standard arm64 debian installer written to a usb stick
19:07kettenisU-Boot boots GRUB and GRUB boots the kernel
19:07kettenisof course the kernel didn't work because it doesn't have any support for the M1
19:08kettenisbut once debian ships with a 5.13 kernel it should at least print some stuff on the console
19:09pipcet[m]I've actually put together a debian-installer-in-a-macho monster
19:09pugguu[m]Sorry if i do get abit annoying with all the questions, its because i havent the slightest of clue on how this all works
19:09pipcet[m]too large for stock m1n1 to load, but it works fine with kmutil :-)
19:10ketteniswell, that's the problem with you linux people
19:11kettenisyou can't agree on a standard way to boot an OS ;)
19:12pugguu[m]I no joke just hit install and use something like synaptic or software center to get what i need and use it
19:13agrafkettenis: just keep up the great work :D. And thanks a lot for the U-Boot port!
19:13pugguu[m]Only started using linux full time last year untill i got my m1 mini and am using mac os untill this project is redy
19:15svenpeterUboot -> grub sounds totally fine to
19:15svenpeterboot Linux to me ;)
19:15pugguu[m]I will probs do some user testing once we get some sort of gui or de going
19:15ephe_meral1 has quit [Ping timeout: 240 seconds]
19:17pugguu[m]All i would need is 1 list of things to test with a list of commands and im good to go
19:18pugguu[m]But we are talking alot later
19:20pugguu[m]Anyways im gonna go see if mum has finished her movie so i can get my cookie dough icecream
19:31kettenissven's PR also broke loading a kernel without explicitly specifying a tty on the command line
19:32kettenisissued a PR to fix that
19:32maknho__ has joined #asahi
19:35maknho_ has quit [Ping timeout: 246 seconds]
19:39svenpeterWeird, I remember testing that. Looks like many things changed in the past month. Thanks!
19:41kettenisyeah, probably the universe changed around you ;)
19:43svenpeterDamnit, I hoped that wouldn’t happen again ;)
19:43jeffmiw has joined #asahi
19:43pugguu[m]Ben&jerrys Cookie dough ice-cream acquired
19:47jeffmiw has quit [Ping timeout: 240 seconds]
19:56alice[m] has joined #asahi
20:11niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
20:12niv has joined #asahi
20:13niv has quit [Client Quit]
20:22raster has joined #asahi
20:25DarkShadow44 has quit [Ping timeout: 246 seconds]
20:41choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
20:45odmir has joined #asahi
20:47jeffmiw has joined #asahi
20:52VinDuv has quit [Quit: Leaving.]
20:54odmir has quit [Ping timeout: 240 seconds]
21:04niv has joined #asahi
21:04DarkShadow44 has joined #asahi
22:31jeffmiw has quit [Remote host closed the connection]
22:32raster has quit [Quit: Gettin' stinky!]
22:40jeffmiw has joined #asahi
22:43m0drobert has joined #asahi
22:43modrobert has quit [Read error: Connection reset by peer]
23:00DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
23:05niv has quit [Ping timeout: 245 seconds]
23:08taziden has quit [Ping timeout: 250 seconds]
23:46taziden has joined #asahi
23:50jeffmiw has quit [Remote host closed the connection]
…