Received: by 10.192.165.148 with SMTP id m20csp3977734imm; Tue, 8 May 2018 00:21:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYyEmIjB0UtXIgNTtOaLxQy/u/NHmHt0Z0r7LXxBcrmzHI1jrWTdG1E69k4LwWrB293LLp X-Received: by 10.98.69.68 with SMTP id s65mr39238171pfa.150.1525764061365; Tue, 08 May 2018 00:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525764061; cv=none; d=google.com; s=arc-20160816; b=foFs8aiwoCDQOv9aS4K8sGHMuXOzfLyXbG489HNLBZMWloVusvyIx276upEHIhyLRS mQO6fZzwd6qrpSqmS/MISQoH7saHFJcBBUERHJWxYrRzFNmTDLf2IIVHJluZZ+wRJmO2 a3dWALEy4MYUglJlcEohabaWPzZRx0GGgFxgVsOtjvam8d3+kdBbn41/vtyoDjIeLb6d sAB1nOa0anOqzbODZ+/kvYknpupv9Pd2yXZRDh8dLBvfZMARlAERsKbw0Yk7iDvWs/30 Ny7/FhVo+uvCxAxwFr33vNXW/qsqOvJ5eyjmIY1znn0pc2T9TjkGJ84JySBbhdZNI99U T18w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=QPSFhsh7CwsVr4yTN+VNXBVLKg5ls2aNMSKSdVmenKY=; b=dhVzBuIbJz2MOQvq7MgeUdhH0tOhW8jfCYV6wUB/IZbZMS/9Qu1MpjkSXBNPtNt2n1 AFcbKln+pGTf3etjZdjC5P1Fy1u7/QvcWEKzclClaKj7BIgAivSIXQfVliuxODh6ff3g LoTAh/Rjxo2Bgiqhu5Lvga/DBBPaeccdZbneMAhjsKYfm9gy9TRY2BzPUG0vc29WqA2H OQo2fOhTCY3LWvV6F5TA2zT0pfE6Odj7Np9uOKZcCOmHo07+7YQw3Ldyanmbd9YVppIK SGV5+THLaa/nl8uNzHkMVBbRM3sKlLmRpYYf3EUbSFKqbFq3H5/6FfkqmG6X2ocVl/kV MR4g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91-v6si23237070plb.457.2018.05.08.00.20.46; Tue, 08 May 2018 00:21:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754661AbeEHHSt (ORCPT + 99 others); Tue, 8 May 2018 03:18:49 -0400 Received: from mail.monom.org ([188.138.9.77]:38720 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbeEHHSr (ORCPT ); Tue, 8 May 2018 03:18:47 -0400 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id 90252500C40; Tue, 8 May 2018 09:18:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from helium.monom.org (ppp-93-104-170-164.dynamic.mnet-online.de [93.104.170.164]) by mail.monom.org (Postfix) with ESMTPSA id 0353C5004CD; Tue, 8 May 2018 09:18:44 +0200 (CEST) Subject: Re: [PATCH v2] serial: sh-sci: Use spin_{try}lock_irqsave instead of open coding version To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , linux-rt-users@vger.kernel.org, linux-serial@vger.kernel.org, linux-sh@vger.kernel.org, gregkh@linuxfoundation.org, Daniel Wagner References: <20180504163041.28726-1-wagi@monom.org> <20180507125146.75crpaj2scav7mql@linutronix.de> From: Daniel Wagner Message-ID: Date: Tue, 8 May 2018 09:18:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180507125146.75crpaj2scav7mql@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, On 05/07/2018 02:51 PM, Sebastian Andrzej Siewior wrote: > On 2018-05-04 18:30:41 [+0200], Daniel Wagner wrote: >> --- a/drivers/tty/serial/sh-sci.c >> +++ b/drivers/tty/serial/sh-sci.c >> @@ -2890,16 +2890,16 @@ static void serial_console_write(struct console *co, const char *s, >> unsigned long flags; >> int locked = 1; >> >> - local_irq_save(flags); >> #if defined(SUPPORT_SYSRQ) >> - if (port->sysrq) >> + if (port->sysrq) { >> locked = 0; >> - else >> + local_irq_save(flags); > > how is this helping? You should see a splat after a sysrq request. You are right, I didn't really think this through. Should 'echo t > /proc/sysrq' trigger the splat? At least I was so naive that think it would be enough. Thanks, Daniel