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
09692e5b
Commit
09692e5b
authored
11 years ago
by
Ben Skeggs
Browse files
Options
Download
Email Patches
Plain Diff
drm/nve0/fb/gddr5: note another semi-unknown
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
1e1d6b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
+17
-14
No files found.
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
View file @
09692e5b
...
@@ -466,20 +466,23 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
...
@@ -466,20 +466,23 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
ram_mask(fuc, 0x10f2cc, 0xffffffff, nv_ro32(bios, timing + 0x20));
ram_mask(fuc, 0x10f2cc, 0xffffffff, nv_ro32(bios, timing + 0x20));
ram_mask(fuc, 0x10f2e8, 0xffffffff, nv_ro32(bios, timing + 0x24));
ram_mask(fuc, 0x10f2e8, 0xffffffff, nv_ro32(bios, timing + 0x24));
data
=
(
nv_ro08
(
bios
,
ramcfg
+
0x02
)
&
0x03
)
<<
8
;
/*XXX: what's the condition here? */
if
(
nv_ro08
(
bios
,
ramcfg
+
0x01
)
&
0x10
)
if (1) {
data
|=
0x70000000
;
data = (nv_ro08(bios, ramcfg + 0x02) & 0x03) << 8;
ram_mask
(
fuc
,
0x10f604
,
0x70000300
,
data
);
if (nv_ro08(bios, ramcfg + 0x01) & 0x10)
data |= 0x70000000;
data
=
(
nv_ro08
(
bios
,
timing
+
0x30
)
&
0x07
)
<<
28
;
ram_mask(fuc, 0x10f604, 0x70000300, data);
if
(
nv_ro08
(
bios
,
ramcfg
+
0x01
)
&
0x01
)
data
|=
0x00000100
;
data = (nv_ro08(bios, timing + 0x30) & 0x07) << 28;
ram_mask
(
fuc
,
0x10f614
,
0x70000000
,
data
);
if (nv_ro08(bios, ramcfg + 0x01) & 0x01)
data |= 0x00000100;
data
=
(
nv_ro08
(
bios
,
timing
+
0x30
)
&
0x07
)
<<
28
;
ram_mask(fuc, 0x10f614, 0x70000000, data);
if
(
nv_ro08
(
bios
,
ramcfg
+
0x01
)
&
0x02
)
data
|=
0x00000100
;
data = (nv_ro08(bios, timing + 0x30) & 0x07) << 28;
ram_mask
(
fuc
,
0x10f610
,
0x70000000
,
data
);
if (nv_ro08(bios, ramcfg + 0x01) & 0x02)
data |= 0x00000100;
ram_mask(fuc, 0x10f610, 0x70000000, data);
}
mask = 0x33f00000;
mask = 0x33f00000;
data = 0x00000000;
data = 0x00000000;
...
...
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