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
d979ab97
Commit
d979ab97
authored
Aug 12, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/core/mm: modify test for if building a mm with holes in it
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
79456e1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
drivers/gpu/drm/nouveau/core/core/mm.c
drivers/gpu/drm/nouveau/core/core/mm.c
+3
-1
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/core/core/mm.c
View file @
d979ab97
...
...
@@ -211,7 +211,9 @@ nouveau_mm_init(struct nouveau_mm *mm, u32 offset, u32 length, u32 block)
{
struct
nouveau_mm_node
*
node
;
if
(
block
)
{
if
(
nouveau_mm_initialised
(
mm
))
{
BUG_ON
(
block
!=
mm
->
block_size
);
}
else
{
INIT_LIST_HEAD
(
&
mm
->
nodes
);
INIT_LIST_HEAD
(
&
mm
->
free
);
mm
->
block_size
=
block
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
View file @
d979ab97
...
...
@@ -562,7 +562,7 @@ nvc0_ram_create_(struct nouveau_object *parent, struct nouveau_object *engine,
offset
=
(
0x0200000000ULL
>>
12
)
+
(
bsize
<<
8
);
length
=
(
ram
->
size
>>
12
)
-
((
bsize
*
parts
)
<<
8
)
-
rsvd_tail
;
ret
=
nouveau_mm_init
(
&
pfb
->
vram
,
offset
,
length
,
0
);
ret
=
nouveau_mm_init
(
&
pfb
->
vram
,
offset
,
length
,
1
);
if
(
ret
)
nouveau_mm_fini
(
&
pfb
->
vram
);
}
...
...
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