ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
* alyssa waves her wand to make the magic numbers go away
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
<alyssa> 2633 total
<alyssa> still much too large a driver :'(
<alyssa> and too much... sketchy
robinp_ has quit [Read error: Connection reset by peer]
yuyichao_ has quit [Ping timeout: 480 seconds]
<alyssa> been investigating the Xorg hotplug thing
<alyssa> correct hotplugging depends on atomic_flush() getting called on hotplug, but I guess Xorg doesn't do that
<brentr123[m]> When next stream?
<alyssa> you really don't want a kernel stream
<alyssa> ^from me
<brentr123[m]> I meant Marcus
<alyssa> oh
<alyssa> drm_client_modeset "looks" like it does what you want, but it seems to be a fbdev thing...?
<alyssa> oh. it's a wontfix. xorg doesn't support displayport hotplugging without a DE.
<alyssa> needs something like https://github.com/phillipberndt/autorandr
<chadmed> friendship ended with Xorg now wayland is my best friend
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi-dev
<dottedmag> alyssa: X and atomic modesetting... Not a love at first sight. Have you seen https://github.com/torvalds/linux/commit/26b1d3b527e7bf3e24b814d617866ac5199ce68d ? (also that's why never name your DRM client binary Xtreme)
<sven> or just set req->value > 1 if your binary starts with X i guess
<sven> but that's quite a hack. X must've screwed up pretty badly :D
<ar> dottedmag: wait, so xf86-video-modesetting has broken idea of atomic, and they decide to break atomic for everyone?
<dottedmag> ar: For every binary with name starting with capital X
<sven> nah, not everyone. only every process that starts with X! :-P
<sven> but seriously, enabling a workaround depending on the process name kinda sounds like X messed up in truly horrible ways
<j_ey> is that actually in the kernel?
<j_ey> or is it april fools or something
<sven> pretty sure it's in the kernel
<j_ey> wow
<sven> yeah. that's why I assume that X must've messed up pretty badly
kode54 has quit [Quit: Ping timeout (120 seconds)]
grange_c has quit [Quit: Ping timeout (120 seconds)]
kenzie has quit [Quit: Ping timeout (120 seconds)]
vx^ has quit [Quit: :)~]
blasty has quit [Remote host closed the connection]
nico_32 has quit [Remote host closed the connection]
akemin_dayo has quit [Ping timeout: 480 seconds]
Ziemas has quit [Remote host closed the connection]
nico_32 has joined #asahi-dev
blasty has joined #asahi-dev
vx^ has joined #asahi-dev
Ziemas has joined #asahi-dev
kode54 has joined #asahi-dev
grange_c has joined #asahi-dev
kenzie has joined #asahi-dev
akemin_dayo has joined #asahi-dev
<marcan> amazing
<marcan> this is windows driver process name hacks level
<mjg59> Kind of amazed that got in, yeah
<j_ey> linus must have missed it :P
<mjg59> Not sure there's an actually better solution, though
<chadmed> yeah doesnt linus have a thing about userspace stuff imposing itself on kernel decisions? seems like a pretty big thing for him to miss given that
<ar> chadmed: "don't break userspace, ever"?
<chadmed> well that but also the obverse. i remember him kicking up a massive stink about lennart trying to get kernel maintainers to change stuff to accommodate systemd's design decisions. maybe i am misremembering
<ar> yeah, lennart tried to hijack "debug" kernel commandline argument
<JTL> chadmed: I seem to remember that too?
<sven> it sounds like this was just a terrible situation with no good solution. and i guess that hack was just the least bad solution in the end
<chadmed> well i mean we could just all move to wayland and have cute puppies and no more war and hunger :P
<chadmed> but the green gpus wont let us have those nice things
JTL1 has joined #asahi-dev
JTL is now known as Guest2710
JTL1 is now known as JTL
Guest2710 has quit [Ping timeout: 480 seconds]
JTL has quit []
JTL has joined #asahi-dev
bps has quit [Remote host closed the connection]
bps has joined #asahi-dev
JTL is now known as JTL1
JTL1 has quit []
JTL has joined #asahi-dev
<kettenis> ah, I had forgotten all about that gem
<dhewg> I already like it at the "Fixes:" line
<dhewg> *liked
aleasto has joined #asahi-dev
<j_ey> lol
<kettenis> off-topic, but boy it is amazing how Intel keeps pushing out broken hardware
<chadmed> dhewg: thats filthy lmao. october 18 baby i say goodbye to amd64 forever
<chadmed> (hopefully)
<kettenis> there literally isn't any single clock that you can use on x86 systems that isn't broken on some systems
<kettenis> I think ARM got it spot on with have the architecturally defined timer that includes a register that tells you the frequency it runs at
<kettenis> (admittedly only with armv7 and later)
<chadmed> the solution is simple. intel needs to add yet another clock source that is a tiny bit broken in some use cases but fixes the use cases in which the other clocks are broken. its all about "flexibility" after all!
<ar> i'm reasonably happy with all my private x86 systems, but the only intel chips in them are NICs (wifi or wired) or thunderbolt controllers
<chadmed> yeah ive been having this discussion with my mates. in the grand scheme of things this stuff doesnt _really_ affect the platform's usability. i type "emerge libreoffice" on both and get a working office suite. its not a matter of being unhappy with the performance of my x86 box, (for me) its more a growing dissatisfaction with the platform's design philosophy.
<kettenis> well, AMD CPUs and chipsets have similar issues
<chadmed> yeah wasnt too happy when i found out about the platform "security" processor...
<arnd> kettenis: The hardware timer is supposed to be there on ARMV7VE (Cortex-A7/A15) or later, but there are enough examples of it being broken in certain SoCs, I don't think there is any hope of ARM being less of a trainwreck in this area than Intel
<kettenis> arnd: well, so far, in my experience it is less of a trainwreck
<kettenis> yes, there are hardware bugs, but in most cases they can be worked around
<kettenis> although I suppose that when I'd try to do more aggressive power management, more bugs will pop up
<arnd> Documentation/devicetree/bindings/timer/arm,arch_timer.yaml in Linux lists a number of errata for the timer. In most cases this ends up meaning that we can't use it from user space because it's unreliable
<arnd> also, timer bugs are notoriously hard to find, because you can't rely on the timer to tell you when it goes wrong. One example is the Samsung Exynos, which has a timer that almost always has the correct values, but once in a blue moon produces nonsense
<arnd> (I assume newer versions fixed it, this was exynos5 IIRC)
<arnd> I'd also include the way that Apple hooks up the timer to the FIQ in this, regardless of whether this is technically compliant or not
<psykose> timers must just be very hard for almost every vendor to have a bunch of broken timers
<psykose> i don't think they intentionally want to consistently have a bunch of broken things every release
<dottedmag> psydroid: I might be talking out of my ass here, because I really have no clue... But isn't it due to grafting new timer-changing features onto existing ISA? E.g. virtualization and power management change everything related to timers.
jbowen has joined #asahi-dev
<krbtgt> it's all about implementation
yuyichao_ has quit [Ping timeout: 480 seconds]
el0y has joined #asahi-dev
yuyichao_ has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
bps has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
jbowen has quit [Ping timeout: 480 seconds]
jbowen has joined #asahi-dev
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
yuyichao has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
bps has joined #asahi-dev
rgort10[m] has joined #asahi-dev
yuyichao has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
erincandescent has quit [Remote host closed the connection]
erincandescent has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
jacoxon has joined #asahi-dev
gabuscus_ has joined #asahi-dev
jacoxon has quit []
gabuscus has quit [Ping timeout: 480 seconds]
jacoxon has joined #asahi-dev
jacoxon has quit []
___nick___ has quit [Ping timeout: 480 seconds]
nsklaus_ has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
jbowen has quit [Quit: leaving]
aleasto has quit [Quit: Konversation terminated!]
yuyichao_ has quit [Ping timeout: 480 seconds]
bps has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev