From patchwork Sun Jan 30 03:33:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 36890 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 D139827BBEA; Sun, 30 Jan 2022 03:34:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 46C6527BBE9 for ; Sun, 30 Jan 2022 03:34:27 +0000 (GMT) Received: from localhost ([::1]:39144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nE0yw-000561-E2 for patchwork@mira.cbaines.net; Sat, 29 Jan 2022 22:34:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nE0yY-00055s-Vz for guix-patches@gnu.org; Sat, 29 Jan 2022 22:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nE0yY-0002Ar-LT for guix-patches@gnu.org; Sat, 29 Jan 2022 22:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nE0yY-0002KA-Hz for guix-patches@gnu.org; Sat, 29 Jan 2022 22:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53619] [PATCH 0/3] gnu: linux-libre: Build the snd-emu10k1 module. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Jan 2022 03:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 53619@debbugs.gnu.org Received: via spool by 53619-submit@debbugs.gnu.org id=B53619.16435136378921 (code B ref 53619); Sun, 30 Jan 2022 03:34:02 +0000 Received: (at 53619) by debbugs.gnu.org; 30 Jan 2022 03:33:57 +0000 Received: from localhost ([127.0.0.1]:35296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nE0yT-0002Jo-2D for submit@debbugs.gnu.org; Sat, 29 Jan 2022 22:33:57 -0500 Received: from mail-qv1-f52.google.com ([209.85.219.52]:41878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nE0yP-0002JV-VN for 53619@debbugs.gnu.org; Sat, 29 Jan 2022 22:33:55 -0500 Received: by mail-qv1-f52.google.com with SMTP id e17so929996qvb.8 for <53619@debbugs.gnu.org>; Sat, 29 Jan 2022 19:33:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ksCZfXv1RDF8z0qmfCHcNxnSRbAqloWztlTRsAXImUs=; b=YcBDGC0ZfB15gigAD7a4FHYC6pIfY6p1RiDtgc5TChPS9RhJJQEAYT+fBPHTDJoQzr Zj43zv2P7IeuxsKDNxAtinuOQZmESnAZNWsPSa4hy4etJ0bnMyIobDa0EnegPfFfwfrE 6jP7manmDsDV+kPB6Pi12K0xSZQ2IER+014/IFRtQFCgUqxJYLF6+UpZDXo4EM9ckERn 53TkutUnG6c0/e0vYzX64udpJXWXno/TcMtDADSiWAQ8Ra2BzIypp+W66728syOBuV3f hCh6GoRm6dc0yk9LbyPTxsIIrRamQj6E8nF/KwXYxp7QNwd6dsXik80kfN/984ftEb1c pDpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ksCZfXv1RDF8z0qmfCHcNxnSRbAqloWztlTRsAXImUs=; b=Oo6k5xqpVBx/Iqq2Xvn8yBTeYg0l9sGeTMq5k7r1UHwCzZAGqcxVWPwhclCoKVOHpP LT670HZVQDR8DY3yVY8J+1BzSvOXoL29Pzj52IKMsgB2kbmStfcl7f204uyIlr8Jehmq 50si8FNhtfhKttMHi+iqUV/9X7DeI7yLD3lmHFLx15wgMI4fY0GNXMfaccc/sCxn2Kdp r+/CvUAyvJqioRWCq7vBCrmVfPtCFAndySwc7n6qKLAtqYdIxaSCeLutc60aRrQh/vo4 PVrOyjb09bnv9jbgyi9mLKNB7sTkxHYQ9XGSswfYQ3kcruzFdmvqRrryAiRgqCeD31p4 uSZQ== X-Gm-Message-State: AOAM531tCe7Xl1nVfEVq7JUHeX4Vb72OSAac6usmIthxIjwAlu0sqnWG cQDBBVymbhepaKbUSIUMKxkWF3e7yto= X-Google-Smtp-Source: ABdhPJxqWUmTZNZZla/w99RFdBpLrv9qfnk4p2Lj6bAEwXIeD0yFVF7pny4lvTeRXCsP1Ej6xIyjEA== X-Received: by 2002:ad4:5be7:: with SMTP id k7mr12873207qvc.9.1643513628183; Sat, 29 Jan 2022 19:33:48 -0800 (PST) Received: from hurd (dsl-153-218.b2b2c.ca. [66.158.153.218]) by smtp.gmail.com with ESMTPSA id az38sm2653336qkb.124.2022.01.29.19.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 19:33:47 -0800 (PST) From: Maxim Cournoyer References: <20220129023034.3574-1-maxim.cournoyer@gmail.com> Date: Sat, 29 Jan 2022 22:33:46 -0500 In-Reply-To: (Leo Famulari's message of "Sat, 29 Jan 2022 13:29:25 -0500") Message-ID: <87y22x3nj9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 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 Hi Leo, Leo Famulari writes: > On Fri, Jan 28, 2022 at 09:30:34PM -0500, Maxim Cournoyer wrote: >> Hello Guix, >> >> If like me, you discovered a forgotten Sounblaster Live! from 2000 at the >> bottom of your desktop and wondered why there was no support for it in the >> Guix kernel config, this series is for you! ;-). >> >> The last patch is unrelated; I find it convenient to have the current Linux >> kernel's config exposed as /proc/config.gz, which makes it easy to consult, >> for example to grep for the CONFIG_SND_EMU10K1 option! >> >> Thank you, >> >> Maxim Cournoyer (3): >> linux-libre: Normalize the CONFIG_ZONE_DMA to 'y' in kernel configs. >> linux-libre: Build SND_EMU10K1 as a module for x86. >> gnu: linux-libre: Expose running kernel config as /proc/config.gz. > > The first and third patches LGTM. Thanks for having a look! > It seems that the 2nd patch brings a lot of unrelated changes. Can you > revise it to only add support for your old sound card? The unrelated changes appear just by running 'make oldconfig' on the master branch: --8<---------------cut here---------------start------------->8--- $ guix build linux-libre@5.15 -S /gnu/store/429863zh1abhyj21kpnxkalsv5q5bhi4-linux-libre-5.15.16-guix.tar.xz maxim@hurd ~$ tar xf /gnu/store/429863zh1abhyj21kpnxkalsv5q5bhi4-linux-libre-5.15.16-guix.tar.xz -C /tmp maxim@hurd ~$ cd /tmp/linux-5.15.16/ maxim@hurd /tmp/linux-5.15.16$ cp ~/src/guix/gnu/packages/aux-files/linux-libre/5.15-x86_64.conf .config maxim@hurd /tmp/linux-5.15.16$ guix shell -D linux-libre ncurses maxim@hurd /tmp/linux-5.15.16 [env]$ make oldconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/conf * * Restart config... * * * Bootup logo * Bootup logo (LOGO) [Y/n/?] y Standard black and white Linux logo (LOGO_LINUX_MONO) [N/y/?] n Standard 16-color Linux logo (LOGO_LINUX_VGA16) [N/y/?] n Standard 224-color Linux logo (LOGO_LINUX_CLUT224) [N/y/?] n 224-color Linux-libre logo (LOGO_LIBRE_CLUT224) [Y/n/?] (NEW) n # # configuration written to .config # maxim@hurd /tmp/linux-5.15.16 [env]$ make oldconfig^C (reverse-i-search)`diff': cp e796b33.^Cff ~/src/guix-master/gnu/packages/patches/jami-memory-usage.patch (reverse-i-search)`diff': __emacs_complete_pre_command; echo -n "^[^[pwd=${PWD}^[^[";__EMACS_COMPLETE_WRAPPER='COMP_LINE='\''cp f5e4619.diff'\''; COMP_POINT=$(( 1 + ${#COMP_LINE} )); COMP_CWORD=1; COMP_WORDS=( cp f5e4619.diff ); _longopt cp f5e4619.^Cff cp' compgen -F __emacs_complete_wrapper -- f5e4619.diff 2>/dev/null maxim@hurd /tmp/linux-5.15.16 [env]$ diff -u .config{.old,} --8<---------------cut here---------------end--------------->8--- They appear to me as KConfig changes in the newer releases that weren't propagated to the config files checked. I've currently running a reconfigure system on the kernel with an Soundblaster Audigy 2 sound card; works well :-). --8<---------------cut here---------------start------------->8--- $ zgrep EMU10K1 /proc/config.gz CONFIG_GAMEPORT_EMU10K1=m CONFIG_SND_EMU10K1=m CONFIG_SND_EMU10K1_SEQ=m # CONFIG_SND_EMU10K1X is not set --8<---------------cut here---------------end--------------->8--- Thanks, Maxim --- .config.old 2022-01-29 22:21:49.011196075 -0500 +++ .config 2022-01-29 22:22:16.774374081 -0500 @@ -1,20 +1,19 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.15.5 Kernel Configuration +# Linux/x86 5.15.16-gnu Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.3.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110200 +CONFIG_GCC_VERSION=100300 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y -CONFIG_AS_VERSION=23400 +CONFIG_AS_VERSION=23700 CONFIG_LD_IS_BFD=y -CONFIG_LD_VERSION=23400 +CONFIG_LD_VERSION=23700 CONFIG_LLD_VERSION=0 CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y -CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_IRQ_WORK=y @@ -6763,6 +6762,7 @@ # CONFIG_LOGO_LINUX_MONO is not set # CONFIG_LOGO_LINUX_VGA16 is not set # CONFIG_LOGO_LINUX_CLUT224 is not set +# CONFIG_LOGO_LIBRE_CLUT224 is not set # end of Graphics support CONFIG_SOUND=m @@ -8776,7 +8776,6 @@ CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y CONFIG_THINKPAD_LMI=m -CONFIG_X86_PLATFORM_DRIVERS_INTEL=y CONFIG_INTEL_ATOMISP2_PDX86=y CONFIG_INTEL_ATOMISP2_LED=m CONFIG_INTEL_SAR_INT1092=m @@ -10322,8 +10321,6 @@ CONFIG_STACKLEAK_RUNTIME_DISABLE=y CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set -CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y -# CONFIG_ZERO_CALL_USED_REGS is not set # end of Memory initialization # end of Kernel hardening options # end of Security options @@ -10806,8 +10803,6 @@ CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y # CONFIG_UBSAN is not set CONFIG_HAVE_ARCH_KCSAN=y -CONFIG_HAVE_KCSAN_COMPILER=y -# CONFIG_KCSAN is not set # end of Generic Kernel Debugging Instruments CONFIG_DEBUG_KERNEL=y