ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
<ncopa>
i found a few kernel config knobs that could improve battery time.
<ncopa>
this should reduce context switching a bit and maybe throughput, while not have too big impact on the UI
<ncopa>
lazy RCU
<ncopa>
and powerefficient workqueues by default
<ncopa>
will see if it makes any noticeable difference
<ncopa>
I also found a few configs that could be disabled:
<ncopa>
compat 32 bit time support. apple silicon does not support 32 bit userspace anyway
<ncopa>
CAN networking. only used in automotive, in cars etc
<ncopa>
dnotify. everything today uses inotify
<ncopa>
only thing i ever came across that needs dnotify was NFS, but that was 5-10 years ago. I believe NFS uses inotify nowadays
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-alt
mashrafi has joined #asahi-alt
mashrafi has quit []
seeeath has quit [Read error: Connection reset by peer]
seeeath has joined #asahi-alt
balrog has quit [Quit: Bye]
balrog has joined #asahi-alt
seeeath has quit []
seeeath has joined #asahi-alt
loops has quit [Read error: Network is unreachable]
loops has joined #asahi-alt
mashrafi has joined #asahi-alt
<mashrafi>
How do I get the Asahi GPU stuff working with KDE on Gentoo on M1?
mashrafi has quit []
mashrafi has joined #asahi-alt
mashrafi has quit []
mashrafi has joined #asahi-alt
mashrafi has quit []
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
mashrafi has joined #asahi-alt
mashrafi has quit []
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
pjakobsson has quit []
seeeath has joined #asahi-alt
chadmed has joined #asahi-alt
<chadmed>
mashrafi: follow the rust for linux quick start guide, build kernel, install kernel, reboot, install mesa::asahi, reboot
<chadmed>
i have a fix for the mesa ebuild in my local repo let me push it
<chadmed>
pushed :)
seeeath has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
<mps>
ncopa: COMPAT_32BIT_TIME is set following Rich Felkers advice
<mps>
also, CAN net options/drivers are set to follow other kernels in alpine
chadmed has joined #asahi-alt
<mps>
PREEMPT and CONFIG_HZ_1000 is for better responsiveness on GUI workstations (same reason why lot people use alpine linux-edge on workstations)
<mps>
dnotify is not needed, ofc
seeeath has joined #asahi-alt
<mps>
about CAN net, maybe some users use it for their labs develeping CAN devices (I have two usb can addapters for testing some things)
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
<mps>
arnd: what you think about COMPAT_32BIT_TIME in asahi kernel? is it needed or not?
<arnd>
mps: CONFIG_COMPAT is not needed, without that I don't think you can even enable COMPAT_32BIT_TIME
<j`ey>
you can, I have it
<j`ey>
(not intentionally)
<mps>
hm, in my current config is COMPAT=n and I have COMPAT_32BIT_TIME=y
<mps>
isn't COMPAT_32BIT_TIME syscall compatibility and not code execution (I'm not sure about this)
<arnd>
mps: there have been patch proposals in the past to allow compat syscalls to be called from native 64-bit user space such as qemu-user or fex, but those never made it in
<arnd>
ah I see, the dependency is just for the default: "default !64BIT || COMPAT", rather than "depends on"
<mps>
I thought it about 32bit time_t
<mps>
I meant, 32bit time_t structure
<arnd>
mps: it is, but 64-bit architectures never defined a 32-bit time_t, so it has no effect unless you also enable CONFIG_COMPAT
seeeath has quit [Ping timeout: 480 seconds]
<arnd>
(there are some remnants of OSF-1 compatibility in arch/alpha that use 32-bit time_t, but we don't care about those)
<mps>
arnd: ah, ok. I thougt it is needed for Y2038
seeeath has joined #asahi-alt
<arnd>
mps: if you have a 32-bit userland and want to ensure it actually works beyond 2038, you should probably disable it and fix your libc to not call any of the deprecated syscalls, but most people don't need to worry because they will stop running 32-bit userspace before then, or can wait for someone else to fix it
<mps>
arnd: I use musl on all of my machines and musl fixed Y2038 about year or two ago, iirc.
<mps>
but I never know what I will use in future even 2038 year looks far away
<arnd>
mps: a lot of applications make direct system calls and bypass libc, so COMPAT_32BIT_TIME is meant to help you find stuff that would break
<mps>
arnd: yes, and that was reason I asked Rich Felker on #musl about this, his advice was to have it enabled
<mps>
iiuc it doesn't hurt to have it enabled
<arnd>
I know, he cares more about his idea that syscalls can never go away than to actually make systems work in the future
<arnd>
musl currently relies on it being enabled, so you don't have a choice
<mps>
arnd: also I tested systems with COMPAT_32BIT_TIME=n and didn't noticed any problem but I think keeping it enabled is not big problem
<arnd>
mps: do you mean you saw no problems on 64-bit applications or 32-bit applications?
seeeath has quit [Ping timeout: 480 seconds]
<arnd>
as I said, it makes no difference on 64-bit, as the only change is the set of available syscalls for 32-bit tasks
<mps>
arnd: didn't tested it extensively
<mps>
though I run some time ago 32bit userspace on 64bit kernel on arm64 machine, all worked
<mps>
but I enabled COMPAT_32BIT_TIME=y on this kernel
<mps>
by '32bit userspace' I mean complete install of 32bit alpine distro
cylm_ has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
mashrafi has joined #asahi-alt
mashrafi has quit [Read error: Connection reset by peer]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
r0ni has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
ay has joined #asahi-alt
ay is now known as Guest5134
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
kesslerd has quit [Quit: Leaving]
Guest5134 has quit [Quit: Konversation terminated!]
seeeath has quit [Read error: Connection timed out]
seeeath has joined #asahi-alt
chadmed_ has joined #asahi-alt
chadmed has quit [Read error: Connection reset by peer]
beeblebrox has quit [Remote host closed the connection]
ay has joined #asahi-alt
ay is now known as Guest5141
seeeath has quit [Ping timeout: 480 seconds]
<Guest5141>
@chadmed. I've successfully compiled the kernel with Rust. However, I have a Gentoo system configured with Gentoo's Mesa package. When I try to merge Asahi's Mesa package, I get a dependency conflict.
Guest5141 has quit [Quit: Konversation terminated!]
seeeath has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
possiblemeatball has joined #asahi-alt
seeeath has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-alt
stickytoffee has joined #asahi-alt
mashrafi has joined #asahi-alt
<mashrafi>
chadmed: I managed to solve it by removing lines containing `mesa` in `/var/lib/portage/world` and using `--backtrace=30`.
mashrafi has quit [Read error: Connection reset by peer]
<opticron>
hmmm...I'm itchy enough to get the battery charge limit code that I may end up compiling my own kernel
mashrafi has joined #asahi-alt
<mashrafi>
chadmed: I have set the kernel up and merged Asahi's Mesa fork. What else is there to do? 'dbus-run-session startplasma-wayland` does not use the driver, and Plasma does not even start.
seeeath has quit [Read error: Connection timed out]
seeeath has joined #asahi-alt
beeblebrox has joined #asahi-alt
hightower4 has joined #asahi-alt
hightower3 has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-alt
hightower4 has quit [Ping timeout: 480 seconds]
kesslerd has joined #asahi-alt
kesslerd has quit [Remote host closed the connection]
kesslerd has joined #asahi-alt
kesslerd has quit [Remote host closed the connection]
kesslerd has joined #asahi-alt
hightower2 has joined #asahi-alt
cylm has joined #asahi-alt
cylm_ has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-alt
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-alt
cylm has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Quit: Quit]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #asahi-alt
r0ni has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-alt
jacksonchen666 has joined #asahi-alt
<chadmed_>
mashrafi: did you update the device trees?