Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp754317lqs; Tue, 5 Mar 2024 15:59:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeEbPEYw5ReuaHkUwfPdPT3KYnGUBh9FvlQT56StB88q7Beq0zsyfw3BPBzWBArOFDTpeJoaWvYX2zqtICn2cPOc2Zptnz0jO3+iEN2Q== X-Google-Smtp-Source: AGHT+IGipfKNNtSHlrWwdxoMT3o596IFvDmKEwqpDImhdRWZM1KoUwXsfmxvSUeoAV8EMXlgaXai X-Received: by 2002:aa7:db58:0:b0:567:3141:63ab with SMTP id n24-20020aa7db58000000b00567314163abmr6344585edt.35.1709683198161; Tue, 05 Mar 2024 15:59:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709683198; cv=pass; d=google.com; s=arc-20160816; b=wCL6BXZ6WPJOpP9//JTarM/xNAIzR1ks5DYoxuP1nP0x5sLm2iIy9NumUQarE1iLMf BCuCDLxXXC3dbM8RZvnQ1TTivmEsuhzr5foE4pkrvZ+3VF3I6Rdi6zCZAka4ftOviJ7M ryiM+6DOKtoOyezk3M7cxu4IeRpKHcpF6vKkNuhTmIvwzWDXAk6FnkUuNeuhPz9y+SYd MQSWSBq2OjAuHLxh3SDM0sQmlm0WgqVxKp7tLf+Yi2ko71PwpCDCbGaRUxy7xJY/uqjb 1DD/ePOKoMwJ2Hyq37674wJemg8BHPXK3akfaqeuLpD9vhozQ6sLbFsfww/Ny3AXzCwJ vHQw== 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=EPxLmbOFd6ct+aI6H9N2wyn4N9CHfrwSjpit7KmGoak=; b=j5YrxZKQ95BLcEFyrQUMho7W2yz3UTEWJK1Fyh0ls/bRgnI0uK2WVubZ5iu+vL5+xg 3pMM14GYayUh5/3upXR5yV4Q8tlOwlBuNz07tN+QMjYks3qW8x4gLXX0MFWOf4EEk/xk CBvYt27QphPA2AiXRYAKUFwuTJ7LiBKt5xY/tGjHrR8LMcE+7a+TIcxTyEo0+vZCSZya IWmnEVM1ZezmE/K9XBI5O8vT8AWbD5Pt3Fw6stiNIsAVagg4qmkpoPpZi+sBmMqqCePS FWP06FXzZAca49yyXt4qZhX9UUpSmg3pSfC7vBcSRpfaJwMHXTDcyHp/9d4GaFku1eaK AWUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3PfmTzhw; 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-93127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93127-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. [147.75.80.249]) by mx.google.com with ESMTPS id r16-20020a05640251d000b0056416297e4csi5520416edd.56.2024.03.05.15.59.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 15:59:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3PfmTzhw; 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-93127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93127-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 E036E1F24D89 for ; Tue, 5 Mar 2024 23:59:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D9F412E1CD; Tue, 5 Mar 2024 23:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3PfmTzhw" 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 9717E131722 for ; Tue, 5 Mar 2024 23:58:38 +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=1709683120; cv=none; b=MNeVOaCAAEM/gzjywxSxcc0b8P/BAe1F/tIXxzrrNaKr7ODkHnBdRri2PYvL7JD7ssGvdWKMYklBKPrQGp4jSVe/OPwe26QXFItyJoZrnRzmFAJq3B57mVwvrzxmfrdxIoHcUWneHpDN2ZygbQoWOmGf+Up9MCjs4zZd7n68ycs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709683120; c=relaxed/simple; bh=wcg4s+VBRSyuqCYnMen4yuigKnSiE8NtEjtig8qUC2o=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Ax0VqclVTOWLgmAgKSLXGGpeJa/J5+DigAaOCSp2d0+Z967JbLNIIWn/Lm+kRog2IkDmbNbxmlpQX6812zSexlq7KN01rDr2tJme51dv/E9tT73krtw6RWVmBaIH8xLb3iTXWOLIjLXQhYwZwlpagufDd6WQTN2IzGPQc360iHs= 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=3PfmTzhw; 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-609a1063919so25483967b3.0 for ; Tue, 05 Mar 2024 15:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709683118; x=1710287918; 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=3PfmTzhwDKA93OixEyrwssx1reDbrAso4vCUSVvzOAlxljbFw+Wk41SC08uwKmUFqZ TUoXGviboMm+Y7rUnSh+Iuw80yr5e96qJK3lMmdOzy3fxxEovTHnt5fh79gmMEs4yN/X 7+WfAG1v1hnwV7CGntih9yCpJ31uAYFib5lKX+52f1sTYos/XO4jXUiOQhms5qtheU5E bgiQAYk6MuXRteAfBicI/2doHzzjz0oi9gJs5xCNdZtC8C5LHP1cymbM7hPuh9i+6QzE QoELo6Iu/XfY28HY5woEAJsSxaJRD/3hKX3N5JoBjaZG3S+MHkkF7EUHoVFIs0z3zX4U U/eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709683118; x=1710287918; 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=T0gRb3doQaY2sw+1oOIl03i7rg7HU4+ZGjFRf3+5srw2crOsH8Gddv0ZucWu4SUgiI aXWtYH1FO7nmfK2hfuHXr06aFMs9Fw34MTvf2mD2Og+GoVKK5mvwUje9D7nRY4Aledl6 YAGCv0UhO7x0XXFz9Zrn4ztPHixkPglgwRun6HdYk9U3en0Ft6O1C630qREg6gGIbGZF 3y2TvtNbjSiPMzPGgGOqBzdAyurc/+uP5ajwig68HPEra5zszGbnxWY3hRcX4ctMpvIU txDgwm2OFH0/iblm9Z5BIX0fsUWCjK9J40RNF+EAJZ0KGkndaChP/Tr9n84YT2YpnYzl wMsg== X-Forwarded-Encrypted: i=1; AJvYcCWnZ/gr4eH2fcca0yJcRo1yFPj1elY7PamH0ub3nfD7kxbtugPtJup7JqQ+/d7o8eOjN+vZoFIOBJrspCepvGOcxvJuhyM0WrVPtOQn X-Gm-Message-State: AOJu0Yza7MR643Of1EMBTcryJxvlxpD0T2y2DLz6k0yWf2tyXZkucK+o XSp6SAqWl4Ya2CSC+nS51NNrhS8aMtp7AArziprOmV44bHJP5SQWulFcn6X0M/sQJ2mJOmOkDq6 44GmDkgXbVg== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69ff:df2c:aa81:7b74]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1081:b0:dcd:3172:7279 with SMTP id v1-20020a056902108100b00dcd31727279mr3670994ybu.8.1709683117944; Tue, 05 Mar 2024 15:58:37 -0800 (PST) Date: Tue, 5 Mar 2024 15:58:19 -0800 In-Reply-To: <20240305235823.3308225-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: <20240305235823.3308225-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240305235823.3308225-5-ipylypiv@google.com> Subject: [PATCH v6 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