#
…

2023-02-17

00:09ncopai found a few kernel config knobs that could improve battery time.
00:10ncopapreempt always -> voluntary / HZ 1000 -> 300
00:11ncopathis should reduce context switching a bit and maybe throughput, while not have too big impact on the UI
00:11ncopalazy RCU
00:12ncopaand powerefficient workqueues by default
00:12ncopawill see if it makes any noticeable difference
00:13ncopaI also found a few configs that could be disabled:
00:13ncopacompat 32 bit time support. apple silicon does not support 32 bit userspace anyway
00:13ncopaCAN networking. only used in automotive, in cars etc
00:14ncopadnotify. everything today uses inotify
00:15ncopaonly thing i ever came across that needs dnotify was NFS, but that was 5-10 years ago. I believe NFS uses inotify nowadays
01:38seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:39seeeath has joined #asahi-alt
01:49mashrafi has joined #asahi-alt
01:51mashrafi has quit []
02:09seeeath has quit [Read error: Connection reset by peer]
02:10seeeath has joined #asahi-alt
02:10balrog has quit [Quit: Bye]
02:11balrog has joined #asahi-alt
02:12seeeath has quit []
02:13seeeath has joined #asahi-alt
02:19loops has quit [Read error: Network is unreachable]
02:20loops has joined #asahi-alt
02:33mashrafi has joined #asahi-alt
02:34mashrafiHow do I get the Asahi GPU stuff working with KDE on Gentoo on M1?
02:37mashrafi has quit []
02:48mashrafi has joined #asahi-alt
02:48mashrafi has quit []
04:42mashrafi has joined #asahi-alt
04:42mashrafi has quit []
05:48seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:49seeeath has joined #asahi-alt
05:57seeeath has quit [Ping timeout: 480 seconds]
06:08seeeath has joined #asahi-alt
06:17mashrafi has joined #asahi-alt
06:17mashrafi has quit []
06:23seeeath has quit [Ping timeout: 480 seconds]
06:31seeeath has joined #asahi-alt
06:46seeeath has quit [Ping timeout: 480 seconds]
06:49seeeath has joined #asahi-alt
06:59seeeath has quit [Ping timeout: 480 seconds]
07:06pjakobsson has quit []
07:27seeeath has joined #asahi-alt
07:39chadmed has joined #asahi-alt
07:39chadmedmashrafi: follow the rust for linux quick start guide, build kernel, install kernel, reboot, install mesa::asahi, reboot
07:40chadmedi have a fix for the mesa ebuild in my local repo let me push it
07:41chadmedpushed :)
07:44seeeath has quit [Ping timeout: 480 seconds]
08:22chadmed has quit [Remote host closed the connection]
08:22mpsncopa: COMPAT_32BIT_TIME is set following Rich Felkers advice
08:23mpsalso, CAN net options/drivers are set to follow other kernels in alpine
08:24chadmed has joined #asahi-alt
08:25mpsPREEMPT and CONFIG_HZ_1000 is for better responsiveness on GUI workstations (same reason why lot people use alpine linux-edge on workstations)
08:26mpsdnotify is not needed, ofc
08:27seeeath has joined #asahi-alt
08:29mpsabout CAN net, maybe some users use it for their labs develeping CAN devices (I have two usb can addapters for testing some things)
08:35seeeath has quit [Ping timeout: 480 seconds]
08:43seeeath has joined #asahi-alt
08:46mpsarnd: what you think about COMPAT_32BIT_TIME in asahi kernel? is it needed or not?
08:47arndmps: CONFIG_COMPAT is not needed, without that I don't think you can even enable COMPAT_32BIT_TIME
08:48j`eyyou can, I have it
08:48j`ey(not intentionally)
08:48mpshm, in my current config is COMPAT=n and I have COMPAT_32BIT_TIME=y
08:49mpsisn't COMPAT_32BIT_TIME syscall compatibility and not code execution (I'm not sure about this)
08:49arndmps: 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
08:50arndah I see, the dependency is just for the default: "default !64BIT || COMPAT", rather than "depends on"
08:50mpsI thought it about 32bit time_t
08:50mpsI meant, 32bit time_t structure
08:51arndmps: it is, but 64-bit architectures never defined a 32-bit time_t, so it has no effect unless you also enable CONFIG_COMPAT
08:51seeeath has quit [Ping timeout: 480 seconds]
08:51arnd(there are some remnants of OSF-1 compatibility in arch/alpha that use 32-bit time_t, but we don't care about those)
08:51mpsarnd: ah, ok. I thougt it is needed for Y2038
08:54seeeath has joined #asahi-alt
08:55arndmps: 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
08:57mpsarnd: I use musl on all of my machines and musl fixed Y2038 about year or two ago, iirc.
08:57mpsbut I never know what I will use in future even 2038 year looks far away
08:58arndmps: 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
08:59mpsarnd: yes, and that was reason I asked Rich Felker on #musl about this, his advice was to have it enabled
08:59mpsiiuc it doesn't hurt to have it enabled
09:00arndI know, he cares more about his idea that syscalls can never go away than to actually make systems work in the future
09:00arndmusl currently relies on it being enabled, so you don't have a choice
09:01mpsarnd: 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
09:02arndmps: do you mean you saw no problems on 64-bit applications or 32-bit applications?
09:02seeeath has quit [Ping timeout: 480 seconds]
09:03arndas I said, it makes no difference on 64-bit, as the only change is the set of available syscalls for 32-bit tasks
09:03mpsarnd: didn't tested it extensively
09:04mpsthough I run some time ago 32bit userspace on 64bit kernel on arm64 machine, all worked
09:04mpsbut I enabled COMPAT_32BIT_TIME=y on this kernel
09:05mpsby '32bit userspace' I mean complete install of 32bit alpine distro
09:23cylm_ has quit [Ping timeout: 480 seconds]
09:43seeeath has joined #asahi-alt
09:51seeeath has quit [Ping timeout: 480 seconds]
10:00seeeath has joined #asahi-alt
10:08seeeath has quit [Ping timeout: 480 seconds]
10:17seeeath has joined #asahi-alt
10:29seeeath has quit [Ping timeout: 480 seconds]
10:37mashrafi has joined #asahi-alt
10:39mashrafi has quit [Read error: Connection reset by peer]
10:40seeeath has joined #asahi-alt
10:55seeeath has quit [Ping timeout: 480 seconds]
10:59seeeath has joined #asahi-alt
11:07seeeath has quit [Ping timeout: 480 seconds]
11:17seeeath has joined #asahi-alt
11:28r0ni has joined #asahi-alt
11:37seeeath has quit [Ping timeout: 480 seconds]
11:53seeeath has joined #asahi-alt
11:57ay has joined #asahi-alt
11:58ay is now known as Guest5134
12:13seeeath has quit [Ping timeout: 480 seconds]
12:23seeeath has joined #asahi-alt
12:34kesslerd has quit [Quit: Leaving]
12:38Guest5134 has quit [Quit: Konversation terminated!]
12:40seeeath has quit [Read error: Connection timed out]
12:53seeeath has joined #asahi-alt
13:10chadmed_ has joined #asahi-alt
13:10chadmed has quit [Read error: Connection reset by peer]
13:17beeblebrox has quit [Remote host closed the connection]
13:20ay has joined #asahi-alt
13:21ay is now known as Guest5141
13:22seeeath has quit [Ping timeout: 480 seconds]
13:24Guest5141@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.
13:26Guest5141 has quit [Quit: Konversation terminated!]
13:30seeeath has joined #asahi-alt
13:51seeeath has quit [Ping timeout: 480 seconds]
13:55seeeath has joined #asahi-alt
14:03possiblemeatball has joined #asahi-alt
14:13seeeath has quit [Ping timeout: 480 seconds]
14:32seeeath has joined #asahi-alt
14:35stickytoffee has joined #asahi-alt
14:37mashrafi has joined #asahi-alt
14:38mashrafichadmed: I managed to solve it by removing lines containing `mesa` in `/var/lib/portage/world` and using `--backtrace=30`.
14:43mashrafi has quit [Read error: Connection reset by peer]
14:49opticronhmmm...I'm itchy enough to get the battery charge limit code that I may end up compiling my own kernel
14:50mashrafi has joined #asahi-alt
14:52mashrafichadmed: 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.
15:05seeeath has quit [Read error: Connection timed out]
15:07seeeath has joined #asahi-alt
15:37beeblebrox has joined #asahi-alt
17:24hightower4 has joined #asahi-alt
17:31hightower3 has quit [Ping timeout: 480 seconds]
17:37cylm_ has joined #asahi-alt
17:47hightower4 has quit [Ping timeout: 480 seconds]
17:48kesslerd has joined #asahi-alt
18:03kesslerd has quit [Remote host closed the connection]
18:04kesslerd has joined #asahi-alt
18:06kesslerd has quit [Remote host closed the connection]
18:07kesslerd has joined #asahi-alt
18:16hightower2 has joined #asahi-alt
18:37cylm has joined #asahi-alt
18:38cylm_ has quit [Ping timeout: 480 seconds]
19:33cylm_ has joined #asahi-alt
19:35seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:36seeeath has joined #asahi-alt
19:40cylm has quit [Ping timeout: 480 seconds]
19:45possiblemeatball has quit [Quit: Quit]
20:31hightower2 has quit [Remote host closed the connection]
20:38hightower2 has joined #asahi-alt
20:52r0ni has quit [Ping timeout: 480 seconds]
21:06seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:12seeeath has joined #asahi-alt
21:46jacksonchen666 has joined #asahi-alt
22:04chadmed_mashrafi: did you update the device trees?
22:04chadmed_ is now known as chadmed
22:40cylm has joined #asahi-alt
22:42cylm_ has quit [Ping timeout: 480 seconds]
…