Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6390464ybe; Wed, 18 Sep 2019 02:41:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgEUVS7bKkqjJ28f5V6Hjm1+KA6Nhkk5qSpFkPt+/WtMxqYZECE5OuiXf3492qI/wNzhbg X-Received: by 2002:a17:906:85c8:: with SMTP id i8mr8764031ejy.178.1568799681501; Wed, 18 Sep 2019 02:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568799681; cv=none; d=google.com; s=arc-20160816; b=Dm/rqROrrba0pxXAsgUdjgYlE2WCfGje4O+4N0uKXDhE4YuoP1nfCkRzTWLAFNhCzo CejVr4nJjTmSK42bFqE2oUaHJ47vvzfIbUyEUsOthl6JYJUPldfFAfHHdb/5p6EJDfgn 9q1xqM5g7yQ94QPpIMrodwOnGHXuZSrE4yHDYhnmQ6/3YQ6NtnCDE0XOJfUYlrjlfrUl XEY/D3MAK463i3VPVbkk6SYlJfu21uGexDEJ8Yikqi2eJVl3/mvmLcdAedJ/D+40j8t/ ve8j+TFlbe1kt3UwDZ0kvjvRXlF7B4a8XwsLcCZ1puphl5Y+yFJ0tfFBU73Bg3Y5JN1F 4AZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6uvS0UZ6H/zDo06Y5m/KUvTD9XX9l52PqJXfvtuw9xA=; b=tzM2Ty44uYefP1/IXJd5615naqg8wdnlXRGVQKr+n5m5qAE+XmZAlA//TDUxVxelGR Kq90BeclkTB3GB1Zk8hL+lX5WmS0Pj58ZNXlEvp3bA6UC3zLJzq/2og0Ei2bVdAvKGo6 o3FZMG9oY6Y+ON3sKoEZlkPUlX5T0vFJXKZqFkHpYQBznwTYu1S+G6eX5ecoOxwAWasv 7mCgtZ0wh9oLDS6Q6Dm/7CxeOHlSFeUI3+CjuZk2Pgj6F01bXfZpr1c3bUThh5x8u2BN Samowv41eVrEqz2PzAH90QnO5ElTPZ6/OD84iyILL9fw/bDKyEUO8bZEmpv7ZwUdOj58 M87g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Rq/d9Do/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si2515081ejv.67.2019.09.18.02.40.58; Wed, 18 Sep 2019 02:41:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Rq/d9Do/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbfIRJLG (ORCPT + 99 others); Wed, 18 Sep 2019 05:11:06 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34189 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfIRJLF (ORCPT ); Wed, 18 Sep 2019 05:11:05 -0400 Received: by mail-pg1-f195.google.com with SMTP id n9so3675170pgc.1 for ; Wed, 18 Sep 2019 02:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6uvS0UZ6H/zDo06Y5m/KUvTD9XX9l52PqJXfvtuw9xA=; b=Rq/d9Do/vXMKTUN8PzO+7daKezpcMdb+iT3YDE/xO0xQi6g4o+VugW6g+fV1Kq2X0B ZgddWfj4B1snpD3KlnFQtSqrRkZG4QdlWt5W24clVUTPk+2Ot49LLGEeyMk7XSq4756Z /5/6AN8l5Vuu+ENLg1Mal2K+3mVSXsrn7DAmy3jeVx0R0Tx/pt9stNqzop2gOFbEteiu 2elnrgs1vdKGhLfks+f2UOgLUvMWKSSOTMTbYbVi9Cb4RL5w7R2xZUvXeWxjkNlA/FSu LbLNKGts7oZkyzYaT20zHc5XLqviPDSCpIVUrDXLGZsgvg2F5e0ikjvTwkbycidm7YmE AuEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6uvS0UZ6H/zDo06Y5m/KUvTD9XX9l52PqJXfvtuw9xA=; b=sK4VZ5gNlhZNHLzT9KvxbwwFN3SjwxGIpGUzfDYMrNyL3QPMrVHAk6FiW5pMbomcFv eQuGDgRffvLoiMs3NjZT2mIq2xcej41bcgoxKvocwN9TjhTWxxo01DZklj5S2MHCOdWG 772p0rxxw7qGLUB9OwWM+qJeGYeyIWMOnM4oZ1cdZmq1b0yGze0GdfVTlmDsxoB2+6hc xjL7uwfnYc8T01wpgk5gkPvvGL0o9GJ5oGrZQRhH+UyT1qn0wP/pSl6Qhm5RhQGHQ4rv TpQCPFNtYkzL6ieWm+5+Vq88PMxecsIySDMrdEavdEvMfgxfYuwuIjQ2/f+WRkeTC24g lKlA== X-Gm-Message-State: APjAAAUrdpIxCgDcvvfnu9JF+Eun3zN7PYj75sLL8uWjM77Iw0VieyJg S0pTgSidMdD8H+4ZqYliIso= X-Received: by 2002:a63:5222:: with SMTP id g34mr2777904pgb.405.1568797864898; Wed, 18 Sep 2019 02:11:04 -0700 (PDT) Received: from localhost ([175.223.34.14]) by smtp.gmail.com with ESMTPSA id 62sm5946596pfg.164.2019.09.18.02.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 02:11:04 -0700 (PDT) Date: Wed, 18 Sep 2019 18:11:00 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Petr Mladek , Andrea Parri , Sergey Senozhatsky , Brendan Higgins , Greg Kroah-Hartman , LKML , Theodore Ts'o , Paul Turner , Daniel Vetter , Prarit Bhargava Subject: Re: printk meeting at LPC Message-ID: <20190918091100.GA55364@jagdpanzerIV> References: <20190905121101.60c78422@oasis.local.home> <87k1acz5rx.fsf@linutronix.de> <20190918012546.GA12090@jagdpanzerIV> <20190917220849.17a1226a@oasis.local.home> <20190918023654.GB15380@jagdpanzerIV> <20190918051933.GA220683@jagdpanzerIV> <87h85anj85.fsf@linutronix.de> <20190918081012.GB37041@jagdpanzerIV> <877e66nfdz.fsf@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877e66nfdz.fsf@linutronix.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (09/18/19 11:05), John Ogness wrote: > On 2019-09-18, Sergey Senozhatsky wrote: > >> Each console has its own iterator. This iterators will need to > >> advance, regardless if the message was printed via write() or > >> write_atomic(). > > > > Great. > > > > ->atomic_write() path will make sure that kthread is parked or will > > those compete for uart port? > > A cpu-lock (probably per-console) will be used to synchronize the > two. Unlike my RFCv1, we want to keep the cpu-lock out of the console > drivers and we want it to be less aggressive (using trylock's instead of > spinning). That's my expectation as well. cpu-lock and per-console kthread can live just fine in printk.c file. -ss