From: Dave Airlie Date: Fri, 22 Jun 2018 03:18:32 +0000 (+1000) Subject: Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm... X-Git-Tag: v5.15~8118^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=565c17b5f02dacd8430da8d95bbba60587f339af;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next First feature request for 4.19. Highlights: - Add initial amdgpu documentation - Add initial GPU scheduler documention - GPU scheduler fixes for dying processes - Add support for the JPEG engine on VCN - Switch CI to use powerplay by default - EDC support for CZ - More powerplay cleanups - Misc DC fixes Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20180621161138.3008-1-alexander.deucher@amd.com --- 565c17b5f02dacd8430da8d95bbba60587f339af diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index a156b38,d1f0548..b2286bc --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c @@@ -132,7 -188,21 +188,20 @@@ error return ERR_PTR(ret); } + /** + * amdgpu_gem_map_attach - &dma_buf_ops.attach implementation + * @dma_buf: shared DMA buffer + * @target_dev: target device + * @attach: DMA-buf attachment + * + * Makes sure that the shared DMA buffer can be accessed by the target device. + * For now, simply pins it to the GTT domain, where it should be accessible by + * all DMA devices. + * + * Returns: + * 0 on success or negative error code. + */ static int amdgpu_gem_map_attach(struct dma_buf *dma_buf, - struct device *target_dev, struct dma_buf_attachment *attach) { struct drm_gem_object *obj = dma_buf->priv; diff --cc drivers/gpu/drm/amd/amdgpu/atom.c index e9934de,6cd518f..b18c31a7 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@@ -1221,7 -1221,7 +1221,7 @@@ static int amdgpu_atom_execute_table_lo ectx.abort = false; ectx.last_jump = 0; if (ws) - ectx.ws = kcalloc(4, ws, GFP_KERNEL); - ectx.ws = kzalloc(4 * ws, GFP_ATOMIC); ++ ectx.ws = kcalloc(4, ws, GFP_ATOMIC); else ectx.ws = NULL;