#
…

2021-05-28

00:02cdesai is now known as ircdesai
00:04ircdesai has quit [Quit: ircdesai]
00:05cdesai has joined #asahi
00:05cdesai is now known as ircdesai
00:07tertu has quit [Ping timeout: 480 seconds]
00:07ircdesai is now known as cdesai
00:09cdesai has quit []
00:09ircdesai has joined #asahi
00:09ircdesai is now known as cdesai
00:10cdesai is now known as ircdesai
00:11ircdesai has quit []
00:11ircdesai has joined #asahi
02:25PhilippvK has joined #asahi
02:28phiologe has quit [Ping timeout: 480 seconds]
02:44emilazydunno, but i could believe it
03:16marvin24 has joined #asahi
03:17marcanin principle "everything" is in scopre, but it's unlikely we'll ever get to do all the userspace work that isn't done yet, so we do kind of depend on the overall state of these things in Linux moving forward on its own too
03:17marcanI'm happy to fix bugs or implement missing tidbits in random userspace packages though, once everything else is done... but that'll take a while :)
03:18marcan(re HDR and such)
03:19marcanah-[m], sven: the next step for the hypervisor is starting to build modular hw-specific tracing bits that hook into the mmiotrace subsystem
03:20marcanso a SEP one would dump all the SEP commands and parse them to the extent we understand them, etc
03:20marvin24_ has quit [Ping timeout: 480 seconds]
03:21randomdud has joined #asahi
03:51bgb_ has quit [Quit: WeeChat 3.0.1]
03:52bgb has joined #asahi
03:59randomdud has quit [Remote host closed the connection]
04:16bgb_ has joined #asahi
04:18bgb has quit [Ping timeout: 480 seconds]
05:26VinDuv has joined #asahi
05:50TheJollyRoger has quit [Remote host closed the connection]
05:50TheJollyRoger has joined #asahi
05:53EmantorFYI, my USB serial connection was dropping out with a 3.2 Gen 2 (10GBit/s) C-to-C cable, switching to a USB A to C with an older USB 2.0 hub fixed that.
06:02tsida has quit [Remote host closed the connection]
06:13dottedmagRequired formats are argb8888 and xrgb8888, but compositors expose more formats. It's up to clients to make use of them.
06:24VinDuv has quit [Quit: Leaving.]
07:10kettenis_Emantor: wonder if that is because m1n1 isn't doing some of the PHY tuning at the moment
07:13svenEmantor: interesting. i use a 3.2 gen 2 c-to-c cable as well and i never had issues like that. is that on a mac mini?
07:13sveni was hoping to only need the tunable and all that for usb > 2 but who knows
07:15EmantorSecond port is the USB-C port on an Asus X370 Pro Ryzen motherboard.
07:15Emantorand target mac is a mini
07:16svendid you see anything in dmesg or some debug prints from m1n1?
07:17Emantornothing on the dmesg side, no debug prints on the fb, don't know about the debug uart, since I don't have the necessary hardware to use it yet.
07:18_jannau_USB C-C cable works fine for me to the USB-C port of a thinkpad thunderbolt docking station
07:18sventhey should've shown up on the fb console fwiw
07:18svenso essentially the connection just dopped?
07:18Emantoryes, UART receive timed out, devices stayed available.
07:49marcanarnd, maz: chances of arm64 linux ever getting universal page size builds? :-)
07:50marcanEmantor: does it show up as a SuperSpeed or a High Speed device?
07:50marcanI assume the latter, in which case the SS lanes should not matter...
07:51marcanUART receive timing out etc usually means m1n1 crashed
07:51marcanwhen that happens the device controller stays up, but it won't reply to any USB transactions
07:52marcanespecially if e.g. echo 1 > /dev/ttyACM0 hangs
07:52Emantoryep, high speed.
07:53marcanyou can try changing the iodev code at the top of iodev_console_write to use IODEV_FB instead of IODEV_UART as the fallback reentrancy path
07:53marcanthat should let you see exceptions that happen *during* USB code on the framebuffer
07:57mazmarcan: no, that's way to hard. you'd have to assume 64kB for all page alignments, turn the VA range into something dynamic... you'd be better off having 3 kernels, compiled for each page size, and get the bootloader to pick the one you want.
07:58marcanmaz: figures...
07:58mazwhich obviously would be 16kB for M1 thanks to the DART limitation...
07:58marcanthis is unfortunate for people who want to use distro kernels
07:58mazyeah, this is a total bummer.
07:59mazwe *may* be able to do something in the DMA layer to just map all memory in the PCI DARTs and treat it as a bus offset.
07:59maz(alpha style).
08:00marcanI... really don't want to enable thunderbolt like that
08:00marcanthat's almost worse than it just not working
08:01mazthen 16kB it has to be. we can't have different granularities between MMU and IOMMU.
08:01tsida has joined #asahi
08:02mazwhich means no distro kernels for M1.
08:02maz(or a M1-specific distro).
08:02marcanwell, we could convince distros to at least ship these kernels
08:02marcanit's not like it's a custom fork, just a config change
08:03marcanthey already like to ship a bunch of kernel variants anyway
08:03* Emantorneeds to really disable the chime
08:03mazsure. it just doubles the number of kernels to ship, and the size of the validation space.
08:04mazEmantor: dremel?
08:04EmantorWith USB-C I get "usb-dwc3@382280000: unsupported SETUP packet".
08:05* Emantorhas watched enough streams that the ha sounds exaclty like marcan in his head.
08:05marcanEmantor: modprobe usbmon && usbmon -i usb1 (or whatever your bus number is)
08:05marcan(much easier than making m1n1 dump it all out)
08:05marcanthat just means we're missing some standard request (we're missing a bunch)
08:06pinskiaI missed that M1 requires 16k page sizes. The last time I tested 16k pages sizes in arm Linux (long time ago) on the Cavium ThunderX1, it failed if there was more than 32G installed. I don't know if this was solved yet.
08:06pinskiaI should say arm64 Linux
08:06marcanpinskia: the CPU does not, but the IOMMU does (apparently)
08:08pinskiaI always wondered why ARM added 16k page size to the spec as a (late) optional feature and I guess Apple is the answer
08:17Emantormarcan: magratgarlick.emantor.de/usbc_m1n1_setup_failure.pcapng
08:20marcanCLEAR FEATURE seems unimplemented
08:21marcanbut it got an EPIPE on a bulk in, that's weird
08:22marcanEmantor: it looks like you're looping back on the port?
08:22marcanlike you have the tty in cooked mode or something, though that shouldn't *break* things
08:25marcanI think the set feature thing is a red herring, it's trying to clear the endpoint stall after it happens
08:32arndUbuntu started shipping 64KB page kernels in addition to 4KB, so maybe they would add a third one as well
08:34arndI can also imagine running a 4KB page kernel on M1, as long as that rules out connecting arbitrary devices on thunderbolt. For the internal devices it's no worse than any of the other chips that have no usable IOMMU at all
08:35Emantormarcan: I assume its something on the Linux USB side, I also got dmesg errors this time. Switching from C-to-C to C-to-A also moves to a different port with basically no other device on the port.
08:37bgb has joined #asahi
08:39bgb_ has quit [Ping timeout: 480 seconds]
08:40kettenis has joined #asahi
08:42kettenis_ has quit [Ping timeout: 480 seconds]
08:45robinp_ has joined #asahi
08:50marcanEmantor: pushed some changes, let me know if they improve things
08:50marcanbut also paste any dmesg errors please
08:52j_eymarcan: CI failed :<
08:53robinp has quit [Ping timeout: 480 seconds]
08:56Emantorstill borked, dmesg has xhci_hcd 0000:02:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 4. I found some older LKML threads with issues on isochrounous transfers on intel XHCI ports, the port with USB-C has isochrounous transfers from my USB sound card, the USB-A port does not.
08:57marcanthat sounds like a host bug, yeah
08:59eta has quit [Quit: Gateway shutdown]
09:01bih420 has joined #asahi
09:02mazpinskia: yeah, this was added at the last minute (right *after* the arch was frozen) at the request of particular vendor, which explains the very bizarre encoding in ID_AA64_MMFR0_EL1.
09:02Emantor/* HC is busted, give up! */ is above the xhci_err line in the kernel (:
09:15eta has joined #asahi
09:19bih420Hello I am new here, I want to try m1n1 (bootloader) on my mac mini m1 (256gb storage, 16gb ram), I only have 1 m1 hardware with other are amd64(x86_64) machines. I don't have any Arduino (but rpi3), is there any way to try m1n1 on my current situtation or should I wait (lockdown in my country). is there any alternative for meantime I have USB C to USB A cabel(it is usb3) (from pixel 1
09:19bih420box). Thanks, If I break any rules Please pardon me.
09:26bih420 has quit [Read error: Connection reset by peer]
09:28jnah, bih420 left already :(
09:31pinskia@maz I do know that Cavium was the one of the drivers for LSE and v8.1
09:34pinskiaand the reason why CRC is an optional feature of ARMv8.0 was because xgene's core was completed before crc was added to the spec too
09:34bih420 has joined #asahi
09:37bgb has quit [Ping timeout: 480 seconds]
09:39bgb has joined #asahi
09:42bisko has joined #asahi
09:43pinskiaAlso I don't know how many cores implement 16k pagesize;is it still an optional feature, I have not looked into the spec in this area in the last 3 or so years
09:45mazpinskia: they completely fucked the v8.1 stuff in all TX1 implementations.
09:45pinskiayes I know
09:46pinskiaI debugged a lot of it
09:46mazso did I, and then thrown the box again! :D
09:46pinskiacasp was the biggest thing they fucked up
09:46pinskiawell and VHE
09:46mazwell, they alsi ignored the requirement for ASIDs at EL2 with VHE...
09:47mazand the GICv3 virtualisation that allowed the guest to remove all interrupts from the host...
09:47pinskialet me go look up the errata from the bug database
09:49arndpinskia: out of the Cortex cores, it seems that all cores starting with A73/A35 support all three granules (4K, 16KB, 64KB), just not the very earliest ones (A57, A53, A72) that are limited to 4KB and 64KB
09:54pcm720_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
09:54pinskiaDC ZVA was broken too in ThunderX1 but was not found out until much latter when debugging OcteonTX2 (96xx) where a GCC bootstrap was failing; tar would produce a corrupt file. That was one of the easier bugs to debug really
09:54pcm720 has joined #asahi
09:59pinskiaThe harder bugs have been global TLBI related and/or interrupt related
10:01ake_ has joined #asahi
10:02PeterHilgenfeld[m] has joined #asahi
10:07ake_It seems that /dev/cu.usbmodemP_01 on macOS is equivalent to /dev/ttyACM0 on Linux.
10:07ake_It might be useful for those who use Mac Mini M1 as a host.
10:09ake_ has left #asahi [Leaving]
10:11ake_ has joined #asahi
10:15ake_ has quit [Quit: Leaving]
10:37bgb has quit [Ping timeout: 480 seconds]
10:56gladiac has quit [Quit: k thx bye]
10:57bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:57gladiac has joined #asahi
11:23bih420 has quit [Quit: WeeChat 3.1]
12:03peace has joined #asahi
12:24ircdesai is now known as desairc
12:24desairc is now known as cdesai
12:25cdesai is now known as desairc
12:25desairc is now known as cdesai
12:25cdesai is now known as desairc
12:28desairc has quit [Quit: desairc]
12:29desairc has joined #asahi
13:04tsida has quit [Remote host closed the connection]
13:05tsida has joined #asahi
13:14mini has quit [Quit: ZNC closing...]
13:16mini has joined #asahi
13:29bih420 has joined #asahi
13:44Dot has joined #asahi
13:46rafaelmartins has quit [Quit: https://rgm.io/]
13:46rafaelmartins has joined #asahi
13:49bih420 has quit [Quit: WeeChat 3.1]
14:02booffo[m] has joined #asahi
14:47etamarcan, you transcribe directly into Ardour?
14:47marcanthis one I did
14:47marcandepends on what I'm doing
14:48etamy limited experience with the Ardour MIDI editor is that it's not very nice to use >_>
14:48etaso I generally use musescore for transcription and then pipe the MIDI into Ardour later
14:48marcanI find ardour a lot more efficient to input notes than musescore, lol
14:48etawell if you know what the notes are in advance, sure
14:48marcanbut that may just be because I don't find music notation particularly intuitive compared to piano roll, when I'm just going to from sound to midi
14:49etaI'm bad at transcribing so I have to press up/down a lot until the pitches match :p
14:49marcanbut also, ardour midi has gotten a lot better, if you're used to old versions
14:49marcanI also transcribed the chords to the song, but I just did that in a text editor :p
14:50etamy music-fu is way too bad to know how to chords
14:55etaI should try the ardour midi again though
14:56marcanthe only annoying thing is still the rounding errors (e.g. snapping a region to a bar has a 50/50 chance of eating notes that start on that bar) but that's been a long-coming fix in the nutempo branch
14:56marcanhope they finally merge it this year
14:57marcan(I just pad my regions)
14:57etayeah I've had that
15:02bgb has joined #asahi
15:11bgb has quit [Ping timeout: 480 seconds]
15:16bgb has joined #asahi
15:35bgb has quit [Ping timeout: 480 seconds]
15:42peace has quit []
15:57robinp has joined #asahi
16:01robinp_ has quit [Ping timeout: 480 seconds]
16:06hir0pro has joined #asahi
16:37VinDuv has joined #asahi
16:45Dt3 has joined #asahi
16:45Glanzmann has joined #asahi
16:48Glanzmannmarcan: Can be put a hint on https://asahilinux.org/community/ that it requires that you connect to irc.oftc.net using tls in order to join the channels? And congrats on getting macos run inside the m1n1 hypervisor. :-)
16:48marcanI think we can drop that now
16:49marcanthat was an antispam measure
16:49EmantorI ams tarting to wonder how to build a kernel collection using the development kernel. Apple docs are not exactly helpful…
16:50marcanlook at the unofficial blog by apple employees about building custom m1 kernels
16:50marcan*that* one has better docs
16:51marcanthat's what I used to make the one I'm using in the HV
16:51marcan(except just using the dev kernel, not a custom build)
16:52Dot has quit [Ping timeout: 480 seconds]
16:52EmantorHa, I wasn't too far off, but this is still weird. oh well. Thanks.
16:54armarcan: what we now need is to get onto some weird timeline where apple devs start using m1n1 for macos development ;)
16:55sveni sure hope they have jtag/swd :D
16:55svenbut i could totally see some third party kexts devs using the hv as a nicer debugger
17:02marcanar: apple devs are already using our documentation because it's better than theirs in at least some use cases, I hear
17:03armarcan: from what i've heard about how apple operates, i wouldn't be surprised if the better/more accurate docs weren't available to all teams
17:03marcanin particular I think our Codenames page is particularly convenient :-)
17:04marcangoing by xnu build scripts, there's some, uh, mysql database or something they use that contains that kind of info? and it's no doubt only accessible by some people
17:04marcanand probably only a subset
17:05marcansven: I was just talking with a security reporter and I mentioned asahi and he was like "I guess I need a security angle" and I mentioned how I'm sure kernel vuln researchers will *love* the HV
17:06svenlol, yeah
17:15desairc is now known as cdesai
17:17cdesai is now known as desairc
17:17desairc is now known as cdesai
17:17cdesai is now known as desairc
17:33choozy has joined #asahi
17:44pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
17:45pcm720 has joined #asahi
17:53pugguu has joined #asahi
17:57choozy has quit [Ping timeout: 480 seconds]
18:01pugguu has quit [Read error: Connection reset by peer]
18:02pugguu has joined #asahi
18:11pugguu has quit [Read error: Connection reset by peer]
18:12pugguu has joined #asahi
18:16pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
18:16thunfisch has quit [Remote host closed the connection]
18:17pcm720 has joined #asahi
18:17thunfisch has joined #asahi
18:44VinDuv has quit [Quit: Leaving.]
18:48pugguu has quit [Read error: Connection reset by peer]
18:49pugguu has joined #asahi
18:53pugguu has quit [Read error: Connection reset by peer]
18:53pugguu has joined #asahi
19:14pugguu has quit [Remote host closed the connection]
19:15pugguu has joined #asahi
19:19pugguu has quit [Read error: Connection reset by peer]
19:20pugguu has joined #asahi
19:28VinDuv has joined #asahi
19:32kettenisDavid Gwynne and Jonathan Matthew wrote a driver for the NVMe controller for OpenBSD
19:33kettenisand I just fixed the last critical bug
19:33kettenisso I can now access the NVMe disk
19:33kettenisguess I need to repartition the disk now
19:37zopieux has quit [Ping timeout: 480 seconds]
19:39zopieux has joined #asahi
19:48jkkm has joined #asahi
19:49pugguu has quit [Read error: Connection reset by peer]
19:49pugguu has joined #asahi
19:50chipuba has joined #asahi
19:50pugguu has quit [Read error: Connection reset by peer]
19:50chipuba has left #asahi [#asahi]
19:50pugguu has joined #asahi
19:54pugguu has quit [Read error: Connection reset by peer]
19:55pugguu has joined #asahi
20:02hir0pro has quit [Ping timeout: 480 seconds]
20:02SunWuKung has joined #asahi
20:12pugguu has quit [Remote host closed the connection]
20:14pugguu has joined #asahi
20:23yuyichao has joined #asahi
20:30VinDuv has quit [Quit: Leaving.]
20:31yuyichaogot a m1 (pro 8G 256G) ahead of plan (graduation gift) so I'm trying to follow the wiki on it and I've got a few feedbacks/questions.
20:32yuyichaothe device tree name in https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart and https://github.com/AsahiLinux/docs/wiki/SW%3ALinux seems to be out of date. And since it requires preprocessor now and m1n1 has build rule for it, should the command on the SW:Linux page just be removed?
20:33yuyichao2) on my archlinux x64 host, I got both ttyACM0 and ttyACM1 when m1n1 boots ACM0 seems to work, is that expected?
20:33yuyichao3) both ttyACM0 and ttyACM1 disappears when the usb cable was disconnected (as expected) and either shows up again when the cable is plugged back in without rebooting m1n1
20:35yuyichao4) is there a way to talk to linux booted through linux.py using only a usb cable? https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart suggests `/dev/ttyUSB0` bit I couldn't figure out what exactly it should be/if it needs other hardware connection to work
20:35yuyichao(hope this is the correct channel to ask.....)
20:36jannau1) I guess it's safer to use the dtb from the kernel (arch/arm64/boot/dts/apple/t8103-j274.dtb) and not the one from m1n1
20:37jannau2) yes, we added a second cdc acm interface
20:38jannau3) I assume you mean neither. yes, there is no usb connection management in m1n1
20:38yuyichaodo both cdc acm interface do the same thing?
20:39jannauno, the second one is intended for use as virtual uart for the hypervisor
20:39yuyichaoyeah i meant "neither". k. that's fine, I just unplugged it to figure out which one it is (and both disappeared so I was quite confused....)
20:40svenit's not about connection management
20:40svenreplugging also doesn't work with the linux dwc3 driver
20:40sventhere's something going on with the PHY that we don't know yet
20:41yuyichaodo you mean it's a host side problem? (not sure what each name refers to ....)
20:42jannauinteraction with linux requires currently the serial. does the usb cdc gadget already work with the dart/dwc3 usb changes
20:43yuyichaoah, ok. I somehow read "USB gadget support is not yet in our main Linux tree" as "not yet in mainline linux tree" = = .... and thought that it was in the fork ....
20:43jannauit is a problem how m1n1 and linux interact with the m1 usb-c hardware
20:45jannaulinux has a cdc acm gadget, there is currently no support for using the m1 usb-c controller as device in linux except maybe in https://github.com/AsahiLinux/linux/tree/dart/dev
20:48yuyichaooh, a new branch?
20:51tertu has joined #asahi
20:51pugguu has quit [Remote host closed the connection]
20:52tertu has quit []
20:52yuyichaois there any hint on how to use that branch? compiled a kernel on that branch and there's still no ttyACM* after loading linux
20:52pugguu has joined #asahi
20:54jannauthe device tree configures the dwc3 in host mode, changing dr_mode to "peripheral" seems to have no effect
20:54pugguu has quit [Remote host closed the connection]
20:55pugguu has joined #asahi
20:55pipcet[m]don't you need all the userspace/configfs stuff to create a USB gadget?
21:03Dt3 has quit [Ping timeout: 480 seconds]
21:06SunWuKung has quit [Ping timeout: 480 seconds]
21:12choozy has joined #asahi
21:20pugguu has quit [Read error: Connection reset by peer]
21:20pugguu has joined #asahi
21:43pugguu has quit [Ping timeout: 480 seconds]
21:43pugguu has joined #asahi
21:55yuyichao has quit [Quit: Konversation terminated!]
22:12pugguu has quit [Ping timeout: 480 seconds]
22:20perfisk has joined #asahi
22:23perfisk has left #asahi [#asahi]
22:23jannaumy fault. I had CONFIG_USB_DWC3_HOST set, still doesn't work tough
22:34choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:13pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
23:13pcm720 has joined #asahi
23:40SunWuKung has joined #asahi
23:50StupidYui has quit [Remote host closed the connection]
…