From patchwork Sat Jul 4 18:52:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 23049 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 777EF27BBE3; Sat, 4 Jul 2020 19:53:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 305B427BBE1 for ; Sat, 4 Jul 2020 19:53:13 +0100 (BST) Received: from localhost ([::1]:45194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrnHk-0005eq-LC for patchwork@mira.cbaines.net; Sat, 04 Jul 2020 14:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrnHa-0005df-Or for guix-patches@gnu.org; Sat, 04 Jul 2020 14:53:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrnHa-0006dw-EA for guix-patches@gnu.org; Sat, 04 Jul 2020 14:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jrnHa-0005CW-Bi for guix-patches@gnu.org; Sat, 04 Jul 2020 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42193] [WIP 0/6] Add kernel-module-configuration service Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jul 2020 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 42193@debbugs.gnu.org Cc: guix-devel@gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159388878019979 (code B ref -1); Sat, 04 Jul 2020 18:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2020 18:53:00 +0000 Received: from localhost ([127.0.0.1]:59612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrnHR-0005C5-6M for submit@debbugs.gnu.org; Sat, 04 Jul 2020 14:53:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:43110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrnHN-0005Bv-Hf for submit@debbugs.gnu.org; Sat, 04 Jul 2020 14:52:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrnHN-0005Ko-3D; Sat, 04 Jul 2020 14:52:49 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:41475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrnHK-0006NL-Lr; Sat, 04 Jul 2020 14:52:48 -0400 X-Originating-IP: 176.181.186.101 Received: from localhost (i15-les02-ntr-176-181-186-101.sfr.lns.abo.bbox.fr [176.181.186.101]) (Authenticated sender: brice@waegenei.re) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 3C4CFFF805; Sat, 4 Jul 2020 18:52:41 +0000 (UTC) From: Brice Waegeneire Date: Sat, 4 Jul 2020 20:52:34 +0200 Message-Id: <20200704185234.12571-1-brice@waegenei.re> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.199; envelope-from=brice@waegenei.re; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/04 14:52:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix, Here is a work-in-progress to create a service centralizing the configuration for built-in and loadable kernel modules. The kernel module configuration service has been implemented by making some fields from 'operating-system' custom from the 'services' field. Here are are some example of how to use it. --8<---------------cut here---------------start------------->8--- ;; Loadable kernel module (simple-service 'ddcci-module kernel-module-configuration-service-type (list (kernel-module (name "ddcci") (package ddcci-driver-linux) (load? #t) (options '("dyndbg" "delay=600"))) (kernel-module (name "ddcci-backlight") (blacklist? #t)))) ;; Built-in kernel module (simple-service 'intel-module kernel-module-configuration-service-type (list (kernel-module (name "i915") (options '("fastboot=1"))))) --8<---------------cut here---------------end--------------->8--- This WIP version is mainly missing the ability to configure built-in modules trough the kernel arguments. It's the continuation of the work on kernel-module-loader-service[1] and is needed to help fixing #41082[2]. I will try to go back to it after the GSOC network boot project. [1]: https://issues.guix.info/40274 [2]: https://issues.guix.info/41082 - Brice Brice Waegeneire (6): services: simulated-wifi: Use 'kernel-module-loader'. services: Add 'kernel-profile-service-type'. services: Add 'modprobe-service-type'. services: kernel-module-loader: Return a single 'shepherd-service'. WIP services: Add kernel-arguments-service-type. WIP services: Add kernel-module-configuration service. gnu/services.scm | 102 +++++++++--- gnu/services/linux.scm | 276 +++++++++++++++++++++++++++++---- gnu/services/networking.scm | 25 +-- gnu/system.scm | 55 +++++-- gnu/system/linux-container.scm | 2 + gnu/tests/linux-modules.scm | 65 +++++--- 6 files changed, 420 insertions(+), 105 deletions(-)