Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6390777ybe; Wed, 18 Sep 2019 02:41:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLz4MJaNRaeff4jS4QWpJJNzkJO05/fGqCEVP2SxKMntjltMU4lJ+PgEx4yYD94+wIL9K6 X-Received: by 2002:a05:6402:a4b:: with SMTP id bt11mr6930301edb.175.1568799704151; Wed, 18 Sep 2019 02:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568799704; cv=none; d=google.com; s=arc-20160816; b=KSYOkqEY3ZfTfAIG+kqHX88iyA5fm06slCYD57AEzBdM1XtJvmxFu5Nt9VcL7p4H/d A6CfjiH5niTUzYmCzZ8LXT5FaefrwacBmtY1IZ+GJZ9J5rJfjC4FcCaHAuOWbdefcG+G RD1eOnvNqE9F1IIwSavu4Kn0k6LMQzfwtr/scoYZWcQK7e277Ak7az09npOiaiMfKcA2 MC5x9G7bgCLVSFUOjcCnK7TdypOFddDLumqemOxS5KAiNGQ81Iqn6Bs4rEbHEA5st7l4 XZJH0LrI1Ml2ABbOxb/wEseWZWw0QlRm3Gym8PNWbM1yzaC9Ei0AmwgOOIqeVRAm5CrE sfDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=HcguPySUCFLLxDIl2nsGh7C1+xfNCkfaRxbine1ssIg=; b=LGr8oZ2zTXv9WSs44kh5XuPUxiaQXIStGWjM7ISjrB5NYpIOUvD5W+/UYAmOh0CLZ5 d9WSzcleCjlTdgyPUASvqpIJyiGHW3kFl7YBmL5Imar4raV36+YYq80O4mdczw2ZE9ku aWR/C9EcHZG0cWGVix+iZHQv/6ArE/W/u02CjCOhJ2amBQmbATIj+bc5DqN+Cw1v3Rom xTQJmvU0lHx7Zv0iTI61XNVAET28kQSYBo5IAwSONP54/fr0vg9zQtFbiRt8jKyGe9OL Bl5Wz1nscGprel0xUYHLla/PFhoh5Ol12UM5nGxaEpz3fNhTLK47t8XoF62mE6YJme1Q L2Ew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si1819437edq.250.2019.09.18.02.41.20; Wed, 18 Sep 2019 02:41:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727343AbfIRJFj (ORCPT + 99 others); Wed, 18 Sep 2019 05:05:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:45369 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfIRJFi (ORCPT ); Wed, 18 Sep 2019 05:05:38 -0400 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1iAVty-0002uu-W5; Wed, 18 Sep 2019 11:05:31 +0200 From: John Ogness To: Sergey Senozhatsky Cc: 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 References: <20190905143118.GP2349@hirez.programming.kicks-ass.net> <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> Date: Wed, 18 Sep 2019 11:05:28 +0200 In-Reply-To: <20190918081012.GB37041@jagdpanzerIV> (Sergey Senozhatsky's message of "Wed, 18 Sep 2019 17:10:12 +0900") Message-ID: <877e66nfdz.fsf@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). This should make the cpu-lock less "dangerous". I talked with PeterZ, Thomas, and PetrM about how this can be implemented, but there may still be some corner cases. I would like to put everything together now so that we can run and test if the decisions made in that meeting hold up for all the cases. I think it will be easier to identify/add the missing pieces, once we have it coded. John Ogness