From patchwork Fri Mar 1 01:37:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Pylypiv X-Patchwork-Id: 777708 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 018FA2BAE3 for ; Fri, 1 Mar 2024 01:38:17 +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=1709257100; cv=none; b=MOCT7LBz6JR1A8Ui1haiNKqIH95waFUrF7ueBh0o4IhKwg3mjJuIXiTtLl+aPJ4811LpPbMxtwVtoZLfxHiUCGfyKxZoOBwdWvTAM08yeXM7xMm8xhc2PD5wlibdjWAU6yyT8Q1SHjhlgj+b/y0Qgtn1EiOkcC+51ws+qElJe+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709257100; c=relaxed/simple; bh=KMpxKpbpjeoQqcOIhlHPKvhUGkSROvNhsAYmAL2oE2k=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=GsvpFve7Q0hzZXL9gmh6XdU5EBaz8LUPleXFpkTSY8PFVHt0xJJ4FoE8KD5owSb/1MfeZ8P4ZoPD7AvrUVrvO6lLtnHlratI7Aa8znpebJq+jTdii+gpOkypwNGHTp3onypmyoMWEUrB6Te0PIu9wXBEsewbHwkQ3QYcV19JNRE= 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=fIvwGQoO; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fIvwGQoO" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcc4563611cso2685549276.3 for ; Thu, 29 Feb 2024 17:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709257097; x=1709861897; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=CWSEzr83qDpP+Sd5Vt8txQd9Oa0cdIaTZ7C0izQO4eA=; b=fIvwGQoOvFWge1dBEWoKXM+lpbDLzacvG2+mc+8DzCbwZlmiZF/obxOftllakc873O TO1JAaEdhcyW1oj3MlxBj5oj8+omC5oldVHdO1oqTckZ0rqlehWEX5A3jfGq5y1dZRZ8 oDXkYw0KEQoRMqahc2bykMoM1c9YRJvITd14Z5HfesnJQpOyxWnKwjM+Vl7OnUecC8Dl 1LmHspnJILDxt+6g5FjvP4KA0va/P6kLLEkivlm7KnOwKeEvU0mHvYqYlWGBXUN/DOMT lMjuTFrC5GnV0u5/bW6bpMKZPBFBX2IqVr9uBmLLK/x3CBkmCmqRmT2DlcqEFRSOelQe sDfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709257097; x=1709861897; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CWSEzr83qDpP+Sd5Vt8txQd9Oa0cdIaTZ7C0izQO4eA=; b=R9+Mute7o2HegYuNPxk6QjWDAxS7xayYKii3jHLAH9pasV+xBZblAXt7jHGOmEAeWC NlmKjrUwGaDR6pm4ITDTqhCldBSJhXWBeK11pkOPjnYMruEDDrw2Dj6XKgMP/TSwYQVU N1Acf6aJbmFksEqjQnJl3jmuxjj7zfP/CS+PLxGAj1DNFOOW2I8AP/kTPtoLuMD48al8 yOL852woHK9ukupMoDb4lHFirivjcfBmogTChRE0SPOimINBM4z9vurLpARS+oXozptl FojH77/Rgt32QzU7MZt4O0diNW1im3tK1H9zxsuiKljz6UrLlTAEMw8QeX7aDftuWvFP kZeA== X-Forwarded-Encrypted: i=1; AJvYcCWcrY4kVB+jAzE3StSkPynS1tJmpQYNbqzelsJGydNtyA2HV3RZsdRqJEo/MUSQJRAghqh7hzClF2bAKngUhOWZNK8RJx90F64dgQ== X-Gm-Message-State: AOJu0YxruCa/B7LUCkSViGBQsy/vOQ8Ou5d8D2EwIjapEdrg92K9P9Do mH6ZrrbGYSlTbkXDzhO+SHiFXCkkjwwzipx5a4UK1nocVV/ai6DHCzvOlhmWpeYcMzr2vI8vUxy Y6of+TnRiKg== X-Google-Smtp-Source: AGHT+IE404rz7EDy2MtSWy82xprXTyrLWHNGQHVJXAyHGYB3tIhAtfRmvWt9ht+SCiuuaQ95Ip2J5VNwdGzIlA== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:3564:51b2:6cdf:92fb]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:728:b0:dc2:1f34:fac4 with SMTP id l8-20020a056902072800b00dc21f34fac4mr42691ybt.2.1709257097144; Thu, 29 Feb 2024 17:38:17 -0800 (PST) Date: Thu, 29 Feb 2024 17:37:56 -0800 Precedence: bulk X-Mailing-List: linux-scsi@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: <20240301013759.516817-1-ipylypiv@google.com> Subject: [PATCH 0/3] 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 Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Pylypiv 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. Igor Pylypiv (3): 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 drivers/ata/libata-sata.c | 130 ++++++++++++++++++++---------- drivers/scsi/libsas/sas_ata.c | 87 ++++++++++++++++++++ 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 ++ 7 files changed, 190 insertions(+), 44 deletions(-)