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 58610E8FDB4 for ; Tue, 3 Oct 2023 19:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240985AbjJCTwB (ORCPT ); Tue, 3 Oct 2023 15:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbjJCTwB (ORCPT ); Tue, 3 Oct 2023 15:52:01 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A526E93 for ; Tue, 3 Oct 2023 12:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1696362718; x=1727898718; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4p8UKpYj8hrZwTphjCmnOK8twe0nStWOC48IJrtlsBY=; b=Q4VmV997RtU5Eb+XZ19UxPqxTEYNV0PeoGFpE0ADwTdC7eN9ucaUuDfT 0N+OTOkYb56xR7KPjTfNZKSDKBhNE0Nb5Q+g2gGQ+3mqDyFrYZGmxnqpc Tl80gESmgaPfXj3kUWRLhoagkAq6ctS2Hh2p1HQNaSDO2Nb0NpmBQZ1kD esuu4kMP0Ep4CStvWsNFJ0YE/fZZUmzZsE/qrPzjdIWDFnbw29oUJ6BTV Aq3Rli1rngb8RiIoHL+a9GC+A146pnTp2MiwxKV3uFVM3MzUYyJf0R385 thTwweUVHfWrI8S8sbsgcgyonuTptjmkPmbBxEBjOaB3z5JFSpgpRlzsi w==; X-CSE-ConnectionGUID: PERcvWxwSMWyMCgYNEDaRA== X-CSE-MsgGUID: +TmmpQN9SSCJDhYaVlkTHA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,198,1694761200"; d="scan'208";a="8177847" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 03 Oct 2023 12:51:56 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 3 Oct 2023 12:51:50 -0700 Received: from brunhilda.pdev.net (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 3 Oct 2023 12:51:50 -0700 From: Don Brace To: CC: Subject: [PATCH v6 4/6] smartpqi: add host attributes Date: Tue, 3 Oct 2023 14:54:37 -0500 Message-ID: <20231003195439.253129-5-don.brace@microchip.com> X-Mailer: git-send-email 2.42.0.296.g493f462273 In-Reply-To: <20231003195439.253129-1-don.brace@microchip.com> References: <20231003195439.253129-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 | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/man4/smartpqi.4 b/man4/smartpqi.4 index 5ff134a4821a..6305e15a912b 100644 --- a/man4/smartpqi.4 +++ b/man4/smartpqi.4 @@ -236,6 +236,68 @@ $ \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