Danesh Petigara
fb32963355
drivers: ata: wake port before DMA stop for ALPM
...
The AHCI driver code stops and starts port DMA engines at will
without considering the power state of the particular port. The
AHCI specification isn't very clear on how to handle this scenario,
leaving implementation open to interpretation.
Broadcom's STB SATA host controller is unable to handle port DMA
controller restarts when the port in question is in low power mode.
When a port enters partial or slumber mode, its PHY is powered down.
When a controller restart is requested, the controller's internal
state machine expects the PHY to be brought back up by software which
never happens in this case, resulting in failures.
To avoid this situation, logic is added to manually wake up the port
just before its DMA engine is stopped, if the port happens to be in
a low power state. HBA initiated power management ensures that the port
eventually returns to its configured low power state, when the link is
idle (as per the conditions listed in the spec). A new host flag is also
added to ensure this logic is only exercised for hosts with the above
limitation.
tj: Formatting changes.
Signed-off-by: Danesh Petigara <dpetigara@broadcom.com >
Reviewed-by: Markus Mayer <mmayer@broadcom.com >
Signed-off-by: Tejun Heo <tj@kernel.org >
2016-01-25 15:20:44 -05:00
..
2015-12-13 19:59:48 -08:00
2015-12-14 10:11:09 -08:00
2014-08-06 18:01:23 -07:00
2015-10-09 07:49:01 -07:00
2016-01-21 19:36:08 +01:00
2016-01-20 18:03:56 -08:00
2014-08-08 15:57:26 -07:00
2015-10-17 21:22:08 -07:00
2015-09-30 19:22:50 +09:00
2015-12-11 16:56:16 +01:00
2016-01-13 16:00:32 +01:00
2015-11-21 18:42:00 +01:00
2015-10-20 18:10:25 +02:00
2015-09-27 17:33:59 -07:00
2016-01-07 10:10:50 -05:00
2016-01-18 12:10:45 -08:00
2016-01-23 18:45:06 -08:00
2016-01-23 18:45:06 -08:00
2016-01-05 18:04:58 +01:00
2016-01-07 09:55:39 -08:00
2015-12-21 14:26:28 +05:30
2015-10-27 11:24:23 +01:00
2016-01-24 12:50:56 -08:00
2015-12-05 02:06:51 +01:00
2015-12-17 22:08:28 -05:00
2015-04-22 08:00:41 +10:00
2016-01-12 18:26:10 +00:00
2015-09-23 09:51:25 +02:00
2016-01-20 18:42:30 -08:00
2015-12-16 16:36:25 +02:00
2016-01-23 18:45:06 -08:00
2016-01-13 09:26:40 -08:00
2012-02-09 09:04:23 -08:00
2015-08-05 13:38:07 +01:00
2012-10-08 13:50:20 +10:30
2013-09-24 10:35:17 +01:00
2013-12-02 11:24:18 +00:00
2015-04-22 08:00:42 +10:00
2013-03-12 13:59:14 -07:00
2015-01-28 18:45:23 -05:00
2014-10-27 14:16:19 -04:00
2012-12-02 00:05:12 +00:00
2015-11-03 17:22:17 -08:00
2012-03-16 10:38:24 -04:00
2009-04-01 08:59:23 -07:00
2015-08-20 14:10:23 -07:00
2015-11-05 14:51:32 -08:00
2015-06-23 15:47:35 +01:00
2012-09-10 11:13:16 -07:00
2016-01-24 03:47:37 +01:00
2016-01-24 03:49:03 +01:00
2012-03-04 17:54:34 -05:00
2015-08-05 09:38:08 +02:00
2015-12-09 10:35:16 -08:00
2014-12-22 16:43:06 +00:00
2016-01-21 19:58:02 -08:00
2013-11-08 09:04:30 -07:00
2015-12-06 12:46:31 +01:00
2012-10-13 10:46:48 +01:00
2015-11-11 02:19:33 -05:00
2013-02-21 17:22:16 -08:00
2014-01-23 16:36:56 -08:00
2015-05-24 12:31:33 -07:00
2015-11-18 11:20:40 +11:00
2015-01-20 14:02:58 -07:00
2012-10-13 10:46:48 +01:00
2015-07-17 16:39:53 -07:00
2015-09-14 11:00:55 +02:00
2014-01-21 20:18:26 -08:00
2013-02-13 06:00:53 -08:00
2015-11-05 19:34:48 -08:00
2015-07-17 16:39:53 -07:00
2015-06-25 17:00:38 -07:00
2015-12-04 10:33:41 +01:00
2013-11-15 09:32:21 +09:00
2015-12-07 00:02:05 +00:00
2008-04-30 08:29:54 -07:00
2015-05-10 19:15:52 +02:00
2016-01-16 11:17:25 -08:00
2008-06-04 14:56:12 +01:00
2013-12-29 15:25:48 +01:00
2015-11-24 09:56:43 +01:00
2015-12-04 10:34:45 +01:00
2011-09-23 12:05:29 +05:30
2013-09-13 15:09:52 +02:00
2015-10-07 16:02:49 -07:00
2015-07-22 09:58:02 +02:00
2015-11-06 17:50:42 -08:00
2014-06-25 16:04:00 -07:00
2008-12-25 11:01:43 +11:00
2015-08-17 16:53:53 +08:00
2016-01-22 17:02:18 -08:00
2015-11-16 09:27:32 +05:30
2013-05-12 14:16:21 +02:00
2015-10-18 10:14:39 -07:00
2013-08-18 17:39:55 -07:00
2010-08-04 11:00:45 +02:00
2015-11-02 13:14:44 -08:00
2015-03-30 17:09:41 +09:00
2016-01-13 17:30:32 +09:00
2015-10-31 19:05:59 -04:00
2016-01-08 01:12:06 +01:00
2012-10-22 16:50:13 -07:00
2014-01-21 16:19:41 -08:00
2016-01-06 15:17:47 +05:30
2015-09-08 15:35:28 -07:00
2016-01-15 22:08:45 +01:00
2010-07-28 09:59:01 -04:00
2014-10-03 14:55:48 -07:00
2014-09-29 00:04:55 -04:00
2013-03-03 23:59:59 -08:00
2012-10-13 10:46:48 +01:00
2015-06-10 08:01:20 -06:00
2015-04-14 16:49:05 -07:00
2014-11-24 07:45:02 +01:00
2008-01-28 23:21:18 +01:00
2016-01-16 11:17:24 -08:00
2012-10-13 10:46:48 +01:00
2016-01-06 16:31:56 -05:00
2014-12-08 21:07:10 -05:00
2014-01-16 10:23:02 +10:30
2015-02-05 14:35:17 +01:00
2015-10-16 08:30:09 +09:00
2015-12-14 18:58:42 -08:00
2015-03-25 15:07:05 +11:00
2015-12-15 15:41:24 +02:00
2013-09-26 15:06:58 -07:00
2012-10-13 10:46:48 +01:00
2015-10-31 16:12:10 -07:00
2014-12-31 13:06:50 -05:00
2014-12-10 17:41:10 -08:00
2009-06-18 19:50:21 +08:00
2014-05-26 14:33:10 +02:00
2012-10-13 10:46:48 +01:00
2014-01-21 23:17:20 -08:00
2014-09-08 09:51:30 +09:00
2009-12-17 10:58:17 -05:00
2013-09-12 10:12:47 -07:00
2016-01-23 12:24:56 -08:00
2012-10-13 10:46:48 +01:00
2016-01-12 20:04:15 -08:00
2009-06-18 13:04:05 -07:00
2015-12-22 17:10:17 -06:00
2006-09-30 01:47:55 +02:00
2015-05-31 11:40:14 +09:00
2015-05-19 08:39:11 +02:00
2014-12-10 15:17:46 -05:00
2015-11-18 16:17:42 -05:00
2013-04-30 10:09:06 +02:00
2011-02-03 16:37:28 +01:00
2015-12-28 13:41:50 +01:00
2012-10-13 10:46:48 +01:00
2015-06-19 15:18:28 +02:00
2016-01-21 17:20:51 -08:00
2015-12-21 13:07:56 -08:00
2012-10-13 10:46:48 +01:00
2013-08-26 09:30:03 -07:00
2015-05-05 13:40:42 -06:00
2013-06-05 12:00:27 -07:00
2015-10-23 05:44:28 -07:00
2008-08-02 18:36:10 +01:00
2014-09-09 10:28:43 -04:00
2013-02-11 14:16:26 -05:00
2013-12-29 16:34:25 -05:00
2008-07-09 12:09:28 -04:00
2015-10-09 07:49:05 -07:00
2015-12-04 10:34:46 +01:00
2015-07-05 23:59:14 -04:00
2005-04-16 15:20:36 -07:00
2014-05-14 16:40:04 -07:00
2015-10-13 23:30:31 -07:00
2014-11-17 23:12:01 -05:00
2015-10-15 15:35:32 +01:00
2016-01-23 18:45:06 -08:00
2012-10-09 16:22:40 +09:00
2012-10-09 16:22:39 +09:00
2006-10-10 15:37:22 -07:00
2012-03-20 12:47:48 +01:00
2015-07-28 15:47:58 +01:00
2012-12-09 00:20:28 -05:00
2014-09-23 23:13:13 -07:00
2014-01-27 21:02:39 -08:00
2015-09-16 15:47:51 +02:00
2007-07-31 15:39:40 -07:00
2016-01-16 11:17:23 -08:00
2014-12-13 13:33:07 +01:00
2013-11-13 12:09:07 +09:00
2016-01-16 11:17:22 -08:00
2014-10-14 15:05:34 -04:00
2015-12-15 10:01:43 -05:00
2014-10-22 16:14:04 -06:00
2015-12-12 10:15:34 -08:00
2015-09-10 13:29:01 -07:00
2012-07-21 10:34:00 -07:00
2010-03-15 15:29:39 +01:00
2015-10-04 11:46:16 +01:00
2015-11-28 19:33:29 -08:00
2015-09-04 16:54:41 -07:00
2011-09-16 19:20:20 -04:00
2013-07-03 16:07:43 -07:00
2016-01-25 15:20:44 -05:00
2012-10-06 02:48:09 +09:00
2013-01-06 01:11:25 -08:00
2016-01-13 13:04:11 -07:00
2009-06-16 19:47:57 -07:00
2016-01-15 17:56:32 -08:00
2015-12-03 23:01:27 +01:00
2015-01-25 23:16:29 -05:00
2011-12-12 22:06:55 -08:00
2015-11-25 09:22:02 -07:00
2015-07-13 13:31:58 -04:00
2015-08-10 14:29:27 +05:30
2012-03-16 10:38:24 -04:00
2015-11-10 12:06:16 +01:00
2014-03-18 19:19:41 -04:00
2016-01-20 17:09:18 -08:00
2016-01-15 17:56:32 -08:00
2014-10-22 16:14:04 -06:00
2015-04-15 16:35:18 -07:00
2015-09-09 17:19:14 -07:00
2015-04-14 16:49:05 -07:00
2015-10-27 18:55:31 -07:00
2016-01-14 16:00:49 -08:00
2014-01-21 16:19:44 -08:00
2016-01-15 17:56:32 -08:00
2015-09-10 13:29:01 -07:00
2015-12-14 19:15:05 -08:00
2015-12-04 22:46:26 +01:00
2015-03-12 18:46:08 -07:00
2015-11-06 17:50:42 -08:00
2015-04-18 11:20:31 -04:00
2009-04-01 07:38:54 -04:00
2015-10-20 22:10:45 +08:00
2015-11-30 15:26:22 -05:00
2014-01-27 21:02:39 -08:00
2016-01-21 11:52:16 -08:00
2013-06-26 12:10:56 +02:00
2011-05-09 11:40:38 +10:00
2015-12-01 15:45:05 -05:00
2015-12-15 16:50:20 -05:00
2016-01-11 23:28:44 -05:00
2014-03-29 17:58:37 -04:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-05-05 17:10:11 -07:00
2012-12-11 17:22:27 -08:00
2013-04-29 15:54:36 -07:00
2014-07-29 18:08:50 -07:00
2012-10-13 10:46:48 +01:00
2015-07-27 08:23:27 -05:00
2015-06-24 11:18:48 +10:00
2015-08-25 11:29:55 -05:00
2015-11-10 17:27:12 -06:00
2015-09-08 15:35:28 -07:00
2013-03-29 17:54:33 -07:00
2013-10-30 12:02:58 +08:00
2016-01-22 17:02:18 -08:00
2014-04-03 16:21:00 -07:00
2014-01-23 16:36:55 -08:00
2012-10-13 10:46:48 +01:00
2013-03-01 23:51:07 -05:00
2014-11-13 10:35:25 -07:00
2016-01-21 11:52:16 -08:00
2014-01-23 20:17:18 +00:00
2015-11-16 10:40:50 -05:00
2015-10-06 11:25:31 -07:00
2015-11-16 10:50:25 -05:00
2015-08-31 14:48:02 -07:00
2016-01-07 14:31:27 -05:00
2013-07-03 16:08:03 -07:00
2016-01-12 20:25:09 -08:00
2015-05-12 23:55:37 +02:00
2016-01-08 01:12:06 +01:00
2015-12-10 23:08:51 +01:00
2015-12-21 03:11:12 +01:00
2016-01-08 01:12:06 +01:00
2016-01-22 17:02:18 -08:00
2012-10-13 10:46:48 +01:00
2016-01-02 00:29:35 +01:00
2010-08-04 21:53:17 -07:00
2012-10-13 10:46:48 +01:00
2015-10-01 09:59:16 -07:00
2015-10-21 14:46:56 -06:00
2015-10-06 17:08:19 +02:00
2011-03-31 11:26:23 -03:00
2015-03-31 12:01:19 -04:00
2008-09-02 19:21:38 -07:00
2016-01-22 17:02:18 -08:00
2010-02-08 18:19:41 -06:00
2015-10-08 05:26:38 -07:00
2010-02-10 17:47:17 -08:00
2012-05-17 15:18:37 +02:00
2014-01-21 23:17:20 -08:00
2016-01-05 19:07:17 +00:00
2012-03-24 10:08:39 -07:00
2014-10-20 10:11:29 +02:00
2015-11-16 09:23:47 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2016-01-15 17:56:32 -08:00
2006-07-13 13:21:35 -07:00
2015-10-16 15:32:18 -07:00
2012-07-04 11:51:59 +03:00
2007-05-02 11:56:33 +01:00
2015-06-25 01:13:43 +02:00
2014-06-21 22:05:30 +02:00
2016-01-10 22:13:15 -05:00
2016-01-22 10:24:03 -08:00
2015-11-19 16:22:43 +01:00
2012-10-13 10:46:48 +01:00
2015-12-24 11:09:40 -05:00
2010-10-22 10:20:06 -07:00
2013-07-09 10:33:28 -07:00
2015-02-13 21:21:39 -08:00
2015-09-11 15:21:34 -07:00
2015-07-01 10:49:25 -07:00
2012-10-13 10:46:48 +01:00
2014-07-09 10:55:57 +02:00
2014-07-02 16:01:51 +02:00
2016-01-20 17:09:18 -08:00
2016-01-22 18:08:52 -05:00
2015-02-12 18:54:09 -08:00
2015-04-20 09:08:49 -07:00
2015-04-11 15:53:35 -04:00
2015-01-03 14:32:57 -05:00
2015-09-01 08:40:25 -07:00
2015-10-06 11:15:43 -07:00
2008-05-26 16:15:32 +02:00
2015-04-14 09:50:27 -07:00
2006-12-07 02:14:08 +01:00
2012-10-13 10:46:48 +01:00
2010-08-09 16:48:44 -04:00
2012-02-24 10:05:59 +01:00
2016-01-06 11:02:29 +01:00
2015-09-10 13:29:01 -07:00
2016-01-04 10:20:19 -05:00
2009-04-10 15:48:52 +02:00
2015-09-08 15:35:28 -07:00
2005-04-16 15:20:36 -07:00
2015-12-01 14:00:53 -05:00
2015-07-01 10:36:39 -05:00
2015-11-13 21:53:18 -08:00
2015-06-25 17:00:39 -07:00
2012-09-13 16:47:34 +02:00
2010-03-30 22:02:32 +09:00
2013-12-07 01:03:14 +01:00
2016-01-14 16:00:49 -08:00
2010-05-27 09:12:51 -07:00
2008-03-10 18:01:18 -07:00
2015-12-10 22:41:06 -08:00
2015-06-19 15:18:28 +02:00
2014-07-18 11:49:57 +02:00
2015-04-22 17:06:49 +02:00
2010-11-29 08:55:25 +11:00
2013-03-15 00:36:09 -04:00
2014-11-19 22:01:15 -05:00
2015-02-03 12:48:43 -05:00
2015-11-05 19:34:48 -08:00
2016-01-12 20:04:15 -08:00
2015-08-03 15:24:43 -07:00
2015-12-13 19:59:48 -08:00
2015-06-15 16:02:52 -07:00
2013-04-15 21:23:03 +01:00
2015-12-18 17:48:50 -08:00
2015-12-01 14:58:18 -08:00
2005-04-16 15:20:36 -07:00
2011-06-15 20:04:00 -07:00
2012-10-13 10:46:48 +01:00
2011-10-31 19:32:31 -04:00
2015-12-04 10:38:59 -02:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2015-02-02 10:09:54 -08:00
2016-01-12 18:57:02 -08:00
2012-10-13 10:46:48 +01:00
2015-03-24 09:48:14 -07:00
2011-07-04 19:31:38 -07:00
2015-12-08 11:29:47 -05:00
2015-06-02 08:40:20 -06:00
2014-08-08 15:57:26 -07:00