Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
493f189d
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
493f189d
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/object: store object type data outside of handle
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
a1e88736
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
drivers/gpu/drm/nouveau/include/nvkm/core/engctx.h
drivers/gpu/drm/nouveau/include/nvkm/core/engctx.h
+1
-1
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
+1
-1
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
+3
-3
drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
+1
-1
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/core/object.c
drivers/gpu/drm/nouveau/nvkm/core/object.c
+1
-1
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/core/engctx.h
浏览文件 @
493f189d
...
...
@@ -4,7 +4,7 @@
#include <subdev/mmu.h>
#define NV_ENGCTX_(eng,var) (
NV_ENGCTX_CLASS |
((var) << 8) | (eng))
#define NV_ENGCTX_(eng,var) (((var) << 8) | (eng))
#define NV_ENGCTX(name,var) NV_ENGCTX_(NVDEV_ENGINE_##name, (var))
struct
nvkm_engctx
{
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
浏览文件 @
493f189d
...
...
@@ -2,7 +2,7 @@
#define __NVKM_ENGINE_H__
#include <core/subdev.h>
#define NV_ENGINE_(eng,var) (
NV_ENGINE_CLASS |
((var) << 8) | (eng))
#define NV_ENGINE_(eng,var) (((var) << 8) | (eng))
#define NV_ENGINE(name,var) NV_ENGINE_(NVDEV_ENGINE_##name, (var))
struct
nvkm_engine
{
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
浏览文件 @
493f189d
...
...
@@ -11,10 +11,10 @@
#define NV_MEMOBJ_CLASS 0x04000000
#define NV_GPUOBJ_CLASS 0x02000000
#define NV_ENGCTX_CLASS 0x01000000
#define NV_OBJECT_CLASS 0x0000ffff
struct
nvkm_object
{
struct
nvkm_oclass
*
oclass
;
u32
pclass
;
struct
nvkm_object
*
parent
;
struct
nvkm_engine
*
engine
;
atomic_t
refcount
;
...
...
@@ -70,8 +70,8 @@ struct nvkm_oclass {
#define nv_oclass(o) nv_object(o)->oclass
#define nv_hclass(o) nv_oclass(o)->handle
#define nv_iclass(o,i) (nv_
hclass(o)
& (i))
#define nv_mclass(o) nv_
iclass(o, NV_OBJECT_CLASS)
#define nv_iclass(o,i) (nv_
object(o)->pclass
& (i))
#define nv_mclass(o) nv_
oclass(o)->handle
static
inline
struct
nvkm_object
*
nv_pclass
(
struct
nvkm_object
*
parent
,
u32
oclass
)
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
浏览文件 @
493f189d
...
...
@@ -2,7 +2,7 @@
#define __NVKM_SUBDEV_H__
#include <core/object.h>
#define NV_SUBDEV_(sub,var) (
NV_SUBDEV_CLASS |
((var) << 8) | (sub))
#define NV_SUBDEV_(sub,var) (((var) << 8) | (sub))
#define NV_SUBDEV(name,var) NV_SUBDEV_(NVDEV_SUBDEV_##name, (var))
struct
nvkm_subdev
{
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
浏览文件 @
493f189d
...
...
@@ -50,7 +50,7 @@ struct nvkm_fifo_base {
};
#define nvkm_fifo_context_create(p,e,c,g,s,a,f,d) \
nvkm_gpuobj_create((p), (e), (c),
0
, (g), (s), (a), (f), (d))
nvkm_gpuobj_create((p), (e), (c),
NV_ENGCTX_CLASS
, (g), (s), (a), (f), (d))
#define nvkm_fifo_context_destroy(p) \
nvkm_gpuobj_destroy(&(p)->gpuobj)
#define nvkm_fifo_context_init(p) \
...
...
drivers/gpu/drm/nouveau/nvkm/core/object.c
浏览文件 @
493f189d
...
...
@@ -107,7 +107,7 @@ nvkm_object_create_(struct nvkm_object *parent, struct nvkm_object *engine,
nvkm_object_ref
(
parent
,
&
object
->
parent
);
nvkm_object_ref
(
engine
,
(
struct
nvkm_object
**
)
&
object
->
engine
);
object
->
oclass
=
oclass
;
object
->
oclass
->
handle
|
=
pclass
;
object
->
pclass
=
pclass
;
atomic_set
(
&
object
->
refcount
,
1
);
atomic_set
(
&
object
->
usecount
,
0
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录