Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2524969ybi; Sat, 1 Jun 2019 18:33:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT+J15Kd/Njf7mC0uzrHZOtDwrKVlh5SJoT0aTr4e69Xm7rI6D/J4V8K3qIlNsg/S8YMXR X-Received: by 2002:a63:87c8:: with SMTP id i191mr19485554pge.131.1559439181085; Sat, 01 Jun 2019 18:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559439181; cv=none; d=google.com; s=arc-20160816; b=0nMDjsVFz7+FXD0w72iRduxNas2PS4b7usJNm0DMtDENeLhxnMzrTheT2JCHe40PCe sytDo3z+1m/vMMMh0mZxnBw8TKmIN7cBD1UPaIhXLNCmHZJN+xdM+gp24Uio/oVeDtiZ +VuRkLx4ZoFsyuG1GQjfHb3ImS36StKw+RbVfmE4Ocg7yP+iiX6H+tmJXkN2/dbGVcWB AfRzMtGnoDIb3YCshhFFQD1P/W/Z0DqnmMHCsH261LO1lzpxQK6Xaw9RYY81X95USjis NEfHGIlu5MyrcVLF5QECJ9VbZkHkkrzc7Kx8PI78W1/KcZsxInNklsG5lppgF8wCZjKz SnQA== 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=SLwfYKUi1Sbx38yy9iP18t8cjnc9ETVtOhYA1v0uNayEL98b/LAY2Dm2nZzZlkiH6Y lPgF/k4KLqMNPcgeJP/zYtz8Xf/RwGxDrmxLGPVZtdjcYg49+bLK7cg17Dhlf1sFOM3t +3FyGTpViDs7mBJjflGsxdt/xlMxM0h7Me2aBJ2VIqw+3ojjCrmE1UOB9q8zjo0ICQ5T Qq6zteXb7+DfeIMY/28Weqqzy5ixKMH3sMq9t+XGsvtAqDBRwLwUBj8OA3gnaBoYO/XH Zq61ikdvXfZFgXN5euOXsIgs0hJaO9cAxwiYFmmIjW7+eDBwbiE174eyPX/ilbkuSN+k I3vg== 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 140si13852196pfx.198.2019.06.01.18.32.45; Sat, 01 Jun 2019 18:33:01 -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 S1727038AbfFBB3n (ORCPT + 99 others); Sat, 1 Jun 2019 21:29:43 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:34602 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbfFBB3K (ORCPT ); Sat, 1 Jun 2019 21:29:10 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id C333D27D4F; Sat, 1 Jun 2019 21:29:06 -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: In-Reply-To: References: From: Finn Thain Subject: [PATCH 1/7] Revert "scsi: ncr5380: Increase register polling limit" Date: Sun, 02 Jun 2019 11:24:12 +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