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
e7d96929
Commit
e7d96929
authored
Aug 11, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bar: behave better if ioremap failed
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
e715396a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
+11
-3
No files found.
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
View file @
e7d96929
...
@@ -99,8 +99,13 @@ nouveau_bar_alloc(struct nouveau_bar *bar, struct nouveau_object *parent,
...
@@ -99,8 +99,13 @@ nouveau_bar_alloc(struct nouveau_bar *bar, struct nouveau_object *parent,
struct
nouveau_mem
*
mem
,
struct
nouveau_object
**
pobject
)
struct
nouveau_mem
*
mem
,
struct
nouveau_object
**
pobject
)
{
{
struct
nouveau_object
*
engine
=
nv_object
(
bar
);
struct
nouveau_object
*
engine
=
nv_object
(
bar
);
return
nouveau_object_ctor
(
parent
,
engine
,
&
nouveau_barobj_oclass
,
int
ret
=
-
ENOMEM
;
mem
,
0
,
pobject
);
if
(
bar
->
iomem
)
{
ret
=
nouveau_object_ctor
(
parent
,
engine
,
&
nouveau_barobj_oclass
,
mem
,
0
,
pobject
);
}
return
ret
;
}
}
int
int
...
@@ -118,9 +123,12 @@ nouveau_bar_create_(struct nouveau_object *parent,
...
@@ -118,9 +123,12 @@ nouveau_bar_create_(struct nouveau_object *parent,
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
if
(
nv_device_resource_len
(
device
,
3
)
!=
0
)
if
(
nv_device_resource_len
(
device
,
3
)
!=
0
)
{
bar
->
iomem
=
ioremap
(
nv_device_resource_start
(
device
,
3
),
bar
->
iomem
=
ioremap
(
nv_device_resource_start
(
device
,
3
),
nv_device_resource_len
(
device
,
3
));
nv_device_resource_len
(
device
,
3
));
if
(
!
bar
->
iomem
)
nv_warn
(
bar
,
"PRAMIN ioremap failed
\n
"
);
}
return
0
;
return
0
;
}
}
...
...
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