summaryrefslogtreecommitdiff
path: root/sys/external/bsd/drm
AgeCommit message (Collapse)Author
2022-03-18old drm: Use getticks(), not hardclock_ticks.riastradh
Should delete this code, no idea if it even still compiles.
2020-05-23Move proc_lock into the data segment. It was dynamically allocated becausead
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-10-22When building r128drm(4), gcc objects to shifting into bit 31 of ahauke
(signed) int. Make sure we are shifting an unsigned in those cases. See also <http://mail-index.netbsd.org/tech-x11/2019/08/01/msg002010.html>. XXX There are probably more of these in the header.
2019-08-30Delete dead-as-a-doornail-in-a-dead-horse branch.riastradh
If dev_priv is null here, you're hosed to begin with, so the apparent null pointer dereference in this branch is moot; also this is the old drm code that we should maybe just delete altogether... Potential null pointer dereference reported by Dr Silvio Cesare of InfoSect.
2019-08-02Deal with gcc's "warning: this statement may fall throughhauke
[-Wimplicit-fallthrough=]" by adding the missing KNF FALLTHROUGH comments. christos@ approved.
2019-04-06Overhaul the API used to fetch and store individual memory cells inthorpej
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.
2018-09-14remove unused code:mrg
- old drm nouveau was never ported - the libdrm in this repo was never used - these tests were never used, and this whole tree is obsolete, but we never ported some of the old drivers to new drm. XXX: probably can delete i915drm. XXX: would ike to delete old radeondrm, but it is still the only functional drm on some older radeon r100/r200 chipsets.
2018-07-10Remove viadrm(4), superseded by viadrmums.maya
Aside from viadrm using older drm code, it's also dysfunctional right now. See PR port-i386/53364.
2017-01-20Check pmf_device_register return value. NFCmaya
Appeases static analyzers.
2015-12-15PR/50560: David Binderman: fix memory leaks.christos
2015-04-20Remove old drm's container_of.riastradh
2015-01-10initialize "addr" before passing its address to uvm_mmap_dev().chs
from Onno van der Linden in PR 49536.
2014-12-14add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects forchs
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).
2014-11-10fix the module class.christos
2014-10-04Canonicalize boolean result from test_and_set_bit.riastradh
Not actually semantically significant for any callers, but Linux documentation insists it is important, so we'll follow suit. Fixes last part of PR kern/48999.
2014-09-05Rename enum pipe to enum pipe so it won't conflcit with struct pipe.matt
2014-07-27Fix misplaced parenthesis, from Henning Petersen in PR 44804.dholland
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-06-12Check bounds in agp_i810_borrow.riastradh
Out of paranoia, do a bus_space_subregion in case the old drm code tries sizes that the agp_i810 code doesn't agree with.
2014-03-29fix pci_intr_stringchristos
2014-03-25kill sprintfchristos
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2013-10-17remove unused variableschristos
2013-10-17define a new macro that does not declare variables used in output.christos
2013-10-17annotate some unused variables the authors want to keepchristos
2013-09-14Mark mach64_set_dma_eol as unused.joerg
2013-07-22Missing AB_QUIET newlines.soren
2013-06-06fix build for 'no options MTRR'mlelstv
2012-12-11Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.msaitoh
2012-09-29fix the DRM string sysctls to use copyout() instead of strcat()chs
to deliver the data to the user buffer.
2012-06-17when freeing the DRM_SHM kernel memory that can be mapped by a user process,chs
remove any user mappings before freeing the memory, so that a user process doesn't have still have access to that physical memory after it's reused. this really shouldn't be using kernel malloc'd memory at all, but changing that would be much more involved.
2012-06-11Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.tsutsui
Patch is taken from FreeBSD: http://www.freebsd.org/cgi/query-pr.cgi?pr=143427 and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch. Should be pulled up to netbsd-6.
2012-06-02Add some pre-processor magic to verify that the type of the data itemdsl
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.
2012-01-29remove incomplete conversion to kmem_alloc -- inconsistent usedrochner
leads at least to diagnostic panics
2012-01-27extending vmem(9) to be able to allocated resources for it's own needs.para
simplifying uvm_map handling (no special kernel entries anymore no relocking) make malloc(9) a thin wrapper around kmem(9) (with private interface for interrupt safety reasons) releng@ acknowledged
2011-08-29have pci register itself as a module, and make PCI driver modules depend on itjmcneill
2011-08-28return 'error' not 0, fixes non-module buildjmcneill
2011-08-28return 'error' not 0, fixes non-module buildjmcneill
2011-08-28add mach64drm, mgadrm, r128drm, savagedrm, sisdrm, and tdfxdrm modulesjmcneill
2011-08-28Split out ati_pcigart into a separate module so it can be shared with r128drmjmcneill
2011-08-28set default WARNS for modules to 3 -- the only one that needs < 3 now is pfjmcneill
2011-08-03add a little bit of DRM_NO_AGP to help build on ofppcmrg
2011-07-25Add additional Radeon devices from FreeBSD via Dragon Fly BSD.jakllsch
2011-07-01#include <sys/bus.h> instead of <machine/bus.h>.dyoung
2011-06-09dma_addr_t may not be a 64bit type, so add an explicit cast here insteadjoerg
of silent truncation
2011-05-30Fix format strings to match argumentsjoerg
2011-05-30Remove invalid const, the content is later passed to free.joerg
2011-05-25more wrong formats.christos
2011-05-25fix printf formats.christos