提交 22827fa4 编写于 作者: B Ben Skeggs

drm/nouveau/nvif: return chipset/board names from device info method

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 d5624179
......@@ -153,6 +153,8 @@ struct nv_device_info_v0 {
__u8 pad06[2];
__u64 ram_size;
__u64 ram_user;
char chip[16];
char name[64];
};
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册