Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
494ab824
Commit
494ab824
authored
Mar 19, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50: fix instmem init on IGPs if stolen mem crosses 4GiB mark
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
2eb92c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nv50_instmem.c
+4
-3
No files found.
drivers/gpu/drm/nouveau/nv50_instmem.c
View file @
494ab824
...
...
@@ -63,9 +63,10 @@ nv50_instmem_init(struct drm_device *dev)
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_channel
*
chan
;
uint32_t
c_offset
,
c_size
,
c_ramfc
,
c_vmpd
,
c_base
,
pt_size
;
uint32_t
save_nv001700
;
uint64_t
v
;
struct
nv50_instmem_priv
*
priv
;
int
ret
,
i
;
uint32_t
v
,
save_nv001700
;
priv
=
kzalloc
(
sizeof
(
*
priv
),
GFP_KERNEL
);
if
(
!
priv
)
...
...
@@ -184,8 +185,8 @@ nv50_instmem_init(struct drm_device *dev)
i
=
0
;
while
(
v
<
dev_priv
->
vram_sys_base
+
c_offset
+
c_size
)
{
BAR0_WI32
(
priv
->
pramin_pt
->
gpuobj
,
i
+
0
,
v
);
BAR0_WI32
(
priv
->
pramin_pt
->
gpuobj
,
i
+
4
,
0x00000000
);
BAR0_WI32
(
priv
->
pramin_pt
->
gpuobj
,
i
+
0
,
lower_32_bits
(
v
)
);
BAR0_WI32
(
priv
->
pramin_pt
->
gpuobj
,
i
+
4
,
upper_32_bits
(
v
)
);
v
+=
0x1000
;
i
+=
8
;
}
...
...
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