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
18019e95
Commit
18019e95
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/ibus: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
1cb57d25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c
+9
-6
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c
+9
-6
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c
View file @
18019e95
...
@@ -26,33 +26,36 @@
...
@@ -26,33 +26,36 @@
static
void
static
void
gf100_ibus_intr_hub
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gf100_ibus_intr_hub
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x122120
+
(
i
*
0x0400
));
u32
addr
=
nvkm_rd32
(
device
,
0x122120
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x122124
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x122124
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x122128
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x122128
+
(
i
*
0x0400
));
nv
_error
(
ibus
,
"HUB%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"HUB%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x122128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x122128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
}
}
static
void
static
void
gf100_ibus_intr_rop
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gf100_ibus_intr_rop
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x124120
+
(
i
*
0x0400
));
u32
addr
=
nvkm_rd32
(
device
,
0x124120
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x124124
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x124124
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x124128
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x124128
+
(
i
*
0x0400
));
nv
_error
(
ibus
,
"ROP%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"ROP%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x124128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x124128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
}
}
static
void
static
void
gf100_ibus_intr_gpc
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gf100_ibus_intr_gpc
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x128120
+
(
i
*
0x0400
));
u32
addr
=
nvkm_rd32
(
device
,
0x128120
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x128124
+
(
i
*
0x0400
));
u32
data
=
nvkm_rd32
(
device
,
0x128124
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x128128
+
(
i
*
0x0400
));
u32
stat
=
nvkm_rd32
(
device
,
0x128128
+
(
i
*
0x0400
));
nv
_error
(
ibus
,
"GPC%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"GPC%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x128128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x128128
+
(
i
*
0x0400
),
0x00000200
,
0x00000000
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c
View file @
18019e95
...
@@ -26,33 +26,36 @@
...
@@ -26,33 +26,36 @@
static
void
static
void
gk104_ibus_intr_hub
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gk104_ibus_intr_hub
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x122120
+
(
i
*
0x0800
));
u32
addr
=
nvkm_rd32
(
device
,
0x122120
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x122124
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x122124
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x122128
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x122128
+
(
i
*
0x0800
));
nv
_error
(
ibus
,
"HUB%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"HUB%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x122128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x122128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
}
}
static
void
static
void
gk104_ibus_intr_rop
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gk104_ibus_intr_rop
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x124120
+
(
i
*
0x0800
));
u32
addr
=
nvkm_rd32
(
device
,
0x124120
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x124124
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x124124
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x124128
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x124128
+
(
i
*
0x0800
));
nv
_error
(
ibus
,
"ROP%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"ROP%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x124128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x124128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
}
}
static
void
static
void
gk104_ibus_intr_gpc
(
struct
nvkm_ibus
*
ibus
,
int
i
)
gk104_ibus_intr_gpc
(
struct
nvkm_ibus
*
ibus
,
int
i
)
{
{
struct
nvkm_device
*
device
=
ibus
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ibus
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
addr
=
nvkm_rd32
(
device
,
0x128120
+
(
i
*
0x0800
));
u32
addr
=
nvkm_rd32
(
device
,
0x128120
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x128124
+
(
i
*
0x0800
));
u32
data
=
nvkm_rd32
(
device
,
0x128124
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x128128
+
(
i
*
0x0800
));
u32
stat
=
nvkm_rd32
(
device
,
0x128128
+
(
i
*
0x0800
));
nv
_error
(
ibus
,
"GPC%d: 0x%06x 0x%08x (0x
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nv
km_error
(
subdev
,
"GPC%d: %06x %08x (
%08x)
\n
"
,
i
,
addr
,
data
,
stat
);
nvkm_mask
(
device
,
0x128128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
nvkm_mask
(
device
,
0x128128
+
(
i
*
0x0800
),
0x00000200
,
0x00000000
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
View file @
18019e95
...
@@ -53,7 +53,7 @@ gk20a_ibus_intr(struct nvkm_subdev *subdev)
...
@@ -53,7 +53,7 @@ gk20a_ibus_intr(struct nvkm_subdev *subdev)
u32
status0
=
nvkm_rd32
(
device
,
0x120058
);
u32
status0
=
nvkm_rd32
(
device
,
0x120058
);
if
(
status0
&
0x7
)
{
if
(
status0
&
0x7
)
{
nv
_debug
(
ibus
,
"resetting ibus ring
\n
"
);
nv
km_debug
(
subdev
,
"resetting ibus ring
\n
"
);
gk20a_ibus_init_ibus_ring
(
ibus
);
gk20a_ibus_init_ibus_ring
(
ibus
);
}
}
...
...
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