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
85ae830f
Commit
85ae830f
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mmu: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c47a48a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
+5
-4
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
View file @
85ae830f
...
...
@@ -187,7 +187,7 @@ nv44_mmu_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
mmu
->
nullp
=
pci_alloc_consistent
(
device
->
pdev
,
16
*
1024
,
&
mmu
->
null
);
if
(
!
mmu
->
nullp
)
{
nv
_warn
(
mmu
,
"unable to allocate dummy pages
\n
"
);
nv
km_warn
(
&
mmu
->
base
.
subdev
,
"unable to allocate dummy pages
\n
"
);
mmu
->
null
=
0
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
View file @
85ae830f
...
...
@@ -146,14 +146,15 @@ static void
nv50_vm_flush
(
struct
nvkm_vm
*
vm
)
{
struct
nvkm_mmu
*
mmu
=
(
void
*
)
vm
->
mmu
;
struct
nvkm_device
*
device
=
mmu
->
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
mmu
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_bar
*
bar
=
device
->
bar
;
struct
nvkm_engine
*
engine
;
int
i
,
vme
;
bar
->
flush
(
bar
);
mutex_lock
(
&
nv_subdev
(
mmu
)
->
mutex
);
mutex_lock
(
&
subdev
->
mutex
);
for
(
i
=
0
;
i
<
NVDEV_SUBDEV_NR
;
i
++
)
{
if
(
!
atomic_read
(
&
vm
->
engref
[
i
]))
continue
;
...
...
@@ -186,9 +187,9 @@ nv50_vm_flush(struct nvkm_vm *vm)
if
(
!
(
nvkm_rd32
(
device
,
0x100c80
)
&
0x00000001
))
break
;
)
<
0
)
nv
_error
(
mmu
,
"vm flush timeout: engine %d
\n
"
,
vme
);
nv
km_error
(
subdev
,
"vm flush timeout: engine %d
\n
"
,
vme
);
}
mutex_unlock
(
&
nv_subdev
(
mmu
)
->
mutex
);
mutex_unlock
(
&
subdev
->
mutex
);
}
static
int
...
...
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