summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Expand)Author
2012-04-11modetest: fix typoRob Clark
2012-04-03modetest: add AR15/XR15 (RGB-1555) formatsRob Clark
2012-04-03modetest: add YUV and multi-planar supportRob Clark
2012-04-03modetest: add drm_plane supportRob Clark
2012-03-28omap: add omapdrm supportRob Clark
2011-12-18tests/gem_flink: Check for MASTER before proceedingChris Wilson
2011-12-05test/radeon: add missing files for distDave Airlie
2011-11-10tests/radeon: radeon specific testJerome Glisse
2011-10-19modetest: Call dirty fb on modesetJakob Bornecrantz
2011-10-19modetest: Print extra info if we fail to create a framebufferJakob Bornecrantz
2011-10-19modetest: Check error message from pageflip ioctlJakob Bornecrantz
2011-10-19vbltest: Check error codes returned from libdrmJakob Bornecrantz
2011-10-19tests: Add vmwgfx driver to probed drivers in testsJakob Bornecrantz
2011-10-11modetest: use 24 bit depth on the framebufferJesse Barnes
2011-09-26drmtest: make check should fail so hard on unable to open deviceDave Airlie
2011-09-26drm/test: handle usub being emptyDave Airlie
2011-09-21modeprint.c: use PRIu64 for printing uint64_tMatt Turner
2011-03-03Build modetest for all chipsets, always build modeprintKristian Høgsberg
2011-03-03don't try to build modetest without libkmsMatt Turner
2011-02-17modetest: Do no flip twice to a current front bufferBenjamin Franzke
2011-02-17tests/modeprint: Output masks as hex numbersBenjamin Franzke
2011-02-17tests/modeprint: Remove needless dependency on drm_intelBenjamin Franzke
2011-02-17modetest: Create buffers using libkmsBenjamin Franzke
2010-12-10tests: Update for ENOENT returns from unknown handlesChris Wilson
2010-09-09modetest: Fix drawing routines to use stride.Chris Wilson
2010-09-09modetest: align fb pitch to 64 bytesJesse Barnes
2010-09-07modetest: add edp and TV connector names to the connector name arrayJesse Barnes
2010-07-01Purge macro NEED_REPLIESFernando Carrijo
2010-05-12Only build tests in make checkJonathan Callen
2010-04-28vbltest: Doesn't need intel stuff.Michel Dänzer
2010-04-27tests: add new vblank testJesse Barnes
2010-03-26modetest: add optional select codepathJesse Barnes
2010-02-28tests/modetest: Don't get_props on a connector after freeing it.Marcin Kościelnicki
2010-02-28tests: vrefresh is actually not * 1000.Marcin Kościelnicki
2010-02-28tests: Add nouveau to list of supported modules.Marcin Kościelnicki
2010-02-04Tidy up compile warnings by cleaning up types.Matthew W. S. Bell
2010-01-28libkms: Rework interface to not duplicate fields from kms and make formats ex...Jakob Bornecrantz
2010-01-16Support gcc's __FUNCTION__ for people using other compilersAlan Coopersmith
2010-01-16Include alloca.h in tests/drmstat.c when configure detects itAlan Coopersmith
2010-01-12tests: Update kmstest a bitJakob Bornecrantz
2010-01-08tests: Add a very small libkms testJakob Bornecrantz
2009-12-15modetest: Error out if pageflipping is requested but not availableKristian Høgsberg
2009-12-04modetest: fix build error due to page_flip_handler name changeJesse Barnes
2009-12-03Merge branch 'pageflip' of git://people.freedesktop.org/~jbarnes/drmJesse Barnes
2009-11-23Add drmGetDeviceNameFromFd functionKristian Høgsberg
2009-11-20modetest: add pageflip test case to modetestKristian Høgsberg
2009-11-17Move libdrm/ up one levelKristian Høgsberg
2009-11-17Use headers copied from kernel instead of shared-coreKristian Høgsberg
2009-10-03tests: Disable intel-specific tests with --disable-intelChris Wilson
2009-06-22modetest: use gtt unmap for objectJesse Barnes
pt">->_mapcount)) { if (page_test_and_clear_dirty(page)) set_page_dirty(page); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) dec_zone_page_state(page, NR_FILE_MAPPED); #else dec_page_state(nr_mapped); #endif } put_page(page); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) dec_mm_counter(mm, file_rss); #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12) dec_mm_counter(mm, rss); #else --mm->rss; #endif } } } while (pte++, addr += PAGE_SIZE, addr != end); pte_unmap(pte - 1); } static inline void change_pmd_range(struct mm_struct *mm, pud_t * pud, unsigned long addr, unsigned long end) { pmd_t *pmd; unsigned long next; pmd = pmd_offset(pud, addr); do { next = pmd_addr_end(addr, end); if (pmd_none_or_clear_bad(pmd)) continue; change_pte_range(mm, pmd, addr, next); } while (pmd++, addr = next, addr != end); } static inline void change_pud_range(struct mm_struct *mm, pgd_t * pgd, unsigned long addr, unsigned long end) { pud_t *pud; unsigned long next; pud = pud_offset(pgd, addr); do { next = pud_addr_end(addr, end); if (pud_none_or_clear_bad(pud)) continue; change_pmd_range(mm, pud, addr, next); } while (pud++, addr = next, addr != end); } /* * This function should be called with all relevant spinlocks held. */ #if 1 void drm_clear_vma(struct vm_area_struct *vma, unsigned long addr, unsigned long end) { struct mm_struct *mm = vma->vm_mm; pgd_t *pgd; unsigned long next; #if defined(flush_tlb_mm) || !defined(MODULE) unsigned long start = addr; #endif BUG_ON(addr >= end); pgd = pgd_offset(mm, addr); flush_cache_range(vma, addr, end); do { next = pgd_addr_end(addr, end); if (pgd_none_or_clear_bad(pgd)) continue; change_pud_range(mm, pgd, addr, next); } while (pgd++, addr = next, addr != end); #if defined(flush_tlb_mm) || !defined(MODULE) flush_tlb_range(vma, addr, end); #endif } #else void drm_clear_vma(struct vm_area_struct *vma, unsigned long addr, unsigned long end) { struct mm_struct *mm = vma->vm_mm; spin_unlock(&mm->page_table_lock); (void) zap_page_range(vma, addr, end - addr, NULL); spin_lock(&mm->page_table_lock); } #endif #if defined(CONFIG_X86) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)) int drm_map_page_into_agp(struct page *page) { int i; i = change_page_attr(page, 1, PAGE_KERNEL_NOCACHE); /* Caller's responsibility to call global_flush_tlb() for * performance reasons */ return i; } int drm_unmap_page_from_agp(struct page *page) { int i; i = change_page_attr(page, 1, PAGE_KERNEL); /* Caller's responsibility to call global_flush_tlb() for * performance reasons */ return i; } #endif pgprot_t vm_get_page_prot(unsigned long vm_flags) { #ifdef MODULE static pgprot_t drm_protection_map[16] = { __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111, __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 }; return drm_protection_map[vm_flags & 0x0F]; #else extern pgprot_t protection_map[]; return protection_map[vm_flags & 0x0F]; #endif };