Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2958097imu; Mon, 19 Nov 2018 08:37:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/WJgvOlmLs4501J7nfuDbX8A3SVb9zLY+wY0nOPxZulAa8kif4e8xobGZV+Hl05p4bcPeO1 X-Received: by 2002:a17:902:76ca:: with SMTP id j10mr6677656plt.144.1542645442369; Mon, 19 Nov 2018 08:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645442; cv=none; d=google.com; s=arc-20160816; b=RikB4B/mXyu0xRw8TXtFg2Bw242t7Qz/oYVMgX42vEZzcN6Hpip/V14B4E46uQ6YVG 6T8ekm6jQiAbg6Elv8cZsdWfueoqqe9QSpWnyj2gcbcRoYXvkzWkXk2G7D4utTEU5O7K bTssdp8tUf9Z2Ex123nUCbDp5G1TLDyo98IzHsxSLAUy3lvKq4Q5MC9viS4VciDU2auF GMYFw5waiCxik5VRYoGUbtgPhLFj//r+4i8R5UTF0EDZSWQCu8VRQ+geIqasAXsqi3nK /EOoJ49sYtGX1B27OFd4AvUXRDct9H3yBTG/DmVZ6z8NvlfnDE1juxOJpoghwjB/dF1/ cJ8w== 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=8iFQkPXB0zRk6wglFQVj9tILRQF3JecpJJgQIrzLchw=; b=nto54oDh3Lyy0oGTX+ojFtqUxDLQ9KAWhgnVwunfMK3vDYh/ptBsbXFld0mLpNeL7f OrzlsrqwUW2CS/SIdVH2mDYeG1ja14ryDFM3XSxkAN6rNphWicDHxdKpU7zWxMsLahnU TkO5XjCHbK4vBdjI9WQBMt4XfXHyl66JYAR8likzmEdOyn/A6alecRKYT2WalUVrO6aZ FdsvvAY623RxGLF081hcJMig8qiZV8UysvUSoL37uB5JwQn7WUDknh5h/L3MoYJ5RXNY vg4QTbU1fy/RVZcVdxdvQdyNfhw8Ywo8HpQq7by49GDbNul3pJnY+w+1tiBf0LF+d7XF A/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IBorGXLh; 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 66-v6si16497007plc.224.2018.11.19.08.37.06; Mon, 19 Nov 2018 08:37:22 -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=IBorGXLh; 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 S1731384AbeKTC6d (ORCPT + 99 others); Mon, 19 Nov 2018 21:58:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:57624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729995AbeKTC6c (ORCPT ); Mon, 19 Nov 2018 21:58:32 -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 5AE7C2089F; Mon, 19 Nov 2018 16:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645264; bh=5vwSHao9GXB7H7ZDIJoWoKKfOkvhLuDXNj5CUGhYzkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IBorGXLhfMhekCCtQl5k2vlmHwlt9k/iWO44x+LfFxpaCYcqOTFk6ylfTBcnLhD54 TVaEDYuqVjxiHT2iLI3Cb49aZExTWv6TenRaB2DgYlVJjFKMJnwSoz2T0n/z2Mq65x xdKLovRm2Klc1/ZYZKC6tUM3Z0h23ykTiOySH5O4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , Laurence Oberman , "Ewan D. Milne" , "Martin K. Petersen" Subject: [PATCH 4.19 097/205] scsi: qla2xxx: Initialize port speed to avoid setting lower speed Date: Mon, 19 Nov 2018 17:26:44 +0100 Message-Id: <20181119162632.920603824@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit f635e48e866ee1a47d2d42ce012fdcc07bf55853 upstream. This patch initializes port speed so that firmware does not set lower operating speed. Setting lower speed in firmware impacts WRITE perfomance. Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery") Cc: Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Tested-by: Laurence Oberman Reviewed-by: Ewan D. Milne Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_init.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -4714,6 +4714,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vh fcport->loop_id = FC_NO_LOOP_ID; qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED); fcport->supported_classes = FC_COS_UNSPECIFIED; + fcport->fp_speed = PORT_SPEED_UNKNOWN; fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev, sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma,