Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2474633ybe; Sat, 7 Sep 2019 16:48:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPLREWZXPA/DtyO2bL8LzwznjoM3Uz0bg14a6RAdNFHoAqT1CtJyTB0REr/g+yQFc6eB1m X-Received: by 2002:a17:90a:cc0a:: with SMTP id b10mr16932291pju.85.1567900105740; Sat, 07 Sep 2019 16:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567900105; cv=none; d=google.com; s=arc-20160816; b=fUlMDmFMg8jutALtqd9ZqpOLiSA1O+3dBFvknlMYCW/koyG7rc35/7gjWnqUH7jn7o d41N7OfgmbVqw21sRt37G400wwK1R/frRzRJZ7o4eQgPnoxeuUwKPTwLzDRKKMlu9a4N n86624/azUdX7iu7zI4gMb9mPBlu/+V4+aIKC9f6c9WE4YpJJx+PkxGvAN4nwYUFjg3/ f0UjUieUhFHpznI2yiRBTxglRPh/vGHpc4X+5eQQrwzA6B8qP1pKorJF8T+b6bdKpzBC EWBdSq6LqRfRY7I2JMVt/ux7iLztKUjzsyhBJw9A/qG/JXYh1l3EsIQCwZx3PlNR+xz2 mZEg== 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:date:from:dkim-signature; bh=VpEKZIToJcJNtnrt6GtVJ64TAfq7GPSof5ZG1aF07lE=; b=bXkgMOy6dTtmSwlgpU27yq1dWAZCTvwqWz+99rKhBIF/59SsTzY2S3VKoj97O0vALg zeo6VR60dlsadDfPVMTGinfF/e69gCslXRCRpz2bzmpfHGPYGSX7ug0cIPNiw6Z2Bec5 Oy0BH7dMGCbNp9nNv8DMG7YDWyF4Gy4wqLtoAj1W6WP9xXDfUMkvFEnsjj7Io4f2LvUd j8OOzHBBUSgMvMzDoV191TKgPWPG8tUfPfFZffwzWmjgjvG6W+U8uSlfrXHJ9Zi7hRe4 4qPlZg8Eg8unDlwjbHvhHqCaQ0ZdKCeoL7TZ5EHRr9ifgmln8Wv8ELIfUhCvTObh6UOI tPGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D1gmX8qh; 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 d24si8399489pll.77.2019.09.07.16.48.10; Sat, 07 Sep 2019 16:48:25 -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=D1gmX8qh; 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 S2394003AbfIFTyD (ORCPT + 99 others); Fri, 6 Sep 2019 15:54:03 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41726 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfIFTyC (ORCPT ); Fri, 6 Sep 2019 15:54:02 -0400 Received: by mail-pg1-f195.google.com with SMTP id x15so4079235pgg.8 for ; Fri, 06 Sep 2019 12:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VpEKZIToJcJNtnrt6GtVJ64TAfq7GPSof5ZG1aF07lE=; b=D1gmX8qhzlfB/Pv7zyAZj4Fdbl/Ww/xUcMUcOizFDGiz+svCTiSk/J5vhlLzfJy0Fj mQU4m/XKA8lbeph7b0Djr18inpjH01goTUNDbFmzlzPlravDK0d/QCxXlfRpROLz4n2p XbwNqzzZwfNRQoe/5bo+dJVhCjyvS6YqH5L98KFp2qbCc0jMtRsbPozPmb+0/hnwJCRh UhE4Igys1vXpOkk/JgAyeR/7M86hqQLiZiZgIF97NUxxeNzaZ36E4dT1dhOGVEVDj0tI Q0YIRbW9gQOeHMgI1w3SJvA0vU5qJ54bzYnlkawU+fP6Ikbey+r7jjvVuDyoNkWQKDgo oGOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VpEKZIToJcJNtnrt6GtVJ64TAfq7GPSof5ZG1aF07lE=; b=JJxrMOQ3Br3XZq5QPJcC82Dc51bvQou20cQ2zKdEif9UhZdTSPNslkm0Q8TieDUcKF grOHGHh00WjmmsMAo5yzHOA/6phWwRJ9FmhE5H3QmmbnRQ5xmFp+8KSu1+WHxVkRB6YY ONZHByEIADFYubNRc36H5t11vmF/n1b9sB2yawmQPQtyasv4BJ1gSXE/ZAkD4uoVOy83 YQ9F27dpx0jxv2wD/USIAkxngmLfGb+aihKTchs16e0eXmwzLs1MyBlbPCQQNqZcMBag g1WXpclEC1hJQKLODWQ8iwt7+3+Ok8eHChJtyt2WrnshmyI8d1z97CZnYoSqY1ceo2IN c+5A== X-Gm-Message-State: APjAAAWxZWLYfQULsSZX+3UzrzoVw/hudvWBEVA3dkguJzakL1RtLYeT XcUz0N1ObGBEroIqthHTFBo= X-Received: by 2002:a17:90a:8a02:: with SMTP id w2mr10511834pjn.131.1567799642060; Fri, 06 Sep 2019 12:54:02 -0700 (PDT) Received: from localhost ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id g2sm7614527pfm.32.2019.09.06.12.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2019 12:54:01 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Sat, 7 Sep 2019 04:53:59 +0900 To: Peter Zijlstra Cc: Petr Mladek , Andrea Parri , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Brendan Higgins , John Ogness , Thomas Gleixner , Linus Torvalds , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v4 0/9] printk: new ringbuffer implementation Message-ID: <20190906195359.GB69785@tigerII.localdomain> References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190904123531.GA2369@hirez.programming.kicks-ass.net> <20190905130513.4fru6yvjx73pjx7p@pathway.suse.cz> <20190905143118.GP2349@hirez.programming.kicks-ass.net> <20190906090627.GX2386@hirez.programming.kicks-ass.net> <20190906124211.2dionk2kzcslaotz@pathway.suse.cz> <20190906140126.GY2349@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906140126.GY2349@hirez.programming.kicks-ass.net> 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/06/19 16:01), Peter Zijlstra wrote: > > 2. The simple approach works only with lockless consoles. We need > > something else for the rest at least for NMI. Simle offloading > > to a kthread has been blocked for years. People wanted the > > trylock-and-flush-immediately approach. > > Have an irq_work to wake up a kthread that will print to shit consoles. Do we need sched dependency? We can print a batch of pending logbuf messages and queue another irw_work if there are more pending messages, right? -ss