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
2d5257b7
Commit
2d5257b7
authored
Dec 11, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios: translate additional memory types
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
936a1678
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
+8
-5
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
+4
-1
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
+7
-4
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
+3
-0
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
View file @
2d5257b7
...
...
@@ -12,11 +12,14 @@ u32 nvbios_M0203Tp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
struct
nvbios_M0203T
*
);
struct
nvbios_M0203E
{
#define M0203E_TYPE_DDR2 0x0
#define M0203E_TYPE_DDR3 0x1
#define M0203E_TYPE_GDDR3 0x2
#define M0203E_TYPE_GDDR5 0x3
#define M0203E_TYPE_SKIP 0xf
#define M0203E_TYPE_DDR2 0x0
#define M0203E_TYPE_DDR3 0x1
#define M0203E_TYPE_GDDR3 0x2
#define M0203E_TYPE_GDDR5 0x3
#define M0203E_TYPE_HBM2 0x6
#define M0203E_TYPE_GDDR5X 0x8
#define M0203E_TYPE_GDDR6 0x9
#define M0203E_TYPE_SKIP 0xf
u8
type
;
u8
strap
;
u8
group
;
...
...
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
View file @
2d5257b7
...
...
@@ -105,7 +105,10 @@ enum nvkm_ram_type {
NVKM_RAM_TYPE_GDDR2
,
NVKM_RAM_TYPE_GDDR3
,
NVKM_RAM_TYPE_GDDR4
,
NVKM_RAM_TYPE_GDDR5
NVKM_RAM_TYPE_GDDR5
,
NVKM_RAM_TYPE_GDDR5X
,
NVKM_RAM_TYPE_GDDR6
,
NVKM_RAM_TYPE_HBM2
,
};
struct
nvkm_ram
{
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
View file @
2d5257b7
...
...
@@ -68,10 +68,13 @@ nvkm_fb_bios_memtype(struct nvkm_bios *bios)
if
(
nvbios_M0203Em
(
bios
,
ramcfg
,
&
ver
,
&
hdr
,
&
M0203E
))
{
switch
(
M0203E
.
type
)
{
case
M0203E_TYPE_DDR2
:
return
NVKM_RAM_TYPE_DDR2
;
case
M0203E_TYPE_DDR3
:
return
NVKM_RAM_TYPE_DDR3
;
case
M0203E_TYPE_GDDR3
:
return
NVKM_RAM_TYPE_GDDR3
;
case
M0203E_TYPE_GDDR5
:
return
NVKM_RAM_TYPE_GDDR5
;
case
M0203E_TYPE_DDR2
:
return
NVKM_RAM_TYPE_DDR2
;
case
M0203E_TYPE_DDR3
:
return
NVKM_RAM_TYPE_DDR3
;
case
M0203E_TYPE_GDDR3
:
return
NVKM_RAM_TYPE_GDDR3
;
case
M0203E_TYPE_GDDR5
:
return
NVKM_RAM_TYPE_GDDR5
;
case
M0203E_TYPE_GDDR5X
:
return
NVKM_RAM_TYPE_GDDR5X
;
case
M0203E_TYPE_GDDR6
:
return
NVKM_RAM_TYPE_GDDR6
;
case
M0203E_TYPE_HBM2
:
return
NVKM_RAM_TYPE_HBM2
;
default:
nvkm_warn
(
subdev
,
"M0203E type %02x
\n
"
,
M0203E
.
type
);
return
NVKM_RAM_TYPE_UNKNOWN
;
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
View file @
2d5257b7
...
...
@@ -184,6 +184,9 @@ nvkm_ram_ctor(const struct nvkm_ram_func *func, struct nvkm_fb *fb,
[
NVKM_RAM_TYPE_GDDR3
]
=
"GDDR3"
,
[
NVKM_RAM_TYPE_GDDR4
]
=
"GDDR4"
,
[
NVKM_RAM_TYPE_GDDR5
]
=
"GDDR5"
,
[
NVKM_RAM_TYPE_GDDR5X
]
=
"GDDR5X"
,
[
NVKM_RAM_TYPE_GDDR6
]
=
"GDDR6"
,
[
NVKM_RAM_TYPE_HBM2
]
=
"HBM2"
,
};
struct
nvkm_subdev
*
subdev
=
&
fb
->
subdev
;
int
ret
;
...
...
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