Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9431093rwb; Thu, 24 Nov 2022 12:50:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf702tvSFQriGcgNuUs34BZkkPUj6hawmp28klmDlTAfH6T6+fTruvOWngaeVS5LliLuysUD X-Received: by 2002:a05:6402:1502:b0:469:13c4:ec5f with SMTP id f2-20020a056402150200b0046913c4ec5fmr28129003edw.199.1669323053605; Thu, 24 Nov 2022 12:50:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669323053; cv=none; d=google.com; s=arc-20160816; b=cAcJpFVrkkXF3fu0D4m2hpZTYllnEkY/f+MfNYba5sSVgH9GlNJfM5xyNcNh6WpDGa pxysn8oQBpU3Wntk8ViejAaD6bjCcmUKzsHI/GEkVh42GgSa8WTDGyrEPFs6XsNuPYLn bfk+s/L5X+8tJFrNwBuJyG8RaoLt7vKDozEWHyky5biYRxJsKfKaQffRTS/jDK9FFrwt Oyq37WRgqOcQEza20WDKar/NbRkpAGkrPocaMVh2V02RvTkaB0IDgNUyJLeObZJkMfZy gvQSTtscmMaYulcETkh6fFM/aEo4SeeARg9T1NUUzpL2tSGRw0vQdkoFp2WHe5z04O8/ pYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=PhtG+5ai4v5n19/dXHQw5y9A8veO9GcqYNQBOwGfmd0=; b=OhZgIu5Uy00JP8Mi8jn/0uQUyxGnd66smktD9hhvLJWtJEZ+Il8UPe6ZbydxUqsFPT cQcuwzgIiCNtkgpdWH7clbngp6rCGqTIb8UANvMUmd5GrCABBwlA58Zyvsl2MCEz6JT7 iybVKR2CrLrmsBGeQ+qAoHS8BB6v3gTKC0bRSjkvnFlygx/qQTeHZv0kBZfatB1hy4F9 Ov+UVaBKoWP6XND9ix/PXd9fawTDsF6T//WA3zamxJZI9q6b3V3FSjjRKdh8IymLN8IH 2QzefCvDNpmYwvzcQKrKbePMN3EG9vyMSUF4Ag8/rMXbKJseotJqFWv3te5hA6MO1MMb 3FKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xpw23yPR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=RE+ldaPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr8-20020a1709073f8800b0078200e81b92si1806639ejc.758.2022.11.24.12.50.20; Thu, 24 Nov 2022 12:50:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xpw23yPR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=RE+ldaPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiKXUVK (ORCPT + 87 others); Thu, 24 Nov 2022 15:21:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiKXUVI (ORCPT ); Thu, 24 Nov 2022 15:21:08 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74439B0412 for ; Thu, 24 Nov 2022 12:21:06 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669321264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PhtG+5ai4v5n19/dXHQw5y9A8veO9GcqYNQBOwGfmd0=; b=xpw23yPR9UKX1fn/47aWsOgaYswdEbmL79DjR1KqBmywsle2dnloy+jrr/+DxJ5wnvkadV TFaVJr/Is11irTE6s/vM9Sqk5QTLJ7MzC+3w+A5np/PgysJaTN5ZMa27YphvLDl3CDlpZz /zVNBTR5MjGSRieruvpz1t9RU2LJNlp7+egvLLR07uo9Zg96eab7h5TSK2hR7uyWyqoic1 +kqtjuO5ZQ/lOu57KNW/zwYyU39EOSGrWGEDQ7DMrzzREA8zQ4WZ03Ci/LhgHaFzCitsm5 vfffflf3Wl/bJWGs6jatgkkEmRWBz/c3mkiVqVGvpbcv0W5lP03GJ9J9M2n/jg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669321264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PhtG+5ai4v5n19/dXHQw5y9A8veO9GcqYNQBOwGfmd0=; b=RE+ldaPUvU67TaxGOoMh1eduRMg3NNqfih9fETK87RcRpGZ62AwCn3qsT/P161PBdaxSu8 lPXMSv4NLUIOcqDQ== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v2 1/7] printk: Move buffer size defines In-Reply-To: References: <20221123231400.614679-1-john.ogness@linutronix.de> <20221123231400.614679-2-john.ogness@linutronix.de> <87zgcgttmi.fsf@jogness.linutronix.de> Date: Thu, 24 Nov 2022 21:26:54 +0106 Message-ID: <87wn7kkst5.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-11-24, Petr Mladek wrote: > The motivation is that only thread/atomic consoles would need > the console-specific buffer. The other consoles might share > the global one. I understand what you are saying. I will change it to a pointer and assign it to an internal shared global static buffer on register_console(). Then we can keep the size defines private. For the upcoming thread/atomic consoles, I will setup the sprint-buffers differently. > Also the atomic consoles would need these buffers for each context. > It might be even more useful to allocate them dynamically. Yes, atomic consoles need dedicated per-console, per-cpu, per-context buffers. Some of these are allocated dynamically. I will revisit this with the idea of minimizing static buffers. John