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
e0435120
Commit
e0435120
authored
Jan 11, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv40: support for 39-bit dma addresses on native PCIE chipsets
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
7948758d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mem.c
+11
-5
No files found.
drivers/gpu/drm/nouveau/nouveau_mem.c
View file @
e0435120
...
...
@@ -393,11 +393,17 @@ nouveau_mem_vram_init(struct drm_device *dev)
struct
ttm_bo_device
*
bdev
=
&
dev_priv
->
ttm
.
bdev
;
int
ret
,
dma_bits
;
if
(
dev_priv
->
card_type
>=
NV_50
&&
pci_dma_supported
(
dev
->
pdev
,
DMA_BIT_MASK
(
40
)))
dma_bits
=
40
;
else
dma_bits
=
32
;
dma_bits
=
32
;
if
(
dev_priv
->
card_type
>=
NV_50
)
{
if
(
pci_dma_supported
(
dev
->
pdev
,
DMA_BIT_MASK
(
40
)))
dma_bits
=
40
;
}
else
if
(
drm_pci_device_is_pcie
(
dev
)
&&
dev_priv
->
chipset
!=
0x40
&&
dev_priv
->
chipset
!=
0x45
)
{
if
(
pci_dma_supported
(
dev
->
pdev
,
DMA_BIT_MASK
(
39
)))
dma_bits
=
39
;
}
ret
=
pci_set_dma_mask
(
dev
->
pdev
,
DMA_BIT_MASK
(
dma_bits
));
if
(
ret
)
...
...
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