fe6fc1f | Slava Grigorev | 26 January 2016, 22:35:57 UTC | drm/radeon: fix DP audio support for APU with DCE4.1 display engine Properly setup the DFS divider for DP audio for DCE4.1. Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org | 27 January 2016, 17:50:25 UTC |
a64c9da | Slava Grigorev | 26 January 2016, 21:56:25 UTC | drm/radeon: Add a common function for DFS handling Move encoding of DFS (digital frequency synthesizer) divider into a separate function and improve calculation precision. Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org | 27 January 2016, 17:48:32 UTC |
c9a392e | Slava Grigorev | 26 January 2016, 21:45:10 UTC | drm/radeon: cleaned up VCO output settings for DP audio This is preparation for the fixes in the following patches. Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org | 27 January 2016, 17:47:28 UTC |
08b21d3 | Rex Zhu | 21 January 2016, 11:24:44 UTC | drm/amd/powerplay: Update SMU firmware loading for Stoney Fix firmware init on Stoney when powerplay is enabled. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 27 January 2016, 16:40:38 UTC |
f49d45c | Alex Deucher | 26 January 2016, 05:30:33 UTC | drm/amdgpu: don't init fbdev if we don't have any connectors Don't init fbdev if we don't have connectors. E.g., if you have a PX laptop with the displays attached to an IGP with no driver support, you may end up with a blank screen rather than falling back to vesa, etc. Based on a similar radeon patch from Rob Clark. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 26 January 2016, 05:35:56 UTC |
f95429e | Rob Clark | 25 January 2016, 23:06:48 UTC | drm/radeon: only init fbdev if we have connectors This fixes an issue that was noticed on an optimus/prime laptop with a kernel that was old enough to not support the integrated intel gfx (which was driving all the outputs), but did have support for the discrete radeon gpu. The end result was not falling back to VESA and leaving the user with a black screen. (Plus it is kind of silly to create an framebuffer device if there are no outputs hooked up to the gpu.) Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 26 January 2016, 05:35:49 UTC |
186bac8 | Matthew Dawson | 25 January 2016, 15:34:12 UTC | drm/radeon: Ensure radeon bo is unreserved in radeon_gem_va_ioctl Found with lockdep while testing gpu reset. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 25 January 2016, 15:57:17 UTC |
41f2d99 | Christian König | 21 January 2016, 11:56:52 UTC | drm/amdgpu: fix next_rptr handling for debugfs That somehow got lost. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> | 22 January 2016, 19:44:08 UTC |
cc78eb2 | Alex Deucher | 22 January 2016, 05:13:15 UTC | drm/radeon: properly byte swap vce firmware setup Firmware is LE. Need to properly byteswap some of the fields so they are interpreted correctly by the driver on BE systems. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org | 22 January 2016, 15:50:24 UTC |
9441f96 | Alex Deucher | 20 January 2016, 17:15:09 UTC | drm/amdgpu: add a message to indicate when powerplay is enabled (v2) Makes it clear to the user which power management path is in use. v2: make consistent with dpm Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Tom St Denis <tom.stdenis@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 22 January 2016, 15:49:42 UTC |
78d0e18 | Christian König | 19 January 2016, 11:48:14 UTC | drm/amdgpu: fix amdgpu_bo_pin_restricted VRAM placing v2 We could pin BOs into invisible VRAM otherwise. v2: make logic more readable as suggested by Michel Cc: stable@vger.kernel.org Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1) Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> (v1) Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> | 22 January 2016, 15:47:48 UTC |
4b5ece2 | Eric Huang | 19 January 2016, 19:28:56 UTC | drm/amd/amdgpu: Improve amdgpu_dpm* macros to avoid unexpected result (v2) The two macros returns are values which probably are used in the expression of calculation. Without the brackets the result of the expression may be wrong. v2: agd: squash both patches together Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> | 22 January 2016, 15:47:48 UTC |
3466904 | Jordan Lazare | 18 January 2016, 22:00:03 UTC | drm/amdgpu: Allow the driver to load if amdgpu.powerplay=1 on asics without powerplay support Avoid setting pp_enabled if there is no powerplay implementation. Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 19 January 2016, 17:42:30 UTC |
9571e1d | Michel Dänzer | 19 January 2016, 08:59:46 UTC | drm/amdgpu: Use drm_calloc_large for VM page_tables array It can be big, depending on the VM address space size, which is tunable via the vm_size module parameter. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93721 Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org | 19 January 2016, 17:25:09 UTC |
7776a69 | Alex Deucher | 15 October 2015, 14:59:16 UTC | drm/amdgpu: Add some tweaks to gfx 8 soft reset Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 15 January 2016, 17:43:22 UTC |
e160e4d | Alex Deucher | 14 January 2016, 18:48:24 UTC | drm/amdgpu: fix tonga smu resume Need to make sure smu buffers are pinned on resume. This matches what Fiji does. Cc: stable@vger.kernel.org Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 15 January 2016, 17:43:11 UTC |
e9c5e74 | Dave Airlie | 13 January 2016, 22:07:55 UTC | drm/amdgpu: add missing irq.h include this fixes the build on arm. Signed-off-by: Dave Airlie <airlied@redhat.com> | 13 January 2016, 22:07:55 UTC |
d6f7a18 | Dave Airlie | 13 January 2016, 21:59:21 UTC | Merge branch 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next This 2nd pull request includes the following, - add configurable plane support and relevant cleanups. - fixup kernel panic issue at drm releasing. - remove unnecessary codes. This has been delayed to resolve a critical issue - which incurrs a kernel panic when driver is released - and review it. * 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos: drm/exynos: fix kernel panic issue at drm releasing drm/exynos: crtc: do not wait for the scanout completion drm/exynos: mixer: properly update all planes on the same vblank event drm/exynos: crtc: rework atomic_{begin,flush} drm/exynos: mixer: unify a check for video-processor window drm/exynos: mixer: also allow ARGB1555 and ARGB4444 drm/exynos: mixer: refactor layer setup drm/exynos: mixer: remove all static blending setup drm/exynos: mixer: set window priority based on zpos drm/exynos: make zpos property configurable drm/exynos: rename zpos to index | 13 January 2016, 21:59:21 UTC |
06249e6 | Dave Airlie | 13 January 2016, 21:58:06 UTC | Merge branch 'drm-etnaviv-fixes' of git://git.pengutronix.de/git/lst/linux into drm-next etnaviv fixes. * 'drm-etnaviv-fixes' of git://git.pengutronix.de/git/lst/linux: drm/etnaviv: fix workaround for GC500 drm/etnaviv: unlock on error in etnaviv_gem_get_iova() | 13 January 2016, 21:58:06 UTC |
c7753e9 | Dave Airlie | 13 January 2016, 21:57:24 UTC | Merge branch 'drm-rockchip-next-2016-01-06' of https://github.com/markyzq/kernel-drm-rockchip into drm-next new rockchip bits. * 'drm-rockchip-next-2016-01-06' of https://github.com/markyzq/kernel-drm-rockchip: drm: rockchip: Support Synopsys DW MIPI DSI Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver drm/rockchip: return a true clock rate to adjusted_mode | 13 January 2016, 21:57:24 UTC |
a50e2bf | Thomas Hellstrom | 08 January 2016, 19:29:40 UTC | drm/vmwgfx: Fix a width / pitch mismatch on framebuffer updates When the framebuffer is a vmwgfx dma buffer and a proxy surface is created, the vmw_kms_update_proxy() function requires that the proxy surface width and the framebuffer pitch are compatible, otherwise display corruption occurs as seen in gnome-shell/native with software 3D. Since the framebuffer pitch is determined by user-space, allocate a proxy surface the width of which is based on the framebuffer pitch rather than on the framebuffer width. Cc: <stable@vger.kernel.org> Reported-by: Raphael Hertzog <buxy@kali.org> Tested-by: Mati Aharoni <muts@kali.org> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> | 13 January 2016, 21:56:46 UTC |
fb89ac5 | Thomas Hellstrom | 08 January 2016, 19:29:39 UTC | drm/vmwgfx: Fix an incorrect lock check With CONFIG_SMP=n and CONFIG_DEBUG_SPINLOCK=y the vmwgfx kernel module would unconditionally throw a bug when checking for a held spinlock in the command buffer code. Fix this by using a lockdep check. Cc: <stable@vger.kernel.org> Reported-and-tested-by: Tetsuo Handa <penguin-kernel@i-love-sakura.ne.jp> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> | 13 January 2016, 21:56:44 UTC |
38b1751 | Arnd Bergmann | 13 January 2016, 13:48:13 UTC | drm: nouveau: fix nouveau_debugfs_init prototype The new debugfs initialization code fails to build when CONFIG_DEBUG_FS is disabled: In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0: drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init': drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omitted nouveau_debugfs_init(struct nouveau_drm *) This fixes the prototypes so we can build it again. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: b126a200e9db ("drm/nouveau/debugfs: we need a ctrl object for debugfs") Signed-off-by: Dave Airlie <airlied@redhat.com> | 13 January 2016, 21:56:41 UTC |
25c8050 | Karol Herbst | 12 January 2016, 21:52:14 UTC | drm/nouveau/pci: fix check in nvkm_pcie_set_link v2: remove unneeded pci check Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Dave Airlie <airlied@redhat.com> | 13 January 2016, 21:56:37 UTC |
6cfd777 | Dave Airlie | 13 January 2016, 21:56:07 UTC | Merge branch 'drm-next-4.5' of git://people.freedesktop.org/~agd5f/linux into drm-next A few more misc things for radeon and amdgpu for 4.5: - TTM fixes for imported buffers - amdgpu fixes to avoid -ENOMEM in CS ioctl - CZ UVD and VCE clock force options for debugging video issues - A couple of ACP prerequisites - Misc fixes * 'drm-next-4.5' of git://people.freedesktop.org/~agd5f/linux: drm/amdgpu: validate duplicates first drm/amdgpu: move VM page tables to the LRU end on CS v2 drm/ttm: add ttm_bo_move_to_lru_tail function v2 drm/ttm: fix adding foreign BOs to the swap LRU drm/ttm: fix adding foreign BOs to the LRU during init v2 drm/radeon: use kobj_to_dev() drm/amdgpu: use kobj_to_dev() drm/amdgpu/cz: force vce clocks when sclks are forced drm/amdgpu/cz: force uvd clocks when sclks are forced drm/amdgpu/cz: add code to enable forcing VCE clocks drm/amdgpu/cz: add code to enable forcing UVD clocks drm/amdgpu: fix lost sync_to if scheduler is enabled. drm/amd/powerplay: fix static checker warning for return meaningless value. drm/amdgpu: add irq domain support drm/amdgpu/cgs: add an interface to access PCI resources | 13 January 2016, 21:56:07 UTC |
d8e0cae | Christian König | 11 January 2016, 14:35:22 UTC | drm/amdgpu: validate duplicates first Most VM BOs end up in the duplicates list, validate it first make -ENOMEM less likely. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <David1.Zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:22:59 UTC |
eceb8a1 | Christian König | 11 January 2016, 14:35:21 UTC | drm/amdgpu: move VM page tables to the LRU end on CS v2 This makes it less likely to run into an ENOMEM because VM page tables are evicted last. v2: move the BOs in the LRU tail after validation Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:22:17 UTC |
ab74961 | Christian König | 11 January 2016, 14:35:20 UTC | drm/ttm: add ttm_bo_move_to_lru_tail function v2 This allows the drivers to move a BO to the end of the LRU without removing and adding it again. v2: Make it more robust, handle pinned and swapable BOs as well. Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:21:21 UTC |
ed704a4 | Christian König | 11 January 2016, 14:35:19 UTC | drm/ttm: fix adding foreign BOs to the swap LRU It doesn't make any sense to try to swap out imported BOs. Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:19:52 UTC |
33d48cf | Christian König | 11 January 2016, 14:35:18 UTC | drm/ttm: fix adding foreign BOs to the LRU during init v2 If we import a BO with an external reservation object we don't reserve/unreserve it. So we never add it to the LRU causing a possible denial of service. v2: fix typo in commit message Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:18:31 UTC |
e3837b0 | Geliang Tang | 13 January 2016, 14:48:43 UTC | drm/radeon: use kobj_to_dev() Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:15:53 UTC |
cc29ec8 | Geliang Tang | 13 January 2016, 14:48:42 UTC | drm/amdgpu: use kobj_to_dev() Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:14:59 UTC |
403664b | Alex Deucher | 18 December 2015, 16:33:30 UTC | drm/amdgpu/cz: force vce clocks when sclks are forced Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:13:33 UTC |
5f57642 | Alex Deucher | 18 December 2015, 16:28:49 UTC | drm/amdgpu/cz: force uvd clocks when sclks are forced Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:13:26 UTC |
044c062 | Alex Deucher | 18 December 2015, 16:25:16 UTC | drm/amdgpu/cz: add code to enable forcing VCE clocks VCE DPM works similarly to SCLK DPM. Add a similar interface for VCE for forcing the VCE clocks. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:12:43 UTC |
d83b1e8 | Alex Deucher | 18 December 2015, 16:06:42 UTC | drm/amdgpu/cz: add code to enable forcing UVD clocks UVD DPM works similarly to SCLK DPM. Add a similar interface for UVD for forcing the UVD clocks. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 17:11:30 UTC |
888c9e3 | Chunming Zhou | 13 January 2016, 04:55:18 UTC | drm/amdgpu: fix lost sync_to if scheduler is enabled. when scheduler is enabled, the semaphore isn't used at all. Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: stable@vger.kernel.org | 13 January 2016, 16:39:15 UTC |
f3b5cb3 | Rex Zhu | 11 January 2016, 03:25:18 UTC | drm/amd/powerplay: fix static checker warning for return meaningless value. The return value should be either negative or zero, no positive. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> | 13 January 2016, 16:38:42 UTC |
c74d8eb | Inki Dae | 05 January 2016, 10:50:31 UTC | drm/exynos: fix kernel panic issue at drm releasing This patch fixes a kernel panic issue which happened when drm driver is closed while modetest. This issue could be reproduced easily by launching modetest with page flip repeatedly. The reason is that invalid drm_file object could be accessed by send_vblank_event function when finishing page flip if the drm_file object was removed by drm_release and there was a pended page flip event which was already committed to hardware. So this patch makes the pended page flip event to be cancelled by preclose callback which is called at front of drm_release function. Changelog v2: - free vblank event objects belonging to the request process, increment event space and decrease pending_update when cancelling the event Signed-off-by: Inki Dae <inki.dae@samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> | 12 January 2016, 15:16:39 UTC |
d619894 | Inki Dae | 24 December 2015, 08:24:35 UTC | drm/exynos: crtc: do not wait for the scanout completion This patch removes exynos_drm_crtc_complete_scanout function call which makes sure for overlay data to be updated to real hardware when drm driver is released. With atomic modeset support, it doesn't need the funtion anymore because atomic modeset interface makes sure that. Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:38 UTC |
3dbaab1 | Marek Szyprowski | 05 January 2016, 12:52:52 UTC | drm/exynos: mixer: properly update all planes on the same vblank event This patch also moves mixer_vsync_set_update() to newly introduced mixer_atomic_begin/flush callbacks. This ensures that all mixer planes will be updated on the same vsync event. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:37 UTC |
d29c2c1 | Marek Szyprowski | 05 January 2016, 12:52:51 UTC | drm/exynos: crtc: rework atomic_{begin,flush} Some CRTC drivers (like Exynos DRM Mixer) can handle blocking register updates only on per-device level, not per-plane level. This patch changes exynos_crts atomic_begin/atomic_flush callbacks to handle the entire crtc, instead of given planes, so driver can handle both cases on their own. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:37 UTC |
5e68fef | Marek Szyprowski | 16 December 2015, 12:21:48 UTC | drm/exynos: mixer: unify a check for video-processor window Always use macro instead of hard-coded '2' value in conditions related to video processor window. Additional checks are not needed, because video layer is registered only when video processor is available. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:36 UTC |
26a7af3 | Tobias Jakobi | 16 December 2015, 12:21:47 UTC | drm/exynos: mixer: also allow ARGB1555 and ARGB4444 Allow the remaining alpha formats now that blending is properly setup. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:36 UTC |
f657a99 | Marek Szyprowski | 16 December 2015, 12:21:46 UTC | drm/exynos: mixer: refactor layer setup Properly configure blending properties of given hardware layer based on the selected pixel format. Currently only per-pixel-based alpha is possible when respective pixel format has been selected. Configuration of global, per-plane alpha value, color key and background color will be added later. This patch is heavily inspired by earlier work done by Tobias Jakobi <tjakobi@math.uni-bielefeld.de>. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:36 UTC |
5bec019 | Tobias Jakobi | 16 December 2015, 12:21:45 UTC | drm/exynos: mixer: remove all static blending setup Previously blending setup was static and most of it was done in mixer_win_reset(). Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:35 UTC |
a2cb911 | Marek Szyprowski | 16 December 2015, 12:21:44 UTC | drm/exynos: mixer: set window priority based on zpos 'zpos' plane property is configurable, so adjust hardware layers priority based on the zpos value. 'zpos' value shifted by one can be used directly as hw priority value and stored to the registers, because mixer accepts priority values from 1 to 15 (0 means that layer is disabled). This patch also changes the default layer priority to match already exposed initial zpos values. The initial configuration is now: [top] video > gfx layer1 > gfx layer0 [bottom]. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:34 UTC |
0ea7240 | Marek Szyprowski | 16 December 2015, 12:21:43 UTC | drm/exynos: make zpos property configurable This patch adds all infrastructure to make zpos plane property configurable from userspace. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:34 UTC |
40bdfb0 | Marek Szyprowski | 16 December 2015, 12:21:42 UTC | drm/exynos: rename zpos to index This patch renames zpos entry to index, because in most places it is used as index for selecting hardware layer/window instead of configurable layer position. This will later enable to make the zpos property configurable. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> | 12 January 2016, 15:16:33 UTC |
8a0d560 | Stephen Rothwell | 31 December 2015, 10:20:20 UTC | drm/amdgpu/powerplay: include asm/div64.h for do_div() Fixes: 1e4854e96c35 ("drm/amdgpu/powerplay: implement thermal control for tonga.") Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Dave Airlie <airlied@redhat.com> | 11 January 2016, 23:29:25 UTC |
5f23236 | Alex Deucher | 06 November 2015, 06:29:08 UTC | drm/amdgpu: add irq domain support Hardware blocks on the GPU like ACP generate interrupts in the GPU interrupt controller, but are driven by a separate driver. Add an irq domain to the GPU driver so that blocks like ACP can register a Linux interrupt. Acked-by: Dave Airlie <airlied@redhat.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 11 January 2016, 14:52:57 UTC |
ba228ac | Alex Deucher | 23 December 2015, 16:25:43 UTC | drm/amdgpu/cgs: add an interface to access PCI resources This provides an interface to get access to the base address of PCI resources (MMIO, DOORBELL, etc.). Only MMIO and DOORBELL are implemented right now. This is necessary to properly utilize shared drivers on platform devices. IP modules can use this interface to get the base address of the resource and add any additional offset and set the size when setting up the platform driver(s). Acked-by: Dave Airlie <airlied@redhat.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | 11 January 2016, 14:52:43 UTC |
57b4f7e | Dave Airlie | 11 January 2016, 01:48:18 UTC | Merge branch 'linux-4.5' of git://github.com/skeggsb/linux into drm-next - gk20a instmem fixes / improvements - more gm10x vs gm20x differences deal with - better support for high-frequency hdmi modes - pstate control interfaces moved to debugfs - support for pcie link speed changes - misc other fixes across the board * 'linux-4.5' of git://github.com/skeggsb/linux: (50 commits) drm/nouveau/pmu: prevent falcon from acking interrupts routed to the host drm/nouveau/perf: change pcie speed on pstate change drm/nouveau/perf: add fields for pci speed and width and use it for the pstates drm/nouveau/bios/perf: parse the pci speed from the bios for tesla and newer cards drm/nouveau/pci: implement pcie speed change for kepler+ drm/nouveau/pci: implement pcie speed change for Fermi drm/nouveau/pci: implement pcie speed change for tesla drm/nouveau/pci: implement generic code for pcie speed change drm/nouveau/pci: add gk104 variant drm/nouveau/pci: add gf106 variant drm/nouveau/kms: take mode_config mutex in connector hotplug path drm/nouveau/nouveau/perfmon: add interface files for current core voltage drm/nouveau/sysfs: remove pstate interface drm/nouveau/debugfs: add copy of sysfs pstate interface ported to debugfs drm/nouveau/debugfs: we need a ctrl object for debugfs drm/nouveau/debugfs: rename functions to indicate they are used inside drm drm/nouveau/debugfs: add infrastructure to add files with other fops than only read drm/nouveau/fifo/gf100: remove references to "daemon" drm/nouveau/fb/nv50: remove references to "daemon" drm/nouveau/clk: remove references to "daemon" ... | 11 January 2016, 01:48:18 UTC |
a18c91d | Ben Skeggs | 11 January 2016, 00:29:08 UTC | drm/nouveau/pmu: prevent falcon from acking interrupts routed to the host Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:30:23 UTC |
f68f4c9 | Karol Herbst | 15 September 2015, 16:49:32 UTC | drm/nouveau/perf: change pcie speed on pstate change v2: remove error and only set link for pcie devices v6: remove check for pcie device Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:23 UTC |
d3b378c | Karol Herbst | 15 September 2015, 16:49:08 UTC | drm/nouveau/perf: add fields for pci speed and width and use it for the pstates Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:22 UTC |
c6e2f9b | Karol Herbst | 15 September 2015, 16:47:12 UTC | drm/nouveau/bios/perf: parse the pci speed from the bios for tesla and newer cards Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:22 UTC |
3aba825 | Karol Herbst | 05 January 2016, 20:44:52 UTC | drm/nouveau/pci: implement pcie speed change for kepler+ v2: rename functions v3: remove pcie2 accessors v6: fix alignement and line width, also remove useless code Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:21 UTC |
7c92384 | Karol Herbst | 05 January 2016, 20:44:39 UTC | drm/nouveau/pci: implement pcie speed change for Fermi v5: don't set kepler func pointers v6: fix alignment and line length | 11 January 2016, 01:30:21 UTC |
5cca4bd | Karol Herbst | 05 January 2016, 20:44:18 UTC | drm/nouveau/pci: implement pcie speed change for tesla v5: don't set fermi or kepler func pointers v6: fix alignment | 11 January 2016, 01:30:20 UTC |
bcc19d9 | Karol Herbst | 15 September 2015, 16:48:37 UTC | drm/nouveau/pci: implement generic code for pcie speed change v2: rename and group functions v4: change copyright information move printing of pcie speeds into oneinit, rename all pcie functions to nvkm_pcie_* don't try to raise the pcie version when no higher one is supported v5: revert Copyright changes and rename nvkm_pcie_raise_version to nvkm_pcie_set_version v6: remove some useless pci_is_pcie checks and rework messages Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:20 UTC |
28c8060 | Karol Herbst | 30 August 2015, 18:06:16 UTC | drm/nouveau/pci: add gk104 variant v2: change email used in header v4: change Copyright information v5: revert Copyright changes Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:19 UTC |
bec4961 | Karol Herbst | 27 September 2015, 00:41:34 UTC | drm/nouveau/pci: add gf106 variant v2: change email used in header v4: change Copyright information v5: revert Copyright changes Signed-off-by: Karol Herbst <nouveau@karolherbst.de> | 11 January 2016, 01:30:19 UTC |
0a882ca | Ben Skeggs | 07 January 2016, 22:56:51 UTC | drm/nouveau/kms: take mode_config mutex in connector hotplug path fdo#93634 Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Cc: stable@vger.kernel.org | 11 January 2016, 01:29:36 UTC |
2e7db87 | Karol Herbst | 20 September 2015, 12:40:27 UTC | drm/nouveau/nouveau/perfmon: add interface files for current core voltage Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:26 UTC |
fcc95ce | Karol Herbst | 30 July 2015, 09:56:20 UTC | drm/nouveau/sysfs: remove pstate interface Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:26 UTC |
6e9fc17 | Karol Herbst | 30 July 2015, 09:53:31 UTC | drm/nouveau/debugfs: add copy of sysfs pstate interface ported to debugfs Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:25 UTC |
b126a20 | Karol Herbst | 30 July 2015, 09:52:23 UTC | drm/nouveau/debugfs: we need a ctrl object for debugfs Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:25 UTC |
56c101a | Karol Herbst | 30 July 2015, 22:35:42 UTC | drm/nouveau/debugfs: rename functions to indicate they are used inside drm We will need our own debugfs_init and cleanup functions, because nouveau_drm isn't ready while the DRM ones are called by DRM. Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:24 UTC |
1b7ab1a | Karol Herbst | 29 July 2015, 11:44:21 UTC | drm/nouveau/debugfs: add infrastructure to add files with other fops than only read v2: use the same object for private data as with the drm debugfs functions Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:24 UTC |
9402aec | Ben Skeggs | 04 January 2016, 02:24:46 UTC | drm/nouveau/fifo/gf100: remove references to "daemon" Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:23 UTC |
bac34ed | Ben Skeggs | 04 January 2016, 02:22:54 UTC | drm/nouveau/fb/nv50: remove references to "daemon" Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:23 UTC |
547dd27 | Ben Skeggs | 04 January 2016, 02:17:52 UTC | drm/nouveau/clk: remove references to "daemon" Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:23 UTC |
caf2be8 | Ilia Mirkin | 02 January 2016, 22:54:51 UTC | drm/nouveau/gr/gf100: provide a bit more info for various errors Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:22 UTC |
cf09129 | Ben Skeggs | 20 December 2015, 23:27:49 UTC | drm/nouveau/bios: parse 8.1 Gbps DP link rate From DCB 4.1 spec. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:22 UTC |
7d2813c | Ben Skeggs | 19 December 2015, 06:48:34 UTC | drm/nouveau/ltc/gm204: split implementation from gm107 Differences from GM10x: - GM20x LTC count detection differs from GM10x - GM20x init doesn't require large page size setting Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:21 UTC |
4fb9c3f | Ben Skeggs | 19 December 2015, 06:42:22 UTC | drm/nouveau/ltc/gm107: use nvkm_mask to set cbc_ctrl1 resman and nvgpu both do this, presumably for good reason. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:21 UTC |
e3d26d0 | Ben Skeggs | 19 December 2015, 06:24:10 UTC | drm/nouveau/ibus/gm204: split implementation from gk104 GM20x doesn't require the priv ring timeout bumps that GK/GM10x have. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:28:20 UTC |
5bf561e | Ben Skeggs | 15 December 2015, 09:22:49 UTC | drm/nouveau/gr/gf100-: subclass nvkm_object to store channel pointer Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
f01c4e6 | Ben Skeggs | 08 November 2015, 23:21:27 UTC | drm/nouveau/nvif: modify nvif_unvers/nvif_unpack macros to be more obvious Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
13db6d6 | Ben Skeggs | 08 November 2015, 02:26:01 UTC | drm/nouveau/nvif: split out client interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
923bc41 | Ben Skeggs | 08 November 2015, 02:23:16 UTC | drm/nouveau/nvif: split out device interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
845f272 | Ben Skeggs | 08 November 2015, 02:16:40 UTC | drm/nouveau/nvif: split out ctxdma interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
75445a4 | Ben Skeggs | 08 November 2015, 02:12:15 UTC | drm/nouveau/nvif: split out perfmon interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
671e969 | Ben Skeggs | 08 November 2015, 01:56:00 UTC | drm/nouveau/nvif: split out device control interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
8ed1730 | Ben Skeggs | 08 November 2015, 01:28:26 UTC | drm/nouveau/nvif: split out fifo interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
7568b10 | Ben Skeggs | 08 November 2015, 00:44:19 UTC | drm/nouveau/nvif: split out display interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
538b269 | Ben Skeggs | 08 November 2015, 00:34:50 UTC | drm/nouveau/nvif: split out nvsw interface definitons Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
53a6df7 | Ben Skeggs | 08 November 2015, 00:15:09 UTC | drm/nouveau/nvif: split out fermi interface definitions Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
08f7633 | Ben Skeggs | 08 November 2015, 00:18:19 UTC | drm/nouveau/nvif: move internal class identifiers to class.h Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
21f560e | Ben Skeggs | 22 November 2015, 19:28:52 UTC | drm/nouveau/gr/gm107-: make use of gpc_addr() macro for tpc ramchain setup Should be no functional change here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
b306712 | Alexandre Courbot | 11 November 2015, 08:07:51 UTC | drm/nouveau/instmem/gk20a: use DMA API CPU mapping Commit 69c4938249fb ("drm/nouveau/instmem/gk20a: use direct CPU access") tried to be smart while using the DMA-API by managing the CPU mappings of buffers allocated with the DMA-API by itself. In doing so, it relied on dma_to_phys() which is an architecture-private function not available everywhere. This broke the build on several architectures. Since there is no reliable and portable way to obtain the physical address of a DMA-API buffer, stop trying to be smart and just use the CPU mapping that the DMA-API can provide. This means that buffers will be CPU-mapped for all their life as opposed to when we need them, but anyway using the DMA-API here is a fallback for when no IOMMU is available so we should not expect optimal behavior. This makes the IOMMU and DMA-API implementations of instmem diverge enough that we should maybe put them into separate files... Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
338840e | Alexandre Courbot | 09 November 2015, 07:37:53 UTC | drm/nouveau/instmem/gk20a: fix race conditions The LRU list used for recycling CPU mappings was handling concurrency very poorly. For instance, if an instobj was acquired twice before being released once, it would end up into the LRU list even though there is still a client accessing it. This patch fixes this by properly counting how many clients are currently using a given instobj. While at it, we also raise errors when inconsistencies are detected, and factorize some code. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
5a9e822 | Nicolas Chauvet | 28 September 2015, 15:08:13 UTC | drm/nouveau/gk20a: Add MODULE_FIRMWARE for gk20a This patch is needed by initramfs tools to detect the required firmware files for the module. This patch tests for either TEGRA_124_SOC or TEGRA_132_SOC for the firmwares related to the Tegra K1 generation. v2: move the MODULE_FIRMWARE to the nvidia_platform.c file. This will avoid to test for NOUVEAU_PLATFORM_DRIVER Signed-off-by: Nicolas Chauvet <kwizart@gmail.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
da4ee13 | Vince Hsu | 16 November 2015, 07:38:30 UTC | drm/nouveau/fifo/gk104: fix engine status register offset The offset should be 8 on Kepler and later. Signed-off-by: Vince Hsu <vinceh@nvidia.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
864d55f | Ben Skeggs | 11 November 2015, 03:06:10 UTC | drm/nouveau/ce/gk104: attempt at better handling of LAUNCHERR Very rough, no idea how correct it is at this point, but it prevents getteximage-depth from piglit from hanging the GPU. v2: updated with NV_PCE_FE_LAUNCHERR_REPORT values provided by NVIDIA Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
d40d0fd | Ben Skeggs | 11 November 2015, 00:07:22 UTC | drm/nouveau/fifo/gf100: fix race condition when updating engine runlists Similar in spirit to the gk104 fix with a similar title. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
386ffd5 | Ben Skeggs | 10 November 2015, 23:37:05 UTC | drm/nouveau/fifo/gk104: fix race condition when updating engine runlists The CPU-side tracking of engine runlists was not protected by a lock, leading to list corruption, eventually causing runlist_update() to overrun the GPU-side runlist, triggering an OOPS. Fixes some of the issues noticed during parallel piglit runs. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
cfb4f92 | Ilia Mirkin | 05 November 2015, 07:33:40 UTC | drm/nouveau/nvkm: add/remove 0's to make 7 (or 9)-nibble constants use 8 nibbles Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |
700c18c | Ilia Mirkin | 04 November 2015, 02:14:26 UTC | drm/nouveau/kms: no need to check for empty edid before drm_detect_hdmi_monitor Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> | 11 January 2016, 01:17:40 UTC |