Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756559AbaJ2SBg (ORCPT ); Wed, 29 Oct 2014 14:01:36 -0400 Received: from smtp.codeaurora.org ([198.145.11.231]:60876 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755513AbaJ2SBe (ORCPT ); Wed, 29 Oct 2014 14:01:34 -0400 Message-ID: <54512B7B.905@codeaurora.org> Date: Wed, 29 Oct 2014 11:01:31 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Daniel Thompson , Greg Kroah-Hartman CC: David Brown , Daniel Walker , Bryan Huntsman , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, John Stultz , Sumit Semwal Subject: Re: [PATCH] serial: msm: Add magic SysRq support in dmmode References: <1414600712-20721-1-git-send-email-daniel.thompson@linaro.org> In-Reply-To: <1414600712-20721-1-git-send-email-daniel.thompson@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/2014 09:38 AM, Daniel Thompson wrote: > Currently the _dm RX handler detects breaks but does not pass any > characters to uart_handle_sysrq_char(). > > The _dm optimizations combined with the port's spin lock make if > difficult to pass all characters to the sysrq logic because we cannot > safely call uart_handle_sysrq_char() when the lock is held without > deadlock (the console handler also takes the lock). > > Rather than passing all characters via uart_handle_sysrq_char() this patch > only passes the last few characters in the FIFO. This should include all > characters typed as a slow (human) rate. This makes the problem much > simpler and allows us to move the handling of these characters outside > of the port lock. This makes magic SysRq work if there is a human at > the keyboard (or a short delay in a script). > > Signed-off-by: Daniel Thompson > --- I have a patch that I was going to send for this (Frank R. and I have been looking at it since a month or two ago). This patch doesn't look correct given that the SR register is not actually accurate and doesn't indicate that a break is there in the fifo. I'll Cc you on the patch, please test it. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/