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
d4547ed8
Commit
d4547ed8
authored
Oct 27, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0/vram: skip disabled PBFB subunits
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
2bfa7482
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/gpu/drm/nouveau/nvc0_vram.c
drivers/gpu/drm/nouveau/nvc0_vram.c
+9
-5
No files found.
drivers/gpu/drm/nouveau/nvc0_vram.c
View file @
d4547ed8
...
@@ -110,22 +110,26 @@ nvc0_vram_init(struct drm_device *dev)
...
@@ -110,22 +110,26 @@ nvc0_vram_init(struct drm_device *dev)
u32
bsize
=
nv_rd32
(
dev
,
0x10f20c
);
u32
bsize
=
nv_rd32
(
dev
,
0x10f20c
);
u32
offset
,
length
;
u32
offset
,
length
;
bool
uniform
=
true
;
bool
uniform
=
true
;
int
ret
,
i
;
int
ret
,
part
;
NV_DEBUG
(
dev
,
"0x100800: 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x100800
));
NV_DEBUG
(
dev
,
"0x100800: 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x100800
));
NV_DEBUG
(
dev
,
"parts 0x%08x bcast_mem_amount 0x%08x
\n
"
,
parts
,
bsize
);
NV_DEBUG
(
dev
,
"parts 0x%08x bcast_mem_amount 0x%08x
\n
"
,
parts
,
bsize
);
/* read amount of vram attached to each memory controller */
/* read amount of vram attached to each memory controller */
for
(
i
=
0
;
i
<
parts
;
i
++
)
{
part
=
0
;
u32
psize
=
nv_rd32
(
dev
,
0x11020c
+
(
i
*
0x1000
));
while
(
parts
)
{
u32
psize
=
nv_rd32
(
dev
,
0x11020c
+
(
part
++
*
0x1000
));
if
(
psize
==
0
)
continue
;
parts
--
;
if
(
psize
!=
bsize
)
{
if
(
psize
!=
bsize
)
{
if
(
psize
<
bsize
)
if
(
psize
<
bsize
)
bsize
=
psize
;
bsize
=
psize
;
uniform
=
false
;
uniform
=
false
;
}
}
NV_DEBUG
(
dev
,
"%d: mem_amount 0x%08x
\n
"
,
i
,
psize
);
NV_DEBUG
(
dev
,
"%d: mem_amount 0x%08x
\n
"
,
part
,
psize
);
dev_priv
->
vram_size
+=
(
u64
)
psize
<<
20
;
dev_priv
->
vram_size
+=
(
u64
)
psize
<<
20
;
}
}
...
...
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