Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1037242lqg; Sat, 2 Mar 2024 12:16:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXup+7Ei5jO/w+9p8kvp5FR+ehZcfz9lpey2nQE782/ivzzYjoJbdpNpFrla0tiayRkTlmPdJMJYKcvA9X3ni5yd1skaMYY9WLgpMP3dQ== X-Google-Smtp-Source: AGHT+IFmTIXBn+4EIKgdBE3ID3o2qwE5arWOwUxNBeeGbRJUE7kmOHhra1QV3eLo1nv8tVwU4kaH X-Received: by 2002:a05:6358:70b:b0:17a:f91c:825b with SMTP id e11-20020a056358070b00b0017af91c825bmr6803541rwj.5.1709410619660; Sat, 02 Mar 2024 12:16:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709410619; cv=pass; d=google.com; s=arc-20160816; b=sLi4fdOZ2rpNzrOuaIj5CLLPvz71dahwqB2QKK6VOJ/QYsLjWJyFAkNaiYUFSBq2cX 03Fb/mGX1w5ewFAll4In8Y0p+6Hx4wQ9cbc4seer7nS3bIugGvSUAr/pMMrN5Gh1tM05 9Q/RwSNNOmG13uQuSJk3V/8ubNQdTJ+2U6SipF1IFKruZXZ874PP19dOG6rd8BJsgQEg jjDnEL2AzbNJ3sqLyS31zsu+ZJdr7znzBd8AjPIxI0aO6YwVJ8SnJJQIk7I7oHr29q27 Z8/caRMS7HbvpvLpQz3fD/2F/u1KowMqnjGmDBJAupyfypsmqGM0Hs2A3TP8qfqGCwrx g0nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=OfPnrRH4J5h8MVX8iNqJy9fStZJwj24UZx9cr338G4Q=; fh=DqGbXdypsJs2mcA++qLOqcYSCp4Xbe0zMTtqAzTC7fc=; b=GirYznaNEY/WZkjuRQ/K1LrRlZqFfi+ETnsrNzx73Ql8JVs8qXR1/1GKsef8M/lxQs a5GTu7xaddiOoKQp2EItcYfFq4HYkC8blCK2WqhOdksSihFUzFUs5IeKTCmUILNe4LY2 XWJE7JrXGqDD0CKXOL7koxIC9pesUmrN1tyWqjt/zLsiXR66WVrGmviBj+5995FBvzaz CRkbxe4kGsjh4B2Xqj5bIPq1pP2Hkp/HYW8O6NiIoapvty9f6Uc5JGLm+SKL59IouH0o PG8K2K8f2tZY+FnTBrPtJWHD6nJdvTMKI06hoDOV8ToCyxN6zN2/687WtEa4HUHj+nIw 8VMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WUu9s4GF; 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-89578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89578-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 iv8-20020ad45ce8000000b006903c840a3esi6441290qvb.438.2024.03.02.12.16.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 12:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89578-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=WUu9s4GF; 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-89578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89578-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 5A85F1C209FE for ; Sat, 2 Mar 2024 20:16:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ABE640BE6; Sat, 2 Mar 2024 20:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WUu9s4GF" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 2BE752C870 for ; Sat, 2 Mar 2024 20:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709410611; cv=none; b=mzH6Injkc+wbkzzsLmzwy+B/DS157ZTTpqhYh+c3SEspOICO3hyG0ICM1hMRBg0PjKbihkmtZz2JVuhzqU9rGWVcjE9rNOCJ2P/nEOLrIBtt4j93rDiPXqaSk0T1PzJMq8sVyGR9JQeh43havAohvHTuBB+Uqf84UXsI2PJFROA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709410611; c=relaxed/simple; bh=Cpedd2s8rLSpGhGQydXGS4Dwk+kTKGMFmoIMXPvIswg=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=mtCVle+tE+PiCdKfWFyCIG6S7LQksj+RpcZjfqxS2WfRb8HbNZLf8x4H9vf5P7MXZcR5W6iwexOJFS385VdDwXpsnwlwMcXOiZ4AuuYCiK7iLxHAjaZjiZHocKID3lUP28310jACg91vesHhixzgSHJLJXOPSia4AFmTVqZ7RQU= 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=WUu9s4GF; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-dcc4563611cso5246011276.3 for ; Sat, 02 Mar 2024 12:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709410608; x=1710015408; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=OfPnrRH4J5h8MVX8iNqJy9fStZJwj24UZx9cr338G4Q=; b=WUu9s4GFltsOelAdBH8YSGUoOIaKcQbD0GHXxHox+n59nvjH2H+4fVcJifvwFJ+iAD NkO58rN2G0I3QrsrOy5I/Mjamng2HT3WaCuaDqmhN0qK+6guA5VJOnk8Ao1xbvx0vbUp e2b/AqqcVz614WuEAlwFimgtNkpxfikwQJzWSmKlmzqVxaGZKJwW9RAK2w+FiLGz1keu BUdHCDJSX6Ue7323A9kmshlYKCUGSFSknz0hDPZfIQd7bngM4w8GRPKJ8CnRuhdUcKl4 mb0BH5Z6IkHFmOyKVtVcqyBbKHRs4YfE0/YfRPqoO/JYmpwAle3XK8co4cylIHodZhMd Yulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709410608; x=1710015408; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OfPnrRH4J5h8MVX8iNqJy9fStZJwj24UZx9cr338G4Q=; b=XMveiEb/Dkv+VWRL0TPZBXeyZNiWne8vWBrH7ZTaSIfilUc2HE1DeK31Hhb6nwcoST JzgDsA83j0ezzxQMKAQH/RTwx5vLYznHIEAh+dppvVIKgRQC2w0CmY1JsxLL4TatcGub GmKnoJoCdTuGQI4+kbKk8NC+QqoRd+T3X/rjNlJmWUmMq103gltdXt8HIW3M9CiOTlYe j8m1w/bZDUIqFzPCKWqPFZ6lzp/osPHbDHt3dwg1ja6fYrDeYmtXXlqbRN8cj7PokPdT JC7V0iC7Z8ezU768cKPS5oWynki29kp3oqfe8NjkmRIautkjvdAFMqjuZcgLHYYJo9tv JQQw== X-Forwarded-Encrypted: i=1; AJvYcCW4rszamxPEDVl+vjHdgy3MRJUh8rV4XQB4F24wKHe2jT0AU7JtpzwtEnak923iBviStt2rMqLo2eH/MtI2c78Hrrq3prd2Mlth8mg2 X-Gm-Message-State: AOJu0Yy3nzyoijSVcMxuCWQzuSsAVGRhN0P4NBsbUUE965yRGtwN9nO0 Te+0TTts6co1DH8FtJZ8I5WXZ0X3G1pKpqKrk/9WQxv0hQiWsZY3eCzz33eRxELiTLj34eb/t2G RY+bkoTylYw== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:41a7:9019:9a7:b404]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1101:b0:dc6:c2e4:5126 with SMTP id o1-20020a056902110100b00dc6c2e45126mr1316939ybu.12.1709410608300; Sat, 02 Mar 2024 12:16:48 -0800 (PST) Date: Sat, 2 Mar 2024 12:16:29 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240302201636.1228331-1-ipylypiv@google.com> Subject: [PATCH v3 0/7] NCQ Priority sysfs sttributes for libsas 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" This patch series adds sas_ncq_prio_supported and sas_ncq_prio_enable sysfs sttributes for libsas managed SATA devices. Existing libata sysfs attributes cannot be used directly because the ata_port location is different for libsas. Changes since v2: - Added libsas SATA sysfs attributes to aic94xx and isci. Changes since v1: - Dropped the "sas_" prefix to align sysfs sttributes naming with AHCI. - Dropped ternary operators to make the code more readable. - Corrected the formatting %u -> %d in sysfs_emit(). - Changed kstrtol() to kstrtobool() in [ata|sas]_ncq_prio_enable_store(). - Changed comments to use the "/* */" style instead of "//". - Added libsas SATA sysfs attributes to mvsas and hisi_sas. - Dropped the 'Reviewed-by' tags because they were not sent in-reply to the patch emails. Igor Pylypiv (7): ata: libata-sata: Factor out NCQ Priority configuration helpers scsi: libsas: Define NCQ Priority sysfs attributes for SATA devices scsi: pm80xx: Add libsas SATA sysfs attributes group scsi: mvsas: Add libsas SATA sysfs attributes group scsi: hisi_sas: Add libsas SATA sysfs attributes group scsi: aic94xx: Add libsas SATA sysfs attributes group scsi: isci: Add libsas SATA sysfs attributes group drivers/ata/libata-sata.c | 139 ++++++++++++++++++------- drivers/scsi/aic94xx/aic94xx_init.c | 8 ++ drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 6 ++ drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 6 ++ drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 6 ++ drivers/scsi/isci/init.c | 6 ++ drivers/scsi/libsas/sas_ata.c | 92 ++++++++++++++++ drivers/scsi/mvsas/mv_init.c | 7 ++ drivers/scsi/pm8001/pm8001_ctl.c | 5 + drivers/scsi/pm8001/pm8001_init.c | 1 + drivers/scsi/pm8001/pm8001_sas.h | 1 + include/linux/libata.h | 4 + include/scsi/sas_ata.h | 6 ++ 13 files changed, 247 insertions(+), 40 deletions(-) -- 2.44.0.278.ge034bb2e1d-goog