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
aca78e91
Commit
aca78e91
authored
Apr 29, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/ce: stub interrupt handler
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
48506d17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
+16
-0
drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
View file @
aca78e91
...
@@ -67,6 +67,19 @@ nve0_copy_cclass = {
...
@@ -67,6 +67,19 @@ nve0_copy_cclass = {
* PCOPY engine/subdev functions
* PCOPY engine/subdev functions
******************************************************************************/
******************************************************************************/
static
void
nve0_copy_intr
(
struct
nouveau_subdev
*
subdev
)
{
const
int
ce
=
nv_subidx
(
nv_object
(
subdev
))
-
NVDEV_ENGINE_COPY0
;
struct
nve0_copy_priv
*
priv
=
(
void
*
)
subdev
;
u32
stat
=
nv_rd32
(
priv
,
0x104908
+
(
ce
*
0x1000
));
if
(
stat
)
{
nv_warn
(
priv
,
"unhandled intr 0x%08x
\n
"
,
stat
);
nv_wr32
(
priv
,
0x104908
+
(
ce
*
0x1000
),
stat
);
}
}
static
int
static
int
nve0_copy0_ctor
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
nve0_copy0_ctor
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
...
@@ -85,6 +98,7 @@ nve0_copy0_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -85,6 +98,7 @@ nve0_copy0_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
return
ret
;
nv_subdev
(
priv
)
->
unit
=
0x00000040
;
nv_subdev
(
priv
)
->
unit
=
0x00000040
;
nv_subdev
(
priv
)
->
intr
=
nve0_copy_intr
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
return
0
;
return
0
;
...
@@ -108,6 +122,7 @@ nve0_copy1_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -108,6 +122,7 @@ nve0_copy1_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
return
ret
;
nv_subdev
(
priv
)
->
unit
=
0x00000080
;
nv_subdev
(
priv
)
->
unit
=
0x00000080
;
nv_subdev
(
priv
)
->
intr
=
nve0_copy_intr
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
return
0
;
return
0
;
...
@@ -128,6 +143,7 @@ nve0_copy2_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -128,6 +143,7 @@ nve0_copy2_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
return
ret
;
nv_subdev
(
priv
)
->
unit
=
0x00200000
;
nv_subdev
(
priv
)
->
unit
=
0x00200000
;
nv_subdev
(
priv
)
->
intr
=
nve0_copy_intr
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
return
0
;
return
0
;
...
...
drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c
View file @
aca78e91
...
@@ -33,6 +33,7 @@ nvc0_mc_intr[] = {
...
@@ -33,6 +33,7 @@ nvc0_mc_intr[] = {
{
0x00000001
,
NVDEV_ENGINE_PPP
},
{
0x00000001
,
NVDEV_ENGINE_PPP
},
{
0x00000020
,
NVDEV_ENGINE_COPY0
},
{
0x00000020
,
NVDEV_ENGINE_COPY0
},
{
0x00000040
,
NVDEV_ENGINE_COPY1
},
{
0x00000040
,
NVDEV_ENGINE_COPY1
},
{
0x00000080
,
NVDEV_ENGINE_COPY2
},
{
0x00000100
,
NVDEV_ENGINE_FIFO
},
{
0x00000100
,
NVDEV_ENGINE_FIFO
},
{
0x00001000
,
NVDEV_ENGINE_GR
},
{
0x00001000
,
NVDEV_ENGINE_GR
},
{
0x00008000
,
NVDEV_ENGINE_BSP
},
{
0x00008000
,
NVDEV_ENGINE_BSP
},
...
...
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