Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
86037742
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看板
提交
86037742
编写于
1月 17, 2019
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/disp/tu102: rename implementation from tu104
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
954f9798
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
43 addition
and
43 deletion
+43
-43
drivers/gpu/drm/nouveau/dispnv50/core.c
drivers/gpu/drm/nouveau/dispnv50/core.c
+1
-1
drivers/gpu/drm/nouveau/dispnv50/curs.c
drivers/gpu/drm/nouveau/dispnv50/curs.c
+1
-1
drivers/gpu/drm/nouveau/dispnv50/wimm.c
drivers/gpu/drm/nouveau/dispnv50/wimm.c
+1
-1
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c
+1
-1
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+5
-5
drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h
drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h
+1
-1
drivers/gpu/drm/nouveau/nvif/disp.c
drivers/gpu/drm/nouveau/nvif/disp.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/Kbuild
drivers/gpu/drm/nouveau/nvkm/engine/disp/Kbuild
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/roottu102.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/roottu102.c
+10
-10
drivers/gpu/drm/nouveau/nvkm/engine/disp/sortu102.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sortu102.c
+7
-7
drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c
+7
-7
未找到文件。
drivers/gpu/drm/nouveau/dispnv50/core.c
浏览文件 @
86037742
...
...
@@ -42,7 +42,7 @@ nv50_core_new(struct nouveau_drm *drm, struct nv50_core **pcore)
int
version
;
int
(
*
new
)(
struct
nouveau_drm
*
,
s32
,
struct
nv50_core
**
);
}
cores
[]
=
{
{
TU10
4
_DISP_CORE_CHANNEL_DMA
,
0
,
corec57d_new
},
{
TU10
2
_DISP_CORE_CHANNEL_DMA
,
0
,
corec57d_new
},
{
GV100_DISP_CORE_CHANNEL_DMA
,
0
,
corec37d_new
},
{
GP102_DISP_CORE_CHANNEL_DMA
,
0
,
core917d_new
},
{
GP100_DISP_CORE_CHANNEL_DMA
,
0
,
core917d_new
},
...
...
drivers/gpu/drm/nouveau/dispnv50/curs.c
浏览文件 @
86037742
...
...
@@ -31,7 +31,7 @@ nv50_curs_new(struct nouveau_drm *drm, int head, struct nv50_wndw **pwndw)
int
version
;
int
(
*
new
)(
struct
nouveau_drm
*
,
int
,
s32
,
struct
nv50_wndw
**
);
}
curses
[]
=
{
{
TU10
4
_DISP_CURSOR
,
0
,
cursc37a_new
},
{
TU10
2
_DISP_CURSOR
,
0
,
cursc37a_new
},
{
GV100_DISP_CURSOR
,
0
,
cursc37a_new
},
{
GK104_DISP_CURSOR
,
0
,
curs907a_new
},
{
GF110_DISP_CURSOR
,
0
,
curs907a_new
},
...
...
drivers/gpu/drm/nouveau/dispnv50/wimm.c
浏览文件 @
86037742
...
...
@@ -31,7 +31,7 @@ nv50_wimm_init(struct nouveau_drm *drm, struct nv50_wndw *wndw)
int
version
;
int
(
*
init
)(
struct
nouveau_drm
*
,
s32
,
struct
nv50_wndw
*
);
}
wimms
[]
=
{
{
TU10
4
_DISP_WINDOW_IMM_CHANNEL_DMA
,
0
,
wimmc37b_init
},
{
TU10
2
_DISP_WINDOW_IMM_CHANNEL_DMA
,
0
,
wimmc37b_init
},
{
GV100_DISP_WINDOW_IMM_CHANNEL_DMA
,
0
,
wimmc37b_init
},
{}
};
...
...
drivers/gpu/drm/nouveau/dispnv50/wndw.c
浏览文件 @
86037742
...
...
@@ -626,7 +626,7 @@ nv50_wndw_new(struct nouveau_drm *drm, enum drm_plane_type type, int index,
int
(
*
new
)(
struct
nouveau_drm
*
,
enum
drm_plane_type
,
int
,
s32
,
struct
nv50_wndw
**
);
}
wndws
[]
=
{
{
TU10
4
_DISP_WINDOW_CHANNEL_DMA
,
0
,
wndwc57e_new
},
{
TU10
2
_DISP_WINDOW_CHANNEL_DMA
,
0
,
wndwc57e_new
},
{
GV100_DISP_WINDOW_CHANNEL_DMA
,
0
,
wndwc37e_new
},
{}
};
...
...
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
86037742
...
...
@@ -84,7 +84,7 @@
#define GP100_DISP
/* cl5070.h */
0x00009770
#define GP102_DISP
/* cl5070.h */
0x00009870
#define GV100_DISP
/* cl5070.h */
0x0000c370
#define TU10
4
_DISP
/* cl5070.h */
0x0000c570
#define TU10
2
_DISP
/* cl5070.h */
0x0000c570
#define NV31_MPEG 0x00003174
#define G82_MPEG 0x00008274
...
...
@@ -97,7 +97,7 @@
#define GF110_DISP_CURSOR
/* cl507a.h */
0x0000907a
#define GK104_DISP_CURSOR
/* cl507a.h */
0x0000917a
#define GV100_DISP_CURSOR
/* cl507a.h */
0x0000c37a
#define TU10
4
_DISP_CURSOR
/* cl507a.h */
0x0000c57a
#define TU10
2
_DISP_CURSOR
/* cl507a.h */
0x0000c57a
#define NV50_DISP_OVERLAY
/* cl507b.h */
0x0000507b
#define G82_DISP_OVERLAY
/* cl507b.h */
0x0000827b
...
...
@@ -106,7 +106,7 @@
#define GK104_DISP_OVERLAY
/* cl507b.h */
0x0000917b
#define GV100_DISP_WINDOW_IMM_CHANNEL_DMA
/* clc37b.h */
0x0000c37b
#define TU10
4
_DISP_WINDOW_IMM_CHANNEL_DMA
/* clc37b.h */
0x0000c57b
#define TU10
2
_DISP_WINDOW_IMM_CHANNEL_DMA
/* clc37b.h */
0x0000c57b
#define NV50_DISP_BASE_CHANNEL_DMA
/* cl507c.h */
0x0000507c
#define G82_DISP_BASE_CHANNEL_DMA
/* cl507c.h */
0x0000827c
...
...
@@ -129,7 +129,7 @@
#define GP100_DISP_CORE_CHANNEL_DMA
/* cl507d.h */
0x0000977d
#define GP102_DISP_CORE_CHANNEL_DMA
/* cl507d.h */
0x0000987d
#define GV100_DISP_CORE_CHANNEL_DMA
/* cl507d.h */
0x0000c37d
#define TU10
4
_DISP_CORE_CHANNEL_DMA
/* cl507d.h */
0x0000c57d
#define TU10
2
_DISP_CORE_CHANNEL_DMA
/* cl507d.h */
0x0000c57d
#define NV50_DISP_OVERLAY_CHANNEL_DMA
/* cl507e.h */
0x0000507e
#define G82_DISP_OVERLAY_CHANNEL_DMA
/* cl507e.h */
0x0000827e
...
...
@@ -139,7 +139,7 @@
#define GK104_DISP_OVERLAY_CONTROL_DMA
/* cl507e.h */
0x0000917e
#define GV100_DISP_WINDOW_CHANNEL_DMA
/* clc37e.h */
0x0000c37e
#define TU10
4
_DISP_WINDOW_CHANNEL_DMA
/* clc37e.h */
0x0000c57e
#define TU10
2
_DISP_WINDOW_CHANNEL_DMA
/* clc37e.h */
0x0000c57e
#define NV50_TESLA 0x00005097
#define G82_TESLA 0x00008297
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h
浏览文件 @
86037742
...
...
@@ -36,5 +36,5 @@ int gm200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
int
gp100_disp_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_disp
**
);
int
gp102_disp_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_disp
**
);
int
gv100_disp_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_disp
**
);
int
tu10
4
_disp_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_disp
**
);
int
tu10
2
_disp_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_disp
**
);
#endif
drivers/gpu/drm/nouveau/nvif/disp.c
浏览文件 @
86037742
...
...
@@ -34,7 +34,7 @@ int
nvif_disp_ctor
(
struct
nvif_device
*
device
,
s32
oclass
,
struct
nvif_disp
*
disp
)
{
static
const
struct
nvif_mclass
disps
[]
=
{
{
TU10
4
_DISP
,
-
1
},
{
TU10
2
_DISP
,
-
1
},
{
GV100_DISP
,
-
1
},
{
GP102_DISP
,
-
1
},
{
GP100_DISP
,
-
1
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
浏览文件 @
86037742
...
...
@@ -2461,7 +2461,7 @@ nv162_chipset = {
.
ce
[
2
]
=
tu104_ce_new
,
.
ce
[
3
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu10
4
_disp_new
,
.
disp
=
tu10
2
_disp_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu104_fifo_new
,
};
...
...
@@ -2493,7 +2493,7 @@ nv164_chipset = {
.
ce
[
2
]
=
tu104_ce_new
,
.
ce
[
3
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu10
4
_disp_new
,
.
disp
=
tu10
2
_disp_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu104_fifo_new
,
};
...
...
@@ -2525,7 +2525,7 @@ nv166_chipset = {
.
ce
[
2
]
=
tu104_ce_new
,
.
ce
[
3
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu10
4
_disp_new
,
.
disp
=
tu10
2
_disp_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu104_fifo_new
,
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/Kbuild
浏览文件 @
86037742
...
...
@@ -15,7 +15,7 @@ nvkm-y += nvkm/engine/disp/gm200.o
nvkm-y += nvkm/engine/disp/gp100.o
nvkm-y += nvkm/engine/disp/gp102.o
nvkm-y += nvkm/engine/disp/gv100.o
nvkm-y += nvkm/engine/disp/tu10
4
.o
nvkm-y += nvkm/engine/disp/tu10
2
.o
nvkm-y += nvkm/engine/disp/vga.o
nvkm-y += nvkm/engine/disp/head.o
...
...
@@ -39,7 +39,7 @@ nvkm-y += nvkm/engine/disp/sorgk104.o
nvkm-y += nvkm/engine/disp/sorgm107.o
nvkm-y += nvkm/engine/disp/sorgm200.o
nvkm-y += nvkm/engine/disp/sorgv100.o
nvkm-y += nvkm/engine/disp/sortu10
4
.o
nvkm-y += nvkm/engine/disp/sortu10
2
.o
nvkm-y += nvkm/engine/disp/outp.o
nvkm-y += nvkm/engine/disp/dp.o
...
...
@@ -71,7 +71,7 @@ nvkm-y += nvkm/engine/disp/rootgm200.o
nvkm-y += nvkm/engine/disp/rootgp100.o
nvkm-y += nvkm/engine/disp/rootgp102.o
nvkm-y += nvkm/engine/disp/rootgv100.o
nvkm-y += nvkm/engine/disp/roottu10
4
.o
nvkm-y += nvkm/engine/disp/roottu10
2
.o
nvkm-y += nvkm/engine/disp/channv50.o
nvkm-y += nvkm/engine/disp/changf119.o
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
浏览文件 @
86037742
...
...
@@ -201,5 +201,5 @@ int gm200_sor_new(struct nvkm_disp *, int);
int
gv100_sor_cnt
(
struct
nvkm_disp
*
,
unsigned
long
*
);
int
gv100_sor_new
(
struct
nvkm_disp
*
,
int
);
int
tu10
4
_sor_new
(
struct
nvkm_disp
*
,
int
);
int
tu10
2
_sor_new
(
struct
nvkm_disp
*
,
int
);
#endif
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.h
浏览文件 @
86037742
...
...
@@ -37,5 +37,5 @@ extern const struct nvkm_disp_oclass gm200_disp_root_oclass;
extern
const
struct
nvkm_disp_oclass
gp100_disp_root_oclass
;
extern
const
struct
nvkm_disp_oclass
gp102_disp_root_oclass
;
extern
const
struct
nvkm_disp_oclass
gv100_disp_root_oclass
;
extern
const
struct
nvkm_disp_oclass
tu10
4
_disp_root_oclass
;
extern
const
struct
nvkm_disp_oclass
tu10
2
_disp_root_oclass
;
#endif
drivers/gpu/drm/nouveau/nvkm/engine/disp/roottu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/disp/roottu10
2
.c
浏览文件 @
86037742
...
...
@@ -25,28 +25,28 @@
#include <nvif/class.h>
static
const
struct
nv50_disp_root_func
tu10
4
_disp_root
=
{
tu10
2
_disp_root
=
{
.
user
=
{
{{
0
,
0
,
TU10
4
_DISP_CURSOR
},
gv100_disp_curs_new
},
{{
0
,
0
,
TU10
4
_DISP_WINDOW_IMM_CHANNEL_DMA
},
gv100_disp_wimm_new
},
{{
0
,
0
,
TU10
4
_DISP_CORE_CHANNEL_DMA
},
gv100_disp_core_new
},
{{
0
,
0
,
TU10
4
_DISP_WINDOW_CHANNEL_DMA
},
gv100_disp_wndw_new
},
{{
0
,
0
,
TU10
2
_DISP_CURSOR
},
gv100_disp_curs_new
},
{{
0
,
0
,
TU10
2
_DISP_WINDOW_IMM_CHANNEL_DMA
},
gv100_disp_wimm_new
},
{{
0
,
0
,
TU10
2
_DISP_CORE_CHANNEL_DMA
},
gv100_disp_core_new
},
{{
0
,
0
,
TU10
2
_DISP_WINDOW_CHANNEL_DMA
},
gv100_disp_wndw_new
},
{}
},
};
static
int
tu10
4
_disp_root_new
(
struct
nvkm_disp
*
disp
,
const
struct
nvkm_oclass
*
oclass
,
tu10
2
_disp_root_new
(
struct
nvkm_disp
*
disp
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
{
return
nv50_disp_root_new_
(
&
tu10
4
_disp_root
,
disp
,
oclass
,
return
nv50_disp_root_new_
(
&
tu10
2
_disp_root
,
disp
,
oclass
,
data
,
size
,
pobject
);
}
const
struct
nvkm_disp_oclass
tu10
4
_disp_root_oclass
=
{
.
base
.
oclass
=
TU10
4
_DISP
,
tu10
2
_disp_root_oclass
=
{
.
base
.
oclass
=
TU10
2
_DISP
,
.
base
.
minver
=
-
1
,
.
base
.
maxver
=
-
1
,
.
ctor
=
tu10
4
_disp_root_new
,
.
ctor
=
tu10
2
_disp_root_new
,
};
drivers/gpu/drm/nouveau/nvkm/engine/disp/sortu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/disp/sortu10
2
.c
浏览文件 @
86037742
...
...
@@ -24,7 +24,7 @@
#include <subdev/timer.h>
static
void
tu10
4
_sor_dp_vcpi
(
struct
nvkm_ior
*
sor
,
int
head
,
tu10
2
_sor_dp_vcpi
(
struct
nvkm_ior
*
sor
,
int
head
,
u8
slot
,
u8
slot_nr
,
u16
pbn
,
u16
aligned
)
{
struct
nvkm_device
*
device
=
sor
->
disp
->
engine
.
subdev
.
device
;
...
...
@@ -35,7 +35,7 @@ tu104_sor_dp_vcpi(struct nvkm_ior *sor, int head,
}
static
int
tu10
4
_sor_dp_links
(
struct
nvkm_ior
*
sor
,
struct
nvkm_i2c_aux
*
aux
)
tu10
2
_sor_dp_links
(
struct
nvkm_ior
*
sor
,
struct
nvkm_i2c_aux
*
aux
)
{
struct
nvkm_device
*
device
=
sor
->
disp
->
engine
.
subdev
.
device
;
const
u32
soff
=
nv50_ior_base
(
sor
);
...
...
@@ -62,7 +62,7 @@ tu104_sor_dp_links(struct nvkm_ior *sor, struct nvkm_i2c_aux *aux)
}
static
const
struct
nvkm_ior_func
tu10
4
_sor
=
{
tu10
2
_sor
=
{
.
route
=
{
.
get
=
gm200_sor_route_get
,
.
set
=
gm200_sor_route_set
,
...
...
@@ -75,11 +75,11 @@ tu104_sor = {
},
.
dp
=
{
.
lanes
=
{
0
,
1
,
2
,
3
},
.
links
=
tu10
4
_sor_dp_links
,
.
links
=
tu10
2
_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
.
pattern
=
gm107_sor_dp_pattern
,
.
drive
=
gm200_sor_dp_drive
,
.
vcpi
=
tu10
4
_sor_dp_vcpi
,
.
vcpi
=
tu10
2
_sor_dp_vcpi
,
.
audio
=
gv100_sor_dp_audio
,
.
audio_sym
=
gv100_sor_dp_audio_sym
,
.
watermark
=
gv100_sor_dp_watermark
,
...
...
@@ -91,7 +91,7 @@ tu104_sor = {
};
int
tu10
4
_sor_new
(
struct
nvkm_disp
*
disp
,
int
id
)
tu10
2
_sor_new
(
struct
nvkm_disp
*
disp
,
int
id
)
{
return
nvkm_ior_new_
(
&
tu10
4
_sor
,
disp
,
SOR
,
id
);
return
nvkm_ior_new_
(
&
tu10
2
_sor
,
disp
,
SOR
,
id
);
}
drivers/gpu/drm/nouveau/nvkm/engine/disp/tu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/disp/tu10
2
.c
浏览文件 @
86037742
...
...
@@ -29,7 +29,7 @@
#include <subdev/timer.h>
static
int
tu10
4
_disp_init
(
struct
nv50_disp
*
disp
)
tu10
2
_disp_init
(
struct
nv50_disp
*
disp
)
{
struct
nvkm_device
*
device
=
disp
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_head
*
head
;
...
...
@@ -132,21 +132,21 @@ tu104_disp_init(struct nv50_disp *disp)
}
static
const
struct
nv50_disp_func
tu10
4
_disp
=
{
.
init
=
tu10
4
_disp_init
,
tu10
2
_disp
=
{
.
init
=
tu10
2
_disp_init
,
.
fini
=
gv100_disp_fini
,
.
intr
=
gv100_disp_intr
,
.
uevent
=
&
gv100_disp_chan_uevent
,
.
super
=
gv100_disp_super
,
.
root
=
&
tu10
4
_disp_root_oclass
,
.
root
=
&
tu10
2
_disp_root_oclass
,
.
wndw
=
{
.
cnt
=
gv100_disp_wndw_cnt
},
.
head
=
{
.
cnt
=
gv100_head_cnt
,
.
new
=
gv100_head_new
},
.
sor
=
{
.
cnt
=
gv100_sor_cnt
,
.
new
=
tu10
4
_sor_new
},
.
sor
=
{
.
cnt
=
gv100_sor_cnt
,
.
new
=
tu10
2
_sor_new
},
.
ramht_size
=
0x2000
,
};
int
tu10
4
_disp_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_disp
**
pdisp
)
tu10
2
_disp_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_disp
**
pdisp
)
{
return
nv50_disp_new_
(
&
tu10
4
_disp
,
device
,
index
,
pdisp
);
return
nv50_disp_new_
(
&
tu10
2
_disp
,
device
,
index
,
pdisp
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录