#
1.26 |
|
18-Mar-2022 |
riastradh |
old drm: Use getticks(), not hardclock_ticks.
Should delete this code, no idea if it even still compiles.
|
Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 isaki-audio2-base
|
#
1.25 |
|
06-Apr-2019 |
thorpej |
Overhaul the API used to fetch and store individual memory cells in userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(), subyte(), suword(), etc.) are retired and replaced with new ufetch(9) and ustore(9) APIs that can return proper error codes, etc. and are implemented consistently across all platforms. The interrupt-safe variants are no longer supported (and several of the existing attempts at fuswintr(), etc. were buggy and not actually interrupt-safe).
Also augmement the ucas(9) API, making it consistently available on all plaforms, supporting uniprocessor and multiprocessor systems, even those that do not have CAS or LL/SC primitives.
Welcome to NetBSD 8.99.37.
|
Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921 nick-nhusb-base-20150606
|
#
1.24 |
|
20-Apr-2015 |
riastradh |
branches: 1.24.18; Remove old drm's container_of.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE rmind-smpnet-nbase netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.23 |
|
01-Jul-2011 |
dyoung |
branches: 1.23.12; 1.23.30; #include <sys/bus.h> instead of <machine/bus.h>.
|
Revision tags: rmind-uvmplock-nbase rmind-uvmplock-base
|
#
1.22 |
|
09-Jun-2011 |
joerg |
dma_addr_t may not be a 64bit type, so add an explicit cast here instead of silent truncation
|
Revision tags: cherry-xenmp-base bouyer-quota2-nbase
|
#
1.21 |
|
24-Feb-2011 |
mrg |
branches: 1.21.2; convert all crtc values passed in from userland to be unsigned instead of signed. there's still some more internal to the i915 driver that should be converted.
tested on a radeon x1550.
|
#
1.20 |
|
18-Feb-2011 |
jmcneill |
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
|
Revision tags: bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 uebayasi-xip-base2 yamt-nfs-mp-base10
|
#
1.19 |
|
24-May-2010 |
mrg |
branches: 1.19.2; 1.19.4; use round_page() for PAGE_ALIGN(). from Onno van der Linden <o.vd.linden@quicknet.nl> in PR#38700, though apparently i didn't commit it way back when i closed that bug. oops?
|
#
1.18 |
|
24-May-2010 |
mrg |
implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions of the drm code) svn commits:
-- SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland
Add kernel support for Radeon R6/7xx 3D.
You will still need Mesa from git and possibly an updated DDX driver, but this is working fairly well now. -- SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland
Add support for radeon RS880 IGP chips to drm. -- SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland
Add support for Radeon HD 4770 (RV740) chips. -- SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland
Add GET_PARAM support for Z pipes.
This is needed for occulsion queries on rv530 chips. -- SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland
A bit of cleanup work on radeon_freelist_get()
* Fix the main loop to search all buffers before sleeping. * Remove dead code -- SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland
Fix offset handling -- SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland
radeon_family is an enum, so ordering can be important.
sync up with what amd is shipping. -- SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland
R600 doesn't support IRQs yet, so don't try to use them. --
special thanks to robert noland @ freebsd for making this an easy port!
|
#
1.17 |
|
19-May-2010 |
mrg |
only use bus_space*() on drm_local_map_t's that have been mapped into some bus space somewhere. otherwise, just use normal accesses since it is normal memory.
this fixes radeondrm on x86 since bus_space_tag_t became a pointer.
add the "GEM" and "TTM" mapping types to sysctl support (though right now we will never have them in our list of maps.)
|
Revision tags: uebayasi-xip-base1 yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.16 |
|
26-Jan-2010 |
jmorse |
branches: 1.16.2; 1.16.4; PR/42262: Support drm drivers (intel G33/G45) submapping pci resources
|
Revision tags: matt-premerge-20091211
|
#
1.15 |
|
06-Dec-2009 |
dyoung |
Delete the do-nothing device-activation hook, drm_activate().
|
Revision tags: yamt-nfs-mp-base8 jym-xensuspend-nbase
|
#
1.14 |
|
02-Sep-2009 |
mrg |
- normalize netbsd drm_mtrr_del() with freebsd, removing a few #if's - make the mtrr code do nothing on non-x86
|
Revision tags: yamt-nfs-mp-base7
|
#
1.13 |
|
07-Aug-2009 |
mrg |
remove some netbsd specific code that does nothing.
|
Revision tags: jymxensuspend-base yamt-nfs-mp-base6
|
#
1.12 |
|
20-Jun-2009 |
mrg |
some minor clean up: - reduce diffs to mesa-drm where possible - fix various formatting issues - netbsd uses major 180 for drm (XXX)
no functional changes intended.
|
#
1.11 |
|
19-Jun-2009 |
mrg |
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c with our changes and the work recently done by Arto Huusko <arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.
it includes all the changes arto provided from both mesa-drm and the r6xx-r7xx-support branch. it does not yet include code to handle the (deleted) drm_pciids.h file, but i'll probably just check in a generated one for now.
i have not yet merged the changes from outside this dir.
from arto's messages to tech-x11:
The important change that was needed is that drm_scatter.c was fixed to return pointer to all allocated pages, not just the beginning of the allocated segments.
Other changes:
- drm_scatter maps COHERENT memory - drm_drawable: drawable handle allocation is done inside lock - drm_memory: when mapping "agp" memory, store offset of mapped area, so that new requests to same offset return the same area instead of trying to remap and fail - drm_vm: use bus_space_mmap for frame buffer and registers
- r600_cp.c: ioremapfree allocated gart range - radeon_cp.c: use mtsleep - some memset calls I had added had their args swapped, and no memory was cleared
|
Revision tags: yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.10 |
|
30-Mar-2009 |
mrg |
branches: 1.10.2; - apply from sys/dev: revision 1.33 date: 2009/03/29 17:00:50; author: mrg; state: Exp; lines: +12 -4 add a comment explaining DRM_NETBSD_ADDR2HANDLE/DRM_NETBSD_HANDLE2ADDR:
* This hack strips the top bit from amd64 addresses, which avoid * udv_attach() returning NULL for "negative" offset. * A better hack would be to encode the offset of some kernel data * structure..
add a new DRM_HANDLE_NEEDS_MASK macro to check whether the above need to be applied for various mapping types (_DRM_SHM and _DRM_SCATTER_GATHER.)
also: - use IPL_VM for now - use a lot of bus_space - struct drm_device now has a pointer to the device_t
|
Revision tags: netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 netbsd-5-0-RC1 haad-dm-base haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 simonb-wapbl-base simonb-wapbl-nbase
|
#
1.9 |
|
25-Jul-2008 |
bjs |
branches: 1.9.2; 1.9.4; 1.9.6; 1.9.8; 1.9.10; 1.9.14; 1.9.18; - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).
- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros. The memory we're reading/writing from is not always allocated with bus_space, and so this will not do. Instead, since all of our bus_space maps are linear, volatile pointer dereferences will do just fine.
- Unify members of struct drm_dma_handle amongst freebsd and netbsd: the 'addr' member was superfluous; also, set dmah->tag from dev->pa.pa_dmat and use that.
- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately following bus_dmamap_create(), so there's no need to avoid deferring allocation to load time.
- Add check for nsegs != 1 in drm_pci_alloc().
- We don't need the DRM_PCI_DMAADDR macro right now--it was only used once.
|
#
1.8 |
|
25-Jul-2008 |
mrg |
merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4.
|
#
1.7 |
|
25-Jul-2008 |
bjs |
IRQ_HANDLED should be 1, not 0.
|
#
1.6 |
|
19-Jul-2008 |
mrg |
merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
|
Revision tags: mrg-before-jul19
|
#
1.5 |
|
19-Jul-2008 |
bjs |
use ALIGN() instead of rolling our own.
|
#
1.4 |
|
19-Jul-2008 |
jmcneill |
Implement drm_drawable gunk and drm_locked_task, untested. i915drm links now.
|
#
1.3 |
|
19-Jul-2008 |
bjs |
Change IPL of DRM_SPININIT macro to IPL_NONE. Currently, the only mutex initialized by this macro is the dma lock, which certainly should not be IPL_VM. The priorities of the other locks should be revisited.
Also, in DRM_WAIT_ON, enforce the policy of "drm returns -errno to shared code" (this used to be implemented via a macro).
|
#
1.2 |
|
19-Jul-2008 |
mrg |
pull over many many changes from netbsd-current sys/dev/{,pci/}drm/. make the mesa-drm style Makefile's actually run on netbsd (but i doubt they work yet.)
this still has a lot to go. it doesn't work yet, but it's getting close.
most of this is from other authors than myself: yorrick, drochner, jared, bjs, all contributed a lot more than i have so far, but there's a bunch of clean up from myself in here as well.
|
#
1.1 |
|
19-Jul-2008 |
mrg |
branches: 1.1.1; Initial revision
|
Revision tags: isaki-audio2-base
|
#
1.25 |
|
06-Apr-2019 |
thorpej |
Overhaul the API used to fetch and store individual memory cells in userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(), subyte(), suword(), etc.) are retired and replaced with new ufetch(9) and ustore(9) APIs that can return proper error codes, etc. and are implemented consistently across all platforms. The interrupt-safe variants are no longer supported (and several of the existing attempts at fuswintr(), etc. were buggy and not actually interrupt-safe).
Also augmement the ucas(9) API, making it consistently available on all plaforms, supporting uniprocessor and multiprocessor systems, even those that do not have CAS or LL/SC primitives.
Welcome to NetBSD 8.99.37.
|
Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921 nick-nhusb-base-20150606
|
#
1.24 |
|
20-Apr-2015 |
riastradh |
Remove old drm's container_of.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE rmind-smpnet-nbase netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.23 |
|
01-Jul-2011 |
dyoung |
branches: 1.23.12; 1.23.30; #include <sys/bus.h> instead of <machine/bus.h>.
|
Revision tags: rmind-uvmplock-nbase rmind-uvmplock-base
|
#
1.22 |
|
09-Jun-2011 |
joerg |
dma_addr_t may not be a 64bit type, so add an explicit cast here instead of silent truncation
|
Revision tags: cherry-xenmp-base bouyer-quota2-nbase
|
#
1.21 |
|
24-Feb-2011 |
mrg |
branches: 1.21.2; convert all crtc values passed in from userland to be unsigned instead of signed. there's still some more internal to the i915 driver that should be converted.
tested on a radeon x1550.
|
#
1.20 |
|
18-Feb-2011 |
jmcneill |
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
|
Revision tags: bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 uebayasi-xip-base2 yamt-nfs-mp-base10
|
#
1.19 |
|
24-May-2010 |
mrg |
branches: 1.19.2; 1.19.4; use round_page() for PAGE_ALIGN(). from Onno van der Linden <o.vd.linden@quicknet.nl> in PR#38700, though apparently i didn't commit it way back when i closed that bug. oops?
|
#
1.18 |
|
24-May-2010 |
mrg |
implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions of the drm code) svn commits:
-- SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland
Add kernel support for Radeon R6/7xx 3D.
You will still need Mesa from git and possibly an updated DDX driver, but this is working fairly well now. -- SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland
Add support for radeon RS880 IGP chips to drm. -- SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland
Add support for Radeon HD 4770 (RV740) chips. -- SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland
Add GET_PARAM support for Z pipes.
This is needed for occulsion queries on rv530 chips. -- SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland
A bit of cleanup work on radeon_freelist_get()
* Fix the main loop to search all buffers before sleeping. * Remove dead code -- SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland
Fix offset handling -- SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland
radeon_family is an enum, so ordering can be important.
sync up with what amd is shipping. -- SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland
R600 doesn't support IRQs yet, so don't try to use them. --
special thanks to robert noland @ freebsd for making this an easy port!
|
#
1.17 |
|
19-May-2010 |
mrg |
only use bus_space*() on drm_local_map_t's that have been mapped into some bus space somewhere. otherwise, just use normal accesses since it is normal memory.
this fixes radeondrm on x86 since bus_space_tag_t became a pointer.
add the "GEM" and "TTM" mapping types to sysctl support (though right now we will never have them in our list of maps.)
|
Revision tags: uebayasi-xip-base1 yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.16 |
|
26-Jan-2010 |
jmorse |
branches: 1.16.2; 1.16.4; PR/42262: Support drm drivers (intel G33/G45) submapping pci resources
|
Revision tags: matt-premerge-20091211
|
#
1.15 |
|
06-Dec-2009 |
dyoung |
Delete the do-nothing device-activation hook, drm_activate().
|
Revision tags: yamt-nfs-mp-base8 jym-xensuspend-nbase
|
#
1.14 |
|
02-Sep-2009 |
mrg |
- normalize netbsd drm_mtrr_del() with freebsd, removing a few #if's - make the mtrr code do nothing on non-x86
|
Revision tags: yamt-nfs-mp-base7
|
#
1.13 |
|
07-Aug-2009 |
mrg |
remove some netbsd specific code that does nothing.
|
Revision tags: jymxensuspend-base yamt-nfs-mp-base6
|
#
1.12 |
|
20-Jun-2009 |
mrg |
some minor clean up: - reduce diffs to mesa-drm where possible - fix various formatting issues - netbsd uses major 180 for drm (XXX)
no functional changes intended.
|
#
1.11 |
|
19-Jun-2009 |
mrg |
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c with our changes and the work recently done by Arto Huusko <arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.
it includes all the changes arto provided from both mesa-drm and the r6xx-r7xx-support branch. it does not yet include code to handle the (deleted) drm_pciids.h file, but i'll probably just check in a generated one for now.
i have not yet merged the changes from outside this dir.
from arto's messages to tech-x11:
The important change that was needed is that drm_scatter.c was fixed to return pointer to all allocated pages, not just the beginning of the allocated segments.
Other changes:
- drm_scatter maps COHERENT memory - drm_drawable: drawable handle allocation is done inside lock - drm_memory: when mapping "agp" memory, store offset of mapped area, so that new requests to same offset return the same area instead of trying to remap and fail - drm_vm: use bus_space_mmap for frame buffer and registers
- r600_cp.c: ioremapfree allocated gart range - radeon_cp.c: use mtsleep - some memset calls I had added had their args swapped, and no memory was cleared
|
Revision tags: yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.10 |
|
30-Mar-2009 |
mrg |
branches: 1.10.2; - apply from sys/dev: revision 1.33 date: 2009/03/29 17:00:50; author: mrg; state: Exp; lines: +12 -4 add a comment explaining DRM_NETBSD_ADDR2HANDLE/DRM_NETBSD_HANDLE2ADDR:
* This hack strips the top bit from amd64 addresses, which avoid * udv_attach() returning NULL for "negative" offset. * A better hack would be to encode the offset of some kernel data * structure..
add a new DRM_HANDLE_NEEDS_MASK macro to check whether the above need to be applied for various mapping types (_DRM_SHM and _DRM_SCATTER_GATHER.)
also: - use IPL_VM for now - use a lot of bus_space - struct drm_device now has a pointer to the device_t
|
Revision tags: netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 netbsd-5-0-RC1 haad-dm-base haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 simonb-wapbl-base simonb-wapbl-nbase
|
#
1.9 |
|
25-Jul-2008 |
bjs |
branches: 1.9.2; 1.9.4; 1.9.6; 1.9.8; 1.9.10; 1.9.14; 1.9.18; - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).
- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros. The memory we're reading/writing from is not always allocated with bus_space, and so this will not do. Instead, since all of our bus_space maps are linear, volatile pointer dereferences will do just fine.
- Unify members of struct drm_dma_handle amongst freebsd and netbsd: the 'addr' member was superfluous; also, set dmah->tag from dev->pa.pa_dmat and use that.
- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately following bus_dmamap_create(), so there's no need to avoid deferring allocation to load time.
- Add check for nsegs != 1 in drm_pci_alloc().
- We don't need the DRM_PCI_DMAADDR macro right now--it was only used once.
|
#
1.8 |
|
25-Jul-2008 |
mrg |
merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4.
|
#
1.7 |
|
25-Jul-2008 |
bjs |
IRQ_HANDLED should be 1, not 0.
|
#
1.6 |
|
19-Jul-2008 |
mrg |
merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
|
Revision tags: mrg-before-jul19
|
#
1.5 |
|
19-Jul-2008 |
bjs |
use ALIGN() instead of rolling our own.
|
#
1.4 |
|
19-Jul-2008 |
jmcneill |
Implement drm_drawable gunk and drm_locked_task, untested. i915drm links now.
|
#
1.3 |
|
19-Jul-2008 |
bjs |
Change IPL of DRM_SPININIT macro to IPL_NONE. Currently, the only mutex initialized by this macro is the dma lock, which certainly should not be IPL_VM. The priorities of the other locks should be revisited.
Also, in DRM_WAIT_ON, enforce the policy of "drm returns -errno to shared code" (this used to be implemented via a macro).
|
#
1.2 |
|
19-Jul-2008 |
mrg |
pull over many many changes from netbsd-current sys/dev/{,pci/}drm/. make the mesa-drm style Makefile's actually run on netbsd (but i doubt they work yet.)
this still has a lot to go. it doesn't work yet, but it's getting close.
most of this is from other authors than myself: yorrick, drochner, jared, bjs, all contributed a lot more than i have so far, but there's a bunch of clean up from myself in here as well.
|
#
1.1 |
|
19-Jul-2008 |
mrg |
branches: 1.1.1; Initial revision
|