Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
734ee835
Commit
734ee835
authored
Jul 15, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50: use correct PRAMIN flush register on original nv50
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
0edeb0c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nouveau_state.c
+4
-1
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nv50_instmem.c
+8
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
734ee835
...
...
@@ -1028,6 +1028,7 @@ extern void nv50_instmem_clear(struct drm_device *, struct nouveau_gpuobj *);
extern
int
nv50_instmem_bind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nv50_instmem_unbind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
void
nv50_instmem_flush
(
struct
drm_device
*
);
extern
void
nv84_instmem_flush
(
struct
drm_device
*
);
extern
void
nv50_vm_flush
(
struct
drm_device
*
,
int
engine
);
/* nv04_mc.c */
...
...
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
734ee835
...
...
@@ -266,7 +266,10 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
engine
->
instmem
.
clear
=
nv50_instmem_clear
;
engine
->
instmem
.
bind
=
nv50_instmem_bind
;
engine
->
instmem
.
unbind
=
nv50_instmem_unbind
;
engine
->
instmem
.
flush
=
nv50_instmem_flush
;
if
(
dev_priv
->
chipset
==
0x50
)
engine
->
instmem
.
flush
=
nv50_instmem_flush
;
else
engine
->
instmem
.
flush
=
nv84_instmem_flush
;
engine
->
mc
.
init
=
nv50_mc_init
;
engine
->
mc
.
takedown
=
nv50_mc_takedown
;
engine
->
timer
.
init
=
nv04_timer_init
;
...
...
drivers/gpu/drm/nouveau/nv50_instmem.c
View file @
734ee835
...
...
@@ -485,6 +485,14 @@ nv50_instmem_unbind(struct drm_device *dev, struct nouveau_gpuobj *gpuobj)
void
nv50_instmem_flush
(
struct
drm_device
*
dev
)
{
nv_wr32
(
dev
,
0x00330c
,
0x00000001
);
if
(
!
nv_wait
(
0x00330c
,
0x00000001
,
0x00000000
))
NV_ERROR
(
dev
,
"PRAMIN flush timeout
\n
"
);
}
void
nv84_instmem_flush
(
struct
drm_device
*
dev
)
{
nv_wr32
(
dev
,
0x070000
,
0x00000001
);
if
(
!
nv_wait
(
0x070000
,
0x00000001
,
0x00000000
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment