#
…

2023-01-20

00:06amarioguybtw is pmc0 always the cpu cycle register?
00:06amarioguythe asahi docs are slightly unclear on this
00:06amarioguy(for apple pmcs to clarify lol)
00:39derzahl has joined #asahi-dev
00:54capta1nt0ad has joined #asahi-dev
01:18derzahl has quit [Ping timeout: 480 seconds]
01:46derzahl has joined #asahi-dev
02:07karpouzihmm, feels unlikely that this would be inconsistent with x64 https://lkml.iu.edu/hypermail/linux/kernel/0511.3/1019.html
02:07karpouzi(amarioguy)
02:36nsklaus has quit [Remote host closed the connection]
02:38karpouzi has quit [Quit: leaving]
03:18derzahl has quit [Ping timeout: 480 seconds]
03:27derzahl has joined #asahi-dev
03:53capta1nt0ad has quit [Remote host closed the connection]
04:16derzahl has quit [Ping timeout: 480 seconds]
04:18Z750 has quit [Remote host closed the connection]
04:20Z750 has joined #asahi-dev
04:37nicolas17 has quit [Quit: Konversation terminated!]
04:47c10l1 has joined #asahi-dev
04:47c10l has quit [Read error: Connection reset by peer]
06:08steven has quit [Quit: ZNC 1.8.2 - https://znc.in]
06:10steven has joined #asahi-dev
06:15jannauamarioguy: pmc 0 and 1 are hardcoded to cycles and instructions
08:13nate8 has joined #asahi-dev
08:37faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:56chadmed_ has quit [Remote host closed the connection]
08:58chadmed_ has joined #asahi-dev
09:15leitao has joined #asahi-dev
09:20MajorBiscuit has joined #asahi-dev
09:59cylm has quit [Ping timeout: 480 seconds]
10:00leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:02leitao has joined #asahi-dev
10:27mkurz has joined #asahi-dev
10:38j`eyt8110 dart support was applied by joerg, yay, 7 fewer patches in bits/020-t6000-dart
10:43jannauprobably to late for t8110 device trees
10:44chadmed_j`ey: the patch number actually went down for the first time ever with 6.2 :P
10:46jluthra has quit [Remote host closed the connection]
10:46jluthra has joined #asahi-dev
10:47jannausven: dp-altmode works even when connected on boot, only the hotplug event is missing in that case. altmodes/displayport.c doesn't issue that if HPD is set during configuration
10:48svenyeah, that's a probe dependency issue
10:48svencompare how e.g. usb-role-switch or the typec-mux works to how that OOB event works
10:49svenif you manage to have dcp up and running before tipd it'll work even when connected during boot iirc
10:49mkurz has quit [Quit: Leaving]
10:50mkurz has joined #asahi-dev
11:00jannauno, the problem I see is that dp_altmode_status_update() is only called once. it set dp altmode up then and never genereates a hotplug event
11:04leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:04svenhuh, true. never saw that here though
11:05svenI vaguely remember making it working during boot by adding a sleep somewhere in tipd
11:05svenand I thought I tracked that down to the probe dependency order
11:05leitao has joined #asahi-dev
11:08jannauI'm currently using my dcp tree with component based probing, i.e. without deferred probing so it should be up earlier
11:10jannauI don't remember if the port links have an influence on probe order but if they do it might be stable now
11:13mkurz has quit [Quit: Leaving]
11:13leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:18amarioguyjannau: gotcha thanks
11:18leitao has joined #asahi-dev
11:24hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:36espo has quit [Quit: fBNC - https://bnc4free.com]
11:40leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:47WindowPa- has joined #asahi-dev
11:47WindowPain has quit [Read error: Connection reset by peer]
12:09espo has joined #asahi-dev
12:15svenping over thunderbolt with dma. for some reason there's a pretty high latency though:
12:15sven# ping google.de
12:15svenPING google.de (142.250.185.195) 56(84) bytes of data.
12:15sven64 bytes from fra16s52-in-f3.1e100.net (142.250.185.195): icmp_seq=1 ttl=115 time=141 ms
12:16svenmy internet is sometimes pretty bad but it's not _that_ bad :D
12:25WhyNotHugo_ is now known as WhyNotHugo
12:28jannauyeah! so 80ms for the first meter and 60ms for the remaining kilometers
12:30faruk has joined #asahi-dev
12:34mazfeels like interrupt latency, not DMA.
12:34mazare you doing MSIs? or INTx?
12:35sventhe dma comment was just to say that the iommu finally works, I'm not sure what exactly causes that latency
12:36mazright. it could be that the MSI write is buffered somewhere. can you configure the memory type for the MSI mapping?
12:39svenI wouldn't know how
12:46MajorBiscuit has quit [Read error: Connection reset by peer]
13:04svenwell... maybe I'm just gonna blame Broadcom for this
13:04sven64 bytes from fra24s04-in-f3.1e100.net (142.250.186.35): icmp_seq=2 ttl=115 time=17.0 ms
13:04sventhat's via a USB adapter via my old apple thunderbolt display
13:05svenwhich also completely breaks bus rescanning. I had to rescan like 5 times before everything was up :/
13:05svenI need to figure out how to that properly
13:06faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:16faruk has joined #asahi-dev
13:21leitao has joined #asahi-dev
13:22MajorBiscuit has joined #asahi-dev
13:33___nick___ has joined #asahi-dev
13:36mkurz has joined #asahi-dev
13:41mkurzjannau: sven: Just curious: HDMI Out does work on the Mac Mini according to the wiki. the the MacBooks its WIP. Does it depend on some other stuff to make it work?
13:43chadmed_mkurz: the hdmi port on the laptops is actually a displayport on an atcphy
13:43chadmed_theres a dp to hdmi chip on the board
13:46chadmed_ has quit [Remote host closed the connection]
13:47mazsven: do you get similarly high latency with local communication?
13:47chadmed_ has joined #asahi-dev
13:47mkurzchadmed_: understand. Hmm.. Not sure if I understand everything correct, but is it possible to connect an external monitor or beamer to the macbook? The wiki says DCP does work in the asahi-edge kernel? Or maybe I just don't get it
13:48mkurzchadmed: And if I understand correct DCP is needed for displayport to work?
13:48mazI wonder if there is some aggressive PM going on on the TB side that would delay something...
13:48chadmed_DCP works, but the code to route a dp signal from it to the type-c phy is not yet in the kernel
13:48mkurzchadmed_: You mean the asahi-edge kernel?
13:49chadmed_DCP is just the display controller, theres a whole ballet dance that needs to happen between it, the DP routing circuitry, the usb-c mux chip, the ATCPHY...
13:49svenmaz: I figured out the latency issues, it was mostly me being dumb. I had to enable some quirks I didn't understand in tg3 to make the adapter work. one of them replaced every single register access with an indirect one through config space
13:49chadmed_yes, DCP is not the only thing involved here
13:49sventhe bigger issue is that everything in that tg3 bar reads back as 0xffffffff
13:49sven(tg3 is the 15000+ lines broadcom driver)
13:50mkurzchadmed_: OK, got it. So currently it is not possible to connect a external display/beamer?
13:50chadmed_no, hence why HDMI Out on the feature page is WIP
13:50mkurzchadmed_: Sad :(
13:50mazsven: tg3 is a horrible driver (to be fair, most bcm drivers are like that). the -1 returns are pretty worrying though.
13:51svenyeah, it sounds like something is still a bit broken. no idea what exactly though
13:51chadmed_mkurz: itll get there soon enough, better to release something that works reliably than a hacky janky mess
13:52svenit only happens with that bcm device so far
13:52sventhe ohci/ehci controllers in this old thunderbolt display work fine e.g.
13:52mazmakes you wonder what sort of glue they used to put this contraption together...
13:53svenI don't think I want to know ;)
13:53mkurzchadmed_: Sure! Looking forward to it! I am very happy with Asahi already!
13:54chadmed_society if there was no broadcom: https://imgur.com/a/5XcLfJm
13:55svenI think I'm just missing some magic poke somewhere. the adapter works fine under macos
14:14King_InuYasha has joined #asahi-dev
14:17nsklaus has joined #asahi-dev
14:24leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:31derzahl has joined #asahi-dev
14:31leitao has joined #asahi-dev
14:43kettenis_sven: what thunderbolt ethernet is that? the apple one?
14:44mkurz has quit [Quit: Leaving]
14:45svenit uses the same chip as the internal one
14:46kettenis_heh, so I have the same stack of dongles here now
14:46kettenis_but no thunderbolt support in openbsd yet of course
14:47svendoes openbsd already have support for the "normal" Thunderbolt NHI?
14:48kettenis_nope; but it nevertheless works on my x9
14:48kettenis_guess the firmware handles everything there
14:49svenyeah, there are firmware connection managers especially on older hardware afaik
14:50kettenis_it is a gen9 so fairly recent
14:50svenshows how clueless I am still about thunderbolt ;)
14:51svendoes hotplug also work?
14:51kettenis_I'm kinda disappointed though; one of the reasons I got the x1 was because I wanted to look at what was needed in OpenBSD to have thunderbolt support
14:52kettenis_turns out that apart from a bug in the pci bridge resource management it just worked
14:52kettenis_inlcuding hotplug
14:52kettenis_just looks like normal PCIe hotplug to the os
14:52svenhah. sounds like some firmware somewhere does all the heavy lifting then
14:52svenfrom what I understand the NHI driver establishes the tunnel and then usually the pcie just gets a hotplug interrupt on x86
15:06leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:11leitao has joined #asahi-dev
15:40nsklaus has quit [Quit: Konversation terminated!]
15:42nsklaus has joined #asahi-dev
15:49leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:51leitao has joined #asahi-dev
15:53seeeath has joined #asahi-dev
16:02faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:28bisko has joined #asahi-dev
16:30faruk has joined #asahi-dev
16:42landscape15 has joined #asahi-dev
16:44landscape15 has quit []
17:05bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:06bisko has joined #asahi-dev
17:11MajorBiscuit has quit [Ping timeout: 480 seconds]
17:19MajorBiscuit has joined #asahi-dev
17:28cylm has joined #asahi-dev
17:30faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:33seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:34seeeath has joined #asahi-dev
17:41MajorBiscuit has quit [Quit: WeeChat 3.6]
17:50bcrumb has joined #asahi-dev
18:06bcrumb has quit [Quit: WeeChat 3.8]
18:28bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:31nsklaus has quit [Remote host closed the connection]
18:32jannauI didn't noticed until now (or forgot) that hpmBusManager is an i2c device too. macos reads something after interrupts, maybe the interrupt source?
18:32aaron465 has joined #asahi-dev
18:36gladiac has joined #asahi-dev
18:39leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:42bisko has joined #asahi-dev
18:43WindowPain has joined #asahi-dev
18:43WindowPa- has quit [Remote host closed the connection]
18:50bisko has quit [Ping timeout: 480 seconds]
18:52leitao has joined #asahi-dev
19:11derzahl has quit [Remote host closed the connection]
19:16___nick___ has quit []
19:18___nick___ has joined #asahi-dev
19:19___nick___ has quit []
19:21___nick___ has joined #asahi-dev
19:27bisko has joined #asahi-dev
19:35bisko has quit [Ping timeout: 480 seconds]
19:42bluetail has quit [Quit: The Lounge - https://thelounge.chat]
19:53bluetail has joined #asahi-dev
19:57faruk has joined #asahi-dev
19:59leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:05hertz has joined #asahi-dev
20:06bisko has joined #asahi-dev
20:06aaron465 has quit [Quit: ZNC 1.8.2 - https://znc.in]
20:07jeffmiw has joined #asahi-dev
20:09jeffmiwback trying ot recover my mba M1 that is not booting at all any more (no sign of life). I compiled & installed all the libimobiledevice tools but I'm getting this error when doing an idevicerestore --latest -v :
20:09jeffmiwSending iBEC (497779 bytes)...
20:09jeffmiwERROR: Device did not disconnect. Possibly invalid iBEC. Reset device and try again.
20:10nicolas17 has joined #asahi-dev
20:10jeffmiwI can see the device usb enumeration: [Fri Jan 20 20:46:40 2023] usb 3-1.1: Product: Apple Mobile Device (Recovery Mode)
20:14jeffmiwanyone faced this previously ? I saw mention that marcan you were able to recover a mpb with idevicerestore ?
20:16mpsjeffmiw: for me idevicerestore didn't worked and I solved this by using another macbook with macos
20:17mpsdon't know if my problem was like your
20:18jeffmiwand how did you solve it ? Latest Apple Configurator 2 ? or something else ? my other mac is a mba 2012 and I can't get latest Apple Conf 2 on it ...
20:19mpsI used m1 macbook
20:22jeffmiwdid you have any sign of life (apple logo or missing disk icon ) ?
20:22jeffmiwor just a black screen ?
20:23mpsI had apple logo
20:23mpsnothing more
20:25tpw_rulesjeffmiw: you are not in DFU mode
20:25jeffmiwand do you remember how usb enum was seen ? was it Product: Apple Mobile Device (Recovery Mode) ?
20:26mpsbut I think if it is identified on other machine it should work, my idevicerestore was old and I was lazy to uprage all 'batteries' needed for it
20:26mpsjeffmiw: I forgot exact details
20:27mpsI followed tpw_rules guide above
20:27jeffmiwtpw_rules: thanks, let me try to fix this then. usefull guide !
20:27bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:33chadmed_ has quit [Ping timeout: 480 seconds]
20:36jeffmiwhaving some hope: got into DFU mode for real, got an apple logo now :) thanks tpw_rules !
20:37nicolas17DFU mode by itself doesn't show anything on screen, so if you're seeing an Apple logo it means the restore process actually made some progress
20:37bisko has joined #asahi-dev
20:38tpw_rulesyeah that means it's pretty much worked
20:48jeffmiwhumm getting stuck now at the "Waiting for device to enter restore mode..." step. I must have not configured usbmuxd correctly. I did the make & make install, and launched it with sudo. Anything else to be done for it to work ?
20:58tpw_rulesdid you start usbmuxd?
21:01nicolas17well, is usbmuxd running?
21:01nicolas17on some distros it auto starts on boot or on USB-device-connect (via udev)
21:03bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:14jluthra has quit [Remote host closed the connection]
21:14jluthra has joined #asahi-dev
21:16seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:17seeeath has joined #asahi-dev
21:18jeffmiwok so I was running an old already installed version of usbmuxd. with the latest one, I was able to recover my mba M1 ! Thanks for the help. Now back to hwmon driver :)
21:19nicolas17how did it break in the first place?
21:21hightower3 has joined #asahi-dev
21:21bisko has joined #asahi-dev
21:21bisko has quit []
21:26chadmed_ has joined #asahi-dev
21:27hightower4 has quit [Ping timeout: 480 seconds]
21:47jeffmiwI deleted some partitions of the asahi minimal install to grow my asahi linux partition with parted. everything worked well till the next reboot without any sign of life
21:47jeffmiwlinux=>desktop
21:48jeffmiwparted must have left the partition table in a state that iboot was not happy with.
21:49jeffmiwnote that I have not lost any macos(I have 2 of them) or asahi data while doing the recovery
22:02nate8_ has joined #asahi-dev
22:09nate8 has quit [Ping timeout: 480 seconds]
22:23hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:32bisko has joined #asahi-dev
22:33bisko has quit []
22:34bisko has joined #asahi-dev
22:41bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:44bisko has joined #asahi-dev
22:45bisko has quit []
23:10nate8_ has quit []
23:10hertz has joined #asahi-dev
23:20chadmed_ has quit [Remote host closed the connection]
23:20chadmed_ has joined #asahi-dev
23:36zalyx has quit [Ping timeout: 480 seconds]
…