Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4427440pxj; Mon, 21 Jun 2021 23:17:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYbuMXjmIENvaFjzOKbORMCpgSht2jt2xoL8kfRg1diJQ4eMojJtgCiKR8T4vD93guDi0B X-Received: by 2002:a02:2a07:: with SMTP id w7mr2330159jaw.96.1624342652466; Mon, 21 Jun 2021 23:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624342652; cv=none; d=google.com; s=arc-20160816; b=aET8u1A7MKqZDoFY4ELA09HGQ6rbV5VRRjnG4ePZTgkh53J6ZD8ooFIcvlfPecXf63 DeFyeppH4oRqQ5jbNv2NK4mmR1hIqMf7wWGf7ssnoR1N4o+Dia4pDbzbsNH2SSisDsFg mbX76VRtp0o7qIMH4YiewTwzTT1FVLzP7H4tRyhocWIH+83i2Rug/K+L1L3aOEovT+N+ RLYsa4nP4cPTOBppDorOw7q5UJvYwhYJUKVnhQFF6nEKLHlmktxLYQNGZ5Xd4/tyibMi vBZexstG9lHd3d1iFwd7XtJGZ9N6H1VBZloXhZgfX149rSlYqsFxI3svMdhmBeIfuAbV vXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=yGj5kcIyUxd7I7RAXobQxumsB29oRxTgaOu+jStO4M0=; b=OduzNPPdrpgvSyeoOYnD7byx6yPVRw6OlzfGaWZ/vp8viwmC0FZidD1O+7jPCzFhMi lUcNPqVhqgKcVT2gdxlEkRcxoNlhXpEpS+hGlM9/bkqGtSscqui/NIlghN1MovczgXzT LPhh+iGGv12mbH9PQ2TUduJD+o+wJO4xMwGYa5/2mLpeoMO2i2wUI/aS4jDwbdiZ8ydY 6LZiaHqzrwF24lRy5CJeEPQ0LhM/wAWTvWqylUQfURMT0rPDK4Yf0HJBF3JlRPK4bPf9 69bEOtS0O2d1amGknj88C+/ajphpspcHZ+BEtC28J43Us9FiIhhD9Rcuml4Iulf9qSd+ 4jwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si16638408ilu.88.2021.06.21.23.17.18; Mon, 21 Jun 2021 23:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbhFVGSC (ORCPT + 99 others); Tue, 22 Jun 2021 02:18:02 -0400 Received: from gecko.sbs.de ([194.138.37.40]:57278 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbhFVGSC (ORCPT ); Tue, 22 Jun 2021 02:18:02 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 15M6FUwD013324 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Jun 2021 08:15:30 +0200 Received: from [167.87.93.200] ([167.87.93.200]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 15M6FTtU011380; Tue, 22 Jun 2021 08:15:29 +0200 Subject: Re: [PATCH] serial: 8250: 8250_omap: Fix possible interrupt storm To: Vignesh Raghavendra , Tony Lindgren , Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, Linux ARM Mailing List , linux-kernel@vger.kernel.org References: <20210511151955.28071-1-vigneshr@ti.com> From: Jan Kiszka Message-ID: <0ad948ac-f669-3d6d-5eca-4ca48d47d6a3@siemens.com> Date: Tue, 22 Jun 2021 08:15:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.05.21 08:11, Vignesh Raghavendra wrote: > Hi, > > On 5/28/21 11:09 AM, Tony Lindgren wrote: >> Hi Greg, Vignesh & Jan, >> >> * Greg Kroah-Hartman [210513 14:17]: >>> On Tue, May 11, 2021 at 08:49:55PM +0530, Vignesh Raghavendra wrote: >>>> It is possible that RX TIMEOUT is signalled after RX FIFO has been >>>> drained, in which case a dummy read of RX FIFO is required to clear RX >>>> TIMEOUT condition. Otherwise, RX TIMEOUT condition is not cleared >>>> leading to an interrupt storm >>>> >>>> Cc: stable@vger.kernel.org >>> >>> How far back does this need to go? What commit id does this fix? What >>> caused this to just show up now vs. previously? > > Sorry, I missed this reply. Issue was reported on AM65x SoC with custom > test case from Jan Kiszka that stressed UART with rapid baudrate changes > from 9600 to 4M along with data transfer. > > Based on the condition that led to interrupt storm, I inferred it to > affect all SoCs with 8250 OMAP UARTs. But that seems thats not the best > idea as seen from OMAP3 regression. > > Greg, > > Could you please drop the patch? Very sorry for the inconvenience.. > >> >> I just noticed this causes the following regression in Linux next when >> pressing a key on uart console after boot at least on omap3. This seems >> to happen on serial_port_in(port, UART_RX) in the quirk handling. >> >> Vignesh, it seems this quirk needs some soc specific flag added to >> it maybe? Or maybe UART_OMAP_RX_LVL register is not available for >> all the SoCs? >> > > Yes indeed :( > >> I think it's best to drop this patch until the issues are resolved, >> also there are some open comments above that might be answered by >> limiting this quirk to a specific range of SoCs :) >> > > Oops, I did test patch AM33xx assuming its equivalent to OMAP3, but UART > IP is quite different. I will respin the patch making sure, workaround > applies only to AM65x and K3 SoCs. > > Regards > Vignesh > What's the status here for AM65x? The issue remains present on that platform, and I was hoping to see a quick follow up that limit the fix to that target. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux