projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3db0fdb
)
drm/nouveau/device: use an additional bit from NV_PMC_BOOT_0 to identify chipset
author
Ben Skeggs
<bskeggs@redhat.com>
Fri, 27 Sep 2013 21:31:07 +0000
(07:31 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Fri, 8 Nov 2013 05:37:44 +0000
(15:37 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/device/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/engine/device/base.c
b/drivers/gpu/drm/nouveau/core/engine/device/base.c
index de1e9eca0151c927586dc965a034339de4b7a9ed..1485d7c352db90727719ac5daeb3148f41a88e72 100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/engine/device/base.c
+++ b/
drivers/gpu/drm/nouveau/core/engine/device/base.c
@@
-158,9
+158,9
@@
nouveau_devobj_ctor(struct nouveau_object *parent,
iounmap(map);
/* determine chipset and derive architecture from it */
- if ((boot0 & 0x
0
f000000) > 0) {
- device->chipset = (boot0 & 0xff00000) >> 20;
- switch (device->chipset & 0xf0) {
+ if ((boot0 & 0x
1
f000000) > 0) {
+ device->chipset = (boot0 & 0x
1
ff00000) >> 20;
+ switch (device->chipset & 0x
1
f0) {
case 0x10: {
if (0x461 & (1 << (device->chipset & 0xf)))
device->card_type = NV_10;