From mboxrd@z Thu Jan 1 00:00:00 1970 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 8DCADE77350 for ; Mon, 2 Oct 2023 19:51:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238935AbjJBTvU (ORCPT ); Mon, 2 Oct 2023 15:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238954AbjJBTvS (ORCPT ); Mon, 2 Oct 2023 15:51:18 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EB7D9 for ; Mon, 2 Oct 2023 12:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1696276276; x=1727812276; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TIBMZQTTHUgKNdsHYDoz0vGdLaAa0F00TJwLFecov0c=; b=MHnzXN4AJR6wZRlQiqs+TdFFm1iHcBpmG40doSypViA1sb42sfFndvmd 8aYYkm5s3lRhvYkreS/MIydCOwge7PoCBixeKKjjXbXShp42eVL2SgmD4 gu6w+mapLfR0rFbB0Uejln5Wvnl3dVOhhEftRJFHVH5tFzsSuot37fqZD C9HFSHz8DrBjT7EQfW6pV+c7BQ0s53cn02BDuvB2ENX8mOjDU2CGRQScT dxuJQMUjbykNJC//VdPb6pCMTFJMkR5eeP8rjF50l+c33hGxsgE77b18X gMPQ/mdctnVWWLe5QtOwoPB50nJ8aZwhGsNXyYpsIdUwdB9X3gqdTEcuP w==; X-CSE-ConnectionGUID: wxLD4crfTBmP3fcAafztCg== X-CSE-MsgGUID: bdyVVJ7FRZ+41KXd7wV0iA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,194,1694761200"; d="scan'208";a="238286358" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Oct 2023 12:51:15 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 2 Oct 2023 12:51:14 -0700 Received: from brunhilda.pdev.net (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Mon, 2 Oct 2023 12:51:14 -0700 From: Don Brace To: CC: Subject: [PATCH v4 4/5] smartpqi: add host attributes Date: Mon, 2 Oct 2023 14:54:03 -0500 Message-ID: <20231002195404.153182-5-don.brace@microchip.com> X-Mailer: git-send-email 2.42.0.296.g493f462273 In-Reply-To: <20231002195404.153182-1-don.brace@microchip.com> References: <20231002195404.153182-1-don.brace@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Add in some host level sysfs entries: enable_stream_detection - Send RAID 5/6 writes down the normal I/O path. Allow for full-stripe write requests. ssd_smart_path_enabled - Indicates that our Accelerated I/O path is enabled. (AIO). enable_r5_writes - Allow RAID 5 write operations down the AIO path. enable_r6_writes - Allow RAID 6 write operations down the AIO path. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Mike McGowen Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- man4/smartpqi.4 | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/man4/smartpqi.4 b/man4/smartpqi.4 index c51405c8b9cc..c36eebf0ecd1 100644 --- a/man4/smartpqi.4 +++ b/man4/smartpqi.4 @@ -235,6 +235,65 @@ $ \c Adaptec .EE .in +.TP +.I /sys/class/scsi_host/host*/enable_stream_detection +The +.I enable_stream_detection +attribute is read-write. +This attribute enables/disables stream detection in the driver. +Enabling stream detection can improve sequential write performance for +ioaccel-enabled volumes. See the +.BI ssd_smart_path_enabled +disk attribute section for details on ioaccel-enabled volumes. +The default value is 1 (stream detection enabled). +.IP +Enable example: +.IP +.in +4n +.EX +$ \c +.B echo 1 > /sys/class/scsi_host/host1/enable_stream_detection +.EE +.in +.TP +.I /sys/class/scsi_host/host*/enable_r5_writes +The +.I enable_r5_writes +attribute is read-write. +This attribute enables/disables RAID 5 write operations for ioaccel-enabled +volumes. Enabling can improve sequential write performance. See the +.BI ssd_smart_path_enabled +disk attribute section for details on ioaccel-enabled volumes. +The default value is 1 (RAID 5 writes enabled). +.IP +Enable example: +.IP +.in +4n +.EX +$ \c +.B echo 1 > /sys/class/scsi_host/host1/enable_r5_writes +.EE +.in +.TP +.I /sys/class/scsi_host/host*/enable_r6_writes +The +.I enable_r6_writes +attribute is read-write. +This attribute enables/disables RAID 6 write operations for +ioaccel-enabled volumes. Enabling can improve sequential write performance. +See the +.BI ssd_smart_path_enabled +disk attribute section for details on ioaccel-enabled volumes. +The default value is 1 (RAID 6 writes enabled). +.IP +Enable example: +.IP +.in +4n +.EX +$ \c +.B echo 1 > /sys/class/scsi_host/host1/enable_r6_writes +.EE +.in .SS SmartPQI-specific disk attribute files in \f[BI]/sys\fP In the file specifications below, .I c -- 2.42.0.296.g493f462273