Commit Graph

1491 Commits

Author SHA1 Message Date
Rob 021265fbec Fix a crash in TV mode handling by initializing the prev field of modes. 2007-10-24 11:06:53 -07:00
Jesse Barnes 87345e820d intel_reg_dumper - dump VGA AR registers too
Add a VGA AR dumping function so we can debug text mode problems too.
2007-10-22 14:22:37 -07:00
Eric Anholt 78e251db67 In the clock graph, draw the VCO as erasures in the lines representing clocks.
This shows one of the reasons for the gaps: with the other settings, the VCO
is too low inside the gap.  However, it also points out another issue: we
aren't using the high end of the VCO range due to some other limits being hit.
2007-10-19 15:04:10 -07:00
Eric Anholt 9f9b888525 Warn in the log if we choose a PLL clock that's way out of line. 2007-10-18 11:29:24 -07:00
Eric Anholt 1f8bf11039 Add some nickle scripts for looking at PLL issues.
While here, move similar nickle scripts under src/scripts/
2007-10-18 11:29:24 -07:00
Eric Anholt 79636b8c77 Bump pciaccess version requirement for new API usage. 2007-10-17 17:10:46 -07:00
Dave Airlie c824c45e72 intel: make block handler hook happen no matter what video is in use
This shouldn't make a difference now, but for upcoming EXA/batch changes it
will be more useful
2007-10-17 16:35:29 +10:00
Rob aa88d23e61 AOpen 965GM mini pc has no LVDS 2007-10-17 09:19:19 +08:00
Kyle McMartin 38900f55e2 toshiba satellite u300 has no tv out 2007-10-16 16:38:28 -04:00
Michel Dänzer 74ac5de14e Adapt to libdrm buffer object API changes. 2007-10-16 15:08:26 +02:00
Eric Anholt d66e924680 In update_front_offset(), set pScrn->fbOffset even at EnterVT during init.
Failure to do so led to the memset() at EnterVT being done to an invalid
offset.
2007-10-15 11:31:51 -07:00
Jesse Barnes c94cdfd6dd Fix palette save/restore
When restoring the palette, we weren't checking to make sure the
associated pipe was enabled before writing the registers.  In some
configurations, this led to a driver crash.  Add new routines to handle
palette save/restore and verify that the pipes are on before we touch
the registers (could easily be changed to enable/disable the pipes
around the save/restore as well).
2007-10-13 15:57:45 -07:00
Eric Anholt e04333a635 Fix failure in tiling setup on non-power-of-two allocations on pre-965. 2007-10-12 16:14:52 -07:00
Eric Anholt a1612b7728 Use mprotect on unbound AGP memory to attempt to catch use while unbound.
This doesn't help with the most common use-while-unbound cases, which are
from the hardware side.
2007-10-12 16:14:50 -07:00
Eric Anholt 3af442ba52 Don't double-free the memory manager allocation. 2007-10-11 12:17:15 -07:00
Eric Anholt 6c485ff5bd Update memory manager sizing for the current set of LIFETIME_FIXED bufffers. 2007-10-11 12:17:15 -07:00
Eric Anholt d47cf14877 Move tiling fence register setup to bind time instead of allocate time.
This allows us to allocate tiled buffers in buffer objects.  In the process
I removed the fence division that we had for tiled buffers on pre-965.  If we
resurrect that code, it should probably be managed by just dividing all the
objects in roughly half and fencing those halves (to reduce the alignment
requirement), instead of using giant fences until we run out of space and then
trying to deal with scarce space on the last (or not) buffer.  Halving
our tiled objects would use 6/8 of our fence registers on that hardware.
2007-10-11 12:17:15 -07:00
Eric Anholt a6dc81a086 Allow front/back/depth to move over the lifetime of the server. 2007-10-11 12:17:15 -07:00
Eric Anholt 132dce7565 Delay SAREA and mapping setup until EnterVT when using the memory manager.
Otherwise, we would use uninitialized offsets in the early setup.
2007-10-11 12:17:14 -07:00
Eric Anholt 4ca3550fb7 Rework DRI buffer mappings and sarea setup to allow for moving buffers.
While this has been a desired feature for some time, to allow for reallocation
of the front buffer, it was made more necessary by the desire to avoid
requiring a NO_MOVE buffer type in TTM because buffer objects may not be left
pinned over VT switch.  This is a step towards making those buffers
movable and resizable.
2007-10-11 12:17:14 -07:00
Eric Anholt f393a12d21 Move drmMMLock to after we have unbound our (pinned) buffers.
There are still issues due to the fact that we're allocating
NEED_LIFETIME_FIXED memory as buffer objects, which we refuse to unpin because
we have no way of pinning it back in the same location.
2007-10-11 12:17:14 -07:00
Eric Anholt 8fc4e30782 Refuse to allocate LIFETIME_FIXED objects in buffer objects.
We can't guarantee the offset will stay the same using the current DRM
interface, but the correct solution is fixing our code to allow these objects
to move.  Breaks TTM mode of the DRI driver for now.
2007-10-11 12:17:14 -07:00
Eric Anholt 0de747f7d2 In i830_allocate_memory_bo, bind if we control the VT, not on lifetime-fixed. 2007-10-11 12:17:14 -07:00
Eric Anholt 0040bb9544 Fix potential use-after-free in XV overlay code on video stop. 2007-10-11 12:17:14 -07:00
Zhenyu Wang 56ae767180 Revert "Fix G33 GTT stolen mem range"
This reverts commit 2a8592f2eb.

This causes compat issue between ddx and kernel apggart version.
Revert it as it shouldn't hurt normal people's default GTT size,
but if you change it to 1MB in bios, it's supposed to be broken now.
2007-10-11 10:09:29 +08:00
Zhenyu Wang 5faee02e97 EXA: fix tiled dest rendering on i8XX chips 2007-10-10 13:55:30 +08:00
Keith Packard 5bbe9f09fd Include xf86mm.h if using XF86DRI_MM
This header file doesn't appear to be getting automatically included for
some reason.
2007-10-08 13:09:15 -07:00
Keith Packard 41dacf97ec Quirk for Samsung Q35 which has no TV output. 2007-10-08 13:09:15 -07:00
Eric Anholt 9e770bf69e Replace setting of LIFETIME_FIXED on cursors with just updating the offsets. 2007-10-05 13:02:19 -07:00
Eric Anholt c9d6e90c25 Don't set overlay registers LIFETIME_FIXED. It always uses the current offset. 2007-10-05 13:02:16 -07:00
Eric Anholt 1cc6bec462 Revert setting of exa_965_state as LIFETIME_FIXED.
The current offset is used every time in render setup.
2007-10-05 13:02:12 -07:00
Eric Anholt dfa22df8ce Don't leak buffer object allocations in i830_reset_allocations(). 2007-10-05 12:53:07 -07:00
Eric Anholt 7db9d706a1 Warning cleanup. 2007-10-05 12:40:48 -07:00
Eric Anholt bf33c4e2d9 Fix formatting of error message. 2007-10-05 12:40:37 -07:00
Eric Anholt 04e936935f Bring the CH7017 driver closer to spec.
This is also closer to what my hardware is programmed with, except for some
very confusing off-by-one bugs in an unexpected direction.
2007-10-01 17:29:35 -07:00
Eric Anholt 263d48ad93 Fix probing of the sample CH7017 device I found by allowing GPIO overrides.
It may be that the LVDS chips need to be DVOA and GPIOB only on mobility
devices with them, and DVOC/GPIOE on non-mobility like this 845.  But until
more examples are found, just make this one device probe.
2007-10-01 16:23:30 -07:00
Eric Anholt 219354af21 Restore building of pciaccess-based tools even if the server doesn't use it. 2007-10-01 16:09:13 -07:00
Eric Anholt 1b83e5e589 Remove more DVO probing noise. 2007-10-01 14:32:28 -07:00
Eric Anholt 29d3188ee9 Suppress I2C failure error messages during DVO device detection.
Otherwise, errors would be printed for every chip probed which wasn't present
on the system.
2007-10-01 13:48:48 -07:00
Eric Anholt 6dd8228a38 Enable CH7017/7018 DVO driver by default.
On hardware containing one of these chips (generally single pipe with an LVDS
connected), it's probably better to try to enable it and fail in some cases
than to not probe the output at all.
2007-10-01 13:48:48 -07:00
Eric Anholt 994ee6721d Disable TV/VGA output on the CH7017/7018 devices.
We don't support those outputs on this chip yet, so turn them off if the BIOS
had set them on.
2007-10-01 13:48:48 -07:00
Regis Prevot 0e5574e842 Ignore detection of TV output on Panasonic CF-Y7 2007-09-29 10:28:44 -04:00
Jesse Barnes 1845e7c6e9 Go back to using old drm_i915_flip_t field name
This field shouldn't have been renamed in the first place.  Go back to using
the old name so that the tree is backward and forward compatible again.
2007-09-28 10:12:11 -07:00
Kyle McMartin f3d92ab474 Dell XPS 1330 has no TV out 2007-09-28 10:17:55 -04:00
Zhenyu Wang bbf69c7446 Pin cursor, overlay(no physical) and exa state buffers
And cursor mem counting for dri mem manager is not relate
to overlay.
2007-09-27 17:37:19 +08:00
Eric Anholt ca67fa767d Remove logic for supporting i915tex_dri.so vs. i915_dri.so.
There can be only one.
2007-09-24 11:12:22 -07:00
Eric Anholt 130f79613b Merge branch 'buffer-objects'
This branch changes i830_memory.c's allocator to use TTM when available to
allocate memory, which also allows TTM to control almost the entire aperture.
As a result, our front/back/depth buffers are created as real buffer objects,
which may be used by the DRI driver instead of the fake buffer type in TTM.
The updated DRM with bo_set_pin ioctl is required, to allow us to pin and
unpin our buffers as needed.
2007-09-21 17:20:15 -07:00
Eric Anholt 126031655c Merge remote branch 'origin/master' into buffer-objects
Conflicts:

	src/i830.h
	src/i830_driver.c
2007-09-20 08:57:58 -07:00
Hong Liu b73235f404 Fix pixmap offset
Use consistent interface for counting pixmap offset.
2007-09-20 11:28:52 +08:00
Dmitry Babrovich bda3c69a7a Bug #12457: Let the ch7xxx driver probe the 7301
Looking at the 7304, this chipset likely requires slightly different
programming.  However, this change allows for at least some functionality.
2007-09-18 09:35:20 -07:00