GNU bug report logs - #43078
linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y

Previous Next

Package: guix;

Reported by: Vitaliy Shatrov <guix.vits <at> disroot.org>

Date: Thu, 27 Aug 2020 21:10:03 UTC

Severity: normal

Done: Vagrant Cascadian <vagrant <at> debian.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43078 in the body.
You can then email your comments to 43078 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43078; Package guix. (Thu, 27 Aug 2020 21:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vitaliy Shatrov <guix.vits <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 27 Aug 2020 21:10:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vitaliy Shatrov <guix.vits <at> disroot.org>
To: bug-guix <at> gnu.org
Cc: Vagrant Cascadian <vagrant <at> debian.org>
Subject: linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y
Date: Fri, 28 Aug 2020 01:52:58 +0700
Hello Guix.

I:
   1. had linux-libre-arm64-generic as my kernel.
   2. added only (elogind-service-type) to my Guix System's config.
   3. ran `guix system reconfigure`.
   4. get some errors: "///sys/something/freezer cannot be something".
   5. rebooted, and were unable to log-in (get no prompt).

The issue was solved by using the same linux-libre-arm64-generic, but
customized: i set a 'CONFIG_CGROUP_FREEZER=y' in kconfig.

As this is only one config related to logind that not enabled, i want us
to have it enabled by default on linux-libre-arm64-generic, or as Vagrant
wrote on IRC, "added to gnu/packages/linux.scm: %default-extra-linux-options".

I need logind for sway WM to work.. and probably for other things.

Thanks.




Information forwarded to bug-guix <at> gnu.org:
bug#43078; Package guix. (Thu, 27 Aug 2020 21:59:02 GMT) Full text and rfc822 format available.

Message #8 received at 43078 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Vitaliy Shatrov <guix.vits <at> disroot.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 43078 <at> debbugs.gnu.org
Subject: Re: bug#43078: linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y
Date: Thu, 27 Aug 2020 17:58:21 -0400
On Fri, Aug 28, 2020 at 01:52:58AM +0700, Vitaliy Shatrov wrote:
> Hello Guix.
> 
> I:
>    1. had linux-libre-arm64-generic as my kernel.
>    2. added only (elogind-service-type) to my Guix System's config.
>    3. ran `guix system reconfigure`.
>    4. get some errors: "///sys/something/freezer cannot be something".
>    5. rebooted, and were unable to log-in (get no prompt).
> 
> The issue was solved by using the same linux-libre-arm64-generic, but
> customized: i set a 'CONFIG_CGROUP_FREEZER=y' in kconfig.

This option is enabled in all of our kernel configurations:

------
$ git grep CGROUP_FREEZER
gnu/packages/aux-files/linux-libre/4.14-arm.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.14-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.14-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.19-arm.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.19-arm64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.19-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.4-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.4-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.9-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/4.9-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.4-arm.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.4-arm64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.4-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.7-arm.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.7-arm64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.7-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.7-x86_64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.8-arm.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.8-arm64.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.8-i686.conf:CONFIG_CGROUP_FREEZER=y
gnu/packages/aux-files/linux-libre/5.8-x86_64.conf:CONFIG_CGROUP_FREEZER=y
------




Information forwarded to bug-guix <at> gnu.org:
bug#43078; Package guix. (Thu, 27 Aug 2020 22:58:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Leo Famulari <leo <at> famulari.name>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, bug-guix <at> gnu.org,
 Vitaliy Shatrov <guix.vits <at> disroot.org>, 43078 <at> debbugs.gnu.org
Subject: Re: bug#43078: linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y
Date: Fri, 28 Aug 2020 00:57:28 +0200
[Message part 1 (text/plain, inline)]
Leo, Vits,

Leo Famulari 写道:
> On Fri, Aug 28, 2020 at 01:52:58AM +0700, Vitaliy Shatrov wrote:
>> Hello Guix.
>> 
>> I:
>>    1. had linux-libre-arm64-generic as my kernel.
>>    2. added only (elogind-service-type) to my Guix System's 
>>    config.
>>    3. ran `guix system reconfigure`.
>>    4. get some errors: "///sys/something/freezer cannot be 
>>    something".
>>    5. rebooted, and were unable to log-in (get no prompt).
>> 
>> The issue was solved by using the same 
>> linux-libre-arm64-generic, but
>> customized: i set a 'CONFIG_CGROUP_FREEZER=y' in kconfig.
>
> This option is enabled in all of our kernel configurations:
>
> ------
> $ git grep CGROUP_FREEZER

Indeed, and the bug[0] reported here is that -generic doesn't use 
these configurations at all:

[Message part 2 (text/plain, inline)]
(define-public linux-libre-arm64-generic
 (make-linux-libre* linux-libre-version
                    linux-libre-source
                    '("aarch64-linux")
                    #:defconfig "defconfig"
                    #:extra-version "arm64-generic"
                    #:extra-options
                    (append
                     `(;; needed to fix the RTC on rockchip 
                     platforms
                       ("CONFIG_RTC_DRV_RK808" . #t))
                     %default-extra-linux-options)))
[Message part 3 (text/plain, inline)]
Note the missing #:configuration-file.

[0]: I don't know if this is really a bug--in fact I suspect it's 
the raison d'être of this variant--but this needs to be better 
documented and perhaps even renamed.  To me, ‘generic’ means 
‘distro default’, or perhaps ‘sanely minimal’, not ‘our own 
upstream's sometimes questionable defconfig that can't boot our 
own desktop’.

Allegedly.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#43078; Package guix. (Thu, 27 Aug 2020 22:58:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43078; Package guix. (Thu, 27 Aug 2020 23:26:01 GMT) Full text and rfc822 format available.

Message #17 received at 43078 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Vitaliy Shatrov <guix.vits <at> disroot.org>
Cc: 43078 <at> debbugs.gnu.org
Subject: Re: linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y
Date: Thu, 27 Aug 2020 16:25:38 -0700
[Message part 1 (text/plain, inline)]
On 2020-08-28, Vitaliy Shatrov wrote:
>    1. had linux-libre-arm64-generic as my kernel.
>    2. added only (elogind-service-type) to my Guix System's config.
>    3. ran `guix system reconfigure`.
>    4. get some errors: "///sys/something/freezer cannot be something".
>    5. rebooted, and were unable to log-in (get no prompt).
>
> The issue was solved by using the same linux-libre-arm64-generic, but
> customized: i set a 'CONFIG_CGROUP_FREEZER=y' in kconfig.
>
> As this is only one config related to logind that not enabled, i want us
> to have it enabled by default on linux-libre-arm64-generic, or as Vagrant
> wrote on IRC, "added to gnu/packages/linux.scm: %default-extra-linux-options".

Given that this is present in all the "linux-libre" packages
(e.g. without arm-generic or arm64-generic ...), I think it makes sense
to add this to %default-extra-linux-options.

*Untested* patch attached.

I did at one point try to enable this on arm-generic and it required
additional features I couldn't track down... and at some point this was
enabled on arm64-generic (I tested on "pinebook" with arm64-generic a
while back).

live well,
  vagrant

[0001-gnu-default-extra-linux-options-Enable-CONFIG_CGROUP.patch (text/x-diff, inline)]
From d91a90a667262b6e0ab82542a28c48b70eee37fc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant <at> debian.org>
Date: Thu, 27 Aug 2020 14:47:43 -0700
Subject: [PATCH] gnu: %default-extra-linux-options: Enable
 CONFIG_CGROUP_FREEZER.

Fixes: https://issues.guix.gnu.org/43078

* gnu/packages/linux (%default-extra-linux-options): Enable
  CONFIG_CGROUP_FREEZER.
---
 gnu/packages/linux.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 26ce379568..1f6236163f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -641,6 +641,8 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
     ("CONFIG_USER_NS" . #t)
     ("CONFIG_PID_NS" . #t)
     ("CONFIG_NET_NS" . #t)
+    ;; cgroup freezer needed for elogind: https://issues.guix.gnu.org/43078
+    ("CONFIG_CGROUP_FREEZER" . #t)
     ;; Modules required for initrd:
     ("CONFIG_NET_9P" . m)
     ("CONFIG_NET_9P_VIRTIO" . m)
-- 
2.20.1

[signature.asc (application/pgp-signature, inline)]

Reply sent to Vagrant Cascadian <vagrant <at> debian.org>:
You have taken responsibility. (Tue, 01 Sep 2020 22:48:01 GMT) Full text and rfc822 format available.

Notification sent to Vitaliy Shatrov <guix.vits <at> disroot.org>:
bug acknowledged by developer. (Tue, 01 Sep 2020 22:48:02 GMT) Full text and rfc822 format available.

Message #22 received at 43078-done <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Vitaliy Shatrov <guix.vits <at> disroot.org>
Cc: 43078-done <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>,
 Leo Famulari <leo <at> famulari.name>
Subject: Re: linux-libre-arm64-generic lacks CONFIG_CGROUP_FREEZER=y
Date: Tue, 01 Sep 2020 15:47:05 -0700
[Message part 1 (text/plain, inline)]
On 2020-08-27, Vagrant Cascadian wrote:
> On 2020-08-28, Vitaliy Shatrov wrote:
>>    1. had linux-libre-arm64-generic as my kernel.
>>    2. added only (elogind-service-type) to my Guix System's config.
>>    3. ran `guix system reconfigure`.
>>    4. get some errors: "///sys/something/freezer cannot be something".
>>    5. rebooted, and were unable to log-in (get no prompt).
>>
>> The issue was solved by using the same linux-libre-arm64-generic, but
>> customized: i set a 'CONFIG_CGROUP_FREEZER=y' in kconfig.
>>
>> As this is only one config related to logind that not enabled, i want us
>> to have it enabled by default on linux-libre-arm64-generic, or as Vagrant
>> wrote on IRC, "added to gnu/packages/linux.scm: %default-extra-linux-options".
>
> Given that this is present in all the "linux-libre" packages
> (e.g. without arm-generic or arm64-generic ...), I think it makes sense
> to add this to %default-extra-linux-options.
>
> *Untested* patch attached.

Tested and added some more kernel options needed for
linux-libre-arm-generic on armhf as well.

Pushed a fix as 450dcd1aff741c4f81cc9508ce33f19e62edefb7.

Thanks for reporting the issue!


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 30 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.