From patchwork Fri Nov 9 14:06:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 150651 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp212647ljp; Fri, 9 Nov 2018 06:07:20 -0800 (PST) X-Google-Smtp-Source: AJdET5dRxwZnUwZ49jKgrcLJ9RG+IV36FGkQgTIMdfz5uz7FGz45TV2qOmpPKN4CXtUMgN5uv6wN X-Received: by 2002:a63:585c:: with SMTP id i28mr7637911pgm.178.1541772440122; Fri, 09 Nov 2018 06:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541772440; cv=none; d=google.com; s=arc-20160816; b=tD25TYOR1Q+A06AoaRObzBSVBSP1TwZm6FQjw8LvpOeg4o5kLRwv+4IgoJq/+wwp8D HR/kPhcQXDnLWe7T4oPevjogJoCr2IMJPyTm34S2aLhKxnZDpGqdD8CgGJrDfJz5l3Jq 1jEsY15jebsSRgad4HEUaiQfg933UFkU1rJOsiwGIef2rzqUg/tbW8z/Q8sD6H56XXuf rEKhs18K00FkQHV9nRcJwVsL4JVLqNQelkeoHtJktaHvgshHbSLPeMUJm1LI9yHNH7cP 6LysAaXU630zzF7iR7I+jLujQ9N5wczMDZ/4g059hF/RIF3dXhHUItdCPmMTnDBMS6MN LsHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=6vezAt6QPraC8w/apFmg9eHDF5aLYCmFFqYeXurs+jY=; b=SHQIjYLGelEuu2vpoTxZf2p/bKtyfvLosljnCuCPXw/bziOCX4++N4i1uzvsZ3DGiU lpffApIAB7FJIS0QgNCXhMHS+bbxVricuvLUOA/0iWC6b3Y99gubbOuVf+CI7TUWAsFW gmtMMIXHV41wRLevEfwnSQaJLZFNx0FR3LYZxv/uWSoIh6roWR3wNK4ReYiwxyBiPicx 0BOpydEzc2PYA3U56lEYgSuFNTcvVEsjDKpOR1kF623gruf0HEYWkqpU4fG8L875eL9T EFqH5H518LWvnPhbqXhh5Sjf1YJNDoZKubjKAUGMZNKxfuxzIZTs2OQgxHe7xtrWOmFk 1h9g== 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 l184si6806759pgd.523.2018.11.09.06.07.05; Fri, 09 Nov 2018 06:07:20 -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; 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 S1728265AbeKIXpw (ORCPT + 32 others); Fri, 9 Nov 2018 18:45:52 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:47752 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727988AbeKIXpv (ORCPT ); Fri, 9 Nov 2018 18:45:51 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EAEA3DB3921BB; Fri, 9 Nov 2018 22:05:04 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Fri, 9 Nov 2018 22:04:56 +0800 From: John Garry To: , CC: , , , Xiang Chen , John Garry Subject: [PATCH 5/5] scsi: hisi_sas: change the time of SAS SSP connection Date: Fri, 9 Nov 2018 22:06:36 +0800 Message-ID: <1541772396-161814-6-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1541772396-161814-1-git-send-email-john.garry@huawei.com> References: <1541772396-161814-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen 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 --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 0c3fa43..a677296 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -500,7 +500,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); hisi_sas_phy_write32(hisi_hba, i, AIP_LIMIT, 0x2ffff);