Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752919AbbLEWT2 (ORCPT ); Sat, 5 Dec 2015 17:19:28 -0500 Received: from mail-cys01nam02on0053.outbound.protection.outlook.com ([104.47.37.53]:62272 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752000AbbLEWT0 (ORCPT ); Sat, 5 Dec 2015 17:19:26 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Date: Sat, 5 Dec 2015 14:19:12 -0800 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Peter Hurley CC: Greg Kroah-Hartman , Jiri Slaby , Michal Simek , , , Subject: Re: [PATCH LINUX v3 09/10] tty: xuartps: Only handle RX IRQs when RX is enabled Message-ID: <20151205221912.GP4900@xsjsorenbubuntu> References: <1448161172-19717-1-git-send-email-soren.brinkmann@xilinx.com> <1448161172-19717-10-git-send-email-soren.brinkmann@xilinx.com> <56632231.6000000@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56632231.6000000@hurleysoftware.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21982.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(479174004)(189002)(199003)(377424004)(24454002)(377454003)(4001350100001)(33716001)(6806005)(33656002)(23676002)(586003)(1096002)(2950100001)(36386004)(87936001)(85182001)(77096005)(83506001)(5001960100002)(54356999)(110136002)(76506005)(92566002)(5008740100001)(11100500001)(106466001)(1220700001)(76176999)(47776003)(1076002)(50466002)(63266004)(50986999)(189998001)(57986006)(81156007)(85202003)(86362001)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1NAM02HT043;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501001);SRVR:SN1NAM02HT043; X-Microsoft-Antispam-PRVS: <0c07c1d948c84aad9fc0fa0e524e2b9b@SN1NAM02HT043.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:SN1NAM02HT043;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM02HT043; X-Forefront-PRVS: 07817FCC2D X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2015 22:19:22.3695 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT043 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 27 On Sat, 2015-12-05 at 12:43PM -0500, Peter Hurley wrote: > On 11/21/2015 09:59 PM, Soren Brinkmann wrote: > > Ignore RX-related interrupts if RX is not enabled. > > This doesn't look like a safe approach; fast-forward a couple of years and > some is trying to add some feature but can't figure out why no data is > arriving... > > What is this trying to solve? I definitely saw two kinds of lock ups. One was on the TX side, that the system tried to print with the transmitter disabled. The other on the RX side. I don't recall the details, but the system was stuck in some RX-related function waiting for data while the receiver was disabled. I think my explanation was that some IRQ condition becomes true and is dispatched to the RX handler even though the receiver isn't enabled. I guess a better way for solving this would be to disable the IRQs that call the RX handler when the receiver is disabled. Sören -- 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/