summaryrefslogtreecommitdiff
path: root/sys/dev/drm
Commit message (Collapse)AuthorAgeFilesLines
* Merge from DRI CVS: Disable MTRRs on FreeBSD-stable to work around hangs withEric Anholt2003-04-261-10/+17
| | | | | | | | SMP machines. and use i386 asm for atomic_cmpset_int on -stable. This is in preparation for MFCing the DRM. Notes: svn path=/head/; revision=114054
* Update the DRM to the latest from DRI CVS. Includes some bugfixes and removalEric Anholt2003-04-2531-2551/+436
| | | | | | | | | of the infrastructure for the gamma driver which was removed a while back. The DRM_LINUX option is removed because the handler is now provided by the linux compat code itself. Notes: svn path=/head/; revision=113995
* - Add vm_paddr_t, a physical address type. This is required for systemsJake Burkholder2003-03-251-2/+2
| | | | | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change) Notes: svn path=/head/; revision=112569
* Use td->td_ucred instead of td->td_proc->p_ucred.John Baldwin2003-03-201-2/+2
| | | | Notes: svn path=/head/; revision=112451
* Update Radeon PCI IDs and naming from pciids.sf.net.Eric Anholt2003-03-111-26/+28
| | | | Notes: svn path=/head/; revision=112073
* Update the DRM to latest from DRI CVS. This is approximately the versionEric Anholt2003-03-0951-5808/+6100
| | | | | | | | | | included in XFree86 4.3, but includes some fixes. Notable changes include Radeon 8500-9100 support, PCI Radeon/Rage 128 support, transform & lighting support for Radeons, and vblank syncing support for r128, radeon, and mga. The gamma driver was removed due to lack of any users. Notes: svn path=/head/; revision=112015
* Don't initialize d_kqfilter to 0.Poul-Henning Kamp2003-03-031-3/+1
| | | | Notes: svn path=/head/; revision=111817
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-14/+11
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Cleanup of the d_mmap_t interface.Maxime Henrion2003-02-251-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386 Notes: svn path=/head/; revision=111462
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-192-2/+2
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-212-2/+2
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Remove an unused variable that snuck in the last commit.Eric Anholt2002-12-041-1/+1
| | | | | | | | Submitted by: Christian Brueffer <chris@unixpages.org> Approved by: re (rwatson) Notes: svn path=/head/; revision=107625
* Fix witness warning in DRM memory info sysctl by making a temporary copy of theEric Anholt2002-12-041-62/+17
| | | | | | | | | | data under the lock and outputting it to the sysctl later. Reviewed by: scottl Approved by: re Notes: svn path=/head/; revision=107617
* In an SMP environment post-Giant it is no longer safe to blindlyDon Lewis2002-10-031-1/+1
| | | | | | | | | | | | dereference the struct sigio pointer without any locking. Change fgetown() to take a reference to the pointer instead of a copy of the pointer and call SIGIO_LOCK() before copying the pointer and dereferencing it. Reviewed by: rwatson Notes: svn path=/head/; revision=104393
* Remove drm_linux.h, move the two useful defines into drm_drv.h. Use fd lockingEric Anholt2002-09-013-167/+73
| | | | | | | | | | | on -current. Actually copy in data from userspace to kernel in the linux-compat ioctl path. Make sure ioctl sizes are as expected in the handler functions. Reviewed by: rwatson Notes: svn path=/head/; revision=102775
* In continuation of early fileop credential changes, modify fo_ioctl() toRobert Watson2002-08-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | accept an 'active_cred' argument reflecting the credential of the thread initiating the ioctl operation. - Change fo_ioctl() to accept active_cred; change consumers of the fo_ioctl() interface to generally pass active_cred from td->td_ucred. - In fifofs, initialize filetmp.f_cred to ap->a_cred so that the invocations of soo_ioctl() are provided access to the calling f_cred. Pass ap->a_td->td_ucred as the active_cred, but note that this is required because we don't yet distinguish file_cred and active_cred in invoking VOP's. - Update kqueue_ioctl() for its new argument. - Update pipe_ioctl() for its new argument, pass active_cred rather than td_ucred to MAC for authorization. - Update soo_ioctl() for its new argument. - Update vn_ioctl() for its new argument, use active_cred rather than td->td_ucred to authorize VOP_IOCTL() and the associated VOP_GETATTR(). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=102003
* Remove <sys/select.h> to unbreak the build. I'm not sure if this affectsDag-Erling Smørgrav2002-06-161-1/+0
| | | | | | | | the functionality of the drm module, but hopefully it will tide us over until Eric can take a look at it. Notes: svn path=/head/; revision=98309
* Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__Eric Anholt2002-05-3113-148/+148
| | | | | | | Approved by: des Notes: svn path=/head/; revision=97683
* Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --Bruce Evans2002-05-061-0/+1
| | | | | | | don't depend on namespace pollution in other headers. Notes: svn path=/head/; revision=96130
* Make funsetown() take a 'struct sigio **' so that the locking canAlfred Perlstein2002-05-061-1/+1
| | | | | | | | | | | | | | | | | | | be done internally. Ensure that no one can fsetown() to a dying process/pgrp. We need to check the process for P_WEXIT to see if it's exiting. Process groups are already safe because there is no such thing as a pgrp zombie, therefore the proctree lock completely protects the pgrp from having sigio structures associated with it after it runs funsetownlst. Add sigio lock to witness list under proctree and allproc, but over proc and pgrp. Seigo Tanimura helped with this. Notes: svn path=/head/; revision=96122
* The first argument of pgsigio() is now struct sigio **.Seigo Tanimura2002-05-031-1/+1
| | | | Notes: svn path=/head/; revision=95972
* More diff reduction: Shuffle around some header code as was done inEric Anholt2002-04-2921-239/+160
| | | | | | | | | | drmcommand-0-0-1-branch of DRI CVS, more return code cleanup, and remove some gratuitous ifdefs. Approved by: des Notes: svn path=/head/; revision=95746
* Diff reduction to my experimental code: clean up return code handling.Eric Anholt2002-04-2924-359/+354
| | | | | | | Approved by: des Notes: svn path=/head/; revision=95693
* Hook the DRM up to the build and add it to NOTES.Eric Anholt2002-04-285-5/+0
| | | | | | | Approved by: des Notes: svn path=/head/; revision=95607
* Add the code for the DRM, based on the code from the drm-kmod port.Eric Anholt2002-04-2748-0/+33683
This is not hooked up yet, that will come later. Approved by: des Notes: svn path=/head/; revision=95584