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:
dd4bb3e
)
drm/nouveau/falcon: switch to new-style timer macros
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:11 +0000
(14:54 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:20 +0000
(12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
b/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
index 03ff19a68985e855b1889aea0964aa031738e5b8..408d9c7d5e908adb4c393760cf6c0925fe0eb351 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
@@
-102,10
+102,17
@@
_nvkm_falcon_init(struct nvkm_object *object)
/* wait for 'uc halted' to be signalled before continuing */
if (falcon->secret && falcon->version < 4) {
- if (!falcon->version)
- nv_wait(falcon, 0x008, 0x00000010, 0x00000010);
- else
- nv_wait(falcon, 0x180, 0x80000000, 0);
+ if (!falcon->version) {
+ nvkm_msec(device, 2000,
+ if (nv_ro32(falcon, 0x008) & 0x00000010)
+ break;
+ );
+ } else {
+ nvkm_msec(device, 2000,
+ if (!(nv_ro32(falcon, 0x180) & 0x80000000))
+ break;
+ );
+ }
nv_wo32(falcon, 0x004, 0x00000010);
}