All of lore.kernel.org
 help / color / mirror / Atom feed
* freezer: should barriers be smp ?
@ 2011-04-13  6:14 Mike Frysinger
  2011-04-13 20:58 ` Rafael J. Wysocki
  2011-04-13 20:58 ` Rafael J. Wysocki
  0 siblings, 2 replies; 50+ messages in thread
From: Mike Frysinger @ 2011-04-13  6:14 UTC (permalink / raw)
  To: Pavel Machek, Rafael J. Wysocki
  Cc: linux-kernel, uclinux-dist-devel, linux-pm

when we suspend/resume Blackfin SMP systems, we notice that the
freezer code runs on multiple cores.  this is of course what you want
-- freeze processes in parallel.  however, the code only uses non-smp
based barriers which causes us problems ... our cores need software
support to keep caches in sync, so our smp barriers do just that.  but
the non-smp barriers do not, and so the frozen/thawed processes
randomly get stuck in the wrong task state.

thinking about it, shouldnt the freezer code be using smp barriers ?
the point is to make sure that the updates are seen across all cores
are not just the current one ?
-mike

^ permalink raw reply	[flat|nested] 50+ messages in thread
* freezer: should barriers be smp ?
@ 2011-04-13  6:14 Mike Frysinger
  0 siblings, 0 replies; 50+ messages in thread
From: Mike Frysinger @ 2011-04-13  6:14 UTC (permalink / raw)
  To: Pavel Machek, Rafael J. Wysocki
  Cc: uclinux-dist-devel, linux-pm, linux-kernel

when we suspend/resume Blackfin SMP systems, we notice that the
freezer code runs on multiple cores.  this is of course what you want
-- freeze processes in parallel.  however, the code only uses non-smp
based barriers which causes us problems ... our cores need software
support to keep caches in sync, so our smp barriers do just that.  but
the non-smp barriers do not, and so the frozen/thawed processes
randomly get stuck in the wrong task state.

thinking about it, shouldnt the freezer code be using smp barriers ?
the point is to make sure that the updates are seen across all cores
are not just the current one ?
-mike

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2011-04-15 23:30 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13  6:14 freezer: should barriers be smp ? Mike Frysinger
2011-04-13 20:58 ` Rafael J. Wysocki
2011-04-13 21:02   ` Mike Frysinger
2011-04-13 21:05     ` Pavel Machek
2011-04-13 21:05     ` Pavel Machek
2011-04-13 21:11       ` [uclinux-dist-devel] " Mike Frysinger
2011-04-13 21:53         ` Rafael J. Wysocki
2011-04-13 21:53         ` Rafael J. Wysocki
2011-04-13 22:11           ` [linux-pm] " Alan Stern
2011-04-13 22:34             ` [linux-pm] [uclinux-dist-devel] freezer: should barriers be smp? Rafael J. Wysocki
2011-04-14 14:55               ` Alan Stern
2011-04-14 22:34                 ` Rafael J. Wysocki
2011-04-15 14:32                   ` Alan Stern
2011-04-15 14:32                   ` [linux-pm] " Alan Stern
2011-04-14 22:34                 ` Rafael J. Wysocki
2011-04-14 14:55               ` Alan Stern
2011-04-13 22:34             ` Rafael J. Wysocki
2011-04-13 22:11           ` [uclinux-dist-devel] freezer: should barriers be smp ? Alan Stern
2011-04-13 22:22           ` Mike Frysinger
2011-04-13 22:22           ` Mike Frysinger
2011-04-13 22:49             ` Rafael J. Wysocki
2011-04-13 22:53               ` Rafael J. Wysocki
2011-04-13 22:53               ` Rafael J. Wysocki
2011-04-13 22:57               ` Mike Frysinger
2011-04-13 23:12                 ` Rafael J. Wysocki
2011-04-13 23:12                 ` Rafael J. Wysocki
2011-04-14 15:13                 ` [linux-pm] " Alan Stern
2011-04-14 22:40                   ` Rafael J. Wysocki
2011-04-14 22:40                   ` Rafael J. Wysocki
2011-04-14 15:13                 ` Alan Stern
2011-04-13 22:57               ` Mike Frysinger
2011-04-13 22:49             ` [uclinux-dist-devel] " Rafael J. Wysocki
2011-04-13 22:04         ` [linux-pm] " Alan Stern
2011-04-15 16:29           ` Pavel Machek
2011-04-15 16:33             ` [uclinux-dist-devel] [linux-pm] " Mike Frysinger
2011-04-15 16:57               ` Pavel Machek
2011-04-15 16:57               ` [uclinux-dist-devel] " Pavel Machek
2011-04-15 23:11               ` Rafael J. Wysocki
2011-04-15 23:11               ` [uclinux-dist-devel] [linux-pm] " Rafael J. Wysocki
2011-04-15 23:24                 ` Mike Frysinger
2011-04-15 23:30                   ` Rafael J. Wysocki
2011-04-15 23:30                   ` [uclinux-dist-devel] " Rafael J. Wysocki
2011-04-15 23:24                 ` Mike Frysinger
2011-04-15 16:33             ` Mike Frysinger
2011-04-15 16:29           ` Pavel Machek
2011-04-13 22:04         ` Alan Stern
2011-04-13 21:11       ` Mike Frysinger
2011-04-13 21:02   ` Mike Frysinger
2011-04-13 20:58 ` Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2011-04-13  6:14 Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.