summaryrefslogtreecommitdiff
path: root/bsd-core
AgeCommit message (Collapse)AuthorFilesLines
2009-03-31Move drm_vblank_cleanup() after lastclose.Robert Noland1-2/+2
This may prevent a possible panic on shutdown.
2009-03-16FreeBSD: Set up the nouveau build infrastructureRobert Noland38-1/+573
disabled by default until the rest of the patches are in.
2009-03-16FreeBSD: Add support for matching solely on vedor id.Robert Noland1-2/+6
This also adds that ability to set device name from VPD, but that doesn't seem to be working...
2009-03-16FreeBSD: Improve the debug output of drm_mmap().Robert Noland1-1/+6
2009-03-16FreeBSD: Add list_for_each_prev() to our bank of compat functions.Robert Noland1-0/+4
2009-03-16FreeBSD: Don't set the PZERO flag to mtx_sleep.Robert Noland2-2/+2
We also don't support anything old enough to need tsleep.
2009-03-16FreeBSD: use flsl() instead of ffsl().Robert Noland1-1/+1
I noticed that we were computing drm_order differently than linux.
2009-03-16FreeBSD: Minor code cleanup.Robert Noland1-1/+1
2009-03-16FreeBSD: Increase MAX_PCI_RESOURCERobert Noland1-1/+1
We can have more than 3 BARs to access.
2009-03-16FreeBSD: Cast map handles to vm_offset_tRobert Noland1-6/+12
This prevents some warnings with nouveau.
2009-03-09FreeBSD: Fix the printing of maps on amd64/i386 to be consistentRobert Noland1-3/+3
2009-03-09FreeBSD: Fix up the flags for bus_dmamem here as well.Robert Noland1-4/+4
2009-03-08FreeBSD: Fix up the flags to bus_dmamem_*Robert Noland1-2/+3
Allow it to sleep waiting for resources during the allocation stage. Only use BUS_DMA_NOWAIT when loading the map.
2009-03-08FreeBSD use kdev for kernel device namevehemens11-99/+99
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-03-05FreeBSD: Rework DRM_[DEBUG,ERROR,INFO] macros a bit.Robert Noland1-5/+5
2009-03-05FreeBSD: Garbage collect entries from pcireg.h since we now include it.Robert Noland1-9/+0
2009-03-05FreeBSD: We only want drm to ever attach to the primary pci device.Robert Noland2-0/+5
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-03-05FreeBSD: rework drm_scatter.c which allocates scatter / gather pages for use byRobert Noland2-31/+91
ati pci gart to use bus_dma to handle the allocations. This fixes a garbled screen issue on at least some radeons (X1400 tested).
2009-02-27FreeBSD: Introduce a kernel tuneable to disable msi at boot time.Robert Noland1-1/+5
2009-02-27Move vblank_init to driver load time.Robert Noland5-3/+17
2009-02-26FreeBSD: Fix up some ioctl permissions issues missed many times over.Robert Noland3-8/+7
This was somehow hit with r600 demo. Submitted by: Jung-uk Kim <jkim@FreeBSD.org>
2009-02-25i915: Backport jbarnes gm45 vblank counter patch.Robert Noland1-1/+0
2009-02-24FreeBSD: Drop the Giant lock.Robert Noland1-1/+1
2009-02-24FreeBSD: Turn on msiRobert Noland3-35/+78
There is a blacklist for devices that advertise the capability, but don't work properly.
2009-02-24FreeBSD: Add some vblank related debugging and replace DRM_WAIT_ON with a ↵Robert Noland1-9/+23
local instance.
2009-02-24i915: This was part of a sync to the intel driver at some pointRobert Noland3-1/+2
-Remove the old TTM interface -Move register definitions to i915_reg.h -Rework the irq handler
2009-02-24FreeBSD: Rip out the locked task support now that i915 no longer uses it.Robert Noland4-64/+0
2009-02-23FreeBSD: There is no compelling reason to hold the lock here.Robert Noland1-2/+0
When I was lock profiling, this was high up on the list and I see no reason to do it.
2009-02-23FreeBSD: Don't set PZERO in mtx_sleep.Robert Noland1-2/+2
2009-02-23FreeBSD: Set MAP_NOSYNC on mmaps.Robert Noland1-2/+2
There is no reason to gratuitously sync these maps to swap.
2008-12-23[FreeBSD] Fix build on FreeBSD after modesetting import.Robert Noland1-0/+1
2008-10-23[FreeBSD] We should use dev2unit() rather than minor()Robert Noland2-2/+2
2008-10-23[FreeBSD] This check isn't correct and causes at least mga to lockup.Robert Noland1-6/+4
2008-10-10[FreeBSD] Plug memory leak in drm_rmdraw() and drm_drawable_free_all()Robert Noland1-11/+9
2008-10-10[FreeBSD] Rework all of the memory allocationsRobert Noland24-173/+184
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-10-09[FreeBSD] Fix linux list compat list_for_each_safe()Robert Noland1-2/+2
linux_for_each_safe would not handle lists with a single entry.
2008-10-03[FreeBSD] Don't explicitly bzero driver softc.Robert Noland9-18/+0
This is already handled for us. Suggested by John Baldwin
2008-10-03[FreeBSD] Use M_WAITOK when allocating driver memory.Robert Noland9-9/+27
We don't explicitly check for error here and M_WAITOK will just put the process to sleep waiting on resources to become available. Suggested by John Baldwin
2008-10-03[FreeBSD] Do a bit of optimization on drm_order()Robert Noland1-3/+4
2008-10-01Use devfs_get_cdevpriv in mmap as well.Robert Noland1-9/+12
d_mmap gets called twice and we are only able to associate the file_priv during the first call. The second call will return EBADF and we need to assume that the call was succesful. d_mmap will not tolerate having an error returned for the second call.
2008-09-17[FreeBSD] Convert to using cdevpriv for file_priv trackingRobert Noland7-89/+62
2008-09-10Remove incomplete and obsolete free/net/open code.vehemens20-665/+8
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-08[FreeBSD] We need to call drm_detach before we free dev->driver.Robert Noland9-9/+36
The driver is in control of the show, so when you try and unload a module the driver detach routine is called first. It is what drives the whole unload process and so lots of panics occur if dev->driver is already free.
2008-09-07[FreeBSD] Implement drm_ioremap_wc() to set a range of mem to write-combiningRobert Noland2-2/+12
2008-09-06[FreeBSD] IGP gart needs to be un-cached.Robert Noland1-18/+73
Airlied inadvertently discovered that the IGP gart needs to be un-cached for radeon rs485 and rs690 to work. Initial tests by placing a wbinvd() after allocating the gart were successful. This is an attempt at a more appropriate method of achieving success.
2008-09-06Free temp_pagelist on error. Free in reverse order. Noticed by open.vehemens1-1/+2
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06Pass lock data like linux and open.vehemens4-24/+21
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06Move order to end like linux.vehemens1-16/+16
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06Style white space cleanup part 2.vehemens8-23/+23
Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-09-06[FreeBSD] Ensure that drm_pci_alloc is never called while locks are held.Robert Noland3-8/+20