Message ID | 20240302201636.1228331-8-ipylypiv@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-89585-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp638406dyc; Sat, 2 Mar 2024 12:19:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUa39H7rq2OGlqScO2RFZDqyOpt4lDF4zRBl4WR1X+8lQ0REPPf85Gy3EWLnzt8awyqBYUqZUaLuMyO3pAaFsuMuWZaIg== X-Google-Smtp-Source: AGHT+IFu7zhkBR7N6h6Uw1MMp+FpmzafYXNQ926+iesSy7/IhU3IAofWkM5fIlmEu27fWsU8EEIm X-Received: by 2002:a17:906:6d06:b0:a3f:86ca:ed2f with SMTP id m6-20020a1709066d0600b00a3f86caed2fmr3829676ejr.49.1709410746594; Sat, 02 Mar 2024 12:19:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709410746; cv=pass; d=google.com; s=arc-20160816; b=uR6X/E5faaK7iDSenkFlGASlXQxsM6QwPhgustC40+w4QDkGx3VTOcXOMzhRiCiB0g fZSCWM14z7BH/wJX/0WBV3sExtKZfU12pZAuunB/t7mY3ApElPucUwo7y/i7EPTAVfXd v0VIksSQ4p70Zg1zftbdT+mUNFgUAIACBSQLXnZF0satl8dy4BrwS/zYQWo91d+fLgmi bNiYtfwD0NnX3ybqyk7wTqXFeH9PSgeax7i40lOguDsuy4BZDN7H9sssCPd97oxyMWOI jwY4ClXH1F5M6Pz9HcQ/HaH/mJkjKGG98DooVWlR6M70tGawLb/O4eiVBg1IH4KwR6dC ba2A== 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=k7XkqJ/HwZdUVuck7Rfqg1Ng2sUDChUOthoiaoWu1uo=; fh=5z/y5oAK2PbEkmVm3eyXdRUBDnP2KsdSr388V7BxQdA=; b=CcriM1xKO5H4pfWXELhSiwIqV2daYBVw5VbfbFJFatv/J9xrpr6ceDSkPuqSyjzsNP lv5esn+seXa2BGwtElahOJIum1rPjaXSZsZrf/pMyIdyqkRamTg8utXT3QVYa2l/x5WI J8yfDc2G7P79nTDeOIgCBPt+fCZfNRQsJQ/oIxNa66NOdsAsKt+M7B4OMuqjr9jxT7nn JeIFxMnYUI+UnVrdiuw8qgKZFCpJbQj/vhl7amdAKyVo3OIQX7M1gwv7dne81kgM7D9k kailY8Je+sGQf1yxJimLrOKqhf1McQulbBAVZorLtrkELVHle8seVctprpwU3dD93bJY wBAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bUgNbILR; 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-89585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89585-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i19-20020a17090671d300b00a44dc35dee9si664645ejk.988.2024.03.02.12.19.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 12:19:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89585-ouuuleilei=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=bUgNbILR; 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-89585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89585-ouuuleilei=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 3A9F91F21C30 for <ouuuleilei@gmail.com>; Sat, 2 Mar 2024 20:19:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F4544D599; Sat, 2 Mar 2024 20:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bUgNbILR" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 A780040C0C for <linux-kernel@vger.kernel.org>; Sat, 2 Mar 2024 20:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709410628; cv=none; b=CQ7CUNH2YuuZ2njbf1mUmyPvr79+4vC0G4nOhdSyi7zbZH/yTd3/DL+mlcwX4MtxunFW4/YRFjTXobvPJpzGdVqu7y0S6ogWa56Gklm8HusSuz1aDEZvhoTjQ6G6SvZ2Wv1P12syDh7d1zdZV09bWtH99qJOoF3EmqfxmAtTCBM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709410628; c=relaxed/simple; bh=VXEBiw5sEFSk6TqQvuSqUb+O1z3+B7dY5aKYWK0IdpQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=aNcSsbltSnZR5JGpba7wUun50mTDrg4OSdAIS755MvAvm1nght0FpSz1nnqia2R15ZcpGbDBTl3w0TOHAQYq93FgHLOHiIXR9BtN79MSxcv9cPchv2hLcdUXfc9XG+rYj6qU0C0uIeQ96E9UDsw9yYkrFMNfmwRCArrjVZPaoLw= 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=bUgNbILR; arc=none smtp.client-ip=209.85.219.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-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcd94cc48a1so5197678276.3 for <linux-kernel@vger.kernel.org>; Sat, 02 Mar 2024 12:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709410624; x=1710015424; 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=k7XkqJ/HwZdUVuck7Rfqg1Ng2sUDChUOthoiaoWu1uo=; b=bUgNbILRtQA2lzC7fCLAvsTAkdCPQqxX2v33EtkT6rsLnANLFRqRLFtP6wdQfUMLxh QF+w3SLDTWRf9e3XLv8YXkO2LC9y4hvz8t4gD24nSjPJVfmb0RUfgx2/drB/sv1G8KQO YTifr8d6zF9p1V/JCz9mhkIKT0zv6fUcVJ4RlO1M18hcjkN1NSORm11TjbHiMOw7GBfD yFydrD9mqNZVtdoPF605COEwkCERLtdNahduD7f4e3HJ9jVOpfjNUMPnx3S/cueDnBWd mnAxxfdXt1KfzOefIYGGe2ccRW852KrGpZ0VrVRcJzKEUyEEkGlBrEICO8H6DJsTnWXF 9vPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709410624; x=1710015424; 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=k7XkqJ/HwZdUVuck7Rfqg1Ng2sUDChUOthoiaoWu1uo=; b=MhnKlUFqGMwiC4KZ66jLQZkG/cslrlzx6X6mQ/gJnjPXCX90G2tvGWvSqHYZg2tCfS ugHN3zHX/A1Ut3aGo/5WUhe5EPKuH0UvVMITA4a04i+UxZGlWR8vAT6YMX4egBbkKv0m +aZNxE+P04QaWMxx7oTEgK9P1nBuAfyylspUAbn701liT6S0zSyQae07eMr4whW/auok AYnNy9EVUcUzusNyejRbcYc0HuVON8tmEFEEk4K7N22H0/Dq1E5KdN+Kjy2IKxQbGsQQ G7bIvENe4Y8EnpvXVxCBXudT4OWnuTXaL5z9c/eWTyOH2bVjMat/d8O5P3vHnZY1Wf7m L2Aw== X-Forwarded-Encrypted: i=1; AJvYcCWC3/DMtqLIn33sl9XUpkz4pXBZ07tY+jdv2HKhjZ9U/l56HQiSeYvBXj6esa5QIusCe8EUqSVlig/lVZTkjQPEZWiwmEiB6alWdDr2 X-Gm-Message-State: AOJu0YwuRVA+UmJxid4opDhbR4MvjrBJq66X3ieMgC5FEGPCY2Yro/3F qJVRcoO+mc+mC1M99os05uPzxQziQSmka3a96x1BsMgO7Q327s4H5i9s0KP9FE/LOZP60ipQsGQ 3VMuVAf2Agg== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:41a7:9019:9a7:b404]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1741:b0:dc7:5c0d:f177 with SMTP id bz1-20020a056902174100b00dc75c0df177mr1258736ybb.6.1709410624534; Sat, 02 Mar 2024 12:17:04 -0800 (PST) Date: Sat, 2 Mar 2024 12:16:36 -0800 In-Reply-To: <20240302201636.1228331-1-ipylypiv@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240302201636.1228331-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240302201636.1228331-8-ipylypiv@google.com> Subject: [PATCH v3 7/7] scsi: isci: Add libsas SATA sysfs attributes group From: Igor Pylypiv <ipylypiv@google.com> To: Damien Le Moal <dlemoal@kernel.org>, Niklas Cassel <cassel@kernel.org>, John Garry <john.g.garry@oracle.com>, Jason Yan <yanaijie@huawei.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Jack Wang <jinpu.wang@cloud.ionos.com>, Hannes Reinecke <hare@suse.de>, Xiang Chen <chenxiang66@hisilicon.com>, Artur Paszkiewicz <artur.paszkiewicz@intel.com>, Bart Van Assche <bvanassche@acm.org> Cc: TJ Adams <tadamsjr@google.com>, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Pylypiv <ipylypiv@google.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792447082839650134 X-GMAIL-MSGID: 1792447082839650134 |
Series |
NCQ Priority sysfs sttributes for libsas
|
|
Commit Message
Igor Pylypiv
March 2, 2024, 8:16 p.m. UTC
The added sysfs attributes group enables the configuration of NCQ Priority
feature for HBAs that rely on libsas to manage SATA devices.
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
---
drivers/scsi/isci/init.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On 02/03/2024 20:16, Igor Pylypiv wrote: > The added sysfs attributes group enables the configuration of NCQ Priority > feature for HBAs that rely on libsas to manage SATA devices. > > Signed-off-by: Igor Pylypiv<ipylypiv@google.com> Reviewed-by: John Garry <john.g.garry@oracle.com>
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index 6277162a028b..8658dcd61b87 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -149,6 +149,11 @@ static struct attribute *isci_host_attrs[] = { ATTRIBUTE_GROUPS(isci_host); +static const struct attribute_group *isci_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + static const struct scsi_host_template isci_sht = { .module = THIS_MODULE, @@ -176,6 +181,7 @@ static const struct scsi_host_template isci_sht = { .compat_ioctl = sas_ioctl, #endif .shost_groups = isci_host_groups, + .sdev_groups = isci_sdev_groups, .track_queue_depth = 1, };