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
nexedi
linux
Commits
66adbfb0
Commit
66adbfb0
authored
May 30, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mc: support for temporarily masking interrupts from a specific device
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
6e09a578
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
drivers/gpu/drm/nouveau/include/nvkm/subdev/mc.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/mc.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
+15
-0
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
+2
-0
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/mc.h
View file @
66adbfb0
...
...
@@ -13,6 +13,7 @@ void nvkm_mc_reset(struct nvkm_device *, enum nvkm_devidx);
void
nvkm_mc_intr
(
struct
nvkm_device
*
,
bool
*
handled
);
void
nvkm_mc_intr_unarm
(
struct
nvkm_device
*
);
void
nvkm_mc_intr_rearm
(
struct
nvkm_device
*
);
void
nvkm_mc_intr_mask
(
struct
nvkm_device
*
,
enum
nvkm_devidx
,
bool
enable
);
void
nvkm_mc_unk260
(
struct
nvkm_device
*
,
u32
data
);
int
nv04_mc_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_mc
**
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
View file @
66adbfb0
...
...
@@ -34,6 +34,21 @@ nvkm_mc_unk260(struct nvkm_device *device, u32 data)
mc
->
func
->
unk260
(
mc
,
data
);
}
void
nvkm_mc_intr_mask
(
struct
nvkm_device
*
device
,
enum
nvkm_devidx
devidx
,
bool
en
)
{
struct
nvkm_mc
*
mc
=
device
->
mc
;
const
struct
nvkm_mc_map
*
map
;
if
(
likely
(
mc
)
&&
mc
->
func
->
intr_mask
)
{
u32
mask
=
nvkm_top_intr_mask
(
device
,
devidx
);
for
(
map
=
mc
->
func
->
intr
;
!
mask
&&
map
->
stat
;
map
++
)
{
if
(
map
->
unit
==
devidx
)
mask
=
map
->
stat
;
}
mc
->
func
->
intr_mask
(
mc
,
mask
,
en
?
mask
:
0
);
}
}
void
nvkm_mc_intr_unarm
(
struct
nvkm_device
*
device
)
{
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
View file @
66adbfb0
...
...
@@ -21,6 +21,8 @@ struct nvkm_mc_func {
void
(
*
intr_unarm
)(
struct
nvkm_mc
*
);
/* enable reporting of interrupts to host */
void
(
*
intr_rearm
)(
struct
nvkm_mc
*
);
/* (un)mask delivery of specific interrupts */
void
(
*
intr_mask
)(
struct
nvkm_mc
*
,
u32
mask
,
u32
stat
);
/* retrieve pending interrupt mask (NV_PMC_INTR) */
u32
(
*
intr_stat
)(
struct
nvkm_mc
*
);
const
struct
nvkm_mc_map
*
reset
;
...
...
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