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
nexedi
linux
Commits
9aa73a51
Commit
9aa73a51
authored
Jul 12, 2011
by
Keith Packard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'drm-intel-fixes' into drm-intel-next
parents
c7c36947
a94919ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_dma.c
+11
-3
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.c
+1
-1
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/intel_ringbuffer.h
+1
-1
No files found.
drivers/gpu/drm/i915/i915_dma.c
View file @
9aa73a51
...
...
@@ -1945,7 +1945,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
if
(
!
dev_priv
->
mm
.
gtt
)
{
DRM_ERROR
(
"Failed to initialize GTT
\n
"
);
ret
=
-
ENODEV
;
goto
out_
iomapfree
;
goto
out_
rmmap
;
}
agp_size
=
dev_priv
->
mm
.
gtt
->
gtt_mappable_entries
<<
PAGE_SHIFT
;
...
...
@@ -1989,7 +1989,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
if
(
dev_priv
->
wq
==
NULL
)
{
DRM_ERROR
(
"Failed to create our workqueue.
\n
"
);
ret
=
-
ENOMEM
;
goto
out_
iomap
free
;
goto
out_
mtrr
free
;
}
/* enable GEM by default */
...
...
@@ -2076,13 +2076,21 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
return
0
;
out_gem_unload:
if
(
dev_priv
->
mm
.
inactive_shrinker
.
shrink
)
unregister_shrinker
(
&
dev_priv
->
mm
.
inactive_shrinker
);
if
(
dev
->
pdev
->
msi_enabled
)
pci_disable_msi
(
dev
->
pdev
);
intel_teardown_gmbus
(
dev
);
intel_teardown_mchbar
(
dev
);
destroy_workqueue
(
dev_priv
->
wq
);
out_iomapfree:
out_mtrrfree:
if
(
dev_priv
->
mm
.
gtt_mtrr
>=
0
)
{
mtrr_del
(
dev_priv
->
mm
.
gtt_mtrr
,
dev
->
agp
->
base
,
dev
->
agp
->
agp_info
.
aper_size
*
1024
*
1024
);
dev_priv
->
mm
.
gtt_mtrr
=
-
1
;
}
io_mapping_free
(
dev_priv
->
mm
.
gtt_mapping
);
out_rmmap:
pci_iounmap
(
dev
->
pdev
,
dev_priv
->
regs
);
...
...
drivers/gpu/drm/i915/i915_drv.c
View file @
9aa73a51
...
...
@@ -52,7 +52,7 @@ module_param_named(powersave, i915_powersave, int, 0600);
unsigned
int
i915_semaphores
=
0
;
module_param_named
(
semaphores
,
i915_semaphores
,
int
,
0600
);
unsigned
int
i915_enable_rc6
=
1
;
unsigned
int
i915_enable_rc6
=
0
;
module_param_named
(
i915_enable_rc6
,
i915_enable_rc6
,
int
,
0600
);
unsigned
int
i915_enable_fbc
=
1
;
...
...
drivers/gpu/drm/i915/intel_ringbuffer.h
View file @
9aa73a51
...
...
@@ -165,7 +165,7 @@ void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring);
int
__must_check
intel_wait_ring_buffer
(
struct
intel_ring_buffer
*
ring
,
int
n
);
static
inline
int
intel_wait_ring_idle
(
struct
intel_ring_buffer
*
ring
)
{
return
intel_wait_ring_buffer
(
ring
,
ring
->
s
pac
e
-
8
);
return
intel_wait_ring_buffer
(
ring
,
ring
->
s
iz
e
-
8
);
}
int
__must_check
intel_ring_begin
(
struct
intel_ring_buffer
*
ring
,
int
n
);
...
...
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