Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp764277imm; Thu, 26 Jul 2018 11:34:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfHgrv2QZDSDR50bkljxRvGvQhHOBTowf4dYe2X5dLfrxfcfpQVP2hTQKkQqW9mzVLJEcd5 X-Received: by 2002:a63:121a:: with SMTP id h26-v6mr3045519pgl.316.1532630044282; Thu, 26 Jul 2018 11:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532630044; cv=none; d=google.com; s=arc-20160816; b=pgXmWXeuQOX0l4M4lv2D5NGc3Fn2xSUdMJ9lI9WHNdb5ShBLbNK8b8F7S40WEF05CQ XashUjeWNGRx2oEyVHnoS3CiQ79dyX2UxUlep42fdgFJIIRGYXAFdlhPi8Glvg7At2Kq T6N1GNHVK7MTKxH48vtFmoU8JkEKwdnL2cOwFwnNKQceuT4OPpoQpk0DmHghcR8M8rY0 r5EuhUCrTTYUE9Ono2S6kymYtpRO7gseDMF9XU1YNpy8VGpw80+IJ1EYnaIGqYLd4L2B NcsV8PdEAvfMydNn8SQc9hG43pl53eD17tie2YFyhQc9HrZPHzlG6f1Q/3EHeY8FEoRm MCHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=maDKt0uDuoaXyshADOV/F/yFe6IhCXy4n9Nh4uwmeh4=; b=Y93rAeacGQ9bGJFAH+ENo4/qzHU1LBTxntwq3dE29l8upculCGjCGNLmYHsAzz/TWF DF6JrtQMqG4oMYwnNYu1OdsokxQrKj3zXXd2UJsOR1h+SqbaVGlAXYcMPiCCzUEJtI4m voDMUjJrhjNgl1J85y3t20rTbK+HjWi+5LZtYD46ICGTPvPmcNxC+NkQMBTPpz8CROaj /sklN3NzjibZREReEIIT4E3krnYvS6F//LYEuorhqk8TsFv3Z4CvvAfrGIL8/Ia24WMm Ocp5CQE7nzZEqSuYnfSk0fzMqRIuWApTvSYvwc/tichMgd+o7q5XYWrwv3I9NEyKmgwW /l8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EOUTUuzS; 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 z89-v6si1899573pfd.357.2018.07.26.11.33.49; Thu, 26 Jul 2018 11:34:04 -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=EOUTUuzS; 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 S2389020AbeGZT0O (ORCPT + 99 others); Thu, 26 Jul 2018 15:26:14 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:45990 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732158AbeGZT0N (ORCPT ); Thu, 26 Jul 2018 15:26:13 -0400 Received: by mail-ua0-f193.google.com with SMTP id k8-v6so1680286uaq.12; Thu, 26 Jul 2018 11:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=maDKt0uDuoaXyshADOV/F/yFe6IhCXy4n9Nh4uwmeh4=; b=EOUTUuzSXtPbVu8UAoFKqzPJUXbZxWcd0yCvO/2TANAd++6IFnqM6HzHBJ3Up+7tYD X56KfemgoLxJc6EXJvvXwA2Uf1wN/HbJwTK5iJzi9wSHYN8OEieIA1utI/iORuNczCuQ iHbgE8/DVFzL0iUdQtKtH8AYRTPIOSpebS/KAMUERDuaLI/NdZFh/ed6I/+C9GNiiJBv 4ucYTlROyJ0maAsaDOOR241RVFUSiWc9ukhb3uVz3xmXLMKT0Tk1rTV9/hlNg8WYlZBk cKRtYo89iDspq17O+LV/gHpRhsLy0FW5j+4uN5NozAMUBZzTVD/0sT60Hp9/TGQgvdFL zorA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=maDKt0uDuoaXyshADOV/F/yFe6IhCXy4n9Nh4uwmeh4=; b=ildlSi56Gt3d8ztWQW9si98MX3nbN4bWTg1s4005OSIbg4N4lemK3Sl4AKOVEYjMIY 3Mr/8PbyafhmilVcb7bqZ4KH8K/lAfDpvU6VQu4cHl1Zlo5Wb0qVoinv8DI0kJmEI5AK CY9Vjv9PY+H1F9pM1F3UhSgCRF7McpLXzb7UxEzKmNznJx+ObaFppSlf4Y7xDfsZk4hC 3npWFfaxoi6+yg5Ydgl03SNt+idZ9yMjQmu6JGwATZXmgHOfgzRr0CMuUff0MtmH2JMV uR95FXb0tnDwt+etIa7rHnLR81KTsBnip5ySjBWOq+blP5H8moZqW41e/3y8MFYVBwS6 m1Sw== X-Gm-Message-State: AOUpUlHKWwPh8aPKQgGLljZ9w2eGLF/6QVQ7aTog+ARTTTy9YUzcSuoy KMvTH7K3oE+GJGPjXUkA9m9dvmnzoM+NKoHo/EY= X-Received: by 2002:ab0:6214:: with SMTP id m20-v6mr2126903uao.147.1532628496761; Thu, 26 Jul 2018 11:08:16 -0700 (PDT) MIME-Version: 1.0 References: <20180726153857.abxfebvxjcp4jqgx@linutronix.de> In-Reply-To: <20180726153857.abxfebvxjcp4jqgx@linutronix.de> From: Pintu Kumar Date: Thu, 26 Jul 2018 23:38:05 +0530 Message-ID: Subject: Re: [PREEMPT_RT]: Using printk-rt-aware.patch in non-rt kernel To: sebastian.siewior@linutronix.de Cc: Thomas Gleixner , linux-rt-users@vger.kernel.org, open list , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 9:08 PM Sebastian Andrzej Siewior wrote: > > On 2018-07-18 20:19:15 [+0530], Pintu Kumar wrote: > > Hi All, > Hi, > > > I have a question about PREEMPT_RT patch for 3.10 kernel. > > I am trying to port this rt patch: 0224-printk-rt-aware.patch.patch > > (see the patch below), in non-rt kernel. > > I could able to successfully apply this patch after replacing: > > migrate_enable/disable with preempt_enable/disable. > > Things were working fine so far. > > Why? > > > Then, I noticed that "printk" from interrupt context is not appearing > > on console (minicom), if console shell is active. > > However, it appears on the dmesg output. > > > > So, I am wondering, what could be the cause of this patch for this > > behavior in non-rt kernel? > > Is this the expected behavior, even on PREEMPT_RT kernel? > > I *think* it is but there are hardly any prints from atomic context for > anyone to notice. And the next print from non-atomic context should > flush it out. > Yes, we observed the same behavior with CONFIG_PREEMPT_RT_FULL with beagle bone-rt kernel 4.9. And yes, after doing : echo "1234" > /dev/kmsg the content were flushed. So, I guess this is the expected behavior with this patch. > > Is there a way we can fix this issue on non-rt kernel? > I would guess that a wakeup to klogd would fix it. > Sorry, can you elaborate more about "wakeup to klogd". I wanted to try it and check. > > Please help us with your suggestions. > > > > Thanks, > > Pintu > > Sebastian