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
5af430ab
Commit
5af430ab
authored
Sep 03, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios: parse another large chunk of random memory config data
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
91e4611d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
+11
-0
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
+13
-1
No files found.
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
View file @
5af430ab
...
...
@@ -11,6 +11,17 @@ struct nvbios_ramcfg {
unsigned
rammap_11_08_01
:
1
;
unsigned
rammap_11_08_0c
:
2
;
unsigned
rammap_11_08_10
:
1
;
unsigned
rammap_11_09_01ff
:
9
;
unsigned
rammap_11_0a_03fe
:
9
;
unsigned
rammap_11_0a_0400
:
1
;
unsigned
rammap_11_0a_0800
:
1
;
unsigned
rammap_11_0b_01f0
:
5
;
unsigned
rammap_11_0b_0200
:
1
;
unsigned
rammap_11_0b_0400
:
1
;
unsigned
rammap_11_0b_0800
:
1
;
unsigned
rammap_11_0d
:
8
;
unsigned
rammap_11_0e
:
8
;
unsigned
rammap_11_0f
:
8
;
unsigned
rammap_11_11_0c
:
2
;
unsigned
ramcfg_ver
;
...
...
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c
View file @
5af430ab
...
...
@@ -79,7 +79,7 @@ nvbios_rammapEp(struct nouveau_bios *bios, int idx,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
,
struct
nvbios_ramcfg
*
p
)
{
u32
data
=
nvbios_rammapEe
(
bios
,
idx
,
ver
,
hdr
,
cnt
,
len
);
u32
data
=
nvbios_rammapEe
(
bios
,
idx
,
ver
,
hdr
,
cnt
,
len
)
,
temp
;
memset
(
p
,
0x00
,
sizeof
(
*
p
));
p
->
rammap_ver
=
*
ver
;
p
->
rammap_hdr
=
*
hdr
;
...
...
@@ -90,6 +90,18 @@ nvbios_rammapEp(struct nouveau_bios *bios, int idx,
p
->
rammap_11_08_01
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x01
)
>>
0
;
p
->
rammap_11_08_0c
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x0c
)
>>
2
;
p
->
rammap_11_08_10
=
(
nv_ro08
(
bios
,
data
+
0x08
)
&
0x10
)
>>
4
;
temp
=
nv_ro32
(
bios
,
data
+
0x09
);
p
->
rammap_11_09_01ff
=
(
temp
&
0x000001ff
)
>>
0
;
p
->
rammap_11_0a_03fe
=
(
temp
&
0x0003fe00
)
>>
9
;
p
->
rammap_11_0a_0400
=
(
temp
&
0x00040000
)
>>
18
;
p
->
rammap_11_0a_0800
=
(
temp
&
0x00080000
)
>>
19
;
p
->
rammap_11_0b_01f0
=
(
temp
&
0x01f00000
)
>>
20
;
p
->
rammap_11_0b_0200
=
(
temp
&
0x02000000
)
>>
25
;
p
->
rammap_11_0b_0400
=
(
temp
&
0x04000000
)
>>
26
;
p
->
rammap_11_0b_0800
=
(
temp
&
0x08000000
)
>>
27
;
p
->
rammap_11_0d
=
nv_ro08
(
bios
,
data
+
0x0d
);
p
->
rammap_11_0e
=
nv_ro08
(
bios
,
data
+
0x0e
);
p
->
rammap_11_0f
=
nv_ro08
(
bios
,
data
+
0x0f
);
p
->
rammap_11_11_0c
=
(
nv_ro08
(
bios
,
data
+
0x11
)
&
0x0c
)
>>
2
;
break
;
default:
...
...
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