Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
0233a9f4
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0233a9f4
编写于
12月 21, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/nv50-mcp89: add defines for gr classes
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
1894054d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
56 addition
and
32 deletion
+56
-32
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+12
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c
+7
-5
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt200.c
+7
-5
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt215.c
+8
-6
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp79.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp79.c
+7
-5
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp89.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp89.c
+8
-6
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c
+7
-5
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
0233a9f4
...
...
@@ -11,14 +11,18 @@
#define NVIF_CLASS_SW_GF100
/* if0005.h */
-7
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
#define NV_NULL_CLASS 0x00000030
#define NV_DEVICE
/* cl0080.h */
0x00000080
#define NV_DMA_FROM_MEMORY
/* cl0002.h */
0x00000002
#define NV_DMA_TO_MEMORY
/* cl0002.h */
0x00000003
#define NV_DMA_IN_MEMORY
/* cl0002.h */
0x0000003d
#define NV50_TWOD 0x0000502d
#define FERMI_TWOD_A 0x0000902d
#define NV50_MEMORY_TO_MEMORY_FORMAT 0x00005039
#define FERMI_MEMORY_TO_MEMORY_FORMAT_A 0x00009039
#define KEPLER_INLINE_TO_MEMORY_A 0x0000a040
...
...
@@ -99,6 +103,12 @@
#define GF110_DISP_OVERLAY_CONTROL_DMA
/* cl507e.h */
0x0000907e
#define GK104_DISP_OVERLAY_CONTROL_DMA
/* cl507e.h */
0x0000917e
#define NV50_TESLA 0x00005097
#define G82_TESLA 0x00008297
#define GT200_TESLA 0x00008397
#define GT214_TESLA 0x00008597
#define GT21A_TESLA 0x00008697
#define FERMI_A
/* cl9097.h */
0x00009097
#define FERMI_B
/* cl9097.h */
0x00009197
#define FERMI_C
/* cl9097.h */
0x00009297
...
...
@@ -140,6 +150,8 @@
#define FERMI_DECOMPRESS 0x000090b8
#define NV50_COMPUTE 0x000050c0
#define GT214_COMPUTE 0x000085c0
#define FERMI_COMPUTE_A 0x000090c0
#define FERMI_COMPUTE_B 0x000091c0
#define KEPLER_COMPUTE_A 0x0000a0c0
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c
浏览文件 @
0233a9f4
...
...
@@ -25,6 +25,8 @@
#include <subdev/timer.h>
#include <nvif/class.h>
static
const
struct
nvkm_bitfield
nv50_gr_status
[]
=
{
{
0x00000001
,
"BUSY"
},
/* set when any bit is set */
{
0x00000002
,
"DISPATCH"
},
...
...
@@ -180,11 +182,11 @@ g84_gr = {
.
tlb_flush
=
g84_gr_tlb_flush
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x8297
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
G82_TESLA
,
&
nv50_gr_object
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt200.c
浏览文件 @
0233a9f4
...
...
@@ -23,6 +23,8 @@
*/
#include "nv50.h"
#include <nvif/class.h>
static
const
struct
nvkm_gr_func
gt200_gr
=
{
.
init
=
nv50_gr_init
,
...
...
@@ -31,11 +33,11 @@ gt200_gr = {
.
tlb_flush
=
g84_gr_tlb_flush
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x8397
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT200_TESLA
,
&
nv50_gr_object
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gt215.c
浏览文件 @
0233a9f4
...
...
@@ -23,6 +23,8 @@
*/
#include "nv50.h"
#include <nvif/class.h>
static
const
struct
nvkm_gr_func
gt215_gr
=
{
.
init
=
nv50_gr_init
,
...
...
@@ -31,12 +33,12 @@ gt215_gr = {
.
tlb_flush
=
g84_gr_tlb_flush
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x8597
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x85c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT214_TESLA
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT214_COMPUTE
,
&
nv50_gr_object
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp79.c
浏览文件 @
0233a9f4
...
...
@@ -23,6 +23,8 @@
*/
#include "nv50.h"
#include <nvif/class.h>
static
const
struct
nvkm_gr_func
mcp79_gr
=
{
.
init
=
nv50_gr_init
,
...
...
@@ -30,11 +32,11 @@ mcp79_gr = {
.
chan_new
=
nv50_gr_chan_new
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x8397
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT200_TESLA
,
&
nv50_gr_object
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/mcp89.c
浏览文件 @
0233a9f4
...
...
@@ -23,6 +23,8 @@
*/
#include "nv50.h"
#include <nvif/class.h>
static
const
struct
nvkm_gr_func
mcp89_gr
=
{
.
init
=
nv50_gr_init
,
...
...
@@ -31,12 +33,12 @@ mcp89_gr = {
.
tlb_flush
=
g84_gr_tlb_flush
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x85c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x8697
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT214_COMPUTE
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
GT21A_TESLA
,
&
nv50_gr_object
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c
浏览文件 @
0233a9f4
...
...
@@ -27,6 +27,8 @@
#include <core/gpuobj.h>
#include <engine/fifo.h>
#include <nvif/class.h>
u64
nv50_gr_units
(
struct
nvkm_gr
*
gr
)
{
...
...
@@ -778,11 +780,11 @@ nv50_gr = {
.
chan_new
=
nv50_gr_chan_new
,
.
units
=
nv50_gr_units
,
.
sclass
=
{
{
-
1
,
-
1
,
0x0030
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x502d
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5039
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x5097
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
0x50c0
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV_NULL_CLASS
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TWOD
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_MEMORY_TO_MEMORY_FORMAT
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_TESLA
,
&
nv50_gr_object
},
{
-
1
,
-
1
,
NV50_COMPUTE
,
&
nv50_gr_object
},
{}
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录