Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp86395rdb; Wed, 14 Feb 2024 13:37:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWTHEN8h72EigW7xRWVQ4FUmqgcarl1C8nAbYKssFZss88oSOUVsZ9Wbu/q93rs4k8D26WdA+s2rtSjRDRBgCnRIV1/v+S+wuqSA7K4bA== X-Google-Smtp-Source: AGHT+IGE36iZeJMeBBf4avVNHMLcpWLhmkBasbycYjDFgZRiQFpeRop7fAFZ2/OB5rkluyJzi3eh X-Received: by 2002:a17:906:378a:b0:a3d:4fd:3945 with SMTP id n10-20020a170906378a00b00a3d04fd3945mr2658490ejc.43.1707946660353; Wed, 14 Feb 2024 13:37:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWhUejDTdouCW5fOWqYu8US7HApZ6V2v6EhLxTLywabbWOpD4qdA6JEwdr2Z6XRzJRCdp4gYcCsyIMx2+1f5fgz7wUahmBK6C3oBmyH5w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o23-20020a1709064f9700b00a37478b4e39si2708213eju.724.2024.02.14.13.37.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:37:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=GI7a4rEJ; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-65994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 183CE1F26C20 for ; Wed, 14 Feb 2024 21:37:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66EE213F00E; Wed, 14 Feb 2024 21:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GI7a4rEJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 71FA013EFFA; Wed, 14 Feb 2024 21:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707946648; cv=none; b=R4K/ly5O4gaNI5dHNbsCz12RJnnt1rdF46lQxSCmDAyKwYdIURRV8+2cc+K1j3InJWHQQdHTWAjOFiPCFhapC/YhUe6al8UTiH5LVOyCE2+yKGT8XXZKvRDzt9Hz5SlyoAvLGshPUzB1Xers8Q9O1GrxsamQtsm+M35A+fEjvu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707946648; c=relaxed/simple; bh=TsPOCXsLDMYvW8y1m6lrloJ2qWdhkM2QRD0tOx+Oj5s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AMNXxss2YRMvdh0KdbbLaPQ7eU4xH2MG28hE2qhd7By8etxfmnOPBEap0rPWX8vb0/jyI8riQSZz1W1tpGMPMFt3Xc8mX98LYNbg8tC/Ezp+8w2xYDPzXrf8k48zyvRVetBp81f4LFVzxm0cdE/c9PdVoLwYhUxrgxcFjRnhKAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GI7a4rEJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD14FC43142; Wed, 14 Feb 2024 21:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707946647; bh=TsPOCXsLDMYvW8y1m6lrloJ2qWdhkM2QRD0tOx+Oj5s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GI7a4rEJz27vG5jhdk9ife44YZUKF+HF6XmYHsfRxhkOg/dSqgCLc/gDhgyVTx8er KBmSQv6h5xkSh53IaFu53JIZt9Kqrt/0r3gty9Vm/u+LcHrFWDTlSP4Pg3XzrJIFOG 7jgwDwg6LXLyHAxzqwlZ2vzfhTR2fzXQUJk/w6hCLQfVxrv3ZEVQNge3YmiA9lTnYC ELYph0Euvs8SO2maNzGbgGSrwhxLWd5XHdbapnVMjdeKOgRNpIu6HKWzi99An6FsgD iVuAO2q1QRmYgKLAz3XIJ/G2aLWSa0YjwZEXT95JvD5c8WtYJ9g+JqCoFX0LmQ9eR+ NCoLiD1o3YYNQ== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5114b2b3b73so232483e87.0; Wed, 14 Feb 2024 13:37:27 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUzkZn9aZ8xX4fAQYwpZ4dRIhF/a9lgCqlTpwu17UGTHXnOhh6c+9jYNnKbuppDwejr1529/Snd85BJYSSPL1sZqh5nHmFfr60PXPKrzGg9jxI5PepWsq0EW4rTQ/W+i2pcKTfd00ol5SSP4KNHDtBaWFJY/d0krbxld3WD1AvVIhJvgZOxXYp4 X-Gm-Message-State: AOJu0YypDnYrXCZ5F/s8h0lKHYsXJxhPyQn94WM6X8tfVzvxchQITmlP oEtnsUTkbeDixcJrClahGjmbpKFZxxHfMIPe0Pq0lSktlmdFAshDxCu5s+Jxcx0ePEuTQ+p5zOQ 5vGoca0a90bmNZTmEHIspeeIGT5A= X-Received: by 2002:a05:6512:b82:b0:511:a477:64aa with SMTP id b2-20020a0565120b8200b00511a47764aamr25874lfv.51.1707946646162; Wed, 14 Feb 2024 13:37:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240207171020.41036-1-yoann.congal@smile.fr> <20240207171020.41036-2-yoann.congal@smile.fr> In-Reply-To: From: Masahiro Yamada Date: Thu, 15 Feb 2024 06:36:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/3] printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled To: Yoann Congal Cc: linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, x86@kernel.org, =?UTF-8?Q?Andr=C3=A9_Almeida?= , Borislav Petkov , Darren Hart , Dave Hansen , Davidlohr Bueso , Geert Uytterhoeven , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Jiri Slaby , John Ogness , Josh Triplett , Matthew Wilcox , Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Willem de Bruijn , Vegard Nossum Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 4:01=E2=80=AFAM Yoann Congal wrote: > > > > Le 11/02/2024 =C3=A0 00:41, Masahiro Yamada a =C3=A9crit : > > On Thu, Feb 8, 2024 at 2:10=E2=80=AFAM Yoann Congal wrote: > >> > >> LOG_CPU_MAX_BUF_SHIFT default value depends on BASE_SMALL: > >> config LOG_CPU_MAX_BUF_SHIFT > >> default 12 if !BASE_SMALL > >> default 0 if BASE_SMALL > >> But, BASE_SMALL is a config of type int and "!BASE_SMALL" is always > >> evaluated to true whatever is the value of BASE_SMALL. > >> > >> This patch fixes this by using the correct conditional operator for in= t > >> type : BASE_SMALL !=3D 0. > >> > >> Note: This changes CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D12 to > >> CONFIG_LOG_CPU_MAX_BUF_SHIFT=3D0 for BASE_SMALL defconfigs, but that w= ill > >> not be a big impact due to this code in kernel/printk/printk.c: > >> /* by default this will only continue through for large > 64 CPUs */ > >> if (cpu_extra <=3D __LOG_BUF_LEN / 2) > >> return; > >> Systems using CONFIG_BASE_SMALL and having 64+ CPUs should be quite > >> rare. > >> > >> John Ogness (printk reviewer) wrote: > >>> For printk this will mean that BASE_SMALL systems were probably > >>> previously allocating/using the dynamic ringbuffer and now they will > >>> just continue to use the static ringbuffer. Which is fine and saves > >>> memory (as it should). > >> > >> Petr Mladek (printk maintainer) wrote: > >>> More precisely, it allocated the buffer dynamically when the sum > >>> of per-CPU-extra space exceeded half of the default static ring > >>> buffer. This happened for systems with more than 64 CPUs with > >>> the default config values. > >> > >> Signed-off-by: Yoann Congal > >> Reported-by: Geert Uytterhoeven > >> Closes: https://lore.kernel.org/all/CAMuHMdWm6u1wX7efZQf=3D2XUAHascps7= 6YQac6rdnQGhc8nop_Q@mail.gmail.com/ > >> Reported-by: Vegard Nossum > >> Closes: https://lore.kernel.org/all/f6856be8-54b7-0fa0-1d17-39632bf29a= da@oracle.com/ > >> Fixes: 4e244c10eab3 ("kconfig: remove unneeded symbol_empty variable") > >> > > > > > > > > All the Reviewed-by tags are dropped every time, annoyingly. > > Hi! > > Was I supposed to gather these tags from patch version N to patch version= N+1? > In that case, I'm sorry, I did not know that :-/ > Patch 1/3 is exactly the same but patch 2/3 is equivalent but different. = Is there a rule written somewhere about when carrying the tags across revis= ion and when not? (I could not find it) I do not know any written rules either. In my experience, people carry tags when changes since the previous version are small. --=20 Best Regards Masahiro Yamada