* FAILED: patch "[PATCH] ata: libata: disallow dev-initiated LPM transitions to" failed to apply to 4.14-stable tree
@ 2023-09-20 9:57 gregkh
2023-09-20 11:27 ` [PATCH] ata: libata: disallow dev-initiated LPM transitions to unsupported states Niklas Cassel
2023-09-28 15:53 ` [PATCH 4.14.y] " Niklas Cassel
0 siblings, 2 replies; 8+ messages in thread
From: gregkh @ 2023-09-20 9:57 UTC (permalink / raw)
To: niklas.cassel, dlemoal; +Cc: stable
The patch below does not apply to the 4.14-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-4.14.y
git checkout FETCH_HEAD
git cherry-pick -x 24e0e61db3cb86a66824531989f1df80e0939f26
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023092002-mobster-onset-2af9@gregkh' --subject-prefix 'PATCH 4.14.y' HEAD^..
Possible dependencies:
24e0e61db3cb ("ata: libata: disallow dev-initiated LPM transitions to unsupported states")
7fe183c773c4 ("ata: start separating SATA specific code from libata-core.c")
a52fbcfc7b38 ("ata: move EXPORT_SYMBOL_GPL()s close to exported code")
10a663a1b151 ("ata: ahci: Add shutdown to freeze hardware resources of ahci")
95364f36701e ("ata: make qc_prep return ata_completion_errors")
c82ee6d3beaa ("treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18")
4e8065aa6c6f ("scsi: libata: Add missing newline at end of file")
051935978432 ("Merge branch 'for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 24e0e61db3cb86a66824531989f1df80e0939f26 Mon Sep 17 00:00:00 2001
From: Niklas Cassel <niklas.cassel@wdc.com>
Date: Mon, 4 Sep 2023 22:42:56 +0200
Subject: [PATCH] ata: libata: disallow dev-initiated LPM transitions to
unsupported states
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
In AHCI 1.3.1, the register description for CAP.SSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Slumber state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Slumber requests."
In AHCI 1.3.1, the register description for CAP.PSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Partial state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Partial requests."
Ensure that we always set the corresponding bits in PxSCTL.IPM, such that
a device is not allowed to initiate transitions to power states which are
unsupported by the HBA.
DevSleep is always initiated by the HBA, however, for completeness, set the
corresponding bit in PxSCTL.IPM such that agressive link power management
cannot transition to DevSleep if DevSleep is not supported.
sata_link_scr_lpm() is used by libahci, ata_piix and libata-pmp.
However, only libahci has the ability to read the CAP/CAP2 register to see
if these features are supported. Therefore, in order to not introduce any
regressions on ata_piix or libata-pmp, create flags that indicate that the
respective feature is NOT supported. This way, the behavior for ata_piix
and libata-pmp should remain unchanged.
This change is based on a patch originally submitted by Runa Guo-oc.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Fixes: 1152b2617a6e ("libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index abb5911c9d09..08745e7db820 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1883,6 +1883,15 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
else
dev_info(&pdev->dev, "SSS flag set, parallel bus scan disabled\n");
+ if (!(hpriv->cap & HOST_CAP_PART))
+ host->flags |= ATA_HOST_NO_PART;
+
+ if (!(hpriv->cap & HOST_CAP_SSC))
+ host->flags |= ATA_HOST_NO_SSC;
+
+ if (!(hpriv->cap2 & HOST_CAP2_SDS))
+ host->flags |= ATA_HOST_NO_DEVSLP;
+
if (pi.flags & ATA_FLAG_EM)
ahci_reset_em(host);
diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c
index 5d31c08be013..a701e1538482 100644
--- a/drivers/ata/libata-sata.c
+++ b/drivers/ata/libata-sata.c
@@ -396,10 +396,23 @@ int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
case ATA_LPM_MED_POWER_WITH_DIPM:
case ATA_LPM_MIN_POWER_WITH_PARTIAL:
case ATA_LPM_MIN_POWER:
- if (ata_link_nr_enabled(link) > 0)
- /* no restrictions on LPM transitions */
+ if (ata_link_nr_enabled(link) > 0) {
+ /* assume no restrictions on LPM transitions */
scontrol &= ~(0x7 << 8);
- else {
+
+ /*
+ * If the controller does not support partial, slumber,
+ * or devsleep, then disallow these transitions.
+ */
+ if (link->ap->host->flags & ATA_HOST_NO_PART)
+ scontrol |= (0x1 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_SSC)
+ scontrol |= (0x2 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_DEVSLP)
+ scontrol |= (0x4 << 8);
+ } else {
/* empty port, power off */
scontrol &= ~0xf;
scontrol |= (0x1 << 2);
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 52d58b13e5ee..bf4913f4d7ac 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -222,6 +222,10 @@ enum {
ATA_HOST_PARALLEL_SCAN = (1 << 2), /* Ports on this host can be scanned in parallel */
ATA_HOST_IGNORE_ATA = (1 << 3), /* Ignore ATA devices on this host. */
+ ATA_HOST_NO_PART = (1 << 4), /* Host does not support partial */
+ ATA_HOST_NO_SSC = (1 << 5), /* Host does not support slumber */
+ ATA_HOST_NO_DEVSLP = (1 << 6), /* Host does not support devslp */
+
/* bits 24:31 of host->flags are reserved for LLD specific flags */
/* various lengths of time */
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-09-20 9:57 FAILED: patch "[PATCH] ata: libata: disallow dev-initiated LPM transitions to" failed to apply to 4.14-stable tree gregkh
@ 2023-09-20 11:27 ` Niklas Cassel
2023-09-28 15:53 ` [PATCH 4.14.y] " Niklas Cassel
1 sibling, 0 replies; 8+ messages in thread
From: Niklas Cassel @ 2023-09-20 11:27 UTC (permalink / raw)
To: stable; +Cc: Niklas Cassel, Damien Le Moal
In AHCI 1.3.1, the register description for CAP.SSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Slumber state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Slumber requests."
In AHCI 1.3.1, the register description for CAP.PSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Partial state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Partial requests."
Ensure that we always set the corresponding bits in PxSCTL.IPM, such that
a device is not allowed to initiate transitions to power states which are
unsupported by the HBA.
DevSleep is always initiated by the HBA, however, for completeness, set the
corresponding bit in PxSCTL.IPM such that agressive link power management
cannot transition to DevSleep if DevSleep is not supported.
sata_link_scr_lpm() is used by libahci, ata_piix and libata-pmp.
However, only libahci has the ability to read the CAP/CAP2 register to see
if these features are supported. Therefore, in order to not introduce any
regressions on ata_piix or libata-pmp, create flags that indicate that the
respective feature is NOT supported. This way, the behavior for ata_piix
and libata-pmp should remain unchanged.
This change is based on a patch originally submitted by Runa Guo-oc.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Fixes: 1152b2617a6e ("libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
(cherry picked from commit 24e0e61db3cb86a66824531989f1df80e0939f26)
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
---
drivers/ata/ahci.c | 9 +++++++++
drivers/ata/libata-core.c | 19 ++++++++++++++++---
include/linux/libata.h | 4 ++++
3 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 0905c07b8c7e..abb3dd048556 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1777,6 +1777,15 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
else
dev_info(&pdev->dev, "SSS flag set, parallel bus scan disabled\n");
+ if (!(hpriv->cap & HOST_CAP_PART))
+ host->flags |= ATA_HOST_NO_PART;
+
+ if (!(hpriv->cap & HOST_CAP_SSC))
+ host->flags |= ATA_HOST_NO_SSC;
+
+ if (!(hpriv->cap2 & HOST_CAP2_SDS))
+ host->flags |= ATA_HOST_NO_DEVSLP;
+
if (pi.flags & ATA_FLAG_EM)
ahci_reset_em(host);
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 08dc37a62f5a..69002ad15500 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3993,10 +3993,23 @@ int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
scontrol |= (0x6 << 8);
break;
case ATA_LPM_MIN_POWER:
- if (ata_link_nr_enabled(link) > 0)
- /* no restrictions on LPM transitions */
+ if (ata_link_nr_enabled(link) > 0) {
+ /* assume no restrictions on LPM transitions */
scontrol &= ~(0x7 << 8);
- else {
+
+ /*
+ * If the controller does not support partial, slumber,
+ * or devsleep, then disallow these transitions.
+ */
+ if (link->ap->host->flags & ATA_HOST_NO_PART)
+ scontrol |= (0x1 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_SSC)
+ scontrol |= (0x2 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_DEVSLP)
+ scontrol |= (0x4 << 8);
+ } else {
/* empty port, power off */
scontrol &= ~0xf;
scontrol |= (0x1 << 2);
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 0e9f8fd37eb9..ab2c5d6cabed 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -279,6 +279,10 @@ enum {
ATA_HOST_PARALLEL_SCAN = (1 << 2), /* Ports on this host can be scanned in parallel */
ATA_HOST_IGNORE_ATA = (1 << 3), /* Ignore ATA devices on this host. */
+ ATA_HOST_NO_PART = (1 << 4), /* Host does not support partial */
+ ATA_HOST_NO_SSC = (1 << 5), /* Host does not support slumber */
+ ATA_HOST_NO_DEVSLP = (1 << 6), /* Host does not support devslp */
+
/* bits 24:31 of host->flags are reserved for LLD specific flags */
/* various lengths of time */
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-09-20 9:57 FAILED: patch "[PATCH] ata: libata: disallow dev-initiated LPM transitions to" failed to apply to 4.14-stable tree gregkh
2023-09-20 11:27 ` [PATCH] ata: libata: disallow dev-initiated LPM transitions to unsupported states Niklas Cassel
@ 2023-09-28 15:53 ` Niklas Cassel
2023-09-29 7:27 ` nobuhiro1.iwamatsu
1 sibling, 1 reply; 8+ messages in thread
From: Niklas Cassel @ 2023-09-28 15:53 UTC (permalink / raw)
To: stable; +Cc: Niklas Cassel, Damien Le Moal
In AHCI 1.3.1, the register description for CAP.SSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Slumber state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Slumber requests."
In AHCI 1.3.1, the register description for CAP.PSC:
"When cleared to ‘0’, software must not allow the HBA to initiate
transitions to the Partial state via agressive link power management nor
the PxCMD.ICC field in each port, and the PxSCTL.IPM field in each port
must be programmed to disallow device initiated Partial requests."
Ensure that we always set the corresponding bits in PxSCTL.IPM, such that
a device is not allowed to initiate transitions to power states which are
unsupported by the HBA.
DevSleep is always initiated by the HBA, however, for completeness, set the
corresponding bit in PxSCTL.IPM such that agressive link power management
cannot transition to DevSleep if DevSleep is not supported.
sata_link_scr_lpm() is used by libahci, ata_piix and libata-pmp.
However, only libahci has the ability to read the CAP/CAP2 register to see
if these features are supported. Therefore, in order to not introduce any
regressions on ata_piix or libata-pmp, create flags that indicate that the
respective feature is NOT supported. This way, the behavior for ata_piix
and libata-pmp should remain unchanged.
This change is based on a patch originally submitted by Runa Guo-oc.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Fixes: 1152b2617a6e ("libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
(cherry picked from commit 24e0e61db3cb86a66824531989f1df80e0939f26)
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
---
drivers/ata/ahci.c | 9 +++++++++
drivers/ata/libata-core.c | 19 ++++++++++++++++---
include/linux/libata.h | 4 ++++
3 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 0905c07b8c7e..abb3dd048556 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1777,6 +1777,15 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
else
dev_info(&pdev->dev, "SSS flag set, parallel bus scan disabled\n");
+ if (!(hpriv->cap & HOST_CAP_PART))
+ host->flags |= ATA_HOST_NO_PART;
+
+ if (!(hpriv->cap & HOST_CAP_SSC))
+ host->flags |= ATA_HOST_NO_SSC;
+
+ if (!(hpriv->cap2 & HOST_CAP2_SDS))
+ host->flags |= ATA_HOST_NO_DEVSLP;
+
if (pi.flags & ATA_FLAG_EM)
ahci_reset_em(host);
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 08dc37a62f5a..69002ad15500 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3993,10 +3993,23 @@ int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
scontrol |= (0x6 << 8);
break;
case ATA_LPM_MIN_POWER:
- if (ata_link_nr_enabled(link) > 0)
- /* no restrictions on LPM transitions */
+ if (ata_link_nr_enabled(link) > 0) {
+ /* assume no restrictions on LPM transitions */
scontrol &= ~(0x7 << 8);
- else {
+
+ /*
+ * If the controller does not support partial, slumber,
+ * or devsleep, then disallow these transitions.
+ */
+ if (link->ap->host->flags & ATA_HOST_NO_PART)
+ scontrol |= (0x1 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_SSC)
+ scontrol |= (0x2 << 8);
+
+ if (link->ap->host->flags & ATA_HOST_NO_DEVSLP)
+ scontrol |= (0x4 << 8);
+ } else {
/* empty port, power off */
scontrol &= ~0xf;
scontrol |= (0x1 << 2);
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 0e9f8fd37eb9..ab2c5d6cabed 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -279,6 +279,10 @@ enum {
ATA_HOST_PARALLEL_SCAN = (1 << 2), /* Ports on this host can be scanned in parallel */
ATA_HOST_IGNORE_ATA = (1 << 3), /* Ignore ATA devices on this host. */
+ ATA_HOST_NO_PART = (1 << 4), /* Host does not support partial */
+ ATA_HOST_NO_SSC = (1 << 5), /* Host does not support slumber */
+ ATA_HOST_NO_DEVSLP = (1 << 6), /* Host does not support devslp */
+
/* bits 24:31 of host->flags are reserved for LLD specific flags */
/* various lengths of time */
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-09-28 15:53 ` [PATCH 4.14.y] " Niklas Cassel
@ 2023-09-29 7:27 ` nobuhiro1.iwamatsu
2023-10-02 12:57 ` Niklas Cassel
2023-10-07 9:58 ` Greg KH
0 siblings, 2 replies; 8+ messages in thread
From: nobuhiro1.iwamatsu @ 2023-09-29 7:27 UTC (permalink / raw)
To: niklas.cassel, stable; +Cc: dlemoal
Hi!
You have forgotten the upstream commit ID.
And there is a message of cherry-pick -x. This is not necessary.
Could you please add commit ID and remove cherry-pick message?
commit 24e0e61db3cb86a66824531989f1df80e0939f26 upstream.
Best regards,
Nobuhiro
> -----Original Message-----
> From: Niklas Cassel <niklas.cassel@wdc.com>
> Sent: Friday, September 29, 2023 12:54 AM
> To: stable@vger.kernel.org
> Cc: Niklas Cassel <niklas.cassel@wdc.com>; Damien Le Moal
> <dlemoal@kernel.org>
> Subject: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to
> unsupported states
>
> In AHCI 1.3.1, the register description for CAP.SSC:
> "When cleared to ‘0’, software must not allow the HBA to initiate transitions to
> the Slumber state via agressive link power management nor the PxCMD.ICC
> field in each port, and the PxSCTL.IPM field in each port must be programmed
> to disallow device initiated Slumber requests."
>
> In AHCI 1.3.1, the register description for CAP.PSC:
> "When cleared to ‘0’, software must not allow the HBA to initiate transitions to
> the Partial state via agressive link power management nor the PxCMD.ICC field
> in each port, and the PxSCTL.IPM field in each port must be programmed to
> disallow device initiated Partial requests."
>
> Ensure that we always set the corresponding bits in PxSCTL.IPM, such that a
> device is not allowed to initiate transitions to power states which are
> unsupported by the HBA.
>
> DevSleep is always initiated by the HBA, however, for completeness, set the
> corresponding bit in PxSCTL.IPM such that agressive link power management
> cannot transition to DevSleep if DevSleep is not supported.
>
> sata_link_scr_lpm() is used by libahci, ata_piix and libata-pmp.
> However, only libahci has the ability to read the CAP/CAP2 register to see if
> these features are supported. Therefore, in order to not introduce any
> regressions on ata_piix or libata-pmp, create flags that indicate that the
> respective feature is NOT supported. This way, the behavior for ata_piix and
> libata-pmp should remain unchanged.
>
> This change is based on a patch originally submitted by Runa Guo-oc.
>
> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> Fixes: 1152b2617a6e ("libata: implement sata_link_scr_lpm() and make
> ata_dev_set_feature() global")
> Cc: stable@vger.kernel.org
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org> (cherry picked from
> commit 24e0e61db3cb86a66824531989f1df80e0939f26)
> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> ---
> drivers/ata/ahci.c | 9 +++++++++
> drivers/ata/libata-core.c | 19 ++++++++++++++++---
> include/linux/libata.h | 4 ++++
> 3 files changed, 29 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index
> 0905c07b8c7e..abb3dd048556 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -1777,6 +1777,15 @@ static int ahci_init_one(struct pci_dev *pdev, const
> struct pci_device_id *ent)
> else
> dev_info(&pdev->dev, "SSS flag set, parallel bus scan
> disabled\n");
>
> + if (!(hpriv->cap & HOST_CAP_PART))
> + host->flags |= ATA_HOST_NO_PART;
> +
> + if (!(hpriv->cap & HOST_CAP_SSC))
> + host->flags |= ATA_HOST_NO_SSC;
> +
> + if (!(hpriv->cap2 & HOST_CAP2_SDS))
> + host->flags |= ATA_HOST_NO_DEVSLP;
> +
> if (pi.flags & ATA_FLAG_EM)
> ahci_reset_em(host);
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index
> 08dc37a62f5a..69002ad15500 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -3993,10 +3993,23 @@ int sata_link_scr_lpm(struct ata_link *link, enum
> ata_lpm_policy policy,
> scontrol |= (0x6 << 8);
> break;
> case ATA_LPM_MIN_POWER:
> - if (ata_link_nr_enabled(link) > 0)
> - /* no restrictions on LPM transitions */
> + if (ata_link_nr_enabled(link) > 0) {
> + /* assume no restrictions on LPM transitions */
> scontrol &= ~(0x7 << 8);
> - else {
> +
> + /*
> + * If the controller does not support partial, slumber,
> + * or devsleep, then disallow these transitions.
> + */
> + if (link->ap->host->flags & ATA_HOST_NO_PART)
> + scontrol |= (0x1 << 8);
> +
> + if (link->ap->host->flags & ATA_HOST_NO_SSC)
> + scontrol |= (0x2 << 8);
> +
> + if (link->ap->host->flags &
> ATA_HOST_NO_DEVSLP)
> + scontrol |= (0x4 << 8);
> + } else {
> /* empty port, power off */
> scontrol &= ~0xf;
> scontrol |= (0x1 << 2);
> diff --git a/include/linux/libata.h b/include/linux/libata.h index
> 0e9f8fd37eb9..ab2c5d6cabed 100644
> --- a/include/linux/libata.h
> +++ b/include/linux/libata.h
> @@ -279,6 +279,10 @@ enum {
> ATA_HOST_PARALLEL_SCAN = (1 << 2), /* Ports on this host
> can be scanned in parallel */
> ATA_HOST_IGNORE_ATA = (1 << 3), /* Ignore ATA
> devices on this host. */
>
> + ATA_HOST_NO_PART = (1 << 4), /* Host does not support partial */
> + ATA_HOST_NO_SSC = (1 << 5), /* Host does not support
> slumber */
> + ATA_HOST_NO_DEVSLP = (1 << 6), /* Host does not support
> devslp */
> +
> /* bits 24:31 of host->flags are reserved for LLD specific flags */
>
> /* various lengths of time */
> --
> 2.41.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-09-29 7:27 ` nobuhiro1.iwamatsu
@ 2023-10-02 12:57 ` Niklas Cassel
2023-10-07 9:58 ` Greg KH
2023-10-09 23:31 ` nobuhiro1.iwamatsu
2023-10-07 9:58 ` Greg KH
1 sibling, 2 replies; 8+ messages in thread
From: Niklas Cassel @ 2023-10-02 12:57 UTC (permalink / raw)
To: nobuhiro1.iwamatsu@toshiba.co.jp
Cc: stable@vger.kernel.org, dlemoal@kernel.org
On Fri, Sep 29, 2023 at 07:27:05AM +0000, nobuhiro1.iwamatsu@toshiba.co.jp wrote:
> Hi!
>
> You have forgotten the upstream commit ID.
> And there is a message of cherry-pick -x. This is not necessary.
> Could you please add commit ID and remove cherry-pick message?
>
> commit 24e0e61db3cb86a66824531989f1df80e0939f26 upstream.
>
> Best regards,
> Nobuhiro
Hello Nobuhiro,
The Linux 4.14 stable kernel maintainers are:
Greg Kroah-Hartman & Sasha Levin
See:
https://www.kernel.org/category/releases.html
I followed the instructions provided by Greg Kroah-Hartman in email:
https://lore.kernel.org/stable/2023092002-mobster-onset-2af9@gregkh/
"""
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-4.14.y
git checkout FETCH_HEAD
git cherry-pick -x 24e0e61db3cb86a66824531989f1df80e0939f26
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023092002-mobster-onset-2af9@gregkh' --subject-prefix 'PATCH 4.14.y' HEAD^..
"""
I do find it slightly amusing that the instructions,
provided by none other than the stable maintainer himself,
which mentions linux-4.14.y, should not be good enough :)
I think you should bring up your concerns with the stable
maintainers. If this is really an issue, perhaps you can
convince them to update their instructions.
Until then, I will assume that the provided instructions
are satisfactory.
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-09-29 7:27 ` nobuhiro1.iwamatsu
2023-10-02 12:57 ` Niklas Cassel
@ 2023-10-07 9:58 ` Greg KH
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2023-10-07 9:58 UTC (permalink / raw)
To: nobuhiro1.iwamatsu; +Cc: niklas.cassel, stable, dlemoal
On Fri, Sep 29, 2023 at 07:27:05AM +0000, nobuhiro1.iwamatsu@toshiba.co.jp wrote:
> Hi!
>
> You have forgotten the upstream commit ID.
> And there is a message of cherry-pick -x. This is not necessary.
> Could you please add commit ID and remove cherry-pick message?
>
> commit 24e0e61db3cb86a66824531989f1df80e0939f26 upstream.
As pointed out, the cherry-pick message is just fine, the documentation
was being followed properly, so all is good.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-10-02 12:57 ` Niklas Cassel
@ 2023-10-07 9:58 ` Greg KH
2023-10-09 23:31 ` nobuhiro1.iwamatsu
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2023-10-07 9:58 UTC (permalink / raw)
To: Niklas Cassel
Cc: nobuhiro1.iwamatsu@toshiba.co.jp, stable@vger.kernel.org,
dlemoal@kernel.org
On Mon, Oct 02, 2023 at 12:57:17PM +0000, Niklas Cassel wrote:
> On Fri, Sep 29, 2023 at 07:27:05AM +0000, nobuhiro1.iwamatsu@toshiba.co.jp wrote:
> > Hi!
> >
> > You have forgotten the upstream commit ID.
> > And there is a message of cherry-pick -x. This is not necessary.
> > Could you please add commit ID and remove cherry-pick message?
> >
> > commit 24e0e61db3cb86a66824531989f1df80e0939f26 upstream.
> >
> > Best regards,
> > Nobuhiro
>
> Hello Nobuhiro,
>
> The Linux 4.14 stable kernel maintainers are:
> Greg Kroah-Hartman & Sasha Levin
>
> See:
> https://www.kernel.org/category/releases.html
>
> I followed the instructions provided by Greg Kroah-Hartman in email:
> https://lore.kernel.org/stable/2023092002-mobster-onset-2af9@gregkh/
>
>
> """
> To reproduce the conflict and resubmit, you may use the following commands:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-4.14.y
> git checkout FETCH_HEAD
> git cherry-pick -x 24e0e61db3cb86a66824531989f1df80e0939f26
> # <resolve conflicts, build, test, etc.>
> git commit -s
> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023092002-mobster-onset-2af9@gregkh' --subject-prefix 'PATCH 4.14.y' HEAD^..
> """
>
>
> I do find it slightly amusing that the instructions,
> provided by none other than the stable maintainer himself,
> which mentions linux-4.14.y, should not be good enough :)
>
> I think you should bring up your concerns with the stable
> maintainers. If this is really an issue, perhaps you can
> convince them to update their instructions.
>
> Until then, I will assume that the provided instructions
> are satisfactory.
They are, thank you for following them, I'll go queue these up now.
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions to unsupported states
2023-10-02 12:57 ` Niklas Cassel
2023-10-07 9:58 ` Greg KH
@ 2023-10-09 23:31 ` nobuhiro1.iwamatsu
1 sibling, 0 replies; 8+ messages in thread
From: nobuhiro1.iwamatsu @ 2023-10-09 23:31 UTC (permalink / raw)
To: Niklas.Cassel; +Cc: stable, dlemoal
Hi Niklas Cassel,
> -----Original Message-----
> From: Niklas Cassel <Niklas.Cassel@wdc.com>
> Sent: Monday, October 2, 2023 9:57 PM
> To: iwamatsu nobuhiro(岩松 信洋 ○DITC□DIT○OST)
> <nobuhiro1.iwamatsu@toshiba.co.jp>
> Cc: stable@vger.kernel.org; dlemoal@kernel.org
> Subject: Re: [PATCH 4.14.y] ata: libata: disallow dev-initiated LPM transitions
> to unsupported states
>
> On Fri, Sep 29, 2023 at 07:27:05AM +0000, nobuhiro1.iwamatsu@toshiba.co.jp
> wrote:
> > Hi!
> >
> > You have forgotten the upstream commit ID.
> > And there is a message of cherry-pick -x. This is not necessary.
> > Could you please add commit ID and remove cherry-pick message?
> >
> > commit 24e0e61db3cb86a66824531989f1df80e0939f26 upstream.
> >
> > Best regards,
> > Nobuhiro
>
> Hello Nobuhiro,
>
> The Linux 4.14 stable kernel maintainers are:
> Greg Kroah-Hartman & Sasha Levin
>
> See:
> https://www.kernel.org/category/releases.html
>
> I followed the instructions provided by Greg Kroah-Hartman in email:
> https://lore.kernel.org/stable/2023092002-mobster-onset-2af9@gregkh/
>
>
> """
> To reproduce the conflict and resubmit, you may use the following commands:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
> linux-4.14.y git checkout FETCH_HEAD git cherry-pick -x
> 24e0e61db3cb86a66824531989f1df80e0939f26
> # <resolve conflicts, build, test, etc.> git commit -s git send-email --to
> '<stable@vger.kernel.org>' --in-reply-to
> '2023092002-mobster-onset-2af9@gregkh' --subject-prefix 'PATCH 4.14.y'
> HEAD^..
> """
>
>
> I do find it slightly amusing that the instructions, provided by none other than
> the stable maintainer himself, which mentions linux-4.14.y, should not be good
> enough :)
>
> I think you should bring up your concerns with the stable maintainers. If this is
> really an issue, perhaps you can convince them to update their instructions.
>
> Until then, I will assume that the provided instructions are satisfactory.
>
Thank you for your point. My understanding was not sufficient.
Sorry, that I have made noise.
Best regards,
Nobuhiro
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-10-09 23:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-20 9:57 FAILED: patch "[PATCH] ata: libata: disallow dev-initiated LPM transitions to" failed to apply to 4.14-stable tree gregkh
2023-09-20 11:27 ` [PATCH] ata: libata: disallow dev-initiated LPM transitions to unsupported states Niklas Cassel
2023-09-28 15:53 ` [PATCH 4.14.y] " Niklas Cassel
2023-09-29 7:27 ` nobuhiro1.iwamatsu
2023-10-02 12:57 ` Niklas Cassel
2023-10-07 9:58 ` Greg KH
2023-10-09 23:31 ` nobuhiro1.iwamatsu
2023-10-07 9:58 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox