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
ea8b4a38
Commit
ea8b4a38
authored
Dec 02, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/fb/gddr5: found LP3 setting
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
971372ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
+3
-2
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
+5
-5
No files found.
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
View file @
ea8b4a38
...
...
@@ -29,7 +29,7 @@ int
nouveau_gddr5_calc
(
struct
nouveau_ram
*
ram
,
bool
nuts
)
{
struct
nouveau_bios
*
bios
=
nouveau_bios
(
ram
);
int
pd
,
lf
,
xd
,
vh
,
vr
,
vo
;
int
pd
,
lf
,
xd
,
vh
,
vr
,
vo
,
l3
;
int
WL
,
CL
,
WR
,
at
[
2
],
dt
,
ds
;
int
rq
=
ram
->
freq
<
1000000
;
/* XXX */
...
...
@@ -41,6 +41,7 @@ nouveau_gddr5_calc(struct nouveau_ram *ram, bool nuts)
vh
=
(
nv_ro08
(
bios
,
ram
->
ramcfg
.
data
+
0x02
)
&
0x10
)
>>
4
;
vr
=
(
nv_ro08
(
bios
,
ram
->
ramcfg
.
data
+
0x02
)
&
0x04
)
>>
2
;
vo
=
nv_ro08
(
bios
,
ram
->
ramcfg
.
data
+
0x06
)
&
0xff
;
l3
=
!
(
nv_ro08
(
bios
,
ram
->
ramcfg
.
data
+
0x07
)
&
0x02
);
break
;
default:
return
-
ENOSYS
;
...
...
@@ -88,8 +89,8 @@ nouveau_gddr5_calc(struct nouveau_ram *ram, bool nuts)
ram
->
mr
[
3
]
&=
~
0x020
;
ram
->
mr
[
3
]
|=
(
rq
&
0x01
)
<<
5
;
/*XXX: LP3, where's the bit? Let's hardcode to off for now */
ram
->
mr
[
5
]
&=
~
0x004
;
ram
->
mr
[
5
]
|=
(
l3
<<
2
);
if
(
!
vo
)
vo
=
(
ram
->
mr
[
6
]
&
0xff0
)
>>
4
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
View file @
ea8b4a38
...
...
@@ -638,16 +638,16 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
data
=
0xa40e0000
;
}
nve0_ram_train
(
fuc
,
0xbc0f0000
,
data
);
ram_nsec
(
fuc
,
1000
);
if
(
1
)
/* XXX: not always? */
ram_nsec
(
fuc
,
1000
);
if
(
ram
->
mode
==
2
)
{
/*XXX*/
ram_mask
(
fuc
,
0x10f800
,
0x00000004
,
0x00000004
);
}
/* MR5: (re)enable LP3 if necessary
* XXX: need to find the switch, keeping off for now
*/
ram_mask
(
fuc
,
mr
[
5
],
0xfff
,
ram
->
base
.
mr
[
5
]);
/* LP3 */
if
(
ram_mask
(
fuc
,
mr
[
5
],
0x004
,
ram
->
base
.
mr
[
5
])
!=
ram
->
base
.
mr
[
5
])
ram_nsec
(
fuc
,
1000
);
if
(
ram
->
mode
!=
2
)
{
ram_mask
(
fuc
,
0x10f830
,
0x01000000
,
0x01000000
);
...
...
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