Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ermine
R128
Commits
d0f3c7e4
Commit
d0f3c7e4
authored
13 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nouveau: give a slightly larger pci(e)gart aperture on all chipsets
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
78c20186
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/gpu/drm/nouveau/nouveau_sgdma.c
+2
-2
2 additions, 2 deletions
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/nouveau/nv04_instmem.c
+2
-6
2 additions, 6 deletions
drivers/gpu/drm/nouveau/nv04_instmem.c
with
4 additions
and
8 deletions
drivers/gpu/drm/nouveau/nouveau_sgdma.c
+
2
−
2
View file @
d0f3c7e4
...
...
@@ -341,10 +341,10 @@ nouveau_sgdma_init(struct drm_device *dev)
u32
aper_size
,
align
;
int
ret
;
if
(
dev_priv
->
card_type
>=
NV_40
&&
pci_is_pcie
(
dev
->
pdev
)
)
if
(
dev_priv
->
card_type
>=
NV_40
)
aper_size
=
512
*
1024
*
1024
;
else
aper_size
=
64
*
1024
*
1024
;
aper_size
=
128
*
1024
*
1024
;
/* Dear NVIDIA, NV44+ would like proper present bits in PTEs for
* christmas. The cards before it have them, the cards after
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nv04_instmem.c
+
2
−
6
View file @
d0f3c7e4
...
...
@@ -41,12 +41,8 @@ int nv04_instmem_init(struct drm_device *dev)
rsvd
+=
16
*
1024
;
rsvd
*=
dev_priv
->
engine
.
fifo
.
channels
;
/* pciegart table */
if
(
pci_is_pcie
(
dev
->
pdev
))
rsvd
+=
512
*
1024
;
/* object storage */
rsvd
+=
512
*
1024
;
rsvd
+=
512
*
1024
;
/* pci(e)gart table */
rsvd
+=
512
*
1024
;
/* object storage */
dev_priv
->
ramin_rsvd_vram
=
round_up
(
rsvd
,
4096
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment