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
c2c2f6cb
Commit
c2c2f6cb
authored
Sep 22, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios: fetch images beyond the first one in the rom
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
7af4dec1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/gpu/drm/nouveau/core/subdev/bios/image.c
drivers/gpu/drm/nouveau/core/subdev/bios/image.c
+7
-4
No files found.
drivers/gpu/drm/nouveau/core/subdev/bios/image.c
View file @
c2c2f6cb
...
...
@@ -47,7 +47,7 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image)
return
false
;
image
->
size
=
pcir
.
image_size
;
image
->
type
=
pcir
.
image_type
;
image
->
last
=
true
;
image
->
last
=
pcir
.
last
;
return
true
;
}
...
...
@@ -55,7 +55,10 @@ bool
nvbios_image
(
struct
nouveau_bios
*
bios
,
int
idx
,
struct
nvbios_image
*
image
)
{
memset
(
image
,
0x00
,
sizeof
(
*
image
));
if
(
idx
)
do
{
image
->
base
+=
image
->
size
;
if
(
image
->
last
||
!
nvbios_imagen
(
bios
,
image
))
return
false
;
return
nvbios_imagen
(
bios
,
image
);
}
while
(
idx
--
);
return
true
;
}
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