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
921be10d
Commit
921be10d
authored
Apr 08, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mc: implement support for PTOP interrupt routing
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
583f8e4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
+11
-2
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
View file @
921be10d
...
...
@@ -60,9 +60,18 @@ nvkm_mc_intr(struct nvkm_mc *mc, bool *handled)
struct
nvkm_device
*
device
=
mc
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
;
const
struct
nvkm_mc_map
*
map
=
mc
->
func
->
intr
;
u32
stat
,
intr
;
u32
stat
,
intr
=
nvkm_mc_intr_mask
(
mc
);
u64
subdevs
;
stat
=
nvkm_top_intr
(
device
->
top
,
intr
,
&
subdevs
);
while
(
subdevs
)
{
enum
nvkm_devidx
subidx
=
__ffs64
(
subdevs
);
subdev
=
nvkm_device_subdev
(
device
,
subidx
);
if
(
subdev
)
nvkm_subdev_intr
(
subdev
);
subdevs
&=
~
BIT_ULL
(
subidx
);
}
stat
=
intr
=
nvkm_mc_intr_mask
(
mc
);
while
(
map
->
stat
)
{
if
(
intr
&
map
->
stat
)
{
subdev
=
nvkm_device_subdev
(
device
,
map
->
unit
);
...
...
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