Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3120165imw; Mon, 11 Jul 2022 02:10:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOWxQH29heho41grNbXmRB0LRFUzLkJvNlTC+ObloS3IL02UcZTRCdW0gvA2n8KJK6dgvt X-Received: by 2002:aa7:c40b:0:b0:43a:c617:7fff with SMTP id j11-20020aa7c40b000000b0043ac6177fffmr12244248edq.20.1657530619661; Mon, 11 Jul 2022 02:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657530619; cv=none; d=google.com; s=arc-20160816; b=JjIgtz1BEzQQ0KxKSAD7EtH8C7AKDk5KSLwC8dVTynHbEavdUYOsmyhuNP92tuyXtI rgiRWm3GnWdR8VYwuIJpESA4mRpfL5X2upDjrfBBMT8/XaXN8+P41/p3f9zxP3YvjUgw MIpSlQTj1UnavNSQrTr5I0sJ7NvYX6F0zeQJdOnaGU14crmcDxKoJ7vAbqm2r86WuJMR vn51YVT3csoSO/neVVKSgy12+MT3e56WaATKWj98LodYtDlSLlOeZkxyzbnMNhBrEnkW VEggsVcL5nxrHyHVyGNunUAdI7r2asSm4Gl0WCUfIRQg4KnSYX0HyTS5XTiJO5NM6ZMe gy4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YoBpN1lvaI78X/r2NUb3VKRDnI51NNOYRbZMd29y4RQ=; b=U1M8qvR5RUqZRKNtvakvZ5Z991e03Q3BdR5xuG/+6q78TTWDq/Czd5dGO5xMI1cXOL 5xQm13jkVCAiO7icCJnOe2cE39oX4nN7qaKXUYhZFpM6yZWmlGkliEhMGgAQ5e1V6HDk GF+TAGqoplyer1tGrKk2rzh8qCPOr+bWUm3cvaqjsNXsVIR7AP3Cqfm1urOsL4o1tnL5 zH9+JR8FfHaH1rEzZVQwsMjWHt6vhzh3hnpKSsR4CDKXYnAbuaFyRPU+aaPIv5b/oeGR clwtJz0uvks8feYSbn4GCLxv4b61AatEbx5kIgLYUp24Bf3LbhbwQFQdO9VUfMOLaS8L Hqug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fuhsIEI3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a1709064f9200b0072b14352ab3si9365379eju.176.2022.07.11.02.09.54; Mon, 11 Jul 2022 02:10:19 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=fuhsIEI3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbiGKIcT (ORCPT + 99 others); Mon, 11 Jul 2022 04:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbiGKIcQ (ORCPT ); Mon, 11 Jul 2022 04:32:16 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2F211F2DA for ; Mon, 11 Jul 2022 01:32:14 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id ADE4C227A0; Mon, 11 Jul 2022 08:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1657528333; h=from:from:reply-to: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=YoBpN1lvaI78X/r2NUb3VKRDnI51NNOYRbZMd29y4RQ=; b=fuhsIEI3JBw5P6zU6Qz0+dis0c9M02cRQJpY64Z+7xlikuJkEzDebQvC2UAiclEdXpVFDX PQ+uCwaw13j6UPDFbU3yMHkJZpE5gmquCJ7Tnn5ITca0FL0zthyLOu8M7oY3UHsU764+ju smrA7K4kfi165Q8p4eFgvZNquUBGoCc= Received: from suse.cz (unknown [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 625A42C171; Mon, 11 Jul 2022 08:32:13 +0000 (UTC) Date: Mon, 11 Jul 2022 10:32:13 +0200 From: Petr Mladek To: John Ogness Cc: Chris Down , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Sergey Senozhatsky , Steven Rostedt , Geert Uytterhoeven , kernel-team@fb.com Subject: Re: design: was: Re: [RFC PATCH v2] printk: console: Allow each console to have its own loglevel Message-ID: References: <87o7xz5su4.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o7xz5su4.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri 2022-07-08 21:10:35, John Ogness wrote: > On 2022-07-08, Petr Mladek wrote: > > The console-specific loglevel might be set by: > > > > + "console=device,options/loglevel" kernel parameter at boot time > > I ask if we avoid the use of "/loglevel" and instead use a generic > scheme of: > > console=device,option,option,option > > Of course, it would mean that the type of option would need to be > specified. Something like: > > console=ttyS0,115200n8,loglevel=3 I like this. It is longer but it makes the meaning very obvious. I just think about using ':' instead of '=' to distinguish the assignment of outer 'console' vs the inner 'loglevel' parameters. It seems to be used in some cases, for example, for ca_keys, crashkernel, drm.edid_firmware, efi_fake_mem. Even earlyprintk uses it for bus:device.function. > The reason why I make such a request is because I would like to be able > to support disabling threading for certain consoles. Something like: > > console=ttyS0,115200n8,nothread > > or when we have atomic consoles that we can specify that they are always > used with a "sync" option: > > console=ttyS0,115200n8,sync Good point. Best Regards, Petr