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
dc73b45a
Commit
dc73b45a
authored
Sep 26, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: store supported dma mask in vmmgr
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c0abf5c9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
7 deletions
+9
-7
drivers/gpu/drm/nouveau/core/include/subdev/vm.h
drivers/gpu/drm/nouveau/core/include/subdev/vm.h
+1
-0
drivers/gpu/drm/nouveau/core/subdev/vm/nv04.c
drivers/gpu/drm/nouveau/core/subdev/vm/nv04.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/vm/nv41.c
drivers/gpu/drm/nouveau/core/subdev/vm/nv41.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/vm/nv44.c
drivers/gpu/drm/nouveau/core/subdev/vm/nv44.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c
drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c
+1
-0
drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c
+1
-0
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
+3
-7
No files found.
drivers/gpu/drm/nouveau/core/include/subdev/vm.h
View file @
dc73b45a
...
@@ -69,6 +69,7 @@ struct nouveau_vmmgr {
...
@@ -69,6 +69,7 @@ struct nouveau_vmmgr {
struct
nouveau_subdev
base
;
struct
nouveau_subdev
base
;
u64
limit
;
u64
limit
;
u8
dma_bits
;
u32
pgt_bits
;
u32
pgt_bits
;
u8
spg_shift
;
u8
spg_shift
;
u8
lpg_shift
;
u8
lpg_shift
;
...
...
drivers/gpu/drm/nouveau/core/subdev/vm/nv04.c
View file @
dc73b45a
...
@@ -97,6 +97,7 @@ nv04_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -97,6 +97,7 @@ nv04_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
limit
=
NV04_PDMA_SIZE
;
priv
->
base
.
limit
=
NV04_PDMA_SIZE
;
priv
->
base
.
dma_bits
=
32
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
...
...
drivers/gpu/drm/nouveau/core/subdev/vm/nv41.c
View file @
dc73b45a
...
@@ -98,6 +98,7 @@ nv41_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -98,6 +98,7 @@ nv41_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
limit
=
NV41_GART_SIZE
;
priv
->
base
.
limit
=
NV41_GART_SIZE
;
priv
->
base
.
dma_bits
=
39
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
...
...
drivers/gpu/drm/nouveau/core/subdev/vm/nv44.c
View file @
dc73b45a
...
@@ -179,6 +179,7 @@ nv44_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -179,6 +179,7 @@ nv44_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
create
=
nv04_vm_create
;
priv
->
base
.
limit
=
NV44_GART_SIZE
;
priv
->
base
.
limit
=
NV44_GART_SIZE
;
priv
->
base
.
dma_bits
=
39
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
pgt_bits
=
32
-
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
priv
->
base
.
lpg_shift
=
12
;
...
...
drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c
View file @
dc73b45a
...
@@ -201,6 +201,7 @@ nv50_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -201,6 +201,7 @@ nv50_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
return
ret
;
priv
->
base
.
limit
=
1ULL
<<
40
;
priv
->
base
.
limit
=
1ULL
<<
40
;
priv
->
base
.
dma_bits
=
40
;
priv
->
base
.
pgt_bits
=
29
-
12
;
priv
->
base
.
pgt_bits
=
29
-
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
lpg_shift
=
16
;
priv
->
base
.
lpg_shift
=
16
;
...
...
drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c
View file @
dc73b45a
...
@@ -163,6 +163,7 @@ nvc0_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
...
@@ -163,6 +163,7 @@ nvc0_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
return
ret
;
priv
->
base
.
limit
=
1ULL
<<
40
;
priv
->
base
.
limit
=
1ULL
<<
40
;
priv
->
base
.
dma_bits
=
40
;
priv
->
base
.
pgt_bits
=
27
-
12
;
priv
->
base
.
pgt_bits
=
27
-
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
spg_shift
=
12
;
priv
->
base
.
lpg_shift
=
17
;
priv
->
base
.
lpg_shift
=
17
;
...
...
drivers/gpu/drm/nouveau/nouveau_ttm.c
View file @
dc73b45a
...
@@ -340,14 +340,10 @@ nouveau_ttm_init(struct nouveau_drm *drm)
...
@@ -340,14 +340,10 @@ nouveau_ttm_init(struct nouveau_drm *drm)
u32
bits
;
u32
bits
;
int
ret
;
int
ret
;
if
(
nv_device
(
drm
->
device
)
->
card_type
>=
NV_50
)
{
bits
=
nouveau_vmmgr
(
drm
->
device
)
->
dma_bits
;
if
(
pci_dma_supported
(
dev
->
pdev
,
DMA_BIT_MASK
(
40
)))
if
(
drm
->
agp
.
stat
==
ENABLED
||
bits
=
40
;
!
pci_dma_supported
(
dev
->
pdev
,
DMA_BIT_MASK
(
bits
)))
else
bits
=
32
;
}
else
{
bits
=
32
;
bits
=
32
;
}
ret
=
pci_set_dma_mask
(
dev
->
pdev
,
DMA_BIT_MASK
(
bits
));
ret
=
pci_set_dma_mask
(
dev
->
pdev
,
DMA_BIT_MASK
(
bits
));
if
(
ret
)
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