marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | 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
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aleasto has quit [Remote host closed the connection]
vx has quit [Server closed connection]
vx has joined #asahi
KDDLB has quit [Server closed connection]
KDDLB has joined #asahi
leo60228- has quit [Server closed connection]
leo60228 has joined #asahi
user982492 has joined #asahi
tertu2 has quit [Server closed connection]
tertu has joined #asahi
tbodt_ has quit [Server closed connection]
tbodt has joined #asahi
thevar1able has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thevar1able has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thevar1able has joined #asahi
yamii has quit [Quit: WeeChat 3.3]
aead has quit [Server closed connection]
aead has joined #asahi
ihaveamac has quit [Server closed connection]
ihaveamac has joined #asahi
user982492 has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aa has joined #asahi
aa has quit [Remote host closed the connection]
jbowen has quit [Quit: leaving]
Method has quit [Server closed connection]
Method has joined #asahi
skipwich has quit [Server closed connection]
skipwich has joined #asahi
emptynine has quit [Server closed connection]
emptynine has joined #asahi
nafod has quit [Server closed connection]
nafod has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thevar1able has joined #asahi
user982492 has joined #asahi
krbtgt has quit [Server closed connection]
krbtgt has joined #asahi
tmlind has quit [Server closed connection]
tmlind has joined #asahi
bdju has quit [Server closed connection]
bdju has joined #asahi
opticron has quit [Server closed connection]
opticron has joined #asahi
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
rbenua has quit [Server closed connection]
rbenua has joined #asahi
klange has quit [Server closed connection]
klange has joined #asahi
gruetzkopf has quit [Server closed connection]
gruetzkopf has joined #asahi
balrog has quit [Server closed connection]
balrog has joined #asahi
mps has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
vnogueira has quit [Ping timeout: 480 seconds]
TheFirst has quit [Server closed connection]
TheFirst has joined #asahi
jeffmiw has quit [Remote host closed the connection]
jeffmiw has joined #asahi
linuxgemini has quit [Server closed connection]
linuxgemini has joined #asahi
akemin_dayo has quit [Ping timeout: 480 seconds]
kallsyms has quit [Server closed connection]
kallsyms has joined #asahi
rossy has quit [Server closed connection]
rossy has joined #asahi
mps has joined #asahi
Chinese_soup has quit [Server closed connection]
Chinese_soup has joined #asahi
djsrv has quit [Server closed connection]
djsrv has joined #asahi
mustache_ride___ has quit [Server closed connection]
mustache_ride___ has joined #asahi
enomem has quit [Server closed connection]
enomem has joined #asahi
eichin has quit [Server closed connection]
eichin has joined #asahi
ovf has quit [Server closed connection]
ovf has joined #asahi
thevar1able has joined #asahi
espo has joined #asahi
esden has quit [Server closed connection]
esden has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ZLSA has quit [Server closed connection]
ZLSA has joined #asahi
steev has quit [Server closed connection]
steev has joined #asahi
aleasto has joined #asahi
austriancoder has quit [Server closed connection]
austriancoder has joined #asahi
gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
gabuscus has joined #asahi
pFalken has quit [Server closed connection]
pFalken has joined #asahi
espo has quit [Remote host closed the connection]
stblassitude has quit [Server closed connection]
stblassitude has joined #asahi
maennich has quit [Server closed connection]
maennich has joined #asahi
Ariadne has quit [Server closed connection]
Ariadne has joined #asahi
akemin_dayo has joined #asahi
philpax_ has quit [Server closed connection]
philpax_ has joined #asahi
jabashque_ has quit [Server closed connection]
jabashque_ has joined #asahi
tardyp has quit [Server closed connection]
tardyp has joined #asahi
psykose has quit [Remote host closed the connection]
psykose has joined #asahi
Vaughn has quit [Server closed connection]
Vaughn has joined #asahi
thevar1able has joined #asahi
gladiac has quit [Read error: Connection reset by peer]
gladiac has joined #asahi
yamii has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thevar1able has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thevar1able has joined #asahi
MajorBiscuit has joined #asahi
MajorBiscuit has quit []
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<Jamie[m]1> hmm, a good fraction of ffmpeg's decode tests fail on my macbook with hwaccel enabled
<marcan> on macos?
<Jamie[m]1> some failing to decode in a case where ffmpeg would recover, some with differences in decoded output
<Jamie[m]1> marcan: yeah just videotoolbox
<marcan> heh
StupidYui has joined #asahi
<marcan> interesting
<marcan> I think rcombs worked on some of that?
<jannau> Jamie[m]1: what do you mean with recover? I wouldn't expect tests with brokens bitstream to behave the same with hw-accel
<jannau> which codecs have non bit-exact frames? just a certain frames or all frames
<jannau> Jamie[m]1: are any of the fate-h264-conformance tests failing?
<Jamie[m]1> yes
<Jamie[m]1> I've just been looking at h.264, https://gist.github.com/JJJollyjim/0e071fb1af446441139e5b388c075015
<Jamie[m]1> I converted one of them to sequence-of-pnm with both decoders and diffed them, it is indeed subtly different
<Jamie[m]1> (and it isn't just a frame-sequence-off-by-one thing, no pairs of frames match up across the hw and sw runs)
<Jamie[m]1> In the case of brokensps, The filters 'graph 0 input from stream 0:0' and 'Parsed_format_0' do not have a common format and automatic conversion is disabled. Error Reinitializing filters.
<Jamie[m]1> In the case of all(?) the others that fail to produce frames, it's [h264 @ 0x137e0ebc0] hardware accelerator failed to decode picture
thevar1able has joined #asahi
<jannau> I would not expect a full bitstream HW decoder to produce bit-exact (or any at all) output with a sample with a broken SPS
<Jamie[m]1> yeah
<Jamie[m]1> what about the conformance ones though?
<jannau> I don't remember what the conformance samples are testing, it's possible that they require features not supported by the HW decoder but the list is longer than what I woud expect
<Jamie[m]1> hmm
<Jamie[m]1> in that case, is it a bug that ffmpeg is delegating incompatible videos to hardware?
<jannau> the samples with pixel differences are unexpected, either something wrong in how ffmpeg uses vtb or vtb does some addtional processing
skoobasteeve_ has quit [Server closed connection]
skoobasteeve has joined #asahi
raiaq_ has quit [Remote host closed the connection]
raiaq has joined #asahi
<Jamie[m]1> for hevc: 172 fail outright, 96 produce different output, out of a total 383
<Jamie[m]1> and for vp9, none fail outright, but 158 produce incorrect output, and 1 fails early after only 3 frames
raiaq has quit [Remote host closed the connection]
raiaq has joined #asahi
<Jamie[m]1> again in vp9, minor differences are visible
JTL has quit [Server closed connection]
JTL has joined #asahi
raiaq has quit [Remote host closed the connection]
raiaq has joined #asahi
<TheLink> usac decoding also broke in ffmpeg
<TheLink> kode54 provided a patch, not sure if that's already been upstreamed
<jannau> Jamie[m]1: the problem for h264-conformance-aud_mw_e is that VTB outputs nv12 instead of yuv420
<jannau> I suspect that will be try for other samples as well
jkkm has quit [Server closed connection]
jkkm has joined #asahi
ciggi has quit [Ping timeout: 480 seconds]
ciggi has joined #asahi
<marcan> ah, colorspaces
akemin_dayo has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
ids1024 has quit [Server closed connection]
ids1024 has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
user982492 has joined #asahi
jabashque_ is now known as jabashque
thevar1able has joined #asahi
akemin_dayo has joined #asahi
NekomimiScience has quit [Server closed connection]
NekomimiScience has joined #asahi
nkaretnikov has quit [Server closed connection]
nkaretnikov has joined #asahi
saintdev_ has quit [Server closed connection]
saintdev_ has joined #asahi
thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cptcobalt has quit [Server closed connection]
cptcobalt has joined #asahi
eroux has joined #asahi
sorear has quit [Server closed connection]
sorear has joined #asahi
aeroraptor has quit [Server closed connection]
aeroraptor has joined #asahi
snek has quit [Server closed connection]
snek has joined #asahi
user982492 has quit [Remote host closed the connection]
user982492 has joined #asahi
DarkShadow4444 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi
<Glanzmann> jannau: Is the dcp driver in a state that I can try it on my mini or should I wait? Does it have hdmi replug support? Does screenblanking work? Have you tried rotation?
malvo has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amarioguy has quit [Ping timeout: 480 seconds]
sjg1 has quit [Server closed connection]
sjg1 has joined #asahi
taowa_ has quit [Server closed connection]
taowa_ has joined #asahi
<jannau> Glanzmann: now that that m1n1 inits the display there is no reason to use the dcp in itss current state
<jannau> replugging is still broken, screen blanking is powering the display off? if so it doesn't work. it dims my display thoguh
amarioguy has joined #asahi
arnd_ has quit [Server closed connection]
arnd_ has joined #asahi
<Glanzmann> jannau: I see. I also used the dcp driver to set the right resolution and to rotate my screen 90 degrees.
<Glanzmann> But I'll try with m1n1 first.
aleasto has quit [Remote host closed the connection]
<jannau> Glanzmann: rotation works but won't with m1n1 alone
<jannau> setting the resolution should work as well if screen is not full HD
<Glanzmann> jannau: My screen is not full hd but, 2560x1440. Than maybe I try it.
<Glanzmann> jannau: How does the screen dimming work, is that done automatically or is there some magic userland utility for it?
<Glanzmann> I assume that this is for the laptops, correct?
<Glanzmann> jannau: Also, what is the best way to build it, should I pull https://github.com/jannau/linux/tree/bits/200-dcp into asahi + the two spi patches + poviks sound patch?
<ChaosPrincess> for dcp driver, how to make sure the display is going via dcp, not efi framebuffer
<jannau> Glanzmann: use asahi-dcp, it also needs patches for rtkit and nvme (dependency of the rtkit changes)
<Glanzmann> ChaosPrincess: DRM_APPLE
<ChaosPrincess> no, not what config it is, how to verify that it actually started and working
<Glanzmann> ChaosPrincess: CONFIG_DRM_APPLE
<Glanzmann> ChaosPrincess: You start X and call xrandr -q
<ChaosPrincess> not what i am asking
<ChaosPrincess> ok, ty
<jannau> the dcp driver will take over control from simpledrm, not sure how that works. tested with simpledrm compiled in and dcp as module
<ChaosPrincess> jannau: also, does asahi-dcp include sound patches?
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Glanzmann> jannau: Does not compile for me: https://pbot.rmdir.de/u/Pr9eZwZVSjbOidQyHIA7Wg
<jannau> ChaosPrincess: it is asahi + dcp (+ spi hid patches)
<jannau> Glanzmann: try again, I forgot to push
<Glanzmann> jannau: THank you.
robher has quit [Server closed connection]
robher has joined #asahi
<Glanzmann> jannau: Xorg does not start for me, IIRC this looks like the colorspace mapping issue? https://pbot.rmdir.de/kx4d-RDSCZJcGIFvB3rbig
<Glanzmann> I assume, you use wayland and not Xorg, correct?
rann has quit [Server closed connection]
rann has joined #asahi
aleasto has joined #asahi
<jannau> xorg works well enough for sddm here. can you check if there's anything in /dev/dri/
ciggi has quit [Remote host closed the connection]
<Glanzmann> jannau: What I did is, I booted up and it started x, than I stopped x, rmmod simpledrm and loaded appledrm and tried to start x again.
<Glanzmann> jannau: /dev/dri does not exist.
<jannau> dmesg | grep dcp
<Glanzmann> dmesg | grep dcp is empty.
<jannau> module name is just "apple" and not appledrm if I'm not mistaken
<ChaosPrincess> also trying the kernel with dcp, ran xrandr -q, does not look like it is using dcp
<Glanzmann> jannau: I stopped x, rmmod simpledrm, loaded 'apple': https://pbot.rmdir.de/c-8-3VyT5uw1anRKi3ijTQ Still no /dev/dri and no x: https://pbot.rmdir.de/or1MymoBQ0JxHOF1w3ynrg
aleasto has quit [Remote host closed the connection]
<Glanzmann> jannau: For me it might be, because I edited the kernel config manually and as a result have no DRM_KMS_CMA_HELPER, rebuilding.
aleasto has joined #asahi
<jannau> also make sure you're you have f9753ef3e94eb416dbe017c88f8939d2fc3f0f28 in your dts if you don't use the kernel one
<jannau> in doubt try to build the kernel with apple-drm built-in
<Glanzmann> jannau: I boot using u-boot.
<Glanzmann> I'll compile it in.
<Glanzmann> jannau: I now tried to compile it in, still same error, no /dev/dri and no dcp dmesg output. I'll take u-boot out of the picture and use the device tree from the kernel.
___nick___ has quit [Ping timeout: 480 seconds]
<jannau> booting via u-boot is fine but the embedded dtbs need to have the additional nodes from the kernel
<Glanzmann> jannau: I see. If it works with m1n1 I'll try that.
<Glanzmann> jannau: Hmmm. I tried to boot the same kernel using m1n1, and it kind of works, except that I have no video output.
<Glanzmann> I see the m1n1 asahi logo with a black background and in the top left three pixels in the first row that look greenish.
<Glanzmann> But I can ssh to the system and see: https://pbot.rmdir.de/uWN2cInZVLez3w490lkgjw still no https://pbot.rmdir.de/M0M2TjIQ3ky8JHzA-E_GNA
<Glanzmann> I used the following command line to boot: M1N1DEVICE=/dev/ttyACM0 proxyclient/tools/linux.py --bootargs="rw root=/dev/nvme0n1p5 rootwait rootfstype=ext4" Image.gz t8103-j274.dtb
<Glanzmann> Probably this is the issue: [ 2.530569] apple-dcp 231c00000.dcp: received unknown callback D119
<Glanzmann> I have two other monitors that I could try.
<Glanzmann> /dev/dri is empty.
<Glanzmann> Or to be precise, the directory does not exist.
<jannau> yes, "received unknown callback D119" explains why it doesn't work, it should be "D119": "bool UnifiedPipeline2::detect_fastsim()", whatever that is
zopieux has quit [Ping timeout: 480 seconds]
<Glanzmann> jannau: I see, might it be possible that I setup the wrong version of the sub os?
<Glanzmann> stub*
<Glanzmann> jannau: Do you have a kernel binary and a dtb or a config that I can try, just to make sure that I did not screw up the build?
<jannau> it is, dcp needs macos 12.x
zopieux has joined #asahi
<Glanzmann> jannau: Okay, I do not recall which version I used on the mini, so I'll quickly run the asahi installer and try again. Just to make sure that this is not the issue.
amarioguy has quit [Remote host closed the connection]
<jannau> it would also explain the unknown callback, apple inserted a callback before D119 and with macos 12 we are expecting D120/read_edt_data
<Glanzmann> I see.
<jannau> you could also revert bcc0fa44ebd5ce11c2b1964b0952cf918965f5b1
<jannau> that should have the same level of support on macOS 11.[4-6] stubs
<Glanzmann> I see. I already deted the stub partition and booting macos, will only take a second.
<jannau> sure. please use macOS 12.x, this was just a quick thing to test without going through recovery
<Glanzmann> I'll.
vmeson has quit [Quit: Konversation terminated!]
<jannau> is 12.2 out or does Apple ommit release candidate in "software update"? updating from 12.2 beta 2
roxfan2 has quit [Ping timeout: 480 seconds]
<Glanzmann> jannau: To my knowledge it does not omit.
<Glanzmann> jannau: I get no software updates offered, but I was not on a beta.
<Glanzmann> jannau: I updated the stub os, now my system appears to be crashing.
<Glanzmann> Screen turns off, no ssh login possible.
<Glanzmann> Okay, it does not crash but oops a lot: https://pbot.rmdir.de/MOMacBt7VsfmysEnC74MQQ
<Glanzmann> This is with 12.0.1
<Glanzmann> jannau: And I have /dev/dri/
<Glanzmann> jannau: Xorg runs, but I don't see anything.
<jannau> dcp crashes early on "2.771400] apple-dcp 231c00000.dcp: RTKit: co-processor has crashed." nothing will work after that
<Glanzmann> I see. I think I call it a day and go to bed. Tomorrow I'll try other monitors and report back.
<Glanzmann> jannau: Thank you for helping me get this far. Maybe it will work with another monitor.
<Glanzmann> jannau: What resolutions did you try?
tpw_rules has joined #asahi
<jannau> 1920x1080 and 1600x1200
vmeson has joined #asahi
<tpw_rules> Glanzmann: are you around?
boardwalk has quit [Server closed connection]
boardwalk has joined #asahi
artemist has quit [Server closed connection]
artemist has joined #asahi
jmr2 has joined #asahi
<jmr2> jannau: 12.2 ReleaseCandidate is available if you're running the beta. Once installed, the about box looks like an official release. If you're not running the beta, it's not available yet.
<jannau> I was aware that that the release candidate was out just confused that it looked like final release
<jmr2> Agreed. First time I'm running the beta, so I had the same confusion.
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi
aleasto has quit [Quit: Konversation terminated!]
jmr2 has quit [Quit: Page closed]