#
…

2023-10-08

00:34hightower3 has joined #asahi-dev
00:39jeisom has quit [Ping timeout: 480 seconds]
00:41hightower2 has quit [Ping timeout: 480 seconds]
01:13AnuthaDev_ has quit []
01:15as400 has quit [Remote host closed the connection]
01:20as400 has joined #asahi-dev
01:46hex-spell has quit [Ping timeout: 480 seconds]
02:00gabuscus has quit []
02:13hex-spell has joined #asahi-dev
02:56gabuscus has joined #asahi-dev
03:24DannyB has joined #asahi-dev
03:44cylm has quit [Ping timeout: 480 seconds]
03:45tristan2_ has joined #asahi-dev
03:47tristan2 has quit [Ping timeout: 480 seconds]
04:11hex-spell has quit [Ping timeout: 480 seconds]
04:33dylanchapell has quit [Read error: Connection reset by peer]
04:42jason1923 has joined #asahi-dev
04:43jason1923 has left #asahi-dev [#asahi-dev]
04:49dylanchapell has joined #asahi-dev
04:50DannyB has quit [Ping timeout: 480 seconds]
04:55jason1923 has joined #asahi-dev
04:55jason1923 has quit []
05:23midou has quit [Remote host closed the connection]
05:47midou has joined #asahi-dev
05:58crabbedhaloablut has joined #asahi-dev
06:05balrog has quit [Ping timeout: 480 seconds]
06:09balrog has joined #asahi-dev
06:58lena6 has quit [Remote host closed the connection]
07:08chadmedmarcan: m1n1 1.4.0 build fails with clang 17 https://github.com/AsahiLinux/m1n1/pull/339
07:09chadmedthanks :)
07:09marcanI'm going to roll new tags of everything for now, flying out tomorrow
07:09marcanhope we got most of the borkage so far
07:10espothx chadmed :D, you where faster :D
07:11chadmedespo: it was simple enough to fix i couldnt help myself :P
07:47compassion17850 has joined #asahi-dev
07:52leiomarcan: could we turn the speakers on for the Studios at m1n1 level, where they don't really have tweeners to blow up and would need a kernel arg still? Or that would give too much an impression for the rest to start risking?
07:53r0ni has quit [Ping timeout: 480 seconds]
07:53compassion1785 has quit [Ping timeout: 480 seconds]
07:53compassion17850 is now known as compassion1785
07:56marcanI thought they were already, but I guess it's the Minis anyway
07:57marcan*Minis only
07:57marcananyway, this is all coming together soon, there's no point in rushing out bits piecemeal
07:57marcan(also does anyone seriously use the speakers in the desktops? :p)
07:58leioyeah, I had to patch dts for M2 Ultra Studio, pass kernel option, grab chadmed's ucm tree and tweak one thing in alsamixer and it's working great
07:58leioI needed it to get audio jack working
07:58leioas the kernel ASoC stuff would barf overall otherwise
07:58leioand pipewire would show me just dummy output
07:59leio(chadmed helped me out)
08:00jannegI guess for the m2 someone needs to run the audio tracer to see how macos configures the amplifier
08:02jannegheadphone jack should work just with the UCM files which haven't been updated for the 2023 machines
08:03leioif asahi UCM stuff wan't installed, it worked to the extent of very silent microphone only, no sound out of headset
08:03leioif it was with Mac Studio J475.conf file added to do same as J375, it broke that too to this dummy output
08:04leiowith chadmed's production branch it needed speaker enabled to work for the time being and get the UCM tweaks applied which improved microphone volume and then kept sound output working as well
08:06leioI guess that basically the UCM stuff assumes speakers are there or otherwise error out overall
08:07marcanthe audio jack should work without any of this though?
08:07marcanyou do need the UCM files, but those should be installed already
08:08leioonly microphone worked, didn't make a beep without
08:08leiowithout UCM
08:08marcanwhich exact machine is this?
08:08leiowith UCM they broke, once I actually added a J475 toplevel conf to make those be used
08:08leioM2 Ultra Mac Studio 2023
08:08marcanyeah that one wouldn't be there yet
08:08marcanbecause that machine isn't supported at all yet :p
08:09leioas I said, chadmed helped me with this
08:09marcanyou shouldn't need any kernel/dts changes for that though
08:09marcanjust the UCM files (if done correctly)
08:09leioyeah, not supported at all, I just have everything I need going, except kernel HDMI :)
08:09marcanwe already went through that with the M1 desktops, where if you didn't have speakers they broke at one point, but not any more
08:09leioI guess the UCM files might need some tweaks then :)
08:09leio(and thus no GPU :( )
08:10marcanno video is the bigger problem
08:10marcanGPU works
08:10leioanyhow, if things are coming together and you think we should just wait for that, I'm good, I know what I need to patch on kernel upgrades
08:10marcanbut without DCP support that's not going to actually result in working graphics
08:10marcanand right now those machines are framebuffer-only (as of very recently)
08:11leiowhat do we need to do with DCP, is it being worked on or is it something to try to work on myself somehow
08:11marcanjanneg is working on that
08:13leiook, please do let me know if I can help in any way; testing, grunt work, anything. I've made this my daily driver already and quite motivated. Though my graphics driver and similar experience dates back to Geode LX times
08:13marcanleio: testing on j375 the headphone jack works just bringing up the volume in alsamixer, so j475 should be the same. I'm running this one headless so I haven't tested pipewire/ucm/etc, but it should definitely work if the configs are right.
08:14jannegheadphones with alsa should work without ucm files on j475d if the alsa device is configured correctly, not sure if pipewire will interfere with the config
08:14leiomaybe it was the volume level problem then and chadmed steered me towards trying the upcoming UCM stuff
08:15leiowhich I did, and he's aware what needs some further tweaks for the microphone volume
08:15jannegthe ucm files apply the necessary configuration
08:15marcanit's possible the upcoming UCM stuff borks without speakers again, not sure if that's been tested.
08:16marcanleio: quick fix would have been to just look in /usr/share/alsa/ucm2/conf.d/macaudio and copy&replace everything mentioning j375 into j475
08:16marcanthat should do it
08:16marcanno need for any newer configs
08:16leiothe upcoming configs initially gave stuff like https://bpa.st/ZRPQ without speakers enabled, etc
08:16jannegchadmed was planning to remove the speaker detection so I would expect that that breaks again without speakers
08:16marcanyeah that would do it
08:17marcanleio: those errors are expected
08:17marcanthey happen on all machines
08:17marcanit doesn't mean it won't work
08:17marcanthat just means something tried to play back sound on the *speaker* subdevice
08:17marcanthe *headphone* subdevice should still work
08:18leioI do have it working with the new UCM stuff now, speakers too, that's why I'm just asking if we should enable at m1n1 level for M2 Studio at this point
08:18leiosorry, not m1n1 level, kernel dts level
08:18marcanno because we don't even ship those UCM files or anything else yet for speaker support
08:18marcanand this whole thing is relatively moot until video is usable anyway
08:18marcanby which time speaker support will be ready across the board most likely
08:19leiothere's still the kernel cmdline gate as well
08:19marcanbasically we're working on a bunch of things at once, and trying to enable half-assed support partway along the way is just a distraction, when the machine isn't really usable for other reasons.
08:19marcanthat gate will go away once speakersafetyd stuff is done
08:20leioM2 Ultra is so fast and silent that even 30% all cores for llvmpipe rasterize_scene stuff makes it quite usable for non-games on OpenGL gnome-shell :) but yes, not a normal thing to "support"
08:20marcan(basically replaced by a watchdog-capable magic handshake with userspace, that falls back to not no audio, but rather just a very low volume cap)
08:33chadmedjanneg: yeah my branch currently has no speaker detection so any acp/ucm interaction will fail on the missing mixer elems. the problem for leio initially was indeed the jack mixer elems not being set to sane defaults without ucm or kcontrol fixup in macaudio
08:33chadmednone of this will matter in a little while anyway so *shrug*
08:57lina has quit [Remote host closed the connection]
09:00marcaneiln: just tried j456, this one has an IMX364.
09:00marcanI'll poke around and see if it runs the obvious way
09:01eilnwonderful
09:02j`eyI wonder if there will be a sucessor to that machine
09:03marcanyeah heh
09:03marcanApple seems not to care about the iMacs much lately...
09:06kidplayer666They didn't even launch an iMac pro..
09:06kidplayer666I got a feeling that the Mac category, despite the recent apple silicon revolution is kinda getting divested from
09:06eilnyour pixel 5a has a 363, mildly interesting
09:07marcanthe one that just died on me? lovely :p
09:08kidplayer666did it die cause of mistreatment or simply because Google hasn't in 7 years figured out QC yet
09:09marcaneiln: one camera config, 1920x1080 only
09:09kidplayer666I bet you, in a month there will be reports of the new Pixel 8 breaking down in some hilarious way
09:13hightower3 has quit [Ping timeout: 480 seconds]
09:14marcankidplayer666: the latter
09:14marcanat least they're RMAing it for free
09:14chadmedkidplayer666: the mac isnt going anywhere lol
09:15kidplayer666marcan: I heard that when it came to the camera cracking thing they weren't covering it under warranty
09:15kidplayer666So I wasn't sure how well it was covered when it came to the rest
09:16kidplayer666chadmed: I feel that the chance for asahi to even exist is slimming down as Apple tries to strenghthen control over the platform
09:16kidplayer666An AppStore exclusive Mac doesn't feel too farfetched (it's now called an iPad)
09:16* j`eylooks for a post by markan about this
09:17chadmedthey re-engineered iboot _specifically_ to enable stuff like asahi to exist
09:17marcaneiln: works, boring :p
09:17marcanI'll cut a new release with that
09:18eilntooo ez
09:18zalyx0 has quit [Quit: later alligator]
09:19chadmed has quit [Remote host closed the connection]
09:19kidplayer666j`ey: thanks
09:20zalyx0 has joined #asahi-dev
09:20marcanasahi-6.5-11 tagged with that stuff
09:20jeisom has joined #asahi-dev
09:24zalyx0 has quit []
09:31chadmed has joined #asahi-dev
09:36zalyx0 has joined #asahi-dev
09:38cyrinux has quit []
09:40cyrinux has joined #asahi-dev
09:40cyrinux has quit []
09:40cyrinux has joined #asahi-dev
09:41cyrinux has quit []
09:41cyrinux has joined #asahi-dev
09:43marcanasahi-dev packages updated
09:48Deewiant has quit [Remote host closed the connection]
09:49Deewiant has joined #asahi-dev
09:52espo has quit [Quit: WeeChat 4.0.5]
09:56cy8aerBecause it is still not in asahi-6.5-11: Would it be possible to offer the camera resolutions needed for web applications that are offered with macOS on mbpro14/m1 please? According to https://webcamtests.com/resolution these are VGA, HD, and FHD. With Linux only FHD is offered. I know it is hopefully only a bit dtp but it would be very useful on many web applications.
09:58cy8aers/dtp/dts/g
09:58espo has joined #asahi-dev
10:14hex-spell has joined #asahi-dev
10:20darkapex has quit [Ping timeout: 480 seconds]
10:47marcannon-cfg0 (t600x) does not have them, instead it has some funnier resolutions that come straight from sensor presets. we may or may not want to add the extra resolutions there too.
10:48cy8aer has quit [Remote host closed the connection]
10:48marcanI guess I'll add it just for consistency
10:56cy8aer has joined #asahi-dev
10:57jeisom has quit [Ping timeout: 480 seconds]
11:29marcancy8aer: should be in -12 now
11:30cy8aermarcan: Thank you.
11:32jannegasahi-6.5-11 / m1n1-1.4.x works on j375d/j493
11:33cy8aerI'll try that out right away...
11:38darkapex has joined #asahi-dev
11:45cy8aeryep, now it works (e. g. jitsi)
11:46flom84 has joined #asahi-dev
11:52flom84 has quit [Quit: Leaving]
11:55flom84 has joined #asahi-dev
12:00marcanTIL common webcam software doesn't know how to downscale...
12:07jeisom has joined #asahi-dev
12:08DannyB has joined #asahi-dev
12:12dcow has joined #asahi-dev
12:12ChaosPrincess has quit [Quit: ChaosPrincess]
12:13ChaosPrincess has joined #asahi-dev
12:20DannyB has quit [Ping timeout: 480 seconds]
12:41r0ni has joined #asahi-dev
12:45DannyB has joined #asahi-dev
12:58AnuthaDev has joined #asahi-dev
13:19espo has quit [Quit: WeeChat 4.0.5]
13:58DannyBATL has joined #asahi-dev
13:58DannyB has quit [Read error: No route to host]
14:01espo has joined #asahi-dev
14:03DannyBATL@marcan: Just FYI - i found a wifi point that, when scanned, crashes the 4388 driver (even without the 6G patches). So you'll have at least one more patch once i figure out what's going on, i'll rebase to the asahi-wip branch. I suspect we have one of the structure versions wrong but they didn't modify it enough to matter in most cases.
14:07marcangotcha, thanks
14:11janneglooks like we need to handle missing calicration files in older versions of appleh13camerad gracefully
14:17hightower2 has joined #asahi-dev
14:18flom84 has quit [Ping timeout: 480 seconds]
14:38hightower2 has quit [Read error: Connection reset by peer]
14:49AnuthaDev has quit [Ping timeout: 480 seconds]
14:57dcow has quit [Remote host closed the connection]
15:03zalyx0 has quit [Quit: later alligator]
15:05zalyx0 has joined #asahi-dev
15:05dcow has joined #asahi-dev
15:10hightower2 has joined #asahi-dev
15:17dcow has quit [Ping timeout: 480 seconds]
15:19hightower3 has joined #asahi-dev
15:19hightower2 has quit [Read error: Connection reset by peer]
15:21hightower4 has joined #asahi-dev
15:24darkapex has quit [Remote host closed the connection]
15:24darkapex has joined #asahi-dev
15:26marcanjanneg: 12.3 doesn't have all of them?
15:26marcan12.4 has to at least
15:26hightower4 has quit [Read error: Connection reset by peer]
15:28hightower3 has quit [Ping timeout: 480 seconds]
15:41jeisom has quit [Ping timeout: 480 seconds]
15:44zalyx0 has quit [Quit: later alligator]
15:47jannegcopying now 12.3 and 12.4 appleh13camerad
15:50dcow has joined #asahi-dev
15:51DannyBATL has quit [Ping timeout: 480 seconds]
15:51marcanmade it a warning instead of an error, package pushed
15:58dcow has quit [Ping timeout: 480 seconds]
16:06hightower2 has joined #asahi-dev
16:11zalyx0 has joined #asahi-dev
16:17dcow has joined #asahi-dev
16:21dcow has quit [Remote host closed the connection]
16:25dcow has joined #asahi-dev
16:29jannegany idea why simpledrm could end up with such a bogus looking resource on fedora: "simple-framebuffer simple-framebuffer.0: [drm] *ERROR* could not acquire memory range [bus ffff5581cc480580-ffff80008006bae0 flags 0xffffc578ca683088]:"?
16:29jannegthe devicetree in /proc looks fine
16:33dcow has quit [Ping timeout: 480 seconds]
16:39dcow has joined #asahi-dev
16:43cyrinux has quit []
16:45dcow has quit [Remote host closed the connection]
16:45cyrinux has joined #asahi-dev
16:45dcow has joined #asahi-dev
16:54j`eyjanneg: you said you didnt see this on gentoo right? with the exact same dtb
17:05dcow has quit [Remote host closed the connection]
17:08dcow has joined #asahi-dev
17:11dcow has quit [Remote host closed the connection]
17:11dcow has joined #asahi-dev
17:18dcow has quit [Remote host closed the connection]
17:25jacksonchen666 has quit [Ping timeout: 480 seconds]
17:26dcow has joined #asahi-dev
17:35zzywysm has joined #asahi-dev
17:36zzywysmmarcan: are you intending to update the m1n1 subproject within asahi-installer to something newer than 1.3.3?
17:46jeisom has joined #asahi-dev
17:50dcow has quit [Remote host closed the connection]
17:56j`eyjanneg: seems to fix things: https://termbin.com/s7gx
17:56j`ey(that err case might need to free memory, just make the simplest thing I could do to try)
17:57dcow has joined #asahi-dev
17:57psykose has quit [Remote host closed the connection]
17:58psykose has joined #asahi-dev
18:00j`eyif it works, I can look at trying to make it a proper patch
18:05dcow has quit [Ping timeout: 480 seconds]
18:05jannegj`ey: no, simpledrm intentionally doesn't do that. simpledrm should only grab the aperture if it is free. otherwise it could race with the proper drm driver if both are built-in or modules
18:05j`eywell that's where the issue stems from
18:05j`eyEFIFB is enabled in fedora, I guess not in your gentoo setup?
18:05jannegI noticed that fedora builds with efifb
18:06jannegI tried to block eififb's initcall but that didn't change anything, also did not look like efi grabbed the framebuffer from sysfs
18:07j`eyI disabled FB_EFI, and I didn't get the issue
18:08j`eythis is where it was failing for me
18:10dcow has joined #asahi-dev
18:12dcow has quit [Remote host closed the connection]
18:16dcow has joined #asahi-dev
18:19dcow has quit [Remote host closed the connection]
18:19jannegdespite of the error simpledrm still seems to work. error is before the kernel calls init but with "rhgb quiet" removed from cmdline args it still print systemd startup messages
18:21j`eyare you sure it's not efifb?
18:21jannegsomething breaks once the system is booted, on shutdown I see again messages
18:22jannegI don't see any of efifb's messages in the kernel log, blocking efifb_probe makes no difference
18:23j`eyhttps://termbin.com/bieq this fixes the weird numbers
18:29jannegthe issue seesm to be that kwin apparently can't deal with simpledrm + asahi failing to work
18:35j`eyI'm just testing by booting to a console *shrug*
18:49jannegbooting to a console works after disabling sddm
18:50j`eyI'll submit that message fix in a few days, that'll at least avoid the 'wtf are those numbers' issue
18:54jannegthanks, yes it lead me into the wrong direction. I wonder if we have to do something to register the framebuffer as aperture
18:55hex-spell has quit [Quit: WeeChat 4.0.5]
18:55j`eything is, that error leads to a return, which leads to the probe failing..
18:56j`eyI would double check if it's failing in devm_aperture_acquire / overlaps, that means something else ahs grabbed it
18:58j`eywait, I just noticed your message is a little different to mine
18:58j`ey(oh nvm, that might still be due to the &res vs res issue)
19:00jannegfull section of simpledrm initializing: https://paste.debian.net/1294448/
19:01j`ey-16 is EBUSY
19:03j`eybtw I'm testing on a laptop, j313 air m1
19:05jannegok, the issue I saw is that software can't handle simpledrm + working GL driver which can't interact with simpledrm
19:07richyliu21 has joined #asahi-dev
19:08jannegbut I think that case works in other setups, i.e. I always had a working desktop when booting with nomodeset
19:12richyliu2 has quit [Ping timeout: 480 seconds]
19:12richyliu21 is now known as richyliu2
19:26lynndotpy has quit [Quit: bye bye]
19:26lynndotpy has joined #asahi-dev
19:45AnuthaDev has joined #asahi-dev
19:51SalimTer- has joined #asahi-dev
19:52Z750 has quit [Quit: bye]
19:52Z750 has joined #asahi-dev
19:55SalimTerryLi has quit [Ping timeout: 480 seconds]
20:14hex-spell has joined #asahi-dev
20:56AnuthaDev has quit []
21:05cylm has joined #asahi-dev
21:19crabbedhaloablut has quit []
23:09jeisom has quit [Remote host closed the connection]
23:11jeisom has joined #asahi-dev
23:52dcow has joined #asahi-dev
…