[git pull] feature/staging_sm5

2020-03-23 Thread Roland Scheidegger (VMware)
Dave, Daniel, vmwgfx pull for for 5.7. Needed for GL4 functionality. Sync up device headers, add support for new commands, code refactoring around surface definition. Preliminary mesa userspace code using these new vmwgfx features can be found at: https://gitlab.freedesktop.org/bhenden/mesa v2:

[PATCH v2 3/3] drm/radeon: fix scatter-gather mapping with user pages

2020-03-23 Thread Shane Francis
Calls to dma_map_sg may return segments / entries than requested if they fall on page bounderies. The old implementation did not support this use case. Signed-off-by: Shane Francis --- drivers/gpu/drm/radeon/radeon_ttm.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v2 1/3] drm/prime: correct logic for mapping sg to arrays

2020-03-23 Thread Shane Francis
Previously drm_prime_sg_to_page_addr_arrays did not allow for scatter-gather tables where the length had been reduced in a dma_map. This commit enables this via drm_prime_dma_sg_to_page_addr_arrays while still keeping the original logic in place for tables that that have not been through dma

[PATCH v2 2/3] drm/amdgpu: fix scatter-gather mapping with user pages

2020-03-23 Thread Shane Francis
Calls to dma_map_sg may return segments / entries than requested if they fall on page bounderies. The old implementation did not support this use case. Signed-off-by: Shane Francis --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v2 0/3] AMDGPU / RADEON / DRM Fix mapping of user pages

2020-03-23 Thread Shane Francis
This patch set is to fix a bug in amdgpu / radeon drm that results in a crash when dma_map_sg combines segments. There are 2 shortfalls in the current kernel. 1) AMDGPU / RADEON assumes that the requested and created segments from dma_map_sg are equal 2) drm_prime does not allow for setting

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-03-23 Thread Stefan Agner
On 2020-03-23 22:38, Sam Ravnborg wrote: > Hi Stefan. > > On Mon, Mar 23, 2020 at 10:27:21PM +0100, Stefan Agner wrote: >> On 2020-03-09 20:51, Laurent Pinchart wrote: >> > Replace the manual connector implementation based on drm_panel with the >> > drm_panel_bridge helper. This simplifies the

Re: [PATCH 21/21] drm: mxsfb: Support the alpha plane

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The LCDIF in the i.MX6SX and i.MX7 have a second plane called the alpha > plane. Support it. > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 3 + > drivers/gpu/drm/mxsfb/mxsfb_drv.h | 16 ++-- >

Re: [git pull] feature/staging_sm5

2020-03-23 Thread Roland Scheidegger
Am 23.03.20 um 19:43 schrieb Roland Scheidegger: > Am 23.03.20 um 01:36 schrieb Dave Airlie: >> On Sat, 21 Mar 2020 at 08:57, Roland Scheidegger (VMware) >> wrote: >>> >>> Dave, Daniel, >>> >>> vmwgfx pull for for 5.7. Needed for GL4 functionality. >>> Sync up device headers, add support for new

Re: [PATCH 20/21] drm: mxsfb: Merge mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt()

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt() functions both deal > with format configuration, are always called in a row from > mxsfb_crtc_mode_set_nofb(), and set fields from the LCDC_CTRL register. > This requires a read-modify-update cycle in

Re: [PATCH 19/21] drm: mxsfb: Turn mxsfb_set_pixel_fmt() into a void function

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_set_pixel_fmt() function returns an error when the selected > pixel format is unsupported. This can never happen, as such errors are > caught by the DRM core. Remove the error check. > > Signed-off-by: Laurent Pinchart I see, we specify

Re: [PATCH 18/21] drm: mxsfb: Drop non-OF support

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb driver is only used by OF platforms. Drop non-OF support. Nice cleanup. Actually only supported of anyways due to the pdev->dev.of_node check. Reviewed-by: Stefan Agner -- Stefan > > Signed-off-by: Laurent Pinchart > --- >

Re: [PATCH 17/21] drm: mxsfb: Update internal IP version number for i.MX6SX

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The LCDIF present in the i.MX6SX has extra features compared to > the i.MX28. It has however lost its IP version register, so no official > version number is known. Bump the version to MXSFB_V6 following the i.MX > version, in preparation for support

Re: [PATCH 16/21] drm: mxsfb: Add i.MX7 to the list of supported SoCs in Kconfig

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > Extend the Kconfig option description by listing the i.MX7 SoCs, as they > are supported by the same driver. Can you also add "i.MX8M" to the list since the bindings for this driver are also used in arch/arm64/boot/dts/freescale/imx8mq.dtsi. --

Re: [PATCH 15/21] drm: mxsfb: Remove mxsfb_devdata unused fields

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The debug0 and ipversion fields of the mxsfb_devdata structure are > unused. Remove them. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 > drivers/gpu/drm/mxsfb/mxsfb_drv.h | 2

[PATCH v2 17/17] drm/vmwgfx: Use vmwgfx version 2.18 to signal SM5 compatibility

2020-03-23 Thread Roland Scheidegger (VMware)
From: Thomas Hellström (VMware) Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Charmaine Lee Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger ___ v2: Use 2.18 instead of 2.17 --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- 1 file changed, 1

[PATCH v2 12/17] drm/vmwgfx: Add support for streamoutput with mob commands

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat With SM5 capability a new version of streamoutput is supported by device which need backing mob and a new field. With this change the new command is supported in command buffer. v2: Also track streamoutput context binding in binding manager. v3: Track only one streamoutput

[PATCH v2 04/17] drm/vmwgfx: Use enum to represent graphics context capabilities

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Instead of having different bool in device private to represent incremental graphics context capabilities, add a new sm type enum. v2: Use enum instead of bit flag. v3: Incorporated review comments. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware)

[PATCH v2 08/17] drm/vmwgfx: Support SM5 shader type in command buffer

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Virtual device now supports new shader types, allow them as valid shader type in command buffer. Also add per shader bind info in binding manager state for new shader type. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger

[PATCH v2 06/17] drm/vmwgfx: Add a new enum for SM5 graphics context capability

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat A new enum to represent new SM5 graphics context capability in vmwgfx. v2: use new correct cap bits (merged several later commits into it). Signed-off-by: Deepak Rawat Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland

[PATCH v2 01/17] drm/vmwgfx: Also check for SVGA_CAP_DX before reading DX context support

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Virtual device consider SVGA_CAP_DX and SVGA3D_DEVCAP_DXCONTEXT independent of each other. Some of the commands in cmd_buf depends on SVGA_CAP_DX, so better to check for that as well. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 16/17] drm/vmwgfx: Add SM5 param for userspace

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Add a new param for user-space to determine if kernel module is SM5 capable. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 +++

[PATCH v2 02/17] drm/vmwgfx: Sync legacy multisampling device capability

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat In favor of SM4.1 multisampling capability, virtual device deprecated old multisampling device capability. Mark legacy multisampling device capability as dead. Rename the function that masks legacy multisample capability to reflect that now it is masking a deprecated feature.

[PATCH v2 11/17] drm/vmwgfx: Rename stream output target binding tracker struct

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Previous name vmw_ctx_bindinfo_so is misleading because it actually represent so target and stream output is a new resource type that needs tracking for SM5 capable device. Also rename binding type enum and internal functions to reflect these belongs to so targets.

[PATCH v2 13/17] drm/vmwgfx: Split surface metadata from struct vmw_surface

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Create a new structure vmw_surface_metadata representing the metadata used for creating surface. With this can make the surface_define_priv a bit cleaner. Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 14/17] drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Makes surface_define cleaner by sending vmw_surface_metadata instead of all the arguments individually. v2: fix uninitialized return value, error message Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 09/17] drm/vmwgfx: Add support for UA view commands

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Virtual device now support new commands to manage unordered access views. Allow them as part of user-space command buffer. This involves adding UA view cotable, binding tracker info, new view type and command verifier functions. v2: fix comment typo v3: style fixes (don't use

[PATCH v2 03/17] drm/vmwgfx: Deprecate logic ops commands

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Logic ops commands are marked as deprecated by virtual device and were never used by vmwgfx. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger ---

[PATCH v2 00/17] drm/vmwgfx add support for GL4

2020-03-23 Thread Roland Scheidegger (VMware)
This series updates vmwgfx to support newer vmware svga device protocol and expose new commands to userspace.. This is required for supporting newer GL4 features in the guest. This syncs up the device headers, adds support for the new commands, and also refactors some code (in particular around

[PATCH v2 15/17] drm/vmwgfx: Add surface define v4 command

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Surface define v4 added new member buffer_byte_stride. With this patch add buffer_byte_stride in surface metadata and create surface using new command if support is available. Also with this patch replace device specific data types with kernel types. Signed-off-by: Deepak

[PATCH v2 10/17] drm/vmwgfx: Add support for indirect and dispatch commands

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Validate indirect and dispatch commands in command buffer. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 70 + 1

[PATCH v2 07/17] drm/vmwgfx: Read new register for GB memory when available

2020-03-23 Thread Roland Scheidegger (VMware)
From: Deepak Rawat Virtual device added new register for suggested GB memory, read the new register when available. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |

[PATCH v2 04/17] drm/vmwgfx: Use enum to represent graphics context capabilities

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Instead of having different bool in device private to represent incremental graphics context capabilities, add a new sm type enum. v2: Use enum instead of bit flag. v3: Incorporated review comments. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware)

[PATCH v2 13/17] drm/vmwgfx: Split surface metadata from struct vmw_surface

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Create a new structure vmw_surface_metadata representing the metadata used for creating surface. With this can make the surface_define_priv a bit cleaner. Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 02/17] drm/vmwgfx: Sync legacy multisampling device capability

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat In favor of SM4.1 multisampling capability, virtual device deprecated old multisampling device capability. Mark legacy multisampling device capability as dead. Rename the function that masks legacy multisample capability to reflect that now it is masking a deprecated feature.

[PATCH v2 10/17] drm/vmwgfx: Add support for indirect and dispatch commands

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Validate indirect and dispatch commands in command buffer. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 70 + 1

[PATCH v2 16/17] drm/vmwgfx: Add SM5 param for userspace

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Add a new param for user-space to determine if kernel module is SM5 capable. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 +++

[PATCH v2 15/17] drm/vmwgfx: Add surface define v4 command

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Surface define v4 added new member buffer_byte_stride. With this patch add buffer_byte_stride in surface metadata and create surface using new command if support is available. Also with this patch replace device specific data types with kernel types. Signed-off-by: Deepak

[PATCH v2 08/17] drm/vmwgfx: Support SM5 shader type in command buffer

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Virtual device now supports new shader types, allow them as valid shader type in command buffer. Also add per shader bind info in binding manager state for new shader type. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger

[PATCH v2 06/17] drm/vmwgfx: Add a new enum for SM5 graphics context capability

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat A new enum to represent new SM5 graphics context capability in vmwgfx. v2: use new correct cap bits (merged several later commits into it). Signed-off-by: Deepak Rawat Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland

[PATCH v2 12/17] drm/vmwgfx: Add support for streamoutput with mob commands

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat With SM5 capability a new version of streamoutput is supported by device which need backing mob and a new field. With this change the new command is supported in command buffer. v2: Also track streamoutput context binding in binding manager. v3: Track only one streamoutput

[PATCH v2 09/17] drm/vmwgfx: Add support for UA view commands

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Virtual device now support new commands to manage unordered access views. Allow them as part of user-space command buffer. This involves adding UA view cotable, binding tracker info, new view type and command verifier functions. v2: fix comment typo v3: style fixes (don't use

[PATCH v2 00/17] drm/vmwgfx add support for GL4

2020-03-23 Thread Roland Scheidegger
From: "Roland Scheidegger (VMware)" This series updates vmwgfx to support newer vmware svga device protocol and expose new commands to userspace.. This is required for supporting newer GL4 features in the guest. This syncs up the device headers, adds support for the new commands, and also

[PATCH v2 11/17] drm/vmwgfx: Rename stream output target binding tracker struct

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Previous name vmw_ctx_bindinfo_so is misleading because it actually represent so target and stream output is a new resource type that needs tracking for SM5 capable device. Also rename binding type enum and internal functions to reflect these belongs to so targets.

[PATCH v2 17/17] drm/vmwgfx: Use vmwgfx version 2.18 to signal SM5 compatibility

2020-03-23 Thread Roland Scheidegger
From: Thomas Hellström (VMware) Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Charmaine Lee Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger ___ v2: Use 2.18 instead of 2.17 --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- 1 file changed, 1

[PATCH v2 07/17] drm/vmwgfx: Read new register for GB memory when available

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Virtual device added new register for suggested GB memory, read the new register when available. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |

[PATCH v2 14/17] drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Makes surface_define cleaner by sending vmw_surface_metadata instead of all the arguments individually. v2: fix uninitialized return value, error message Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 01/17] drm/vmwgfx: Also check for SVGA_CAP_DX before reading DX context support

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Virtual device consider SVGA_CAP_DX and SVGA3D_DEVCAP_DXCONTEXT independent of each other. Some of the commands in cmd_buf depends on SVGA_CAP_DX, so better to check for that as well. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland

[PATCH v2 03/17] drm/vmwgfx: Deprecate logic ops commands

2020-03-23 Thread Roland Scheidegger
From: Deepak Rawat Logic ops commands are marked as deprecated by virtual device and were never used by vmwgfx. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Reviewed-by: Roland Scheidegger Signed-off-by: Roland Scheidegger ---

Re: [PATCH 14/21] drm: mxsfb: Enable vblank handling

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > Enable vblank handling when the CRTC is turned on and disable it when it > is turned off. This requires moving vblank init after the KMS pipeline > initialisation, otherwise drm_vblank_init() gets called with 0 CRTCs. > > Signed-off-by: Laurent

Re: [PATCH 13/21] drm: mxsfb: Don't touch AXI clock in IRQ context

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The driver attempts agressive power management by enabling and disabling > the AXI clock around register accesses. This results in attempts to > enable and disable the clock in the IRQ handler, which is a no-go as > preparing or unpreparing the clock

Re: [PATCH 12/21] drm: mxsfb: Move vblank event arm to CRTC .atomic_flush()

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The vblank event is armed in the plane .atomic_update(). This works fine > as we have a single plane, but will break as soon as multiple planes are > supported (not to mention it's logically the wrong place to perform the > operation). Move it to CRTC

Re: [PATCH 2/2] drm/amdgpu: fix scatter-gather mapping with user pages

2020-03-23 Thread Shane Francis
> I think the other call to drm_prime_sg_to_page_addr_arrays in amdgpu > needs a similar fix. > > Alex Looking at the other call in amdgpu tmm it does not seem to undergo the segment remapping that happens in dma_map_sg, so should be safe. I will port the changes to drm/radeon as that seems to

Re: [PATCH 11/21] drm: mxsfb: Rename mxsfb_crtc.c to mxsfb_kms.c

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_crtc.c file doesn't handle just the CRTC, but also the other > KMS objects. Rename it accordingly. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/Makefile | 2 +- >

Re: [PATCH 10/21] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The DRM simple display pipeline helper only supports a single plane. In > order to prepare for support of the alpha plane on i.MX6SX and i.MX7, > move away from the helper. No new feature is added. > > Signed-off-by: Laurent Pinchart I actually

Re: [PATCH v2 2/4] dt-bindings: display: bridge: add it66121 bindings

2020-03-23 Thread Rob Herring
On Wed, Mar 11, 2020 at 01:51:33PM +0100, Phong LE wrote: > Add the ITE bridge HDMI it66121 bindings. > > Signed-off-by: Phong LE > --- > .../bindings/display/bridge/ite,it66121.yaml | 98 +++ > 1 file changed, 98 insertions(+) > create mode 100644 >

Re: [PATCH v2 1/4] dt-bindings: add ITE vendor

2020-03-23 Thread Rob Herring
On Wed, Mar 11, 2020 at 01:51:32PM +0100, Phong LE wrote: > Add ITE Tech Inc. prefix "ite" in vendor-prefixes. More information on: > http://www.ite.com.tw/ > > Signed-off-by: Phong LE > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH v3 2/4] dt-bindings: display: mediatek: get mipitx calibration data from nvmem

2020-03-23 Thread Rob Herring
On Wed, 11 Mar 2020 15:40:30 +0800, Jitao Shi wrote: > Add properties to get get mipitx calibration data. > > Signed-off-by: Jitao Shi > --- > .../devicetree/bindings/display/mediatek/mediatek,dsi.txt| 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Rob Herring

Re: [PATCH v3 1/4] dt-bindings: display: mediatek: add property to control mipi tx drive current

2020-03-23 Thread Rob Herring
On Wed, Mar 11, 2020 at 03:40:29PM +0800, Jitao Shi wrote: > Add a property to control mipi tx drive current: > "drive-strength-microamp" > > Signed-off-by: Jitao Shi > --- > .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 > 1 file changed, 4 insertions(+) > > diff

Re: [PATCH 09/21] drm: mxsfb: Remove unneeded includes

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > A fair number of includes are not needed. Drop them, and add a couple of > required includes that were included indirectly. > > Signed-off-by: Laurent Pinchart Out of curiosity, do you have some kind of tool helping with this? Reviewed-by: Stefan

Re: [PATCH 08/21] drm: mxsfb: Remove register definitions from mxsfb_crtc.c

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > mxsfb_crtc.c defines several macros related to register addresses and > bit, which duplicates macros from mxsfb_regs.h. Use the macros from > mxsfb_regs.h instead and remove them. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner >

Re: [PATCH 07/21] drm: mxsfb: Use LCDC_CTRL register name explicitly

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The LCDC_CTRL register is located at address 0x. Some of the > accesses to the register simply use the mxsfb->base address. Reference > the LCDC_CTRL register explicitly instead to clarify the code. > > Signed-off-by: Laurent Pinchart

Re: [PATCH 06/21] drm: mxsfb: Pass mxsfb_drm_private pointer to mxsfb_reset_block()

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_reset_block() function isn't special, pass it the > mxsfb_drm_private pointer instead of a pointer to the base address. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 12

Re: [PATCH 05/21] drm: mxsfb: Clarify format and bus width configuration

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > Replace the convoluted way to set the format and bus width through > difficult to read macros with more explicit ones. Also remove the > outdated comment related to the limitations on bus width setting as it Nice catch. > doesn't apply anymore (the

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-03-23 Thread Sam Ravnborg
Hi Stefan. On Mon, Mar 23, 2020 at 10:27:21PM +0100, Stefan Agner wrote: > On 2020-03-09 20:51, Laurent Pinchart wrote: > > Replace the manual connector implementation based on drm_panel with the > > drm_panel_bridge helper. This simplifies the mxsfb driver by removing > > connector-related code,

Re: [PATCH 04/21] drm: mxsfb: Remove unused macros from mxsfb_regs.h

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > mxsfb_regs.h defines macros related to register bits. Some of them are > not used and don't clearly map to any particular register, so their > purpose isn't known. Remove them. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- >

Re: [PATCH 2/2] drm/amdgpu: fix scatter-gather mapping with user pages

2020-03-23 Thread Alex Deucher
On Mon, Mar 23, 2020 at 4:52 PM Shane Francis wrote: > > Calls to dma_map_sg may return segments / entries than requested > if they fall on page bounderies. The old implementation did not > support this use case. > > Signed-off-by: Shane Francis Fixes: be62dbf554c5 ("iommu/amd: Convert AMD

[PATCH] video: fbdev: imxfb: ensure balanced regulator usage

2020-03-23 Thread Uwe Kleine-König
The fbdev framework doesn't care to call the .set_power callback only on changes. So the driver has to care for itself that the regulator doesn't get disabled more often than enabled. This fixes the regulator warning unbalanced disables for lcd supply which can be triggered by doing

Re: [PATCH 03/21] drm: mxsfb: Use BIT() macro to define register bitfields

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > Using BIT() is preferred over manual shifts as it's more readable, > handles the 1 << 31 case properly, and avoids other mistakes as shown by > the DEBUG0_HSYNC and DEBUG0_VSYNC bits (that are currently unused). Use > it. > > Signed-off-by: Laurent

Re: [PATCH 1/2] drm/panel: Add Starry KR070PE2T

2020-03-23 Thread Rob Herring
On Wed, Mar 11, 2020 at 11:23:27AM +0100, Pascal Roeleven wrote: > On 2020-03-10 19:54, Sam Ravnborg wrote: > > A few things to improve. > > > > The binding should be a separate patch. > > subject - shall start with dt-bindings: > > Shall be sent to deveicetree mailing list. > > Hi Sam, > >

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > Replace the manual connector implementation based on drm_panel with the > drm_panel_bridge helper. This simplifies the mxsfb driver by removing > connector-related code, and standardizing all pipeline control > operations on bridges. > > A hack is

[PATCH 0/2] AMDGPU / DRM Fix mapping of user pages

2020-03-23 Thread Shane Francis
This patch set is to fix a bug in amdgpu that results in a crash when dma_map_sg combines segments. There are 2 shortfalls in the current kernel. 1) AMDGPU assumes that the requested and created segments from dma_map_sg are equal 2) drm_prime does not allow for setting the segment length

[PATCH 2/2] drm/amdgpu: fix scatter-gather mapping with user pages

2020-03-23 Thread Shane Francis
Calls to dma_map_sg may return segments / entries than requested if they fall on page bounderies. The old implementation did not support this use case. Signed-off-by: Shane Francis --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH 1/2] drm/prime: correct logic for mapping sg to arrays

2020-03-23 Thread Shane Francis
Previously drm_prime_sg_to_page_addr_arrays did not allow for scatter-gather tables where the length had been reduced in a dma_map. This commit enables this via drm_prime_dma_sg_to_page_addr_arrays while still keeping the original logic in place for tables that that have not been through dma

Re: [v2] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-03-23 Thread Rob Herring
On Mon, Mar 09, 2020 at 03:52:46PM +0530, Krishna Manikandan wrote: > MSM Mobile Display Subsytem(MDSS) encapsulates sub-blocks > like DPU display controller, DSI etc. Add YAML schema > for the device tree bindings for the same. > > Signed-off-by: Krishna Manikandan > > Changes in v2: > -

Re: [PATCH 01/21] drm: mxsfb: Remove fbdev leftovers

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > Commit 8e93f1028d74 ("drm/mxsfb: Use drm_fbdev_generic_setup()") > replaced fbdev handling with drm_fbdev_generic_setup() but left > inclusion of the drm/drm_fb_cma_helper.h header. Remove it. > > Fixes: 8e93f1028d74 ("drm/mxsfb: Use

Re: [PATCH v1] dt-bindings: display: rockchip: convert rockchip vop bindings to yaml

2020-03-23 Thread Rob Herring
On Fri, Mar 06, 2020 at 06:03:53PM +0100, Johan Jonker wrote: > Current dts files with 'vop' nodes are manually verified. > In order to automate this process rockchip-vop.txt > has to be converted to yaml. Also included are new > properties needed for the latest Rockchip Socs. > > Added

Re: [PATCH v1] dt-bindings: display: rockchip: convert rockchip vop bindings to yaml

2020-03-23 Thread Rob Herring
On Mon, Mar 09, 2020 at 07:55:22AM +0100, Johan Jonker wrote: > Hi, > > Question for robh: > > In the old txt situation we add/describe only properties that are used > by the driver/hardware itself. With yaml it also filters things in a > node that are used by other drivers like: > >

Re: [git pull] feature/staging_sm5

2020-03-23 Thread Roland Scheidegger
Am 23.03.20 um 01:36 schrieb Dave Airlie: > On Sat, 21 Mar 2020 at 08:57, Roland Scheidegger (VMware) > wrote: >> >> Dave, Daniel, >> >> vmwgfx pull for for 5.7. Needed for GL4 functionality. >> Sync up device headers, add support for new commands, code >> refactoring around surface definition. >

[PATCH] drm/mm: Only allow sleeping if the caller permits

2020-03-23 Thread Chris Wilson
Sometimes the drm_mm is searched from within an atomic context (yikes!) so we must be cautious and not insert a schedule() unless the caller indicates it is safe to do so. Closes: https://gitlab.freedesktop.org/drm/intel/issues/1509 Fixes: 7be1b9b8e9d1 ("drm/mm: Break long searches in fragmented

Re: [PATCH 03/51] drm: add managed resources tied to drm_device

2020-03-23 Thread Sam Ravnborg
Hi Daniel. On Mon, Mar 23, 2020 at 03:49:02PM +0100, Daniel Vetter wrote: > We have lots of these. And the cleanup code tends to be of dubious > quality. The biggest wrong pattern is that developers use devm_, which > ties the release action to the underlying struct device, whereas > all the

Re: [PATCH 15/17] drm/vmwgfx: Add surface define v4 command

2020-03-23 Thread Roland Scheidegger
Am 23.03.20 um 13:02 schrieb Emil Velikov: > Hi all, > > Just a small fly-by idea. > > On Thu, 19 Mar 2020 at 20:25, wrote: >> >> From: Deepak Rawat >> >> Surface define v4 added new member buffer_byte_stride. With this patch >> add buffer_byte_stride in surface metadata and create surface

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #16 from bigbeesh...@gmail.com --- I'll update drm_prime_sg_to_page_addr_arrays to support both the current logic and dma mapped logic and get a patch up this evening. That way at least nothing else get broke -- You are receiving

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #15 from Alex Deucher (alexdeuc...@gmail.com) --- General comment about the patch, you can make amdgpu_ttm_dma_sg_to_arrays static since it's only used within amdgpu_ttm.c, -- You are receiving this mail because: You are watching

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #14 from Alex Deucher (alexdeuc...@gmail.com) --- True. For now just send out the patch and we can discuss further on the list. Thanks! -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #13 from bigbeesh...@gmail.com --- Indeed, however they may not have pushed the SG lists via dma map in the same way as amdgpu. In that case getting lengths from dma_map_sg would probably cause other issues -- You are receiving

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #12 from Alex Deucher (alexdeuc...@gmail.com) --- It's likely other drivers that rely on these helpers would be similarly broken. -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 206895] [amdgpu] crash while using opencl from amdgpu-pro on kernel 5.5.10 & 5.6.0-rc6

2020-03-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206895 --- Comment #11 from Alex Deucher (alexdeuc...@gmail.com) --- Thanks for the patch. Please fix drm_prime_sg_to_page_addr_arrays() directly and send the patch to dri-devel@lists.freedesktop.org . Also please add your Signed-off_by. -- You are

Re: [PATCH] drm/mxsfb: Make supported modifiers explicit

2020-03-23 Thread Lucas Stach
Am Montag, den 23.03.2020, 15:52 +0100 schrieb Guido Günther: > In contrast to other display controllers on imx like DCSS and ipuv3 > lcdif/mxsfb does not support detiling e.g. vivante tiled layouts. > Since mesa might assume otherwise make it explicit that only > DRM_FORMAT_MOD_LINEAR is

Re: [PATCH] drm/vram-helper: remove unneeded #if defined/endif guards.

2020-03-23 Thread Daniel Vetter
On Mon, Mar 23, 2020 at 12:37:26PM +0100, Greg KH wrote: > On Mon, Mar 23, 2020 at 02:28:02PM +0300, Wambui Karuga wrote: > > Remove unneeded #if/#endif guards for checking whether the > > CONFIG_DEBUG_FS option is set or not. If the option is not set, the > > compiler optimizes the functions

Re: [PATCH 40/51] drm/mtk: Drop explicit drm_mode_config_cleanup call

2020-03-23 Thread Chun-Kuang Hu
Daniel Vetter 於 2020年3月23日 週一 下午10:51寫道: > > It's right above the drm_dev_put(). > > This is made possible by a preceeding patch which added a drmm_ > cleanup action to drm_mode_config_init(), hence all we need to do to > ensure that drm_mode_config_cleanup() is run on final drm_device > cleanup

RE: [PATCH] drm/scheduler: fix rare NULL ptr race

2020-03-23 Thread Tao, Yintian
Add David, Christian, Alex and Felix -Original Message- From: Yintian Tao Sent: 2020年3月23日 22:40 To: dri-devel@lists.freedesktop.org Cc: Tao, Yintian Subject: [PATCH] drm/scheduler: fix rare NULL ptr race There is one one corner case at dma_fence_signal_locked which will raise the

[PATCH] drm/mxsfb: Make supported modifiers explicit

2020-03-23 Thread Guido Günther
In contrast to other display controllers on imx like DCSS and ipuv3 lcdif/mxsfb does not support detiling e.g. vivante tiled layouts. Since mesa might assume otherwise make it explicit that only DRM_FORMAT_MOD_LINEAR is supported. Signed-off-by: Guido Günther ---

[PATCH 45/51] drm/gm12u320: Simplify upload work

2020-03-23 Thread Daniel Vetter
Instead of having a work item that never stops (which really should be a kthread), with a dedicated workqueue to not upset anyone else, use a delayed work. A bunch of changes: - We can throw out all the custom wakeup and requeue logic and state tracking. If we schedule the work with a 0 delay

[PATCH 51/51] drm: Add docs for managed resources

2020-03-23 Thread Daniel Vetter
All collected together to provide a consistent story in one patch, instead of the somewhat bumpy refactor-evolution leading to this. Also some thoughts on what the next steps could be: - Create a macro called devm_drm_dev_alloc() which essentially wraps the kzalloc(); devm_drm_dev_init();

[PATCH 48/51] drm/mipi-dbi: Drop explicit drm_mode_config_cleanup call

2020-03-23 Thread Daniel Vetter
Allows us to drop the drm_driver.release callback from all drivers, and remove the mipi_dbi_release() function. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on

[PATCH 44/51] drm/gm12u320: Use helpers for shutdown/suspend/resume

2020-03-23 Thread Daniel Vetter
Also there's a race in the disconnect implemenation. First shut down, then unplug, leaves a window where userspace could sneak in and restart the entire machinery. With this we can also delete the very un-atomic global pipe_enabled tracking. Reviewed-by: Hans de Goede Signed-off-by: Daniel

[PATCH 43/51] drm/gm12u320: Use devm_drm_dev_init

2020-03-23 Thread Daniel Vetter
Only drops the drm_dev_put, but hey a few lines! Reviewed-by: Hans de Goede Signed-off-by: Daniel Vetter Cc: Hans de Goede Cc: "Noralf Trønnes" --- drivers/gpu/drm/tiny/gm12u320.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git

[PATCH 33/51] drm/mcde: More devm_drm_dev_init

2020-03-23 Thread Daniel Vetter
Auto-unwind ftw, now possible with the fixed drm_device related management. Aside, clk/regulator seem to be missing devm versions for a bunch of functions, preventing a pile of these simpler drivers from outright losing their ->remove hook. Reviewed-by: Linus Walleij Signed-off-by: Daniel

[PATCH 49/51] drm/udl: Drop explicit drm_mode_config_cleanup call

2020-03-23 Thread Daniel Vetter
It's right above the drm_dev_put(). This allows us to delete a bit of onion unwinding in udl_modeset_init(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final

[PATCH 41/51] drm/tidss: Drop explicit drm_mode_config_cleanup call

2020-03-23 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside:

  1   2   >