Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-10-22 | Fix warning about static DRM(bufs_info) defined but not used in the | Eric Anholt | |
!__HAVE_DMA case. | |||
2003-10-20 | Fix the possibility of sleeping with locks held in sysctls by copying the | Eric Anholt | |
data into temporary variables with the lock held then outputting to sysctls with the lock released. Rearranged a little extra code to aid this. Note that drm_memory_debug.h hasn't had this fix applied, but I consider that code to be just about dead anyway. | |||
2003-10-20 | Clean up BSD MTRR handling. The NetBSD code is untested, but it's my best | Eric Anholt | |
shot. | |||
2003-10-19 | - SMPng lock the DRM. This is only partial -- there are a few code paths | Eric Anholt | |
used by root (the X Server) which are not locked. However, it should deal with lost-IRQ issues on -current which I think people have been experiencing but I am unable to reproduce (though I understand why they would occur, because of a bug of mine). Note that most of the locking (DRM_LOCK()/UNLOCK()) is all covered by Giant still, so it doesn't matter yet. - Remove locking on FreeBSD-stable and NetBSD. These are covered by the fact that there is no reentrancy of the kernel except by interrupts, which are locked using spldrm()/splx() instead. | |||
2003-10-19 | Clean up extra zeroing of dev->dma, and use calloc to take advantage of | Eric Anholt | |
M_ZERO. | |||
2003-10-17 | - Move IRQ functions from drm_dma.h to new drm_irq.h and disentangle them | Eric Anholt | |
from __HAVE_DMA. This will be useful for adding vblank sync support to sis and tdfx. Rename dma_service to irq_handler, which is more accurately what it is. - Fix the #if _HAVE_DMA_IRQ in radeon, r128, mga, i810, i830, gamma to have the right number of underscores. This may have been a problem in the case that the server died without doing its DRM_IOCTL_CONTROL to uninit. | |||
2003-10-17 | - Converted Linux drivers to initialize DRM instances based on PCI IDs, not | Eric Anholt | |
just a single instance. Moved the PCI ID lists from <card>_drv.c in BSD to <card>.h. The PCI ID lists include a driver private field, which may be used by drivers for chip family or other information. Based on work by jonsmirl. - Make tdfx_drv.c and tdfx.h match other drivers. - Fixed up linking of sis shared files. Tested with Radeon and SiS on Linux and FreeBSD, including a Linux setup with 2 SiS cards in a machine, but only one head being used (with DRI) | |||
2003-10-03 | Some code cleanups done while working on locking. Reduces always-true | Eric Anholt | |
tests, excessive indenation, convoluted handling of errors, or code duplication. | |||
2003-10-03 | Stylistic preparation for SMPng locking work: DRM_LOCK/DRM_UNLOCK have side | Eric Anholt | |
effects, so make them look like functions (add parenthesis). | |||
2003-10-02 | Add an MIT-style copyright, assigned to myself, to these files. I think | Eric Anholt | |
I've touched enough of the code here, and there was no previous copyright. Do some drive-by style fixes while I'm here. | |||
2003-10-02 | Axe more old gamma DMA infrastructure. | Eric Anholt | |
2003-10-02 | Mostly whitespace cleanups and style(9) fixes focused on "if(" -> "if (" | Eric Anholt | |
Change some nearby memset()s to bzero()s or to calloc allocations to take advantage of M_ZERO). Reverse some error tests to reduce high levels of indentation. Move the sg_cleanup() call out of the maplist loop in DRM(takedown)-- I can't see any need for it to be inside. | |||
2003-10-02 | Wrap sys/endian.h usage with __FreeBSD_version >= 480000. | Eric Anholt | |
Obtained from: i865-agp-0-1-branch | |||
2003-10-02 | Allow the DRM to attach to a "drmsub" device. This will be provided by the | Eric Anholt | |
i810 AGP module, working around the limitation of one driver per device. Obtained from: i865-0-1-branch | |||
2003-10-02 | MTRR issue with SMP and -stable seems to be resolved. Re-enable MTRRs on | Eric Anholt | |
4.x | |||
2003-09-12 | bsd drm fixes | Alan Hourihane | |
2003-09-12 | resolve merge conflicts | Alan Hourihane | |
2003-09-09 | Use spldrm/splx around tsleep() in DRM_WAIT_ON | Keith Whitwell | |
2003-09-07 | Fix for older -stable. | Eric Anholt | |
Obtained from: FreeBSD CVS | |||
2003-08-29 | These files were missed in the SiS DRM commit. | Eric Anholt | |
2003-08-29 | Port the SiS DRM to FreeBSD. This includes the ability for the DRM to | Eric Anholt | |
allocate framebuffer memory without sisfb, and a new ioctl to be used by the X Server which tells the DRM what region of framebuffer memory to allocate from. Also fixes a possibility to panic the kernel I believe. Tested on linux with sisfb and FreeBSD (without sisfb) with new DRI only. | |||
2003-08-29 | Add DRM(calloc), which is convenient, used by the new sis code, and takes | Eric Anholt | |
advantage of M_ZERO on BSDs. | |||
2003-08-29 | Update radeon PCI IDs. | Eric Anholt | |
2003-08-29 | This PCI header has been living in dev/pci/ for a while now. | Eric Anholt | |
2003-08-19 | Fix the debug build. | Eric Anholt | |
2003-08-19 | - Remove $FreeBSD$ tags as they weren't too useful and merges are now being | Eric Anholt | |
done through perforce. - Add copyright headers to drm_os_*bsd.h, still need to research the other copyright-less files better. | |||
2003-08-12 | Merge from FreeBSD r1.11: We have memset in the kernel, no need to define | Eric Anholt | |
it to bzero (which it was always used for). | |||
2003-07-29 | IRQ code cleanup suggested by Linus Torvalds | Michel Daenzer | |
i830 build fix | |||
2003-07-26 | Fix FreeBSD build after IRQ changes. | Eric Anholt | |
2003-07-25 | Compile fixes for recent 2.5/2.6 Linux kernels. I hope this doesn't break | Michel Daenzer | |
the i830 driver or the BSDs. :) | |||
2003-05-20 | Support for building DRM module on OpenBSD (Wilbern Cobb, Matthieu Herrb). | David Dawes | |
(resync with XFree86 trunk) | |||
2003-05-16 | Support AGP bridges where the AGP aperture can't be accessed directly by | Michel Daenzer | |
the CPU (David Mosberger, Benjamin Herrenschmidt, myself, Paul Mackerras, Jeff Wiedemeier) | |||
2003-04-28 | Fix a typo: On takedown the mtrr operation is MEMRANGE_SET_REMOVE, not | Eric Anholt | |
_UPDATE. | |||
2003-04-27 | Use real endian conversion functions. | Eric Anholt | |
2003-04-26 | Fix formatting of hw.dri sysctl. | Eric Anholt | |
2003-04-26 | Remove the map argument from DRM_*MEMORYBARRIER. Not all of the uses of | Eric Anholt | |
DRM_*MEMORYBARRIER we had were related to an MMIO space. This means arch-specific code on the BSDs, unfortunately. Also add DRM_MEMORYBARRIER() and change the DRM_READMEMORYBARRIER()s that used to be read/write barriers to it. | |||
2003-04-26 | MFL: Don't install irq handler unless the driver has been initialized. | Eric Anholt | |
2003-04-26 | Add PCI DMA memory functions and make addbufs_pci and associated code use | Eric Anholt | |
it. To do this we need to save the bus address along with the virtual address in the seglist. Also fix some error handling and a few bits of whitespace. | |||
2003-04-26 | Missed files in the last commit: Remove memory debugging sysctl unless | Eric Anholt | |
MEMORY_DEBUG is set. | |||
2003-04-26 | Move the memory functions with debugging info to drm_memory_debug.h, and | Eric Anholt | |
remove a couple of dead functions. | |||
2003-04-26 | Remove #if 0'ed code. | Eric Anholt | |
2003-04-26 | Replace the C atomic_cmpset_int compatibility function for -stable with the | Eric Anholt | |
real i386 atomic_cmpset_int from -current. FreeBSD-stable won't ever have DRM support for non-i386. | |||
2003-04-26 | Disable MTRRs on FreeBSD-stable. Without this, it hangs on boot in the MTRR | Eric Anholt | |
setting for AGP cards on SMP machines. | |||
2003-04-25 | Merge from FreeBSD-current. | Eric Anholt | |
2003-04-25 | Clean up the DRM_COPY_TO_USER()ing of DRM(infobufs), making it more | Eric Anholt | |
legible. | |||
2003-04-24 | Clean up the style of the linux-compat code and use ioctl() directly rather | Eric Anholt | |
than reimplementing it. | |||
2003-04-24 | Remove more gamma DMA infrastructure. Most of this code was copied straight | Eric Anholt | |
from linux, so it could be added back if some driver needed it in the future. | |||
2003-04-24 | Remove more gamma DMA code. This isn't all of it, but it's a major portion. | Eric Anholt | |
2003-04-24 | Move some common code from addbufs_<type> to addbufs. Make buf_alloc be | Eric Anholt | |
protected by the count_lock and make it non-atomic. | |||
2003-04-24 | Remove the ioctl_count variable from the device. A reference is held to the | Eric Anholt | |
fp throughout the ioctl syscall, so the device can't be closed out from under us. |