Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4625458iog; Wed, 22 Jun 2022 02:35:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sS+pCmWy2xTVZcDg2QT1G9NV7s+nZPKKsqO49r7v+XCNT56nX22Zep5eF9WFa7NjVuAqVT X-Received: by 2002:a17:90a:a00c:b0:1ec:c7bb:74b8 with SMTP id q12-20020a17090aa00c00b001ecc7bb74b8mr2839339pjp.107.1655890544296; Wed, 22 Jun 2022 02:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655890544; cv=none; d=google.com; s=arc-20160816; b=hidLjXDabSPcSlg33K0eCUaUf6jTojNQhhjTn2r4krHfIZk8MwHBb3LX90C1ZBlwJS 5VXDZohhF5tU+U/Jj/MlNKe5oymUAMMWxJD/yhGF2Dxb+YA0ZjOqVQF40iPxPmiXr3mK duZdjF2Np+b7/8QO8CPJ0I3Fx9jqsRIeEniAikPHFN4epY8NOrC0JRlL4OlMivTa1A76 Ay2YS5l0hCU9b3N99lJSsS5A9ZKeJvUb1mHcqHRmQ87S+oaYmXgJ4fRxW98bXXvoRdhS NqUnT2u6quYIJQ3xPxhKwNRnxc5PN+z+mQvEiEnOeRUxlVQY0Yaapvo4f/eiYXMdoK4w ULRA== 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=65BoBdNEPD+hhMSIaXkfwRdYUnoeWO1j5CRjqrWAPjs=; b=dzsq9r0hj4oMBQsnYmazv+zgHxL/C5Y7HOdvMz6nE9cr5A39ASLMGHtOC60sNwVqz/ tx6AuTdCCsNmkwgIBIdMZBamFDEiBtUEKFWCVguMofra6r1D8rmeu0bGO0HfksmdKyCi nv0PUoy75MDh1EkZEmqE8l/98ybJ2PbJcf9L/GnwTv3l/A+KlssKoVytMKeGZy2BfhAc Yyb3S8BLGp3oGSyxewe8paSD3H7GjuYb4/ljtik3bAwBGTe8ZoqfTPg57+pNaPIGIhwc DC/ohA5EWEmJ9t5wWjoYJ0N3wGqYP+i+1FEQdaw2lN4CWQYYNqsm1NwT45337l7C/peM +vGA== 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 f36-20020a631f24000000b003fdff346287si23278636pgf.674.2022.06.22.02.35.32; Wed, 22 Jun 2022 02:35:44 -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 S1353923AbiFVJDT (ORCPT + 99 others); Wed, 22 Jun 2022 05:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354748AbiFVJDS (ORCPT ); Wed, 22 Jun 2022 05:03:18 -0400 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661BC1EC6A for ; Wed, 22 Jun 2022 02:03:17 -0700 (PDT) Received: by mail-qv1-f54.google.com with SMTP id n15so20174965qvh.12 for ; Wed, 22 Jun 2022 02:03:17 -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=65BoBdNEPD+hhMSIaXkfwRdYUnoeWO1j5CRjqrWAPjs=; b=aTunQcWOYBohEMk2rfcWAVqA8svysFpCKsGyXd3adruV8ENKcNW3lpP/4ZL3L/RWwI V60msb5f+wkQ6E2CwwXOnSyDtWCZzt8Y81ef7Edi5Ygb2TCk6j99Brfv/yrsQaqD8q5d P3ynw2tkhNnPrhvQezxnJ9QuIzjJZq0+XzfdI7J/S9+9X8oR85dISZNZWm7pjJHhwbNg ui+pcAxW96dFoRiRqmsPmkY8xvrU4RA+8tPVxdcbFnKIDPTcrQbFvAuR5MyxHFgz5aLf F3Mm/BQNs8VQOOy/QH8GyjBVOIDYNK/y4FZo5KA02a1EaBhfmFMkUXcSCKqAunfcTGM9 oa8Q== X-Gm-Message-State: AJIora9AkTvshuRh0weUFT/QR3vNK4zf11QHVcE5BcUcy4bVyOSP3T5X hw1Mhs9CF1HvHKfdfEUNXxDhyD7wIyWk9w== X-Received: by 2002:a05:622a:14c8:b0:306:69cb:edbc with SMTP id u8-20020a05622a14c800b0030669cbedbcmr1882279qtx.376.1655888596151; Wed, 22 Jun 2022 02:03:16 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id bs26-20020ac86f1a000000b00304fd1f6b4csm13773519qtb.77.2022.06.22.02.03.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 02:03:15 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-317710edb9dso156280987b3.0 for ; Wed, 22 Jun 2022 02:03:15 -0700 (PDT) X-Received: by 2002:a81:7c1:0:b0:317:897d:ea90 with SMTP id 184-20020a8107c1000000b00317897dea90mr2828900ywh.283.1655888595308; Wed, 22 Jun 2022 02:03:15 -0700 (PDT) MIME-Version: 1.0 References: <20220421212250.565456-1-john.ogness@linutronix.de> <20220421212250.565456-15-john.ogness@linutronix.de> <878rrs6ft7.fsf@jogness.linutronix.de> In-Reply-To: <878rrs6ft7.fsf@jogness.linutronix.de> From: Geert Uytterhoeven Date: Wed, 22 Jun 2022 11:03:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH printk v5 1/1] printk: extend console_lock for per-console locking To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Linux Kernel Mailing List , Greg Kroah-Hartman , linux-riscv 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 John, On Tue, Apr 26, 2022 at 10:50 AM John Ogness wrote: > Currently threaded console printers synchronize against each > other using console_lock(). However, different console drivers > are unrelated and do not require any synchronization between > each other. Removing the synchronization between the threaded > console printers will allow each console to print at its own > speed. [...] > Signed-off-by: John Ogness Thanks for your patch, which is now commit 8e274732115f63c1 ("printk: extend console_lock for per-console locking") in v5.19-rc1. I have bisected another intriguing issue to this commit: on SiPEED MAiX BiT (Canaan K210 riscv), it no longer prints the line detecting ttySIF0, i.e. the console output changes like: spi-nor spi1.0: gd25lq128d (16384 Kbytes) i2c_dev: i2c /dev entries driver k210-fpioa 502b0000.pinmux: K210 FPIOA pin controller -38000000.serial: ttySIF0 at MMIO 0x38000000 (irq = 1, base_baud = 115200) is a SiFive UART v0 printk: console [ttySIF0] enabled printk: bootconsole [sifive0] disabled printk: console [ttySIF0] printing thread started As this patch does not make any changes to drivers/tty/, and ttySIF0 does work (it's the console), I looked in /proc/kmsg, and bingo, the missing line is there, so it is generated, but never printed. I tried taking the port spinlock in sifive_serial_startup(), as suggested for the meson driver, but that doesn't make a difference. Do you have a clue? Thanks! 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