drm/radeon/kms/pm: add support for no display power states
The lowest power states often cause display problems, so only enable them when all displays are off. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

committed by
Dave Airlie

parent
ca2af92311
commit
d7311171c4
@@ -658,6 +658,9 @@ struct radeon_voltage {
|
||||
u32 voltage;
|
||||
};
|
||||
|
||||
/* clock mode flags */
|
||||
#define RADEON_PM_MODE_NO_DISPLAY (1 << 0)
|
||||
|
||||
struct radeon_pm_clock_info {
|
||||
/* memory clock */
|
||||
u32 mclk;
|
||||
@@ -665,12 +668,12 @@ struct radeon_pm_clock_info {
|
||||
u32 sclk;
|
||||
/* voltage info */
|
||||
struct radeon_voltage voltage;
|
||||
/* standardized clock flags - not sure we'll need these */
|
||||
/* standardized clock flags */
|
||||
u32 flags;
|
||||
};
|
||||
|
||||
/* state flags */
|
||||
#define RADEON_PM_SINGLE_DISPLAY_ONLY (1 << 0)
|
||||
#define RADEON_PM_STATE_SINGLE_DISPLAY_ONLY (1 << 0)
|
||||
|
||||
struct radeon_power_state {
|
||||
enum radeon_pm_state_type type;
|
||||
|
Reference in New Issue
Block a user