Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2483642pxj; Mon, 10 May 2021 04:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0iLUg3j75/AB/NU0nIZtfd/RybxLrovU2zuQF8IhGq2PKFVGG8cqMu6ACw204opDNh5xh X-Received: by 2002:a05:6602:718:: with SMTP id f24mr17076541iox.59.1620645102338; Mon, 10 May 2021 04:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645102; cv=none; d=google.com; s=arc-20160816; b=AT2MZXa9j18bhTTEKz7ih9I4J2gSck1LgzlR7D+zf/N4Y/OV9v7FDVoWmSADBVdvZR lr1vozYUMoI3N9uEp1r26+CDVwoXkBi2klxjq9MTqiouoCtwG374iPXO9R+4rInyBQ8B VUyDutrfIQiZ+9ey5DsVeHR0d4yB511gR4tjUXH0J0tztKBGS343/kMIWCcLxOXmciH0 /3h0JYq8R/suzYh9dS8ULNe8UrlA/MlBvPon6iPelDqE20wajZJJqTDoIYcw+nOoSqv9 ydjEbrfdacoDxZuOAmW4gkGoBfjs/YUp/PKnWYzTq7T5O2kdnd1hGB2XmHu1d1dh9fcA /N8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4bNwmQs7gRWwxPGsKlnfVdFh7WnSOskLnxjzewCMYqI=; b=OPOwutw4zNeOSoRvNlkVeYntmM7pG6zrtKDyiPuII1c3Z4ukpXOn/FgbvzYwUWb0yY c7TWbDZYyF5a5d1ZCswTO/0QeOmvtgmZqwjkHX9AfaQRgqBRyt1KVZcnfRWi0rIMYzbE c0m3MBLA6rhkWyLtpyQIoc/ujysnYzjXFFbooOPIlrkMFaQ3xqDHpG7NmeRoYYUdtPtl wpM2huphMN7bxy1V2jALUrMZWKrqCfpQocIQWGTAE9+dGK71oF/GhxDZllkJb5I5Us3d Gx1Vo1YpU7drZPVr2dMUDt3QXaAbyD1m1a+aBJo5kT9HVzSGP8zJrCe1aaW7F5PCnnfK n3+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ot+/gdWs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si18670437iot.35.2021.05.10.04.11.29; Mon, 10 May 2021 04:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ot+/gdWs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236872AbhEJLKu (ORCPT + 99 others); Mon, 10 May 2021 07:10:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:41710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbhEJKuM (ORCPT ); Mon, 10 May 2021 06:50:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8E1A61A06; Mon, 10 May 2021 10:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643158; bh=5iIoh1B11K02YgNaWLf9YUIRxOgF4N84+f6r312MNU8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ot+/gdWsOrn2IAK3Bg38Kcqh7Np22NYBGWnEL6y390PNludmspt7Nxi6JNHAUF1lA lN2cleG5zY9WS4tfaYnOKruxCKP3m/J1LPYdRDCcKJXYp9XqQSpQci9+iuDw9A3KuS F0GzoIaXXp/cV6Ra+WQXgKNYzAMqMyDi0nRMXR8I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ming Lei , John Garry , Scott Benesh , Scott Teel , Mike McGowen , Kevin Barnett , Don Brace , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 166/299] scsi: smartpqi: Use host-wide tag space Date: Mon, 10 May 2021 12:19:23 +0200 Message-Id: <20210510102010.432399914@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Don Brace [ Upstream commit c6d3ee209b9e863c6251f72101511340451ca324 ] Correct SCSI midlayer sending more requests than exposed host queue depth causing firmware ASSERT and lockup issues by enabling host-wide tags. Note: This also results in better performance. Link: https://lore.kernel.org/r/161549369787.25025.8975999483518581619.stgit@brunhilda Suggested-by: Ming Lei Suggested-by: John Garry Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Mike McGowen Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/smartpqi/smartpqi_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 9d0229656681..9300a677510d 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -6601,6 +6601,7 @@ static int pqi_register_scsi(struct pqi_ctrl_info *ctrl_info) shost->irq = pci_irq_vector(ctrl_info->pci_dev, 0); shost->unique_id = shost->irq; shost->nr_hw_queues = ctrl_info->num_queue_groups; + shost->host_tagset = 1; shost->hostdata[0] = (unsigned long)ctrl_info; rc = scsi_add_host(shost, &ctrl_info->pci_dev->dev); -- 2.30.2