Message ID | 20240221141350.3740488-1-javierm@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1062654dyc; Wed, 21 Feb 2024 06:15:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyPueOvyh2sxgz9UE2OanCSrBcI8yPYtOhaqlDbUpYKV83SyYI865t9Gkml2o/WhoZ0AllMQDgkmy/x0PlpGdaFtHnQA== X-Google-Smtp-Source: AGHT+IF6xwFpf14k1i8PbYcl4UlICeIjuKJiOVg+jk/HMG3TNvmCciLF4GBaZzLe2550W8VOXJG9 X-Received: by 2002:a05:6a20:e30b:b0:1a0:8697:1e2d with SMTP id nb11-20020a056a20e30b00b001a086971e2dmr13548469pzb.16.1708524954681; Wed, 21 Feb 2024 06:15:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708524954; cv=pass; d=google.com; s=arc-20160816; b=sArxhMQBDf5QrOhteimjf4A1vtat23w+5LvScmQ+cHo53Tc/1SmhFTuneIfzP5RBEn 8Wskvv/lh8OuVi8mBrckK1WbTY5qVATdD6U/Yg/I36C1z5XDw3RPXFexkeHbIavgh6da uvwGXFc5S5CLxSDhGm0g0znWwtG88Dp4G5fQvuSVEGecqkOwcg5KDXNcCJ+OePOvLG0U bICF7q/NB7XMjg4dDpQb5B9XYETj80j2jnYXW80C1qt9EujmY/ETcMppAdTczSrrT4aL PJNRZtvWtv/LrvH7+9dBPObuYOAOHHzQBwtn1ukhyugLL9dmEf5rxpRzcvxufvGzsSjE aFlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=X/GA9uj2BxRMWNhwLbIQ/l7TXK6bjdPEXsLkC/BAEhs=; fh=+Wn2f8lwtTjO+rdqDK7U09Rco/GZRLai9PzMLWd823o=; b=k7w8zwVWPAQc6UhZ1Oux/sUOyOEtnClLbn8/gkr2PfroRwXv0CTNJHJbLrudr3Z1Bf zvmzSq8yJ4UWl8EFNWKv1hCOu3iGiLqRzJqayItJ4j8U6UIWJ8/fU+dov0wGAuDtASpp 6EVlqjtcleVqT0UczHvwGO5VY2ZvqA6iA5gpcswMysgYy+Up/iHf/R9RMDd7qsHYpl+i pv4v9Pwfbg7Fu6NnydrlEtm10iL3ZNDughNkP0LLb677CWvGfVnxxe31jPvmYjlPL+Uy 3SC2W+QramLLf1u4Wje8EwU3+iW6nSA86wUBvTemUStf0OCv/R1OZWlJ9xbw35syQI/I mWSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z7tDGBwd; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a2-20020a17090a688200b00299ecd1e886si1540366pjd.69.2024.02.21.06.15.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:15:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z7tDGBwd; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74872-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7F64128503A for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 14:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C8F17F7C6; Wed, 21 Feb 2024 14:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Z7tDGBwd" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF9547BB18 for <linux-kernel@vger.kernel.org>; Wed, 21 Feb 2024 14:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708524839; cv=none; b=doE7QB7J8o+oaWdHydT2DGKwshga6k7eALmSptdsoGpWIvFC3JlZO8MxKYIz8DDW7W1ltBtbmb0tz55mMd9Gyklw/KWYezYRAq2M3vevWAmKdNW7Bp8dtIfrI8nTkcmCk2GRsb7RJIqrZ1daIivoxhMBxT50C1JXcuLAlvaxyl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708524839; c=relaxed/simple; bh=/D4edU2dlMgF7cFcJy5ah1s2Lb6gvj+ZpJAcgtiUZ/s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y7/lam6WAtsxpcr84jCa5jN4b7EUOOQC2xTbw5j1mjiAwCudTJCTNT+HWEAXwASyKeGHL0+5ZydyEucAnclMYGsdzrRYNK3/V55N78jMpSU2kP+ws4PuNj/kv9bZ/uwmTcGeh1WqoxF70EEsC1Lo2tG67ZIeNhf1zYU+sa1BNKo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Z7tDGBwd; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708524836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=X/GA9uj2BxRMWNhwLbIQ/l7TXK6bjdPEXsLkC/BAEhs=; b=Z7tDGBwd+0P1Hv0ZRNme8QsJLoauu+Z8qscjXhNWNifZ9q8Vg/G2zfhnyFubLeIVRjuVsi ued6a0zoH3YxQ/MR1y56sxisLy1M9qDIMFz+gY5s888SAu7Ub23em8NDqE8pGoImmYoybC PSwvHHQ8Wshj5a+detNWF7z89rX8U9w= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-633-sTpd45gkP5-GOnExvvHczg-1; Wed, 21 Feb 2024 09:13:55 -0500 X-MC-Unique: sTpd45gkP5-GOnExvvHczg-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-33d35592d4aso1422845f8f.1 for <linux-kernel@vger.kernel.org>; Wed, 21 Feb 2024 06:13:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708524833; x=1709129633; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X/GA9uj2BxRMWNhwLbIQ/l7TXK6bjdPEXsLkC/BAEhs=; b=EpvHH4etnaACQIYbHXAlLfEE3XdXAafUz0v/0ZenYfWLIhBcDzGe1zCMSXMKN6M/HD GGGcJSvk7ErnfE2e69Ecrgm9NYWy21ftxXujijKQTy6Ou5dpLBy6qIdHxbkYs8020nlj s5k2oehfG5cBx3r6yej9DT61utfrOS6YtE+N4FXovOhMSJ5qviD3F7Q/fT/9XEgt/LOm Zg12XB1RsUOpG6p3F5eeXtFGQp18Cj41qPbdZo485H6+4lp/1ZhX7RppnsnqWuyzINyL X4ElN2fbxGQj9R3sSu+2nr44AzLS21wukKp3JiTWS62q40Fq/o3PJ2jUhAsp/MJzSuVV PDJQ== X-Gm-Message-State: AOJu0YxSJzcgswE7F1fjZ1my+FP5ZDkg8n616P6eF+whK/r9eiDNmo9c i7s7N2P9QEnRxmivQIJabVE0dMQ1Yhe3u342kjMa5EbRfOe5C6xcbMHkCJbtHWYt1EX7ybNikZM mf6sNo/N/Jx2rld9Pv/dwtfVkOBexyQHHSG2DnZcnpjUhBHK/wAMcwGOXBKHxKNIOCRCbbBfDIw eiWuuM7Ishh/wGn/4LgbcVvgwQaEWDlHfoSPdKV0j8Sm77 X-Received: by 2002:a5d:4b8b:0:b0:33d:2120:1016 with SMTP id b11-20020a5d4b8b000000b0033d21201016mr12179262wrt.52.1708524832873; Wed, 21 Feb 2024 06:13:52 -0800 (PST) X-Received: by 2002:a5d:4b8b:0:b0:33d:2120:1016 with SMTP id b11-20020a5d4b8b000000b0033d21201016mr12179226wrt.52.1708524832472; Wed, 21 Feb 2024 06:13:52 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id j11-20020adff54b000000b0033b43a5f53csm17092735wrp.103.2024.02.21.06.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:13:52 -0800 (PST) From: Javier Martinez Canillas <javierm@redhat.com> To: linux-kernel@vger.kernel.org Cc: Enric Balletbo i Serra <eballetbo@redhat.com>, Maxime Ripard <mripard@redhat.com>, Erico Nunes <nunes.erico@gmail.com>, Brian Masney <bmasney@redhat.com>, Javier Martinez Canillas <javierm@redhat.com>, Arnd Bergmann <arnd@arndb.de>, Bjorn Andersson <quic_bjorande@quicinc.com>, Catalin Marinas <catalin.marinas@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Neil Armstrong <neil.armstrong@linaro.org>, Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] arm64: defconfig: Enable zram, xfs and loading compressed FW support Date: Wed, 21 Feb 2024 15:13:47 +0100 Message-ID: <20240221141350.3740488-1-javierm@redhat.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791518262884987149 X-GMAIL-MSGID: 1791518262884987149 |
Series |
[v2] arm64: defconfig: Enable zram, xfs and loading compressed FW support
|
|
Commit Message
Javier Martinez Canillas
Feb. 21, 2024, 2:13 p.m. UTC
These options are needed by some Linux distributions (e.g: Fedora), so let's enable them to make it easier for developers using such distros. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Brian Masney <bmasney@redhat.com> --- Changes in v2: - Add Brian Masney's Reviewed-by tag. - Drop CONFIG_MODULE_COMPRESS_XZ, it's OK to build uncompressed kernel modules. arch/arm64/configs/defconfig | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On 21/02/2024 15:13, Javier Martinez Canillas wrote:
> These options are needed by some Linux distributions (e.g: Fedora), so
How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I
use on my arm64 boards, does not have any problem.
I kind of repeat comments from similar patch earlier:
https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/
About XFS: I don't think it is needed to boot anything.
This is a defconfig, not a distro config. Please don't make it distro.
I will gladly support things needed by systemd or equivalent, but not
unusual filesystems needed by distro.
Best regards,
Krzysztof
On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: > On 21/02/2024 15:13, Javier Martinez Canillas wrote: > > These options are needed by some Linux distributions (e.g: Fedora), so > > How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I > use on my arm64 boards, does not have any problem. Is it relevant in any way? I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let me know if you want hundreds more examples. > I kind of repeat comments from similar patch earlier: > https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ > > About XFS: I don't think it is needed to boot anything. Just like 9P_FS, NFS or UBIFS. > This is a defconfig, not a distro config. Please don't make it distro. > > I will gladly support things needed by systemd or equivalent, but not > unusual filesystems needed by distro. It's a defconfig. It's whatever people want it to be. Or we need to come up with a clearly defined set of rules of what is acceptable in that defconfig or not, and prune every option that isn't. Maxime
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> writes: > On 21/02/2024 15:13, Javier Martinez Canillas wrote: >> These options are needed by some Linux distributions (e.g: Fedora), so > > How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I > use on my arm64 boards, does not have any problem. > I haven't used Debian in ages so I don't know why is not a problem there. But Fedora is using zram by default and if is not enabled in the kernel, the boot is delayed considerably due the systemd zram-generator. > I kind of repeat comments from similar patch earlier: > https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ > Ah! I forgot that posted the same change for exynos_defconfig some time ago and I see that you nacked. Now I understand why all my Exynos boards are in a drawer. > About XFS: I don't think it is needed to boot anything. > How are you supposed to mount a XFS rootfs without at least have support for it as a module? > This is a defconfig, not a distro config. Please don't make it distro. > It seems that's a Debian distro config though, since you brought Debian as an example. > I will gladly support things needed by systemd or equivalent, but not > unusual filesystems needed by distro. > Fair. But then you should probably remove all the other filesystems that are already in the defconfig then? $ grep "_FS=" arch/arm64/configs/defconfig | wc -l 15 Or it is OK to have support for btrfs, overlayfs, even plan9 fs but XFS is where you draw the line?? > Best regards, > Krzysztof >
On 21/02/2024 15:48, Maxime Ripard wrote: > On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>> These options are needed by some Linux distributions (e.g: Fedora), so >> >> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >> use on my arm64 boards, does not have any problem. > > Is it relevant in any way? Yes, because it is justification why we are doing it. Each commit is supposed to explain "why" and the explanation here is not enough. > > I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or > NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let > me know if you want hundreds more examples. So if there is any bug, you are allowed to add new one? If there is any silly option, you are allowed to add new one? Feel free to propose dropping of any irrelevant options. > >> I kind of repeat comments from similar patch earlier: >> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >> >> About XFS: I don't think it is needed to boot anything. > > Just like 9P_FS, NFS or UBIFS. NFS is often used on targets, e.g. my board farm, but also by other people. UBIFS was added recently because one device was using it - you needed it. 9P_FS looks unnecessary. > >> This is a defconfig, not a distro config. Please don't make it distro. >> >> I will gladly support things needed by systemd or equivalent, but not >> unusual filesystems needed by distro. > > It's a defconfig. It's whatever people want it to be. Or we need to come > up with a clearly defined set of rules of what is acceptable in that > defconfig or not, and prune every option that isn't. So that's the rule I am commenting from time to time. defconfigs are not distro configs. These are reference hardware configs and debugging configs. I was working in distro so trust me - they do stuff differently and they not need XFS in our defconfig for anything. Best regards, Krzysztof
On 21/02/2024 16:10, Krzysztof Kozlowski wrote: > On 21/02/2024 15:48, Maxime Ripard wrote: >> On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >>> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>>> These options are needed by some Linux distributions (e.g: Fedora), so >>> >>> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >>> use on my arm64 boards, does not have any problem. >> >> Is it relevant in any way? > > Yes, because it is justification why we are doing it. Each commit is > supposed to explain "why" and the explanation here is not enough. > >> >> I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or >> NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let >> me know if you want hundreds more examples. BTW, each commit adding such options is supposed to explain why there are needed, so please go to the git log and answer yourself why there are there. I am pretty sure I will ack/review removal of every option added without answering "why". Don't twist the discussion of necessity of Kconfig options, because each commit should stand on its own. Best regards, Krzysztof
Hi Krzysztof, On Wed, Feb 21, 2024 at 4:10 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > UBIFS was added recently because one device was using it - you needed > it. 9P_FS looks unnecessary. 9P_FS is used commonly for file transfer between host and guest, cfr. commit af9b99647cd2a6a2 ("arm64: defconfig: add virtio support for running as a kvm guest"). Gr{oetje,eeting}s, Geert
On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: > On 21/02/2024 15:48, Maxime Ripard wrote: > > On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: > >> On 21/02/2024 15:13, Javier Martinez Canillas wrote: > >>> These options are needed by some Linux distributions (e.g: Fedora), so > >> > >> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I > >> use on my arm64 boards, does not have any problem. > > > > Is it relevant in any way? > > Yes, because it is justification why we are doing it. Each commit is > supposed to explain "why" and the explanation here is not enough. There's a why though: it makes Fedora boot. It might not be enough for you, but that's a different story. So, if it's not enough, please state exactly what you expect from that patch description so Javier can provide it. > > I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or > > NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let > > me know if you want hundreds more examples. > > So if there is any bug, you are allowed to add new one? If there is any > silly option, you are allowed to add new one? > > Feel free to propose dropping of any irrelevant options. No, of course you aren't. My point is that Fedora is a distro just as established and legitimate as Debian is. And apparently "it makes Debian works" is a reasonable argument, since, well, it does. If making Fedora boot with that defconfig is not a legitimate goal, please state why, and document it (with the ack of all the maintainers involved with that defconfig, obviously) so we don't have the same argument over and over again. > >> I kind of repeat comments from similar patch earlier: > >> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ > >> > >> About XFS: I don't think it is needed to boot anything. > > > > Just like 9P_FS, NFS or UBIFS. > > NFS is often used on targets, e.g. my board farm, but also by other people. > > UBIFS was added recently because one device was using it - you needed > it. 9P_FS looks unnecessary. So all we need is one person or use case to require it? Sounds like we've checked that mark here. > >> This is a defconfig, not a distro config. Please don't make it distro. > >> > >> I will gladly support things needed by systemd or equivalent, but not > >> unusual filesystems needed by distro. > > > > It's a defconfig. It's whatever people want it to be. Or we need to come > > up with a clearly defined set of rules of what is acceptable in that > > defconfig or not, and prune every option that isn't. > > So that's the rule I am commenting from time to time. defconfigs are not > distro configs. These are reference hardware configs and debugging > configs. Supporting a board farm is hardly either. And again, I've never heard of such rule for that defconfig in my ~10y as an ARM platform maintainer. But what do I know, right? > I was working in distro so trust me - they do stuff differently > and they not need XFS in our defconfig for anything. Sure, but you're not just arguing for XFS there. What I really don't get is this: this makes the life of people easier. Being able to test an upstream kernel quickly when you have a bug in a downstream distro is super valuable for any distro developper. And on the long run, if we don't make the switch from a kernel distro to a mainline kernel relatively easy, we're the ones that will lose out. Because people just won't bother, or be frustrated and thus super reluctant to do that work. That's the part I don't get. Why do we want to make the life of people harder. This patch has never been about making the defconfig the main Fedora kernel configuration: it won't be, just like it isn't the Debian kernel configuration. However, it works for your board farm because it's just so much more convenient, you can get a kernel from all the auto-builder and boot that and you know that it's supposed to work. And that's totally reasonable. So if it's convenient for you and your board farm, why do you oppose other people trying to make it reasonably convenient for them? Maxime
On 21/02/2024 16:24, Maxime Ripard wrote: > On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: >> On 21/02/2024 15:48, Maxime Ripard wrote: >>> On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >>>> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>>>> These options are needed by some Linux distributions (e.g: Fedora), so >>>> >>>> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >>>> use on my arm64 boards, does not have any problem. >>> >>> Is it relevant in any way? >> >> Yes, because it is justification why we are doing it. Each commit is >> supposed to explain "why" and the explanation here is not enough. > > There's a why though: it makes Fedora boot. It might not be enough for I want to know to understand. Maybe it is not really neeed but "nice to have"? People write various vague statements... > you, but that's a different story. So, if it's not enough, please state > exactly what you expect from that patch description so Javier can > provide it. Any explanation what ZRAM is necessary for Fedora to boot. > >>> I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or >>> NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let >>> me know if you want hundreds more examples. >> >> So if there is any bug, you are allowed to add new one? If there is any >> silly option, you are allowed to add new one? >> >> Feel free to propose dropping of any irrelevant options. > > No, of course you aren't. My point is that Fedora is a distro just as > established and legitimate as Debian is. And apparently "it makes Debian > works" is a reasonable argument, since, well, it does. > > If making Fedora boot with that defconfig is not a legitimate goal, It is, but I asked for more information. > please state why, and document it (with the ack of all the maintainers > involved with that defconfig, obviously) so we don't have the same > argument over and over again. > >>>> I kind of repeat comments from similar patch earlier: >>>> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >>>> >>>> About XFS: I don't think it is needed to boot anything. >>> >>> Just like 9P_FS, NFS or UBIFS. >> >> NFS is often used on targets, e.g. my board farm, but also by other people. >> >> UBIFS was added recently because one device was using it - you needed >> it. 9P_FS looks unnecessary. > > So all we need is one person or use case to require it? Sounds like > we've checked that mark here. Use case of given type. I would disagree for SMBFS because we have NFS. UBIFS is hardware requirement. 9P_FS seems like virtio case. > >>>> This is a defconfig, not a distro config. Please don't make it distro. >>>> >>>> I will gladly support things needed by systemd or equivalent, but not >>>> unusual filesystems needed by distro. >>> >>> It's a defconfig. It's whatever people want it to be. Or we need to come >>> up with a clearly defined set of rules of what is acceptable in that >>> defconfig or not, and prune every option that isn't. >> >> So that's the rule I am commenting from time to time. defconfigs are not >> distro configs. These are reference hardware configs and debugging >> configs. > > Supporting a board farm is hardly either. Debugging purpose, but I agree we can drop it. > > And again, I've never heard of such rule for that defconfig in my ~10y > as an ARM platform maintainer. But what do I know, right? > >> I was working in distro so trust me - they do stuff differently >> and they not need XFS in our defconfig for anything. > > Sure, but you're not just arguing for XFS there. I raised need for "why" for ZRAM and un-necessity of XFS. What's wrong with that? I should send separate emails or what? > > What I really don't get is this: this makes the life of people easier. Again: this makes my life harder. I cannot be buying new machines every two years to be able to compile defconfig while testing/working. > > Being able to test an upstream kernel quickly when you have a bug in a > downstream distro is super valuable for any distro developper. And on That's a distro need, not relevant. And even if it was, then your argument would be "let's enable everything distro has!". This is not a distro kernel. > the long run, if we don't make the switch from a kernel distro to a > mainline kernel relatively easy, we're the ones that will lose out. > Because people just won't bother, or be frustrated and thus super > reluctant to do that work. > > That's the part I don't get. Why do we want to make the life of people > harder. This patch has never been about making the defconfig the main Because it makes my life harder and I don't see benefits. Quoting Arnd: "Unfortunately this will increase build time noticeably, but" Best regards, Krzysztof
On Wed, Feb 21, 2024, at 16:24, Maxime Ripard wrote: > On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: >> On 21/02/2024 15:48, Maxime Ripard wrote: >> > On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >> >> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >> >>> These options are needed by some Linux distributions (e.g: Fedora), so >> >> >> >> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >> >> use on my arm64 boards, does not have any problem. >> > >> > Is it relevant in any way? >> >> Yes, because it is justification why we are doing it. Each commit is >> supposed to explain "why" and the explanation here is not enough. > > There's a why though: it makes Fedora boot. It might not be enough for > you, but that's a different story. So, if it's not enough, please state > exactly what you expect from that patch description so Javier can > provide it. It's definitely enough for me. It makes a lot of sense to have a defconfig that boots common and popular distros. I don't use ZRAM either, but I can see that being useful to avoid swapping to SD cards or eMMC when that is the only available swap device. >> >> I kind of repeat comments from similar patch earlier: >> >> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >> >> >> >> About XFS: I don't think it is needed to boot anything. >> > >> > Just like 9P_FS, NFS or UBIFS. >> >> NFS is often used on targets, e.g. my board farm, but also by other people. >> >> UBIFS was added recently because one device was using it - you needed >> it. 9P_FS looks unnecessary. > > So all we need is one person or use case to require it? Sounds like > we've checked that mark here. I think we want all of the above. We can probably drop ext2 since we already need ext4, but that is a different question. >> I was working in distro so trust me - they do stuff differently >> and they not need XFS in our defconfig for anything. > > Sure, but you're not just arguing for XFS there. > > What I really don't get is this: this makes the life of people easier. > > Being able to test an upstream kernel quickly when you have a bug in a > downstream distro is super valuable for any distro developper. And on > the long run, if we don't make the switch from a kernel distro to a > mainline kernel relatively easy, we're the ones that will lose out. > Because people just won't bother, or be frustrated and thus super > reluctant to do that work. We had previously discussed adding config fragments for common distros the way we have kvm_guest.config, but if the Javier's patch is all that is actually needed for Fedora, that seems better to me than the added complexity of fragments. Arnd
On 21/02/2024 16:41, Arnd Bergmann wrote: > On Wed, Feb 21, 2024, at 16:24, Maxime Ripard wrote: >> On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: >>> On 21/02/2024 15:48, Maxime Ripard wrote: >>>> On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >>>>> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>>>>> These options are needed by some Linux distributions (e.g: Fedora), so >>>>> >>>>> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >>>>> use on my arm64 boards, does not have any problem. >>>> >>>> Is it relevant in any way? >>> >>> Yes, because it is justification why we are doing it. Each commit is >>> supposed to explain "why" and the explanation here is not enough. >> >> There's a why though: it makes Fedora boot. It might not be enough for >> you, but that's a different story. So, if it's not enough, please state >> exactly what you expect from that patch description so Javier can >> provide it. > > It's definitely enough for me. It makes a lot of sense to have > a defconfig that boots common and popular distros. > > I don't use ZRAM either, but I can see that being useful to > avoid swapping to SD cards or eMMC when that is the only > available swap device. > >>>>> I kind of repeat comments from similar patch earlier: >>>>> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >>>>> >>>>> About XFS: I don't think it is needed to boot anything. >>>> >>>> Just like 9P_FS, NFS or UBIFS. >>> >>> NFS is often used on targets, e.g. my board farm, but also by other people. >>> >>> UBIFS was added recently because one device was using it - you needed >>> it. 9P_FS looks unnecessary. >> >> So all we need is one person or use case to require it? Sounds like >> we've checked that mark here. > > I think we want all of the above. We can probably drop ext2 since > we already need ext4, but that is a different question. I'll send a patch. Ext3 is there as well. Best regards, Krzysztof
On Wed, Feb 21, 2024 at 04:41:38PM +0100, Arnd Bergmann wrote: > On Wed, Feb 21, 2024, at 16:24, Maxime Ripard wrote: > > On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: > >> On 21/02/2024 15:48, Maxime Ripard wrote: > >> > On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: > >> >> On 21/02/2024 15:13, Javier Martinez Canillas wrote: > >> >>> These options are needed by some Linux distributions (e.g: Fedora), so > >> >> > >> >> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I > >> >> use on my arm64 boards, does not have any problem. > >> > > >> > Is it relevant in any way? > >> > >> Yes, because it is justification why we are doing it. Each commit is > >> supposed to explain "why" and the explanation here is not enough. > > > > There's a why though: it makes Fedora boot. It might not be enough for > > you, but that's a different story. So, if it's not enough, please state > > exactly what you expect from that patch description so Javier can > > provide it. > > It's definitely enough for me. It makes a lot of sense to have > a defconfig that boots common and popular distros. > > I don't use ZRAM either, but I can see that being useful to > avoid swapping to SD cards or eMMC when that is the only > available swap device. > > >> >> I kind of repeat comments from similar patch earlier: > >> >> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ > >> >> > >> >> About XFS: I don't think it is needed to boot anything. > >> > > >> > Just like 9P_FS, NFS or UBIFS. > >> > >> NFS is often used on targets, e.g. my board farm, but also by other people. > >> > >> UBIFS was added recently because one device was using it - you needed > >> it. 9P_FS looks unnecessary. > > > > So all we need is one person or use case to require it? Sounds like > > we've checked that mark here. > > I think we want all of the above. We can probably drop ext2 since > we already need ext4, but that is a different question. > > >> I was working in distro so trust me - they do stuff differently > >> and they not need XFS in our defconfig for anything. > > > > Sure, but you're not just arguing for XFS there. > > > > What I really don't get is this: this makes the life of people easier. > > > > Being able to test an upstream kernel quickly when you have a bug in a > > downstream distro is super valuable for any distro developper. And on > > the long run, if we don't make the switch from a kernel distro to a > > mainline kernel relatively easy, we're the ones that will lose out. > > Because people just won't bother, or be frustrated and thus super > > reluctant to do that work. > > We had previously discussed adding config fragments for common > distros the way we have kvm_guest.config, but if the Javier's > patch is all that is actually needed for Fedora, that seems better > to me than the added complexity of fragments. Oh, right. Fragments would be a great tool to reconcile the need for minimal boot time and supporting reasonable use-cases. I guess it's even more of a struggle with the single arm64 defconfig vs the minimal vs batteries included defconfig setup we had for arm. Maxime
On 21/02/2024 16:51, Maxime Ripard wrote: >>> Sure, but you're not just arguing for XFS there. >>> >>> What I really don't get is this: this makes the life of people easier. >>> >>> Being able to test an upstream kernel quickly when you have a bug in a >>> downstream distro is super valuable for any distro developper. And on >>> the long run, if we don't make the switch from a kernel distro to a >>> mainline kernel relatively easy, we're the ones that will lose out. >>> Because people just won't bother, or be frustrated and thus super >>> reluctant to do that work. >> >> We had previously discussed adding config fragments for common >> distros the way we have kvm_guest.config, but if the Javier's >> patch is all that is actually needed for Fedora, that seems better >> to me than the added complexity of fragments. > > Oh, right. Fragments would be a great tool to reconcile the need for > minimal boot time and supporting reasonable use-cases. > > I guess it's even more of a struggle with the single arm64 defconfig vs > the minimal vs batteries included defconfig setup we had for arm. It would be cool to group also all the per-SoC needs in dedicated fragments... Best regards, Krzysztof
On Wed, Feb 21, 2024 at 04:53:26PM +0100, Krzysztof Kozlowski wrote: > It would be cool to group also all the per-SoC needs in dedicated > fragments... It would also be nice to have a fragment to enable the various tracing options. Brian
On Wed, Feb 21, 2024 at 10:56:20AM -0500, Brian Masney wrote: > On Wed, Feb 21, 2024 at 04:53:26PM +0100, Krzysztof Kozlowski wrote: > > It would be cool to group also all the per-SoC needs in dedicated > > fragments... > > It would also be nice to have a fragment to enable the various tracing > options. +1, I cannot tell you the number of times I've been burned by the defconfig not having those enabled and me forgetting :)
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> writes: > On 21/02/2024 16:24, Maxime Ripard wrote: >> On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: >>> On 21/02/2024 15:48, Maxime Ripard wrote: >>>> On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >>>>> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>>>>> These options are needed by some Linux distributions (e.g: Fedora), so >>>>> >>>>> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >>>>> use on my arm64 boards, does not have any problem. >>>> >>>> Is it relevant in any way? >>> >>> Yes, because it is justification why we are doing it. Each commit is >>> supposed to explain "why" and the explanation here is not enough. >> >> There's a why though: it makes Fedora boot. It might not be enough for > > I want to know to understand. Maybe it is not really neeed but "nice to > have"? People write various vague statements... > I usually try hard not to be vague. There was a why, it wasn't enough for you and that's fair. But I think the crux of the why was explained: I don't want to remember each time that need to troubleshoot something, what options are missing in order to boot Fedora. >> you, but that's a different story. So, if it's not enough, please state >> exactly what you expect from that patch description so Javier can >> provide it. > > Any explanation what ZRAM is necessary for Fedora to boot. > I mentioned already in another email, Fedora is enabling the systemd zram-generator and not having a /dev/zram0 slows down the boot to the point of being unusable. One could disable that service but then is yet another thing to remember when trying to boot an upstream kernel built. Could had added all this information to the commit message but I thought that it would be too much... >> >>>> I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or >>>> NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let >>>> me know if you want hundreds more examples. >>> >>> So if there is any bug, you are allowed to add new one? If there is any >>> silly option, you are allowed to add new one? >>> >>> Feel free to propose dropping of any irrelevant options. >> >> No, of course you aren't. My point is that Fedora is a distro just as >> established and legitimate as Debian is. And apparently "it makes Debian >> works" is a reasonable argument, since, well, it does. >> >> If making Fedora boot with that defconfig is not a legitimate goal, > > It is, but I asked for more information. > >> please state why, and document it (with the ack of all the maintainers >> involved with that defconfig, obviously) so we don't have the same >> argument over and over again. >> >>>>> I kind of repeat comments from similar patch earlier: >>>>> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >>>>> >>>>> About XFS: I don't think it is needed to boot anything. >>>> >>>> Just like 9P_FS, NFS or UBIFS. >>> >>> NFS is often used on targets, e.g. my board farm, but also by other people. >>> >>> UBIFS was added recently because one device was using it - you needed >>> it. 9P_FS looks unnecessary. >> >> So all we need is one person or use case to require it? Sounds like >> we've checked that mark here. > > Use case of given type. I would disagree for SMBFS because we have NFS. > UBIFS is hardware requirement. 9P_FS seems like virtio case. > So that means that for aarch64, some filesystems have more precedence over others? It's OK to have ext4 or btrfs but no xfs? Honestly it seems quite arbitrary and subjective for me. >> >>>>> This is a defconfig, not a distro config. Please don't make it distro. >>>>> >>>>> I will gladly support things needed by systemd or equivalent, but not >>>>> unusual filesystems needed by distro. >>>> >>>> It's a defconfig. It's whatever people want it to be. Or we need to come >>>> up with a clearly defined set of rules of what is acceptable in that >>>> defconfig or not, and prune every option that isn't. >>> >>> So that's the rule I am commenting from time to time. defconfigs are not >>> distro configs. These are reference hardware configs and debugging >>> configs. >> >> Supporting a board farm is hardly either. > > Debugging purpose, but I agree we can drop it. > >> >> And again, I've never heard of such rule for that defconfig in my ~10y >> as an ARM platform maintainer. But what do I know, right? >> >>> I was working in distro so trust me - they do stuff differently >>> and they not need XFS in our defconfig for anything. >> Which distro? Every one uses a different filesystem. SUSE uses btrfs, Debian I think ext4, Fedora uses xfs and so on. It's OK if the policy is that the defconfig should only be compatible with Debian, but then should be written somewhere. >> Sure, but you're not just arguing for XFS there. > > I raised need for "why" for ZRAM and un-necessity of XFS. What's wrong > with that? I should send separate emails or what? > >> >> What I really don't get is this: this makes the life of people easier. > > Again: this makes my life harder. I cannot be buying new machines every > two years to be able to compile defconfig while testing/working. > And not having it enabled makes my life (and other fedora users) harder because xfs needs to be enabled every time that an upstream kernel needs to be tested. >> >> Being able to test an upstream kernel quickly when you have a bug in a >> downstream distro is super valuable for any distro developper. And on > > That's a distro need, not relevant. And even if it was, then your > argument would be "let's enable everything distro has!". This is not a > distro kernel. > It's not a distro need in my opinion but an upstream kernel developer need. If I have had chosen xfs for personal preference, would that be any different? > >> the long run, if we don't make the switch from a kernel distro to a >> mainline kernel relatively easy, we're the ones that will lose out. >> Because people just won't bother, or be frustrated and thus super >> reluctant to do that work. >> >> That's the part I don't get. Why do we want to make the life of people >> harder. This patch has never been about making the defconfig the main > > Because it makes my life harder and I don't see benefits. Quoting Arnd: > "Unfortunately this will increase build time noticeably, but" > The benefit is for developers who use Fedora to be able to boot their kernels built using defconfig, just like developers using other distros can now. We already have ext4 and btrfs, but somehow xfs is not OK. > Best regards, > Krzysztof >
Maxime Ripard <mripard@redhat.com> writes: > On Wed, Feb 21, 2024 at 04:41:38PM +0100, Arnd Bergmann wrote: >> On Wed, Feb 21, 2024, at 16:24, Maxime Ripard wrote: [...] >> > Being able to test an upstream kernel quickly when you have a bug in a >> > downstream distro is super valuable for any distro developper. And on >> > the long run, if we don't make the switch from a kernel distro to a >> > mainline kernel relatively easy, we're the ones that will lose out. >> > Because people just won't bother, or be frustrated and thus super >> > reluctant to do that work. >> >> We had previously discussed adding config fragments for common >> distros the way we have kvm_guest.config, but if the Javier's >> patch is all that is actually needed for Fedora, that seems better >> to me than the added complexity of fragments. > > Oh, right. Fragments would be a great tool to reconcile the need for > minimal boot time and supporting reasonable use-cases. > > I guess it's even more of a struggle with the single arm64 defconfig vs > the minimal vs batteries included defconfig setup we had for arm. > I'm OK with using fragments instead and propose a fedora.config or whatever name is decided for this. As long as the list is kept in the mainline repo, instead of every Fedora developer having to make local changes in their .config, it works for me. > Maxime
On 21/02/2024 20:34, Javier Martinez Canillas wrote: > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> writes: > >> On 21/02/2024 16:24, Maxime Ripard wrote: >>> On Wed, Feb 21, 2024 at 04:10:12PM +0100, Krzysztof Kozlowski wrote: >>>> On 21/02/2024 15:48, Maxime Ripard wrote: >>>>> On Wed, Feb 21, 2024 at 03:22:38PM +0100, Krzysztof Kozlowski wrote: >>>>>> On 21/02/2024 15:13, Javier Martinez Canillas wrote: >>>>>>> These options are needed by some Linux distributions (e.g: Fedora), so >>>>>> >>>>>> How ZRAM is needed? Why Fedora cannot boot without it? Debian, which I >>>>>> use on my arm64 boards, does not have any problem. >>>>> >>>>> Is it relevant in any way? >>>> >>>> Yes, because it is justification why we are doing it. Each commit is >>>> supposed to explain "why" and the explanation here is not enough. >>> >>> There's a why though: it makes Fedora boot. It might not be enough for >> >> I want to know to understand. Maybe it is not really neeed but "nice to >> have"? People write various vague statements... >> > > I usually try hard not to be vague. There was a why, it wasn't enough for > you and that's fair. > > But I think the crux of the why was explained: I don't want to remember > each time that need to troubleshoot something, what options are missing > in order to boot Fedora. > >>> you, but that's a different story. So, if it's not enough, please state >>> exactly what you expect from that patch description so Javier can >>> provide it. >> >> Any explanation what ZRAM is necessary for Fedora to boot. >> > > I mentioned already in another email, Fedora is enabling the systemd > zram-generator and not having a /dev/zram0 slows down the boot to the > point of being unusable. One could disable that service but then is yet That one sentence would be enough for me. > another thing to remember when trying to boot an upstream kernel built. > > Could had added all this information to the commit message but I thought > that it would be too much... > >>> >>>>> I'm sure Debian can boot without MEMORY_HOTREMOVE, or BRIDGE, or >>>>> NUMA_BALANCING, or BPF_JIT, or NFS_FS, yet all of them are enabled. Let >>>>> me know if you want hundreds more examples. >>>> >>>> So if there is any bug, you are allowed to add new one? If there is any >>>> silly option, you are allowed to add new one? >>>> >>>> Feel free to propose dropping of any irrelevant options. >>> >>> No, of course you aren't. My point is that Fedora is a distro just as >>> established and legitimate as Debian is. And apparently "it makes Debian >>> works" is a reasonable argument, since, well, it does. >>> >>> If making Fedora boot with that defconfig is not a legitimate goal, >> >> It is, but I asked for more information. >> >>> please state why, and document it (with the ack of all the maintainers >>> involved with that defconfig, obviously) so we don't have the same >>> argument over and over again. >>> >>>>>> I kind of repeat comments from similar patch earlier: >>>>>> https://lore.kernel.org/all/fe1e74a2-e933-7cd9-f740-86d871076191@linaro.org/ >>>>>> >>>>>> About XFS: I don't think it is needed to boot anything. >>>>> >>>>> Just like 9P_FS, NFS or UBIFS. >>>> >>>> NFS is often used on targets, e.g. my board farm, but also by other people. >>>> >>>> UBIFS was added recently because one device was using it - you needed >>>> it. 9P_FS looks unnecessary. >>> >>> So all we need is one person or use case to require it? Sounds like >>> we've checked that mark here. >> >> Use case of given type. I would disagree for SMBFS because we have NFS. >> UBIFS is hardware requirement. 9P_FS seems like virtio case. >> > > So that means that for aarch64, some filesystems have more precedence over > others? It's OK to have ext4 or btrfs but no xfs? Honestly it seems quite > arbitrary and subjective for me. Yes, subjective, but to be honest: I would drop Btrfs. I was thinking about it, but since Arnd agrees on XFS I won't fight that battle. > >>> >>>>>> This is a defconfig, not a distro config. Please don't make it distro. >>>>>> >>>>>> I will gladly support things needed by systemd or equivalent, but not >>>>>> unusual filesystems needed by distro. >>>>> >>>>> It's a defconfig. It's whatever people want it to be. Or we need to come >>>>> up with a clearly defined set of rules of what is acceptable in that >>>>> defconfig or not, and prune every option that isn't. >>>> >>>> So that's the rule I am commenting from time to time. defconfigs are not >>>> distro configs. These are reference hardware configs and debugging >>>> configs. >>> >>> Supporting a board farm is hardly either. >> >> Debugging purpose, but I agree we can drop it. >> >>> >>> And again, I've never heard of such rule for that defconfig in my ~10y >>> as an ARM platform maintainer. But what do I know, right? >>> >>>> I was working in distro so trust me - they do stuff differently >>>> and they not need XFS in our defconfig for anything. >>> > > Which distro? Every one uses a different filesystem. SUSE uses btrfs, > Debian I think ext4, Fedora uses xfs and so on. It's OK if the policy > is that the defconfig should only be compatible with Debian, but then > should be written somewhere. Hm, don't all these distros support choosing the filesystem? I did not propose Ext4 because Debian is more important or something, but because we need to choose something and it is kind of default for many people. > >>> Sure, but you're not just arguing for XFS there. >> >> I raised need for "why" for ZRAM and un-necessity of XFS. What's wrong >> with that? I should send separate emails or what? >> >>> >>> What I really don't get is this: this makes the life of people easier. >> >> Again: this makes my life harder. I cannot be buying new machines every >> two years to be able to compile defconfig while testing/working. >> > > And not having it enabled makes my life (and other fedora users) harder > because xfs needs to be enabled every time that an upstream kernel needs > to be tested. We can here disagree that we might have a bit different needs... I just provided argument why I object. > >>> >>> Being able to test an upstream kernel quickly when you have a bug in a >>> downstream distro is super valuable for any distro developper. And on >> >> That's a distro need, not relevant. And even if it was, then your >> argument would be "let's enable everything distro has!". This is not a >> distro kernel. >> > > It's not a distro need in my opinion but an upstream kernel developer > need. If I have had chosen xfs for personal preference, would that be > any different? > >> >>> the long run, if we don't make the switch from a kernel distro to a >>> mainline kernel relatively easy, we're the ones that will lose out. >>> Because people just won't bother, or be frustrated and thus super >>> reluctant to do that work. >>> >>> That's the part I don't get. Why do we want to make the life of people >>> harder. This patch has never been about making the defconfig the main >> >> Because it makes my life harder and I don't see benefits. Quoting Arnd: >> "Unfortunately this will increase build time noticeably, but" >> > > The benefit is for developers who use Fedora to be able to boot their > kernels built using defconfig, just like developers using other distros > can now. We already have ext4 and btrfs, but somehow xfs is not OK. I would drop btrfs :) Best regards, Krzysztof
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> writes: > On 21/02/2024 20:34, Javier Martinez Canillas wrote: [...] >>> >>> Any explanation what ZRAM is necessary for Fedora to boot. >>> >> >> I mentioned already in another email, Fedora is enabling the systemd >> zram-generator and not having a /dev/zram0 slows down the boot to the >> point of being unusable. One could disable that service but then is yet > > That one sentence would be enough for me. > I'll add that then to the commit message when proposing a config fragment. [...] >> >> So that means that for aarch64, some filesystems have more precedence over >> others? It's OK to have ext4 or btrfs but no xfs? Honestly it seems quite >> arbitrary and subjective for me. > > Yes, subjective, but to be honest: I would drop Btrfs. I was thinking Fair. If the agreegment is to minimize defconfig (which AFAIU is your point), then I'm on board with it. We can start splitting in separate fragments, people can then mix and match for their specific use cases. > about it, but since Arnd agrees on XFS I won't fight that battle. > Yeah, it was a strange hill for me to die on and is true that fragments seems to be the best compromise, as Maxime said before in this thread. By the way, I want to apologize for my harsh/rude comments yesterday. I wasn't in the best mood and I got too emotional...
On 22/02/2024 10:09, Javier Martinez Canillas wrote: > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> writes: > >> On 21/02/2024 20:34, Javier Martinez Canillas wrote: > > [...] > >>>> >>>> Any explanation what ZRAM is necessary for Fedora to boot. >>>> >>> >>> I mentioned already in another email, Fedora is enabling the systemd >>> zram-generator and not having a /dev/zram0 slows down the boot to the >>> point of being unusable. One could disable that service but then is yet >> >> That one sentence would be enough for me. >> > > I'll add that then to the commit message when proposing a config fragment. > > [...] Thanks. > >>> >>> So that means that for aarch64, some filesystems have more precedence over >>> others? It's OK to have ext4 or btrfs but no xfs? Honestly it seems quite >>> arbitrary and subjective for me. >> >> Yes, subjective, but to be honest: I would drop Btrfs. I was thinking > > Fair. If the agreegment is to minimize defconfig (which AFAIU is your > point), then I'm on board with it. We can start splitting in separate > fragments, people can then mix and match for their specific use cases. > >> about it, but since Arnd agrees on XFS I won't fight that battle. >> > > Yeah, it was a strange hill for me to die on and is true that fragments > seems to be the best compromise, as Maxime said before in this thread. > > By the way, I want to apologize for my harsh/rude comments yesterday. I > wasn't in the best mood and I got too emotional... No worries, I did not notice. Everything seemed fine for me. Best regards, Krzysztof
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 056a6cc546a4..b062d6ca7f5e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -241,6 +241,7 @@ CONFIG_PCI_EPF_TEST=m CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_FW_LOADER_USER_HELPER=y +CONFIG_FW_LOADER_COMPRESS=y CONFIG_HISILICON_LPC=y CONFIG_TEGRA_ACONNECT=m CONFIG_MHI_BUS_PCI_GENERIC=m @@ -275,6 +276,8 @@ CONFIG_MTD_NAND_FSL_IFC=y CONFIG_MTD_NAND_QCOM=y CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=m +CONFIG_ZRAM=m +CONFIG_ZRAM_WRITEBACK=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_NBD=m CONFIG_VIRTIO_BLK=y @@ -1595,6 +1598,7 @@ CONFIG_HTE_TEGRA194_TEST=m CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y CONFIG_EXT4_FS_POSIX_ACL=y +CONFIG_XFS_FS=m CONFIG_BTRFS_FS=m CONFIG_BTRFS_FS_POSIX_ACL=y CONFIG_FANOTIFY=y