Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1776117ybi; Sat, 8 Jun 2019 18:31:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxamg3lZC88J5JTmTDx/9r/sVxJ1FAp8E/wvT0vauiW1Hydbwpwhwnmis+jc6YUKiVO2m4a X-Received: by 2002:aa7:8049:: with SMTP id y9mr12991773pfm.195.1560043877054; Sat, 08 Jun 2019 18:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560043877; cv=none; d=google.com; s=arc-20160816; b=0+BWH+fIzLjMOB1Z0PTFcEpFLxbmVMw1A4XGxSnsAHvDc0canheOTwjIdmnowAkLxW VHhfI33o31XYgRnGiVYy+WjMraed2xrNhHbM2/ogKzQrc5I6s9JEZcvsRkMGtEwMKzww mU4vtLPruGlTDci0AkKC/El80b+9U4YdAZO/nNx4lsvoQyjBrDBLj2cl+X75W7AtndIy cSlWzkHWMBN+zk9AfilY3cyQa+qOT6PwCffKlblEahWS0th5h0gxgx9f45p25oLlEOJZ 0sO0jb5WRm+7wmicLmKfOGCD8cz43XbmNdzZ+ROumt3ggKrn+NgXE5WC3nIGvpC7cMwq CX9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=SCVUWmNmf1fTWyYuJSbQ1kps5snhqaEDDP2G8JYNecM=; b=eUVSeLfo1clTRUp2Eg0zGWh7+DH4U34tZRu52/CwiUy9cVS43k/35klZ0KyrHV2HVp BKHUv7webKn9+WWiFLnSlzjJh62nIJ+UL9CHFCLZdZVoCSRooglvg4Si/v0ZksETXIyv cy02Y0PrHLv69tYXfzrjOKvJYcUGskWNDIOcwy4X/Vx61YxskIUXqd6qVPEpsi+6mtkW RC+hbGwxMJKE3yTBNm4UjAS+RDZGfnd3X6cvaf+pHYDzZZTk8UO6SCjkgvV2a/3TLErb 5OrqcqE7u3C1C5PwLtG911hnhKHyNIQw4LRTmGWkgumK46mZbIqkngwOuMOvacS3+Idu hdIw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si6011205pfn.188.2019.06.08.18.31.01; Sat, 08 Jun 2019 18:31:17 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727903AbfFIB0o (ORCPT + 99 others); Sat, 8 Jun 2019 21:26:44 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:59942 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbfFIB0o (ORCPT ); Sat, 8 Jun 2019 21:26:44 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id BB01E27ACC; Sat, 8 Jun 2019 21:26:42 -0400 (EDT) To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: "Michael Schmitz" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-Id: <6cf0ec0a917ddfcf39ea8c697c8d8f7d663e9db3.1560043151.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v2 1/7] Revert "scsi: ncr5380: Increase register polling limit" Date: Sun, 09 Jun 2019 11:19:11 +1000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 4822827a69d7cd3bc5a07b7637484ebd2cf88db6. The purpose of that commit was to suppress a timeout warning message which appeared to be caused by target latency. But suppressing the warning is undesirable as the warning may indicate a messed up transfer count. Another problem with that commit is that 15 ms is too long to keep interrupts disabled as interrupt latency can cause system clock drift and other problems. Cc: Michael Schmitz Cc: stable@vger.kernel.org Fixes: 4822827a69d7 ("scsi: ncr5380: Increase register polling limit") Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index efca509b92b0..5935fd6d1a05 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h @@ -235,7 +235,7 @@ struct NCR5380_cmd { #define NCR5380_PIO_CHUNK_SIZE 256 /* Time limit (ms) to poll registers when IRQs are disabled, e.g. during PDMA */ -#define NCR5380_REG_POLL_TIME 15 +#define NCR5380_REG_POLL_TIME 10 static inline struct scsi_cmnd *NCR5380_to_scmd(struct NCR5380_cmd *ncmd_ptr) { -- 2.21.0