summaryrefslogtreecommitdiff
path: root/bsd-core/drm_drv.c
AgeCommit message (Collapse)Author
2009-03-31Move drm_vblank_cleanup() after lastclose.Robert Noland
This may prevent a possible panic on shutdown.
2009-03-16FreeBSD: Add support for matching solely on vedor id.Robert Noland
This also adds that ability to set device name from VPD, but that doesn't seem to be working...
2009-03-16FreeBSD: Don't set the PZERO flag to mtx_sleep.Robert Noland
We also don't support anything old enough to need tsleep.
2009-03-08FreeBSD use kdev for kernel device namevehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-03-05FreeBSD: We only want drm to ever attach to the primary pci device.Robert Noland
Intel 855 chips present the same pci id for both heads. This prevents us from attaching to the dummy second head. All other chips that I am aware of either only present a single pci id, or different ids for each head so that we only match on the correct head.
2009-02-27FreeBSD: Introduce a kernel tuneable to disable msi at boot time.Robert Noland
2009-02-27Move vblank_init to driver load time.Robert Noland
2009-02-26FreeBSD: Fix up some ioctl permissions issues missed many times over.Robert Noland
This was somehow hit with r600 demo. Submitted by: Jung-uk Kim <jkim@FreeBSD.org>
2009-02-24FreeBSD: Drop the Giant lock.Robert Noland
2009-02-24FreeBSD: Turn on msiRobert Noland
There is a blacklist for devices that advertise the capability, but don't work properly.
2009-02-24FreeBSD: Rip out the locked task support now that i915 no longer uses it.Robert Noland
2009-02-23FreeBSD: There is no compelling reason to hold the lock here.Robert Noland
When I was lock profiling, this was high up on the list and I see no reason to do it.
2008-10-23[FreeBSD] We should use dev2unit() rather than minor()Robert Noland
2008-10-10[FreeBSD] Rework all of the memory allocationsRobert Noland
Allocate memory from different pools. This allows the OS to track memory allocations for us, much like the linux memory debugging. This will ease tracking down memory leaks since the OS can track the number of allocations from each pool and help to point us in the right direction. Also replace drm_alloc and friends with static __inline__ versions while we are here.
2008-09-17[FreeBSD] Convert to using cdevpriv for file_priv trackingRobert Noland
2008-09-10Remove incomplete and obsolete free/net/open code.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06Pass lock data like linux and open.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06Style white space cleanup part 2.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-05Style white space cleanup.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-08-29[FreeBSD] Use driver features macros and flagsvehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-08-29[FreeBSD] Convert drm_driver to a pointer like linux.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-08-29[FreeBSD] Replace typedefs on bsd.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-08-29[FreeBSD] Fix a couple of locking problems.Robert Noland
2008-08-24[FreeBSD] Add drm_drawable_free_all()Robert Noland
2008-08-24[FreeBSD] Fix lock leak.vehemens
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-07-25[FreeBSD] Duh, we need to actually define the drm_modeset_ctl...Robert Noland
2008-07-16BSD: change drm_locked_task*() to use the same scheme as linux.Owain Gordon Ainsworth
The current code can sleep in an interrupt handler, that is bad. So instead if we can't grab the lock, flag it and run the tasklet on unlock. Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-06-08[FreeBSD] We need to request busmastering support.Robert Noland
This seems to be the key to getting at least some radeon cards working. Most, if not all drivers need it enabled, so just request it once the driver has attached.
2008-06-08[FreeBSD] Forgot to call mtx_destroy on all the locks at unload.Robert Noland
2008-06-08[FreeBSD] Go back to using vbl_lock and move init/destroy to load/unload.Robert Noland
2008-05-27[FreeBSD] Convert from drm_device_t to struct drm_device for consistency.Eric Anholt
2007-12-01mtx_sleep is preferred to msleepRobert Noland
Calling semantics are the same and both were introduced in 5.0
2007-12-01drm: Add _DRM_DRIVER map flag.Robert Noland
This flag indicates that the driver is responsible for the map.
2007-12-01bsd: Move counter initialization to load time.Robert Noland
2007-10-17Bug #11870: FreeBSD hardware lock cleanup fix with multiple opens by a process.Jung-uk Kim
Previously, the lock would get released on the first close by the X Server (during AIGLX setup), and the Radeon driver would then hang in initialization due to unexpected failure in DRM calls that required the lock to be held. Based on a patch by Kostik Belousov.
2007-10-10FreeBSD: Fill in domain field when supported.Eric Anholt
2007-08-15BSD: simplify drm_ioctl() after other refactoring.vehemens
2007-08-15BSD: Replace brief description in each file's first line with doxygen later on.Eric Anholt
The brief descriptions usually had the wrong filename in them.
2007-07-20Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.Eric Anholt
The data is now in kernel space, copied in/out as appropriate according to the This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal with those failures. This also means that XFree86 4.2.0 support for i810 DRM is lost.
2007-07-20Replace filp in ioctl arguments with drm_file *file_priv.Eric Anholt
As a fallout, replace filp storage with file_priv storage for "unique identifier of a client" all over the DRM. There is a 1:1 mapping, so this should be a noop. This could be a minor performance improvement, as everything on Linux dereferenced filp to get file_priv anyway, while only the mmap ioctls went the other direction.
2007-07-20Remove DRM_ERR OS macro.Eric Anholt
This was used to make all ioctl handlers return -errno on linux and errno on *BSD. Instead, just return -errno in shared code, and flip sign on return from shared code to *BSD code.
2007-07-19FreeBSD: Fix the recently added drawable add/remove/update code.Eric Anholt
2007-07-18Add dry-coded DRM drawable private information storage for FreeBSD.Eric Anholt
With this, all modules build again.
2007-07-11Made drm_sg_alloc accessible from inside the DRM - drm_sg_alloc_ioctl is the ↵Arthur Huillet
ioctl wrapper
2007-05-29Update a bunch of FreeBSD port code.Jung-uk Kim
Tested on r200/r300. i915 updates still remain to be done.
2006-09-06Put the PCI device/vendor id in the drm_device_t.Eric Anholt
This helps us unbreak FreeBSD DRM from the 965 changes.
2005-12-30Merge patch from jhb to catch up with FreeBSD-current vgapci master deviceEric Anholt
changes.
2005-12-02Finish the last bits necessary to get the i915 DRM port working on FreeBSDEric Anholt
Submitted by: Alexey Popov <llp@iteranet.com>
2005-12-02FreeBSD PR kern/85479: Restore the enabling of debugging by default by theEric Anholt
DRM_DEBUG kernel option. It remains controlled by hw.dri.*.debug no matter what.
2005-11-08Correct another LOR issue with resource allocation. This leaves theEric Anholt
drm_get_resource_* resource allocation a little racy, but they're getting called at either X Server startup or driver load, so it's serialized anyway.