Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-02-08 | Close a race which could allow for privilege escalation by users with DRI | Eric Anholt | |
privileges on Radeon hardware. Essentially, a malicious program could submit a packet containing an offset (possibly in main memory) to be rendered from/to, while a separate thread switched that offset in userspace rapidly between a valid value and an invalid one. radeon_check_and_fixup_offset() would pull the offset in from user space, check it, and spit it back out to user space to be copied in later by the emit code. It would sometimes catch the bad value, but sometimes the malicious program could modify it after the check and get an invalid offset rendered from/to. Fix this by allocating a temporary buffer and copying the data in at once. While here, make the cliprects stuff not do the VERIFYAREA_READ and COPY_FROM_USER_UNCHECKED gymnastics, avoiding a lock order reversal on FreeBSD. Performance impact is negligible -- no difference on r200 to ~1% improvement on rv200 in quake3 tests (P4 1Ghz, demofour at 1024x768, n=4 or 5). | |||
2005-02-07 | Invalid bound check of driver defined ioctls in drm_ioctl | Dave Airlie | |
Bug 2489 Reporter: Aapo Tahkola <aet@rasterburn.org> | |||
2005-02-07 | change DRIVER_ to CORE_ makes things look nicer, also change it so the | Dave Airlie | |
driver name is marked on resource allocations | |||
2005-02-07 | fix agp detection on linux | Dave Airlie | |
2005-02-05 | - Implement drm_initmap, and extend it with the resource number to help | Eric Anholt | |
FreeBSD. Add drm_get_resource_{start|len} so linux-specific stuff doesn't need to be in shared code. - Fix mach64 build by using __DECONST to work around passing a const pointer to useracc, which is unfortunately not marked const. - Get rid of a lot of maplist code by not having dev->maplist be a pointer, and by sticking the link entries directly in drm_local_map_t rather than having a separate structure for the linked list. - Factor out map uninit and removal into its own routine, rather than duplicating in both drm_takedown() and drm_rmmap(). - Hook up more driver functions, and correct FreeBSD-specific bits of radeon_cp.c, making radeon work. - Baby steps towards using bus_space as we should. | |||
2005-02-01 | make functions static in i915, remove unused functions | Dave Airlie | |
2005-02-01 | update i830 similiar to the kernel, add statics | Dave Airlie | |
2005-02-01 | make more functions static in i810 and fix pageflip cleanup | Dave Airlie | |
2005-01-29 | fix radeon drv | Dave Airlie | |
2005-01-24 | hopefully fix drm_core setversion ioctl... pointed out by Eric on irc | Dave Airlie | |
2005-01-19 | Fix cut & paste problem | Alan Hourihane | |
2005-01-16 | remove duplicate drm_sysfs.o | Dave Airlie | |
2005-01-16 | The patch makes drmAddBufs/drmMapBufs can handle buffers in video memory | Dave Airlie | |
The attached patch adds a new buffer type DRM_FB_BUFFER. It works like AGP memory but uses video memory. From: austinyuan@viatech.com.cn (fd.o bug 1668) Signed-off-by: Dave Airlie <airlied@linux.ie> | |||
2005-01-15 | Setup MTRRs for frame buffer and aperture manually on Savage3D and | Felix Kuehling | |
Savage4-based cards. Automatic setup in drm_initmap doesn't work due to the weird alignment and size of the aperture. | |||
2005-01-12 | Use virt_to_page instead of vmalloc_to_page in drm_do_vm_shm_nopage for | Felix Kuehling | |
consistent pages allocated with drm_pci_alloc. | |||
2005-01-09 | Adjust 4 level page check for <= 2.6.10 | Jon Smirl | |
2005-01-07 | via updates: moved the verifier state struct to dev_priv. Implemented AGP | Thomas Hellstrom | |
alignment check. | |||
2005-01-06 | Adjust drm-memory for 4 level page tables in 2.6.10 ifdef'd to use 3 levels | Jon Smirl | |
in kernels older than 2.6.10 | |||
2005-01-01 | Completeley rewritten Savage DRM which can be considered secure (modulo | Felix Kuehling | |
implementation errors). Direct hardware (MMIO, BCI) access is no longer needed in the Mesa driver. Bumped version to 2.0.0. Corresponding changes to the DDX and Mesa drivers are being committed. | |||
2005-01-01 | Added a new DRM map type _DRM_CONSISTENT for consistent PCI memory. It uses | Felix Kuehling | |
drm_pci_alloc/free for allocating/freeing the memory. Only implemented in the Linux DRM so far. | |||
2005-01-01 | i810/i830 bug with Jon's file operations changes | Dave Airlie | |
2004-12-10 | Use wbinvd macro instead of assembly for it, | Dave Airlie | |
From: Stefan Dirsch <sndirsch@suse.de> Signed-off-by: Dave Airlie <airlied@linux.ie> | |||
2004-12-07 | Patch from Jon Smirl from Nov. 2nd that makes older X servers behave well | Thomas Hellstrom | |
with linux-core. Without this, they will fail on their second invocation since the drm already has a busID assigned. Submitted by: Jon Smirl | |||
2004-12-03 | Added 3D functionality to the via command verifier. Modified the via | Thomas Hellstrom | |
ring-buffer code somewhat to workaround hardware problems. Bumped via minor version number. | |||
2004-11-11 | patch from bug 1803 - will try and push to kernel soon | Dave Airlie | |
2004-11-09 | Fix more build problems on linux-core | Jon Smirl | |
2004-11-09 | make linux-core build again | Jon Smirl | |
2004-11-06 | Convert more drivers for bsd-core, moving the ioctl definitions to shared | Eric Anholt | |
code. Remove the "drv" from sisdrv, as it's unnecessary. Use the drm_pci functions in i915 instead of per-os implementations of the same. Avoid whitespace within fields in drm_pciids.txt (one of the r300 definitions), since it breaks the bsd pciids script. Tested on sis, mga, r128. i915 needs more work. | |||
2004-11-06 | Fix Linux build. Why won't this complile? extern int const foo; static | Jon Smirl | |
struct drm_driver driver = { .var = foo }; error says foo is not constant | |||
2004-11-06 | Commit WIP of BSD conversion to core model. Compiles for r128, radeon, but | Eric Anholt | |
doesn't run yet. Moves the ioctl definitions for these two drivers back to the shared code -- they aren't OS-specific. | |||
2004-11-05 | Move ati_pcigart shared routines into drm-core module | Jon Smirl | |
2004-10-31 | Allow drivers to override reclaim_buffers in an OS-independent way by | Felix Kuehling | |
passing drm_device_t* as first parameter, like in the BSD version. | |||
2004-10-29 | Switch SPIN_LOCK_UNLOCKED to spin_lock_init() | Jon Smirl | |
2004-10-29 | Add include of moduleparam.h | Jon Smirl | |
2004-10-28 | Break poll() to make it match the Xserver's broken expectations. | Jon Smirl | |
2004-10-23 | Round 2 of getting rid of inter_module_get() | Jon Smirl | |
2004-10-23 | Revert symbol_get() changes from drm_drv | Jon Smirl | |
2004-10-23 | fix inter module put/get | Dave Airlie | |
2004-10-23 | actually 2.6.10 introduced pfn range so it should work now.. | Dave Airlie | |
2004-10-23 | fix pfn vs page for older kernels (2.6.9-rc kernels many not work..) | Dave Airlie | |
2004-10-23 | Prepare to eliminate inter_module_get("agp") | Jon Smirl | |
2004-10-22 | Bring in patch from kernel for remap_pfn_range | Jon Smirl | |
2004-10-21 | Fix up the radeon i2c error handing | Jon Smirl | |
2004-10-20 | Don't release an i2c channel that has not initialized correctly | Jon Smirl | |
2004-10-20 | Switch linux-core from using dev->pdev->driver->name to | Jon Smirl | |
dev->driver->pci_driver.name. This avoids the stealth mode case where pdev is pointing to the wrong driver or no driver. | |||
2004-10-20 | Fix dd vs di version typo in drm_setversion | Jon Smirl | |
2004-10-19 | Add a protective check against a possible buffer overflow | Jon Smirl | |
2004-10-19 | Fix missing I2C busses to be non-fatal error. | Jon Smirl | |
2004-10-19 | drm-core, Clean up bug error path on stealth mode exit | Jon Smirl | |
2004-10-18 | Update Doxygen configuration & comments. | Jose Fonseca | |