Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #81430

Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module

Path csiph.com!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!bofh.it!news.nic.it!robomod
From Luca Boccassi <bluca@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module
Date Thu, 04 Jan 2024 12:40:01 +0100
Message-ID <HSueR-IDo-3@gated-at.bofh.it> (permalink)
References <HSsd3-Hdd-5@gated-at.bofh.it> <HSsd3-Hdd-5@gated-at.bofh.it>
X-Original-To 1059969@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Thu Jan 4 11:39:14 2024
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -0.01
Reply-To Luca Boccassi <bluca@debian.org>, 1059969@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1059969
X-Debian-Pr-Package src:linux
X-Debian-Pr-Keywords patch
X-Debian-Pr-Source linux
X-Gm-Message-State AOJu0YxGm7tCGiQFVfUxaEq3/VxGXdQDz1JysO1M39z3rDPAuSQK9Rx/ +0sZXjL3/WHI3AtIIOtWb62Y4S0/2BsZg76w
X-Google-SMTP-Source AGHT+IEe5oi2Gp/HpR5F+ntkRfuB6pbLmIrblQZwb4SI8ZiaFsgFdhGfwMZEOLYwiKnoQR3YxneAJg==
X-Received by 2002:a05:600c:1819:b0:40d:7607:a996 with SMTP id n25-20020a05600c181900b0040d7607a996mr300434wmp.183.1704368272944; Thu, 04 Jan 2024 03:37:52 -0800 (PST)
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
User-Agent Evolution 3.46.4-2
MIME-Version 1.0
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1814292
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 04 Jan 2024 12:37:51 +0100
X-Original-Message-ID <64794682819d5f0b0f19ca57f4b94fa4c92a1999.camel@debian.org>
X-Original-References <170435981787.4371.16674283142775211083.reportbug@Elite865-G10> <170435981787.4371.16674283142775211083.reportbug@Elite865-G10>
Xref csiph.com linux.debian.bugs.dist:1181032 linux.debian.kernel:81430

Cross-posted to 2 groups.

Show key headers only | View raw


On Thu, 04 Jan 2024 17:16:57 +0800 Jy Deng <1700011628@pku.edu.cn>
wrote:
> Package: src:linux
> Version: 6.6.9-1
> Severity: normal
> Tags: patch
> X-Debbugs-Cc: 1700011628@pku.edu.cn
> 
> Dear Maintainer,
> 
> In short, current configuration of debian kernel makes some scaling
governors
> not usable, for example amd_pstate=passive Ondemand. Some small
changes to
> configuration can solve the problem.
> 
> To sovle the problem there is two optional ways:
> 1. Change some configurations like CONFIG_CPU_FREQ_GOV_POWERSAVE to y
rather
> than m
> All the configuraion below needs to be chanegd to y:
> CONFIG_CPU_FREQ_GOV_POWERSAVE=y
> CONFIG_CPU_FREQ_GOV_USERSPACE=y
> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
> CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
> 
> 2. Change the configuration CONFIG_MODULE_COMPRESS_XZ=y to
> CONFIG_MODULE_COMPRESS_NONE=y
> Notice that CONFIG_MODULE_COMPRESS_XZ=y not only breaks cpu frequency
governors
> but also breaks make bindeb-pkg. See
> https://bugzilla.kernel.org/show_bug.cgi?id=218341
> So that choose this option can deal with this issue too.
> 
> Two file attached is about the two ways above to fix the problem.
> 
> 
> 
> Here is some explanation:
> 
> Debian kernel used to set configuration as
CONFIG_MODULE_COMPRESS_NONE=y. but
> after 6.6 debian kernel configuration use CONFIG_MODULE_COMPRESS_XZ=y
to
> compress the kernel module. However, modules for cpu frequency
governors is not
> usable when it's module is compressed.
> 
> For example, CONFIG_CPU_FREQ_GOV_POWERSAVE=m is fine to work if
> CONFIG_MODULE_COMPRESS_NONE=y , but if CONFIG_MODULE_COMPRESS_XZ=y is
set then
> powersave governor is unavailable. This problem is same to other cpu
frequency
> governor configurations like CONFIG_CPU_FREQ_GOV_ONDEMAND=m
> 
> On the other hand, configuration like CONFIG_CPU_FREQ_GOV_POWERSAVE=y
build the
> governor into kernel rather than module, so that such problem does
not exist.
> 
> Notice that such problem not only breaks scaling driver acpi-cpufreq,
but also
> breaks modules for example amd pstate.

Why do those config break when the compression config is enabled? That
sounds like a bug in the kernel for those features, have you reported
that upstream? At the very least, the configuration system should
automatically set those to built-in, or refuse the wrong combination

-- 
Kind regards,
Luca Boccassi

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module Luca Boccassi <bluca@debian.org> - 2024-01-04 12:40 +0100
  Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module Jy Deng <1700011628@pku.edu.cn> - 2024-01-04 14:50 +0100
    Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module Diederik de Haas <didi.debian@cknow.org> - 2024-01-04 15:20 +0100
      Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module Jy Deng <1700011628@pku.edu.cn> - 2024-01-04 16:00 +0100
      Bug#1059969: linux-image-6.6.9-amd64: CONFIG_MODULE_COMPRESS_XZ=y breaks cpu frequency scaling governor kernel module Jy Deng <1700011628@pku.edu.cn> - 2024-01-04 16:50 +0100

csiph-web