unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
@ 2018-09-25 19:57 Nils Gillmann
  2018-09-25 23:36 ` Mark H Weaver
  2018-09-26  3:24 ` Mark H Weaver
  0 siblings, 2 replies; 8+ messages in thread
From: Nils Gillmann @ 2018-09-25 19:57 UTC (permalink / raw)
  To: 32840

Hi,

at taler we need shpchp as a module in the initrd.

Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
you were able to just specify it for the initrd.

With 4.18.9, this module became a compile-in/built-in (see linux
commit log).  I want to avoid maintaining yet another kernel
definition for future complications if I can.  Can we get this module
built in by default?

I consider it a bug as the functionality was given before and
disappeared now, leaving our system unable to upgrade unless I write
some code around it.

Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-09-25 19:57 bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in) Nils Gillmann
@ 2018-09-25 23:36 ` Mark H Weaver
  2018-10-17 22:59   ` Ludovic Courtès
  2018-09-26  3:24 ` Mark H Weaver
  1 sibling, 1 reply; 8+ messages in thread
From: Mark H Weaver @ 2018-09-25 23:36 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: 32840

Hi Nils,

Nils Gillmann <gillmann@n0.is> writes:

> at taler we need shpchp as a module in the initrd.
>
> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
> you were able to just specify it for the initrd.
>
> With 4.18.9, this module became a compile-in/built-in (see linux
> commit log).  I want to avoid maintaining yet another kernel
> definition for future complications if I can.  Can we get this module
> built in by default?

Sure, that sounds sensible.  I'll push a config update soon.

     Thanks,
       Mark

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-09-25 19:57 bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in) Nils Gillmann
  2018-09-25 23:36 ` Mark H Weaver
@ 2018-09-26  3:24 ` Mark H Weaver
  2018-09-26  6:21   ` Ricardo Wurmus
  1 sibling, 1 reply; 8+ messages in thread
From: Mark H Weaver @ 2018-09-26  3:24 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: 32840-done

Nils Gillmann <gillmann@n0.is> writes:

> at taler we need shpchp as a module in the initrd.
>
> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
> you were able to just specify it for the initrd.
>
> With 4.18.9, this module became a compile-in/built-in (see linux
> commit log).  I want to avoid maintaining yet another kernel
> definition for future complications if I can.  Can we get this module
> built in by default?

Done in commit fe73352e8073ea0a0e6f6b5591f24395671998ab on master.
Closing this bug now, but please reopen if appropriate.

     Thanks!
       Mark

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-09-26  3:24 ` Mark H Weaver
@ 2018-09-26  6:21   ` Ricardo Wurmus
  2018-09-26 16:27     ` Nils Gillmann
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2018-09-26  6:21 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 32840-done, Nils Gillmann


Mark H Weaver <mhw@netris.org> writes:

> Nils Gillmann <gillmann@n0.is> writes:
>
>> at taler we need shpchp as a module in the initrd.
>>
>> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
>> you were able to just specify it for the initrd.
>>
>> With 4.18.9, this module became a compile-in/built-in (see linux
>> commit log).  I want to avoid maintaining yet another kernel
>> definition for future complications if I can.  Can we get this module
>> built in by default?
>
> Done in commit fe73352e8073ea0a0e6f6b5591f24395671998ab on master.
> Closing this bug now, but please reopen if appropriate.

I don’t understand why building it as a module is needed when upstream
decided to turn it into a built-in feature.

Could you please explain?

-- 
Ricardo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-09-26  6:21   ` Ricardo Wurmus
@ 2018-09-26 16:27     ` Nils Gillmann
  0 siblings, 0 replies; 8+ messages in thread
From: Nils Gillmann @ 2018-09-26 16:27 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 32840, Nils Gillmann

Ricardo Wurmus transcribed 808 bytes:
> 
> Mark H Weaver <mhw@netris.org> writes:
> 
> > Nils Gillmann <gillmann@n0.is> writes:
> >
> >> at taler we need shpchp as a module in the initrd.
> >>
> >> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
> >> you were able to just specify it for the initrd.
> >>
> >> With 4.18.9, this module became a compile-in/built-in (see linux
> >> commit log).  I want to avoid maintaining yet another kernel
> >> definition for future complications if I can.  Can we get this module
> >> built in by default?
> >
> > Done in commit fe73352e8073ea0a0e6f6b5591f24395671998ab on master.
> > Closing this bug now, but please reopen if appropriate.

Thanks! I'll get back if this didn't fix upgrading the server.

> I don’t understand why building it as a module is needed when upstream
> decided to turn it into a built-in feature.
> 
> Could you please explain?

There are modules [M] and boolean y/n "builtins" in Linux. We don't need
to build it as a module now, since upstream changed it to be a builtin.
It is not covered by whatever selection we have in the kernel config as
builtins. Since the module disappeared, users of the module were left
with the choice to remove it and either build their own kernel variation
or ask for it as a feature.

I asked for it, since Taler wanted as little reliance on third-party
repositories as possible, no matter how reliable the repositories are.

> -- 
> Ricardo
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-09-25 23:36 ` Mark H Weaver
@ 2018-10-17 22:59   ` Ludovic Courtès
  2018-10-18  0:24     ` Mark H Weaver
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2018-10-17 22:59 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 32840, Nils Gillmann

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> Nils Gillmann <gillmann@n0.is> writes:
>
>> at taler we need shpchp as a module in the initrd.
>>
>> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
>> you were able to just specify it for the initrd.
>>
>> With 4.18.9, this module became a compile-in/built-in (see linux
>> commit log).  I want to avoid maintaining yet another kernel
>> definition for future complications if I can.  Can we get this module
>> built in by default?
>
> Sure, that sounds sensible.  I'll push a config update soon.

I’ve reopened the bug because I think we need the same change as in
fe73352e8073ea0a0e6f6b5591f24395671998ab for AArch64 (at least it
appears to be needed on the OverDrive 1000.)

Could you take a look?

(I’m not entirely sure about the workflow to get the updated config from
“make oldconfig”…)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-10-17 22:59   ` Ludovic Courtès
@ 2018-10-18  0:24     ` Mark H Weaver
  2018-10-18 22:16       ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Mark H Weaver @ 2018-10-18  0:24 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32840, Nils Gillmann

[-- Attachment #1: Type: text/plain, Size: 1863 bytes --]

Hi Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> Nils Gillmann <gillmann@n0.is> writes:
>>
>>> at taler we need shpchp as a module in the initrd.
>>>
>>> Before version 4.18.x, shpchp was a module we've build in guix' linux-libre,
>>> you were able to just specify it for the initrd.
>>>
>>> With 4.18.9, this module became a compile-in/built-in (see linux
>>> commit log).  I want to avoid maintaining yet another kernel
>>> definition for future complications if I can.  Can we get this module
>>> built in by default?
>>
>> Sure, that sounds sensible.  I'll push a config update soon.
>
> I’ve reopened the bug because I think we need the same change as in
> fe73352e8073ea0a0e6f6b5591f24395671998ab for AArch64 (at least it
> appears to be needed on the OverDrive 1000.)
>
> Could you take a look?

Sure.  I've attached a proposed patch below.  Would you like to try it
and push it to master if it works?

> (I’m not entirely sure about the workflow to get the updated config from
> “make oldconfig”…)

FYI, my current method is:

* Unpack the latest linux-libre source.
* Copy the existing kernel configuration to .config in the source dir.
* Manually edit .config with desired configuration change.
* Within "guix environment linux-libre" run:

      ARCH=arm64 make oldconfig

  More generally, ARCH should be set to the value returned by
  'system->linux-architecture' in (gnu packages linux).
* Manually edit out some changes that are clearly irrelevant,
  such the addition of a top comment saying which compiler I have in my
  PATH.

Some day, I would prefer to have multiple smaller configuration files,
with a shared common configuration plus smaller architecture-specific
files, but we're not there yet.

     Thanks,
       Mark



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: [PATCH] gnu: linux-libre: Enable SHPC PCI Hotplug driver on ARM64 --]
[-- Type: text/x-patch, Size: 1163 bytes --]

From 41fdb333b05e300622c4c41aaced70fff2c6df7f Mon Sep 17 00:00:00 2001
From: Mark H Weaver <mhw@netris.org>
Date: Wed, 17 Oct 2018 20:09:19 -0400
Subject: [PATCH] gnu: linux-libre: Enable SHPC PCI Hotplug driver on ARM64.

Fixes <https://bugs.gnu.org/32840> on ARM64.

* gnu/packages/aux-files/linux-libre/4.18-arm64.conf: Add
CONFIG_HOTPLUG_PCI_SHPC=y.
---
 gnu/packages/aux-files/linux-libre/4.18-arm64.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/aux-files/linux-libre/4.18-arm64.conf b/gnu/packages/aux-files/linux-libre/4.18-arm64.conf
index ab30f51d2..64b14b52c 100644
--- a/gnu/packages/aux-files/linux-libre/4.18-arm64.conf
+++ b/gnu/packages/aux-files/linux-libre/4.18-arm64.conf
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/arm64 4.18.0-gnu Kernel Configuration
+# Linux/arm64 4.18.14-gnu Kernel Configuration
 #
 CONFIG_ARM64=y
 CONFIG_64BIT=y
@@ -481,7 +481,7 @@ CONFIG_HOTPLUG_PCI=y
 CONFIG_HOTPLUG_PCI_ACPI=y
 CONFIG_HOTPLUG_PCI_ACPI_IBM=m
 CONFIG_HOTPLUG_PCI_CPCI=y
-# CONFIG_HOTPLUG_PCI_SHPC is not set
+CONFIG_HOTPLUG_PCI_SHPC=y
 
 #
 # PCI controller drivers
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in)
  2018-10-18  0:24     ` Mark H Weaver
@ 2018-10-18 22:16       ` Ludovic Courtès
  0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2018-10-18 22:16 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 32840, Nils Gillmann

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:

[...]

>> I’ve reopened the bug because I think we need the same change as in
>> fe73352e8073ea0a0e6f6b5591f24395671998ab for AArch64 (at least it
>> appears to be needed on the OverDrive 1000.)
>>
>> Could you take a look?
>
> Sure.  I've attached a proposed patch below.  Would you like to try it
> and push it to master if it works?

It does fix the problem for me so I’ve pushed it as
402e60859da609e95d16a04a253977da88f4077e.

>> (I’m not entirely sure about the workflow to get the updated config from
>> “make oldconfig”…)
>
> FYI, my current method is:
>
> * Unpack the latest linux-libre source.
> * Copy the existing kernel configuration to .config in the source dir.
> * Manually edit .config with desired configuration change.
> * Within "guix environment linux-libre" run:
>
>       ARCH=arm64 make oldconfig
>
>   More generally, ARCH should be set to the value returned by
>   'system->linux-architecture' in (gnu packages linux).
> * Manually edit out some changes that are clearly irrelevant,
>   such the addition of a top comment saying which compiler I have in my
>   PATH.

OK, thanks for explaining!

> Some day, I would prefer to have multiple smaller configuration files,
> with a shared common configuration plus smaller architecture-specific
> files, but we're not there yet.

Yeah…

Anyway I’m happy to say I have GuixSD running on the OverDrive 1000!
There were a few more shenanigans (the openSuSE kernel had a few things
set to “y” that we’re setting to “m”), but then it went smoothly.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-18 22:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 19:57 bug#32840: linux-libre 4.18.9: shpchp is no longer a module (now: built-in) Nils Gillmann
2018-09-25 23:36 ` Mark H Weaver
2018-10-17 22:59   ` Ludovic Courtès
2018-10-18  0:24     ` Mark H Weaver
2018-10-18 22:16       ` Ludovic Courtès
2018-09-26  3:24 ` Mark H Weaver
2018-09-26  6:21   ` Ricardo Wurmus
2018-09-26 16:27     ` Nils Gillmann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).