NetBSD/sys/uvm
snj 4d0bb4d615 Pull up following revision(s) (requested by mrg in ticket #718):
sys/arch/x86/include/pmap.h: revision 1.56
	sys/arch/x86/x86/pmap.c: revision 1.188
	sys/dev/pci/agp_amd64.c: revision 1.8
	sys/dev/pci/agp_i810.c: revision 1.118
	sys/external/bsd/drm2/dist/drm/i915/i915_dma.c: revision 1.16
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: revision 1.29
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_agp.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_ttm.c: revision 1.4
	sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_agp.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_display.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_crtc.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/radeon_object.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c: revision 1.7
	sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c: revisions 1.7-1.10
	sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c: revision 1.5
	sys/external/bsd/drm2/i915drm/intelfb.c: revision 1.13
	sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h: revisions 1.12, 1.13
	sys/external/bsd/drm2/include/linux/mm.h: revision 1.5
	sys/external/bsd/drm2/include/linux/pci.h: revisions 1.16, 1.17
	sys/external/bsd/drm2/nouveau/nouveaufb.c: revision 1.2
	sys/external/bsd/drm2/radeon/radeon_pci.c: revisions 1.8, 1.9
	sys/uvm/uvm_init.c: revision 1.46
Hack against the blank console problem:
Leave the CLUT alone on ancient cards. At least this leaves us with a
semi working console (red and blue are flipped). Leave an example of what
seems to be happening but disable it because colors are better than 444 bit
greyscale.
--
Initialize P->V tracking for unmanaged device pages in uvm_init.

Conditional on __HAVE_PMAP_PV_TRACK until we add it to all pmaps.

MI part of pmap_pv(9) change proposed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html
--
Implement pmap_pv(9) for x86 for P->V tracking of unmanaged pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html
--
Use pmap_pv(9) to remove mappings of Intel graphics aperture pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html

Further background at:

https://mail-index.netbsd.org/tech-kern/2014/07/23/msg017392.html
--
Use pmap_pv(9) to remove mappings of device pages in TTM.

Adapt nouveau and radeon to do pmap_pv_track for their device pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html

Further background at:

https://mail-index.netbsd.org/tech-kern/2014/07/23/msg017392.html
--
Fix error branches in agp_amd64.c.

- agp_generic_detach always.
- Free asc if it was allocated.  (Found by Brainy, noted by maxv@.)
- Free the GATT if it was allocated.
--
pmf_device_register returns false on failure, not true
--
In DRM_SPIN_WAIT_ON, don't stop after waiting only one tick.

Continue the loop to recheck the condition and count the whole
duration.
--
Don't use the video BIOS memory as an i915 flush page!
--
Don't let anyone else allocate the video BIOS either.
--
Missed a zero: it's 0x100000, not 0x10000.
--
Don't reserve if atomic -- caller must have pre-pinned the buffer.
--
Don't reserve if atomic -- caller must have pre-pinned the buffer.
--
almost add radeondrmkms suspend/resume support.  it unfortunately doesn't work.
--
Need the page's uvm object lock to do pmap_page_protect.
--
Use KASSERTMSG to show bad base/offset.
--
KASSERT about page-alignment on initialization too.
--
Don't break when hardclock_ticks wraps around.

Since we now only count time spent in wait, rather than determining
the end time and checking whether we've passed it, timeouts might be
marginally longer in effect.  Unlikely to be an issue.
--
Remove broken drm2 vm_mmap stub.  Can't possibly have ever worked.
--
apply some of the additional changes from Arto Huusko in PR#49645:
- call pmf_device_deregister on detach.

i've kept the "resume = true" for radeon_resume_kms() call as it
seems to work for me (indeed, code inspection shows it is unused
on netbsd :-)

my old nforce4 box that can resume old drm (or could, last i tried
several years ago) while X and GL apps were running, can at least
survive a resume if X hasn't started.  my one attempt so far with
X exited, but having run, did not work.
--
First attempt to make ttm_buffer_object_transfer less bogus.
--
Make sure mem.bus.is_iomem is initialized.  PR 49833
2015-04-23 07:31:16 +00:00
..
pmap Pull up following revision(s) (requested by skrll in ticket #188): 2014-11-09 16:05:25 +00:00
Makefile
files.uvm
uvm.h Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
uvm_amap.c
uvm_amap.h
uvm_anon.c
uvm_anon.h
uvm_aobj.c Allow VM_NFREELIST in uao_set_pgfl, meaning any freelist is OK. 2014-05-25 18:55:11 +00:00
uvm_aobj.h
uvm_bio.c Initialize ubchist earlier. 2014-07-07 20:14:43 +00:00
uvm_coredump.c
uvm_ddb.h
uvm_device.c Pull up following revision(s) (requested by chs in ticket #363): 2014-12-31 06:44:00 +00:00
uvm_device.h Pull up following revision(s) (requested by chs in ticket #363): 2014-12-31 06:44:00 +00:00
uvm_emap.c
uvm_extern.h Pull up following revision(s) (requested by maxv in ticket #617): 2015-03-25 16:54:37 +00:00
uvm_fault.c Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
uvm_fault.h
uvm_fault_i.h
uvm_glue.c
uvm_glue.h
uvm_init.c Pull up following revision(s) (requested by mrg in ticket #718): 2015-04-23 07:31:16 +00:00
uvm_io.c
uvm_km.c Pull up following revision(s) (requested by maxv in ticket #617): 2015-03-25 16:54:37 +00:00
uvm_km.h
uvm_kmguard.c
uvm_kmguard.h
uvm_loan.c
uvm_loan.h
uvm_map.c Pull up following revision(s) (requested by chs in ticket #447): 2015-01-23 16:31:06 +00:00
uvm_map.h
uvm_meter.c Pull up following revision(s) (requested by msaitoh in ticket #329): 2014-12-17 17:58:03 +00:00
uvm_mmap.c Pull up following revision(s) (requested by chs in ticket #403): 2015-01-11 06:27:40 +00:00
uvm_mremap.c
uvm_object.c
uvm_object.h
uvm_page.c Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
uvm_page.h
uvm_pager.c
uvm_pager.h
uvm_param.h
uvm_pdaemon.c
uvm_pdaemon.h
uvm_pdpolicy.h
uvm_pdpolicy_clock.c
uvm_pdpolicy_clockpro.c
uvm_pdpolicy_impl.h
uvm_pglist.c
uvm_pglist.h
uvm_pmap.h
uvm_prot.h
uvm_readahead.c
uvm_readahead.h
uvm_stat.c
uvm_stat.h
uvm_swap.c Add d_discard to all struct cdevsw instances I could find. 2014-07-25 08:10:31 +00:00
uvm_swap.h
uvm_swapstub.c
uvm_unix.c
uvm_user.c
uvm_vnode.c