Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
b13d0e4a
Commit
b13d0e4a
authored
11 years ago
by
Ben Skeggs
Browse files
Options
Download
Email Patches
Plain Diff
drm/nve0/fb/gddr5: yet another random 10f200 bit
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c814a60d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
+1
-0
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
+8
-0
No files found.
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
View file @
b13d0e4a
...
...
@@ -40,6 +40,7 @@ struct nvbios_ramcfg {
unsigned
ramcfg_11_08_04
:
1
;
unsigned
ramcfg_11_08_08
:
1
;
unsigned
ramcfg_11_08_10
:
1
;
unsigned
ramcfg_11_08_20
:
1
;
unsigned
ramcfg_11_09
:
8
;
unsigned
timing
[
11
];
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
View file @
b13d0e4a
...
...
@@ -162,6 +162,7 @@ nvbios_rammapSp(struct nouveau_bios *bios, u32 data,
p
->
ramcfg_11_08_04
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x04
)
>>
2
;
p
->
ramcfg_11_08_08
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x08
)
>>
3
;
p
->
ramcfg_11_08_10
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x10
)
>>
4
;
p
->
ramcfg_11_08_20
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x20
)
>>
5
;
p
->
ramcfg_11_09
=
(
nv_ro08
(
bios
,
data
+
0x09
)
&
0xff
)
>>
0
;
break
;
default:
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
View file @
b13d0e4a
...
...
@@ -476,6 +476,14 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
ram_mask
(
fuc
,
0x10f2cc
,
0xffffffff
,
next
->
bios
.
timing
[
8
]);
ram_mask
(
fuc
,
0x10f2e8
,
0xffffffff
,
next
->
bios
.
timing
[
9
]);
data
=
mask
=
0x00000000
;
if
(
NOTE00
(
ramcfg_08_20
))
{
if
(
next
->
bios
.
ramcfg_11_08_20
)
data
|=
0x01000000
;
mask
|=
0x01000000
;
}
ram_mask
(
fuc
,
0x10f200
,
mask
,
data
);
data
=
mask
=
0x00000000
;
if
(
NOTE00
(
ramcfg_02_03
!=
0
))
{
data
|=
(
next
->
bios
.
ramcfg_11_02_03
)
<<
8
;
...
...
This diff is collapsed.
Click to expand it.
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