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
22827fa4
Commit
22827fa4
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/nvif: return chipset/board names from device info method
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d5624179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c
+2
-0
No files found.
drivers/gpu/drm/nouveau/include/nvif/class.h
View file @
22827fa4
...
...
@@ -153,6 +153,8 @@ struct nv_device_info_v0 {
__u8
pad06
[
2
];
__u64
ram_size
;
__u64
ram_user
;
char
chip
[
16
];
char
name
[
64
];
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c
View file @
22827fa4
...
...
@@ -106,6 +106,8 @@ nvkm_udevice_info(struct nvkm_object *object, void *data, u32 size)
if
(
imem
&&
args
->
v0
.
ram_size
>
0
)
args
->
v0
.
ram_user
=
args
->
v0
.
ram_user
-
imem
->
reserved
;
strncpy
(
args
->
v0
.
chip
,
device
->
cname
,
sizeof
(
args
->
v0
.
chip
));
strncpy
(
args
->
v0
.
name
,
device
->
cname
,
sizeof
(
args
->
v0
.
name
));
return
0
;
}
...
...
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