Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2648699imj; Mon, 11 Feb 2019 06:27:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8sNYCk5kmIntWQSKAzfGtbUleQwALobRV8M6MxbiP+Tkaerr24cd8+VTp/hO2AxQK8Gf4 X-Received: by 2002:a62:b414:: with SMTP id h20mr16992210pfn.252.1549895228104; Mon, 11 Feb 2019 06:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895228; cv=none; d=google.com; s=arc-20160816; b=LoSj1ILnY3Z0z506F6IJF2x4GX+3E2blZAG+R09Shz+InBF638Be95FfQSiXFne+lW KXFwb4sRR2l1Q0AKOjOR/YJ3RNvmm0PVfd+2jDXtBWveJlpW2m07S5FFgeePsveP6Ki5 wKTqqVX62LfjV2g3e9achVQobbau9JGIvb1aaCdPbZ5qLKoAUT6lAvSiCLEqXVUOt9+P 6cNJcnwOhp/+wmmDHo3di8FPiwAy3j6XCayhgV7aC0vKtHGewcAEYlJGmmeW3ruNstwN PabjKchJ5N7AvDKcdRCerMouIVzhhwr5f0OlbQhfsGLX9r7IiUwbNwZOHNnC4RsqJizj YDFA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IUFqwcVzF0qdvwvms4rbfvjxo8gl+HN1Jrd6lSgq5iM=; b=UgXV/T7o/qWA1W0nQ5xJyDgDj6ajWV9P+w/qH/yxK5cd2NOVgJRtawt/Rp/pr8UCyV r9sWUyCmCR82WyAY3EaTSzxP0I6ap3dnm70EzD+iWJ+QwOMnu7KzEWFX1EvmIqzhLuAf yYEdtRSwHQOJ3M8BY6YZMZWpbB8BsGrV9tHALSXXH28tHec+ieSk2++estBtdVh53JBL SWGJxH4SPSR7aMcnhJUE0IKrotsSOAecf0TAlrL0nLBOiEUuolnYtvCqokjjkV/g5WcI Q3VaaGAWTnAT1stm+NPM75IQdjpxDC/yEOzU1W9tZJml63tKEzJ7u4e+dmzuraIBGR1M EKkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAjL8bOG; 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 n13si2667967pgp.307.2019.02.11.06.26.51; Mon, 11 Feb 2019 06:27:08 -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=HAjL8bOG; 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 S1728921AbfBKOXE (ORCPT + 99 others); Mon, 11 Feb 2019 09:23:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:56020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728887AbfBKOXB (ORCPT ); Mon, 11 Feb 2019 09:23:01 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1B92920838; Mon, 11 Feb 2019 14:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894980; bh=bGWQvt2vJHuXOPBWevXYSK3eq8xODly7B/b5Amv0adE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAjL8bOG4BVPsbFmDTDU4VI9neO8NSbh2U2HN2v44EUZFwStN2fk6ju4P2JVB4QXG ugc4rro1kAP6LBfXkZ6TgNhLZ3e9PXTogieF0OJBrwfsYsrQgPRasUa4Q/aV4IyOwC NRMT7vSfNxEZ88NunDe7a+3phJwur1caM3ee3A2M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiang Chen , John Garry , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.20 044/352] scsi: hisi_sas: change the time of SAS SSP connection Date: Mon, 11 Feb 2019 15:14:31 +0100 Message-Id: <20190211141849.105817332@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 a369450a1fa7..c3e0be90e19f 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -494,7 +494,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); -- 2.19.1