Commit Graph

23 Commits

Author SHA1 Message Date
jmcneill 6a440044e9 Module depends on drm. 2008-05-20 14:20:21 +00:00
bjs f790bea856 drm 2008-05-19 00:15:44 +00:00
jmcneill 4f4434d528 Support building as a module. 2008-05-18 21:12:44 +00:00
jmcneill 235a59361f Support building as a module. 2008-05-18 20:02:34 +00:00
bjs 52c6ca762a Use cv(9) instead of mtsleep/wakeup. Also, define drm_hz as
mstohz(333) (this seems to eliminate lockups for me using the r300
driver).  Tested with i915 and radeon on amd64.
2008-05-18 02:45:17 +00:00
bjs c085692bea Add forgotten 'struct' for drm_ati_pcigart_info 2008-05-03 17:05:09 +00:00
bjs 98dd3c4324 Wedge in a smattering of updates for ati_pcigart.c and radeon support:
-- detypedef drm_ati_pcigart_info
-- add support for variable sized apertures in ati_pcigart.c
-- Add support for radeon IGP adapters (untested on NetBSD)
-- Update r300_reg.h to a much newer version.
-- Miscellaneous fixes in radeon_cp.c, radeon_state.c.

TODO: r300_cmdbuf.c  (?)

Please report any regressions to me.  While I try to make sure the
updates are somewhat coherent, our initial code base is old enough
such that it's quite difficult to be absolutely certain.  I hope to
rebase the NetBSD-specific code on the BSD code at the head of GIT
within a month or two, so this will do for now.
2008-05-02 01:29:36 +00:00
drochner 1f41b0e499 -map 64-bit PCI BARs
-integrate some bits from upstream to support i965
from Yorick Hardy per PM
2008-03-04 11:52:38 +00:00
drochner ee2a294e04 Register a NULL pmf handler, so that the system can suspend.
This is OK because wscons detaches the X server before devices are
suspended, and the X server closes the drm device on detach.
(We could install a suspend handler which just double-checks, but
atm its return value is ignored anyway.)
2008-02-27 18:01:49 +00:00
perry 9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
lukem e3899b9e67 NetBSD RCSID love 2007-12-11 11:48:40 +00:00
bjs 2e1c69e6e8 Bring in some modest fixes from GIT that seemed appropriate to me and did not
break functionality.  I've tested this on a PCIE R423 (X800).

- In drm_drv.c, check that the requested context lock matches the holder
of the lock.

- Unify radeon offset checking.  (r300_cmdbuf.c, radeon_drv.h, radeon_state.c)
[Replace r300_check_offset() with generic radeon_check_offset(), which doesn't
reject valid offsets when the framebuffer area is at the very end of the card's
32 bit address space. Make radeon_check_and_fixup_offset() use
radeon_check_offset() as well.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=7697]

NOTE: There is another AGP fix that I didn't have time to merge
that I thought might help with getting this to work on macppc.
Contact me if you're interested. Hi macallan@! ;)

radeon_cp.c, radeon_drv.h: (GIT id: bb5f2158dbd30dbbffa3881fac75b71d71ecaaf9)
- set the address to access the aperture on the CPU side correctly
[This code relied on the CPU and GPU address for the aperture being the same,
On some r5xx hardware I was playing with I noticed that this isn't always true.
I wonder if this will fix some of those r4xx DRI issues we've seen in the past.]

- Commit the ring after earch partial texture. (radeon_state.c)
(GIT ID: ac8406420ea80ffe5ccaadc1ff0124f95709a23d)
[Commit the ring after each partial texture upload blit.
This makes sure each blit starts as early as possible, which may improve
texture upload performance in some cases.]

If anyone's having any issues in particular--especially those which
can be _teased apart from AGP driver issues--please let me know
and I'll investigate.  Thanks.  There are also tons of fixes for the i915,
but I don't want to change too much at once.
2007-12-07 08:02:48 +00:00
bjs acac55ab19 First round of DRM improvements: switch to mutex(9), make use of &
operator consistent in locking macros, use mb(9) for memory barrier ops
(to be replaced with bus_space_barrier(9) at a later date; this is not
necessary for x86 but might be for e.g. mips).


More to come.  Try it out!  It's a lot more stable now just with the
mutex(9) changes.
2007-10-19 20:53:47 +00:00
dillo 46009d7e0f Fix include paths. Now all drm drivers build. 2007-03-29 13:09:48 +00:00
jmcneill e741359891 Fix include paths, mgadrm compiles now. 2007-03-29 11:42:39 +00:00
jmcneill 04a1167b6f Fix header locations for NetBSD. 2007-03-24 20:33:08 +00:00
jmcneill 80411c1546 Separate DRM files from files.pci 2007-03-24 15:04:10 +00:00
jmcneill c36fda54e9 Import viadrm(4) from DRI git. 2007-03-23 14:58:55 +00:00
jmcneill 3b4d961fa2 Re-enable writeback test (shouldn't have been disabled in the first place) 2007-03-22 15:17:59 +00:00
jmcneill 846be51501 Pull up misc radeon bug fixes from DRI. 2007-03-22 01:36:42 +00:00
jmcneill 48e45911b6 printk -> printf 2007-03-21 22:44:28 +00:00
macallan bbd6f83b09 fix a bunch of #include statements to make radeondrm and mach64drm compile 2007-03-20 22:12:14 +00:00
drochner 2d9e04fc35 Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test
2007-03-20 18:05:25 +00:00