Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a3e81117
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看板
提交
a3e81117
编写于
5月 19, 2017
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/disp/g94-: port OR DP link power control to nvkm_ior
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
7dc0bac4
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
17 addition
and
43 deletion
+17
-43
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
+0
-2
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c
+0
-7
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c
+7
-8
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgk104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm107.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm107.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
+1
-23
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgt215.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgt215.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp77.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp77.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp89.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp89.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
浏览文件 @
a3e81117
...
...
@@ -249,7 +249,7 @@ nvkm_dp_train_links(struct nvkm_dp *dp)
return
0
;
}
dp
->
func
->
lnk_pwr
(
dp
,
ior
->
dp
.
nr
);
ior
->
func
->
dp
.
power
(
ior
,
ior
->
dp
.
nr
);
/* Set desired link configuration on the sink. */
sink
[
0
]
=
ior
->
dp
.
bw
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.h
浏览文件 @
a3e81117
...
...
@@ -34,7 +34,6 @@ struct nvkm_dp {
struct
nvkm_output_dp_func
{
int
(
*
pattern
)(
struct
nvkm_output_dp
*
,
int
);
int
(
*
lnk_pwr
)(
struct
nvkm_output_dp
*
,
int
nr
);
int
(
*
drv_ctl
)(
struct
nvkm_output_dp
*
,
int
ln
,
int
vs
,
int
pe
,
int
pc
);
void
(
*
vcpi
)(
struct
nvkm_output_dp
*
,
int
head
,
u8
start_slot
,
u8
num_slots
,
u16
pbn
,
u16
aligned_pbn
);
...
...
@@ -50,7 +49,6 @@ int nv50_pior_dp_new(struct nvkm_disp *, int, struct dcb_output *,
int
g94_sor_dp_new
(
struct
nvkm_disp
*
,
int
,
struct
dcb_output
*
,
struct
nvkm_output
**
);
int
g94_sor_dp_lnk_pwr
(
struct
nvkm_dp
*
,
int
);
int
gf119_sor_dp_new
(
struct
nvkm_disp
*
,
int
,
struct
dcb_output
*
,
struct
nvkm_output
**
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
浏览文件 @
a3e81117
...
...
@@ -54,6 +54,7 @@ struct nvkm_ior_func {
struct
{
u8
lanes
[
4
];
int
(
*
links
)(
struct
nvkm_ior
*
,
struct
nvkm_i2c_aux
*
);
void
(
*
power
)(
struct
nvkm_ior
*
,
int
nr
);
}
dp
;
};
...
...
@@ -82,6 +83,7 @@ void nv50_sor_power(struct nvkm_ior *, bool, bool, bool, bool, bool);
void
g94_sor_state
(
struct
nvkm_ior
*
,
struct
nvkm_ior_state
*
);
int
g94_sor_dp_links
(
struct
nvkm_ior
*
,
struct
nvkm_i2c_aux
*
);
void
g94_sor_dp_power
(
struct
nvkm_ior
*
,
int
);
void
gf119_sor_state
(
struct
nvkm_ior
*
,
struct
nvkm_ior_state
*
);
int
gf119_sor_dp_links
(
struct
nvkm_ior
*
,
struct
nvkm_i2c_aux
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c
浏览文件 @
a3e81117
...
...
@@ -51,12 +51,6 @@ nv50_pior_output_dp_pattern(struct nvkm_output_dp *outp, int pattern)
return
0
;
}
static
int
nv50_pior_output_dp_lnk_pwr
(
struct
nvkm_output_dp
*
outp
,
int
nr
)
{
return
0
;
}
static
int
nv50_pior_dp_links
(
struct
nvkm_ior
*
pior
,
struct
nvkm_i2c_aux
*
aux
)
{
...
...
@@ -70,7 +64,6 @@ nv50_pior_dp_links(struct nvkm_ior *pior, struct nvkm_i2c_aux *aux)
static
const
struct
nvkm_output_dp_func
nv50_pior_output_dp_func
=
{
.
pattern
=
nv50_pior_output_dp_pattern
,
.
lnk_pwr
=
nv50_pior_output_dp_lnk_pwr
,
};
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c
浏览文件 @
a3e81117
...
...
@@ -90,16 +90,16 @@ g94_sor_dp_pattern(struct nvkm_output_dp *outp, int pattern)
return
0
;
}
int
g94_sor_dp_
lnk_pwr
(
struct
nvkm_output_dp
*
outp
,
int
nr
)
void
g94_sor_dp_
power
(
struct
nvkm_ior
*
sor
,
int
nr
)
{
struct
nvkm_device
*
device
=
outp
->
base
.
disp
->
engine
.
subdev
.
device
;
const
u32
soff
=
g94_sor_soff
(
outp
);
const
u32
loff
=
g94_sor_loff
(
outp
);
struct
nvkm_device
*
device
=
sor
->
disp
->
engine
.
subdev
.
device
;
const
u32
soff
=
nv50_ior_base
(
sor
);
const
u32
loff
=
nv50_sor_link
(
sor
);
u32
mask
=
0
,
i
;
for
(
i
=
0
;
i
<
nr
;
i
++
)
mask
|=
1
<<
(
g94_sor_dp_lane_map
(
device
,
i
)
>>
3
)
;
mask
|=
1
<<
sor
->
func
->
dp
.
lanes
[
i
]
;
nvkm_mask
(
device
,
0x61c130
+
loff
,
0x0000000f
,
mask
);
nvkm_mask
(
device
,
0x61c034
+
soff
,
0x80000000
,
0x80000000
);
...
...
@@ -107,7 +107,6 @@ g94_sor_dp_lnk_pwr(struct nvkm_output_dp *outp, int nr)
if
(
!
(
nvkm_rd32
(
device
,
0x61c034
+
soff
)
&
0x80000000
))
break
;
);
return
0
;
}
int
...
...
@@ -133,7 +132,6 @@ g94_sor_dp_links(struct nvkm_ior *sor, struct nvkm_i2c_aux *aux)
static
const
struct
nvkm_output_dp_func
g94_sor_dp_func
=
{
.
pattern
=
g94_sor_dp_pattern
,
.
lnk_pwr
=
g94_sor_dp_lnk_pwr
,
.
drv_ctl
=
g94_sor_dp_drv_ctl
,
};
...
...
@@ -300,6 +298,7 @@ g94_sor = {
.
dp
=
{
.
lanes
=
{
2
,
1
,
0
,
3
},
.
links
=
g94_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c
浏览文件 @
a3e81117
...
...
@@ -117,7 +117,6 @@ gf119_sor_dp_links(struct nvkm_ior *sor, struct nvkm_i2c_aux *aux)
static
const
struct
nvkm_output_dp_func
gf119_sor_dp_func
=
{
.
pattern
=
gf119_sor_dp_pattern
,
.
lnk_pwr
=
g94_sor_dp_lnk_pwr
,
.
drv_ctl
=
gf119_sor_dp_drv_ctl
,
.
vcpi
=
gf119_sor_dp_vcpi
,
};
...
...
@@ -162,6 +161,7 @@ gf119_sor = {
.
dp
=
{
.
lanes
=
{
2
,
1
,
0
,
3
},
.
links
=
gf119_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgk104.c
浏览文件 @
a3e81117
...
...
@@ -31,6 +31,7 @@ gk104_sor = {
.
dp
=
{
.
lanes
=
{
2
,
1
,
0
,
3
},
.
links
=
gf119_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm107.c
浏览文件 @
a3e81117
...
...
@@ -40,7 +40,6 @@ gm107_sor_dp_pattern(struct nvkm_output_dp *outp, int pattern)
static
const
struct
nvkm_output_dp_func
gm107_sor_dp_func
=
{
.
pattern
=
gm107_sor_dp_pattern
,
.
lnk_pwr
=
g94_sor_dp_lnk_pwr
,
.
drv_ctl
=
gf119_sor_dp_drv_ctl
,
.
vcpi
=
gf119_sor_dp_vcpi
,
};
...
...
@@ -62,6 +61,7 @@ gm107_sor = {
.
dp
=
{
.
lanes
=
{
0
,
1
,
2
,
3
},
.
links
=
gf119_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
浏览文件 @
a3e81117
...
...
@@ -24,8 +24,6 @@
#include "ior.h"
#include "nv50.h"
#include <subdev/timer.h>
static
inline
u32
gm200_sor_soff
(
struct
nvkm_output_dp
*
outp
)
{
...
...
@@ -82,30 +80,9 @@ gm200_sor_dp_drv_ctl(struct nvkm_output_dp *outp,
return
0
;
}
static
int
gm200_sor_dp_lnk_pwr
(
struct
nvkm_output_dp
*
outp
,
int
nr
)
{
struct
nvkm_device
*
device
=
outp
->
base
.
disp
->
engine
.
subdev
.
device
;
const
u32
soff
=
gm200_sor_soff
(
outp
);
const
u32
loff
=
gm200_sor_loff
(
outp
);
u32
mask
=
0
,
i
;
for
(
i
=
0
;
i
<
nr
;
i
++
)
mask
|=
1
<<
(
gm200_sor_dp_lane_map
(
device
,
i
)
>>
3
);
nvkm_mask
(
device
,
0x61c130
+
loff
,
0x0000000f
,
mask
);
nvkm_mask
(
device
,
0x61c034
+
soff
,
0x80000000
,
0x80000000
);
nvkm_msec
(
device
,
2000
,
if
(
!
(
nvkm_rd32
(
device
,
0x61c034
+
soff
)
&
0x80000000
))
break
;
);
return
0
;
}
static
const
struct
nvkm_output_dp_func
gm200_sor_dp_func
=
{
.
pattern
=
gm107_sor_dp_pattern
,
.
lnk_pwr
=
gm200_sor_dp_lnk_pwr
,
.
drv_ctl
=
gm200_sor_dp_drv_ctl
,
.
vcpi
=
gf119_sor_dp_vcpi
,
};
...
...
@@ -139,6 +116,7 @@ gm200_sor = {
.
dp
=
{
.
lanes
=
{
0
,
1
,
2
,
3
},
.
links
=
gf119_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgt215.c
浏览文件 @
a3e81117
...
...
@@ -31,6 +31,7 @@ gt215_sor = {
.
dp
=
{
.
lanes
=
{
2
,
1
,
0
,
3
},
.
links
=
g94_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp77.c
浏览文件 @
a3e81117
...
...
@@ -31,6 +31,7 @@ mcp77_sor = {
.
dp
=
{
.
lanes
=
{
2
,
1
,
0
,
3
},
.
links
=
g94_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp89.c
浏览文件 @
a3e81117
...
...
@@ -31,6 +31,7 @@ mcp89_sor = {
.
dp
=
{
.
lanes
=
{
3
,
2
,
1
,
0
},
.
links
=
g94_sor_dp_links
,
.
power
=
g94_sor_dp_power
,
},
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录