Skip to contentSkip to conversation

ahci-alpm-with-devslp-accounting

Powertop New ayates1 3 participants 4 messages Jul 31, 2013 – Aug 2, 2013 1 message not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): linux-3.9.0-ahci-alpm-with-devslp-accounting

ayates1

author
#1 lore raw

From: ayates1 <alexandra.yates(a)linux.intel.com>

Added AHCI ALPM accounting for Device Sleep to use with PowerTop to output AHCI ALPM.

ayates1 (1):
linux-3.9.0-ahci-alpm-with-devslp-accounting

 drivers/ata/ahci.h    |  17 ++++
 drivers/ata/libahci.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 226 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.1.2
author
#2 lore raw

PATCH 1/1 linux-3.9.0-ahci-alpm-with-devslp-accounting

From: ayates1 <alexandra.yates(a)linux.intel.com>

---
 drivers/ata/ahci.h    |  17 ++++
 drivers/ata/libahci.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 226 insertions(+), 2 deletions(-)
drivers/ata/ahci.h +17 -0
index 1145637..97208fe 100644
@@ -286,6 +286,14 @@ struct ahci_em_priv {
 	unsigned long led_state;
 };
 
+enum ahci_port_states {
+	AHCI_PORT_NOLINK = 0,
+	AHCI_PORT_ACTIVE = 1,
+	AHCI_PORT_PARTIAL = 2,
+	AHCI_PORT_SLUMBER = 3,
+	AHCI_PORT_DEVSLP = 4
+};
+
 struct ahci_port_priv {
 	struct ata_link		*active_link;
 	struct ahci_cmd_hdr	*cmd_slot;
@@ -307,6 +315,15 @@ struct ahci_port_priv {
 	/* enclosure management info per PM slot */
 	struct ahci_em_priv	em_priv[EM_MAX_SLOTS];
 	char			*irq_desc;	/* desc in /proc/interrupts */
+
+	/* ALPM accounting state and stats */
+	unsigned int 		accounting_active:1;
+	u64			active_jiffies;
+	u64			partial_jiffies;
+	u64			slumber_jiffies;
+	u64			devslp_jiffies;
+	int			previous_state;
+	int			previous_jiffies;
 };
 
 struct ahci_host_priv {
drivers/ata/libahci.c +209 -2

248 lines not on this page · raw message

Signature · 1 line
1.8.1.2
#3 lore raw
In reply to ayates1
Quoted 9 lines · On (07/31/13 10:47), ayates1 wrote:

Date: Wed, 31 Jul 2013 10:47:28 -0700
From: ayates1 <alexandra.yates(a)intel.com>
To: powertop(a)lists.01.org
Cc: ayates1 <alexandra.yates(a)linux.intel.com>
Subject: [Powertop] ahci-alpm-with-devslp-accounting
X-Mailer: git-send-email 1.7.9.5

From: ayates1 <alexandra.yates(a)linux.intel.com>

Quoted 9 lines

Added AHCI ALPM accounting for Device Sleep to use with PowerTop to output AHCI ALPM.

ayates1 (1):
linux-3.9.0-ahci-alpm-with-devslp-accounting

 drivers/ata/ahci.h    |  17 ++++
 drivers/ata/libahci.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 226 insertions(+), 2 deletions(-)

Hello,
is this on top of existing patches/linux-3.9.0-ahci-alpm-with-devslp-accounting.patch ?

	-ss
#4 lore raw
In reply to ayates1

I suspect it is. This is a patch Kristen asked me to submit since it was changed on my box.

Kristen, can you elaborate?

Thank you,

Alexandra.

-----Original Message-----
From: powertop-bounces(a)lists.01.org [mailto:powertop-bounces(a)lists.01.org] On Behalf Of ayates1
Sent: Wednesday, July 31, 2013 10:47 AM
To: powertop(a)lists.01.org
Cc: ayates1
Subject: [Powertop] ahci-alpm-with-devslp-accounting

From: ayates1 <alexandra.yates(a)linux.intel.com>

Added AHCI ALPM accounting for Device Sleep to use with PowerTop to output AHCI ALPM.

ayates1 (1):
linux-3.9.0-ahci-alpm-with-devslp-accounting

 drivers/ata/ahci.h    |  17 ++++
 drivers/ata/libahci.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 226 insertions(+), 2 deletions(-)
Signature · 6 lines
1.8.1.2

_______________________________________________
PowerTop mailing list
PowerTop(a)lists.01.org
https://lists.01.org/mailman/listinfo/powertop