ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
eiln has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
amarioguy has quit [Remote host closed the connection]
gabuscus has quit []
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi-dev
dcow has joined #asahi-dev
crabbedhaloablut has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
jeisom has quit [Quit: Leaving]
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
systwi has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
slp_ has joined #asahi-dev
<janneg> leio: https://github.com/AsahiLinux/m1n1/pull/338 makes 1st stage display init reliable for me
<tbm> janneg: it says 25 but the mdelay is 20
<janneg> tbm: forgot to git add, fixed. thanks
kaazoo has joined #asahi-dev
<janneg> eiln: calibration upload works with the 13.5 isp firmware so this seems to be a 12.4 incompatibility
dcow has joined #asahi-dev
<janneg> the 720p sensor is even with calibration data very noisy. could that be caused by a wrong config?
<leio> janneg: thanks, I'll test it out when I get around to m1n1 updates overall, hopefully weekend
<kaazoo> HI, in case anybody here uses ZFS: developers added support for BTI (Branch Target Identification) which is set via CONFIG_ARM64_BTI: https://github.com/openzfs/zfs/pull/15339
<kaazoo> Earlier, ZFS kernel module loading resulted in internal error: https://github.com/openzfs/zfs/issues/14862
Yannik_Sc has joined #asahi-dev
<leio> on that topic, I'd be curious what packages overall need BTI disabling, besides chromium, to include these in ::gentoo out of the box
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
Yannik_Sc has quit [Ping timeout: 480 seconds]
<chadmed> nothing i use regularly so far
<chadmed> the fix for chromium is simple: stop using it
<leio> I saw it done in webkitgtk fedora package too iirc, but I have other issues with it
dcow has joined #asahi-dev
Yannik_Sc has joined #asahi-dev
tenkuu has quit [Ping timeout: 480 seconds]
dcow has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
leitao has quit []
<janneg> I doubt you've configured toolchain/portage configured to use BTI in the first place contrary to what fedora does
<chadmed> leio took my make.conf which does explicitly enable -mbranch-protection=standard
leitao has joined #asahi-dev
Yannik_Sc has quit [Ping timeout: 480 seconds]
<leio> chadmed: note that strip-flags used by brittle packages used to filter that out, but since yesterday it doesn't
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcow has joined #asahi-dev
eiln has joined #asahi-dev
<eiln> sounds like m2 SET_FILE_LOAD abi changed between 12.4 & 13.5? maybe that's where iova became u32 -> u64? if so we'll need the dcp os version checks
<eiln> janneg: if it's "noisy" as in grainy it's very likely a temporal/motion filter issue (constants are off, graph order isn't right). lina should have an m2 fork of the tracer, which I do not see in any branch
<eiln> chadmed: agreed
dcow has quit [Ping timeout: 480 seconds]
<leio> someone needs to tell slack to add huddle support when used with firefox.
<psykose> apparently it's only disabled on firefox+linux
<leio> right, time to user agent spoof then :)
<leio> (which is bad in way, as they'll think they have no users on firefox+linux or something); anyhow, getting off-topic
leitao has joined #asahi-dev
<cy8aer> I just played around with the camera and want to present my results. first of all: The device works. ffplay/mpv /dev/video0 works for my desktop user. The problems I have now: Firefox says the device does not have the right resolution when I open a jitsi session. And cheese only works if run as root. Permissions of the camera device is the same like the permissions of a standard logitech camera: crw-rw----+ 1 root video, the desktop user belongs to...
<cy8aer> ... the video group. Are there any hints or is there something still missing in the kernel?
<cy8aer> mbp14/m1pro
<lina> eiln: Good thing I added the version to the m1n1 side ^^
<lina> Should be easy to fix then!
<lina> And that makes sense since 12.4 didn't support any machines where high IOVAs are used
bgb has quit [Quit: WeeChat 4.0.5]
<lina> cy8aer: We support a lot of resolutions on those machines, including vertical ones... maybe Firefox/jitsi is unhappy with that?
<lina> Can you try some webcam test sites?
<cy8aer> lina ok, I'll do some webcam test sites...
<lina> Depending on what Firefox is doing exactly, we might be able to change the logic in the driver to prefer some resolutions, or hide the weird vertical ones behind a module argument if they cause too much trouble
<lina> I know for one ffmpeg is broken with vertical resolutions (I have a patch for that)
<lina> GStreamer works though
<eiln> cheese uses gst backend why doesn't it work? https://github.com/GNOME/cheese/blob/master/libcheese/cheese-camera.c
<mps> cy8aer: guvcview have few resolutions to test
<mps> I tested some last night
<lina> If too much stuff is broken with extra resolutions we can just limit the 1080p cameras to 1920x1080p only for now, that's a simple device tree change.
<lina> Also I didn't technically test any of this on m1pro/max, I just assumed the resolutions are the same as on m2pro/max since they use the same sensor... but it could be wrong.
<lina> 1080p should definitely be correct though
<cy8aer> I now tried de.webcamtests.com and that works fine Resolution 1920x1080 FHD. There the browser does not make problems. I will now play around with guvcview
systwi has joined #asahi-dev
dcow has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
<cy8aer> Ok, guvcview works with every tested resolution. But with jitsi I do not know what there is happening. I tried it with chromium and there the video is shown in diagonal stripes. Probably they want 720p
<cy8aer> (found that somewhere in the page source)
<cy8aer> 1280x720 is not offered in guvcview
<cy8aer> Ok, I got jitsi running, but: I am hosting my own jitsi server. And by default there is defined: prefered 720p, min 240p, max 720p! I set max resolution to 1080p and it worked. This may be a solution for me, but because max is 720p by default there should be 720p offered somehow.
Yannik_Sc has joined #asahi-dev
dcow has joined #asahi-dev
Yannik_Sc has quit [Remote host closed the connection]
Yannik_Sc has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
<janneg> eiln: yes, very grainy
<janneg> lina: can you push the m2 tracer to a branch? I have a partial port with fixed mailbox/doorbell offsets but that wasn't enough
<janneg> do we know if the imac uses the same sensor as the m1 pro/max macbooks? it has a 1080p sensor
Yannik_Sc has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
<eiln> janneg: I'd be really surprised if it wasn't. do any of us have an imac to test? I've never even seen one in the wild
<janneg> marcan has or has access to one and I can get access to one as well. I can't remember seeing an user with an imac. the telemetry might tell us how many users with imacs we have
dcow has joined #asahi-dev
bgb has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
Yannik_Sc has joined #asahi-dev
<eiln> didn't the imac have some weirdo audio codec? on second thought it might be a different sensor
<chadmed> eiln: both
<chadmed> i think we have a driver for the codec now though
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pjakobsson has joined #asahi-dev
dcow has joined #asahi-dev
tirr has quit [Quit: ZNC 1.8.2 - https://znc.in]
tirr has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
<lina> pushed the tracer/etc changes to isp/t602x-b
<lina> janneg: ^
jjanzic has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
Yannik_Sc has quit [Remote host closed the connection]
jjanzic has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
sefidel has quit [Remote host closed the connection]
sefidel has joined #asahi-dev
midou has joined #asahi-dev
DannyB has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
cuiltb^ has quit [Ping timeout: 480 seconds]
dcow has quit [Ping timeout: 480 seconds]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
AnuthaDev has joined #asahi-dev
jeisom has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcow has joined #asahi-dev
leitao has joined #asahi-dev
leitao has quit []
leitao has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
hex-spell has joined #asahi-dev
slp_ is now known as slp
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
cuiltb^ has joined #asahi-dev
<sam_> [09:20:07] <janneg> I doubt you've configured toolchain/portage configured to use BTI in the first place contrary to what fedora does
<sam_> i'd be surprised if fedora is really doing that much magic to do it
<sam_> if there's much we need to do, please let me know
<sam_> but what leio seemed to do from chadmed's make.conf seemed sufficient and t otake effect
dcow has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
cuiltb^ has quit [Ping timeout: 480 seconds]
cuiltb^ has joined #asahi-dev
lena6 has joined #asahi-dev
DannyB has quit [Ping timeout: 480 seconds]
jacksonchen666 has joined #asahi-dev
dcow has joined #asahi-dev
jacksonchen666 is now known as Guest2389
jacksonchen666 has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tenkuu has joined #asahi-dev
Guest2389 has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
cuiltb^ has quit [Read error: Connection reset by peer]
cuiltb^ has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcow has joined #asahi-dev
leitao has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
nela has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
compassion1785 has quit [Quit: lounge quit]
dcow has quit [Ping timeout: 480 seconds]
rootbeerdan has joined #asahi-dev
dcow has joined #asahi-dev
compassion1785 has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
<kettenis> note that chromium works fine on OpenBSD with BTI
<kettenis> so the problem is either in Linux-specific code or in some system library
<sam_> oh interesting, thanks
dcow has joined #asahi-dev
nela has joined #asahi-dev
<mps> it works also on alpine with BTI enabled in kernel
<psykose> the actual chromium build doesn't have bti on chromium
<psykose> last i checked anyway
<mps> ah, I didn't looked, I don't use chromium normaly, just sometimes if site doesn't work with firefox
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
<leio> this is with -mbranch-protection=standard passed to chromium build via CXXFLAGS.
<psykose> you also want CFLAGS
<psykose> tho i thought bti is =bti
<psykose> anyway, offtopic
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
Amber_Harmonia has joined #asahi-dev
flokli has quit [Quit: WeeChat 4.0.2]
flokli has joined #asahi-dev
cyrinux has quit [Quit: bye]
cyrinux has joined #asahi-dev
tenkuu has quit [Read error: No route to host]
tenkuu has joined #asahi-dev
tenkuu_ has joined #asahi-dev
tenkuu has quit [Read error: Connection reset by peer]
<janneg> m2 with 12.4 firmware is fixed by using the 32-bit CISP_CMD_CH_SET_FILE_LOAD command
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
PaulFertser_ is now known as PaulFertser
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
luix has joined #asahi-dev
maximbaz has quit [Quit: bye]
midou has quit [Ping timeout: 480 seconds]
maximbaz has joined #asahi-dev
midou has joined #asahi-dev
luix has quit [Remote host closed the connection]
dcow has joined #asahi-dev
<janneg> is it intentional that the webcam image is not mirrored by default? or are the applications supposed to handle this?
<janneg> eiln: image is better with the same temporal filter settings as macos, i.e. '.temporal_filter = 0,'
<janneg> lina: does macos use 1 on the m2 mb air?
<kettenis> yay, managed to get my m2 pro mini running again with 13.5 OS firmware
<kettenis> new m1n1 mostly fails to detect my monitor properly; but I've had issues with it before
<kettenis> I think it doesn't support the standard VESA mode
<janneg> kettenis: uncommenting '#define RTKIT_SYSLOG' in config.h makes dcp chatty
dcow has quit [Ping timeout: 480 seconds]
<kettenis> thanks, I'll give that a go later this weekend
<kettenis> it took me far too much time I didn't get any kernel output because I left the usb keyboard plugged in...
jeisom has quit [Quit: Leaving]
dcow has joined #asahi-dev
hightower2 has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
ChaosPrincess has quit [Quit: ChaosPrincess]
dcow has quit [Ping timeout: 480 seconds]
ChaosPri1 has joined #asahi-dev
ChaosPri1 has quit []
ChaosPrincess has joined #asahi-dev
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
<eiln> janneg: my other machines aren't mirrored either. on macos the preview is mirrored by software but the actual capture isn't (which is weird)
<eiln> v4l2 loopback with -vflip is always a solution but
<janneg> I hope you mean by software either the scaler or the gpu
<janneg> for macos
<eiln> I don't recall ever seeing logs about scaler/gpu in Core Media. let me quickly check scaler
<eiln> janneg: looks like a memory copy with scaler. we could probably do m2m by making up our own DART endpoint
<janneg> here is the fw version check. much code for a single check: https://github.com/AsahiLinux/linux/pull/203
<eiln> ohh it uses scaler for mirroring + window resizing. that makes sense why only the preview is mirrored
<mps> ffplay -vf hflip /dev/video0
crabbedhaloablut has quit []
<eiln> ok I think my certificate has worked out
<eiln> avd notes for those interested https://eiln.net/avd-notes.html
DannyB has joined #asahi-dev
dcow has joined #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
AnuthaDev has quit []
tenkuu_ has quit [Ping timeout: 480 seconds]
tenkuu has joined #asahi-dev
DannyB has quit [Ping timeout: 480 seconds]