Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1507792imu; Thu, 13 Dec 2018 17:00:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/XElPhPSf5eROzzIy3GatZ2HNg9ShA8xeA1HHETMnt/hiyvFjd6iELtWWPSUQZrIzWRNv9i X-Received: by 2002:a63:1013:: with SMTP id f19mr933197pgl.38.1544749237910; Thu, 13 Dec 2018 17:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544749237; cv=none; d=google.com; s=arc-20160816; b=Y1f6jGqvMpooCag9qO7U8Ai+WCZG7PH5ZODKmrXr1p/xpn0tdtdRBr1D4xbXesxOtt Fp8V+H/JOHXpQbVnXkFkI1qDODTUtP/KvpAFJuqdLNZTxNkcilfWfSChImXECoKC6VOl 84+sV8qJ5NgDJt9v5K8+dVhsNmHw5vnzl1JoMXMCwXiM48/TU7dm0b06VwKb/xtIbWdT ZRMZu93ADPedlFnpz00TuBOsyGrqQKQAQjlTv9dTI+TxbpLxbWf/wTwqgUvk8tAfndFk b3prI3kzELrl+S1qaier6778tkJBiEWz6GL3SKcqmuqwvIFVTqccUqSMK5VH/xqxvTfP u+Fw== 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; bh=OgsD9ciJgYkwLnc5LxoTiPqRPu3UU+7P/7miboedbXk=; b=ntcYvsgk8ihqHfEMEZKAC3yelKgC8KQcvJ7G7NqVw3Tltc2QCWjk7S6UlZeNnc7Znz vI21MDo/Fsly3ckJfkpF/lePDQIPLS0RMqft/8MQB6HhR4jJsZIl8vVYzW7pD+awX81o Z+ScFtB4DXAUVt0ZaFAXvao8jA1RQ7NHGLnk0JZc5EzKcaTD5vt6MBvFGF/yWsTh0zjG ZeqzNkcUu6xq2OXTCU9MHc1anTHpA0X9uNHs4Xzg4I/6kfOF6e93yomdVq4QpLu5y5u4 f+SmAwbzSZjXXnRJrLvPRr0+0Ssv19lfN8fukaZamDvyl1ElgTWY0W8l8TroWTUMoTOJ y99w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ww7eik0y; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si2641389plz.118.2018.12.13.17.00.22; Thu, 13 Dec 2018 17:00:37 -0800 (PST) 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=@chromium.org header.s=google header.b=Ww7eik0y; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728659AbeLNA7Z (ORCPT + 99 others); Thu, 13 Dec 2018 19:59:25 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:39075 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727638AbeLNA7Z (ORCPT ); Thu, 13 Dec 2018 19:59:25 -0500 Received: by mail-vs1-f68.google.com with SMTP id h78so2391577vsi.6 for ; Thu, 13 Dec 2018 16:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OgsD9ciJgYkwLnc5LxoTiPqRPu3UU+7P/7miboedbXk=; b=Ww7eik0yCVL5JFp4NtYOx2Aq2VI4rj89hzTtAboCxccPjNz6pn7Y17/eJAng6yM529 ngP0P73QK8L294XgxAxZ5xtPCr+ZVAv7JoB6SL5LKDl4hWfJN9Dg8KjB4q0sQoPfaLD/ k3RvxIy2ksh5UNbQ/pDbmDchYC3guUpTT8/wk= 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=OgsD9ciJgYkwLnc5LxoTiPqRPu3UU+7P/7miboedbXk=; b=lvVSAzVRVTkEp9TMTFkmJAU8UmYkzVkNiqCOcWOeaj22WzYn8qMxscb/0unwEDqRnA lW+ozFA4UkpVDP1+0SI0eu05XuHyNkpSsDoaX+8KqZwoZJPRinYeN/M3ZLohCfPNPyVT UVBvBGfMmepi8DxqE3j3ImZfp6de69yvIab4u3v8NfKQZi/LolMeC+ILQUipa+8GqioP aqcnuaaAmkv+3RWJRbT2mpSp2s37eAhdizYofz7JoqgKLKF5OXZ2rgUWupnJi/Q9nu/T mpuT5MqleNGQIdy02D2X1r/DJ/jiOlmYtKqAgl4hdWYue7xRof7XBEdHrrgZ7LIxWh9I Lc7g== X-Gm-Message-State: AA+aEWYKhnOpiVEv3yzKAA8QXl8f0uhTFDntqdaHHOocYk+z0U4UxS0G ctBvb02K6I/h6XFezzJBXNkaTbLWvbA= X-Received: by 2002:a67:4541:: with SMTP id s62mr455568vsa.25.1544749163898; Thu, 13 Dec 2018 16:59:23 -0800 (PST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com. [209.85.222.53]) by smtp.gmail.com with ESMTPSA id n206sm1503097vkn.36.2018.12.13.16.59.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 16:59:23 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id e16so1413915uam.12 for ; Thu, 13 Dec 2018 16:59:23 -0800 (PST) X-Received: by 2002:a9f:3ba6:: with SMTP id r38mr477595uah.52.1544749162723; Thu, 13 Dec 2018 16:59:22 -0800 (PST) MIME-Version: 1.0 References: <20181213194321.240148-1-ryandcase@chromium.org> In-Reply-To: <20181213194321.240148-1-ryandcase@chromium.org> From: Doug Anderson Date: Thu, 13 Dec 2018 16:59:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] tty: serial: qcom_geni_serial: Remove interrupt storm To: Ryan Case Cc: Greg Kroah-Hartman , Jiri Slaby , LKML , linux-serial@vger.kernel.org, Stephen Boyd 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 Hi, On Thu, Dec 13, 2018 at 11:43 AM Ryan Case wrote: > > Disable M_TX_FIFO_WATERMARK_EN after we've sent all data for a given > transaction so we don't continue to receive a flurry of free space > interrupts while waiting for the M_CMD_DONE notification. Re-enable the > watermark when establishing the next transaction. > > Also clear the watermark interrupt after filling the FIFO so we do not > receive notification again prior to actually having free space. > > Signed-off-by: Ryan Case > --- > > Changes in v2: > Addressed Doug's comments > - Avoid M_TX_WATERMARK_EN writes when values already match > - Added note about M_TX_WATERMARK_EN triggering and latching > > drivers/tty/serial/qcom_geni_serial.c | 25 +++++++++++++++++++++++-- > 1 file changed, 23 insertions(+), 2 deletions(-) Thanks! Reviewed-by: Douglas Anderson If I echo something out the serial port I now see 2 interrupts fire. That seems about right compared to before where we'd get boatloads. Thus: Tested-by: Douglas Anderson -Doug