Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282737
b: refs/heads/master
c: 3df9690
h: refs/heads/master
i:
  282735: c16dd01
v: v3
  • Loading branch information
Michel Dänzer authored and Dave Airlie committed Jan 6, 2012
1 parent d3684d4 commit 0b233fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dea7e0ac45fd28f90bbc38ff226d36a9f788efbf
refs/heads/master: 3df96909b75835d487a9178761622b0cbd7310d4
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/radeon/r100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,7 @@ bool r100_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
void r100_bm_disable(struct radeon_device *rdev)
{
u32 tmp;
u16 tmp16;

/* disable bus mastering */
tmp = RREG32(R_000030_BUS_CNTL);
Expand All @@ -2196,8 +2197,8 @@ void r100_bm_disable(struct radeon_device *rdev)
WREG32(R_000030_BUS_CNTL, (tmp & 0xFFFFFFFF) | 0x00000040);
tmp = RREG32(RADEON_BUS_CNTL);
mdelay(1);
pci_read_config_word(rdev->pdev, 0x4, (u16*)&tmp);
pci_write_config_word(rdev->pdev, 0x4, tmp & 0xFFFB);
pci_read_config_word(rdev->pdev, 0x4, &tmp16);
pci_write_config_word(rdev->pdev, 0x4, tmp16 & 0xFFFB);
mdelay(1);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/radeon/rs600.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ void rs600_hpd_fini(struct radeon_device *rdev)

void rs600_bm_disable(struct radeon_device *rdev)
{
u32 tmp;
u16 tmp;

/* disable bus mastering */
pci_read_config_word(rdev->pdev, 0x4, (u16*)&tmp);
pci_read_config_word(rdev->pdev, 0x4, &tmp);
pci_write_config_word(rdev->pdev, 0x4, tmp & 0xFFFB);
mdelay(1);
}
Expand Down

0 comments on commit 0b233fa

Please sign in to comment.