Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp788098lqs; Tue, 5 Mar 2024 17:24:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmLxeqyHxeVWLXDWw2itclzy3Z55G30bTOY75X5YTcbcKbeVjtLig0gZ+kikI87P5NKqtpDtTKyCsiTnHA+QTNCnq6fg87QbsRpfGqxw== X-Google-Smtp-Source: AGHT+IHdJpetI9RBKiNM7tdNMBQTr5Ct+GD3BXXbojcYAorOyNi6HfR6Oz4ekuy5J6XMq9lD4jkE X-Received: by 2002:a05:620a:688f:b0:788:3ec4:bb1d with SMTP id rv15-20020a05620a688f00b007883ec4bb1dmr610961qkn.60.1709688256898; Tue, 05 Mar 2024 17:24:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709688256; cv=pass; d=google.com; s=arc-20160816; b=QyKhQOGdsGTYXBMq0xnEMgVo6C1FvIKu+J7i8rlVQD1vWz+cJ5H8HoeTmI8gpgFpMJ GJRW3pIYhJMFMU8CXgXx9TJlhO+LLbk2Lu65CBJoR/G6kkXQZfLw0V5sJOiKd0tax/3o fmVnvNFSuHxkNhFxFfaOPXJboNH0a84Xn4enP/jSeIYoOIqROonALoDHZa4IVpVNm50k 9J9yAGv61uikyamNwE2dD0JpMocavrNrg9X7D4FtHuYRD/8Jjnb9lFY1For7sq87hIhP NHTGV2llyiIM1bZwP3RSit4V5V5e+By3bvjcW+z+u4eVnb7sA//uJJG/U5rOgsU/YfWb pEvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=xvuQ4kezab1KlrTxoR3eIfXTgSjXQ9ZPEoqhGuVUIVQ=; fh=GIlSR6sSmQqyovxYkG/BLgLYHjvYQuz6GRfrGVD8Ki8=; b=bJFPXB5EwveBiabFij/tpfgKV0dxtC/5UfFwVgOa+Rlr2RRuCgLCXL7wl2bnrIrJa1 mB6ZIx8GRXmRVXdb0t2cXDL8hVXe2FWiFLzaB9Sdy6H6yAEAYKyraIysnqAxt+vSJNh+ DbAph/Y+JeytHI3YEzKzaIVhBzNfhxyPOaHjI1AyqQSSaUeo03O/QeWbCeDU+/xCtbX5 Pg60b2IadOPkj+uJo5UeO2peLl8fMYqMFMHPgqU18skPtmrGs9KWg9z25qX7U14FIaN+ ZG2n9oTGs3d8364bp9QqV9bVAaz4NtxyEPBbFgu/sUZRRB9IdA5hUDo3shgwcElgwW2D GS0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mroJrfGy; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-93193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g5-20020a05620a108500b0078821ca5da8si7476177qkk.59.2024.03.05.17.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 17:24:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mroJrfGy; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-93193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9DC2E1C24A3F for ; Wed, 6 Mar 2024 01:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC179F4EE; Wed, 6 Mar 2024 01:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mroJrfGy" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F51C17742 for ; Wed, 6 Mar 2024 01:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688161; cv=none; b=MqIltn/c0bPEGVtrt5nSEgP3J5GWP4YH3dG7dPlrFrTGDB+yGbdyYB3UB2U78+GrmENvCZLo+FdA9eRNXejR+V05ViE3ZQxDJvG/aGN+e3lvNMvA9EcTM6inTREmW6unYNsiYAjhkBbvL4SiiiYI1vD2txBuH6pVTccrYZg5mXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688161; c=relaxed/simple; bh=wcg4s+VBRSyuqCYnMen4yuigKnSiE8NtEjtig8qUC2o=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=CoYwTGIpOWwD6E7Q35BlVFboPUjzqjbioLkcRPRsHxkHWNjQmKlQ5Nn9A6bRE4UPDuV3GdGEpddA/3v8fZSzclQKNxlNra8ex6gbNNvz4FJ1JQpoOumGQckyBonfLNW1nHsNkNLuudaG3Qk2/Xn+pqaEV54bGLy8+VF4OnWVUlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mroJrfGy; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-609d8275c70so4795287b3.3 for ; Tue, 05 Mar 2024 17:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709688158; x=1710292958; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=xvuQ4kezab1KlrTxoR3eIfXTgSjXQ9ZPEoqhGuVUIVQ=; b=mroJrfGyyEw0InFhfjPw6H4li267zjABJNkx4asSKDHCLlYGmazQQMdXZ42j4fnS+e +JOtE6KxovlBawr+yzBahaDx5mzghMSexEyPiJMR8LrzDK1tHuPwJPFnOeQYrhSW9HDW 3hsqucdPShK+iNw+YxMgbd8+txfQ3BcxIRP4/jxBBIi//noGuUqgoqhBG1K5y05MXm96 LPu32UoVScy08MR1c6arGd6thA78Fo1lPGi6Lq47Q4459P9Mx9/Yzr0ZISaCtq0GmN0h /OjtJFgBElSoLz1OkKVlGpyLfwkyytgk2+CTRn0qlFpoY44CKTzhgCzZUp3qbIRopK9O 0jgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709688158; x=1710292958; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xvuQ4kezab1KlrTxoR3eIfXTgSjXQ9ZPEoqhGuVUIVQ=; b=S/0TJ7Sd2I4qlxVisTVgfpeMhah64wQ2WV52eBHiaB8lVgbGl1Zo7oMuTF3st19PdI 2UiFpLL2GIY1L73jUyR9FvpCEkFMM2KGARIMPJeP+QUJ/4vMjfdaskEefuF2AyyU650y xYH67tahvEuv4fgIKB86ypcpSVg5XeryUMaPb9IlzG6xJhxmee1vyPm7b4gumfNDs0in 9qaSP8oOHJEHx6e/RkPOkptisYxmV4HikaqcPKpDxamdCyW1K+c9drVyuGznLii7GmBZ 7HrwkOPjL2db0GE2YJNwL2X/02Tsrwj6p/2WCRMiDhQpGiS9YsB8wQ2OqU4iDVsg6RCo RCjw== X-Forwarded-Encrypted: i=1; AJvYcCVt7WF4p77b4jQKLfKutJyL8kvjhafYJ2VhpIJRyJXcaXKol+JOwFffLibULZVckkt8dfJH9asHxNbIPlw3szYQ4wIARGpFf5oMgGD2 X-Gm-Message-State: AOJu0Yxn8Th5pj6DPAZZAC7DW34YosBKdkcjcxC/yEgaY2GAC4TT8kFv SCfOhkqP1Dhwpb6wQAuwF3wmlHmaLSzsD/dnWIfm7smzcJu4ICDn1ug6Tz8bLsLX9f91Zo3+zcz EQNtNRh7sKA== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69ff:df2c:aa81:7b74]) (user=ipylypiv job=sendgmr) by 2002:a25:c585:0:b0:dc2:2ace:860 with SMTP id v127-20020a25c585000000b00dc22ace0860mr493435ybe.2.1709688158684; Tue, 05 Mar 2024 17:22:38 -0800 (PST) Date: Tue, 5 Mar 2024 17:22:23 -0800 In-Reply-To: <20240306012226.3398927-1-ipylypiv@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240306012226.3398927-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306012226.3398927-5-ipylypiv@google.com> Subject: [PATCH v7 4/7] scsi: mvsas: Add libsas SATA sysfs attributes group From: Igor Pylypiv To: Damien Le Moal , Niklas Cassel , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche Cc: TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Pylypiv Content-Type: text/plain; charset="UTF-8" The added sysfs attributes group enables the configuration of NCQ Priority feature for HBAs that rely on libsas to manage SATA devices. Reviewed-by: John Garry Reviewed-by: Damien Le Moal Reviewed-by: Jason Yan Signed-off-by: Igor Pylypiv --- drivers/scsi/mvsas/mv_init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 43ebb331e216..f1090bb5f2c9 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c @@ -26,6 +26,7 @@ static const struct mvs_chip_info mvs_chips[] = { }; static const struct attribute_group *mvst_host_groups[]; +static const struct attribute_group *mvst_sdev_groups[]; #define SOC_SAS_NUM 2 @@ -53,6 +54,7 @@ static const struct scsi_host_template mvs_sht = { .compat_ioctl = sas_ioctl, #endif .shost_groups = mvst_host_groups, + .sdev_groups = mvst_sdev_groups, .track_queue_depth = 1, }; @@ -779,6 +781,11 @@ static struct attribute *mvst_host_attrs[] = { ATTRIBUTE_GROUPS(mvst_host); +static const struct attribute_group *mvst_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + module_init(mvs_init); module_exit(mvs_exit); -- 2.44.0.278.ge034bb2e1d-goog