History log of /src/sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c |
Revision | | Date | Author | Comments |
1.9 |
| 10-Nov-2019 |
chs | in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.8 |
| 29-Sep-2012 |
chs | branches: 1.8.38; fix the DRM string sysctls to use copyout() instead of strcat() to deliver the data to the user buffer.
|
1.7 |
| 02-Jun-2012 |
dsl | branches: 1.7.2; Add some pre-processor magic to verify that the type of the data item passed to sysctl_createv() actually matches the declared type for the item itself. In the places where the caller specifies a function and a structure address (typically the 'softc') an explicit (void *) cast is now needed. Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting AcpiGbl_EnableAmlDebugObject. (mostly passing the address of a uint64_t when typed as CTLTYPE_INT). I've test built quite a few kernels, but there may be some unfixed MD fallout. Most likely passing &char[] to char *. Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
|
1.6 |
| 10-Nov-2010 |
mrg | branches: 1.6.8; 1.6.14; 1.6.16; use a sysctllog structure, and sysctl_teardown(), to destroy the drm data.
this should actually now fix PR#40029.
|
1.5 |
| 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.)
|
1.4 |
| 20-Jun-2009 |
mrg | branches: 1.4.2; 1.4.4; 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.3 |
| 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
|
1.2 |
| 19-Jul-2008 |
mrg | branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20; 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
|
1.1.1.2 |
| 19-Jun-2009 |
mrg | import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
|
1.1.1.1 |
| 19-Jul-2008 |
mrg | import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb, which is approximately june 25th or so.
|
1.2.20.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.2.18.4 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.2.18.3 |
| 18-Jul-2009 |
yamt | sync with head.
|
1.2.18.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.2.18.1 |
| 19-Jul-2008 |
yamt | file drm_sysctl.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:29 +0000
|
1.2.14.1 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
1.2.10.3 |
| 31-Oct-2012 |
riz | Pull up following revision(s) (requested by chs in ticket #1811): sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c: revision 1.8 fix the DRM string sysctls to use copyout() instead of strcat() to deliver the data to the user buffer.
|
1.2.10.2 |
| 08-Dec-2010 |
riz | Patch the following files (requested by mrg in ticket #1488): sys/dev/pci/drm/files.pcidrm sys/external/bsd/drm/dist/bsd-core/drmP.h sys/external/bsd/drm/dist/bsd-core/drm_pciids.h sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c sys/external/bsd/drm/dist/shared-core/r600_blit.c sys/external/bsd/drm/dist/shared-core/r600_cp.c sys/external/bsd/drm/dist/shared-core/radeon_cp.c sys/external/bsd/drm/dist/shared-core/radeon_cs.c sys/external/bsd/drm/dist/shared-core/radeon_drm.h sys/external/bsd/drm/dist/shared-core/radeon_drv.h sys/external/bsd/drm/dist/shared-core/radeon_state.c
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.)
only use bus_space*() on drm_local_map_ts that have been mapped into some bus space somewhere. otherwise, just use normal accesses since it is normal memory.
|
1.2.10.1 |
| 20-Jun-2009 |
snj | Apply patch (requested by mrg in ticket #823): import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c. -- merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c with our changes and the work recently done by Arto Huusko and FUKAUMI Naoki.
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 -- add a freshly generated drm_pciids.h -- some minor clean up: - reduce diffs to mesa-drm where possible - fix various formatting issues - netbsd uses major 180 for drm (XXX)
|
1.2.6.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.2.6.1 |
| 19-Jul-2008 |
mjf | file drm_sysctl.c was added on branch mjf-devfs2 on 2008-09-28 10:40:37 +0000
|
1.2.4.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.2.4.1 |
| 19-Jul-2008 |
wrstuden | file drm_sysctl.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:48 +0000
|
1.2.2.2 |
| 28-Jul-2008 |
simonb | Sync with head.
|
1.2.2.1 |
| 19-Jul-2008 |
simonb | file drm_sysctl.c was added on branch simonb-wapbl on 2008-07-28 14:37:28 +0000
|
1.4.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.4.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.4.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.6.16.1 |
| 01-Nov-2012 |
matt | sync with netbsd-6-0-RELEASE.
|
1.6.14.1 |
| 01-Oct-2012 |
riz | Pull up following revision(s) (requested by chs in ticket #579): sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c: revision 1.8 fix the DRM string sysctls to use copyout() instead of strcat() to deliver the data to the user buffer.
|
1.6.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.7.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.8.38.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|