Re: [PATCH v6 10/24] drm/imx: imx-ldb: Provide ddc symlink in connector's sysfs

2019-07-29 Thread Philipp Zabel
On Fri, 2019-07-26 at 19:23 +0200, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz Acked-by: Philipp Zabel Thanks! regards Philipp > --- > drivers/gpu/drm/imx/imx-ldb.c | 7 --- >

Re: [PATCH v6 11/24] drm/imx: imx-tve: Provide ddc symlink in connector's sysfs

2019-07-29 Thread Philipp Zabel
On Fri, 2019-07-26 at 19:23 +0200, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz Acked-by: Philipp Zabel regards Philipp > --- > drivers/gpu/drm/imx/imx-tve.c | 6 -- > 1 file changed,

Re: [PATCH v2 5/8] drm/etnaviv: rework MMU handling

2019-07-29 Thread Philipp Zabel
_size(struct etnaviv_iommu *iommu) > +void etnaviv_iommu_dump(struct etnaviv_iommu_context *context, void *buf) > { > - return iommu->domain->ops->dump_size(iommu->domain); > + context->global->ops->dump(context, buf); > } > > -void etnaviv_iommu_dump(struct etnaviv_iommu *iommu, void *buf) > +extern const struct etnaviv_iommu_ops etnaviv_iommuv1_ops; > +extern const struct etnaviv_iommu_ops etnaviv_iommuv2_ops; These should be moved into a header that is also included where the ops are defined. Apart from this, Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 6/8] drm/etnaviv: split out starting of FE idle loop

2019-07-29 Thread Philipp Zabel
prefetch = etnaviv_buffer_init(gpu); > - > gpu_write(gpu, VIVS_HI_INTR_ENBL, ~0U); > - etnaviv_gpu_start_fe(gpu, etnaviv_cmdbuf_get_va(&gpu->buffer, > - &gpu->cmdbuf_mapping), prefetch); > + > + etnaviv_gpu_start_fe_idleloop(gpu); > } >

Re: [PATCH v2 7/8] drm/etnaviv: provide MMU context to etnaviv_gem_mapping_get

2019-07-29 Thread Philipp Zabel
iv/etnaviv_gem_submit.c > index 3f4f6ab388de..267ff5863e5d 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c > @@ -224,7 +224,7 @@ static int submit_pin_objects(struct etnaviv_gem_submit > *submit) > struct etnaviv_vra

Re: [PATCH v2 8/8] drm/etnaviv: implement per-process address spaces on MMUv2

2019-07-30 Thread Philipp Zabel
work and has been terminated. Only when the GPU is runtime > suspended or switches to another clients MMU context is the old context > freed up. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel I just have two nitpicks below: > --- > drivers/gpu/drm/etna

Re: [PATCH 07/13] drm/mediatek: Provide ddc symlink in hdmi connector sysfs directory

2019-08-01 Thread Philipp Zabel
On Wed, 2019-07-31 at 18:58 +0200, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Reviewed-by: Philipp Zabel regards Philipp > ---

Re: [PATCH] etnaviv: fix whitespace errors

2019-08-01 Thread Philipp Zabel
Hi Christian, On Wed, 2019-07-31 at 23:29 +0200, Christian Gmeiner wrote: > Signed-off-by: Christian Gmeiner > --- > drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c > b/drivers/gpu/

Re: [PATCH] drm/imx: Drop unused imx-ipuv3-crtc.o build

2019-08-02 Thread Philipp Zabel
r contents of imx-ipuv3-crtc.o are built via imxdrm-objs. So there's no need to keep an extra entry with a non existing config value (CONFIG_DRM_IMX_IPUV3). Fixes: 3d1df96ad468 ("drm/imx: merge imx-drm-core and ipuv3-crtc in one module") Signed-off-by: Guido G

Re: [PATCH v2 2/8] drm/etnaviv: split out cmdbuf mapping into address space

2019-08-02 Thread Philipp Zabel
Hi Guido, On Fri, 2019-08-02 at 15:39 +0200, Guido Günther wrote: > Hi Lucas, > On Fri, Jul 05, 2019 at 07:17:21PM +0200, Lucas Stach wrote: > > This allows to decouple the cmdbuf suballocator create and mapping > > the region into the GPU address space. Allowing multiple AS to share > > a single

Re: [PATCH] gpu: ipu-v3: Fix dev_dbg frequency output

2022-02-16 Thread Philipp Zabel
gt; +   abs(error - 1000) / 10, abs(error - 1000) % 10); >   > /* Allow a 1% error */ > if (error < 1010 && error >= 990) { Rounding (always down) is still a bit unintuitive, but this certainly improves things. Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v17 03/21] dt-bindings: mediatek: add ethdr definition for mt8195

2022-04-25 Thread Philipp Zabel
1.2 > +--- > +$id: http://devicetree.org/schemas/display/mediatek/mediatek,ethdr.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek Ethdr Device Tree Bindings > + > +maintainers: > + - Chun-Kuang Hu > + - Philipp Zabel > + > +descript

Re: [PATCH v17 13/21] drm/mediatek: add display merge async reset control

2022-04-25 Thread Philipp Zabel
On Sa, 2022-04-16 at 10:07 +0800, Nancy.Lin wrote: > Add merge async reset control in mtk_merge_stop. Async hw doesn't do self > reset on each sof signal(start of frame), so need to reset the async to > clear the hw status for the next merge start. > > Signed-off-by: Nancy.Lin > Reviewed-by: CK H

Re: [PATCH v17 14/21] drm/mediatek: add ETHDR support for MT8195

2022-04-25 Thread Philipp Zabel
On Sa, 2022-04-16 at 10:07 +0800, Nancy.Lin wrote: > ETHDR is a part of ovl_adaptor. > ETHDR is designed for HDR video and graphics conversion in the external > display path. It handles multiple HDR input types and performs tone > mapping, color space/color format conversion, and then combine > dif

[GIT PULL] drm/imx: various cleanups

2022-05-04 Thread Philipp Zabel
Hi Dave, Daniel, The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17: Linux 5.18-rc1 (2022-04-03 14:08:21 -0700) are available in the Git repository at: git://git.pengutronix.de/pza/linux.git tags/imx-drm-next-2022-05-04 for you to fetch changes up to 927d8fd465adba

Re: [PATCH v4 5/7] drm/msm/a6xx: Ensure CX collapse during gpu recovery

2022-08-18 Thread Philipp Zabel
dev, > if (IS_ERR(gpu->gpu_cx)) > gpu->gpu_cx = NULL; > > + gpu->cx_collapse = devm_reset_control_get_optional(&pdev->dev, > + "cx_collapse"); Please use devm_reset_control_get_optional_exclusive() instead. With that, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 03/71] drm/encoder: Introduce drmm_encoder_init

2022-06-29 Thread Philipp Zabel
On Mi, 2022-06-29 at 14:34 +0200, Maxime Ripard wrote: > The DRM-managed function to register an encoder is > drmm_encoder_alloc() and its variants, which will allocate the underlying > structure and initialisation the encoder. > > However, we might want to separate the structure creation and the

Re: [PATCH v24 01/10] dt-bindings: reset: mt8195: add vdosys1 reset control bit

2022-06-30 Thread Philipp Zabel
f Kozlowski > Tested-by: AngeloGioacchino Del Regno > Acked-by: Philipp Zabel regards Philipp

Re: [PATCH] drm: bridge: dw_hdmi: only trigger hotplug event on real link state change

2022-06-30 Thread Philipp Zabel
On Mo, 2022-06-27 at 14:47 +0200, Lucas Stach wrote: There are two events that signal a real change of the link state: HPD going high means the sink is newly connected or wants the source to re-read the EDID, RX sense going low is a indication that the link has been disconnected. Ignore the other

[GIT PULL] drm/imx: error handling and debug output fixes

2022-04-06 Thread Philipp Zabel
Hi Dave, Daniel, The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17: Linux 5.18-rc1 (2022-04-03 14:08:21 -0700) are available in the Git repository at: git://git.pengutronix.de/pza/linux.git tags/imx-drm-fixes-2022-04-06 for you to fetch changes up to 070a88fd4a03f

Re: [PATCH v0 07/10] phy: freescale: add Samsung HDMI PHY

2022-04-07 Thread Philipp Zabel
Hi Lucas, On Mi, 2022-04-06 at 18:01 +0200, Lucas Stach wrote: > This adds the driver for the Samsung HDMI PHY found on the > i.MX8MP SoC. > > Heavily based on the PHY implementation in the downstream kernel > written by Sandor Yu , but also cleaned up > quite a bit and extended to support runtim

Re: [PATCH v0 03/10] drm/imx: add bridge wrapper driver for i.MX8MP DWC HDMI

2022-04-07 Thread Philipp Zabel
On Mi, 2022-04-06 at 18:01 +0200, Lucas Stach wrote: > Add a simple wrapper driver for the DWC HDMI bridge driver that > implements the few bits that are necessary to abstract the i.MX8MP > SoC integration. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v0 05/10] drm/imx: add driver for HDMI TX Parallel Video Interface

2022-04-07 Thread Philipp Zabel
On Mi, 2022-04-06 at 18:01 +0200, Lucas Stach wrote: > This IP block is found in the HDMI subsystem of the i.MX8MP SoC. It has a > full timing generator and can switch between different video sources. On > the i.MX8MP however the only supported source is the LCDIF. The block > just needs to be powe

Re: [PATCH v6 2/6] clk: qcom: Allow custom reset ops

2022-09-01 Thread Philipp Zabel
Hi Akhil, On Wed, Aug 31, 2022 at 10:48:23AM +0530, Akhil P Oommen wrote: > Allow soc specific clk drivers to specify a custom reset operation. We > will use this in an upcoming patch to allow gpucc driver to specify a > differet reset operation for cx_gdsc. > > Signed-off-by: Akhil P Oommen > R

Re: [PATCH v6 3/6] clk: qcom: gdsc: Add a reset op to poll gdsc collapse

2022-09-01 Thread Philipp Zabel
On Wed, Aug 31, 2022 at 10:48:24AM +0530, Akhil P Oommen wrote: > Add a reset op compatible function to poll for gdsc collapse. > > Signed-off-by: Akhil P Oommen > Reviewed-by: Dmitry Baryshkov > --- > > (no changes since v2) > > Changes in v2: > - Minor update to function prototype > > driv

Re: [PATCH v6 4/6] clk: qcom: gpucc-sc7280: Add cx collapse reset support

2022-09-01 Thread Philipp Zabel
On Wed, Aug 31, 2022 at 10:48:25AM +0530, Akhil P Oommen wrote: > Allow a consumer driver to poll for cx gdsc collapse through Reset > framework. > > Signed-off-by: Akhil P Oommen > Reviewed-by: Dmitry Baryshkov > --- > > (no changes since v3) > > Changes in v3: > - Convert 'struct qcom_reset_

Re: [PATCH] drm/etnaviv: don't truncate physical page address

2022-09-15 Thread Philipp Zabel
Hi Lucas, On Do, 2022-09-15 at 16:19 +0200, Lucas Stach wrote: > While the interface for the MMU mapping takes phys_addr_t to hold a > full 64bit address when necessary and MMUv2 is able to map physical > addresses with up to 40bit, etnaviv_iommu_map() truncates the address > to 32bits. Fix this b

Re: [PATCH v2] drm/etnaviv: don't truncate physical page address

2022-09-16 Thread Philipp Zabel
his by using the correct type. > > Fixes: 931e97f3afd8 ("drm/etnaviv: mmuv2: support 40 bit phys address") > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: Overlay support in the i.MX7 display

2019-11-05 Thread Philipp Zabel
Hi Laurent, On Fri, 2019-11-01 at 10:43 +0200, Laurent Pinchart wrote: > Hello, > > I'm looking at the available options to support overlays in the display > pipeline of the i.MX7. The LCDIF itself unfortunaltey doesn't support > overlays, the feature being implemented in the PXP. A driver for th

Re: [PATCH v7] unstable/drm-lease: DRM lease protocol support

2019-10-18 Thread Philipp Zabel
On Fri, 2019-10-18 at 10:43 -0400, Drew DeVault wrote: > Regarding hotplugging, the Wayland compositor is probably keeping track > of hotplugs itself and withdrawing/offering connectors as appropriate. > > Also, when the lease is issued, the compositor withdraws that connector. > For the client, up

Re: [PATCH v3 3/4] dt-bindings: display: imx: add bindings for DCSS

2020-02-27 Thread Philipp Zabel
Hi Laurentiu, On Fri, 2019-12-06 at 11:52 +0200, Laurentiu Palcu wrote: > Add bindings for iMX8MQ Display Controller Subsystem. > > Signed-off-by: Laurentiu Palcu > Reviewed-by: Rob Herring > --- > .../bindings/display/imx/nxp,imx8mq-dcss.yaml | 86 > ++ > 1 file chan

Re: [PATCH 17/17] drm/imx: fix drm_mode_config_cleanup race condition

2020-03-02 Thread Philipp Zabel
way would be great if you at least check out what the new drm > managed resource stuff would mean for imx here, since you're blowing > on devm_kzalloc exactly in the way that I'm trying to get sorted now > (without tons of explicit kfree() everywhere). I concur.

Re: [PATCH 25/89] reset: simple: Add reset callback

2020-03-04 Thread Philipp Zabel
le driver data. > > Cc: Philipp Zabel > Signed-off-by: Maxime Ripard This shoulod be done in such a way that simple reset drivers which do not set the reset delay continue to return -ENOTSUPP from reset_control_reset(). > --- > drivers/reset/reset-simple.c | 21 +

Re: [PATCH v3 2/4] drm/imx: Add initial support for DCSS on iMX8MQ

2020-03-06 Thread Philipp Zabel
Hi Laurentiu, On Fri, 2020-03-06 at 11:58 +0200, Laurentiu Palcu wrote: > On Wed, Feb 26, 2020 at 02:19:11PM +0100, Lucas Stach wrote: [...] > > > +/* This function will be called from interrupt context. */ > > > +void dcss_scaler_write_sclctrl(struct dcss_scaler *scl) > > > +{ > > > + int chnum;

Re: [PATCH] drm/imx: parallel-display: Adjust bus_flags and bus_format handling

2020-03-09 Thread Philipp Zabel
if the DI provides no formats. Similarly for bus_flags, which > are set from imxpd->bus_flags only if the DI provides no formats. > > Signed-off-by: Marek Vasut > Cc: Daniel Vetter > Cc: David Airlie > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: Philipp Zabel > Cc: S

Re: [PATCH V2] drm/imx: parallel-display: Adjust bus_flags handling

2020-03-11 Thread Philipp Zabel
> Cc: Daniel Vetter > Cc: David Airlie > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: Philipp Zabel > Cc: Sascha Hauer > Cc: Shawn Guo > Cc: linux-arm-ker...@lists.infradead.org > To: dri-devel@lists.freedesktop.org > --- > V2: Rebase on next, upda

Re: [PATCH v9 07/12] drm/imx: pd: Use bus format/flags provided by the bridge when available

2020-01-27 Thread Philipp Zabel
imxpd->bus_flags; > + > + bus_fmt = bridge_state->input_bus_cfg.format; > + if (!imx_pd_format_supported(bus_fmt)) > + return -EINVAL; > + > + if (bus_flags & > + ~(DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_DE_HIGH | > +

Re: [PATCH v3 15/21] drm/imx: pd: Use bus format/flags provided by the bridge when available

2019-12-03 Thread Philipp Zabel
Hi Boris, On Wed, 2019-10-23 at 17:45 +0200, Boris Brezillon wrote: > Now that bridges can expose the bus format/flags they expect, we can > use those instead of the relying on the display_info provided by the > connector (which is only valid if the encoder is directly connected > to bridge elemen

Re: [PATCH v2 1/3] arm64: imx8mq: add imx8mq iomux-gpr field defines

2019-08-22 Thread Philipp Zabel
On Wed, 2019-08-21 at 19:42 +0200, Guido Günther wrote: > Hi, > On Tue, Aug 13, 2019 at 01:07:52PM +0200, Arnd Bergmann wrote: > > On Tue, Aug 13, 2019 at 12:10 PM Guido Günther wrote: > > > On Tue, Aug 13, 2019 at 10:08:44AM +0200, Arnd Bergmann wrote: > > > > On Fri, Aug 9, 2019 at 6:24 PM Guido

[GIT PULL] drm/imx: IPUv3 image converter fixes and improvements

2019-08-23 Thread Philipp Zabel
. Guido Günther (1): drm/imx: Drop unused imx-ipuv3-crtc.o build Philipp Zabel (9): gpu: ipu-v3: enable remaining 32-bit RGB V4L2 pixel formats gpu: ipu-v3: image-convert: enable V4L2_PIX_FMT_BGRX32 and _RGBX32 gpu: ipu-v3: image

Re: [PATCH v2 17/21] drm/imx: pd: Use bus format/flags provided by the bridge when available

2019-08-27 Thread Philipp Zabel
Hi Boris, On Mon, 2019-08-26 at 17:26 +0200, Boris Brezillon wrote: > Now that bridges can expose the bus format/flags they expect, we can > use those instead of the relying on the display_info provided by the > connector (which is only valid if the encoder is directly connected > to bridge elemen

Re: [PATCH v2 17/21] drm/imx: pd: Use bus format/flags provided by the bridge when available

2019-08-27 Thread Philipp Zabel
On Tue, 2019-08-27 at 10:43 +0200, Boris Brezillon wrote: [...] > > > +static void > > > +imx_pd_bridge_atomic_get_output_bus_fmts(struct drm_bridge *bridge, > > > + struct drm_bridge_state *bridge_state, > > > + struct drm_crtc_stat

Re: [PATCH v2 17/21] drm/imx: pd: Use bus format/flags provided by the bridge when available

2019-08-27 Thread Philipp Zabel
On Tue, 2019-08-27 at 11:57 +0200, Boris Brezillon wrote: > On Tue, 27 Aug 2019 11:23:02 +0200 > Philipp Zabel wrote: > > On Tue, 2019-08-27 at 10:43 +0200, Boris Brezillon wrote: [...] > > Absolutely. This was just a cosmetic remark. I'm suggesting to put this > > b

Re: [PATCH v2 17/21] drm/imx: pd: Use bus format/flags provided by the bridge when available

2019-08-27 Thread Philipp Zabel
On Tue, 2019-08-27 at 15:20 +0200, Boris Brezillon wrote: > On Tue, 27 Aug 2019 14:51:20 +0200 > Philipp Zabel wrote: > > > [...] > > > > > I can do that if you like. Note that we are forwarding > > > > > the ->output_bus_cfg.fmt value to the I

Re: [PATCH 1/3] drm/etnaviv: skip command stream validation on PPAS capable GPUs

2019-08-05 Thread Philipp Zabel
te_one(gpu, stream, args->stream_size / 4, > + if ((priv->mmu_global->version != ETNAVIV_IOMMU_V2) && > + !etnaviv_cmd_validate_one(gpu, stream, args->stream_size / 4, > relocs, args->nr_relocs)) { >

Re: [PATCH 2/3] drm/etnaviv: allow to request specific virtual address for gem mapping

2019-08-05 Thread Philipp Zabel
h Reviewed-by: Philipp Zabel > --- > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 2 +- > drivers/gpu/drm/etnaviv/etnaviv_gem.h | 2 +- > drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 16 ++-- > drivers/gpu/drm/etnaviv/etnaviv_mmu.h | 2 +- > 4 files changed, 17 insertions(+

Re: [PATCH 3/3] drm/etnaviv: implement softpin

2019-08-05 Thread Philipp Zabel
0x02 The presumed field of drm_etnaviv_gem_submit_bo has an elaborate comment on its supposed pre-softpin use in etnaviv_drm.h, maybe that should be updated. Otherwise, Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v1 04/16] drm/imx: fix opencoded use of drm_panel_*

2019-08-05 Thread Philipp Zabel
re is no direct replacement. > We may be able to just check that drm_panel_get_modes() return > 0, > but as this is not the same functionality it is left for later. > > Signed-off-by: Sam Ravnborg > Cc: Philipp Zabel > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fa

Re: [PATCH v1 01/16] drm/bridge: tc358767: fix opencoded use of drm_panel_*

2019-08-05 Thread Philipp Zabel
} > + count = drm_panel_get_modes(tc->panel); > + if (count > 0) > + return count; > > edid = drm_get_edid(connector, &tc->aux.ddc); Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 14/21] drm/dp: Use drm_dp_aux_rd_interval()

2019-08-08 Thread Philipp Zabel
On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > From: Thierry Reding > > Make use of the newly added drm_dp_aux_rd_interval() helper in existing > DP link training helpers and add comments about minimum required delays > mandated by the DP specification. This patch does not add any co

Re: [PATCH 20/21] drm/dp: Fix a couple of whitespace issues

2019-08-08 Thread Philipp Zabel
On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > From: Thierry Reding > > Remove a gratuituous blank line in one place and add a blank line in > another to improve readability. Seems like the comment description is outdated here as well. > Signed-off-by: Thierry Reding > --- > drive

Re: [PATCH 06/21] drm/dp: Probe link using existing parsing helpers

2019-08-08 Thread Philipp Zabel
On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > From: Thierry Reding > > Use existing parsing helpers to probe a DisplayPort link. > > Signed-off-by: Thierry Reding Reviewed-by: Philipp Zabel regards Philipp ___ dri-dev

Re: [PATCH 07/21] drm/dp: Read fast training capability from link

2019-08-08 Thread Philipp Zabel
> > Signed-off-by: Thierry Reding Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 13/21] drm/dp: Do not busy-loop during link training

2019-08-08 Thread Philipp Zabel
On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > From: Thierry Reding > > Use microsecond sleeps for the clock recovery and channel equalization > delays during link training. The duration of these delays can be from > 100 us up to 16 ms. It is rude to busy-loop for that amount of time.

Re: [PATCH 15/21] drm/dp: Add helper to get post-cursor adjustments

2019-08-08 Thread Philipp Zabel
> Add a helper to extract these adjustments on a per-lane basis from the > DPCD link status. > > Signed-off-by: Thierry Reding Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https:/

Re: [PATCH] drm/etnaviv: dump only failing submit

2019-08-09 Thread Philipp Zabel
- iter.start); > > etnaviv_core_dump_registers(&iter, gpu); > - etnaviv_core_dump_mmu(&iter, gpu, mmu_size); > + etnaviv_core_dump_mmu(&iter, gpu->mmu, mmu_size); > + I'd split this into a separate commit, or at least mention it in the comm

Re: [PATCH v2 2/2] drm/etnaviv: pass mmu pointer to etnaviv_core_dump_mmu

2019-08-09 Thread Philipp Zabel
On Fri, 2019-08-09 at 14:03 +0200, Lucas Stach wrote: > This function does only need the mmu part part of the gpu struct. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list

Re: [PATCH v3 4/8] drm/etnaviv: replace MMU flush marker with flush sequence

2019-08-09 Thread Philipp Zabel
> check if the TLB is in sync with the current page table state for each GPU. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 8/8] drm/etnaviv: implement per-process address spaces on MMUv2

2019-08-09 Thread Philipp Zabel
work and has been terminated. Only when the GPU is runtime > suspended or switches to another clients MMU context is the old context > freed up. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp _

[PATCH 4/7] gpu: ipu-v3: image-convert: fix image downsize coefficients and tiling calculation

2019-08-14 Thread Philipp Zabel
termediate tile size limit is not exceeded, calculate the number of tiles from the maximum of intermediate size and output size and avoid unnecessary downsizing. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 49 -- 1 file changed, 31 inserti

[PATCH 6/7] gpu: ipu-v3: image-convert: move tile burst alignment out of loop

2019-08-14 Thread Philipp Zabel
Burst aligned input and output width can be calculated once per column, instead of repeatedly for each tile in the column. The same goes for input and output height per row. Also don't round up the same values repeatedly. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-conv

[PATCH 3/7] gpu: ipu-v3: image-convert: limit input seam position to hardware requirements

2019-08-14 Thread Philipp Zabel
Limit the input seam position to an interval that guarantees the tile size does not exceed 1024 pixels after the IC downsizing section and that space is left for the next tile. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 30 -- 1 file

[PATCH 1/7] gpu: ipu-v3: image-convert: fix output seam valid interval

2019-08-14 Thread Philipp Zabel
terval all but the left column / top row, to avoid returning position 0 as best fit. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu

[PATCH 5/7] gpu: ipu-v3: image-convert: bail on invalid tile sizes

2019-08-14 Thread Philipp Zabel
If we managed to create tiles sized 0x0 because of a bug in the seam calculation, return with an error message instead of letting the driver run into a division by zero later. Also check for tile sizes that are larger than supported by the hardware. Signed-off-by: Philipp Zabel --- drivers/gpu

[PATCH 2/7] gpu: ipu-v3: image-convert: move output seam valid interval calculation into find_best_seam

2019-08-14 Thread Philipp Zabel
This reduces code duplication and allows to easily calculate the valid interval for the input seam position in the same place. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 30 +++--- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a

[PATCH 7/7] gpu: ipu-v3: image-convert: only sample into the next tile if necessary

2019-08-14 Thread Philipp Zabel
The first pixel of the next tile is only sampled by the hardware if the fractional input position corresponding to the last written output pixel is not an integer position. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH 2/7] gpu: ipu-v3: image-convert: move output seam valid interval calculation into find_best_seam

2019-08-14 Thread Philipp Zabel
On Wed, 2019-08-14 at 13:54 +0200, Philipp Zabel wrote: > This reduces code duplication and allows to easily calculate the valid > interval for the input seam position in the same place. > > Signed-off-by: Philipp Zabel > --- > drivers/gpu/ipu-v3/ipu-im

[PATCH 1/2] gpu: ipu-v3: enable remaining 32-bit RGB V4L2 pixel formats

2019-08-14 Thread Philipp Zabel
Support is already implemented for the corresponding DRM formats, just hook up the remaining V4L2 pixel formats. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-common.c | 16 ++-- drivers/gpu/ipu-v3/ipu-cpmem.c | 26 +- 2 files changed, 35

[PATCH 2/2] gpu: ipu-v3: image-convert: enable V4L2_PIX_FMT_BGRX32 and _RGBX32

2019-08-14 Thread Philipp Zabel
Enable image converter support for V4L2_PIX_FMT_BGRX32 and V4L2_PIX_FMT_RGBX32 pixel formats. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image

Re: [PATCH 1/2] gpu: ipu-v3: enable remaining 32-bit RGB V4L2 pixel formats

2019-08-15 Thread Philipp Zabel
Hi Marco, On Thu, 2019-08-15 at 08:36 +0200, Marco Felsch wrote: > Hi Philipp, > > On 19-08-14 17:10, Philipp Zabel wrote: > > Support is already implemented for the corresponding DRM formats, > > just hook up the remaining V4L2 pixel formats. > > >

Re: [PATCH] dt-bindings: Drop redundant minItems/maxItems

2021-06-16 Thread Philipp Zabel
gt; --- a/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml > +++ b/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml > @@ -59,7 +59,6 @@ properties: >- description: SRC interrupt >- description: CPU WDOG interrupts out of SRC > minItems: 1 > -maxItems: 2 > >'#reset-cells': > const: 1 Acked-by: Philipp Zabel regards Philipp

Re: [PATCH 08/15] drm/: drm_gem_plane_helper_prepare_fb is now the default

2021-06-24 Thread Philipp Zabel
pu_plane_helper_funcs = { > - .prepare_fb = drm_gem_plane_helper_prepare_fb, > .atomic_check = ipu_plane_atomic_check, > .atomic_disable = ipu_plane_atomic_disable, > .atomic_update = ipu_plane_atomic_update, Acked-by: Philipp Zabel regards Philipp

Re: [PATCH v3 11/27] drm/imx: Don't set struct drm_device.irq_enabled

2021-06-24 Thread Philipp Zabel
andler and > - * drivers can well take care of their interrupts > - */ > - drm->irq_enabled = true; > - > /* >* set max width and height as default value(4096x4096). >* this value would be used to check framebuffer size limitation Acked-by: Philipp Zabel regards Philipp

Re: [PATCH 2/2] gpu: ipu-v3: pre: add dynamic buffer layout reconfiguration

2023-01-27 Thread Philipp Zabel
On Thu, Jan 26, 2023 at 07:47:44PM +0100, Lucas Stach wrote: > imx-drm doesn't mandate a modeset when the framebuffer modifier changes, > but currently the tile prefetch and resolve (TPR) configuration of the > PRE is only set up on the initial modeset. > > As the TPR configuration is double buffe

Re: [PATCH 1/2] gpu: ipu-v3: pre: move state into struct

2023-01-27 Thread Philipp Zabel
On Thu, Jan 26, 2023 at 07:47:43PM +0100, Lucas Stach wrote: > Move the variables tracking the current dynamic state into a struct > to separate it a bit better from the static device properties. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 2/3] drm/etnaviv: allocate unique ID per drm_file

2023-02-01 Thread Philipp Zabel
on rollover Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 3/3] drm/etnaviv: export client GPU usage statistics via fdinfo

2023-02-01 Thread Philipp Zabel
On Wed, Feb 01, 2023 at 04:26:09PM +0100, Lucas Stach wrote: > This exposes a accumulated GPU active time per client via the > fdinfo infrastructure. > > Signed-off-by: Lucas Stach > --- > v3: handle NPU cores Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v5 2/2] drm/imx/lcdc: Implement DRM driver for imx25

2023-03-06 Thread Philipp Zabel
= devm_drm_of_get_bridge(dev, dev->of_node, 0, 0); > + if (IS_ERR(lcdc->bridge)) > + return dev_err_probe(dev, PTR_ERR(lcdc->bridge), "Failed to > find bridge\n"); [...] > + ret = drm_bridge_attach(&lcdc->pipe.encoder, lcdc->bridge, NULL, > DRM_BRIDGE_ATTACH_NO_CONNECTOR); > + if (ret) > + return dev_err_probe(drm->dev, ret, "Cannot attach bridge\n"); The bridge could be a local variable. With those addressed, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 52/86] drm/imx: Direct include headers from drm_atomic_helper

2023-01-23 Thread Philipp Zabel
set of headers. > > Signed-off-by: Sam Ravnborg Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v2 2/3] drm/etnaviv: allocate unique ID per drm_file

2022-11-16 Thread Philipp Zabel
(0); > struct etnaviv_file_private *ctx; > int ret, i; > > @@ -56,6 +57,8 @@ static int etnaviv_open(struct drm_device *dev, struct > drm_file *file) > if (!ctx) > return -ENOMEM; > > + ctx->id = atomic_inc_return(&ident); I suppose we can ignore that this could theoretically wrap around. Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v2 3/3] drm/etnaviv: export client GPU usage statistics via fdinfo

2022-11-16 Thread Philipp Zabel
continue; > + > + if (gpu->identity.features & chipFeatures_PIPE_2D) > + cur = snprintf(engine, sizeof(engine), "2D"); > + if (gpu->identity.features & chipFeatures_PIPE_3D) > + cur = snprintf(eng

Re: [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool

2022-11-16 Thread Philipp Zabel
gpu_top does not do. > > Signed-off-by: Tvrtko Ursulin > Cc: Rob Clark > Cc: Christian König > Acked-by: Christian König Tested-by: Philipp Zabel on etnaviv with [1]. [1] https://lore.kernel.org/dri-devel/20220916151205.165687-3-l.st...@pengutronix.de/ regards Philipp

Re: [PATCH v1] dt-bindings: display: Convert fsl,imx-fb.txt to dt-schema

2022-11-16 Thread Philipp Zabel
On Thu, Nov 10, 2022 at 10:49:45AM +0100, Uwe Kleine-König wrote: [...] > new file mode 100644 > index ..c3cf6f92a766 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml > @@ -0,0 +1,110 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Re: [PATCH] drm/imx: Kconfig: Remove duplicated 'select DRM_KMS_HELPER' line

2022-11-01 Thread Philipp Zabel
pu/drm/imx/Kconfig > +++ b/drivers/gpu/drm/imx/Kconfig > @@ -4,7 +4,6 @@ config DRM_IMX >   select DRM_KMS_HELPER >   select VIDEOMODE_HELPERS >   select DRM_GEM_DMA_HELPER > - select DRM_KMS_HELPER >   depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM

Re: [PATCH] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid

2022-11-01 Thread Philipp Zabel
struct drm_display_mode *mode) >  { >   struct imx_tve *tve = con_to_tve(connector); >   unsigned long rate; Reviewed-by: Philipp Zabel and pushed to drm-misc-fixes. regards Philipp

[PATCH] drm/imx: ipuv3-plane: Fix overlay plane width

2022-11-08 Thread Philipp Zabel
plane width by limiting the rounding up to the primary plane. drm_rect_width(&new_state->src) >> 16 is the same value as drm_rect_width(dst) because there is no plane scaling support. Fixes: 94dfec48fca7 ("drm/imx: Add 8 pixel alignment fix") Signed-off-by: Philipp Zabel -

Re: [PATCH] drm/etnaviv: print MMU exception cause

2022-12-01 Thread Philipp Zabel
On Mi, 2022-11-30 at 19:53 +0100, Lucas Stach wrote: From: Christian Gmeiner The MMU tells us the fault status. While the raw register value is already printed, it's a bit more user friendly to translate the fault reasons into human readable format. Signed-off-by: Christian Gmeiner Signed-off-b

Re: [PATCH v3 2/2] drm/etnaviv: print MMU exception cause

2022-12-02 Thread Philipp Zabel
. > > Signed-off-by: Christian Gmeiner > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 1/2] drm/etnaviv: split fence lock

2022-12-02 Thread Philipp Zabel
nce seqno > monotonicity. Split the lock into those two functions. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 2/2] drm/etnaviv: convert user fence tracking to XArray

2022-12-02 Thread Philipp Zabel
On Thu, Dec 01, 2022 at 06:48:46PM +0100, Lucas Stach wrote: > This simplifies the driver code a bit, as XArray already provides > internal locking. IDRs are implemented using XArrays anyways, so > this drops one level of unneeded abstraction. > > Signed-off-by: Lucas Stach Revie

Re: [PATCH v2 2/2] drm/imx/lcdc: Implement DRM driver for imx21

2022-12-15 Thread Philipp Zabel
On Wed, Dec 14, 2022 at 12:59:21PM +0100, Uwe Kleine-König wrote: > From: Marian Cichy > > Add support for the LCD Controller found on i.MX21 and i.MX25. > > It targets to be a drop in replacement for the imx-fb driver. > > Signed-off-by: Marian Cichy > [ukl: Rebase to v6.1, various smaller fi

Re: [PATCH v2 4/5] drm/msm/a6xx: Remove cx gdsc polling using 'reset'

2022-12-16 Thread Philipp Zabel
On Fr, 2022-12-16 at 15:51 +0530, Akhil P Oommen wrote: > Remove the unused 'reset' interface which was supposed to help to ensure > that cx gdsc has collapsed during gpu recovery. This is was not enabled > so far due to missing gpucc driver support. Similar functionality using > genpd framework wi

Re: [PATCH] gpu: ipu-v3: common: Add of_node_put() for reference returned by of_graph_get_port_by_id()

2022-12-16 Thread Philipp Zabel
> Signed-off-by: Liang He Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] drm/imx: move IPUv3 driver into separate subdirectory

2022-12-16 Thread Philipp Zabel
into its own subdirectory to make the separation more clear. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] drm/imx: move IPUv3 driver into separate subdirectory

2022-12-16 Thread Philipp Zabel
On Fr, 2022-12-16 at 13:03 +0100, Uwe Kleine-König wrote: > On Fri, Nov 25, 2022 at 12:25:19PM +0100, Lucas Stach wrote: > > diff --git a/drivers/gpu/drm/imx/Makefile b/drivers/gpu/drm/imx/Makefile > > index b644deffe948..909622864716 100644 > > --- a/drivers/gpu/drm/imx/Makefile > > +++ b/drivers/

Re: [PATCH v3 2/2] drm/imx/lcdc: Implement DRM driver for imx21

2022-12-16 Thread Philipp Zabel
Hi Uwe, On Fr, 2022-12-16 at 18:50 +0100, Uwe Kleine-König wrote: > From: Marian Cichy > > Add support for the LCD Controller found on i.MX21 and i.MX25. > > It targets to be a drop in replacement for the imx-fb driver. > > Signed-off-by: Marian Cichy > [ukl: Rebase to v6.1, various smaller f

Re: [PATCH v3 0/2] drm/imx/lcdc: Implement DRM driver for imx21

2022-12-16 Thread Philipp Zabel
On Fr, 2022-12-16 at 18:50 +0100, Uwe Kleine-König wrote: > Hello, > > Changes since v2: > >  - added allOf as Krzysztof requested >  - reworked driver based on Philipp's comments >    (improved error handling, different selects, moved driver to a > subdirectory, >    header sorting, drm_err ins

Re: [PATCH] drm/imx: move IPUv3 driver into separate subdirectory

2022-12-16 Thread Philipp Zabel
On Fr, 2022-11-25 at 12:25 +0100, Lucas Stach wrote: > The IPUv3 and DCSS driver are two totally separate DRM drivers. Having > one of them live in the drivers/gpu/drm/imx toplevel directory and the > other one in the dcss/ subdirectory is confusing. Move the IPUv3 driver > into its own subdirector

Re: [PATCH] drm/imx: ipuv3-plane: Fix overlay plane width

2022-12-16 Thread Philipp Zabel
On Fr, 2022-12-02 at 16:43 +0100, Lucas Stach wrote: > Am Dienstag, dem 08.11.2022 um 15:14 +0100 schrieb Philipp Zabel: > > ipu_src_rect_width() was introduced to support odd screen resolutions > > such as 1366x768 by internally rounding up primary plane width to a > &

Re: [PATCH] gpu: ipu-v3: common: Add of_node_put() for reference returned by of_graph_get_port_by_id()

2022-12-16 Thread Philipp Zabel
On Mi, 2022-07-20 at 23:22 +0800, Liang He wrote: > In ipu_add_client_devices(), we need to call of_node_put() for > reference returned by of_graph_get_port_by_id() in fail path. > > Fixes: 17e052175039 ("gpu: ipu-v3: Do not bail out on missing optional port > nodes") > Signed-off-by: Liang He

<    1   2   3   4   5   6   7   8   9   10   >