[PATCH 08/34] drm: Remove linked lists for lessees

2019-02-22 Thread Matthew Wilcox
These are already tracked in the XArray so we do not need to also keep a doubly-linked list. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_auth.c | 4 +-- drivers/gpu/drm/drm_lease.c | 58 ++--- include/drm/drm_auth.h | 4 +-- 3 files changed, 30 i

[PATCH 25/34] drm/i915: Convert vgpus_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/gvt/display.c | 5 +++-- drivers/gpu/drm/i915/gvt/gvt.c | 4 +--- drivers/gpu/drm/i915/gvt/gvt.h | 5 +++-- drivers/gpu/drm/i915/gvt/kvmgt.c| 2 +- drivers/gpu/drm/i915/gvt/sched_policy.c | 2 +- drivers/gp

[PATCH 09/34] drm: Convert ctx_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_context.c | 42 +++ include/drm/drm_device.h | 2 +- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index 506663c69b0a..b498e

[PATCH 21/34] drm/i915: Convert get_page to XArray

2019-02-22 Thread Matthew Wilcox
This initially seemed like an ideal use-case for the store_range functionality, but there's no easy way to determine where we were relative to the base of the entry. So this is a straightforward conversion which doesn't even touch the locking. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i

[PATCH 05/34] drm: Convert syncobj_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_syncobj.c | 64 +++ include/drm/drm_file.h| 6 ++-- 2 files changed, 22 insertions(+), 48 deletions(-) diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c index db30a0e89db8..3b6

[PATCH 1/2] drm/i2c: tda998x: adjust CTS_N audio pre-divider calculation

2019-02-22 Thread Sven Van Asbroeck
My cpu dai driving the tda998x in master mode outputs SNDRV_PCM_FORMAT_S24_LE, i2s left justified, two channels: [SNDRV_PCM_FORMAT_S24_LE] = { .width = 24, .phys = 32, .le = 1, .signd = 1, .silence = {}, }, This format has a sample width of 24 bits,

[PATCH 20/34] drm/i915: Convert page_track_tree to XArray

2019-02-22 Thread Matthew Wilcox
No locking changes. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/gvt/gvt.h| 2 +- drivers/gpu/drm/i915/gvt/page_track.c | 6 +++--- drivers/gpu/drm/i915/gvt/vgpu.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/driv

[PATCH 02/34] drm: Convert aux_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_dp_aux_dev.c | 41 +--- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_aux_dev.c b/drivers/gpu/drm/drm_dp_aux_dev.c index 0e4f25d63fd2..393a32976900 100644 --- a/drivers/gpu/d

[PATCH 04/34] drm: Convert object_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 23 +++ drivers/gpu/drm/drm_gem.c | 67 +++ drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 12 ++-- drivers/gpu/drm/i915/i915_debugfs.c | 20 +++--- drivers/gpu/drm

[PATCH 29/34] drm/vc4: Convert perfmon IDR to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/vc4/vc4_drv.h | 2 +- drivers/gpu/drm/vc4/vc4_perfmon.c | 33 +++ 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index 4f87b03f837d..8

[PATCH] [v1,2/2] drm/panel:Add Boe Himax8279d MIPI-DSI LCD panel

2019-02-22 Thread Jerry Han
Add panel driver for it. Signed-off-by: Jerry Han --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig| 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-boe-himax8279d.c | 593 +++

[PATCH 00/34] Convert DRM to XArray

2019-02-22 Thread Matthew Wilcox
I intend to remove the IDR and the radix tree interfaces from Linux. Converting each user from either the IDR or radix tree interface varies from the trivial 1:1 replacement to a complete rewrite of the locking. Despite the best efforts of our automated testers (who have caught many of my mistakes)

[PATCH 34/34] drm/vmwgfx: Convert res_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 9 +-- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 3 ++- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 31 ++-- 3 files changed, 10 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/vmwg

[PATCH 03/34] drm: Convert object_name_idr to XArray

2019-02-22 Thread Matthew Wilcox
Leave the object_name_lock in place for now as I'm not certain it can be removed safely. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_debugfs.c | 19 ++- drivers/gpu/drm/drm_gem.c | 11 +-- include/drm/drm_device.h | 2 +- 3 files changed, 12 insertions

[PATCH 30/34] drm/sis: Convert object_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/sis/sis_drv.c | 4 +--- drivers/gpu/drm/sis/sis_drv.h | 2 +- drivers/gpu/drm/sis/sis_mm.c | 17 - 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c in

Re: [PATCH v3 2/3] dt-bindings: drm/msm/a6xx: Document interconnect properties for GPU

2019-02-22 Thread Georgi Djakov
Hi, On 12/20/18 19:30, Jordan Crouse wrote: > Add documentation for the interconnect and interconnect-names bindings > for the GPU node as detailed by bindings/interconnect/interconnect.txt. > > Signed-off-by: Jordan Crouse > --- > > Documentation/devicetree/bindings/display/msm/gpu.txt | 4 ++

[PATCH 14/34] drm/amdgpu: Convert pasid_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 66 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 ++--- 3 files changed, 29 insertions(+), 52 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

[PATCH 01/34] drm: Convert drm_minors_idr to XArray

2019-02-22 Thread Matthew Wilcox
Divide all the indices by 64 to save memory. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_drv.c | 49 ++- 1 file changed, 17 insertions(+), 32 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 12e5e2be7890..17ed29f

[PATCH 17/34] drm/etnaviv: Convert fence_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 4 +--- drivers/gpu/drm/etnaviv/etnaviv_gpu.c| 5 ++--- drivers/gpu/drm/etnaviv/etnaviv_gpu.h| 3 ++- drivers/gpu/drm/etnaviv/etnaviv_sched.c | 8 4 files changed, 9 insertions(+), 11 de

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-22 Thread Alistair Francis
On Thu, Feb 21, 2019 at 3:52 AM kra...@redhat.com wrote: > > On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrote: > > When running RISC-V QEMU with the Bochs device attached via PCIe the > > probe of the Bochs device fails with: > > [drm:bochs_hw_init] *ERROR* ID mismatch > > > >

[PATCH 28/34] drm/tegra: Convert contexts IDR to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/tegra/drm.c | 35 ++- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 4b70ce664c41..5daa414cc2cf 100644 --- a/drivers/gpu/drm/tegra/drm

[PATCH 2/2] sound: hdmi-codec: propagate physical_width

2019-02-22 Thread Sven Van Asbroeck
Infrastructure patch which allows the tda998x patch to build. This patch will be submitted for review if/when the tda998x patch gets accepted. Signed-off-by: Sven Van Asbroeck --- include/sound/hdmi-codec.h| 1 + sound/soc/codecs/hdmi-codec.c | 1 + 2 files changed, 2 insertions(+) diff --

[PATCH 33/34] drm/vmwgfx: Convert base IDR to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/vmwgfx/ttm_object.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.c b/drivers/gpu/drm/vmwgfx/ttm_object.c index 36990b80e790..8f394b94060b 100644 --- a/drivers

[PATCH 19/34] drm/i915: Convert spt_tree to XArray

2019-02-22 Thread Matthew Wilcox
A straightforward conversion. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/gvt/gtt.c | 18 -- drivers/gpu/drm/i915/gvt/gtt.h | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 + 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.

[PATCH 16/34] drm/amdkfd: Convert alloc_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 2 +- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 32 +++- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv

[PATCH 27/34] drm/qxl: Convert surf_id_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/qxl/qxl_cmd.c | 60 --- drivers/gpu/drm/qxl/qxl_drv.h | 3 +- drivers/gpu/drm/qxl/qxl_kms.c | 5 +-- 3 files changed, 23 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm

[[v1, 1/2] dt-bindings:panel:Add Boe Himax MIPI-DSI LCD panel] Boe Himax8279d is 1200x1920, 4-lane MIPI-DSI LCD panel.

2019-02-22 Thread Jerry Han
Add dt-bingings for it. Signed-off-by: Jerry Han --- .../bindings/display/panel/boe,himax8279d.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt diff --git a/Documentation/devicetree/bin

[PATCH 15/34] drm/amdkfd: Convert event_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 71 ++--- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +- 2 files changed, 30 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_eve

[PATCH 31/34] drm/vgem: Convert fence_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/vgem/vgem_drv.h | 3 +-- drivers/gpu/drm/vgem/vgem_fence.c | 43 +-- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.h b/drivers/gpu/drm/vgem/vgem_drv.h index 5c8f6d619f

[PATCH 24/34] drm/i915: Convert metrics_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_perf.c | 39 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 1b7663258f

[PATCH] [v1, 1/2] dt-bindings: panel: Add Boe Himax8279d is 1200x1920, 4-lane MIPI-DSI LCD panel

2019-02-22 Thread Jerry Han
Add dt-bingings for it. Signed-off-by: Jerry Han --- .../bindings/display/panel/boe,himax8279d.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt diff --git a/Documentation/devicetree/bin

[PATCH 06/34] drm: Convert magic_map to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_auth.c | 18 -- include/drm/drm_auth.h | 5 ++--- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index 1669c42c40ed..268189e9e2e0 100644 --- a/drive

[PATCH 07/34] drm: Convert lessee_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_auth.c | 3 +-- drivers/gpu/drm/drm_lease.c | 15 ++- include/drm/drm_auth.h | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index 268189e9e2e0

[PATCH 26/34] drm/qxl: Convert release_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/qxl/qxl_drv.h | 3 +- drivers/gpu/drm/qxl/qxl_kms.c | 3 +- drivers/gpu/drm/qxl/qxl_release.c | 54 +-- 3 files changed, 25 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/

[PATCH 22/34] drm/i915: Convert object_idr to IDA

2019-02-22 Thread Matthew Wilcox
I suspect dmabuf_obj_list_head and object_ids should be combined into a single xarray, but that's a job for later. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/gvt/dmabuf.c | 7 +++ drivers/gpu/drm/i915/gvt/gvt.h| 2 +- drivers/gpu/drm/i915/gvt/vgpu.c | 2 +- 3 files changed,

[PATCH 10/34] drm: Convert tile_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/drm_connector.c | 27 +++ drivers/gpu/drm/drm_mode_config.c | 3 +-- include/drm/drm_mode_config.h | 12 ++-- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b

[PATCH 13/34] drm/amdgpu: Convert ctx_handles to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 42 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 4 +-- 4 files changed, 19 insertions(+), 31

[PATCH 18/34] drm/i915: Convert handles_vma to XArray

2019-02-22 Thread Matthew Wilcox
Straightforward conversion. Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/i915_gem_context.c | 12 +--- drivers/gpu/drm/i915/i915_gem_context.h | 4 ++-- drivers/gpu/drm/i915/i915_gem_execbuffer.c| 6 +++---

[PATCH 23/34] drm/i915: Convert context_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/i915/i915_debugfs.c | 32 - drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gem_context.c | 31 ++-- 3 files changed, 30 insertions(+), 37 deletions(-) diff --git a/driv

Re: [PATCH] drm/msm: Fix incorrect struct size for memory allocation

2019-02-22 Thread Jeffrey Hugo
On 2/21/2019 2:54 PM, Jordan Crouse wrote: The allocation for the clock bulk data does a classic sizeof(pointer) instead of sizeof(struct) so the array ends up incorrectly sized for the clock data. Cc: sta...@vger.kernel.org Fixes: 8e54eea ("drm/msm: Add a helper function to parse clock names")

[PATCH 32/34] drm/via: Convert object_idr to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/via/via_drv.h | 2 +- drivers/gpu/drm/via/via_map.c | 4 +--- drivers/gpu/drm/via/via_mm.c | 11 +-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h index 6d1

[PATCH 11/34] drm: Convert crtc_idr to XArray

2019-02-22 Thread Matthew Wilcox
- Rename it to 'objects', as requested in todo.rst - Also convert leases IDR to XArray as the two are occasionally used by the same code (see drm_mode_get_lease_ioctl()) - Refactor drm_mode_create_lease_ioctl() to create the new drm_master early to avoid creating an XArray on the stack and

[PATCH 12/34] drm/agp: Convert bo_list_handles to XArray

2019-02-22 Thread Matthew Wilcox
Signed-off-by: Matthew Wilcox --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 22 - drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 10 -- 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/drivers/gpu

[PULL] drm-misc-fixes

2019-02-22 Thread Maarten Lankhorst
Hi dave/Daniel, Sorry for being a bit late, hopefully still in time for v5.0 :) drm-misc-fixes-2019-02-22: drm-misc-fixes for v5.0: - Block fb changes for async atomic updates to prevent a use after free. - Fix ID mismatch error on load in bochs. - Fix memory leak when drm_setup fails. - Fixes ar

Re: [PATCH 01/34] drm: Convert drm_minors_idr to XArray

2019-02-22 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 10:41:21AM -0800, Matthew Wilcox wrote: > Divide all the indices by 64 to save memory. > > Signed-off-by: Matthew Wilcox Pretty sure this goes boom. Our char device minor allocation scheme is device 0: card0=0, renderD0=64 device 1: card1=1, renderD1=65 ... I think your

Re: [PATCH 03/34] drm: Convert object_name_idr to XArray

2019-02-22 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 10:41:25AM -0800, Matthew Wilcox wrote: > Leave the object_name_lock in place for now as I'm not certain it can be > removed safely. It protects all object names, not just the gem flink one, also dma-buf exports. See struct drm_gem_object.dma_buf kerneldoc. We could complet

Re: [PATCH 11/34] drm: Convert crtc_idr to XArray

2019-02-22 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 10:41:41AM -0800, Matthew Wilcox wrote: > - Rename it to 'objects', as requested in todo.rst Yay, thanks! > - Also convert leases IDR to XArray as the two are occasionally used by >the same code (see drm_mode_get_lease_ioctl()) > - Refactor drm_mode_create_lease_ioc

Re: [PATCH v4 2/2] drm/qxl: remove conflicting framebuffers earlier

2019-02-22 Thread Daniel Vetter
On Fri, Feb 22, 2019 at 08:16:04AM +0100, Gerd Hoffmann wrote: > Add error checking while being at it. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/qxl/qxl_drv.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/dr

Re: [PATCH v4 1/2] drm: move i915_kick_out_vgacon to vgaarb

2019-02-22 Thread Daniel Vetter
On Fri, Feb 22, 2019 at 08:16:03AM +0100, Gerd Hoffmann wrote: > Also rename it and call it automatically from > drm_fb_helper_remove_conflicting_pci_framebuffers() Yeah this looks neat. > Signed-off-by: Gerd Hoffmann > --- > include/drm/drm_fb_helper.h | 14 +++--- > include/linux/

Re: [PATCH 00/34] Convert DRM to XArray

2019-02-22 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 10:41:20AM -0800, Matthew Wilcox wrote: > I intend to remove the IDR and the radix tree interfaces from Linux. > Converting each user from either the IDR or radix tree interface varies > from the trivial 1:1 replacement to a complete rewrite of the locking. > Despite the bes

Re: [PATCH 01/34] drm: Convert drm_minors_idr to XArray

2019-02-22 Thread Daniel Vetter
On Fri, Feb 22, 2019 at 10:11:14AM +0100, Daniel Vetter wrote: > On Thu, Feb 21, 2019 at 10:41:21AM -0800, Matthew Wilcox wrote: > > Divide all the indices by 64 to save memory. > > > > Signed-off-by: Matthew Wilcox > > Pretty sure this goes boom. Our char device minor allocation scheme is > >

Re: [PATCH RESEND 1/2] drm: panel-orientation-quirks: Get rid of superfluous (void *) casting

2019-02-22 Thread Jani Nikula
ase drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/David-Santamar-a-Rogado/drm-panel-orientation-quirks-Get-rid-of-superfluous-void-casting/20190222-044326 > config: i386-randconfig-x019-201907 (attached as .config) > compiler: gc

Re: [PATCH v1 2/2] drm/mediatek: add mipi_tx driver for mt8183

2019-02-22 Thread kbuild test robot
/commits/Jitao-Shi/drm-mediatek-separate-mipi_tx-to-different-file/20190222-053659 config: arm64-allmodconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH v4 1/2] drm: move i915_kick_out_vgacon to vgaarb

2019-02-22 Thread Gerd Hoffmann
Hi, > > - /* > > -* WARNING: Apparently we must kick fbdev drivers before vgacon, > > -* otherwise the vga fbdev driver falls over. > > -*/ > > ret = i915_kick_out_firmware_fb(dev_priv); > > This needs to be replaced with a call to > drm_fb_helper_remove_conflicting_pci_frameb

[PATCH v5 0/3] drm & vgaarb: handle vgacon removal in vgaarb.

2019-02-22 Thread Gerd Hoffmann
Gerd Hoffmann (3): drm: move i915_kick_out_vgacon to vgaarb drm/fb-helper: call vga_remove_vgacon automatically. drm/qxl: remove conflicting framebuffers earlier include/drm/drm_fb_helper.h | 14 +--- include/linux/vgaarb.h | 2 ++ drivers/gpu/drm/i915/i915_drv.c | 3

[PATCH v5 1/3] drm: move i915_kick_out_vgacon to vgaarb

2019-02-22 Thread Gerd Hoffmann
Also rename it to vga_remove_vgacon and add kerneldoc text. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- include/linux/vgaarb.h | 2 ++ drivers/gpu/drm/i915/i915_drv.c | 35 +- drivers/gpu/vga/vgaarb.c| 48

[PATCH v5 3/3] drm/qxl: remove conflicting framebuffers earlier

2019-02-22 Thread Gerd Hoffmann
Add error checking while being at it. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/qxl/qxl_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index bb81e310eb6d..578d867a81d5

[PATCH v5 2/3] drm/fb-helper: call vga_remove_vgacon automatically.

2019-02-22 Thread Gerd Hoffmann
Add vga_remove_vgacon() call to drm_fb_helper_remove_conflicting_pci_framebuffers(). Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- include/drm/drm_fb_helper.h | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/drm/drm_fb_helper.h b/include/

[GIT PULL] drm/imx: pending update handling, plane zpos property

2019-02-22 Thread Philipp Zabel
please consider merging these imx-drm updates for v5.1. Same content as the imx-drm-next-2019-02-13 pull request, but rebased onto v5.0-rc7, with a Tested-by: on the zpos patch, and two commit typo fixes in commit messages. regards Philipp The following changes since commit a3b22b9f11d9fbc48b0291

Re: [PATCH] drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs

2019-02-22 Thread Laurent Pinchart
Hi Jonas, Thank you for the patch. On Wed, Feb 20, 2019 at 07:52:31AM +, Jonas Karlman wrote: > The Rockchip RK3288 SoC (v2.00a) and RK3328/RK3399 SoCs (v2.11a) have > also been identified as needing this workaround with a single iteration. > > Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Han

[PATCH] tinydrm/mipi-dbi: Use dma-safe buffers for all SPI transfers

2019-02-22 Thread Noralf Trønnes
Buffers passed to spi_sync() must be dma-safe even for tiny buffers since some SPI controllers use DMA for all transfers. Example splat with CONFIG_DMA_API_DEBUG enabled: [ 23.750467] DMA-API: dw_dmac_pci :00:15.0: device driver maps memory from stack [probable addr=1e49185d] [ 2

[Bug 107337] [CI][DRMTIP] igt@kms_3d - fail - Failed assertion: debugfs_fd != -1 / Last errno: 2, No such file or directory

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107337 Lakshmi changed: What|Removed |Added Status|RESOLVED|CLOSED -- You are receiving this mail becaus

[Bug 107337] [CI][DRMTIP] igt@kms_3d - fail - Failed assertion: debugfs_fd != -1 / Last errno: 2, No such file or directory

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107337 Lakshmi changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[PATCH v2 0/4] drm/panel: Support for OSD101T2045-53TS and OSD101T2587-53TS

2019-02-22 Thread Peter Ujfalusi
Hi, Changes since v1 (only panel-osd-osd101t2587-53ts changed): - Removed unused members from struct osd101t2587_panel - Use backlight_enable/backlight_disable - Use devm_of_find_backlight() - osd101t2587_of_match table standardized - osd101t2587_panel_unprepare() added to shutdown and remove cal

[PATCH v2 1/4] dt-bindings: display: Add bindings for OSD101T2045-53TS

2019-02-22 Thread Peter Ujfalusi
This adds the device-tree bindings for the OSD101T2045-53TS 10.1" 1920x1200 panel from One Stop Displays. Signed-off-by: Peter Ujfalusi --- .../bindings/display/panel/osd,osd101t2045-53ts.txt | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/devicetree/bindi

[PATCH v2 2/4] drm/panel: simple: Add support for OSD101T2045-53TS

2019-02-22 Thread Peter Ujfalusi
Add support for the OSD101T2045-53TS 10.1" 1920x1200 panel from One Stop Displays to the panel-simple driver Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/panel/panel-simple.c | 34 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple

[PATCH v2 3/4] dt-bindings: display: Add bindings for OSD101T2587-53TS panel

2019-02-22 Thread Peter Ujfalusi
This adds the device-tree bindings for the OSD101T2587-53TS 10.1" 1920x1200 panel from One Stop Displays. Note: the panel is similar to OSD101T2045-53TS, but it needs additional MIPI_DSI_TURN_ON_PERIPHERAL message from the host. Signed-off-by: Peter Ujfalusi --- .../display/panel/osd,osd101t258

[PATCH v2 4/4] drm/panel: Add OSD101T2587-53TS driver

2019-02-22 Thread Peter Ujfalusi
The panel is similar to OSD101T2045-53TS (which is handled by panel-simple) with one big difference: osd101t2587-53ts needs MIPI_DSI_TURN_ON_PERIPHERAL message to be sent from the host to be operational and thus can not be handled by panel-simple. Signed-off-by: Peter Ujfalusi --- drivers/gpu/dr

Re: [PATCH 1/2] drm/i2c: tda998x: adjust CTS_N audio pre-divider calculation

2019-02-22 Thread Russell King - ARM Linux admin
On Thu, Feb 21, 2019 at 01:18:13PM -0500, Sven Van Asbroeck wrote: > My cpu dai driving the tda998x in master mode outputs > SNDRV_PCM_FORMAT_S24_LE, i2s left justified, two channels: > > [SNDRV_PCM_FORMAT_S24_LE] = { > .width = 24, .phys = 32, .le = 1, .signd = 1, >

Re: [PATCH v5 12/19] drm: writeback: Cleanup job ownership handling when queuing job

2019-02-22 Thread Brian Starkey
On Thu, Feb 21, 2019 at 11:56:09PM +0200, Laurent Pinchart wrote: > Hi Brian, > > On Thu, Feb 21, 2019 at 04:02:37PM +, Brian Starkey wrote: > > On Thu, Feb 21, 2019 at 12:42:25PM +0200, Laurent Pinchart wrote: > > > On Thu, Feb 21, 2019 at 12:32:05PM +0200, Laurent Pinchart wrote: > > >> The

Re: [PATCH 1/1] [RFC] drm/ttm: Don't init dma32_zone on 64-bit systems

2019-02-22 Thread Thomas Hellstrom
On Fri, 2019-02-22 at 07:10 +, Koenig, Christian wrote: > Am 21.02.19 um 22:02 schrieb Thomas Hellstrom: > > Hi, > > > > On Thu, 2019-02-21 at 20:24 +, Kuehling, Felix wrote: > > > On 2019-02-21 12:34 p.m., Thomas Hellstrom wrote: > > > > On Thu, 2019-02-21 at 16:57 +, Kuehling, Felix

[RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Peter Ujfalusi
Hi, the original version was sent 14.04.2018: https://patchwork.kernel.org/patch/10344403/ Changes since then: - rebased on currentl drm/next The reset value of the register is 0, the soft reset does not reset this register and if other kernel changed this the audio is going to be distorted. It

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Peter Ujfalusi
On 22/02/2019 15.47, Peter Ujfalusi wrote: > Hi, > > the original version was sent 14.04.2018: 17.04.2018 > https://patchwork.kernel.org/patch/10344403/ > > Changes since then: > - rebased on currentl drm/next > > The reset value of the register is 0, the soft reset does not reset this > reg

[Bug 107337] [CI][DRMTIP] igt@kms_3d - fail - Failed assertion: debugfs_fd != -1 / Last errno: 2, No such file or directory

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107337 --- Comment #5 from CI Bug Log --- The CI Bug Log issue associated to this bug has been archived. New failures matching the above filters will not be associated to this bug anymore. -- You are receiving this mail because: You are the assignee

Re: [PATCH v5 14/19] drm: writeback: Add job prepare and cleanup operations

2019-02-22 Thread Brian Starkey
On Fri, Feb 22, 2019 at 12:12:00AM +0200, Laurent Pinchart wrote: > Hi Brian, > > On Thu, Feb 21, 2019 at 06:12:03PM +, Brian Starkey wrote: > > On Thu, Feb 21, 2019 at 12:32:07PM +0200, Laurent Pinchart wrote: > > > As writeback jobs contain a framebuffer, drivers may need to prepare and > >

Re: [PATCH v5 00/19] R-Car DU display writeback support

2019-02-22 Thread Brian Starkey
Hi, On Thu, Feb 21, 2019 at 12:31:53PM +0200, Laurent Pinchart wrote: > Hello everybody, > > This patch series implements display writeback support for the R-Car > Gen3 platforms in the VSP1 and DU drivers. > > Patches 01/19 to 11/19 prepare the VSP1 driver for writeback support > with all the n

[Bug 109370] [Runelite GPU plugin] Enabling GPU plugin produces incorrect rendering

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109370 MIka R changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH v5 07/19] media: vsp1: dl: Support one-shot entries in the display list

2019-02-22 Thread Brian Starkey
Hi Laurent, On Thu, Feb 21, 2019 at 12:32:00PM +0200, Laurent Pinchart wrote: > One-shot entries are used as an alternative to committing a complete new > display list when a couple of registers need to be written for one frame > and then reset to another value for all subsequent frames. This will

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Russell King - ARM Linux admin
On Fri, Feb 22, 2019 at 03:47:14PM +0200, Peter Ujfalusi wrote: > Hi, > > the original version was sent 14.04.2018: > https://patchwork.kernel.org/patch/10344403/ > > Changes since then: > - rebased on currentl drm/next > > The reset value of the register is 0, the soft reset does not reset this

Re: [PATCH v5 07/19] media: vsp1: dl: Support one-shot entries in the display list

2019-02-22 Thread Laurent Pinchart
Hi Brian, On Fri, Feb 22, 2019 at 02:30:03PM +, Brian Starkey wrote: > On Thu, Feb 21, 2019 at 12:32:00PM +0200, Laurent Pinchart wrote: > > One-shot entries are used as an alternative to committing a complete new > > display list when a couple of registers need to be written for one frame > >

Re: [PATCH v5 00/19] R-Car DU display writeback support

2019-02-22 Thread Laurent Pinchart
Hi Brian, On Fri, Feb 22, 2019 at 02:04:10PM +, Brian Starkey wrote: > On Thu, Feb 21, 2019 at 12:31:53PM +0200, Laurent Pinchart wrote: > > Hello everybody, > > > > This patch series implements display writeback support for the R-Car > > Gen3 platforms in the VSP1 and DU drivers. > > > > Pa

Re: [PATCH v5 14/19] drm: writeback: Add job prepare and cleanup operations

2019-02-22 Thread Laurent Pinchart
Hi Brian, On Fri, Feb 22, 2019 at 01:50:01PM +, Brian Starkey wrote: > On Fri, Feb 22, 2019 at 12:12:00AM +0200, Laurent Pinchart wrote: > > On Thu, Feb 21, 2019 at 06:12:03PM +, Brian Starkey wrote: > >> On Thu, Feb 21, 2019 at 12:32:07PM +0200, Laurent Pinchart wrote: > >>> As writeback

[Bug 107296] WARNING: CPU: 0 PID: 370 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1355 dcn_bw_update_from_pplib+0x16b/0x280 [amdgpu]

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107296 --- Comment #9 from Öyvind Saether --- Created attachment 143440 --> https://bugs.freedesktop.org/attachment.cgi?id=143440&action=edit These errors appear on 2400G on kernel 4.20.11 -- You are receiving this mail because: You are the assigne

Re: [PATCH v5 07/19] media: vsp1: dl: Support one-shot entries in the display list

2019-02-22 Thread Brian Starkey
On Fri, Feb 22, 2019 at 04:46:29PM +0200, Laurent Pinchart wrote: > Hi Brian, > > On Fri, Feb 22, 2019 at 02:30:03PM +, Brian Starkey wrote: > > On Thu, Feb 21, 2019 at 12:32:00PM +0200, Laurent Pinchart wrote: > > > One-shot entries are used as an alternative to committing a complete new > >

Re: [PATCH v5 14/19] drm: writeback: Add job prepare and cleanup operations

2019-02-22 Thread Brian Starkey
On Fri, Feb 22, 2019 at 04:49:53PM +0200, Laurent Pinchart wrote: > > That would be the connector helper functions, not the connector > functions, right ? Yes, sorry. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Peter Ujfalusi
Hi Russell, On 22/02/2019 16.35, Russell King - ARM Linux admin wrote: > On Fri, Feb 22, 2019 at 03:47:14PM +0200, Peter Ujfalusi wrote: >> Hi, >> >> the original version was sent 14.04.2018: >> https://patchwork.kernel.org/patch/10344403/ >> >> Changes since then: >> - rebased on currentl drm/nex

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Russell King - ARM Linux admin
On Fri, Feb 22, 2019 at 05:20:15PM +0200, Peter Ujfalusi wrote: > Hi Russell, > > On 22/02/2019 16.35, Russell King - ARM Linux admin wrote: > > On Fri, Feb 22, 2019 at 03:47:14PM +0200, Peter Ujfalusi wrote: > >> Hi, > >> > >> the original version was sent 14.04.2018: > >> https://patchwork.kerne

[Bug 109727] RX 580 - Login fails, unable to go further than GDM, black screen

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109727 Jeremy Newton changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #1 from Jeremy New

[Bug 202511] amdgpu fails to load saying "Could not allocate 8192 bytes percpu data"

2019-02-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202511 --- Comment #22 from Barret Rhoden (b...@google.com) --- As far as the bisection goes, from the original bisect report, both of the commits that were merged were good. i.e. 3a3869f1 merged two good commits: 3036bc45364f and 488ad6d3678b. Only w

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Russell King - ARM Linux admin
On Fri, Feb 22, 2019 at 05:20:15PM +0200, Peter Ujfalusi wrote: > > and I think we should implement at least setting the I2S > > register format from the hdmi_codec_daifmt data. > > Yes, that needs to be done for sure, but without data sheet with > register descriptions I would not attempt to do t

[Bug 109727] RX 580 - Login fails, unable to go further than GDM, black screen

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109727 --- Comment #2 from Jeremy Newton --- If I understand the root cause correct, the workaround solution should be disabling HWE on ubuntu 18.04 until 19.10 is released. By default, I believe 18.04.2 has this enabled on a fresh install, but a syste

[Bug 109440] Radeon RX 580 fails to initialize

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109440 --- Comment #1 from Jeremy Newton --- *** Bug 109727 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing lis

[Bug 109727] RX 580 - Login fails, unable to go further than GDM, black screen

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109727 Jeremy Newton changed: What|Removed |Added Resolution|--- |DUPLICATE Status|ASSIGNED

[Bug 109440] Radeon RX 580 fails to initialize

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109440 Jeremy Newton changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from Jeremy New

[Bug 202511] amdgpu fails to load saying "Could not allocate 8192 bytes percpu data"

2019-02-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202511 --- Comment #23 from Michael A. Leonetti (mikealeone...@gmail.com) --- (In reply to Bjorn Helgaas from comment #21) > Thanks! Unless somebody has a better idea, I would try building 4.17.19 > with the print options. > > Config differences that m

Re: [PATCH] drm: Fix writeback_job leak when state is check only or check failed

2019-02-22 Thread Brian Starkey
Hi James, On Fri, Feb 22, 2019 at 07:39:55AM +, james qian wang (Arm Technology China) wrote: > On Thu, Feb 21, 2019 at 02:56:56PM +0100, Maarten Lankhorst wrote: > > Hey > > > > Op 21-02-2019 om 12:14 schreef james qian wang (Arm Technology China): > > > The writeback job will not be added

Re: [PATCH 1/2] drm/i2c: tda998x: adjust CTS_N audio pre-divider calculation

2019-02-22 Thread Russell King - ARM Linux admin
(Adding Mark, ASoC maintainer.) On Fri, Feb 22, 2019 at 10:47:35AM -0500, Sven Van Asbroeck wrote: > On Fri, Feb 22, 2019 at 8:21 AM Russell King - ARM Linux admin > wrote: > > > > On Thu, Feb 21, 2019 at 01:18:13PM -0500, Sven Van Asbroeck wrote: > > > > > [SNDRV_PCM_FORMAT_S24_LE] = { > >

Re: [RESEND] drm/i2c: tda998x: Reset the I2S_FORMAT (Page0, Reg 0xfc) to it's default

2019-02-22 Thread Russell King - ARM Linux admin
On Fri, Feb 22, 2019 at 03:27:43PM +, Russell King - ARM Linux admin wrote: > On Fri, Feb 22, 2019 at 05:20:15PM +0200, Peter Ujfalusi wrote: > > Hi Russell, > > > > On 22/02/2019 16.35, Russell King - ARM Linux admin wrote: > > > It would also be good to know what Fs value(s) BBB uses, and wh

Re: [EARLY RFC][PATCH 0/4] dmabuf pools infrastructure (destaging ION)

2019-02-22 Thread Andrew F. Davis
On 2/21/19 1:40 AM, John Stultz wrote: > Here is a very early peek at my dmabuf pools patchset, which > tries to destage a fair chunk of ION functionality. > > This build and boots, but I've not gotten to testing the actual > pool devices yet (need to write some kselftests)! I just wanted > some e

[Bug 108854] [polaris11] - GPU Hang - ring gfx timeout

2019-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108854 --- Comment #15 from Tom St Denis --- If you can't reproduce on a newer version of mesa then it's "been fixed" :-) Blocking shutdown is simply due to the device deinit being blocked because the device is not in an operational state. Not much t

  1   2   >