Re: [PATCH v4 1/9] fs: Constify vma argument to vma_is_dax

2020-03-25 Thread Dan Williams
On Thu, Feb 20, 2020 at 4:27 AM Thomas Hellström (VMware) wrote: > > From: Thomas Hellstrom > > The vma argument is only dereferenced for reading. > > Cc: Andrew Morton > Cc: Michal Hocko > Cc: "Matthew Wilcox (Oracle)" > Cc: "Kirill A. Shutemov" > Cc: Ralph Campbell > Cc: "Jérôme Glisse"

Re: [PATCH] drm/ttm: clean up the inteface which is not used

2020-03-25 Thread Huang Rui
On Thu, Mar 26, 2020 at 01:30:31AM +0800, Christian König wrote: > Am 25.03.20 um 18:27 schrieb Alex Deucher: > > On Wed, Mar 25, 2020 at 1:20 PM Christian König > > wrote: > >> Am 25.03.20 um 16:34 schrieb Huang Rui: > >>> invalidate_caches is actually not used, so clean it up. > >>> > >>>

Re: [RESEND PATCH v12 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-25 Thread Stephen Boyd
Quoting Enric Balletbo i Serra (2020-03-25 10:31:21) > From: Matthias Brugger > > There is no strong reason for this to use CLK_OF_DECLARE instead of > being a platform driver. Plus, MMSYS provides clocks but also a shared > register space for the mediatek-drm and the mediatek-mdp > driver. So

Re: [PATCH] drm/virtio: delete notify in virtio_gpu_object_create

2020-03-25 Thread Chia-I Wu
On Thu, Mar 26, 2020 at 7:10 AM Gurchetan Singh wrote: > > For 3D buffers, virtio_gpu_gem_object_open notifies. > We can have the same behavior for dumb buffer. > > v2: virtio_gpu_gem_object_open always notifies > v3: avoid boolean variable Series is Reviewed-by: Chia-I Wu > > Signed-off-by:

Re: [PATCH v12 4/5] soc / drm: mediatek: Move routing control to mmsys device

2020-03-25 Thread CK Hu
Hi, Matthias: On Wed, 2020-03-25 at 17:16 +0100, Matthias Brugger wrote: > > On 11/03/2020 17:53, Enric Balletbo i Serra wrote: > > Provide a mtk_mmsys_ddp_connect() and mtk_mmsys_disconnect() functions to > > replace mtk_ddp_add_comp_to_path() and mtk_ddp_remove_comp_from_path(). > > Those

[PATCH] drm/virtio: delete notify in virtio_gpu_object_create

2020-03-25 Thread Gurchetan Singh
For 3D buffers, virtio_gpu_gem_object_open notifies. We can have the same behavior for dumb buffer. v2: virtio_gpu_gem_object_open always notifies v3: avoid boolean variable Signed-off-by: Gurchetan Singh --- drivers/gpu/drm/virtio/virtgpu_gem.c| 3 ++-

Re: [PATCH] drm/mediatek: Remove debug messages for function calls

2020-03-25 Thread CK Hu
Hi, Enric: On Wed, 2020-02-26 at 12:27 +0100, Enric Balletbo i Serra wrote: > Equivalent information can be nowadays obtained using function tracer. > > Signed-off-by: Enric Balletbo i Serra > --- Acked-by: CK Hu > > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 5 - >

Re: [SPAM][PATCH] drm/mediatek: Remove debug messages for function calls

2020-03-25 Thread CK Hu
Hi, Enric: On Wed, 2020-02-26 at 12:27 +0100, Enric Balletbo i Serra wrote: > Equivalent information can be nowadays obtained using function tracer. > Acked-by: CK Hu > Signed-off-by: Enric Balletbo i Serra > --- > > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 5 - >

[Bug 206021] AMDGPU/DC: freesync disabled on the monitor side after the monitor sleeps and resumes

2020-03-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206021 --- Comment #6 from Clément Guérin (li...@protonmail.com) --- Is anyone looking at this? I can still reproduce the bug 100%. -- You are receiving this mail because: You are watching the assignee of the bug.

Re: [PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false'

2020-03-25 Thread Mark Brown
On Wed, Mar 25, 2020 at 04:05:41PM -0600, Rob Herring wrote: > Setting 'additionalProperties: false' is frequently omitted, but is > important in order to check that there aren't extra undocumented > properties in a binding. > > Ideally, we'd just add this automatically and make this the default,

[PATCH 1/4] dt-bindings: iio/accel: Drop duplicate adi, adxl345/6 from trivial-devices.yaml

2020-03-25 Thread Rob Herring
The 'adi,adxl345' definition is a duplicate as there's a full binding in: Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml The trivial-devices binding doesn't capture that 'adi,adxl346' has a fallback compatible 'adi,adxl345', so let's add it to adi,adxl345.yaml. Cc: Michael

[PATCH 0/4] dt-bindings: additionalProperties clean-up

2020-03-25 Thread Rob Herring
Setting 'additionalProperties: false' is frequently omitted, but is important in order to check that there aren't extra undocumented properties in a binding. This series is a bunch of fixes in patches 1-3 found by setting 'additionalProperties: false' and then patch 4 sets additionalProperties on

[PATCH 2/4] dt-bindings: sram: qcom: Clean-up 'ranges' and child node names

2020-03-25 Thread Rob Herring
The regex for child nodes doesn't match the example. This wasn't flagged with 'additionalProperties: false' missing. The child node schema was also incorrect with 'ranges' property as it applies to child nodes and should be moved up to the parent node. Fixes: 957fd69d396b ("dt-bindings: soc:

[PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false'

2020-03-25 Thread Rob Herring
Setting 'additionalProperties: false' is frequently omitted, but is important in order to check that there aren't extra undocumented properties in a binding. Ideally, we'd just add this automatically and make this the default, but there's some cases where it doesn't work. For example, if a common

[PATCH 3/4] dt-bindings: Clean-up schema errors due to missing 'addtionalProperties: false'

2020-03-25 Thread Rob Herring
Numerous schemas are missing 'additionalProperties: false' statements which ensures a binding doesn't have any extra undocumented properties or child nodes. Fixing this reveals various missing properties, so let's fix all those occurrences. Cc: Stephen Boyd Cc: Linus Walleij Cc: Bartosz

Re: [PATCH] drm/virtio: delete notify in virtio_gpu_object_create

2020-03-25 Thread Chia-I Wu
On Wed, Mar 25, 2020 at 8:41 AM Gurchetan Singh wrote: > > For 3D buffers, virtio_gpu_gem_object_open notifies. > We can have the same behavior for dumb buffer. We just > need to make sure the first open notifies the host for > dumb buffers. virtio_gpu_notify is cheap and does not kick unless

Re: [PATCH 2/2] gpu: host1x: Use SMMU on Tegra124 and Tegra210

2020-03-25 Thread Jon Hunter
On 25/03/2020 20:16, Thierry Reding wrote: > From: Thierry Reding > > Tegra124 and Tegra210 support addressing more than 32 bits of physical > memory. However, since their host1x does not support the wide GATHER > opcode, they should use the SMMU if at all possible to ensure that all > the

Re: [PATCH 1/2] drm/tegra: Fix SMMU support on Tegra124 and Tegra210

2020-03-25 Thread Jon Hunter
On 25/03/2020 20:16, Thierry Reding wrote: > From: Thierry Reding > > When testing whether or not to enable the use of the SMMU, consult the > supported DMA mask rather than the actually configured DMA mask, since > the latter might already have been restricted. > > Fixes: 2d9384ff9177

[PATCH 1/2] drm/tegra: Fix SMMU support on Tegra124 and Tegra210

2020-03-25 Thread Thierry Reding
From: Thierry Reding When testing whether or not to enable the use of the SMMU, consult the supported DMA mask rather than the actually configured DMA mask, since the latter might already have been restricted. Fixes: 2d9384ff9177 ("drm/tegra: Relax IOMMU usage criteria on old Tegra")

[PATCH 2/2] gpu: host1x: Use SMMU on Tegra124 and Tegra210

2020-03-25 Thread Thierry Reding
From: Thierry Reding Tegra124 and Tegra210 support addressing more than 32 bits of physical memory. However, since their host1x does not support the wide GATHER opcode, they should use the SMMU if at all possible to ensure that all the system memory can be used for command buffers, irrespective

Re: [PATCH v2 2/3] dt-bindings: display: panel: Convert sitronix,st7701 to DT schema

2020-03-25 Thread Rob Herring
On Wed, Mar 18, 2020 at 11:10 AM Jagan Teki wrote: > > Convert the sitronix,st7701 panel bindings to DT schema. > > Signed-off-by: Jagan Teki > --- > Changes for v2: > - fix dt_binding_check > > .../display/panel/sitronix,st7701.txt | 30 >

Re: Variable Refresh Rate & flickering screens

2020-03-25 Thread Manasi Navare
On Tue, Mar 17, 2020 at 09:25:33AM -0400, Harry Wentland wrote: > > > On 2020-03-17 5:08 a.m., Simon Ser wrote: > > On Thursday, March 12, 2020 3:43 PM, Harry Wentland > > wrote: > > > >> Not the main VRR expert and we're still discussing this internally but I > >> think it'll very much

Re: [PATCH] dma-buf: Improve CONFIG_DMABUF_MOVE_NOTIFY help text

2020-03-25 Thread Alex Deucher
On Tue, Mar 24, 2020 at 8:54 AM Geert Uytterhoeven wrote: > > Improve the help text for the CONFIG_DMABUF_MOVE_NOTIFY symbol by: > 1. Removing duplicated single quotes, > 2. Adding a missing subject, > 3. Fixing a misspelling of "yet", > 4. Wrapping long lines. > > Fixes: bb42df4662a44765

Re: [Intel-gfx] [PATCH 02/51] drm/i915: Don't clear drvdata in ->release

2020-03-25 Thread Jani Nikula
On Mon, 23 Mar 2020, Daniel Vetter wrote: > For two reasons: > > - The driver core clears this already for us after we're unloaded in > __device_release_driver(). > > - It's way too late, the drm_device ->release callback might massively > outlive the underlying physical device, since a

Re: [PATCH -next] drm/amdgpu/uvd7: remove unnecessary conversion to bool

2020-03-25 Thread Alex Deucher
On Wed, Mar 25, 2020 at 4:17 AM Chen Zhou wrote: > > The conversion to bool is not needed, remove it. > > Signed-off-by: Chen Zhou Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] drm/ttm: clean up the inteface which is not used

2020-03-25 Thread Christian König
Am 25.03.20 um 18:27 schrieb Alex Deucher: On Wed, Mar 25, 2020 at 1:20 PM Christian König wrote: Am 25.03.20 um 16:34 schrieb Huang Rui: invalidate_caches is actually not used, so clean it up. Signed-off-by: Huang Rui Already had the same patch around for a while, looks like I've just

Re: [PATCH] drm/ttm: clean up the inteface which is not used

2020-03-25 Thread Alex Deucher
On Wed, Mar 25, 2020 at 1:20 PM Christian König wrote: > > Am 25.03.20 um 16:34 schrieb Huang Rui: > > invalidate_caches is actually not used, so clean it up. > > > > Signed-off-by: Huang Rui > > Already had the same patch around for a while, looks like I've just > forgot to commit it. > >

Re: [PATCH] drm/ttm: clean up the inteface which is not used

2020-03-25 Thread Christian König
Am 25.03.20 um 16:34 schrieb Huang Rui: invalidate_caches is actually not used, so clean it up. Signed-off-by: Huang Rui Already had the same patch around for a while, looks like I've just forgot to commit it. Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

Re: [PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout

2020-03-25 Thread Neil Armstrong
Hi, On 25/03/2020 14:49, Pekka Paalanen wrote: > On Wed, 25 Mar 2020 11:24:15 +0100 > Neil Armstrong wrote: > >> Hi, >> >> On 25/03/2020 10:04, Simon Ser wrote: >>> On Wednesday, March 25, 2020 9:50 AM, Neil Armstrong >>> wrote: >>> Amlogic uses a proprietary lossless image

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

2020-03-25 Thread Alex Deucher
On Wed, Mar 25, 2020 at 11:54 AM Shane Francis wrote: > > > >-Original Message- > > >From: dri-devel On Behalf Of > > >Shane Francis > > >Sent: Wednesday, March 25, 2020 5:08 AM > > >To: dri-devel@lists.freedesktop.org > > >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org;

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

2020-03-25 Thread Shane Francis
> >-Original Message- > >From: dri-devel On Behalf Of > >Shane Francis > >Sent: Wednesday, March 25, 2020 5:08 AM > >To: dri-devel@lists.freedesktop.org > >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org; bigbeesh...@gmail.com; > >amd-gfx-requ...@lists.freedesktop.org;

Re: [PATCH 1/4] drm/radeon: remove unneeded header include path

2020-03-25 Thread Alex Deucher
On Tue, Mar 24, 2020 at 9:14 PM Masahiro Yamada wrote: > > On Wed, Mar 25, 2020 at 4:42 AM Alex Deucher wrote: > > > > On Tue, Mar 24, 2020 at 12:48 PM Masahiro Yamada > > wrote: > > > > > > Hi, > > > > > > I think this series is a good clean-up. > > > > > > Could you take a look at this

Re: [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-25 Thread Doug Anderson
Hi, On Wed, Mar 25, 2020 at 8:40 AM Rob Clark wrote: > > On Tue, Mar 24, 2020 at 7:35 AM Doug Anderson wrote: > > > > Hi, > > > > On Sun, Mar 22, 2020 at 11:14 PM Kalyan Thota > > wrote: > > > > > > "The PM core always increments the runtime usage counter > > > before calling the ->suspend()

Re: [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-25 Thread Rob Clark
On Tue, Mar 24, 2020 at 7:35 AM Doug Anderson wrote: > > Hi, > > On Sun, Mar 22, 2020 at 11:14 PM Kalyan Thota wrote: > > > > "The PM core always increments the runtime usage counter > > before calling the ->suspend() callback and decrements it > > after calling the ->resume() callback" > > > >

Re: [PATCH V4 3/4] backlight: qcom-wled: Add WLED5 bindings

2020-03-25 Thread Daniel Thompson
On Mon, Mar 23, 2020 at 11:16:57PM +0530, Kiran Gunda wrote: > Add WLED5 specific bindings. > > Signed-off-by: Kiran Gunda > Signed-off-by: Subbaraman Narayanamurthy > --- > .../bindings/leds/backlight/qcom-wled.yaml | 39 > ++ > 1 file changed, 39 insertions(+) >

Re: [PATCH v12 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-25 Thread Chun-Kuang Hu
Stephen Boyd 於 2020年3月21日 週六 上午7:14寫道: > > Quoting Enric Balletbo i Serra (2020-03-11 09:53:20) > > From: Matthias Brugger > > > > There is no strong reason for this to use CLK_OF_DECLARE instead of > > being a platform driver. Plus, MMSYS provides clocks but also a shared > > register space for

[PATCH] drm/ttm: clean up the inteface which is not used

2020-03-25 Thread Huang Rui
invalidate_caches is actually not used, so clean it up. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 6 -- drivers/gpu/drm/nouveau/nouveau_bo.c | 7 --- drivers/gpu/drm/qxl/qxl_ttm.c | 6 -- drivers/gpu/drm/radeon/radeon_ttm.c

Re: [PATCH V4 2/4] backlight: qcom-wled: Add callback functions

2020-03-25 Thread Daniel Thompson
On Mon, Mar 23, 2020 at 11:16:56PM +0530, Kiran Gunda wrote: > Add wled_cabc_config, wled_sync_toggle, wled_ovp_fault_status > and wled_ovp_delay callback functions to prepare the driver for > adding WLED5 support. > > wled_cabc_config() ===> Used to configure the cabc register. >

[PATCH] drm/vboxvideo: Add missing remove_conflicting_pci_framebuffers call

2020-03-25 Thread Hans de Goede
The vboxvideo driver is missing a call to remove conflicting framebuffers. Surprisingly, when using legacy BIOS booting this does not really cause any issues. But when using UEFI to boot the VM then plymouth will draw on both the efifb /dev/fb0 and /dev/drm/card0 (which has registered /dev/fb1 as

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

2020-03-25 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Shane Francis >Sent: Wednesday, March 25, 2020 5:08 AM >To: dri-devel@lists.freedesktop.org >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org; bigbeesh...@gmail.com; >amd-gfx-requ...@lists.freedesktop.org; alexander.deuc...@amd.com;

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

2020-03-25 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Shane Francis >Sent: Wednesday, March 25, 2020 5:08 AM >To: dri-devel@lists.freedesktop.org >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org; bigbeesh...@gmail.com; >amd-gfx-requ...@lists.freedesktop.org; alexander.deuc...@amd.com;

RE: [PATCH v4 1/3] drm/prime: use dma length macro when mapping sg

2020-03-25 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Shane Francis >Sent: Wednesday, March 25, 2020 5:08 AM >To: dri-devel@lists.freedesktop.org >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org; bigbeesh...@gmail.com; >amd-gfx-requ...@lists.freedesktop.org; alexander.deuc...@amd.com;

Re: [PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout

2020-03-25 Thread Pekka Paalanen
On Wed, 25 Mar 2020 11:24:15 +0100 Neil Armstrong wrote: > Hi, > > On 25/03/2020 10:04, Simon Ser wrote: > > On Wednesday, March 25, 2020 9:50 AM, Neil Armstrong > > wrote: > > > >> Amlogic uses a proprietary lossless image compression protocol and format > >> for their hardware video

Re: [PATCHv2 07/56] drm/omap: dsi: add generic transfer function

2020-03-25 Thread Tomi Valkeinen
On 25/02/2020 01:20, Sebastian Reichel wrote: This prepares the driver for becoming a mipi_dsi_host implementation, which provides a generic transfer function instead of all kind of different read/write functions. The implementation will become more elegant after unexporting the specific

RE: [PATCH v4 0/3] AMDGPU / RADEON / DRM Fix mapping of user pages

2020-03-25 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Shane Francis >Sent: Wednesday, March 25, 2020 5:08 AM >To: dri-devel@lists.freedesktop.org >Cc: airl...@linux.ie; linux-ker...@vger.kernel.org; bigbeesh...@gmail.com; >amd-gfx-requ...@lists.freedesktop.org; alexander.deuc...@amd.com;

Re: [PATCHv2 06/56] drm/omap: constify write buffers

2020-03-25 Thread Tomi Valkeinen
On 25/02/2020 01:20, Sebastian Reichel wrote: The write buffers are not modified, so they can be constant. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 24 drivers/gpu/drm/omapdrm/dss/omapdss.h | 10 +- 2 files changed, 17

Re: [PATCHv2 05/56] drm/omap: dsi: use MIPI_DSI_FMT_* instead of OMAP_DSS_DSI_FMT_*

2020-03-25 Thread Tomi Valkeinen
On 25/02/2020 01:20, Sebastian Reichel wrote: This replaces OMAP specific enum for pixel format with common implementation. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 49 +++

Re: [PATCHv2 00/56] drm/omap: Convert DSI code to use drm_mipi_dsi and drm_panel

2020-03-25 Thread Laurent Pinchart
Hi Tomi, On Wed, Mar 25, 2020 at 02:47:48PM +0200, Tomi Valkeinen wrote: > On 25/02/2020 01:20, Sebastian Reichel wrote: > > This updates the existing omapdrm DSI code, so that it uses > > common drm_mipi_dsi API and drm_panel. > > > > The patchset has been tested with Droid 4 using Linux

Re: [PATCHv2 00/56] drm/omap: Convert DSI code to use drm_mipi_dsi and drm_panel

2020-03-25 Thread Tomi Valkeinen
On 25/02/2020 01:20, Sebastian Reichel wrote: This updates the existing omapdrm DSI code, so that it uses common drm_mipi_dsi API and drm_panel. The patchset has been tested with Droid 4 using Linux console, X.org and Weston. The patchset is based on Laurent Pinchartl's patch series [0] and

Re: [PATCHv2 04/56] omap/drm: drop unused dsi.configure_pins

2020-03-25 Thread Tomi Valkeinen
On 25/02/2020 01:20, Sebastian Reichel wrote: The panel-dsi-cm's ddata->pin_config is always NULL, so this callback is never called. Instead the DSI encoder gets the pin configuration directly from DT. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11

Re: [PATCHv2 03/56] Revert "drm/omap: dss: Remove unused omap_dss_device operations"

2020-03-25 Thread Tomi Valkeinen
Hi, On 25/02/2020 01:20, Sebastian Reichel wrote: From: Sebastian Reichel This reverts commit 4ff8e98879e6eeae9d125dfcf3b642075d00089d. --- drivers/gpu/drm/omapdrm/dss/base.c | 26 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 drivers/gpu/drm/omapdrm/omap_encoder.c

[PATCH v4 1/2] dt-bindings: display: convert rockchip vop bindings to yaml

2020-03-25 Thread Johan Jonker
Current dts files with 'vop' nodes are manually verified. In order to automate this process rockchip-vop.txt has to be converted to yaml. Signed-off-by: Johan Jonker --- Changes v4: Change description Replace compatible oneOf by enum Change interrupts description Remove resets minItems

[PATCH RFC 0/1] Support virtio objects in virtio-video driver

2020-03-25 Thread Keiichi Watanabe
This implements a feature in virtio-video driver to use exported virtio objects as video buffers. So, the users will be able to use resources allocated by other virtio devices such as virtio-gpu. The virtio protocol for this feature is proposed by [1]. This commit depends on the following

[PATCH v4 2/2] dt-bindings: display: rockchip-vop: add additional properties

2020-03-25 Thread Johan Jonker
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 'assigned-clocks' and 'assigned-clock-rates' for rk3399 and 'power-domains' for most Rockchip Socs in 'vop' nodes, so

[PATCH RFC 1/1] drivers: media: virtio: Support virtio objects in virtio-video driver

2020-03-25 Thread Keiichi Watanabe
This patch makes the virtio-video driver use virtio objects as DMA buffers. So, users will beable to import resources exported by other virtio devices such as virtio-gpu. Currently, we assumes that only one virtio object for each v4l2_buffer format even if it's for a multiplanar format.

Re: [PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout

2020-03-25 Thread Neil Armstrong
Hi, On 25/03/2020 10:04, Simon Ser wrote: > On Wednesday, March 25, 2020 9:50 AM, Neil Armstrong > wrote: > >> Amlogic uses a proprietary lossless image compression protocol and format >> for their hardware video codec accelerators, either video decoders or >> video input encoders. >> >> This

Re: [PATCH] drm: manage drm_minor cleanup with drmm_

2020-03-25 Thread Daniel Vetter
On Tue, Mar 24, 2020 at 10:42 PM Sam Ravnborg wrote: > > On Tue, Mar 24, 2020 at 09:39:36PM +0100, Daniel Vetter wrote: > > The cleanup here is somewhat tricky, since we can't tell apart the > > allocated minor index from 0. So register a cleanup action first, and > > if the index allocation

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

2020-03-25 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2020-03-25 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 1/3] drm/prime: use dma length macro when mapping sg

2020-03-25 Thread Shane Francis
As dma_map_sg can reorganize scatter-gather lists in a way that can cause some later segments to be empty we should always use the sg_dma_len macro to fetch the actual length. This could now be 0 and not need to be mapped to a page or address array Signed-off-by: Shane Francis ---

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

2020-03-25 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 elemnets within a scatterlist table. There are 2 shortfalls in the current kernel. 1) AMDGPU / RADEON assumes that the requested and created scatterlist table lengths using from dma_map_sg

Re: [PATCH 22/51] drm: manage drm_minor cleanup with drmm_

2020-03-25 Thread Daniel Vetter
On Tue, Mar 24, 2020 at 10:36 PM Sam Ravnborg wrote: > > On Mon, Mar 23, 2020 at 03:49:21PM +0100, Daniel Vetter wrote: > > The cleanup here is somewhat tricky, since we can't tell apart the > > allocated minor index from 0. So register a cleanup action first, and > > if the index allocation

Re: [PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout

2020-03-25 Thread Simon Ser
On Wednesday, March 25, 2020 9:50 AM, Neil Armstrong wrote: > Amlogic uses a proprietary lossless image compression protocol and format > for their hardware video codec accelerators, either video decoders or > video input encoders. > > This introduces the Scatter Memory layout, means the header

[PATCH v4 3/8] drm/meson: overlay: setup overlay for Amlogic FBC

2020-03-25 Thread Neil Armstrong
Setup the Amlogic FBC decoder for the VD1 video overlay plane. The VD1 Amlogic FBC decoder is integrated in the pipeline like the YUV pixel reading/formatter but used a direct memory address instead. This adds support for the basic layout, and needs to calculate the content body size since the

[PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout

2020-03-25 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. This introduces the Scatter Memory layout, means the header contains IOMMU references to the compressed frames content to optimize

[PATCH v4 0/8] drm/meson: add support for Amlogic Video FBC

2020-03-25 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. It considerably reduces memory bandwidth while writing and reading frames in memory. The underlying storage is considered to be 3

[PATCH v4 2/8] drm/meson: add Amlogic Video FBC registers

2020-03-25 Thread Neil Armstrong
Add the registers of the VPU VD1 Amlogic FBC decoder module, and routing register. Tested-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_registers.h | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v4 1/8] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression

2020-03-25 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. It considerably reduces memory bandwidth while writing and reading frames in memory. The underlying storage is considered to be 3

[PATCH v4 8/8] drm/meson: overlay: setup overlay for Amlogic FBC Scatter Memory layout

2020-03-25 Thread Neil Armstrong
Setup the Amlogic FBC decoder for the VD1 video overlay plane to use read the FBC header as Scatter Memory layout reference. Tested-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_overlay.c | 48 +-- 1 file changed, 31 insertions(+), 17

[PATCH v4 6/8] drm/meson: overlay: setup overlay for Amlogic FBC Memory Saving mode

2020-03-25 Thread Neil Armstrong
Setup the Amlogic FBC decoder for the VD1 video overlay plane to use a different superblock size for the Memory Saving mode. Tested-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_overlay.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-)

Re: [PATCH v3 0/7] drm/meson: add support for Amlogic Video FBC

2020-03-25 Thread Neil Armstrong
On 24/03/2020 15:20, Neil Armstrong wrote: > Amlogic uses a proprietary lossless image compression protocol and format > for their hardware video codec accelerators, either video decoders or > video input encoders. > > It considerably reduces memory bandwidth while writing and reading > frames in

[PATCH v4 5/8] drm/fourcc: amlogic: Add modifier definitions for Memory Saving option

2020-03-25 Thread Neil Armstrong
Amlogic uses a proprietary lossless image compression protocol and format for their hardware video codec accelerators, either video decoders or video input encoders. An option exist changing the layout superblock size to save memory when using 8bit components pixels size. The layout options

[PATCH v4 4/8] drm/meson: crtc: handle commit of Amlogic FBC frames

2020-03-25 Thread Neil Armstrong
Since the VD1 Amlogic FBC decoder is now configured by the overlay driver, commit the right registers to decode the Amlogic FBC frame. Tested-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_crtc.c | 118 + 1 file changed, 88

[PATCH] drm/panel: boe-tv101wum-n16: extend LCD support list

2020-03-25 Thread David Lu
Add entries for BOE TV105WUM-NW0 10.5" WUXGA TFT LCD panel. Signed-off-by: David Lu Change-Id: I5b1cef259de5fb498220dcc47baa035083c41667 --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31 +++ 1 file changed, 31 insertions(+) diff --git

[PATCH] dt-bindings: boe, tv101wum-n16: Add compatible for boe tv105wum-nw0.

2020-03-25 Thread David Lu
Add bindings documentation for BOE TV105WUM-NW0 10.5" WUXGA TFT LCD panel. Signed-off-by: David Lu Change-Id: I450c0e52aae080728d4794bdffc50bb0d2f39f40 --- .../devicetree/bindings/display/panel/boe,tv101wum-nl6.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v2 hmm 7/9] mm/hmm: do not unconditionally set pfns when returning EBUSY

2020-03-25 Thread Jason Gunthorpe
On Tue, Mar 24, 2020 at 08:37:46AM +0100, Christoph Hellwig wrote: > On Mon, Mar 23, 2020 at 10:14:55PM -0300, Jason Gunthorpe wrote: > > if (pte_none(pte)) { > > required_fault = hmm_pte_need_fault(hmm_vma_walk, orig_pfn, 0); > > if (required_fault) > >

[PATCH 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver

2020-03-25 Thread Angelo Ribeiro
Add Synopsys DesignWare IPK specific extensions for Synopsys DesignWare MIPI DSI Host driver. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: Gustavo Pimentel Cc: Joao Pinto Signed-off-by: Angelo Ribeiro --- drivers/gpu/drm/ipk/Kconfig | 9 +

[PATCH -next] drm/amdgpu/uvd7: remove unnecessary conversion to bool

2020-03-25 Thread Chen Zhou
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c index 0995378..20f10a5 100644

Re: [PATCH v4 4/4] RFC: drm/sun4i: Process alpha channel of most bottom layer

2020-03-25 Thread Jernej Škrabec
Hi! Dne ponedeljek, 02. marec 2020 ob 11:31:38 CET je Roman Stratiienko napisal(a): > Allwinner display engine blender consists of 3 pipelined blending units. > > PIPE0->\ > BLD0-\ > PIPE1->/ BLD1-\ > PIPE2->--/ BLD2->OUT > PIPE3->/ > > This pipeline produces

[PATCH 1/2] drm: bridge: adv7511: Enable SPDIF DAI

2020-03-25 Thread Bogdan Togorean
From: Bogdan Togorean ADV7511 support I2S or SPDIF as audio input interfaces. This commit enable support for SPDIF. Signed-off-by: Bogdan Togorean Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 1/4] dt-bindings: display: Add IPK DSI subsystem bindings

2020-03-25 Thread Angelo Ribeiro
Add dt-bindings for Synopsys DesignWare MIPI DSI Host and VPG (Video Pattern Generator) support in the IPK display subsystem. The Synopsys DesignWare IPK display video pipeline is composed by a DSI controller (snps,dw-ipk-dsi) and a VPG (snps,dw-ipk-vpg) as DPI stimulus. Typically is used the

[PATCH 2/2] drm/msm/dpu: add support for pcc color block in dpu driver

2020-03-25 Thread Kalyan Thota
This change adds support for color correction sub block for SC7180 device. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 77 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 9 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c| 49

[PATCH 2/2] drm: bridge: adv7511: Extend list of audio sample rates

2020-03-25 Thread Bogdan Togorean
From: Bogdan Togorean ADV7511 support sample rates up to 192kHz. CTS and N parameters should be computed accordingly so this commit extend the list up to maximum supported sample rate. Signed-off-by: Bogdan Togorean --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 12 1 file

[PATCH 0/4] drm: Add support for IPK DSI Host Driver

2020-03-25 Thread Angelo Ribeiro
This patch series adds support for the display subsystem in the Synopsys DesignWare IPK devices. The display pipeline is limited and does not have access to memory, the validation is done using a VPG (Video Pattern Generator), as DPI stimulus for the DW MIPI DSI Host. A Synopsys DesignWare MIPI

Re: [PATCH v4 4/4] RFC: drm/sun4i: Process alpha channel of most bottom layer

2020-03-25 Thread Maxime Ripard
On Mon, Mar 02, 2020 at 12:31:38PM +0200, Roman Stratiienko wrote: > Allwinner display engine blender consists of 3 pipelined blending units. > > PIPE0->\ > BLD0-\ > PIPE1->/ BLD1-\ > PIPE2->--/ BLD2->OUT > PIPE3->/ > > This pipeline produces incorrect composition

Re: [PATCH v2 0/5] Add support for Topwise A721 tablet

2020-03-25 Thread Maxime Ripard
Hi, On Fri, Mar 20, 2020 at 12:21:31PM +0100, Pascal Roeleven wrote: > This series add support for the Topwise A721 tablet and it's display. > It is an old tablet (around 2012) but it might be useful as reference > as the devicetree is pretty complete. It looks good to me for the last 2 patches,

Re: [PATCH v2 hmm 2/9] mm/hmm: return the fault type from hmm_pte_need_fault()

2020-03-25 Thread Jason Gunthorpe
On Tue, Mar 24, 2020 at 08:27:12AM +0100, Christoph Hellwig wrote: > On Mon, Mar 23, 2020 at 10:14:50PM -0300, Jason Gunthorpe wrote: > > +enum { > > + HMM_NEED_FAULT = 1 << 0, > > + HMM_NEED_WRITE_FAULT = HMM_NEED_FAULT | (1 << 1), > > + HMM_NEED_ALL_BITS = HMM_NEED_FAULT |

[PATCH v3] fbdev: s1d13xxxfb: add missed unregister_framebuffer in remove

2020-03-25 Thread Chuhong Yuan
The driver calls register_framebuffer() in probe but does not call unregister_framebuffer() in remove. Rename current remove to __s1d13xxxfb_remove() for error handler. Then add a new remove to call unregister_framebuffer(). Signed-off-by: Chuhong Yuan --- Changes in v3: - Fix code style. -

Re: [PATCH v4 3/4] drm/sun4i: Add support for premulti/coverage blending mode handling

2020-03-25 Thread Jernej Škrabec
Hi! Dne ponedeljek, 02. marec 2020 ob 11:31:37 CET je Roman Stratiienko napisal(a): > Argument: > > All information below is author's understanding of underlying processes. > This information was obtained from DE2.0-3.0 datasheet analysis and > analysis of different DRM driver source code and

[PATCH v4 0/3] drm: Add support for Chrontel CH7033 VGA/DVI Encoder

2020-03-25 Thread Lubomir Rintel
Hi, chained to this message is another spin of a driver for CH7033. Only cosmetic changes since the previous version [1]. Please take a look. [1] https://lore.kernel.org/lkml/20200314101627.336939-1-lkund...@v3.sk/ Thanks, Lubo ___ dri-devel

[PATCH v4 3/3] drm/bridge: chrontel-ch7033: Add a new driver

2020-03-25 Thread Lubomir Rintel
This is a driver for video encoder with VGA and DVI/HDMI outputs. There is no documentation for the chip -- the operation was guessed from what was sniffed on a Dell Wyse 3020 ThinOS terminal, the register names come from the ch7035 driver in Mediatek's GPL code dump. Only bare minimum is

[PATCH v4 2/3] dt-bindings: display: Add Chrontel CH7033 Video Encoder binding

2020-03-25 Thread Lubomir Rintel
Add binding document for the Chrontel CH7033 VGA/DVI/HDMI Encoder. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v3: - Fixed the example so that it validates Changes since v1: - Dual licensed with BSD-2-Clause - Collected Rob's reviewed-by tag

Re: [PATCH 3/7] docs: fix broken references to text files

2020-03-25 Thread Stephen Boyd
Quoting Mauro Carvalho Chehab (2020-02-22 01:00:03) > Several references got broken due to txt to ReST conversion. > > Several of them can be automatically fixed with: > > scripts/documentation-file-ref-check --fix > > Signed-off-by: Mauro Carvalho Chehab > --- >

[PATCH 2/4] drm: ipk: Add DRM driver for DesignWare IPK DSI

2020-03-25 Thread Angelo Ribeiro
Add support for Synopsys DesignWare VPG (Video Pattern Generator) and DRM driver for Synopsys DesignWare DSI Host IPK solution. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: Gustavo Pimentel Cc: Joao Pinto Signed-off-by: Angelo Ribeiro ---

Re: [PATCH v2 hmm 4/9] mm/hmm: remove HMM_FAULT_SNAPSHOT

2020-03-25 Thread Jason Gunthorpe
On Tue, Mar 24, 2020 at 08:33:39AM +0100, Christoph Hellwig wrote: > > > > +/* > > + * If the valid flag is masked off, and default_flags doesn't set valid, > > then > > + * hmm_pte_need_fault() always returns 0. > > + */ > > +static bool hmm_can_fault(struct hmm_range *range) > > +{ > > +

[PATCH v4 1/3] dt-bindings: Add vendor prefix for Chrontel, Inc.

2020-03-25 Thread Lubomir Rintel
Chrontel makes encoders for video displays and perhaps other stuff. Their web site is http://www.chrontel.com/. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring --- Changes since v1: - Collect Rob's ack Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2

[PATCH 1/2] drm/msm/dpu: add support for color processing blocks in dpu driver

2020-03-25 Thread Kalyan Thota
This change adds support to configure dspp blocks in the dpu driver. Macro description of the changes coming in this patch. 1) Add dspp definitions in the hw catalog. 2) Add capability to reserve dspp blocks in the display data path. 3) Attach the reserved block to the encoder. Signed-off-by:

[PATCH v4] video: fbdev: arcfb: add missed free_irq and fix the order of request_irq

2020-03-25 Thread Chuhong Yuan
The driver forgets to free irq in remove which is requested in probe. Add the missed call to fix it. Also, the position of request_irq() in probe should be put before register_framebuffer(). Signed-off-by: Chuhong Yuan --- Changes in v4: - Use info->par->irq instead of par->irq to avoid

[PATCH 4/4] MAINTAINERS: Add IPK MIPI DSI Host driver entry

2020-03-25 Thread Angelo Ribeiro
Creates entry for Synopsys DesignWare IPK MIPI DSI host driver and adds myself as maintainer. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: Gustavo Pimentel Cc: Joao Pinto Signed-off-by: Angelo Ribeiro --- MAINTAINERS | 8 1 file changed, 8

Re: [PATCH v3] video: fbdev: vesafb: add missed release_region

2020-03-25 Thread Chuhong Yuan
On Fri, Mar 20, 2020 at 8:01 PM Bartlomiej Zolnierkiewicz wrote: > > > On 3/10/20 3:35 AM, Chuhong Yuan wrote: > > The driver forgets to free the I/O region in remove and probe > > failure. > > Add the missed calls to fix it. > > > > Signed-off-by: Chuhong Yuan > > --- > > Changes in v3: > > -

  1   2   >