From patchwork Sat Sep 24 06:29:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 12987412 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 CA4E1C6FA83 for ; Sat, 24 Sep 2022 06:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbiIXG3O (ORCPT ); Sat, 24 Sep 2022 02:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233247AbiIXG3M (ORCPT ); Sat, 24 Sep 2022 02:29:12 -0400 Received: from esa1.hgst.iphmx.com (esa1.hgst.iphmx.com [68.232.141.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCC4121115 for ; Fri, 23 Sep 2022 23:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1664000949; x=1695536949; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=ARt+xybw1ZTRIuNWQEZHUMf2M7qRGuMbQgKColji1wY=; b=Z/rvPIBCf0kieNimHenNh/Qt2UWmfRTOrkic1D9rsvGKWYZCc+J5ZKoo oWeL6m8WYV0BcLZe2EIxyrhwy3rs8b/sjuB4LMLhnhqFi1ngilb9sQUvc fNdn8pj1H4KWpuTeFm/45LsQHZOUiAdalw5xZG8+XHHLVz8mARqfJRxk+ /nL5JkNk4VsxHGRejlzgANbsePGA/Hc2WoGtv8q5hqJjNVBAJbVmO4UgZ RF17niGpAfTQDdtr2S04/ezdn+TPLNdS8nyqYNiutBzhF4b3QnlP5P+ge 6j6rT5zB9Zw3qjiUV0ZZTBQ/7DbmRpfJkpbb8PVEqdnnOkWXji6clIzpN Q==; X-IronPort-AV: E=Sophos;i="5.93,341,1654531200"; d="scan'208";a="324269410" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 24 Sep 2022 14:29:08 +0800 IronPort-SDR: aQ8TvZqITyZbxVcjkS36O+Om0G40knQBP7ZKLyzaBgs35a6ZSg5hlYE0k8K3kW7gyZBi0P2zmR kC5yTioQj87JY1Dda/FTxVaZ9/dyBM8HuM3SH0gYYclHWSnrtwSef1ybwHZrc0S/+iN3UVoxrk 4QiaJHdWGD2L/taVGL6lzQYdLcWKRa8BdKwszfNFcPzdodXakBvVwTpwMIaHy+aPldEDegleFY zlyLXWzaULSLemNK6lYZ6x9BEWVCqd64eFFYaJlRQLib6WJPq1VEV8pvtFzvzG8BckT7OrZfSi Xrndeazf0fELMry8O1i8xq0+ Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Sep 2022 22:49:10 -0700 IronPort-SDR: w5q0uhVfgk7p6798ymO2F1w42gP+9MPqCqUFxBecEDUgXhG/xeSze6AmbQJ6exbQgz89DLfo8D O3ez4xxGkHg0qY2+IHTRaLWuFE8CVKnht7kZqWu/44RQBuT5Ekud60Zdy7iiu5CFCBzLwFkRh/ ja0iCwRceQaykoq5YO/ZCgQbvfcL73NTGHQ2RrXcLMvEsyitWTxcOIRo3xsZ1oBR0gHFJi/ZMs o36hOx1fxWhV4p6UacKGDdSBtfp+JuN2W3/meW0I51HvOTmCu6vRWtMxmi2kmjExNeWnT6qiu6 RUI= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Sep 2022 23:29:10 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MZJyF6LDSz1RwqL for ; Fri, 23 Sep 2022 23:29:09 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:subject:to:from; s=dkim; t=1664000949; x=1666592950; bh=ARt+xybw1ZTRIuNWQEZHUMf2M7qRGuMbQgKColji1wY=; b= XsF7CmD+1FeSl2n1M8++3d+wbATynS9tMR74JYsjhu9mZDDxlhU8pK1JETlOu/oC 6yHubwUWajPfk84eBZKr0l2LFK1CurmOQVMSuvHk3M9zIFhKvrZYbUkgHSqk5qc7 3kQidKIFcEtIfy+V2uJyfnVPYOcnfPha9tfC9F1BG4nMLdqILn27DlRQzQ9lZ1Vf LxdhiLZ2oXu1KHq7vmdX3/+PEEhhPk/pmkx3scrMnO2e9LWhsnt5mYniyENJsKt5 gSxVYybfRGhI4Fqq2J6i0TRxk3gOv3ciF0+mqeaXVVu4bBTV+vQ22dYNckHbMKfh NjCmJhN0apPLFWy3ov1nAg== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id b3iCE2MqRfbl for ; Fri, 23 Sep 2022 23:29:09 -0700 (PDT) Received: from washi.fujisawa.hgst.com (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MZJyD5Snvz1RvLy; Fri, 23 Sep 2022 23:29:08 -0700 (PDT) From: Damien Le Moal To: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, "Martin K . Petersen" , John Garry Subject: [PATCH 0/2] Fixes for ATA device queue depth control Date: Sat, 24 Sep 2022 15:29:05 +0900 Message-Id: <20220924062907.959856-1-damien.lemoal@opensource.wdc.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org A couple of patches to fix maximum queue depth initialization and control for ATA devices used through libsas. Damien Le Moal (2): ata: libata-scsi: Fix initialization of device queue depth ata: libata-sata: Fix device queue depth control drivers/ata/libata-sata.c | 24 ++++++++++++------------ drivers/ata/libata-scsi.c | 13 ++++++++----- drivers/scsi/libsas/sas_scsi_host.c | 3 ++- include/linux/libata.h | 4 ++-- 4 files changed, 24 insertions(+), 20 deletions(-)