]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/radeon/kms: make sure pci max read request size is valid on evergreen+ (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2011 17:46:15 +0000 (17:46 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:04 +0000 (11:40 -0700)
commit10927d967aa3e7031b0a573be8f002af607e6227
tree890f4f10ba071cc90cfbd07c2658a926b9aaf705
parent34b64435133e6feea81571344077738cfd4f7ede
drm/radeon/kms: make sure pci max read request size is valid on evergreen+ (v2)

commit d054ac16eeb658bccadb06b12c39cee22243b10f upstream.

If the bios or OS sets the pci max read request size to 0 or an
invalid value (6,7), it can result in a hang or slowdown.  Check
and set it to something sane if it's invalid.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=42162

v2: use pci reg defines from include/linux/pci_regs.h

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c