Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
0897554c
Commit
0897554c
authored
Jun 14, 2011
by
Ben Skeggs
Browse files
drm/nouveau: fix big-endian switch
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
2c53b436
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
0897554c
...
...
@@ -881,8 +881,8 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
#ifdef __BIG_ENDIAN
/* Put the card in BE mode if it's not */
if
(
nv_rd32
(
dev
,
NV03_PMC_BOOT_1
))
nv_wr32
(
dev
,
NV03_PMC_BOOT_1
,
0x0
0
000001
);
if
(
nv_rd32
(
dev
,
NV03_PMC_BOOT_1
)
!=
0x01000001
)
nv_wr32
(
dev
,
NV03_PMC_BOOT_1
,
0x0
1
000001
);
DRM_MEMORYBARRIER
();
#endif
...
...
Write
Preview
Supports
Markdown
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