Mailinglist Archive: radeonhd (427 mails)

< Previous Next >
[radeonhd] [PATCH]es: Set engine clock after suspend & resume
  • From: Rafał Miłecki <zajec5@xxxxxxxxx>
  • Date: Mon, 18 May 2009 14:26:16 +0200
  • Message-id: <b170af450905180526x49de46b6sef2e51dad7407555@xxxxxxxxxxxxxx>
Currently we set engine clock only on starting X. After suspend &
resume card is reseted to default state (including engine clock) and
clock is on max speed again.

I see two solutions for this situation:

1) On every RHDEnterVT(...) we should check if engine clock changed,
and if it did, set it again. We shouldn't just set it on every
RHDEnterVT(...) because simple switching to console and back doesn't
change engine clock. It would be great to "just know" if
RHDEnterVT(...) was called after console switching or after resuming,
but AFAIK we don't know it.
2) Set engine clock on every RHDEnterVT(...) and restore default speed
on every RHDLeaveVT(...)

Second solution is probably nicer/cleaner. We keep engine clock in
default state after switching from X, but do we actually want/need it?

Please comment, discuss :)

--
Rafał Miłecki
< Previous Next >
Follow Ups