Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3623849imu; Mon, 28 Jan 2019 08:02:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XDfGy82JBLfEcLCvbh3xRX4BlX4nKz+6Bl6hNl7CBMsIyKgp9blQc1stmCstnvMNsbDUh X-Received: by 2002:a63:a553:: with SMTP id r19mr20197770pgu.53.1548691333407; Mon, 28 Jan 2019 08:02:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691333; cv=none; d=google.com; s=arc-20160816; b=Ai4u+pvNfBs298+7vk7m5hUy9AIrYwictx/Jp6lTNhqSo5vLPPoyqmFqhOrjkKq5yj 54BxoPrfEI97vSFFI/Nz3IJobtiCfNvk3R6dD/X0BnIB678UyZgY5Me25P9TGRuvBrQF JHRJXHqpdbYLBmBvQTUVzXRl+5kfqzG7RLik2npSfgIGRB30g09ZImNQdJyf0/frhsa+ OCg7LwSlDJ8D4JU7tC0Qqv1eO2ypCJl+8igGROQUg1xtJyNGu33BOlXBq1D6dfLUYgO9 VYtctsF2+8scQH7ZP+9WmeqEap1fj0Ek66g1VXjcaRmIhmoeXeDyj3KwTFIfVZaxCsD/ O/jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aGXyMKa425RP+3/jhQcZs6uKvzerN7lmyr7PRbaF1DQ=; b=i6XV1G5TB/T9AK+sDZoTdMecCzZOhO7DnSaNRae3EbCL5QJR9K2cwbzIw5lguqick5 rXEdybRStDcGddDDZPNmvWpMoPZdjq8T9gO0tLoYGvZPdSaglPp33tLJZxRPeiYXBAYX p9vlkNrWGfAEnaGTHtNddRC+U3Qq2gccn0oOE9lexFPmABKdEgKLJuw21ylvN30QGDty b/rYVrbMvHi39Kz+Zf8nry2GnKq6qXi2C3H6IC1bpk+hpih+GEcxELlHBhDyINoK0YhF OlWGH9Vh7JSLgTLUhI+1eXxPxOwAtP1hzl/yHADkpjaHX8SBwTQmpZEHnYcDyJcIJh00 blFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZpzzJ0Se; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w75si33403425pfd.55.2019.01.28.08.01.55; Mon, 28 Jan 2019 08:02:13 -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=@kernel.org header.s=default header.b=ZpzzJ0Se; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730586AbfA1QBW (ORCPT + 99 others); Mon, 28 Jan 2019 11:01:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:46596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730998AbfA1QBT (ORCPT ); Mon, 28 Jan 2019 11:01:19 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2ABB2175B; Mon, 28 Jan 2019 16:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691278; bh=mdG0bx07wU/Yo0PkNfyR67BVF/JdW76Kh7d2VO1RRsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZpzzJ0SeX4DlhuHjXLRpATTU3Hx9fBjXsBFgAiLbGJASCn6ynRFgRIZkvNpSvYftn QpyP+qVW0bMsAcmPYHGG3atM3ADuk1601vcBDTt5uSlDG0MRF4Cokb11gCwQkU63ML 8jMhUa9p4YsiGzHLYWH94erFjt53BOPvIWhFdRlw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Xiang Chen , John Garry , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 043/258] scsi: hisi_sas: change the time of SAS SSP connection Date: Mon, 28 Jan 2019 10:55:49 -0500 Message-Id: <20190128155924.51521-43-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen [ Upstream commit 15bc43f31a074076f114e0b87931e3b220b7bff1 ] Currently the time of SAS SSP connection is 1ms, which means the link connection will fail if no IO response after this period. For some disks handling large IO (such as 512k), 1ms is not enough, so change it to 5ms. Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 687ff61bba9f..3922b17e2ea3 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -492,7 +492,7 @@ static void init_reg_v3_hw(struct hisi_hba *hisi_hba) hisi_sas_phy_write32(hisi_hba, i, PHYCTRL_OOB_RESTART_MSK, 0x1); hisi_sas_phy_write32(hisi_hba, i, STP_LINK_TIMER, 0x7f7a120); hisi_sas_phy_write32(hisi_hba, i, CON_CFG_DRIVER, 0x2a0a01); - + hisi_sas_phy_write32(hisi_hba, i, SAS_SSP_CON_TIMER_CFG, 0x32); /* used for 12G negotiate */ hisi_sas_phy_write32(hisi_hba, i, COARSETUNE_TIME, 0x1e); } -- 2.19.1