Skip to content

Commit efc4918

Browse files
davem330torvalds
authored andcommitted
radeon: misc corrections
I have a new PCI-E radeon RV380 series card (PCI device ID 5b64) that hangs in my sparc64 boxes when the init scripts set the font. The problem goes away if I disable acceleration. I haven't figured out that bug yet, but along the way I found some corrections to make based upon some auditing. 1) The RB2D_DC_FLUSH_ALL value used by the kernel fb driver and the XORG video driver differ. I've made the kernel match what XORG is using. 2) In radeonfb_engine_reset() we have top-level code structure that roughly looks like: if (family is 300, 350, or V350) do this; else do that; ... if (family is NOT 300, OR family is NOT 350, OR family is NOT V350) do another thing; this last conditional makes no sense, is always true, and obviously was likely meant to be "family is NOT 300, 350, or V350". So I've made the code match the intent. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f6ac436 commit efc4918

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎drivers/video/aty/radeon_accel.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ void radeonfb_engine_reset(struct radeonfb_info *rinfo)
241241
INREG(HOST_PATH_CNTL);
242242
OUTREG(HOST_PATH_CNTL, host_path_cntl);
243243

244-
if (rinfo->family != CHIP_FAMILY_R300 ||
245-
rinfo->family != CHIP_FAMILY_R350 ||
244+
if (rinfo->family != CHIP_FAMILY_R300 &&
245+
rinfo->family != CHIP_FAMILY_R350 &&
246246
rinfo->family != CHIP_FAMILY_RV350)
247247
OUTREG(RBBM_SOFT_RESET, rbbm_soft_reset);
248248

‎include/video/radeon.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,9 @@
527527

528528

529529
/* DSTCACHE_CTLSTAT bit constants */
530-
#define RB2D_DC_FLUSH (3 << 0)
531-
#define RB2D_DC_FLUSH_ALL 0xf
530+
#define RB2D_DC_FLUSH_2D (1 << 0)
531+
#define RB2D_DC_FREE_2D (1 << 2)
532+
#define RB2D_DC_FLUSH_ALL (RB2D_DC_FLUSH_2D | RB2D_DC_FREE_2D)
532533
#define RB2D_DC_BUSY (1 << 31)
533534

534535

0 commit comments

Comments
 (0)