From patchwork Fri Jun 10 16:46:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 581370 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C9A9CCA47B for ; Fri, 10 Jun 2022 16:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346114AbiFJQwv (ORCPT ); Fri, 10 Jun 2022 12:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343590AbiFJQws (ORCPT ); Fri, 10 Jun 2022 12:52:48 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C761FF07; Fri, 10 Jun 2022 09:52:46 -0700 (PDT) Received: from fraeml744-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LKRkX0vl6z6855X; Sat, 11 Jun 2022 00:49:08 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml744-chm.china.huawei.com (10.206.15.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 10 Jun 2022 18:52:43 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 10 Jun 2022 17:52:40 +0100 From: John Garry To: , , CC: , , , , , John Garry Subject: [PATCH 0/4] pm8001 driver improvements Date: Sat, 11 Jun 2022 00:46:38 +0800 Message-ID: <1654879602-33497-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This small series includes the following: - Rework how some shost values are set - Fix a longstanding bug that the driver attempts to use tags before they are configured - Stop using {set, clear}_bit() - Expose HW queues Any testing would be appreciated as this driver is still broken for my arm64 system, i.e. just broken. John Garry (4): scsi: pm8001: Rework shost initial values scsi: pm8001: Setup tags before using them scsi: pm8001: Use non-atomic bitmap ops for tag alloc + free scsi: pm8001: Expose HW queues for pm80xx hw drivers/scsi/pm8001/pm8001_hwi.c | 5 +++ drivers/scsi/pm8001/pm8001_init.c | 73 +++++++++++++++++++++---------- drivers/scsi/pm8001/pm8001_sas.c | 10 +++-- drivers/scsi/pm8001/pm8001_sas.h | 3 ++ drivers/scsi/pm8001/pm80xx_hwi.c | 46 +++++++++++++++---- 5 files changed, 101 insertions(+), 36 deletions(-) Tested-by: Damien Le Moal