Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1755847iob; Thu, 19 May 2022 13:48:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2jsDgvVq/Za/iP7hEZ6JpVrjfAj5uL8FFElOQbI3pA/aVtUHt9sbHzly8MPweZKveKfL9 X-Received: by 2002:a05:6402:783:b0:42a:b251:6a9d with SMTP id d3-20020a056402078300b0042ab2516a9dmr7321390edy.315.1652993330592; Thu, 19 May 2022 13:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652993330; cv=none; d=google.com; s=arc-20160816; b=pSfz7luWJvfQAKSv6Bd1qQgliaYqp9Lw8ucX0yBG0d4hb+mIfY5DZSx1zzDmH7kb0h UMvWc2uLwkf1DcC9fs/UUBrOU3kM8yXwqXvLkNlI4sz91bPu08/N+lNiOeoxoPjUwDqO Rz8qU63FdTDbYRXZwvGGvUumGZimtSy9CbKj/PbCGZb0bw0F+W32Gl02jVwhAciRAZA7 Shdi9tBVfXdJA8acOCramQxZFrHVc+6wtUmB3pMMavMU8gjeiJNmh+pvc74XJSbT5Qfr SnvuzIjFTRDbYaDKM6OD8i4f6jti3+4FiAzpfFp5bpgNR8WKThH0l+kEhcrk8I8NLdq5 djdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ypz7+YxgISOOflvYtmwnpKygymqNnA7Map87dQNKlcs=; b=o8Aoqc6lEWPXzXNRxxC1M1LPArIkjifFER0lRQLg8zmWqItfGyYlqP/7sD6slr30sj J3vh+XF57zCy933yMPI1jctkRa/NlfKM4Y17fwYC9qbHD0xQA65Al+537Mpz70gjpPnP IgWyEpNPEKc2xBBLaOke/8sWFI9qEtehwGnI7trzVQXTuzXlb0M2lUqx9Am4S8vIH4oA tW/nKD7gfjWkpWGyGgPVrS7jnnExULnPfUMlC4nwqVYiqS5y8gv6MuCl5p/cuqHBOaW8 OnLXyGWsB+1pSDXSyb6TJtmH9Na7QDcKXNovfFo6hDW6rjeoyDVKnsE+/s6d+6RCNpjA WLtA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020aa7d4c2000000b0042acba0b85bsi5983167edr.200.2022.05.19.13.48.24; Thu, 19 May 2022 13:48:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243221AbiESRuF (ORCPT + 99 others); Thu, 19 May 2022 13:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242496AbiESRti (ORCPT ); Thu, 19 May 2022 13:49:38 -0400 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938DAAF303; Thu, 19 May 2022 10:49:00 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id j3so5158838qvn.0; Thu, 19 May 2022 10:49:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ypz7+YxgISOOflvYtmwnpKygymqNnA7Map87dQNKlcs=; b=2PENtJvcVjDtbysgbjoIPodk1YP5YvyIInfhwrV6XBobmsM/GXlt7hmw2mAAyWnPZw n/8IwhWbtsxYEBEaYcbwjMTBnFbqI5M5Fy1RtiSX8x8YE3QvBPv10V7630pepan8JOcK GXFrmFtdXGicyQYaSTF712C+eRVaq2irb0dkKGeLk/VtyUHW7eJDFDIxIMpRLUC+prAp eyOUWY9L2oheoDah65Uc/slL/iCNshanCUZoS01f6OjGTALY5jTfpVMVtse6rbkbc/6R kjb+GRY0EH528s3rLxz20JfWs9jpbrEh+M6ZVsB0HBgmhGh0AVzilaOrunZI1og8gBiC l/xQ== X-Gm-Message-State: AOAM532U5nSCR4uq379vt3n1kO2iQtfp/E2oqC6WuGe7cXJfUvrIAPtu yHIsm4aMmVPKSTPcdVO1eSxCYEnP9sBOsg== X-Received: by 2002:a05:6214:5298:b0:461:c745:3b87 with SMTP id kj24-20020a056214529800b00461c7453b87mr5154812qvb.61.1652982539242; Thu, 19 May 2022 10:48:59 -0700 (PDT) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com. [209.85.219.172]) by smtp.gmail.com with ESMTPSA id l63-20020a37a242000000b0069fc13ce21bsm1628795qke.76.2022.05.19.10.48.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 May 2022 10:48:58 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id t26so10309046ybt.3; Thu, 19 May 2022 10:48:58 -0700 (PDT) X-Received: by 2002:a25:4289:0:b0:64d:746f:5311 with SMTP id p131-20020a254289000000b0064d746f5311mr5263711yba.89.1652982538414; Thu, 19 May 2022 10:48:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Thu, 19 May 2022 19:48:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] printk: console: Allow each console to have its own loglevel To: Chris Down Cc: Linux Kernel Mailing List , Petr Mladek , Greg Kroah-Hartman , Kernel Team , Rob Herring , Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Chris, CC DT On Thu, May 19, 2022 at 4:37 PM Chris Down wrote: > Geert Uytterhoeven writes: > >All of the above options are appropriate for "classic" systems, > >where the console device is selected using the "console=" option. > > > >On systems using Device tree, the serial console device is selected > >using the "chosen/stout-path" property in DT, and the graphical > >console is usually auto-detected and auto-enabled through DRM. > >Do you envision a way to specify a specific console loglevel on the > >kernel command line on such systems? > > Interesting question! I hadn't really thought about device tree. I actually > have very little understanding of how it works to be honest :-) > > I'm happy to add loglevel support to device tree, I assume I'd add another > property under the chosen node, like chosen/stdout-loglevel. Please do not add a new property there. IMHO, the loglevel should be specified on the kernel command line, and not be fixed using a DT property. Typically, boot loaders (e.g. U-Boot) replace the command line specified in chosen/stdout-path in DT by something retrieved from the boot environment (e.g. user-specifief bootargs in NVMEM). > I have some questions, though: > > 1. It looks like DT is standardised. Do I need to get standards approval first? > 2. Is there documentation on how to reliably test DT changes? The DT specification can be found at https://www.devicetree.org/specifications/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds