]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/radeon/kms/igp: fix possible divide by 0 in bandwidth code (v2)
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 30 Jun 2010 16:02:03 +0000 (12:02 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Jul 2010 01:59:42 +0000 (11:59 +1000)
commitf892034a8ce80ed7098f667aae2eb6300e570603
tree0726b5dfb12cf3adfea88c5e9949c21528ff4ff2
parent580b4fffbbdc3c899ee1f8189ba321bd60b48840
drm/radeon/kms/igp: fix possible divide by 0 in bandwidth code (v2)

Some IGP systems specify the system memory clock in the Firmware
table rather than the IGP info table.  Check both and make sure
we have a value system memory clock value.

v2: make sure rs690_pm_info is called on rs780/rs880 as well.

fixes a regression since 07d4190327b02ab3aaad25a2d168f79d92e8f8c2.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/rs690.c