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
xenomai
ipipe-x86
Commits
ddfd2da4
Commit
ddfd2da4
authored
Dec 11, 2011
by
Ben Skeggs
Browse files
drm/nouveau: memory type detection for the really old chipsets
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
7ad2d31c
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/gpu/drm/nouveau/nv04_fb.c
View file @
ddfd2da4
...
...
@@ -29,6 +29,11 @@ nv04_fb_vram_init(struct drm_device *dev)
}
}
if
((
boot0
&
0x00000038
)
<=
0x10
)
dev_priv
->
vram_type
=
NV_MEM_TYPE_SGRAM
;
else
dev_priv
->
vram_type
=
NV_MEM_TYPE_SDRAM
;
return
0
;
}
...
...
drivers/gpu/drm/nouveau/nv10_fb.c
View file @
ddfd2da4
...
...
@@ -35,6 +35,14 @@ nv10_fb_vram_init(struct drm_device *dev)
u32
fifo_data
=
nv_rd32
(
dev
,
NV04_PFB_FIFO_DATA
);
dev_priv
->
vram_size
=
fifo_data
&
NV10_PFB_FIFO_DATA_RAM_AMOUNT_MB_MASK
;
if
(
dev_priv
->
card_type
<
NV_20
)
{
u32
cfg0
=
nv_rd32
(
dev
,
0x100200
);
if
(
cfg0
&
0x00000001
)
dev_priv
->
vram_type
=
NV_MEM_TYPE_DDR1
;
else
dev_priv
->
vram_type
=
NV_MEM_TYPE_SDRAM
;
}
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