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
Kirill Smelkov
linux
Commits
547ad072
Commit
547ad072
authored
Nov 10, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/kms: when pinning display-related buffers, force contig vram
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ad76b3f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.c
+3
-3
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+4
-4
No files found.
drivers/gpu/drm/nouveau/nouveau_display.c
View file @
547ad072
...
...
@@ -592,7 +592,7 @@ nouveau_display_resume(struct drm_device *dev, bool runtime)
if
(
!
nouveau_fb
||
!
nouveau_fb
->
nvbo
)
continue
;
ret
=
nouveau_bo_pin
(
nouveau_fb
->
nvbo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
nouveau_fb
->
nvbo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
ret
)
NV_ERROR
(
drm
,
"Could not pin framebuffer
\n
"
);
}
...
...
@@ -600,7 +600,7 @@ nouveau_display_resume(struct drm_device *dev, bool runtime)
list_for_each_entry
(
crtc
,
&
dev
->
mode_config
.
crtc_list
,
head
)
{
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
ret
=
nouveau_bo_pin
(
nv_crtc
->
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
nv_crtc
->
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
!
ret
)
ret
=
nouveau_bo_map
(
nv_crtc
->
cursor
.
nvbo
);
if
(
ret
)
...
...
@@ -713,7 +713,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
return
-
ENOMEM
;
if
(
new_bo
!=
old_bo
)
{
ret
=
nouveau_bo_pin
(
new_bo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
new_bo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
ret
)
goto
fail_free
;
}
...
...
drivers/gpu/drm/nouveau/nv50_display.c
View file @
547ad072
...
...
@@ -1073,7 +1073,7 @@ nv50_crtc_swap_fbs(struct drm_crtc *crtc, struct drm_framebuffer *old_fb)
struct
nv50_head
*
head
=
nv50_head
(
crtc
);
int
ret
;
ret
=
nouveau_bo_pin
(
nvfb
->
nvbo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
nvfb
->
nvbo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
ret
==
0
)
{
if
(
head
->
image
)
nouveau_bo_unpin
(
head
->
image
);
...
...
@@ -1402,7 +1402,7 @@ nv50_crtc_create(struct drm_device *dev, int index)
ret
=
nouveau_bo_new
(
dev
,
8192
,
0x100
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
NULL
,
NULL
,
&
head
->
base
.
lut
.
nvbo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
head
->
base
.
lut
.
nvbo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
head
->
base
.
lut
.
nvbo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
!
ret
)
{
ret
=
nouveau_bo_map
(
head
->
base
.
lut
.
nvbo
);
if
(
ret
)
...
...
@@ -1425,7 +1425,7 @@ nv50_crtc_create(struct drm_device *dev, int index)
ret
=
nouveau_bo_new
(
dev
,
64
*
64
*
4
,
0x100
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
NULL
,
NULL
,
&
head
->
base
.
cursor
.
nvbo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
head
->
base
.
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
head
->
base
.
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
!
ret
)
{
ret
=
nouveau_bo_map
(
head
->
base
.
cursor
.
nvbo
);
if
(
ret
)
...
...
@@ -2487,7 +2487,7 @@ nv50_display_create(struct drm_device *dev)
ret
=
nouveau_bo_new
(
dev
,
4096
,
0x1000
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
NULL
,
NULL
,
&
disp
->
sync
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
disp
->
sync
,
TTM_PL_FLAG_VRAM
,
fals
e
);
ret
=
nouveau_bo_pin
(
disp
->
sync
,
TTM_PL_FLAG_VRAM
,
tru
e
);
if
(
!
ret
)
{
ret
=
nouveau_bo_map
(
disp
->
sync
);
if
(
ret
)
...
...
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