summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak the tinderbox, make this compile.maxim2005-01-061-1/+1
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-0655-103/+103
|
* Use the SYSCTL_ADD_OID macro, instead of directly calling sysctl_add_oid().ssouhlal2004-12-151-1/+1
| | | | Approved by: anholt, grehan (mentor)
* Specifically use the 32-bit version of fuword/suword since that's whatobrien2004-12-021-7/+6
| | | | | | | we really want vs. the size changing 'long' (i386 vs. AMD64). This fixes the problem with DRM with Radeon's on AMD64. Submitted by: Jung-uk Kim <jkim@niksun.com>
* Fixed the module name (macros don't work here).ru2004-08-291-1/+1
|
* Now that mem(4) is a kernel module, we need to add a dependency onmux2004-08-051-0/+1
| | | | | | | it in drm(4) for mem_range_attr_set(). This fixes loading a DRM driver as a module. Reviewed by: anholt
* Do the dreaded s/dev_t/struct cdev */phk2004-06-165-11/+11
| | | | Bump __FreeBSD_version accordingly.
* Merge from DRI CVS as of 2004-05-26. Most of the meat is new PCI IDs and a newanholt2004-06-1121-249/+609
| | | | packet for Radeon.
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Prefer uintptr_t to intptr_t.obrien2004-03-032-6/+6
|
* Use a long as the opaque type so that it matches the size of a pointerobrien2004-03-031-1/+1
| | | | on both 32-bit and 64-bit platforms.
* Use a long as the opaque type so that it matches the size of a pointerobrien2004-03-032-5/+5
| | | | on both 32-bit and 64-bit platforms.
* Add memory barrier routines for AMD64.obrien2004-03-031-1/+7
|
* Cast thru intptr_t on the way to void* for success on 64-bit platforms.obrien2004-03-032-6/+6
|
* Limit the amount of memory userspace processes can cause the kernel torwatson2004-02-231-0/+17
| | | | | | | allocate via DRI on r128 devices. Obtained from: Thomas Biege <thomas@suse.de> Reviewed by: scottl
* Device megapatch 4/6:phk2004-02-211-1/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-212-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* This is not a D_TTY driver.phk2004-02-141-1/+1
|
* Merge from DRI CVS. No longer maps the framebuffer into KVA on radeon, r128,anholt2004-01-0612-66/+77
| | | | and mga. MTRR code cleanups. Includes new Radeon and Rage 128 PCI IDs.
* Fix a few more places where NULL was used instead of 0.se2003-12-232-3/+3
|
* Update from DRI CVS. Includes locking fixes (including PR 59202), changes foranholt2003-11-1215-314/+833
| | | | | | Radeon IGP support (still lacking PCI IDs), and DRM interface 1.2 updates which include finally tying the DRM instances to specific devices rather than relying on the X Server.
* Change the DRM_ERROR about authenticator not found back to DRM_DEBUG. It'sanholt2003-11-032-2/+2
| | | | noisier than I expected, and I don't have the time to actually get it fixed.
* Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)anholt2003-10-241-2/+1
| | | | | | in bufs_info sysctl handler. dev->dma and dev->dma_lock existence are protected by DRM_LOCK(). Fixes panic on sysctl hw.dri when the device is uninitialied (when you aren't in X).
* Update to latest from DRI CVS. Primary new feature is mostly-complete smpnganholt2003-10-2436-1217/+1320
| | | | | | | | locking, and the apparently unnecessary locking for -stable has been removed. This may fix issues with missed interrupts since April, which manifested themselves as slowdowns or hangs in radeon, in particular. Many cleanups also took place. In the shared code, there are improvements to r128 driver stability.
* Merge from DRI CVS. Includes newly ported SiS 300/305/540/630/730 driver andanholt2003-09-0917-71/+1261
| | | | | | updates to allow system memory to be used for textures on PCI Radeons. Sponsored by: LinuxFund
* Comment out a couple of __inline__s until we can get inlines to be actuallyanholt2003-08-241-2/+2
| | | | respected or at least shut the warning up.
* Use __FBSDID().obrien2003-08-242-2/+6
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-1/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Update DRM from DRI CVS as of today. Notable changes include Radeonanholt2003-08-1935-683/+1061
| | | | | suspend/resume support and Rage 128 pageflipping support (both of which require XFree86 from CVS), along with miscellaneous cleanups.
* Do not define memset() to bzero(). We have a memset().phk2003-05-311-2/+0
| | | | Found by: FlexeLint
* Merge from DRI CVS: Disable MTRRs on FreeBSD-stable to work around hangs withanholt2003-04-261-10/+17
| | | | | SMP machines. and use i386 asm for atomic_cmpset_int on -stable. This is in preparation for MFCing the DRM.
* Update the DRM to the latest from DRI CVS. Includes some bugfixes and removalanholt2003-04-2531-2552/+437
| | | | | | 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.
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-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)
* Use td->td_ucred instead of td->td_proc->p_ucred.jhb2003-03-201-2/+2
|
* Update Radeon PCI IDs and naming from pciids.sf.net.anholt2003-03-111-26/+28
|
* Update the DRM to latest from DRI CVS. This is approximately the versionanholt2003-03-0951-5821/+6113
| | | | | | | 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.
* Don't initialize d_kqfilter to 0.phk2003-03-031-3/+1
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-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)
* Cleanup of the d_mmap_t interface.mux2003-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
* Back out M_* changes, per decision of the TRB.imp2003-02-192-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Remove an unused variable that snuck in the last commit.anholt2002-12-041-1/+1
| | | | | Submitted by: Christian Brueffer <chris@unixpages.org> Approved by: re (rwatson)
* Fix witness warning in DRM memory info sysctl by making a temporary copy of theanholt2002-12-041-62/+17
| | | | | | | data under the lock and outputting it to the sysctl later. Reviewed by: scottl Approved by: re
* In an SMP environment post-Giant it is no longer safe to blindlytruckman2002-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
* Remove drm_linux.h, move the two useful defines into drm_drv.h. Use fd lockinganholt2002-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
* In continuation of early fileop credential changes, modify fo_ioctl() torwatson2002-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
* Remove <sys/select.h> to unbreak the build. I'm not sure if this affectsdes2002-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.
* Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__anholt2002-05-3113-148/+148
| | | | Approved by: des
* Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --bde2002-05-061-0/+1
| | | | don't depend on namespace pollution in other headers.
* Make funsetown() take a 'struct sigio **' so that the locking canalfred2002-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.
OpenPOWER on IntegriCloud