mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
drm/radeon: fix WREG32_OR macro setting bits in a register
This bug (introduced in 3.10) in WREG32_OR made
commit d3418eacad
"drm/radeon/evergreen: setup HDMI before enabling it"
cause a regression. Sometimes audio over HDMI wasn't working, sometimes
display was corrupted.
This fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=60687
https://bugzilla.kernel.org/show_bug.cgi?id=60709
https://bugs.freedesktop.org/show_bug.cgi?id=67767
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
022374c02e
commit
d43a93c8d9
@ -2163,7 +2163,7 @@ void cik_mm_wdoorbell(struct radeon_device *rdev, u32 offset, u32 v);
|
|||||||
WREG32(reg, tmp_); \
|
WREG32(reg, tmp_); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define WREG32_AND(reg, and) WREG32_P(reg, 0, and)
|
#define WREG32_AND(reg, and) WREG32_P(reg, 0, and)
|
||||||
#define WREG32_OR(reg, or) WREG32_P(reg, or, ~or)
|
#define WREG32_OR(reg, or) WREG32_P(reg, or, ~(or))
|
||||||
#define WREG32_PLL_P(reg, val, mask) \
|
#define WREG32_PLL_P(reg, val, mask) \
|
||||||
do { \
|
do { \
|
||||||
uint32_t tmp_ = RREG32_PLL(reg); \
|
uint32_t tmp_ = RREG32_PLL(reg); \
|
||||||
|
Loading…
Reference in New Issue
Block a user