Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp171090lqc; Thu, 7 Mar 2024 13:45:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUlAqgMN1BjMyYzIcngD0XhN6xpJVsJS0MuXikt1LIGiKD5pksKSH9nwyyU3718AwgTrAmNucrc8QYr8jzg/nvb71DrdikPT7hr7C4j3g== X-Google-Smtp-Source: AGHT+IHcGr67IobbZoC5KvF2WR5uxXUvV2lH8Nx6W1Nouu/XbYVXHPRzg1VpBdxdAr0s+ZPMztcf X-Received: by 2002:a17:906:50c:b0:a44:deba:2e6 with SMTP id j12-20020a170906050c00b00a44deba02e6mr10845976eja.36.1709847943202; Thu, 07 Mar 2024 13:45:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709847943; cv=pass; d=google.com; s=arc-20160816; b=FzlMXJFdxE4QaUpw8mdJVqHyyWKQok4bN0dbUOml1jy6SXv2i1NntHszOpMlC9u6by jY83EdZbsQ50u2aNeDgvrDxZbXpd4d+y43tJhXTthrh2hBjKh/rZpiRZchu2fC8cKzeZ cWss3s4U97EPIk1GCSe34yGA4G5JDp5HIGlo+3HyyEROFuVzjA/YmyusQsEtRLzokrMf /n2jhgzHR217FII++MfYRMexiJ2M5Wu8kZWDFw0sAbxi0ZYoJlzdpd1lHxYgyYiTxAN/ beuzc5wGfMOYJbBxGva8mmHYzOM0S4SOa6sSUS/CAABCTVBi4ogcz1tYHe+swbNGg8i4 E7SQ== 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=xCVD89QW7GNEyZMm3uxDu0K7SFt0NpK9jCVrU7O98fk=; fh=jDQKjN0jV9Ssjy9i9Z4yCJkSZ9I2dz0Kefb1pJAnR8Q=; b=V4QAdApyV0y7OZ9IkVrlzmNH9dwp2pBxbSrI+ESLOT0IjsqVvh43NyKyDSBgY6yDhw /4Ail+8sqjJtE1ReNxAPVLEsbv+MZoiXcD+A1VEVqByqHH2eAa3oPq0RJj4V2m0wGgP5 u0HCwporOHZ2KpMK0qh8rQXdOx+q42knMugYQMdgbia6W6wDjLyFAzT8kHgOq6jVdtVv 9zJV8AwLpRLF62ncExWt1t6kb5VMVgHqyNne1ERrEAbB8y7OnaCL9pIWGczp5ykRQV4I xbFmu72dOkToxtGp3R1NJdV0XnP9Axo/Dow1yKZkTClNBvHH1g3tcLzr7RVDbgHc7kq1 tK6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DbowNptD; 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-96281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i15-20020a170906114f00b00a44c0261479si5807187eja.223.2024.03.07.13.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DbowNptD; 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-96281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96281-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BD6361F22601 for ; Thu, 7 Mar 2024 21:45:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 048C6140E37; Thu, 7 Mar 2024 21:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DbowNptD" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 46BCD13E7CD for ; Thu, 7 Mar 2024 21:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847875; cv=none; b=rPdmEkf9e8aoiJYHUc4bU3yQlr7D5NQloozWWWGvJh601kgKfgrQ8fBDICQ7jNFh1VbUzURmr7qPXdEVuZnvGQeQiHmPyE3J80dneUyOTpsBKFEdjvUm6/kBslLglbgWqyy77WHW8MjC4ruyY/CXTy3WQqfaAE7Dr7uaAhg0RUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847875; c=relaxed/simple; bh=2cCuW0dKXiDPC1nTNSQxTi3GScOXsxTSOfJ1DyyKmYo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ROLIz8N64Jb1BnwqsEWMKFtRlLUguer3H60BkOr+S08WuYrVHQPznz44oyhWNLQBMWm2lsMV0OTz/gyGNJIouEuVO0WpD2MjMyzM04xiJtw5akmC/P9hhozalN9grzIU6nsrGYkVebti8FumucUmp+OijKESVmSuDrhM7eiGYAg= 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=DbowNptD; arc=none smtp.client-ip=209.85.128.201 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-f201.google.com with SMTP id 00721157ae682-608e4171382so21737337b3.3 for ; Thu, 07 Mar 2024 13:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709847872; x=1710452672; 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=xCVD89QW7GNEyZMm3uxDu0K7SFt0NpK9jCVrU7O98fk=; b=DbowNptDu6GvfsIZLO4YQ2liRah+Fqru+SdAchb/1kbO6ATGPXFMWAABtOZb+Wv/ac ysVlcDkKiUmTamNNsu0E4QyFhfhE0eUDSye22dmEXTgBENkVn2R7k4b6sTQNZj9SteFZ GnO1kvIEg1AtJn89E3PvxoHxy698YepXVHU6Pi6vqMBUvilbytJSe/mdA743WwDckPZn T49OdtSvKRqz7o8kHO9br/jRQpb+/A7FfNK34MYtXiAqs68Hcm3hhbq1MgkjQFPQM/+5 0mKaGjsdIAmKe/8iJj21GiGU6zn7uUFXErZC+F0iztbXY7mwN3rzIIiyDKAKFnj9euYF WuIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709847872; x=1710452672; 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=xCVD89QW7GNEyZMm3uxDu0K7SFt0NpK9jCVrU7O98fk=; b=JuMKWMelVDxGX55aTmKCygdChGjG+ApkSncLBUAfIrPMV1kYUmBhdwclXKzlBP/tuF gWDdWXbXwqDijOtd11xL2Dgi1Hmu1etonasBcgFVzQlqB46LNplbPQeOcyQDrUb0k2kr w5n49v2B64mKDbRf8Xgm4ryjf0DaorfypdcdPSKUoD7D2/kjud2RizdImMnfr5LX9gn2 kuy/ua9jvGHLqCEFEbwlZUI75x5w/Bo/hwzLxPxisnJugHU3486nR5OkzYPyvwMIR0Hc s/Veg50uxlWh4YCNlzXnd7GUEJAt3hhew/Cws/lkDLFmDicfz15RnLZmyFgAPfTAmtqF ogLA== X-Forwarded-Encrypted: i=1; AJvYcCWVRDrKP3B9da2v9b8ewcr+cOxQkQ9h7q3nSSzn7H0ox+BwMuhuoPCW7YmgoRtyCqVI2M64/J8FQcpNdd3HPZ1lkU9Il8YZpMHShf39 X-Gm-Message-State: AOJu0YxWnaYPS0nMFronatZwLRADrTtoMIFguJvzv0FMfRDDfKL28iIj oQxu9jK6gjyr35vIpaRuOMcnR8R6fCCHf9pTnYUFVU9svOpfMrm15ddv5TO+AxgAjBcOv0hzl5M cO74vLRG5VQ== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69c0:c447:593d:278c]) (user=ipylypiv job=sendgmr) by 2002:a05:690c:d0c:b0:607:d300:77c1 with SMTP id cn12-20020a05690c0d0c00b00607d30077c1mr4165254ywb.4.1709847872495; Thu, 07 Mar 2024 13:44:32 -0800 (PST) Date: Thu, 7 Mar 2024 13:44:15 -0800 In-Reply-To: <20240307214418.3812290-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: <20240307214418.3812290-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240307214418.3812290-5-ipylypiv@google.com> Subject: [PATCH v8 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 Reviewed-by: Hannes Reinecke 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