From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6O/LJLxNLWPCCwEAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 08:10:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gJXPJLxNLWMKIgAAauVa8A (envelope-from ) for ; Fri, 23 Sep 2022 08:10:04 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 744633CE94 for ; Fri, 23 Sep 2022 08:10:03 +0200 (CEST) Received: from localhost ([::1]:60078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obbsw-0003c3-Fp for larch@yhetil.org; Fri, 23 Sep 2022 02:10:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obbs7-0003b2-VH for guix-patches@gnu.org; Fri, 23 Sep 2022 02:09:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obbry-0003MM-O2 for guix-patches@gnu.org; Fri, 23 Sep 2022 02:09:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obbry-0006yN-Dd for guix-patches@gnu.org; Fri, 23 Sep 2022 02:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58016] [PATCH] gnu: linux-libre: Support zram on all kernels. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Sep 2022 06:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58016 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58016@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166391334126794 (code B ref -1); Fri, 23 Sep 2022 06:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2022 06:09:01 +0000 Received: from localhost ([127.0.0.1]:39125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obbrw-0006y6-Jv for submit@debbugs.gnu.org; Fri, 23 Sep 2022 02:09:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:39564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obbrq-0006xr-Q7 for submit@debbugs.gnu.org; Fri, 23 Sep 2022 02:08:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obbrq-0003Tb-JC for guix-patches@gnu.org; Fri, 23 Sep 2022 02:08:54 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:33779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obbrk-0003KQ-6E for guix-patches@gnu.org; Fri, 23 Sep 2022 02:08:53 -0400 Received: by mail-ej1-x629.google.com with SMTP id lc7so25876764ejb.0 for ; Thu, 22 Sep 2022 23:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date; bh=FgXrDwCbFKgnwTzySldr/pWRYGrNbCl18LOuykkBtCo=; b=MngQIQREbUIU4XU19u8UCRFEafGjhXGKVvMlMN3O7PYoBputrHCDmcGg0Mb8/vmQOR +R3tgrejaK2DH7Ep8/FcIpZDDUqicH5cslSEx5IAfowyWoNRe8rqw5F5HcKQC8EYrz8A x1E3VH4XLKePcLyUYRdMCRJKrxBDCAkkhKdAhjsQ5+8HRz9H6lHh1zGhRrsmo0AqH+wN oAw7q6bLu6oM9UG1iHPKhd77W13VrBTVI4nYqWayADwhadyOUiq111CULwN6heMlVa8y ryXPCANDGsyLw1Tli0pvqA7BHooIHcY3yu7HII6W2wFJxJ1z2l/ZAiHYyF0851MY5+5E rhOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date; bh=FgXrDwCbFKgnwTzySldr/pWRYGrNbCl18LOuykkBtCo=; b=nGoXjtUvm9Tq7/9ftP10QR9UXQEX7gH1RAyznn3A6J0co9b+L5by3HNSn1mKC9us6r aI9r2iMCB+Iz3QzzF/8CI3mNNSBKhNvLo81Z9Ugkw2JabWgmnwcU2rzQRj13PzVi1GuE vzGNZAw1ZFOcpCttAj7YlG1mpkT+eIRno144IclAPWqqObpJMwqT3471f5RSYvnY0Lh4 mnyodyz6/DeZvPLHJdDsnpEORoiI+YrUFFe0PvSK3N4OMpFRgu6SV046ahvGtxo8JSw6 7YMRg7L71Es7/RS7NMoFO2BhYCvHax4J55edNGFnxrHkbN0j8s9qe1KFdmLPDWaNbXEs ZXjA== X-Gm-Message-State: ACrzQf2HCbMv2YZJQbSY40lBbsFt0BlLGeYAllzMUSRjcuJvVsTknSxM e+dIbMHOu8NBvReWnaxH2/uSgqLBje4= X-Google-Smtp-Source: AMsMyM6jhaz8tdfOHl4T6tOIdPEszBc4rjOe6oDOuiwLMPV3KlhI/XtLmtaBA4JDF2BF0BYsvWeQGw== X-Received: by 2002:a17:907:743:b0:740:ef93:2ffc with SMTP id xc3-20020a170907074300b00740ef932ffcmr5707774ejb.514.1663913325093; Thu, 22 Sep 2022 23:08:45 -0700 (PDT) Received: from localhost ([141.226.13.62]) by smtp.gmail.com with ESMTPSA id h23-20020a170906399700b00773f3cb67ffsm3506729eje.28.2022.09.22.23.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 23:08:44 -0700 (PDT) From: Efraim Flashner Date: Fri, 23 Sep 2022 09:08:32 +0300 Message-Id: X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=efraim.flashner@gmail.com; helo=mail-ej1-x629.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663913403; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FgXrDwCbFKgnwTzySldr/pWRYGrNbCl18LOuykkBtCo=; b=R0I781nB1hhsx2OzNLTLJZAEqFmcJDmHNHd154fuMy+Gid9m3TSw0xakdYWpVacqJY05OC BgzqA3AiWObCRnz8oXDuPRka0JpM1RkQF1Ab1Q9aVjyLDxxv4wEGZHz+5BKuF2Rm2RK+H2 IWJjtgbeOx95BqJxhx+2rDKhKwxhxaWdvZx3KcvcYKsoTgH645Vntye5bIoVDnL8XOwtGE q2/oK5QZ4L70tVjq/SJo3ne0csvSBb/nxVTei3mr75GG0mDA+EU1UgOmKrFi9RmntmUAWi 2e5kV+xX6GZCf6+5iaTftTxvBspkkKcqm4zxCO5Py9DwfGvX9KMpr5JW4Zr+oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663913403; a=rsa-sha256; cv=none; b=PNkeofeQwHhczSP88YqV6SGdA4U9esUwzNvoOWHdjciqaGApCyr/7qBs92RN9ISxxBx3/z KH5LEmtMw93Xw/4ai+63xbHlQytuXrHs4B01K3Gt39zlztf2/M4/DZD/TFJ2F8JsJFJ5bW 44dUbZiyBFg7ywpKyEqeYKVF9RIxvSetuigBAyUVbcGGIOywf++iZu28sRIy3oGQ8W5CIE n+n/DeSx8SQKhdvn0XNAefb6P03pdZCPLdJaIjRm7qJ9/rgaZ496VTDTxfPRvRGlOK5/PY JJEu4iYdzf5+0v4HT0Py2oQ+Gtm5PGvH8GB6EkkDllAz2MwxR+r3k7++5d93Zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MngQIQRE; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MngQIQRE; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 744633CE94 X-Spam-Score: 3.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: A8PIa0MHKGAX * gnu/packages/linux.scm (%default-extra-linux-options): Add config options to add zram support. --- Currently we only have zram support in our kernel .conf files, this adds it to all the linux-libre--generic kernels, and any other ones I may have forgotten about. --- gnu/packages/linux.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 306c18e398..18f8efe2f2 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -695,6 +695,10 @@ (define %default-extra-linux-options ("CONFIG_PROC_PID_CPUSET" . #t) ;; Allow disk encryption by default ("CONFIG_DM_CRYPT" . m) + ;; Support zram on all kernel configs + ("CONFIG_ZSWAP" . #t) + ("CONFIG_ZSMALLOC" . #t) + ("CONFIG_ZRAM" . m) ;; Modules required for initrd: ("CONFIG_NET_9P" . m) ("CONFIG_NET_9P_VIRTIO" . m) base-commit: 2e8b4f9bfa00489fd3acff305837a79af236e183 -- 2.37.3