RE: [PATCH V3 4/7] mdev: introduce device specific ops

2019-10-16 Thread Parav Pandit
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Tuesday, October 15, 2019 12:27 PM > To: Jason Wang > Cc: Cornelia Huck ; k...@vger.kernel.org; linux- > s...@vger.kernel.org; linux-ker...@vger.kernel.org; dri- > de...@lists.freedesktop.org; intel-...@lists.freedesktop.org;

[PATCH hmm 04/15] mm/hmm: define the pre-processor related parts of hmm.h even if disabled

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Only the function calls are stubbed out with static inlines that always fail. This is the standard way to write a header for an optional component and makes it easier for drivers that only optionally need HMM_MIRROR. Signed-off-by: Jason Gunthorpe --- include/linux/hmm.h

[PATCH hmm 05/15] RDMA/odp: Use mmu_range_notifier_insert()

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Replace the internal interval tree based mmu notifier with the new common mmu_range_notifier_insert() API. This removes a lot of code and fixes a deadlock that can be triggered in ODP: zap_page_range() mmu_notifier_invalidate_range_start() [..] ib_umem_notifier_in

[PATCH hmm 07/15] drm/radeon: use mmu_range_notifier_insert

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe The new API is an exact match for the needs of radeon. For some reason radeon tries to remove overlapping ranges from the interval tree, but interval trees (and mmu_range_notifier_insert) support overlapping ranges directly. Simply delete all this code. Since this driver i

Re: [PATCH hmm 08/15] xen/gntdev: Use select for DMA_SHARED_BUFFER

2019-10-16 Thread Jürgen Groß
On 15.10.19 20:12, Jason Gunthorpe wrote: From: Jason Gunthorpe DMA_SHARED_BUFFER can not be enabled by the user (it represents a library set in the kernel). The kconfig convention is to use select for such symbols so they are turned on implicitly when the user enables a kconfig that needs them

[PATCH hmm 01/15] mm/mmu_notifier: define the header pre-processor parts even if disabled

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Now that we have KERNEL_HEADER_TEST all headers are generally compile tested, so relying on makefile tricks to avoid compiling code that depends on CONFIG_MMU_NOTIFIER is more annoying. Instead follow the usual pattern and provide most of the header with only the functions

[PATCH hmm 12/15] drm/amdgpu: Call find_vma under mmap_sem

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe find_vma() must be called under the mmap_sem, reorganize this code to do the vma check after entering the lock. Further, fix the unlocked use of struct task_struct's mm, instead use the mm from hmm_mirror which has an active mm_grab. Also the mm_grab must be converted to a

[PATCH hmm 06/15] RDMA/hfi1: Use mmu_range_notifier_inset for user_exp_rcv

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe This converts one of the two users of mmu_notifiers to use the new API. The conversion is fairly straightforward, however the existing use of notifiers here seems to be racey. Cc: Mike Marciniszyn Cc: Dennis Dalessandro Signed-off-by: Jason Gunthorpe --- drivers/infinib

[PATCH hmm 03/15] mm/hmm: allow hmm_range to be used with a mmu_range_notifier or hmm_mirror

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe hmm_mirror's handling of ranges does not use a sequence count which results in this bug: CPU0 CPU1 hmm_range_wait_until_valid(range) valid == true

[PATCH hmm 11/15] nouveau: use mmu_range_notifier instead of hmm_mirror

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Remove the hmm_mirror object and use the mmu_range_notifier API instead for the range, and use the normal mmu_notifier API for the general invalidation callback. While here re-organize the pagefault path so the locking pattern is clear. nouveau is the only driver that uses

[PATCH 29/34] backlight/jornada720: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the Kconfig dependency to CONFIG_PREEMPTION. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Ha

[PATCH hmm 14/15] drm/amdgpu: Use mmu_range_notifier instead of hmm_mirror

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Convert the collision-retry lock around hmm_range_fault to use the one now provided by the mmu_range notifier. Although this driver does not seem to use the collision retry lock that hmm provides correctly, it can still be converted over to use the mmu_range_notifier api in

[PATCH hmm 08/15] xen/gntdev: Use select for DMA_SHARED_BUFFER

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe DMA_SHARED_BUFFER can not be enabled by the user (it represents a library set in the kernel). The kconfig convention is to use select for such symbols so they are turned on implicitly when the user enables a kconfig that needs them. Otherwise the XEN_GNTDEV_DMABUF kconfig i

[PATCH hmm 02/15] mm/mmu_notifier: add an interval tree notifier

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Of the 13 users of mmu_notifiers, 8 of them use only invalidate_range_start/end() and immediately intersect the mmu_notifier_range with some kind of internal list of VAs. 4 use an interval tree (i915_gem, radeon_mn, umem_odp, hfi1). 4 use a linked list of some kind (scif_dm

[PATCH hmm 13/15] drm/amdgpu: Use mmu_range_insert instead of hmm_mirror

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe Remove the interval tree in the driver and rely on the tree maintained by the mmu_notifier for delivering mmu_notifier invalidation callbacks. For some reason amdgpu has a very complicated arrangement where it tries to prevent duplicate entries in the interval_tree, this is

[PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe 8 of the mmu_notifier using drivers (i915_gem, radeon_mn, umem_odp, hfi1, scif_dma, vhost, gntdev, hmm) drivers are using a common pattern where they only use invalidate_range_start/end and immediately check the invalidating range against some driver data structure to tell i

[PATCH hmm 09/15] xen/gntdev: use mmu_range_notifier_insert

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe gntdev simply wants to monitor a specific VMA for any notifier events, this can be done straightforwardly using mmu_range_notifier_insert() over the VMA's VA range. The notifier should be attached until the original VMA is destroyed. It is unclear if any of this is even sa

[PATCH 28/34] drm/i810: Refer to `PREEMPTION' in comment

2019-10-16 Thread Sebastian Andrzej Siewior
The dependency has been changed from `PREEMPT' to `PREEMPTION'. Reflect this change in the comment. Use `PREEMPTION' in the comment. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Sebastian Andrzej S

[PATCH hmm 15/15] mm/hmm: remove hmm_mirror and related

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe The only two users of this are now converted to use mmu_range_notifier, delete all the code and update hmm.rst. Signed-off-by: Jason Gunthorpe --- Documentation/vm/hmm.rst | 105 --- include/linux/hmm.h | 183 + mm/Kconfig

[PATCH hmm 10/15] nouveau: use mmu_notifier directly for invalidate_range_start

2019-10-16 Thread Jason Gunthorpe
From: Jason Gunthorpe There is no reason to get the invalidate_range_start() callback via an indirection through hmm_mirror, just register a normal notifier directly. Cc: Ben Skeggs Cc: dri-devel@lists.freedesktop.org Cc: nouv...@lists.freedesktop.org Cc: Ralph Campbell Signed-off-by: Jason Gu

Re: [PATCH hmm 08/15] xen/gntdev: Use select for DMA_SHARED_BUFFER

2019-10-16 Thread Oleksandr Andrushchenko
On 10/16/19 8:11 AM, Jürgen Groß wrote: > On 15.10.19 20:12, Jason Gunthorpe wrote: >> From: Jason Gunthorpe >> >> DMA_SHARED_BUFFER can not be enabled by the user (it represents a >> library >> set in the kernel). The kconfig convention is to use select for such >> symbols so they are turned on

Re: [PATCH v2] backlight: pwm_bl: Don't assign levels table repeatedly

2019-10-16 Thread Lee Jones
On Wed, 02 Oct 2019, Matthias Kaehlcke wrote: > pwm_backlight_probe() re-assigns pb->levels for every brightness > level. This is not needed and was likely not intended, since > neither side of the assignment changes during the loop. Assign > the field only once. > > Signed-off-by: Matthias Kaehl

Re: [PATCH v10 5/6] arm64: dts: allwinner: a64: Add MIPI DSI pipeline

2019-10-16 Thread Maxime Ripard
On Mon, Oct 14, 2019 at 05:37:50PM +0530, Jagan Teki wrote: > On Mon, Oct 7, 2019 at 4:27 PM Maxime Ripard wrote: > > > > On Sat, Oct 05, 2019 at 07:49:12PM +0530, Jagan Teki wrote: > > > Add MIPI DSI pipeline for Allwinner A64. > > > > > > - dsi node, with A64 compatible since it doesn't support

Re: [PATCH v2 05/11] drm/tinydrm: Remove tinydrm_spi_max_transfer_size()

2019-10-16 Thread Andy Shevchenko
On Tue, Oct 15, 2019 at 06:05:16PM +0200, Daniel Vetter wrote: > On Tue, Oct 15, 2019 at 5:59 PM Andy Shevchenko > wrote: > > On Tue, Oct 15, 2019 at 05:41:53PM +0200, Noralf Trønnes wrote: > > > Den 15.10.2019 16.32, skrev Andy Shevchenko: > > > > On Fri, Jul 19, 2019 at 05:59:10PM +0200, Noralf

Re: drm/komeda: Set output color depth for output

2019-10-16 Thread james qian wang (Arm Technology China)
On Sat, Oct 12, 2019 at 06:50:46AM +, Lowry Li (Arm Technology China) wrote: > Set color_depth according to connector->bpc. > > Changes since v1: > - Fixed min_bpc is effectively set but not used in > komeda_crtc_get_color_config(). > > Changes since v2: > - Align the code. > > Signed-off-

Re: drm/komeda: Dump SC_ENH_* registers from scaler block

2019-10-16 Thread james qian wang (Arm Technology China)
On Tue, Oct 15, 2019 at 11:00:01AM +, Mihail Atanassov wrote: > Signed-off-by: Mihail Atanassov > --- > .../gpu/drm/arm/display/komeda/d71/d71_component.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/d71/d71_compon

Re: drm/komeda: Adds output-color format support

2019-10-16 Thread james qian wang (Arm Technology China)
On Tue, Oct 15, 2019 at 09:10:36AM +, Lowry Li (Arm Technology China) wrote: > Sets output color format according to the connector formats and > display supported formats. Default value is RGB444 and only force > YUV format which must be YUV. > > Signed-off-by: Lowry Li (Arm Technology China)

Re: drm/komeda: Don't flush inactive pipes

2019-10-16 Thread james qian wang (Arm Technology China)
On Thu, Oct 10, 2019 at 10:30:07AM +, Mihail Atanassov wrote: > HW doesn't allow flushing inactive pipes and raises an MERR interrupt > if you try to do so. Stop triggering the MERR interrupt in the > middle of a commit by calling drm_atomic_helper_commit_planes > with the ACTIVE_ONLY flag. >

Re: [v2] drm/komeda: Fix typos in komeda_splitter_validate

2019-10-16 Thread james qian wang (Arm Technology China)
On Mon, Sep 30, 2019 at 12:23:07PM +, Mihail Atanassov wrote: > Fix both the string and the struct member being printed. > > Changes since v1: > - Now with a bonus grammar fix, too. > > Fixes: 264b9436d23b ("drm/komeda: Enable writeback split support") > Signed-off-by: Mihail Atanassov > --

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-10-16 Thread Tomasz Figa
On Wed, Oct 16, 2019 at 3:12 PM Gerd Hoffmann wrote: > > Hi, > > > up later when given a buffer index. But we would still need to make > > the DMA-buf itself importable. For virtio-gpu I guess that would mean > > returning an sg_table backed by the shadow buffer pages. > > The virtio-gpu driver

[Bug 112017] [CI][SHARDS]igt@kms_frontbuffer_tracking@* - fail - Failed assertion: drm.bufmgr

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112017 --- Comment #3 from Chris Wilson --- *** Bug 112019 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 list

[Bug 112017] [CI][SHARDS]igt@kms_frontbuffer_tracking@* - fail - Failed assertion: drm.bufmgr

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112017 Chris Wilson changed: What|Removed |Added Component|DRM/Intel |IGT QA Contact|intel-gfx-bugs@li

Re: [PATCH v10 5/6] arm64: dts: allwinner: a64: Add MIPI DSI pipeline

2019-10-16 Thread Jagan Teki
On Wed, Oct 16, 2019 at 1:33 PM Maxime Ripard wrote: > > On Mon, Oct 14, 2019 at 05:37:50PM +0530, Jagan Teki wrote: > > On Mon, Oct 7, 2019 at 4:27 PM Maxime Ripard wrote: > > > > > > On Sat, Oct 05, 2019 at 07:49:12PM +0530, Jagan Teki wrote: > > > > Add MIPI DSI pipeline for Allwinner A64. > >

Re: [PATCH V3 4/7] mdev: introduce device specific ops

2019-10-16 Thread Cornelia Huck
On Wed, 16 Oct 2019 05:50:08 + Parav Pandit wrote: > Hi Alex, > > > -Original Message- > > From: Alex Williamson > > Sent: Tuesday, October 15, 2019 12:27 PM > > To: Jason Wang > > Cc: Cornelia Huck ; k...@vger.kernel.org; linux- > > s...@vger.kernel.org; linux-ker...@vger.kernel.o

[PATCH v6 0/8] drm: rcar-du: Add Color Management Module (CMM)

2019-10-16 Thread Jacopo Mondi
Minimal increment to the CMM series, this time should really be the last one. Just missing Rob's ack on [1/8] and Laurent's one on [5/8]. Changelog is minimal: CMM - Remove the cmm_config.enable flag. The cmm_config.table field validity is used to enable/disable the LUT operations - Expand comm

[PATCH v6 8/8] drm: rcar-du: kms: Expand comment in vsps parsing routine

2019-10-16 Thread Jacopo Mondi
Expand comment in the 'vsps' parsing routine to specify the LIF channel index defaults to 0 in case the second cell of the property is not specified to remain compatible with older DT bindings. Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- drivers/gp

[PATCH v6 4/8] drm: rcar-du: kms: Initialize CMM instances

2019-10-16 Thread Jacopo Mondi
Implement device tree parsing to collect the available CMM instances described by the 'renesas,cmms' property. Associate CMMs with CRTCs and store a mask of active CMMs in the DU group for later enablement. Enforce the probe and suspend/resume ordering of DU and CMM by creating a stateless device

[PATCH v6 2/8] dt-bindings: display, renesas,du: Document cmms property

2019-10-16 Thread Jacopo Mondi
Document the newly added 'cmms' property which accepts a list of phandle and channel index pairs that point to the CMM units available for each Display Unit output video channel. Reviewed-by: Rob Herring Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi ---

[PATCH v6 7/8] arm64: dts: renesas: Add CMM units to Gen3 SoCs

2019-10-16 Thread Jacopo Mondi
Add CMM units to Renesas R-Car Gen3 SoC that support it, and reference them from the Display Unit they are connected to. Sort the 'vsps', 'renesas,cmm' and 'status' properties in the DU unit consistently in all the involved DTS. Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-o

[PATCH v6 3/8] drm: rcar-du: Add support for CMM

2019-10-16 Thread Jacopo Mondi
Add a driver for the R-Car Display Unit Color Correction Module. In most of Gen3 SoCs, each DU output channel is provided with a CMM unit to perform image enhancement and color correction. Add support for CMM through a driver that supports configuration of the 1-dimensional LUT table. More advanc

[PATCH v6 6/8] drm: rcar-du: crtc: Register GAMMA_LUT properties

2019-10-16 Thread Jacopo Mondi
Enable the GAMMA_LUT KMS property using the framework helpers to register the property and set the associated gamma table maximum size. Reviewed-by: Kieran Bingham Reviewed-by: Ulrich Hecht Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c |

[PATCH v6 1/8] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-10-16 Thread Jacopo Mondi
Add device tree bindings documentation for the Renesas R-Car Display Unit Color Management Module. CMM is the image enhancement module available on each R-Car DU video channel on R-Car Gen2 and Gen3 SoCs (V3H and V3M excluded). Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-of

[PATCH v6 5/8] drm: rcar-du: crtc: Control CMM operations

2019-10-16 Thread Jacopo Mondi
Implement CMM handling in the crtc begin and enable atomic callbacks, and enable CMM unit through the Display Extensional Functions register at group setup time. Reviewed-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 55 + d

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-16 Thread Christian König
Am 15.10.19 um 20:12 schrieb Jason Gunthorpe: From: Jason Gunthorpe 8 of the mmu_notifier using drivers (i915_gem, radeon_mn, umem_odp, hfi1, scif_dma, vhost, gntdev, hmm) drivers are using a common pattern where they only use invalidate_range_start/end and immediately check the invalidating ra

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-10-16 Thread Daniel Vetter
On Wed, Oct 16, 2019 at 12:19:02PM +0900, Tomasz Figa wrote: > On Wed, Oct 9, 2019 at 12:04 AM Daniel Vetter wrote: > > > > On Tue, Oct 08, 2019 at 07:49:39PM +0900, Tomasz Figa wrote: > > > On Tue, Oct 8, 2019 at 7:03 PM Daniel Vetter wrote: > > > > > > > > On Sat, Oct 05, 2019 at 02:41:54PM +09

Re: [PATCH 2/3] drm/ttm: always keep BOs on the LRU

2019-10-16 Thread Christian König
Am 25.09.19 um 14:10 schrieb Christian König: Am 25.09.19 um 14:06 schrieb Thomas Hellström (VMware): On 9/25/19 12:55 PM, Christian König wrote: This allows blocking for BOs to become available in the memory management. Amdgpu is doing this for quite a while now during CS. Now apply the new b

[PATCH] drm/i915/hdmi: enable resolution 3840x2160 for type 1 HDMI

2019-10-16 Thread Jian-Hong Pan
Type 1 HDMI may be version 1.3 or upper, which supports higher max TMDS clock for higher resolutions, like 3840x2160. This patch sets max TMDS clock according to the chip, if the adapter is type 1 HDMI. Buglink: https://bugs.freedesktop.org/show_bug.cgi?id=112018 Fixes: b1ba124d8e95 ("drm/i915: Re

[PATCH V7 1/6] backlight: qcom-wled: Add new properties for PMI8998

2019-10-16 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11 del

[PATCH V7 2/6] backlight: qcom-wled: Rename PM8941* to WLED3.

2019-10-16 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names. Signed-off-by: Kiran Gunda Reviewed-by: D

[PATCH V7 0/6] backlight: qcom-wled: Support for QCOM wled driver

2019-10-16 Thread Kiran Gunda
This patch series renames the pm8941-wled.c driver to qcom-wled.c to add the support for multiple PMICs supported by qualcomm. This patch series supports both PM8941 and PMI8998 WLED. The PMI8998 WLED has the support to handle the OVP (over voltage protection) and the SC (short circuit protection)

[PATCH V7 5/6] backlight: qcom-wled: add support for short circuit handling.

2019-10-16 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom-wled.c

[PATCH V7 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-16 Thread Kiran Gunda
The auto string detection algorithm checks if the current WLED sink configuration is valid. It tries enabling every sink and checks if the OVP fault is observed. Based on this information it detects and enables the valid sink configuration. Auto calibration will be triggered when the OVP fault inte

[PATCH V7 3/6] backlight: qcom-wled: Restructure the driver for WLED3

2019-10-16 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight/

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-10-16 Thread Tomasz Figa
On Wed, Oct 16, 2019 at 6:18 PM Daniel Vetter wrote: > > On Wed, Oct 16, 2019 at 12:19:02PM +0900, Tomasz Figa wrote: > > On Wed, Oct 9, 2019 at 12:04 AM Daniel Vetter wrote: > > > > > > On Tue, Oct 08, 2019 at 07:49:39PM +0900, Tomasz Figa wrote: > > > > On Tue, Oct 8, 2019 at 7:03 PM Daniel Vet

Re: [PATCH] drm/i915/hdmi: enable resolution 3840x2160 for type 1 HDMI

2019-10-16 Thread Ville Syrjälä
On Wed, Oct 16, 2019 at 05:57:58PM +0800, Jian-Hong Pan wrote: > Type 1 HDMI may be version 1.3 or upper, which supports higher max TMDS > clock for higher resolutions, Spec says "Type 1 adaptors can support DVI or HDMI up to a 165MHz TMDS clock rate." And I've definitely seen HDMI dongles that

[PATCH v5 0/4] drm/komeda: Enable CRTC color-mgmt

2019-10-16 Thread james qian wang (Arm Technology China)
This series enable CRTC color-mgmt for komeda driver, for current komeda HW which only supports color conversion and forward gamma for CRTC. This series actually are regrouped from: - drm/komeda: Enable layer/plane color-mgmt: https://patchwork.freedesktop.org/series/60893/ - drm/komeda: Enable

[PATCH v5 1/4] drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-10-16 Thread james qian wang (Arm Technology China)
Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to convert S31.32 sign-magnitude to Qm.n 2's complement that supported by hardware. V4: Address Mihai, Daniel and Ilia's review comments. V5: Includes the sign bit in the value of m (Qm.n). Signed-off-by: james qian wang (Arm Tec

[PATCH v5 2/4] drm/komeda: Add drm_lut_to_fgamma_coeffs()

2019-10-16 Thread james qian wang (Arm Technology China)
This function is used to convert drm color lut to komeda HW required curve coeffs values. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Atanassov --- .../arm/display/komeda/komeda_color_mgmt.c| 52 +++ .../arm/display/komeda/komeda_color_mgmt.h

[PATCH v5 3/4] drm/komeda: Add drm_ctm_to_coeffs()

2019-10-16 Thread james qian wang (Arm Technology China)
This function is for converting drm_color_ctm matrix to komeda hardware required required Q2.12 2's complement CSC matrix. v2: Move the fixpoint conversion function s31_32_to_q2_12() to drm core as a shared helper. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Ata

[PATCH v5 4/4] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-10-16 Thread james qian wang (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds gamma and color-transform support for DOU-IPS. Adds two caps members fgamma_coeffs and ctm_coeffs to komeda_improc_state. If color management changed, set gamma and color-transform accordingly. v5: Rebase with drm-misc-next Signed-off-by: Lowry Li (A

Re: [PATCH V3 1/7] mdev: class id support

2019-10-16 Thread Jason Wang
On 2019/10/16 下午12:57, Parav Pandit wrote: -Original Message- From: Jason Wang Sent: Friday, October 11, 2019 3:16 AM To: k...@vger.kernel.org; linux-s...@vger.kernel.org; linux- ker...@vger.kernel.org; dri-devel@lists.freedesktop.org; intel- g...@lists.freedesktop.org; intel-gvt-...

Re: [PATCH v5 1/4] drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-10-16 Thread Mihail Atanassov
On Wednesday, 16 October 2019 11:34:08 BST james qian wang (Arm Technology China) wrote: > Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to > convert S31.32 sign-magnitude to Qm.n 2's complement that supported by > hardware. > > V4: Address Mihai, Daniel and Ilia's review co

[Bug 112024] rasheed

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112024 Andre Klapper changed: What|Removed |Added Component|IGT |Two Group|

[PATCH v4 06/11] drm/ttm: factor out ttm_bo_mmap_vma_setup

2019-10-16 Thread Gerd Hoffmann
Factor out ttm vma setup to a new function. Reduces code duplication a bit. v2: don't change vm_flags (moved to separate patch). v4: make ttm_bo_mmap_vma_setup static. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/ttm/ttm_bo_vm.c | 46 + 1 file changed, 24 ins

dri-devel@lists.freedesktop.org

2019-10-16 Thread Gerd Hoffmann
Wire up the new drm_gem_ttm_mmap() helper function, use generic drm_gem_mmap for &fops.mmap and delete dead drm_vram_mm_file_operations_mmap(). Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Zimmermann --- include/drm/drm_gem_vram_helper.h | 9 +-- drivers/gpu/drm/drm_gem_vram_helper

[PATCH v4 01/11] drm: add mmap() to drm_gem_object_funcs

2019-10-16 Thread Gerd Hoffmann
drm_gem_object_funcs->vm_ops alone can't handle everything which needs to be done for mmap(), tweaking vm_flags for example. So add a new mmap() callback to drm_gem_object_funcs where this code can go to. Note that the vm_ops field is not used in case the mmap callback is present, it is expected

dri-devel@lists.freedesktop.org

2019-10-16 Thread Gerd Hoffmann
Switch gem shmem helper to the new mmap() workflow, from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap. v2: Fix vm_flags and vm_page_prot handling. Signed-off-by: Gerd Hoffmann Reviewed-by: Steven Price --- include/drm/drm_gem_shmem_helper.h | 6 ++ drivers/gpu/drm/drm_gem_shme

[PATCH v4 07/11] drm/ttm: rename ttm_fbdev_mmap

2019-10-16 Thread Gerd Hoffmann
Rename ttm_fbdev_mmap to ttm_bo_mmap_obj. Move the vm_pgoff sanity check to amdgpu_bo_fbdev_mmap (only ttm_fbdev_mmap user in tree). The ttm_bo_mmap_obj function can now be used to map any buffer object. This allows to implement &drm_gem_object_funcs.mmap in gem ttm helpers. v3: patch added to s

[PATCH v4 05/11] drm/shmem: drop DEFINE_DRM_GEM_SHMEM_FOPS

2019-10-16 Thread Gerd Hoffmann
DEFINE_DRM_GEM_SHMEM_FOPS is identical to DEFINE_DRM_GEM_FOPS now, drop it. Signed-off-by: Gerd Hoffmann Acked-by: Rob Herring --- include/drm/drm_gem_shmem_helper.h | 26 - drivers/gpu/drm/cirrus/cirrus.c | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c |

[PATCH v4 11/11] drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS

2019-10-16 Thread Gerd Hoffmann
Not needed any more because we don't have vram specific fops any more. DEFINE_DRM_GEM_FOPS() can be used instead. Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Zimmermann --- include/drm/drm_gem_vram_helper.h | 18 -- drivers/gpu/drm/ast/ast_drv.c

[PATCH v4 04/11] drm/shmem: drop VM_IO

2019-10-16 Thread Gerd Hoffmann
VM_IO is wrong here, shmem uses normal ram not io memory. Signed-off-by: Gerd Hoffmann Reviewed-by: Steven Price --- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem

[PATCH v4 08/11] drm/ttm: add drm_gem_ttm_mmap()

2019-10-16 Thread Gerd Hoffmann
Add helper function to mmap ttm bo's using &drm_gem_object_funcs.mmap(). Note that with this code path access verification is done by drm_gem_mmap() (which calls drm_vma_node_is_allowed(()). The &ttm_bo_driver.verify_access() callback is is not used. v3: use ttm_bo_mmap_obj instead of ttm_bo_mmap

[PATCH v4 00/11] drm: rework mmap() workflow

2019-10-16 Thread Gerd Hoffmann
Add mmap callback to struct drm_gem_object_funcs, which is supposed to handle the vma setup. It will be used by both normal fops->mmap (via drm_gem_mmap_obj()) and prime mmap (via drm_gem_prime_mmap()). For starters the shmem and vram helpers are switched over to the new workflow, to show things

[PATCH v4 03/11] drm/shmem: drop VM_DONTDUMP

2019-10-16 Thread Gerd Hoffmann
Not obvious why this is needed. According to Deniel Vetter this is most likely a historic artefact dating back to the days where drm drivers exposed hardware registers as mmap'able gem objects, to avoid dumping touching those registers. shmem gem objects surely don't need that ... Signed-off-by:

[PATCH v4 10/11] drm/vram: drop verify_access

2019-10-16 Thread Gerd Hoffmann
Not needed any more. Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_gem_vram_helper.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index ec868bf75333

[PATCH 1/8] gpu: host1x: Overhaul host1x_bo_{pin,unpin}() API

2019-10-16 Thread Thierry Reding
From: Thierry Reding The host1x_bo_pin() and host1x_bo_unpin() APIs are used to pin and unpin buffers during host1x job submission. Pinning currently returns the SG table and the DMA address (an IOVA if an IOMMU is used or a physical address if no IOMMU is used) of the buffer. The DMA address is

[PATCH 3/8] gpu: host1x: Support DMA mapping of buffers

2019-10-16 Thread Thierry Reding
From: Thierry Reding If host1x_bo_pin() returns an SG table, create a DMA mapping for the buffer. For buffers that the host1x client has already mapped itself, host1x_bo_pin() returns NULL and the existing DMA address is used. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/gem.c | 18

[PATCH 4/8] gpu: host1x: Set DMA mask based on IOMMU setup

2019-10-16 Thread Thierry Reding
From: Thierry Reding If the Tegra DRM clients are backed by an IOMMU, push buffers are likely to be allocated beyond the 32-bit boundary if sufficient system memory is available. This is problematic on earlier generations of Tegra where host1x supports a maximum of 32 address bits for the GATHER

[PATCH 5/8] drm/tegra: Remove memory allocation from Falcon library

2019-10-16 Thread Thierry Reding
From: Thierry Reding Having to provide allocator hooks to the Falcon library is somewhat cumbersome and it doesn't give the users of the library a lot of flexibility to deal with allocations. Instead, remove the notion of Falcon "operations" and let drivers deal with the memory allocations themse

[PATCH 2/8] gpu: host1x: Add direction flags to relocations

2019-10-16 Thread Thierry Reding
From: Thierry Reding Add direction flags to host1x relocations performed during job pinning. These flags indicate the kinds of accesses that hardware is allowed to perform on the relocated buffers. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/drm.c | 2 ++ include/linux/host1x.h

[PATCH 6/8] drm/tegra: falcon: Clarify address usage

2019-10-16 Thread Thierry Reding
From: Thierry Reding Rename paddr -> iova and vaddr -> virt to make it clearer how these addresses are used. This is important for a subsequent patch that makes a distinction between the physical address (physical address of the system memory from the CPU's point of view) and the IOVA (physical a

[PATCH 8/8] drm/tegra: Optionally attach clients to the IOMMU

2019-10-16 Thread Thierry Reding
From: Thierry Reding If a client is already attached to an IOMMU domain that is not the shared domain, don't try to attach it again. This allows using the IOMMU-backed DMA API. Since the IOMMU-backed DMA API is now supported and there's no way to detach from it on 64-bit ARM, don't bother to det

[PATCH 7/8] drm/tegra: Support DMA API for display controllers

2019-10-16 Thread Thierry Reding
From: Thierry Reding If a display controller is not attached to an explicit IOMMU domain, which usually means that it's connected to an IOMMU domain controlled by the DMA API, make sure to map the framebuffer to the display controller address space. This allows us to transparently handle setups w

Re: [PATCH v4 06/11] drm/ttm: factor out ttm_bo_mmap_vma_setup

2019-10-16 Thread Koenig, Christian
Am 16.10.19 um 13:51 schrieb Gerd Hoffmann: > Factor out ttm vma setup to a new function. > Reduces code duplication a bit. > > v2: don't change vm_flags (moved to separate patch). > v4: make ttm_bo_mmap_vma_setup static. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Christian König for this one

[Bug 112033] Store the runner and kernel logs as part of the IGT results

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112033 Bug ID: 112033 Summary: Store the runner and kernel logs as part of the IGT results Product: DRI Version: XOrg git Hardware: Other OS: All Stat

[Bug 112033] Store the runner and kernel logs as part of the IGT results

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112033 Martin Peres changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop |petri.latv...@intel.com

[PATCH] drm/scdc: Fix typo in bit definition of SCDC_STATUS_FLAGS

2019-10-16 Thread Patrik Jakobsson
Fix typo where bits got compared (x < y) instead of shifted (x << y). Signed-off-by: Patrik Jakobsson --- include/drm/drm_scdc_helper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/drm/drm_scdc_helper.h b/include/drm/drm_scdc_helper.h index f92eb2094d6b..6a48

[Bug 111599] [CI][RESUME] igt@gem_ctx_isolation@* - skip - Test requirement: !(gen > LAST_KNOWN_GEN), SKIP

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111599 --- Comment #4 from Martin Peres --- (In reply to Chris Wilson from comment #3) > commit d17a484b3c22706b2b004ef1577f367d79235e43 (upstream/master, > origin/master, origin/HEAD) > Author: Chris Wilson > Date: Wed Oct 2 12:22:29 2019 +0100 >

[Bug 111599] [CI][RESUME] igt@gem_ctx_isolation@* - skip - Test requirement: !(gen > LAST_KNOWN_GEN), SKIP

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111599 --- 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

[Bug 111987] Unstable performance (periodic and repeating patterns of fps change) and changing VDDGFX

2019-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111987 --- Comment #12 from Witold Baryluk --- Hi Alex. I do understand that, it is a part of power management. That is not the bug is about. I did use pp_power_mode_profile too, and it doesn't really help. The issue is that I would expect the perfor

Re: [PATCH v5 0/7] backlight: gpio: simplify the driver

2019-10-16 Thread Linus Walleij
On Mon, Oct 14, 2019 at 10:12 AM Lee Jones wrote: > > arch/sh/boards/mach-ecovec24/setup.c | 33 -- > > I guess we're just waiting for the SH Acks now? The one maintainer with this board is probably overloaded. I would say just apply it, it can't hold back the entire series. Yours

Re: [PATCH v5 0/7] backlight: gpio: simplify the driver

2019-10-16 Thread Jacopo Mondi
Hi, sorry for not having replied earlier On Wed, Oct 16, 2019 at 02:56:57PM +0200, Linus Walleij wrote: > On Mon, Oct 14, 2019 at 10:12 AM Lee Jones wrote: > > > > arch/sh/boards/mach-ecovec24/setup.c | 33 -- > > > > I guess we're just waiting for the SH Acks now? > > The one mainta

Re: [PATCH] drm: Funnel drm logs to tracepoints

2019-10-16 Thread Pekka Paalanen
On Wed, 16 Oct 2019 00:35:39 +0200 Daniel Vetter wrote: > Yeah I don't think tuning the spam level will ever work. What we need > is some external input (most likely from the user clicking the "my > external screen doesn't work" button, or maybe the compositor > realizing something that should wo

Re: [PATCH V4 2/3] dt-bindings: Add Logic PD Type 28 display panel

2019-10-16 Thread Rob Herring
On Tue, Oct 15, 2019 at 6:04 PM Adam Ford wrote: > > On Wed, Oct 9, 2019 at 6:31 PM Rob Herring wrote: > > > > On Tue, Oct 01, 2019 at 06:39:22PM -0500, Adam Ford wrote: > > > This patch adds documentation of device tree bindings for the WVGA panel > > > Logic PD Type 28 display. > > > > > > Sign

Re: [PATCH] drm: Funnel drm logs to tracepoints

2019-10-16 Thread Thomas Zimmermann
Hi Am 16.10.19 um 15:05 schrieb Pekka Paalanen: > On Wed, 16 Oct 2019 00:35:39 +0200 > Daniel Vetter wrote: > >> Yeah I don't think tuning the spam level will ever work. What we need >> is some external input (most likely from the user clicking the "my >> external screen doesn't work" button, or

[PATCHv8 2/2] drm: tda998x: set the connector info

2019-10-16 Thread Hans Verkuil
From: Dariusz Marcinkiewicz Fill in the cec_connector_info when calling cec_notifier_conn_register(). Signed-off-by: Dariusz Marcinkiewicz Tested-by: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/gpu/drm/i2c/tda998x_drv.c | 31 ++- 1 file changed, 18 insert

[PATCHv8 0/2] drm: tda998x: use cec_notifier_conn_(un)register

2019-10-16 Thread Hans Verkuil
This splits the previous v7.2 patch (1) into two parts: one that replaces cec_notifier_get/put by cec_notifier_conn_(un)register, and one that sets the connector info. That second patch moves the CEC notifier code to tda998x_bridge_detach, but Laurent is making changes in that area and prefers tha

[PATCHv8 1/2] drm: tda998x: use cec_notifier_conn_(un)register

2019-10-16 Thread Hans Verkuil
From: Dariusz Marcinkiewicz Use the new cec_notifier_conn_(un)register() functions to (un)register the notifier for the HDMI connector. Signed-off-by: Dariusz Marcinkiewicz Signed-off-by: Hans Verkuil --- drivers/gpu/drm/i2c/tda998x_drv.c | 21 - 1 file changed, 16 inserti

Re: [PATCH v6 3/8] drm: rcar-du: Add support for CMM

2019-10-16 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Wed, Oct 16, 2019 at 10:55:43AM +0200, Jacopo Mondi wrote: > Add a driver for the R-Car Display Unit Color Correction Module. > > In most of Gen3 SoCs, each DU output channel is provided with a CMM unit > to perform image enhancement and color correction. >

Re: [PATCH 1/4] dma-buf: change DMA-buf locking convention

2019-10-16 Thread Koenig, Christian
Am 08.10.19 um 10:55 schrieb Daniel Vetter: > On Wed, Oct 02, 2019 at 08:37:50AM +, Koenig, Christian wrote: >> Hi Daniel, >> >> once more a ping on this. Any more comments or can we get it comitted? > Sorry got a bit smashed past weeks, but should be resurrected now back > from xdc. And any m

  1   2   >