Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3225894imu; Thu, 29 Nov 2018 18:24:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/W9pncNd0OhCJkWywGBHxaLE+J8GkwZtou+gc2jBxjnLWbrykyuDxIWD2T38TtdVjDgI1eS X-Received: by 2002:aa7:810c:: with SMTP id b12mr3819825pfi.44.1543544640184; Thu, 29 Nov 2018 18:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543544640; cv=none; d=google.com; s=arc-20160816; b=b/3XXhoDqON6VF8pwOuTrQT+JCpZSq6bfUVNxCd2RsRhlPmhSXJPbQu85h2/EzjK8l dSnlxILAG0HpgWKNrYzLwcCY05IwrSd061oFZWPiImB+QOY7psxOpeLFQld2Ci0J+mOm ckcFJU/G+LmFpS0JedJceQIcAt54i/AlvD3USvvT/urjjxlCx7zg0ehUTULg1Sbjf7B3 bmYxa3uOWU3c6JEfm688BOrfvQ408WxzlAaltnetch8hxuIyaWsZHowVrlkJSF1Ubv94 gxU5a21jry6TVt4cM7c0sepTPY/29yKzs25+i4OcfDVkyJBpPgBrjTnDajqDlwfVEaJO yy+w== 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=GybPNpowQosWEQ8Uz6Fnm0hdyGhsMXH/2kYpCK7AZ8A=; b=T2Q+nAPPV1zEn9AlhIj4hokq+9PSmtDisNeslcVipE1KKmywZ1Z6GY4vtEb8z07bqe jQOVmvwMzV6Efnvmwn9dgSHG8yR7Y9H9Qmp6vPfRZjeZgwv7FtiHbnPXeQ/SVBLdBRpl 70pbn7+SE88j6IddYTpgTafBR5Ze5BKmEUstTAJdwxJ5ypFCgkbcDNE78yuLa5aUYVg7 O91CkGsUg2t09X++FsLZ3xzqSa98TJiREEz+CONAEE5ltnA4Eb9VMPl16wxSnLKGu5MF yUCHhSeokKq9oLKcN1rPAjNQM32C46XkXTfYogyWfpRm832TK5PXDhzNRjHWmmfAg1Gp 3iUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=V11bvIeM; 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 p14si3552192pgf.52.2018.11.29.18.23.45; Thu, 29 Nov 2018 18:24:00 -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=V11bvIeM; 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 S1727026AbeK3Nae (ORCPT + 99 others); Fri, 30 Nov 2018 08:30:34 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:42431 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbeK3Nae (ORCPT ); Fri, 30 Nov 2018 08:30:34 -0500 Received: by mail-vk1-f196.google.com with SMTP id y14so927374vky.9 for ; Thu, 29 Nov 2018 18:22:55 -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=GybPNpowQosWEQ8Uz6Fnm0hdyGhsMXH/2kYpCK7AZ8A=; b=V11bvIeMPvxfWjQFyrZnfcEnW7Z9UkP/RrQ5HyOEqG7JZdZyqLwVgIEKmeQXKogNFa Rcy+G2Oah5ZbrD2ss8PTvBg4vEgLlcsijqRuA7CX17uv+mWG/F7765vsWoQ3/5qI3eB0 tDqJQbei2uc+iYCX3h+aQbq2ZkrqO03vceZeo= 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=GybPNpowQosWEQ8Uz6Fnm0hdyGhsMXH/2kYpCK7AZ8A=; b=JXyBVziGwuom35yLV8Uik7PfpgcZEKQGbbJxSb/bBOYduo/jg3l9ABNljqkib8syC4 TZw0fk61u44JfOk4z4fxoOgdW2bPoJ/OqOmCCce0WqWw+GB9HQU1NHm4H0tD1e5do/Q2 gtp5UxzgUIqLRWrE2kWdzy9KLkK1bKtt9CuRZGpKnzHwgr1s8DhbBSmJXA6urWuheSso qYrzzJENkU9hHNOu2MNwrRHuDYaA0V7dNxh4fN5xz1tPfdBxcoHuVuBCsM2FLOSOmnxU KvO9nSoTHJDnnbo6SgYuU1OpwsQHCS3rdnT7Mph88AmdEYkWkiocGVsOSCk4elS+p7eV HAQw== X-Gm-Message-State: AA+aEWZXhWAId4l/kJmdaYPGupEWwVWN7ZwrwTBNFsUiFS5RKefrPQPz aAnOtfh2z2M55hIsAZzYW6SVer2XBbU= X-Received: by 2002:a1f:9042:: with SMTP id s63mr1695357vkd.17.1543544574772; Thu, 29 Nov 2018 18:22:54 -0800 (PST) Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com. [209.85.221.176]) by smtp.gmail.com with ESMTPSA id n200sm630828vke.44.2018.11.29.18.22.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 18:22:53 -0800 (PST) Received: by mail-vk1-f176.google.com with SMTP id b18so939082vke.2 for ; Thu, 29 Nov 2018 18:22:53 -0800 (PST) X-Received: by 2002:a1f:1881:: with SMTP id 123mr1748214vky.40.1543544573175; Thu, 29 Nov 2018 18:22:53 -0800 (PST) MIME-Version: 1.0 References: <20181130021840.75861-1-ryandcase@chromium.org> In-Reply-To: <20181130021840.75861-1-ryandcase@chromium.org> From: Doug Anderson Date: Thu, 29 Nov 2018 18:22:41 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] tty: serial: qcom_geni_serial: Fix softlock To: ryandcase@chromium.org Cc: Greg Kroah-Hartman , Jiri Slaby , Evan Green , 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, Nov 29, 2018 at 6:19 PM Ryan Case wrote: > > Transfers were being divided into device FIFO sized (64 byte max) > operations which would poll for completion within a spin_lock_irqsave / > spin_unlock_irqrestore block. This both made things slow by waiting for > the FIFO to completely drain before adding further data and would also > result in softlocks on large transmissions. > > This patch allows larger transfers with continuous FIFO additions as > space becomes available and removes polling from the interrupt handler. > > Signed-off-by: Ryan Case > --- > > Changes in v3: > - Reworded comment for clarity > - Fixed mips compiler warning > > Changes in v2: > - Addressed nits raised by Stephen > > drivers/tty/serial/qcom_geni_serial.c | 56 +++++++++++++++++++-------- > 1 file changed, 39 insertions(+), 17 deletions(-) Looks happy to me now. Thanks and sorry for misunderstanding how "active" worked on v2. Reviewed-by: Douglas Anderson