summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-12-18configure.ac: bump version for releaseHEADmasterDave Airlie1-1/+1
2017-12-18drm: Add CrtcGetSequence and CrtcQueueSequence IOCTLs [v2]Keith Packard3-1/+57
These provide a crtc-id based interface to get the current sequence (frame) number and to queue an event to be delivered at a specific sequence. v2: Remove FIRST_PIXEL_OUT flag. This has been removed from the proposed kernel API Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-12-18drm: Add drm mode lease ioctl wrappers [v3]Keith Packard2-0/+111
drmModeCreateLease drmModeListLessees drmModeGetLease drmModeRevokeLease Changes for v2: Remove lessee id from GetLease Remove lessor_id from ListLeases Add revoke Renumber to track kernel rebase on drm-next Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-12-18amdgpu: Add syncobj reset & signal wrappers.Bas Nieuwenhuizen3-0/+48
Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-12-18drm: Add drmSyncobjReset & drmSyncobjSignal wrappers.Bas Nieuwenhuizen2-0/+28
anv already uses the ioctls but does not use libdrm, so these were not wrapped yet. Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-12-15etnaviv: fix BO cache to properly work with different flagsLucas Stach1-7/+19
Currently if the oldest BO in a bucket has different flags than what we look for we'll miss the cache.Fix this by iterating over the cached BOs until we find the oldest one with matching flags. This improves the hit ratio for some of the buckets. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2017-12-15tests/amdgpu: Add return CUE_SUCCESS to suite_vcn_tests_clean.Andrey Grodzovsky1-0/+2
fixes: 806d0803600000faecb4025d8e9c7490cb097c25 (amdgpu: Use new suite/test disabling functionality.) bug: https://bugs.freedesktop.org/show_bug.cgi?id=104280 Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-12-15etnaviv: support performance monitor requestsChristian Gmeiner4-0/+37
Add etna_cmd_stream_perf(..) to submit perform requests. Userspace can submit pmrs via submit ioctl to sample perfmon signals. v3: - mark perfmon bos as RW Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
2017-12-15etnaviv: add permon supportChristian Gmeiner5-0/+226
Query all domains and their signals and provide it this information via struct etna_perfmon and the corresponding api functions. v2: - code style changes - etna_perfmon_create(..): add missing clean up in error case Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
2017-12-15etnaviv: sync uapi headerChristian Gmeiner1-1/+42
Import the etnaviv header changes from kernel commit 05916bed1 (drm-next) The drm_etnaviv_gem_submit structure was extended to include performance monitor requests. Also two new ioctls got added to be able to readout performance monitor domains and their signals. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-by: Lucas Stach <l.stach@pengutronix.de>
2017-12-12amdgpu: Remove dummy CU_ASSERT_EQUAL.Andrey Grodzovsky1-2/+0
Fixes test failure on rhel. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Qiang Yu <Qiang.Yu@amd.com>
2017-12-05amdgpu.ids: Refresh from AMD 17.40 releaseMichel Dänzer1-2/+29
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2017-12-05amdgpu: Only remember the device's marketing nameMichel Dänzer5-102/+28
There's no point in keeping around the full table of marketing names, when amdgpu_get_marketing_name only ever returns the device's marketing name. Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-05amdgpu: Simplify error handling in parse_one_lineMichel Dänzer1-29/+16
* Move empty/commented line check before the strdup and return -EAGAIN directly * Initialize r = -EAGAIN and remove redundant assignments * Set r = -ENOMEM if last strdup fails, and remove redundant goto Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-01amdgpu: Clean up amdgpu_parse_asic_ids error handlingMichel Dänzer3-12/+12
* Move error message printing into amdgpu_parse_asic_ids and make it return void * Print only "Invalid format" error message if parse_one_line returns -EINVAL * Use strerror instead of printing the (negative) error code in hex Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-11-30amdgpu: Add explicit dependency test.Andrey Grodzovsky2-0/+282
The test is as following: 1) Create context A & B 2) Send a command submission using context A which fires up a compute shader. 3) The shader wait a bit and then write a value to a memory location. 4) Send a command submission using context B which writes another value to the same memory location, but having an explicit dependency on the first command submission. 5) Wait with the CPU for both submissions to finish and inspect the written value. Test passes if the value seen in the memory location after both submissions is from command B. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-30amdgpu: Add amdgpu_cs_create_syncobj2 to amdgpu-symbol-checkMichel Dänzer1-0/+1
Fixes make check. Trivial.
2017-11-29amdgpu: Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initiallyDavid Mao2-0/+25
Signed-off-by: David Mao <david.mao@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-11-29amdgpu: Dynamicly disable BO suite "Metadata" test.Andrey Grodzovsky2-2/+3
Disable the test instead of doing #ifdef 0 Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-29amdgpu: Switch amdgpu CS tests enabling to the new way.Andrey Grodzovsky3-33/+38
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-27Android: disable warnings causing errorsRob Herring1-0/+1
AOSP master has changed the build default to -Werror making all the warnings errors. Override that with -Wno-error. Signed-off-by: Rob Herring <robh@kernel.org>
2017-11-15amdgpu: Disable deadlock test suite for Vega 10Andrey Grodzovsky3-1/+25
The test stalls the CP, until RCA is done the test is disabled to not disrupt regression testing. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
2017-11-14amdgpu: Add memory over allocation test.Andrey Grodzovsky1-0/+24
Allocates 1 TB of memory. Test is disabled by default since it's triggers OOM killer. v2: FIx the test to only alloc the BO and assert if return value not equal to -ENOMEM and remove test disable on start. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-13amdgpu: Move memory alloc tests in bo suite.Andrey Grodzovsky2-49/+49
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-13amdgpu: Use new suite/test disabling functionality.Andrey Grodzovsky6-134/+123
Switch from disabling tests during run to using the new disable API. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-13amdgpu: Add functions to disable suites and tests.Andrey Grodzovsky2-18/+170
Suits are diasbled based on hooks they provide (e.g incompatible ASIC or missing blocks). Single tests are diasbled explicitly. Suit or test can be forced to execute even if disabled by adding -f flag after specifying suit [test] ids. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-11-10headers: Drop outdated node about a delta in drm_mode.h.Eric Anholt1-5/+0
Fixed in 9433b702fc16 ("headers: Sync drm{,_mode}.h with the kernel") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-10headers: Sync up kernel changes to use kernel types instead of stdint.h.Eric Anholt4-149/+144
This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-10headers: Sync up mga_drm.h from drm-next.Eric Anholt2-5/+1
The kernel started using the struct from drm.h instead of the typedef. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-10headers: Sync up some comment spelling and whitespace fixes from drm-next.Eric Anholt3-7/+7
This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-10headers: Sync up some header guard changes from drm-next.Eric Anholt10-7/+84
This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-10headers: Sync vc4 header from drm-next.Eric Anholt1-3/+44
This updates the header with the contents from drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-09Revert "amdgpu: fix 32bit VA manager max address"Christian König1-1/+1
This reverts commit 944f6665de36b6a6c36263f23b7b9d1730e544fa. Accidentially pushed an imcomplete patch. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-09Revert "amdgpu: use the high VA range if possible"Christian König2-11/+2
This reverts commit 6c0ea4b0c5452bfc1e67b74ce723696ef3c80b25. Accidentially pushed an incomplete patch. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-08amdgpu: use the high VA range if possibleChristian König2-2/+11
This frees up the low range for HMM. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-08amdgpu: fix 32bit VA manager max addressChristian König1-1/+1
The range is exclusive not inclusive. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-08amdgpu: sanitize 64bit VA managerChristian König3-27/+8
Adding the extra reservation of the 32bit space to the 64bit manager is complete nonsense and just a waste of memory and CPU cycles. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-07amdpgu: fix coding style in amdgpu_vamgr.cChristian König1-13/+14
No functional change. Signed-off-by: Christian König <christian.koenig@amd.com>
2017-11-07freedreno: add the API fd_pipe_new2 to the symbol testEmil Velikov1-0/+1
As kindly spotted by `make check' Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-11-07exynos: change the license to X11/MITInki Dae7-40/+120
Change GPL license of Exynos related code to X11/MIT. I'd like to keep a consistent license across all Exynos code because License checker notices two more licenses exist in libdrm. For the license change I need to get your agree - all committers. So please give me Acked-by if you agree with me. Signed-off-by: Inki Dae <inki.dae@samsung.com> Acked-by: Hyungwon Hwang <human.hwang@samsung.com> Acked-by: SooChan Lim <sc1.lim@samsung.com> Acked-by: Sangjin LEE <lsj119@samsung.com> Acked-by: Boram Park <boram1288.park@samsung.com> Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Acked-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Acked-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-11-04freedreno: submit-queue context priorityRob Clark8-7/+68
With a new-enough kernel to support prioritized submit-queues, we can expose priority level support to mesa. Open a submit queue associated with the fd_pipe and pass it's id back to SUBMIT ioctl. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2017-11-04freedreno: sync uapi header (driver version 1.3.0)Rob Clark1-6/+34
Signed-off-by: Rob Clark <robclark@freedesktop.org>
2017-11-03configure.ac: bump version for releaseMarek Olšák1-1/+1
2017-11-03amdgpu: Fix wrappers for AMDGPU_VM IOCTL.Andrey Grodzovsky3-8/+8
Rmove amdgpu_context_handle from the interface and use amdgpu_device_handle instead. Uupdate VMID reservation test accordingly. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-10-31configure.ac: bump version for releaseMarek Olšák1-1/+1
2017-10-31amdgpu: fix 32-bit buildMarek Olšák1-0/+3
2017-10-31configure.ac: bump version for releaseMarek Olšák1-1/+1
2017-10-27amdgpu: Add VMID reservation per GPU context test.Andrey Grodzovsky4-1/+175
The test will Reserve a VMID, submit a command and unreserve the VMID. v2: Wrappers names were changed. Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-10-27amdgpu: Add wrappers for AMDGPU_VM IOCTL.Andrey Grodzovsky4-0/+71
v2: Rename wrappers to match the IOCTL naming, fix identation and fix make check error. Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-10-25drm/syncobj: fix some whitespace issuesDave Airlie1-19/+19
These had tabs, just remove them. Signed-off-by: Dave Airlie <airlied@redhat.com>