Commit Graph

328 Commits

Author SHA1 Message Date
Nils Freydank a1c71547fb
pygoscelis: Bump to 5.15.31-T14s 2022-03-23 11:32:06 +01:00
Nils Freydank 8927f433ef
pygoscelis: Switch to NO_HZ_FULL 2022-03-20 20:34:36 +01:00
Nils Freydank e791b26b23
pygoscelis: Bump to 5.15.30-T14s 2022-03-20 20:34:36 +01:00
Nils Freydank 0bfe9a5e23
pygoscelis: Bump to 5.15.28-T14s 2022-03-11 15:31:08 +01:00
Nils Freydank 44101c18e1
pygoscelis: Bump to 5.15.27-T14s 2022-03-10 12:07:00 +01:00
Nils Freydank 37e0b646f1
pygoscelis: Bump to 5.15.26-T14s 2022-03-02 17:57:24 +01:00
Nils Freydank 751946a5f7
pygoscelis: Bump to 5.15.25-T14s 2022-02-23 23:07:00 +01:00
Nils Freydank 691d6c2a0b
pygoscelis: Bump to 5.15.24-T14s 2022-02-16 23:10:23 +01:00
Nils Freydank 5462df3b75
pygoscelis: Bump to 5.15.23-T14s (would fix CVE-2022-0435)
The CVE is about a bug inside tipc which is disabled in this
configuration. For more details take a look at:
https://bugs.gentoo.org/833112
2022-02-12 00:15:36 +01:00
Nils Freydank e543f770f0
pygoscelis: Bump to 5.15.22-T14s 2022-02-11 09:10:38 +01:00
Nils Freydank 3d50144019
pygoscelis: switch to ECDSA type module signatures 2022-02-05 16:06:18 +01:00
Nils Freydank 030bf7721c
pygoscelis: Bump to 5.15.20-T14s 2022-02-05 16:06:18 +01:00
Nils Freydank 5d65445a8a
pygoscelis: Bump to 5.15.19 and fix a use-after-free
gentoo bug:   https://bugs.gentoo.org/832717
openwall:     https://www.openwall.com/lists/oss-security/2022/01/29/1
upstream fix: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9d87929d451d3e649699d0f1d74f71f77ad38f5
2022-02-05 09:07:00 +01:00
Nils Freydank a4c5c70787
Bump to 5.15.18-T14s 2022-01-30 12:29:14 +01:00
Nils Freydank 88071ae334
pygoscelis: Bump to 5.15.17-T14s 2022-01-28 00:13:47 +01:00
Nils Freydank d1fbf778f9
Revert to 5.15.y as 5.16.0-3 have a wifi bug on the T14s
[  699.856946] ------------[ cut here ]------------
[  699.856948] WARNING: CPU: 11 PID: 69 at drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:2496 0xffffffffc0afb2b1
[  699.856953] Modules linked in: nfnetlink_acct rfcomm tun bridge stp llc nft_masq nft_chain_nat nft_counter nft_ct nf_tables bnep binfmt_misc ax88179_178a usbnet mii snd_soc_dmic snd_acp3x_pdm_dma snd_acp3x_rn snd_soc_core think_lmi firmware_attributes_class kvm_amd uvcvideo kvm snd_hda_codec_generic iwlmvm videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_hda_codec_hdmi btusb videobuf2_common btrtl irqbypass btintel videodev bluetooth input_leds psmouse snd_hda_intel mc snd_intel_dspcfg snd_hda_codec r8169 snd_hwdep ecdh_generic ecc snd_hda_core crc16 snd_rn_pci_acp3x snd_pcm iwlwifi realtek mdio_devres libphy thinkpad_acpi platform_profile wmi efivarfs mmc_block amdgpu drm_ttm_helper ttm gpu_sched drm_kms_helper rtsx_pci_sdmmc mmc_core syscopyarea rtsx_pci sysfillrect sysimgblt fb_sys_fops mfd_core
[  699.857050] CPU: 11 PID: 69 Comm: kworker/11:0 Tainted: G        W       T 5.16.3-T14s #2
[  699.857054] Hardware name: LENOVO 20UJS00K00/20UJS00K00, BIOS R1CET67W(1.36 ) 10/20/2021
[  699.857055] Workqueue: events_freezable 0xffffffff83a86bf0
[  699.857059] RIP: 0010:0xffffffffc0afb2b1
[  699.857061] Code: e0 36 0f 83 2d 02 00 00 31 d2 48 89 ee 4c 89 f7 e8 a4 67 01 00 31 d2 48 89 ee 4c 89 f7 e8 87 17 02 00 85 c0 0f 84 1a fe ff ff <0f> 0b e9 13 fe ff ff 4c 89 f7 e8 d0 fb ff ff e9 37 fe ff ff 85 c0
[  699.857065] RSP: 0018:ffff9ad6003bfda0 EFLAGS: 00010282
[  699.857069] RAX: 00000000fffffffb RBX: 00000000039674ff RCX: 0000000000000000
[  699.857072] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[  699.857074] RBP: ffff935731ad34c0 R08: 0000000000000000 R09: 0000000000000000
[  699.857076] R10: 0000000000000000 R11: 0000000000000000 R12: ffff935731ad34c8
[  699.857078] R13: ffff9357cccb2000 R14: ffff9357cccb2008 R15: ffff9357cccb2038
[  699.857081] FS:  0000000000000000(0000) GS:ffff935d2fac0000(0000) knlGS:0000000000000000
[  699.857084] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  699.857087] CR2: 0000638fd0ad57f4 CR3: 000000010ac10000 CR4: 0000000000350ee0
[  699.857090] Call Trace:
[  699.857092]  <TASK>
[  699.857094]  ? 0xffffffff83ac3a96
[  699.857097]  ? 0xffffffff83a86ce7
[  699.857099]  ? 0xffffffff832649a0
[  699.857102]  ? 0xffffffff83264ece
[  699.857103]  ? 0xffffffff83264e80
[  699.857105]  ? 0xffffffff8326b3a9
[  699.857107]  ? 0xffffffff8326b240
[  699.857109]  ? 0xffffffff83201162
[  699.857113]  </TASK>
[  699.857114] ---[ end trace ecf0e5d8d4f4dc4b ]---
[  699.857120] iwlwifi 0000:03:00.0: failed to update power mode
[  699.857127] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.857132] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.857135] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.857139] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.857161] iwlwifi 0000:03:00.0: Failed to send recovery cmd -5
[  699.883125] iwlwifi 0000:03:00.0: LED command failed: -5
[  699.883219] iwlwifi 0000:03:00.0: LED command failed: -5
[  699.906473] iwlwifi 0000:03:00.0: Failed to send flush command (-5)
[  699.906515] iwlwifi 0000:03:00.0: Failed to remove station. Id=1
[  699.906520] iwlwifi 0000:03:00.0: Failed sending remove station
[  699.906525] iwlwifi 0000:03:00.0: Failed to send binding (action:3): -5
[  699.906533] iwlwifi 0000:03:00.0: PHY ctxt cmd error. ret=-5
[  699.906540] iwlwifi 0000:03:00.0: Failed to remove MAC context: -5
[  699.906549] iwlwifi 0000:03:00.0: mcast filter cmd error. ret=-5
[  699.906552] iwlwifi 0000:03:00.0: Failed to synchronize multicast groups update
[  699.906572] wlp3s0: deauthenticating from 1c:ed:6f:76:81:d4 by local choice (Reason: 3=DEAUTH_LEAVING)
[  699.906610] iwlwifi 0000:03:00.0: Failed to send flush command (-5)
[  699.906614] iwlwifi 0000:03:00.0: flush request fail
[  699.906700] iwlwifi 0000:03:00.0: iwl_trans_wait_txq_empty bad state = 0
[  699.906714] iwlwifi 0000:03:00.0: Failed to trigger RX queues sync (-5)
[  699.906831] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.906834] iwlwifi 0000:03:00.0: failed to update MAC 4a:d9:8b:21:93:60
[  699.906839] iwlwifi 0000:03:00.0: Failed to remove station. Id=0
[  699.906841] iwlwifi 0000:03:00.0: failed to remove AP station
[  699.906844] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.906847] iwlwifi 0000:03:00.0: failed to update MAC 4a:d9:8b:21:93:60 (clear after unassoc)
[  699.906850] iwlwifi 0000:03:00.0: Failed to synchronize multicast groups update
[  699.906857] iwlwifi 0000:03:00.0: failed to update power mode
[  699.906866] iwlwifi 0000:03:00.0: Failed to send binding (action:3): -5
[  699.906870] iwlwifi 0000:03:00.0: Failed to send MAC context (action:2): -5
[  699.906873] iwlwifi 0000:03:00.0: failed to update MAC 4a:d9:8b:21:93:60
[  699.906877] iwlwifi 0000:03:00.0: PHY ctxt cmd error. ret=-5
[  699.906973] iwlwifi 0000:03:00.0: Failed to remove MAC context: -5
[  700.497037] Loading firmware: iwlwifi-cc-a0-67.ucode
[  700.497800] iwlwifi 0000:03:00.0: api flags index 2 larger than supported by driver
[  700.497820] iwlwifi 0000:03:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
[  700.498633] iwlwifi 0000:03:00.0: loaded firmware version 67.8f59b80b.0 cc-a0-67.ucode op_mode iwlmvm
[  700.498638] Loading firmware: iwl-debug-yoyo.bin
[  700.498688] iwlwifi 0000:03:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[  700.508160] thermal thermal_zone0: failed to read out thermal zone (-61)
[  700.665932] iwlwifi 0000:03:00.0: Detected RF HR B3, rfid=0x10a100
[  700.739100] iwlwifi 0000:03:00.0: base HW address: 18:26:49:f0:5a:0a
[  701.943919] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
2022-01-28 00:13:31 +01:00
Nils Freydank 2ec4f1535c
pygoscelis: Bump to 5.16.3-T14s 2022-01-27 23:51:17 +01:00
Nils Freydank 4da410003a
pygoscelis: Enable CONFIG_STRICT_SIGALTSTACK_SIZE 2022-01-10 23:19:29 +01:00
Nils Freydank 679992cdd3
pygoscelis: Disable CONFIG_NET_VENDOR_ASIX 2022-01-10 23:19:29 +01:00
Nils Freydank 9148a2f557
pygoscelis: Bump to 5.16.0-T14s 2022-01-10 23:19:28 +01:00
Nils Freydank 3cc0d7f086
pygoscelis: Disable CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
It looks as the SoC on the T14s (AMD Ryzen 7 PRO 4750U) doesn’t support
this feature, while grep’ing through my distfiles (i.e. source code of
my programms) indicated some software actually makes use of it.

For more details see e.g.:
- man 7 pkeys
- Documentation/core-api/protection-keys.rst (in the kernel sources)
- https://lwn.net/Articles/643797
- https://www.phoronix.com/scan.php?page=news_item&px=AMD-PRM-PCID-PKEY
2022-01-09 13:44:07 +01:00
Nils Freydank aebc3fdeab
pygoscelis: Disable CONFIG_USB_NET_RNDIS_WLAN 2022-01-08 12:06:21 +01:00
Nils Freydank ae89d527a4
pygoscelis: Disable CONFIG_NVME_MULTIPATH 2022-01-08 12:06:21 +01:00
Nils Freydank 6cf3c6477c
pygoscelis: Degrade CONFIG_X86_PMEM_LEGACY to module
This module is most-probably not used nor necessary on my machine and
might be removed in the future. For details about the technique see e.g.
https://github.com/pmem/ndctl/issues/32
https://www.intel.com/content/www/us/en/developer/articles/training/how-to-emulate-persistent-memory-on-an-intel-architecture-server.html
2022-01-08 12:06:21 +01:00
Nils Freydank df0e62b1b1
pygoscelis: Bump to 5.15.13-T14s 2022-01-08 12:06:20 +01:00
Nils Freydank f4b17afad6
pygoscelis: Bump to 5.15.12-T14s 2021-12-29 13:06:20 +01:00
Nils Freydank d905acd2c8
Reverting the systemd migration
This is even worse:
- pcscd keeps being restarted, even with explictly disabling it,
  blocking my GPG hw token
- bridge interface setup would require either full systemd networkd
  usage (yet I need NetworkManager for VPNs) or disabling most parts
  of systemd-networkd (hoping that would work better than with pcscd)

Revert "pygoscelis: Give up, migrate to systemd"

This reverts commit aab957d951.
2021-12-28 13:51:32 +01:00
Nils Freydank aab957d951
pygoscelis: Give up, migrate to systemd
Desktops without systemd became a PTIA to use. Examples:
- KDE is fucked up w/o systemd: https://bugs.kde.org/show_bug.cgi?id=432975
- new project expect systemd everywhere and the cool elogind project
  isn't enough anymore:
  e.g. https://invent.kde.org/plasma/plasma-firewall
  or pipewire, which expects `systemctl --user restart ...` to restart properly
- https://wiki.gentoo.org/wiki/Hard_dependencies_on_systemd
2021-12-26 21:11:13 +01:00
Nils Freydank 86d770a9f6
pygoscelis: Bump to 5.15.11-T14s 2021-12-22 22:45:39 +01:00
Nils Freydank 0335173dec
pygoscelis: Bump to 5.15.10-T14s 2021-12-18 15:29:36 +01:00
Nils Freydank 1d6d1fcd18
pygoscelis: Switch (back) to a higher timer frequency
In commit 23eecad7b4 (2021-10-13) I
lowered the timer frequency from 1 000 Hz to 100 Hz, but while I wasn't
able to recognize a reproducible drop in energy consumption there were
some heavy-load situations when the system started to stutter.

Setting it to 300 Hz as some binary distributions do sounds therfor like
a sane decision.
2021-12-15 22:51:33 +01:00
Nils Freydank 6330bf7d68
pygoscelis: Bump to 5.15.8-T14s 2021-12-15 22:46:03 +01:00
Nils Freydank 09625a9717
pygoscelis: Bump to 5.15.7-T14s 2021-12-08 21:35:25 +01:00
Nils Freydank bf5acb0514
pygoscelis: Bump to 5.15.5-T14s 2021-11-27 17:21:26 +01:00
Nils Freydank dbc7e9e357
pygoscelis: Bump to 5.15.3-T14s 2021-11-19 09:44:39 +01:00
Nils Freydank 531a637741
pygoscelis: Disable CONFIG_CRYPTO_MD5 2021-11-04 21:46:53 +01:00
Nils Freydank 61cbddb4fa
pygoscelis: Enable CONFIG_ZERO_CALL_USED_REGS 2021-11-04 21:46:52 +01:00
Nils Freydank 2bff3ce69f
pygoscelis: Switch to CONFIG_IOMMU_DEFAULT_DMA_STRICT 2021-11-04 21:46:52 +01:00
Nils Freydank a585380847
pygoscelis: Disable CONFIG_X86_PLATFORM_DRIVERS_INTEL 2021-11-04 21:46:52 +01:00
Nils Freydank 90e6b8c0c1
pygoscelis: Enable some nice sounding conntrack stuff. 2021-11-04 21:46:52 +01:00
Nils Freydank 8f078787b0
pygoscelis: Disable some netfilter assets I never used. 2021-11-04 21:46:51 +01:00
Nils Freydank 5b516ef701
pygoscelis: Enable CONFIG_TCP_MD5SIG
I don't need it as I don't do anything with BGP.
2021-11-04 21:46:51 +01:00
Nils Freydank 994ec4bcab
pygoscelis: Enable CONFIG_WERROR 2021-11-04 21:46:51 +01:00
Nils Freydank 704829168a
pygoscelis: Bump to 5.15.0-T14s 2021-11-04 21:46:51 +01:00
Nils Freydank 5cb9736ab1
pygoscelis: Bump to 5.14.16-T14s 2021-11-03 19:52:55 +01:00
Nils Freydank 3b2a1f38f5
pygoscelis: Bump to 5.14.15-T14s 2021-10-27 12:17:44 +02:00
Nils Freydank 23eecad7b4
pygoscelis: Set the timer frequency to 100 Hz
Trying out a lower time frequency and check if it has any influence at all
after a short discussion in IRC about it.
To me it looks as there is no real impact on my hardware with this
After a debate in IRC and some reading it looks to me as there is no general
rule but many people with opinions. Therefore I don’t expect a difference in
overall power consumption or responsiveness, but will just try it out.

I set up a quick and dirty battery test:
- display brightness at 35 %
- wifi on
- bluetooth off
- some default background deamons running (cron, chrony/NTP, syncthing)
- one termina (konsole) open
- that energy monitor from KDE open
- CPU boost disabled with 'echo 0 > /sys/devices/system/cpu/cpufreq/boost'
- verified that temperatures are low enough that the fan is off

Both setups (5.14.11-T14s with CONFIG_HZ_1000=y vs. 5.14.12-T14s
with CONFIG_HZ_100=y) showed values around 5.6 W, down to 5.2 W, up to > 30W
as I called emerge to check if it's not just a display glitch.

As this is a Notebook I don't have to care at all about some video cards and
TV frequencies that are mentioned in various threads.

To end this commit message I’d like to share a quote that amused me during my
mini-research:

„864Hz is indeed the win - I won't use a kernel wihout that option anymore.”
 - User “creidiki”, forums.gentoo.org
2021-10-13 16:45:08 +02:00
Nils Freydank aeb29dd984
pygoscelis: Bump to 5.14.12-T14s 2021-10-13 16:45:08 +02:00
Nils Freydank 140a0f3d3f
pygoscelis: Bump to 5.14.11-T14s 2021-10-10 16:55:49 +02:00
Nils Freydank 860eb36800
pygoscelis: Bump to 5.14.10-T14s 2021-10-07 09:07:52 +02:00