History log of /src/sys/external/bsd/drm2/include/linux/mm.h |
Revision | | Date | Author | Comments |
1.24 |
| 19-Dec-2021 |
riastradh | amdgpu: Another pass through.
amdgpu_object.c amdgpu_pci.c amdgpu_pm.c amdgpu_polaris10_smumgr.c amdgpu_pp_psm.c amdgpu_ppatomctrl.c amdgpu_ppatomfwctrl.c amdgpu_process_pptables_v1_0.o amdgpu_psp.o amdgpu_psp_v10_0.c amdgpu_psp_v11_0.c amdgpu_psp_v12_0.c amdgpu_psp_v3_1.c amdgpu_ras.c amdgpu_ras_eeprom.c amdgpu_rc_calc.c amdgpu_rc_calc_dpi.c amdgpu_ring.c amdgpu_rlc.c amdgpu_rn_clk_mgr.c amdgpu_sdma_v3_0.c amdgpu_sdma_v4_0.c amdgpu_sdma_v5_0.c amdgpu_si.c amdgpu_si_dma.c amdgpu_si_dpm.c amdgpu_smu.c amdgpu_smu10_hwmgr.c amdgpu_smu7_hwmgr.c amdgpu_smu8_hwmgr.c amdgpu_smu8_smumgr.c amdgpu_smu_v11_0.c (and a sprinkling of consts) amdgpu_smu_v11_0_i2c.c amdgpu_soc15.c amdgpu_tonga_smumgr.c amdgpu_ttm.c amdgpu_ucode.c amdgpu_uvd.c amdgpu_uvd_v5_0.c amdgpu_uvd_v6_0.c amdgpu_uvd_v7_0.c amdgpu_vce.c amdgpu_vce_v2_0.c amdgpu_vce_v4_0.c amdgpu_vcn_v1_0.c amdgpu_vcn_v2_0.c amdgpu_vcn_v2_5.c amdgpu_vega10_hwmgr.c amdgpu_vega10_powertune.c amdgpu_vega10_processpptables.c amdgpu_vega10_reg_init.c amdgpu_vega12_hwmgr.c amdgpu_vega20_hwmgr.c amdgpu_vega20_ppt.c amdgpu_vega20_reg_init.c amdgpu_vi.c amdgpu_virt.c amdgpu_vram_mgr.c amdgpu_xgmi.c -- disable (for now?) amdgpufb.c
|
1.23 |
| 19-Dec-2021 |
riastradh | linux: Use kmem directly for Linux kmalloc.
Take advantage of this to do LOCKDEBUG_MEM_CHECK at the point of kfree_rcu rather than in the RCU GC thread.
|
1.22 |
| 19-Dec-2021 |
riastradh | Cast, because we get passed void*
Author: Maya Rashish <maya@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
|
1.21 |
| 19-Dec-2021 |
riastradh | drm: Another pass over i915. Most of i915 gem builds now.
|
1.20 |
| 19-Dec-2021 |
riastradh | kvcalloc
|
1.19 |
| 19-Dec-2021 |
riastradh | kvmalloc, kludgey platformdev hacks
|
1.18 |
| 19-Dec-2021 |
riastradh | Define untagged_addr
Author: Maya Rashish <maya@NetBSD.org>
|
1.17 |
| 19-Dec-2021 |
riastradh | Side-load linux/sizes.h like linux does.
One way to get SZ_1M to be defined for intel_guc.c
Author: Maya Rashish <maya@NetBSD.org>
|
1.16 |
| 19-Dec-2021 |
riastradh | Kookily define si_mem_available.
|
1.15 |
| 19-Dec-2021 |
riastradh | Define kvzalloc.
|
1.14 |
| 19-Dec-2021 |
riastradh | Define kvmalloc_array.
|
1.13 |
| 23-Feb-2020 |
ad | UVM locking changes, proposed on tech-kern:
- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock. - Break v_interlock and vmobjlock apart. v_interlock remains a mutex. - Do partial PV list locking in the x86 pmap. Others to follow later.
|
1.12 |
| 19-Jan-2020 |
skrll | Fix build on aarch64 by including uvm_object.h.
OK from Riastradh
|
1.11 |
| 17-Jan-2020 |
ad | set_page_dirty: take the vmobjlock if present
|
1.10 |
| 15-Jan-2020 |
ad | Merge from yamt-pagecache (after much testing):
- Reduce unnecessary page scan in putpages esp. when an object has a ton of pages cached but only a few of them are dirty.
- Reduce the number of pmap operations by tracking page dirtiness more precisely in uvm layer.
|
1.9 |
| 27-Aug-2018 |
riastradh | branches: 1.9.6; Implement kvfree by free(9); assume kmalloc/vmalloc use malloc(9).
|
1.8 |
| 27-Aug-2018 |
riastradh | Implement set_page_dirty. Reduce diff a little.
|
1.7 |
| 27-Aug-2018 |
riastradh | match linux side loading of headers
more bring in OLD drm code to unbreak the build matching netbsd types etc. to get the build going
Author: coypu <coypu@sdf.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
|
1.6 |
| 18-Oct-2015 |
jmcneill | branches: 1.6.16; 1.6.18; add get_num_physpages
|
1.5 |
| 17-Apr-2015 |
riastradh | Remove broken drm2 vm_mmap stub. Can't possibly have ever worked.
|
1.4 |
| 14-Dec-2014 |
chs | add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for mappings of file objects. move vnode-specific details of mmap()ing a vnode from uvm_mmap() to the new vnode-specific vn_mmap(). add new uvm_mmap_dev() and uvm_mmap_anon() convenience functions for mapping character devices and anonymous memory, and replace all other calls to uvm_mmap() with those. use the new fileop in drm2 so that libdrm can use mmap() to map things like on other platforms (instead of the ioctl that we have used so far).
|
1.3 |
| 16-Jul-2014 |
riastradh | branches: 1.3.2; 1.3.4; 1.3.6; First whack at radeon driver.
No hardware to test yet, but it builds.
|
1.2 |
| 18-Mar-2014 |
riastradh | branches: 1.2.2; 1.2.4; 1.2.6; Merge riastradh-drm2 to HEAD.
|
1.1 |
| 24-Jul-2013 |
riastradh | branches: 1.1.2; file mm.h was initially added on branch riastradh-drm2.
|
1.1.2.5 |
| 08-Sep-2013 |
riastradh | Fix definition of Linux PAGE_ALIGN in <linux/mm.h>.
Can't use uvm round_page because that depends on PAGE_MASK, whose sense we have to invert for Linux! Plurgh.
|
1.1.2.4 |
| 24-Jul-2013 |
riastradh | Mega-kludge: reverse sense of PAGE_MASK in <linux/mm.h>.
|
1.1.2.3 |
| 24-Jul-2013 |
riastradh | Use e_vm_default_addr to choose a default address in Linux vm_mmap.
|
1.1.2.2 |
| 24-Jul-2013 |
riastradh | First stab at vm_mmap in <linux/mm.h>. Also PAGE_SIZE & round_page.
|
1.1.2.1 |
| 24-Jul-2013 |
riastradh | Add stubs for Linux header files for drm.
|
1.2.6.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.2.6.1 |
| 18-Mar-2014 |
yamt | file mm.h was added on branch yamt-pagecache on 2014-05-22 11:40:56 +0000
|
1.2.4.2 |
| 18-May-2014 |
rmind | sync with head
|
1.2.4.1 |
| 18-Mar-2014 |
rmind | file mm.h was added on branch rmind-smpnet on 2014-05-18 17:46:01 +0000
|
1.2.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.3.6.3 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.3.6.2 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.3.6.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.3.4.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.3.4.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.3.4.1 |
| 16-Jul-2014 |
tls | file mm.h was added on branch tls-maxphys on 2014-08-20 00:04:21 +0000
|
1.3.2.2 |
| 23-Apr-2015 |
snj | 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
|
1.3.2.1 |
| 31-Dec-2014 |
snj | Pull up following revision(s) (requested by chs in ticket #363): common/lib/libprop/prop_kern.c: revision 1.18 sys/arch/mac68k/dev/grf_compat.c: revision 1.27 sys/arch/x68k/dev/grf.c: revision 1.45 sys/external/bsd/drm/dist/bsd-core/drm_bufs.c: revision 1.12 sys/external/bsd/drm2/drm/drm_drv.c: revision 1.12 sys/external/bsd/drm2/drm/drm_vm.c: revision 1.6 sys/external/bsd/drm2/include/linux/mm.h: revision 1.4 sys/kern/vfs_vnops.c: revision 1.192 via patch sys/rump/librump/rumpkern/vm.c: revision 1.160 sys/sys/file.h: revision 1.78 via patch sys/uvm/uvm_device.c: revision 1.64 sys/uvm/uvm_device.h: revision 1.13 sys/uvm/uvm_extern.h: revision 1.192 sys/uvm/uvm_mmap.c: revision 1.150 via patch add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for mappings of file objects. move vnode-specific details of mmap()ing a vnode from uvm_mmap() to the new vnode-specific vn_mmap(). add new uvm_mmap_dev() and uvm_mmap_anon() convenience functions for mapping character devices and anonymous memory, and replace all other calls to uvm_mmap() with those. use the new fileop in drm2 so that libdrm can use mmap() to map things like on other platforms (instead of the ioctl that we have used so far).
|
1.6.18.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.6.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.6.16.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.9.6.3 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.9.6.2 |
| 25-Jan-2020 |
ad | Sync with head.
|
1.9.6.1 |
| 17-Jan-2020 |
ad | Sync with head.
|