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
3d483d57
Commit
3d483d57
authored
Jun 07, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0: explicitly map PDISP semaphore buffer into each channel's vm
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9f9f51fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_object.c
+16
-0
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+2
-2
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
3d483d57
...
...
@@ -293,6 +293,7 @@ struct nouveau_channel {
uint32_t
sw_subchannel
[
8
];
struct
nouveau_vma
dispc_vma
[
2
];
struct
{
struct
nouveau_gpuobj
*
vblsem
;
uint32_t
vblsem_head
;
...
...
drivers/gpu/drm/nouveau/nouveau_object.c
View file @
3d483d57
...
...
@@ -717,6 +717,17 @@ nouveau_gpuobj_channel_init(struct nouveau_channel *chan,
nv_wo32
(
chan
->
ramin
,
0x0204
,
upper_32_bits
(
vpgd
->
obj
->
vinst
));
nv_wo32
(
chan
->
ramin
,
0x0208
,
0xffffffff
);
nv_wo32
(
chan
->
ramin
,
0x020c
,
0x000000ff
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
struct
nv50_display_crtc
*
dispc
=
&
nv50_display
(
dev
)
->
crtc
[
i
];
ret
=
nouveau_bo_vma_add
(
dispc
->
sem
.
bo
,
chan
->
vm
,
&
chan
->
dispc_vma
[
i
]);
if
(
ret
)
return
ret
;
}
return
0
;
}
...
...
@@ -841,9 +852,14 @@ void
nouveau_gpuobj_channel_takedown
(
struct
nouveau_channel
*
chan
)
{
struct
drm_device
*
dev
=
chan
->
dev
;
int
i
;
NV_DEBUG
(
dev
,
"ch%d
\n
"
,
chan
->
id
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
struct
nv50_display_crtc
*
dispc
=
&
nv50_display
(
dev
)
->
crtc
[
i
];
nouveau_bo_vma_del
(
dispc
->
sem
.
bo
,
&
chan
->
dispc_vma
[
i
]);
}
nouveau_vm_ref
(
NULL
,
&
chan
->
vm
,
chan
->
vm_pd
);
nouveau_gpuobj_ref
(
NULL
,
&
chan
->
vm_pd
);
...
...
drivers/gpu/drm/nouveau/nv50_display.c
View file @
3d483d57
...
...
@@ -415,8 +415,6 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
/* synchronise with the rendering channel, if necessary */
if
(
likely
(
chan
))
{
u64
offset
=
dispc
->
sem
.
bo
->
vma
.
offset
+
dispc
->
sem
.
offset
;
ret
=
RING_SPACE
(
chan
,
10
);
if
(
ret
)
{
WIND_RING
(
evo
);
...
...
@@ -438,6 +436,8 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
else
OUT_RING
(
chan
,
chan
->
vram_handle
);
}
else
{
u64
offset
=
chan
->
dispc_vma
[
nv_crtc
->
index
].
offset
;
offset
+=
dispc
->
sem
.
offset
;
BEGIN_NVC0
(
chan
,
2
,
NvSubM2MF
,
0x0010
,
4
);
OUT_RING
(
chan
,
upper_32_bits
(
offset
));
OUT_RING
(
chan
,
lower_32_bits
(
offset
));
...
...
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