Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2a32b9b1
Commit
2a32b9b1
authored
8 years ago
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/disp/nv50-: specify ctrl/user separately when constructing classes
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
4391d7f5
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
32 additions
and
28 deletions
+32
-28
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c
+6
-5
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.h
+9
-6
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursg84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursg84.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgk104.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgt215.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgt215.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursnv50.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacnv50.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmg84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmg84.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgk104.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgt215.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgt215.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmnv50.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
+2
-2
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c
View file @
2a32b9b1
...
@@ -263,7 +263,7 @@ nv50_disp_chan = {
...
@@ -263,7 +263,7 @@ nv50_disp_chan = {
int
int
nv50_disp_chan_ctor
(
const
struct
nv50_disp_chan_func
*
func
,
nv50_disp_chan_ctor
(
const
struct
nv50_disp_chan_func
*
func
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
struct
nv50_disp_root
*
root
,
int
c
hid
,
int
head
,
struct
nv50_disp_root
*
root
,
int
c
trl
,
int
user
,
int
head
,
const
struct
nvkm_oclass
*
oclass
,
const
struct
nvkm_oclass
*
oclass
,
struct
nv50_disp_chan
*
chan
)
struct
nv50_disp_chan
*
chan
)
{
{
...
@@ -273,8 +273,8 @@ nv50_disp_chan_ctor(const struct nv50_disp_chan_func *func,
...
@@ -273,8 +273,8 @@ nv50_disp_chan_ctor(const struct nv50_disp_chan_func *func,
chan
->
func
=
func
;
chan
->
func
=
func
;
chan
->
mthd
=
mthd
;
chan
->
mthd
=
mthd
;
chan
->
root
=
root
;
chan
->
root
=
root
;
chan
->
chid
.
ctrl
=
c
hid
;
chan
->
chid
.
ctrl
=
c
trl
;
chan
->
chid
.
user
=
chid
;
chan
->
chid
.
user
=
user
;
chan
->
head
=
head
;
chan
->
head
=
head
;
if
(
disp
->
chan
[
chan
->
chid
.
user
])
{
if
(
disp
->
chan
[
chan
->
chid
.
user
])
{
...
@@ -288,7 +288,7 @@ nv50_disp_chan_ctor(const struct nv50_disp_chan_func *func,
...
@@ -288,7 +288,7 @@ nv50_disp_chan_ctor(const struct nv50_disp_chan_func *func,
int
int
nv50_disp_chan_new_
(
const
struct
nv50_disp_chan_func
*
func
,
nv50_disp_chan_new_
(
const
struct
nv50_disp_chan_func
*
func
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
struct
nv50_disp_root
*
root
,
int
c
hid
,
int
head
,
struct
nv50_disp_root
*
root
,
int
c
trl
,
int
user
,
int
head
,
const
struct
nvkm_oclass
*
oclass
,
const
struct
nvkm_oclass
*
oclass
,
struct
nvkm_object
**
pobject
)
struct
nvkm_object
**
pobject
)
{
{
...
@@ -298,5 +298,6 @@ nv50_disp_chan_new_(const struct nv50_disp_chan_func *func,
...
@@ -298,5 +298,6 @@ nv50_disp_chan_new_(const struct nv50_disp_chan_func *func,
return
-
ENOMEM
;
return
-
ENOMEM
;
*
pobject
=
&
chan
->
object
;
*
pobject
=
&
chan
->
object
;
return
nv50_disp_chan_ctor
(
func
,
mthd
,
root
,
chid
,
head
,
oclass
,
chan
);
return
nv50_disp_chan_ctor
(
func
,
mthd
,
root
,
ctrl
,
user
,
head
,
oclass
,
chan
);
}
}
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.h
View file @
2a32b9b1
...
@@ -29,11 +29,11 @@ struct nv50_disp_chan_func {
...
@@ -29,11 +29,11 @@ struct nv50_disp_chan_func {
int
nv50_disp_chan_ctor
(
const
struct
nv50_disp_chan_func
*
,
int
nv50_disp_chan_ctor
(
const
struct
nv50_disp_chan_func
*
,
const
struct
nv50_disp_chan_mthd
*
,
const
struct
nv50_disp_chan_mthd
*
,
struct
nv50_disp_root
*
,
int
c
hid
,
int
head
,
struct
nv50_disp_root
*
,
int
c
trl
,
int
user
,
int
head
,
const
struct
nvkm_oclass
*
,
struct
nv50_disp_chan
*
);
const
struct
nvkm_oclass
*
,
struct
nv50_disp_chan
*
);
int
nv50_disp_chan_new_
(
const
struct
nv50_disp_chan_func
*
,
int
nv50_disp_chan_new_
(
const
struct
nv50_disp_chan_func
*
,
const
struct
nv50_disp_chan_mthd
*
,
const
struct
nv50_disp_chan_mthd
*
,
struct
nv50_disp_root
*
,
int
c
hid
,
int
head
,
struct
nv50_disp_root
*
,
int
c
trl
,
int
user
,
int
head
,
const
struct
nvkm_oclass
*
,
struct
nvkm_object
**
);
const
struct
nvkm_oclass
*
,
struct
nvkm_object
**
);
extern
const
struct
nv50_disp_chan_func
nv50_disp_pioc_func
;
extern
const
struct
nv50_disp_chan_func
nv50_disp_pioc_func
;
...
@@ -94,13 +94,16 @@ extern const struct nv50_disp_chan_mthd gk104_disp_ovly_chan_mthd;
...
@@ -94,13 +94,16 @@ extern const struct nv50_disp_chan_mthd gk104_disp_ovly_chan_mthd;
struct
nv50_disp_pioc_oclass
{
struct
nv50_disp_pioc_oclass
{
int
(
*
ctor
)(
const
struct
nv50_disp_chan_func
*
,
int
(
*
ctor
)(
const
struct
nv50_disp_chan_func
*
,
const
struct
nv50_disp_chan_mthd
*
,
const
struct
nv50_disp_chan_mthd
*
,
struct
nv50_disp_root
*
,
int
c
hid
,
struct
nv50_disp_root
*
,
int
c
trl
,
int
user
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
);
struct
nvkm_object
**
);
struct
nvkm_sclass
base
;
struct
nvkm_sclass
base
;
const
struct
nv50_disp_chan_func
*
func
;
const
struct
nv50_disp_chan_func
*
func
;
const
struct
nv50_disp_chan_mthd
*
mthd
;
const
struct
nv50_disp_chan_mthd
*
mthd
;
int
chid
;
struct
{
int
ctrl
;
int
user
;
}
chid
;
};
};
extern
const
struct
nv50_disp_pioc_oclass
nv50_disp_oimm_oclass
;
extern
const
struct
nv50_disp_pioc_oclass
nv50_disp_oimm_oclass
;
...
@@ -121,12 +124,12 @@ extern const struct nv50_disp_pioc_oclass gk104_disp_curs_oclass;
...
@@ -121,12 +124,12 @@ extern const struct nv50_disp_pioc_oclass gk104_disp_curs_oclass;
int
nv50_disp_curs_new
(
const
struct
nv50_disp_chan_func
*
,
int
nv50_disp_curs_new
(
const
struct
nv50_disp_chan_func
*
,
const
struct
nv50_disp_chan_mthd
*
,
const
struct
nv50_disp_chan_mthd
*
,
struct
nv50_disp_root
*
,
int
c
hid
,
struct
nv50_disp_root
*
,
int
c
trl
,
int
user
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
);
struct
nvkm_object
**
);
int
nv50_disp_oimm_new
(
const
struct
nv50_disp_chan_func
*
,
int
nv50_disp_oimm_new
(
const
struct
nv50_disp_chan_func
*
,
const
struct
nv50_disp_chan_mthd
*
,
const
struct
nv50_disp_chan_mthd
*
,
struct
nv50_disp_root
*
,
int
c
hid
,
struct
nv50_disp_root
*
,
int
c
trl
,
int
user
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
);
struct
nvkm_object
**
);
#endif
#endif
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursg84.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ g84_disp_curs_oclass = {
...
@@ -33,5 +33,5 @@ g84_disp_curs_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_curs_new
,
.
ctor
=
nv50_disp_curs_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
7
,
.
chid
=
{
7
,
7
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgf119.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gf119_disp_curs_oclass = {
...
@@ -33,5 +33,5 @@ gf119_disp_curs_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_curs_new
,
.
ctor
=
nv50_disp_curs_new
,
.
func
=
&
gf119_disp_pioc_func
,
.
func
=
&
gf119_disp_pioc_func
,
.
chid
=
13
,
.
chid
=
{
13
,
13
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgk104.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gk104_disp_curs_oclass = {
...
@@ -33,5 +33,5 @@ gk104_disp_curs_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_curs_new
,
.
ctor
=
nv50_disp_curs_new
,
.
func
=
&
gf119_disp_pioc_func
,
.
func
=
&
gf119_disp_pioc_func
,
.
chid
=
13
,
.
chid
=
{
13
,
13
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgt215.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gt215_disp_curs_oclass = {
...
@@ -33,5 +33,5 @@ gt215_disp_curs_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_curs_new
,
.
ctor
=
nv50_disp_curs_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
7
,
.
chid
=
{
7
,
7
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/cursnv50.c
View file @
2a32b9b1
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
int
int
nv50_disp_curs_new
(
const
struct
nv50_disp_chan_func
*
func
,
nv50_disp_curs_new
(
const
struct
nv50_disp_chan_func
*
func
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
struct
nv50_disp_root
*
root
,
int
c
hid
,
struct
nv50_disp_root
*
root
,
int
c
trl
,
int
user
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
struct
nvkm_object
**
pobject
)
{
{
...
@@ -54,7 +54,7 @@ nv50_disp_curs_new(const struct nv50_disp_chan_func *func,
...
@@ -54,7 +54,7 @@ nv50_disp_curs_new(const struct nv50_disp_chan_func *func,
}
else
}
else
return
ret
;
return
ret
;
return
nv50_disp_chan_new_
(
func
,
mthd
,
root
,
c
hid
+
head
,
return
nv50_disp_chan_new_
(
func
,
mthd
,
root
,
c
trl
+
head
,
user
+
head
,
head
,
oclass
,
pobject
);
head
,
oclass
,
pobject
);
}
}
...
@@ -65,5 +65,5 @@ nv50_disp_curs_oclass = {
...
@@ -65,5 +65,5 @@ nv50_disp_curs_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_curs_new
,
.
ctor
=
nv50_disp_curs_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
7
,
.
chid
=
{
7
,
7
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacnv50.c
View file @
2a32b9b1
...
@@ -149,7 +149,7 @@ nv50_disp_dmac_new_(const struct nv50_disp_dmac_func *func,
...
@@ -149,7 +149,7 @@ nv50_disp_dmac_new_(const struct nv50_disp_dmac_func *func,
chan
->
func
=
func
;
chan
->
func
=
func
;
ret
=
nv50_disp_chan_ctor
(
&
nv50_disp_dmac_func_
,
mthd
,
root
,
ret
=
nv50_disp_chan_ctor
(
&
nv50_disp_dmac_func_
,
mthd
,
root
,
chid
,
head
,
oclass
,
&
chan
->
base
);
chid
,
chid
,
head
,
oclass
,
&
chan
->
base
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmg84.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ g84_disp_oimm_oclass = {
...
@@ -33,5 +33,5 @@ g84_disp_oimm_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_oimm_new
,
.
ctor
=
nv50_disp_oimm_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
5
,
.
chid
=
{
5
,
5
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgf119.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gf119_disp_oimm_oclass = {
...
@@ -33,5 +33,5 @@ gf119_disp_oimm_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_oimm_new
,
.
ctor
=
nv50_disp_oimm_new
,
.
func
=
&
gf119_disp_pioc_func
,
.
func
=
&
gf119_disp_pioc_func
,
.
chid
=
9
,
.
chid
=
{
9
,
9
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgk104.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gk104_disp_oimm_oclass = {
...
@@ -33,5 +33,5 @@ gk104_disp_oimm_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_oimm_new
,
.
ctor
=
nv50_disp_oimm_new
,
.
func
=
&
gf119_disp_pioc_func
,
.
func
=
&
gf119_disp_pioc_func
,
.
chid
=
9
,
.
chid
=
{
9
,
9
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmgt215.c
View file @
2a32b9b1
...
@@ -33,5 +33,5 @@ gt215_disp_oimm_oclass = {
...
@@ -33,5 +33,5 @@ gt215_disp_oimm_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_oimm_new
,
.
ctor
=
nv50_disp_oimm_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
5
,
.
chid
=
{
5
,
5
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/oimmnv50.c
View file @
2a32b9b1
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
int
int
nv50_disp_oimm_new
(
const
struct
nv50_disp_chan_func
*
func
,
nv50_disp_oimm_new
(
const
struct
nv50_disp_chan_func
*
func
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
const
struct
nv50_disp_chan_mthd
*
mthd
,
struct
nv50_disp_root
*
root
,
int
c
hid
,
struct
nv50_disp_root
*
root
,
int
c
trl
,
int
user
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
struct
nvkm_object
**
pobject
)
{
{
...
@@ -54,7 +54,7 @@ nv50_disp_oimm_new(const struct nv50_disp_chan_func *func,
...
@@ -54,7 +54,7 @@ nv50_disp_oimm_new(const struct nv50_disp_chan_func *func,
}
else
}
else
return
ret
;
return
ret
;
return
nv50_disp_chan_new_
(
func
,
mthd
,
root
,
c
hid
+
head
,
return
nv50_disp_chan_new_
(
func
,
mthd
,
root
,
c
trl
+
head
,
user
+
head
,
head
,
oclass
,
pobject
);
head
,
oclass
,
pobject
);
}
}
...
@@ -65,5 +65,5 @@ nv50_disp_oimm_oclass = {
...
@@ -65,5 +65,5 @@ nv50_disp_oimm_oclass = {
.
base
.
maxver
=
0
,
.
base
.
maxver
=
0
,
.
ctor
=
nv50_disp_oimm_new
,
.
ctor
=
nv50_disp_oimm_new
,
.
func
=
&
nv50_disp_pioc_func
,
.
func
=
&
nv50_disp_pioc_func
,
.
chid
=
5
,
.
chid
=
{
5
,
5
}
,
};
};
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
View file @
2a32b9b1
...
@@ -250,8 +250,8 @@ nv50_disp_root_pioc_new_(const struct nvkm_oclass *oclass,
...
@@ -250,8 +250,8 @@ nv50_disp_root_pioc_new_(const struct nvkm_oclass *oclass,
{
{
const
struct
nv50_disp_pioc_oclass
*
sclass
=
oclass
->
priv
;
const
struct
nv50_disp_pioc_oclass
*
sclass
=
oclass
->
priv
;
struct
nv50_disp_root
*
root
=
nv50_disp_root
(
oclass
->
parent
);
struct
nv50_disp_root
*
root
=
nv50_disp_root
(
oclass
->
parent
);
return
sclass
->
ctor
(
sclass
->
func
,
sclass
->
mthd
,
root
,
sclass
->
chid
,
return
sclass
->
ctor
(
sclass
->
func
,
sclass
->
mthd
,
root
,
sclass
->
chid
.
ctrl
,
oclass
,
data
,
size
,
pobject
);
sclass
->
chid
.
user
,
oclass
,
data
,
size
,
pobject
);
}
}
static
int
static
int
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment