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
1a894c06
Commit
1a894c06
authored
Dec 03, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fb/gddr5: make sure we update mr7 when we're supposed to
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
a8ccbb77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
+13
-4
No files found.
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c
View file @
1a894c06
...
...
@@ -25,6 +25,14 @@
#include <subdev/bios.h>
#include "priv.h"
/* binary driver only executes this path if the condition (a) is true
* for any configuration (combination of rammap+ramcfg+timing) that
* can be reached on a given card. for now, we will execute the branch
* unconditionally in the hope that a "false everywhere" in the bios
* tables doesn't actually mean "don't touch this".
*/
#define NOTE00(a) 1
int
nouveau_gddr5_calc
(
struct
nouveau_ram
*
ram
,
bool
nuts
)
{
...
...
@@ -99,10 +107,11 @@ nouveau_gddr5_calc(struct nouveau_ram *ram, bool nuts)
ram
->
mr
[
6
]
|=
(
vo
&
0xff
)
<<
4
;
ram
->
mr
[
6
]
|=
(
pd
&
0x01
)
<<
0
;
if
(
!
(
ram
->
mr
[
7
]
&
0x100
))
vr
=
0
;
/* binary driver does this.. bug? */
ram
->
mr
[
7
]
&=
~
0x388
;
ram
->
mr
[
7
]
|=
(
vr
&
0x03
)
<<
8
;
if
(
NOTE00
(
vr
))
{
ram
->
mr
[
7
]
&=
~
0x300
;
ram
->
mr
[
7
]
|=
(
vr
&
0x03
)
<<
8
;
}
ram
->
mr
[
7
]
&=
~
0x088
;
ram
->
mr
[
7
]
|=
(
vh
&
0x01
)
<<
7
;
ram
->
mr
[
7
]
|=
(
lf
&
0x01
)
<<
3
;
...
...
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