Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2954218imu; Mon, 19 Nov 2018 08:33:56 -0800 (PST) X-Google-Smtp-Source: AJdET5f6Op8OopnoH6iSOpv2OErW+Cl2f91G+Lcer22SyorEaP1DVWphWY9VudmY5HQbWpCBGmWy X-Received: by 2002:a17:902:9a42:: with SMTP id x2-v6mr15103483plv.126.1542645236882; Mon, 19 Nov 2018 08:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645236; cv=none; d=google.com; s=arc-20160816; b=STYjavGCf+uUR1WeKB2C780qsMQu+vJpbaicZSCcA/ldC5omnMWWXtskFSF3wQei7/ iqktXCa5taxRoYvueDwIsQ74mqkK6RwRdUp41wp5RlfJwFML52lJSphWafPFAI/mGEWa mBsnnWqhTFRIXMTsj/Y+52PzBfV2YhkjxekSjK32ahm9+DLqoiMOZr4GYxosIMkwuhzM uCzTEXIJKsuAnhkow4LMYGaiYiTYhvixXEbbcRXlTzUlpKcmUKRN12moGfRSsmIGXRtQ k7cODk/BMjQdlxmk9FSvBj96CH/oAjApOSPVjNzKl/zH32XQ3ybY0zOG76Q5ASsXzyEk ZluA== 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=OjNiCeELOV81vScN00XTRgX7Ki8bd45SAMDKNVetBeU=; b=iXt4excMwcMtE2rlOiyHJNxNJn2J6W4/di7FewOBvcLVaOCHm3sZauaNN0IyYFyz4H 0Myko6ZLo+w4twRSkVzrCSrVrF96FiM5gN6/Ye43GWAXE5U1W4XWUApWiQJyamok+FXL FflADPjeM4NK/4WgMxtr2iAqUo7nKX34Qd+FSPtVLtme+NIu1GVQobqAu4LvutFwEPeE OYMbn1Phz8EyUzMS345KA6vuGqErq/GIBsZTKlrKG+OxWYqyg0yStDfyYnnv3DCUQQHi jSmBbw1NvkNjY2KvZcybigH3JYTHxBeBHMFguCNXrUWivybBCwSEicEZsxAdifYX2IAq j/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vGCN2vMh; 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 n1si38272729pgq.36.2018.11.19.08.33.38; Mon, 19 Nov 2018 08:33:56 -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=vGCN2vMh; 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 S1730760AbeKTC4d (ORCPT + 99 others); Mon, 19 Nov 2018 21:56:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:54786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730060AbeKTC4c (ORCPT ); Mon, 19 Nov 2018 21:56: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 C8B122086A; Mon, 19 Nov 2018 16:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645145; bh=2MO8nhvogGsWeI1u7z+Nu/YH0kib2l3hDuqenAgzqMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vGCN2vMhGmRa0xfwVaoyrOQGDlW8XEiA0cY4uR0ihQ8O8NSMmfOj1NHaFUaMfh2RZ h2WHF+chNTswTI1U5aYOCu/WuYXwocBQMUnpy7bn2tWiybX89a1ZdMRmIIK7HsDgnF PHYjLJLavTceI5fzYe8lAgjC31wlp+2t8u1oeL3o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 4.19 052/205] scsi: qla2xxx: Fix process response queue for ISP26XX and above Date: Mon, 19 Nov 2018 17:25:59 +0100 Message-Id: <20181119162626.552621377@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 b86ac8fd4b2f6ec2f9ca9194c56eac12d620096f upstream. This patch improves performance for 16G and above adapter by removing additional call to process_response_queue(). [mkp: typo] Cc: Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_init.c | 2 -- drivers/scsi/qla2xxx/qla_iocb.c | 17 ----------------- 2 files changed, 19 deletions(-) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -7142,7 +7142,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vh } icb->firmware_options_2 &= cpu_to_le32( ~(BIT_3 | BIT_2 | BIT_1 | BIT_0)); - vha->flags.process_response_queue = 0; if (ha->zio_mode != QLA_ZIO_DISABLED) { ha->zio_mode = QLA_ZIO_MODE_6; @@ -7153,7 +7152,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vh icb->firmware_options_2 |= cpu_to_le32( (uint32_t)ha->zio_mode); icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer); - vha->flags.process_response_queue = 1; } if (rval) { --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -1526,12 +1526,6 @@ qla24xx_start_scsi(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr); - - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); spin_unlock_irqrestore(&ha->hardware_lock, flags); return QLA_SUCCESS; @@ -1725,12 +1719,6 @@ qla24xx_dif_start_scsi(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr); - - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); spin_unlock_irqrestore(&ha->hardware_lock, flags); @@ -1880,11 +1868,6 @@ qla2xxx_start_scsi_mq(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); - spin_unlock_irqrestore(&qpair->qp_lock, flags); return QLA_SUCCESS;