Re: [PATCH v5 6/6] drm/vc4: hdmi: Support HDMI YUV output

2022-02-10 Thread Maxime Ripard
On Thu, Feb 03, 2022 at 10:07:22PM +0200, Ville Syrjälä wrote: > On Thu, Jan 27, 2022 at 03:10:21PM +0100, Maxime Ripard wrote: > > +/* > > + * Conversion between Full Range RGB and Full Range YUV444 using the > > + * BT.709 Colorspace > > + * > > + * [ -0.117208 -0.394207 0.511416 128 ] > > + *

Re: [PATCH 13/27] mm: move the migrate_vma_* device migration code into it's own file

2022-02-10 Thread Alistair Popple
I got the following build error: /data/source/linux/mm/migrate_device.c: In function ‘migrate_vma_collect_pmd’: /data/source/linux/mm/migrate_device.c:242:3: error: implicit declaration of function ‘flush_tlb_range’; did you mean ‘flush_pmd_tlb_range’? [-Werror=implicit-function-declaration]

[REPOST PATCH v4 11/13] drm/msm/disp/dpu1: Add DSC support in RM

2022-02-10 Thread Vinod Koul
This add the bits in RM to enable the DSC blocks Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 56 + drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 1 + 3 files changed,

[REPOST PATCH v4 12/13] drm/msm/dsi: add mode valid callback for dsi_mgr

2022-02-10 Thread Vinod Koul
Add a mode valid callback for dsi_mgr for checking mode being valid in case of DSC. For DSC the height and width needs to be multiple of slice, so we check that here Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/dsi/dsi.h | 2 ++

[REPOST PATCH v4 13/13] drm/msm/dsi: Add support for DSC configuration

2022-02-10 Thread Vinod Koul
When DSC is enabled, we need to configure DSI registers accordingly and configure the respective stream compression registers. Add support to calculate the register setting based on DSC params and timing information and configure these registers. Signed-off-by: Dmitry Baryshkov Signed-off-by:

[REPOST PATCH v4 07/13] drm/msm/disp/dpu1: Add support for DSC in encoder

2022-02-10 Thread Vinod Koul
We need to configure the encoder for DSC configuration and calculate DSC parameters for the given timing so this patch adds that support by adding dpu_encoder_prep_dsc() which is invoked when DSC is enabled. Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 164

[REPOST PATCH v4 08/13] drm/msm/disp/dpu1: Don't use DSC with mode_3d

2022-02-10 Thread Vinod Koul
We cannot enable mode_3d when we are using the DSC. So pass configuration to detect DSC is enabled and not enable mode_3d when we are using DSC We add a helper dpu_encoder_helper_get_dsc() to detect dsc enabled and pass this to .setup_intf_cfg() Signed-off-by: Vinod Koul ---

[REPOST PATCH v4 06/13] drm/msm/disp/dpu1: Add DSC support in hw_ctl

2022-02-10 Thread Vinod Koul
Later gens of hardware have DSC bits moved to hw_ctl, so configure these bits so that DSC would work there as well Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 11 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 2 ++ 2

[REPOST PATCH v4 10/13] drm/msm/disp/dpu1: Add support for DSC in topology

2022-02-10 Thread Vinod Koul
For DSC to work we typically need a 2,2,1 configuration. This should suffice for resolutions up to 4k. For more resolutions like 8k this won't work. Also, it is better to use 2 LMs and DSC instances as half width results in lesser power consumption as compared to single LM, DSC at full width.

[REPOST PATCH v4 04/13] drm/msm/disp/dpu1: Add support for DSC in pingpong block

2022-02-10 Thread Vinod Koul
In SDM845, DSC can be enabled by writing to pingpong block registers, so add support for DSC in hw_pp Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- .../gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 32 +++

[REPOST PATCH v4 05/13] drm/msm/disp/dpu1: Add DSC for SDM845 to hw_catalog

2022-02-10 Thread Vinod Koul
This adds SDM845 DSC blocks into hw_catalog Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 20 +++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

[REPOST PATCH v4 09/13] drm/msm: Add missing structure documentation

2022-02-10 Thread Vinod Koul
Somehow documentation for dspp was missed, so add that Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/msm_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index e7a312edfe67..6425a42e997c 100644 ---

Re: [PATCH v2 01/19] fbcon: delete a few unneeded forward decl

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: I didn't bother with any code movement to fix the others, these just got a bit in the way. v2: Rebase on top of Helge's reverts. Acked-by: Sam Ravnborg (v1) Reviewed-by: Geert Uytterhoeven (v1) Signed-off-by: Daniel Vetter Cc: Helge Deller Cc:

Re: [PATCH v3 3/4] drm/panel-edp: Add eDP sharp panel support

2022-02-10 Thread Dmitry Baryshkov
On 09/02/2022 11:55, Sankeerth Billakanti wrote: Add support for the 14" sharp,lq140m1jw46 eDP panel. Signed-off-by: Sankeerth Billakanti Please excuse my ignorance, is there any reason, why we can't use generic panel-edp here? --- Changes in v3: None

Re: [PATCH v5 19/23] arm64: dts: rockchip: rk3568-evb: Enable VOP2 and hdmi

2022-02-10 Thread Johan Jonker
On 2/10/22 12:47, Sascha Hauer wrote: > On Thu, Feb 10, 2022 at 01:10:32AM +0100, Johan Jonker wrote: >> Hi Sascha, >> >> Something with port and endpoint gives notifications. >> Somehow with the conversion of rockchip,dw-hdmi.txt to YAML not all SoC >> options were checked/covered (see rk3328

[PATCH 2/2] fbdev: Don't sort deferred-I/O pages by default

2022-02-10 Thread Thomas Zimmermann
Fbdev's deferred I/O sorts all dirty pages by default, which incurs a significant overhead. Make the sorting step optional and update the few drivers that require it. Use a FIFO list by default. Sorting pages by memory offset for deferred I/O performs an implicit bubble-sort step on the list of

[PATCH 0/2] fbdev: Significantly improve performance of fbdefio mmap

2022-02-10 Thread Thomas Zimmermann
Remove the bubble sort from fbdev defered I/O page tracking. Most drivers only want to know which pages have been written to. The exact order is not important. Tested on simpledrm. Thomas Zimmermann (2): fbdev/defio: Early-out if page is already enlisted fbdev: Don't sorting deferred-I/O

[PATCH 1/2] fbdev/defio: Early-out if page is already enlisted

2022-02-10 Thread Thomas Zimmermann
Return early if a page is already in the list of dirty pages for deferred I/O. This can be detected if the page's list head is not empty. Keep the list head initialized while the page is not enlisted to make this work reliably. Signed-off-by: Thomas Zimmermann ---

Re: [PATCH v2 03/19] fbcon: Introduce wrapper for console->fb_info lookup

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: Half of it is protected by console_lock, but the other half is a lot more awkward: Registration/deregistration of fbdev are serialized, but we don't really clear out anything in con2fb_map and so there's potential for use-after free mixups. First

Re: [PATCH v5 01/23] drm/encoder: Add of_graph port to struct drm_encoder

2022-02-10 Thread Sascha Hauer
On Wed, Feb 09, 2022 at 01:12:45PM +0200, Jani Nikula wrote: > On Wed, 09 Feb 2022, Sascha Hauer wrote: > > David, Daniel, > > > > I'll need a word from you regarding this patch. It's needed in patch > > 22/23 in this series. > > vop2_crtc_atomic_enable() needs to control the mux which routes the

Re: [PATCH v5 19/23] arm64: dts: rockchip: rk3568-evb: Enable VOP2 and hdmi

2022-02-10 Thread Sascha Hauer
On Thu, Feb 10, 2022 at 02:15:17PM +0100, Johan Jonker wrote: > > > On 2/10/22 12:47, Sascha Hauer wrote: > > On Thu, Feb 10, 2022 at 01:10:32AM +0100, Johan Jonker wrote: > >> Hi Sascha, > >> > >> Something with port and endpoint gives notifications. > >> Somehow with the conversion of

Re: [PATCH 14/27] mm: build migrate_vma_* for all configs with ZONE_DEVICE support

2022-02-10 Thread Alistair Popple
Thanks, it's also better than more stubbed functions. Reviewed-by: Alistair Popple On Thursday, 10 February 2022 6:28:15 PM AEDT Christoph Hellwig wrote: > This code will be used for device coherent memory as well in a bit, > so relax the ifdef a bit. > > Signed-off-by: Christoph Hellwig >

Re: [REPOST PATCH v4 02/13] drm/msm/dsi: Pass DSC params to drm_panel

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: When DSC is enabled, we need to pass the DSC parameters to panel driver as well, so add a dsc parameter in panel and set it when DSC is enabled Also, fetch and pass DSC configuration for DSI panels to DPU encoder, which will enable and configure DSC

[PULL] drm-intel-fixes

2022-02-10 Thread Tvrtko Ursulin
Hi Dave, Daniel, An assortment of fixes for -rc4, mostly display, one TTM migration fixup, one fix for platforms without runtime PM and one !x86 build fix. Regards, Tvrtko drm-intel-fixes-2022-02-10: - Build fix for non-x86 platforms after remap_io_mmapping changes. (Lucas De Marchi) -

Re: [PATCH 17/23] drm/sti: plane: Remove redundant zpos initialisation

2022-02-10 Thread Philippe CORNU
On 2/7/22 5:35 PM, Maxime Ripard wrote: The sti KMS driver will call drm_plane_create_zpos_property() with an init value depending on the plane type. Since the initial value wasn't carried over in the state, the driver had to set it again in sti_plane_reset() and rcar_du_vsp_plane_reset().

[PATCH 3/3] drm/msm/dpu: Update function parameter documentation

2022-02-10 Thread Vinod Koul
dpu_core_irq_callback_handler() function comments seem to have become stale and emit a warning: drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:147: warning: Function parameter or member 'dpu_kms' not described in 'dpu_core_irq_callback_handler'

[PATCH 1/3] drm/msm/dpu: Remove set but unused variables

2022-02-10 Thread Vinod Koul
We get warning: In function ‘dpu_encoder_virt_enable’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1145:33: warning: variable ‘priv’ set but not used [-Wunused-but-set-variable] 1145 | struct msm_drm_private *priv; In function ‘dpu_encoder_virt_disable’:

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-10 Thread David Hildenbrand
On 10.02.22 12:39, Alistair Popple wrote: > On Thursday, 10 February 2022 9:53:38 PM AEDT David Hildenbrand wrote: >> On 07.02.22 05:26, Alistair Popple wrote: >>> Currently any attempts to pin a device coherent page will fail. This is >>> because device coherent pages need to be managed by a

Re: [PATCH v5 19/23] arm64: dts: rockchip: rk3568-evb: Enable VOP2 and hdmi

2022-02-10 Thread Sascha Hauer
On Thu, Feb 10, 2022 at 01:10:32AM +0100, Johan Jonker wrote: > Hi Sascha, > > Something with port and endpoint gives notifications. > Somehow with the conversion of rockchip,dw-hdmi.txt to YAML not all SoC > options were checked/covered (see rk3328 and rk3568). > > Allow multiple vop: > port or

[PATCH 2/3] drm/msm/dpu: Update the comment style

2022-02-10 Thread Vinod Koul
The multi line comment style is wrongly used as kernel-doc comment. This gives a warning: drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:17: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst Update the style to fix this.

[PATCH v4 4/5] drm/panel-edp: Add eDP sharp panel support

2022-02-10 Thread Sankeerth Billakanti
Add support for the 14" sharp,lq140m1jw46 eDP panel. Signed-off-by: Sankeerth Billakanti --- 00 ff ff ff ff ff ff 00 4d 10 23 15 00 00 00 00 35 1e 01 04 a5 1f 11 78 07 de 50 a3 54 4c 99 26 0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 5a 87 80 a0 70 38 4d 40 30 20 35 00 35 ae

[PATCH v4 5/5] drm/msm/dp: Add driver support to utilize drm panel

2022-02-10 Thread Sankeerth Billakanti
Add support in the DP driver to utilize the custom eDP panels from drm/panels. An eDP panel is always connected to the platform. So, the eDP connector can be reported as always connected. The display mode will be sourced from the panel. The panel mode will be set after the link training is

[PATCH v4 2/5] arm64: dts: qcom: sc7280: Add support for eDP panel on CRD

2022-02-10 Thread Sankeerth Billakanti
Enable the eDP display panel support without HPD on sc7280 platform. Signed-off-by: Sankeerth Billakanti --- Changes in v4: - Create new patch for name changes - Remove output-low Changes in v3: - Sort the nodes alphabetically - Use - instead of _ as node names - Place the backlight

[PATCH v4 1/5] dt-bindings: display: simple: Add sharp LQ140M1JW46 panel

2022-02-10 Thread Sankeerth Billakanti
Add support for sharp LQ140M1JW46 display panel. It is a 14" eDP panel with 1920x1080 display resolution. Signed-off-by: Sankeerth Billakanti Acked-by: Rob Herring Reviewed-by: Stephen Boyd --- Changes in v4: None Changes in v3: None

[PATCH v4 3/5] arm64: dts: qcom: sc7280: rename edp_out label to mdss_edp_out

2022-02-10 Thread Sankeerth Billakanti
Rename the edp_out label in the sc7280 platform to mdss_edp_out. Signed-off-by: Sankeerth Billakanti --- arch/arm64/boot/dts/qcom/sc7280-crd.dts | 10 +- arch/arm64/boot/dts/qcom/sc7280.dtsi| 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH v4 0/5] Add support for the eDP panel on sc7280 CRD

2022-02-10 Thread Sankeerth Billakanti
Add support for the eDP panel on sc7280 CRD platform. The eDP panel does not need HPD line for connect disconnect. So, this series will report eDP as always connected. The driver needs to register for IRQ_HPD only for eDP. This support will be added later. These changes are dependent on the

Re: [REPOST PATCH v4 09/13] drm/msm: Add missing structure documentation

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: Somehow documentation for dspp was missed, so add that Signed-off-by: Vinod Koul Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_drv.h

Re: [REPOST PATCH v4 10/13] drm/msm/disp/dpu1: Add support for DSC in topology

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: For DSC to work we typically need a 2,2,1 configuration. This should suffice for resolutions up to 4k. For more resolutions like 8k this won't work. Also, it is better to use 2 LMs and DSC instances as half width results in lesser power consumption as

Re: [PATCH 12/27] mm: refactor the ZONE_DEVICE handling in migrate_vma_pages

2022-02-10 Thread Alistair Popple
Reviewed-by: Alistair Popple On Thursday, 10 February 2022 6:28:13 PM AEDT Christoph Hellwig wrote: > Make the flow a little more clear and prepare for adding a new > ZONE_DEVICE memory type. > > Signed-off-by: Christoph Hellwig > --- > mm/migrate.c | 27 --- > 1 file

Re: [REPOST PATCH v4 01/13] drm/msm/dsi: add support for dsc data

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: Display Stream Compression (DSC) parameters need to be calculated. Add helpers and struct msm_display_dsc_config in msm_drv for this msm_display_dsc_config uses drm_dsc_config for DSC parameters. Signed-off-by: Vinod Koul Reviewed-by: Dmitry Baryshkov

Re: [PATCH v2 04/19] fbcon: delete delayed loading code

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: Before commit 6104c37094e729f3d4ce65797002112735d49cd1 Author: Daniel Vetter Date: Tue Aug 1 17:32:07 2017 +0200 fbcon: Make fbcon a built-time depency for fbdev it was possible to load fbcon and fbdev drivers in any order, which means

Re: [PATCH v4 00/10] clk: Improve clock range handling

2022-02-10 Thread Maxime Ripard
Hi Stephen, On Tue, Jan 25, 2022 at 03:15:39PM +0100, Maxime Ripard wrote: > Hi, > > This is a follow-up of the discussion here: > https://lore.kernel.org/linux-clk/20210319150355.xzw7ikwdaga2dwhv@gilmour/ > > and here: > https://lore.kernel.org/all/20210914093515.260031-1-max...@cerno.tech/ >

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-10 Thread David Hildenbrand
On 07.02.22 05:26, Alistair Popple wrote: > Currently any attempts to pin a device coherent page will fail. This is > because device coherent pages need to be managed by a device driver, and > pinning them would prevent a driver from migrating them off the device. > > However this is no reason to

Re: [REPOST PATCH v4 07/13] drm/msm/disp/dpu1: Add support for DSC in encoder

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: We need to configure the encoder for DSC configuration and calculate DSC parameters for the given timing so this patch adds that support by adding dpu_encoder_prep_dsc() which is invoked when DSC is enabled. Signed-off-by: Vinod Koul Reviewed-by: Dmitry

Re: [PATCH v2 05/19] fbdev/sysfs: Fix locking

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: fb_set_var requires we hold the fb_info lock. Or at least this now matches what the ioctl does ... Note that ps3fb and sh_mobile_lcdcfb are busted in different ways here, but I will not fix them up. Also in practice this isn't a big deal, because

Re: [PATCH v2 09/19] fbcon: Extract fbcon_open/release helpers

2022-02-10 Thread Thomas Zimmermann
Hi Am 08.02.22 um 22:08 schrieb Daniel Vetter: There's two minor behaviour changes in here: - in error paths we now consistently call fb_ops->fb_release - fb_release really can't fail (fbmem.c ignores it too) and there's no reasonable cleanup we can do anyway. Note that everything in

[PATCH v2 10/15] drm/i915/selftests: exercise mmap migration

2022-02-10 Thread Matthew Auld
Exercise each of the migration scenarios, verifying that the final placement and buffer contents match our expectations. v2(Thomas): Replace for_i915_gem_ww() block with simpler object_lock() Signed-off-by: Matthew Auld Cc: Thomas Hellström --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c |

[PATCH v2 09/15] drm/i915/ttm: mappable migration on fault

2022-02-10 Thread Matthew Auld
The end goal is to have userspace tell the kernel what buffers will require CPU access, however if we ever reach the CPU fault handler, and the current resource is not mappable, then we should attempt to migrate the buffer to the mappable portion of LMEM, or even system memory, if the allowable

[PATCH v2 15/15] drm/i915/lmem: don't treat small BAR as an error

2022-02-10 Thread Matthew Auld
Just pass along the probed io_size. The backend should be able to utilize the entire range here, even if some of it is non-mappable. It does leave open with what to do with stolen local-memory. Signed-off-by: Matthew Auld Cc: Thomas Hellström --- drivers/gpu/drm/i915/gt/intel_region_lmem.c |

[PATCH v2 12/15] drm/i915/create: apply ALLOC_GPU_ONLY by default

2022-02-10 Thread Matthew Auld
Starting from DG2+, when dealing with LMEM, we assume that by default all userspace allocations should be placed in the non-mappable portion of LMEM. Note that dumb buffers are not included here, since these are not "GPU accelerated" and likely need CPU access. In a later patch userspace will be

[PATCH v2 05/15] drm/i915/buddy: adjust res->start

2022-02-10 Thread Matthew Auld
Differentiate between mappable vs non-mappable resources, also if this is an actual range allocation ensure we set res->start as the starting pfn. Later when we need to do non-mappable -> mappable moves then we want TTM to see that the current placement is not compatible, which should result in an

[PATCH v2 04/15] drm/i915/buddy: track available visible size

2022-02-10 Thread Matthew Auld
Track the total amount of available visible memory, and also track per-resource the amount of used visible memory. For now this is useful for our debug output, and deciding if it is even worth calling into the buddy allocator. In the future tracking the per-resource visible usage will be useful

[PATCH v2 07/15] drm/i915/selftests: mock test io_size

2022-02-10 Thread Matthew Auld
Check that mappable vs non-mappable matches our expectations. Signed-off-by: Matthew Auld Cc: Thomas Hellström Reviewed-by: Thomas Hellström --- .../drm/i915/selftests/intel_memory_region.c | 143 ++ 1 file changed, 143 insertions(+) diff --git

[PATCH v2 06/15] drm/i915/buddy: tweak 2big check

2022-02-10 Thread Matthew Auld
Otherwise we get -EINVAL, instead of the more useful -E2BIG if the allocation doesn't fit within the pfn range, like with mappable lmem. The hugepages selftest, for example, needs this to know if a smaller size is needed. Signed-off-by: Matthew Auld Cc: Thomas Hellström Reviewed-by: Thomas

[PATCH v2 08/15] drm/i915/ttm: make eviction mappable aware

2022-02-10 Thread Matthew Auld
If we need to make room for some mappable object, then we should only victimize objects that have one or pages that occupy the visible portion of LMEM. Let's also create a new priority hint for objects that are placed in mappable memory, where we know that CPU access was requested, that way we

[PATCH v2 11/15] drm/i915/selftests: handle allocation failures

2022-02-10 Thread Matthew Auld
If we have to contend with non-mappable LMEM, then we need to ensure the object fits within the mappable portion, like in the selftests, where we later try to CPU access the pages. However if it can't then we need to gracefully handle this, without throwing an error. Also it looks like TTM will

[PATCH v2 13/15] drm/i915/uapi: add NEEDS_CPU_ACCESS hint

2022-02-10 Thread Matthew Auld
If set, force the allocation to be placed in the mappable portion of LMEM. One big restriction here is that system memory must be given as a potential placement for the object, that way we can always spill the object into system memory if we can't make space. XXX: Still very much WIP and needs

[PATCH v2 14/15] drm/i915/uapi: forbid ALLOC_GPU_ONLY for error capture

2022-02-10 Thread Matthew Auld
On platforms where there might be non-mappable LMEM, force userspace to mark the buffers with the correct hint. When dumping the BO contents during capture we need CPU access. Note this only applies to buffers that can be placed in LMEM, and also doesn't impact DG1. v2(Reported-by: kernel test

Re: [PATCH 2/2] drm/msm/dsi: switch to DRM_PANEL_BRIDGE

2022-02-10 Thread Dmitry Baryshkov
On 08/12/2021 01:29, Dmitry Baryshkov wrote: Currently the DSI driver has two separate paths: one if the next device in a chain is a bridge and another one if the panel is connected directly to the DSI host. Simplify the code path by using panel-bridge driver (already selected in Kconfig) and

Re: [REPOST PATCH v4 08/13] drm/msm/disp/dpu1: Don't use DSC with mode_3d

2022-02-10 Thread Dmitry Baryshkov
On 10/02/2022 13:34, Vinod Koul wrote: We cannot enable mode_3d when we are using the DSC. So pass configuration to detect DSC is enabled and not enable mode_3d when we are using DSC We add a helper dpu_encoder_helper_get_dsc() to detect dsc enabled and pass this to .setup_intf_cfg()

[GIT PULL] exynos-drm-fixes

2022-02-10 Thread Inki Dae
Hi Dave and Daniel, Just two fixup series - one is to fix irq chaining issue and other is regressions to TE-gpio handling. Please let me know if there is any problem. Thanks, Inki Dae The following changes since commit dfd42facf1e4ada021b939b4e19c935dcdd55566: Linux 5.17-rc3

Re: start sorting out the ZONE_DEVICE refcount mess v2

2022-02-10 Thread Alistair Popple
On Thursday, 10 February 2022 6:28:01 PM AEDT Christoph Hellwig wrote: [...] > Changes since v1: > - add a missing memremap.h include in memcontrol.c > - include rebased versions of the device coherent support and >device coherent migration support series as well as additional >cleanup

Re: [PATCH v2 02/19] fbcon: Move fbcon_bmove(_rec) functions

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: Avoids two forward declarations, and more importantly, matches what I've done in my fbcon scrolling restore patches - so I need this to avoid a bunch of conflicts in rebasing since we ended up merging Helge's series instead. Signed-off-by: Daniel

Re: [PATCH v2 06/19] fbcon: Use delayed work for cursor

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: Allows us to delete a bunch of hand-rolled stuff. Also to simplify the code we initialize the cursor_work completely when we allocate the fbcon_ops structure, instead of trying to cope with console re-initialization. The motiviation here is that

Re: [PATCH v2 08/19] fb: Delete fb_info->queue

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: It was only used by fbcon, and that now switched to its own, private work. Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Helge Deller Cc: linux-fb...@vger.kernel.org Acked-by: Thomas Zimmermann --- include/linux/fb.h | 1 - 1

Re: [PATCH v2 06/19] fbcon: Use delayed work for cursor

2022-02-10 Thread Tetsuo Handa
On 2022/02/09 6:08, Daniel Vetter wrote: > @@ -714,6 +700,8 @@ static int con2fb_acquire_newinfo(struct vc_data *vc, > struct fb_info *info, > ops = kzalloc(sizeof(struct fbcon_ops), GFP_KERNEL); > if (!ops) > err = -ENOMEM; > + > +

Re: [PATCH v9 1/6] drm: Add arch arm64 for drm_clflush_virt_range

2022-02-10 Thread Tvrtko Ursulin
On 10/02/2022 01:26, Michael Cheng wrote: Add arm64 support for drm_clflush_virt_range. dcache_clean_inval_poc performs a flush by first performing a clean, follow by an invalidation operation. v2 (Michael Cheng): Use correct macro for cleaning and invalidation the dcache.

Re: [PATCH 11/27] mm: refactor the ZONE_DEVICE handling in migrate_vma_insert_page

2022-02-10 Thread Alistair Popple
Reviewed-by: Alistair Popple On Thursday, 10 February 2022 6:28:12 PM AEDT Christoph Hellwig wrote: > Make the flow a little more clear and prepare for adding a new > ZONE_DEVICE memory type. > > Signed-off-by: Christoph Hellwig > --- > mm/migrate.c | 31 +++ > 1

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-10 Thread Alistair Popple
On Thursday, 10 February 2022 9:53:38 PM AEDT David Hildenbrand wrote: > On 07.02.22 05:26, Alistair Popple wrote: > > Currently any attempts to pin a device coherent page will fail. This is > > because device coherent pages need to be managed by a device driver, and > > pinning them would prevent

Re: [PATCH v5 19/23] arm64: dts: rockchip: rk3568-evb: Enable VOP2 and hdmi

2022-02-10 Thread Heiko Stübner
Am Donnerstag, 10. Februar 2022, 14:37:59 CET schrieb Sascha Hauer: > On Thu, Feb 10, 2022 at 02:15:17PM +0100, Johan Jonker wrote: > > > > > > On 2/10/22 12:47, Sascha Hauer wrote: > > > On Thu, Feb 10, 2022 at 01:10:32AM +0100, Johan Jonker wrote: > > >> Hi Sascha, > > >> > > >> Something with

Re: [PATCH v2 10/19] fbcon: Ditch error handling for con2fb_release_oldinfo

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: It doesn't ever fail anymore. Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Thomas Zimmermann Cc: Greg Kroah-Hartman Cc: Claudio Suarez Cc: Du Cheng Cc: Tetsuo Handa Acked-by: Thomas Zimmermann ---

Re: [PATCH v2 11/19] fbcon: move more common code into fb_open()

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: No idea why con2fb_acquire_newinfo() initializes much less than fbcon_startup(), but so be it. From a quick look most of the un-initialized stuff should be fairly harmless, but who knows. Note that the error handling for the con2fb_acquire_newinfo()

Re: [PATCH v5 6/6] drm/vc4: hdmi: Support HDMI YUV output

2022-02-10 Thread Ville Syrjälä
On Thu, Feb 10, 2022 at 11:03:43AM +0100, Maxime Ripard wrote: > On Thu, Feb 03, 2022 at 10:07:22PM +0200, Ville Syrjälä wrote: > > On Thu, Jan 27, 2022 at 03:10:21PM +0100, Maxime Ripard wrote: > > > +/* > > > + * Conversion between Full Range RGB and Full Range YUV444 using the > > > + * BT.709

[REPOST PATCH v4 01/13] drm/msm/dsi: add support for dsc data

2022-02-10 Thread Vinod Koul
Display Stream Compression (DSC) parameters need to be calculated. Add helpers and struct msm_display_dsc_config in msm_drv for this msm_display_dsc_config uses drm_dsc_config for DSC parameters. Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/dsi/dsi_host.c | 132

[REPOST PATCH v4 02/13] drm/msm/dsi: Pass DSC params to drm_panel

2022-02-10 Thread Vinod Koul
When DSC is enabled, we need to pass the DSC parameters to panel driver as well, so add a dsc parameter in panel and set it when DSC is enabled Also, fetch and pass DSC configuration for DSI panels to DPU encoder, which will enable and configure DSC hardware blocks accordingly. Signed-off-by:

[REPOST PATCH v4 03/13] drm/msm/disp/dpu1: Add support for DSC

2022-02-10 Thread Vinod Koul
Display Stream Compression (DSC) is one of the hw blocks in dpu, so add support by adding hw blocks for DSC Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/Makefile | 1 + .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h| 13 ++

[REPOST PATCH v4 00/13] drm/msm: Add Display Stream Compression Support

2022-02-10 Thread Vinod Koul
Display Stream Compression (DSC) compresses the display stream in host which is later decoded by panel. This series enables this for Qualcomm msm driver. This was tested on Google Pixel3 phone which use LGE SW43408 panel. The changes include DSC data and hardware block enabling for DPU1 then

RE: [PATCH v3 2/4] arm64: dts: qcom: sc7280: Add support for eDP panel on CRD

2022-02-10 Thread Sankeerth Billakanti (QUIC)
Hi Stephen, Will implement all the suggested changes. Thank you, Sankeerth -Original Message- From: Stephen Boyd Sent: Thursday, February 10, 2022 6:45 AM To: Sankeerth Billakanti (QUIC) ; agr...@kernel.org; airl...@linux.ie; bjorn.anders...@linaro.org; dan...@ffwll.ch;

RE: [PATCH v3 4/4] drm/msm/dp: Add driver support to utilize drm panel

2022-02-10 Thread Sankeerth Billakanti (QUIC)
Hi Stephen, Will make the changes. -Original Message- From: Stephen Boyd Sent: Thursday, February 10, 2022 6:52 AM To: Sankeerth Billakanti (QUIC) ; agr...@kernel.org; airl...@linux.ie; bjorn.anders...@linaro.org; dan...@ffwll.ch; devicet...@vger.kernel.org; diand...@chromium.org;

RE: [PATCH v3 3/4] drm/panel-edp: Add eDP sharp panel support

2022-02-10 Thread Sankeerth Billakanti (QUIC)
Hi Stephen, Thank you for the review. I will share the new patch. -Original Message- From: Stephen Boyd Sent: Thursday, February 10, 2022 6:47 AM To: Sankeerth Billakanti (QUIC) ; agr...@kernel.org; airl...@linux.ie; bjorn.anders...@linaro.org; dan...@ffwll.ch;

[PATCH v2 03/15] drm/i915: add I915_BO_ALLOC_GPU_ONLY

2022-02-10 Thread Matthew Auld
If the user doesn't require CPU access for the buffer, then ALLOC_GPU_ONLY should be used, in order to prioritise allocating in the non-mappable portion of LMEM, on devices with small BAR. v2(Thomas): - The BO_ALLOC_TOPDOWN naming here is poor, since this is pure lies on systems that don't

[PATCH v2 01/15] drm/i915: add io_size plumbing

2022-02-10 Thread Matthew Auld
With small LMEM-BAR we need to be able to differentiate between the total size of LMEM, and how much of it is CPU mappable. The end goal is to be able to utilize the entire range, even if part of is it not CPU accessible. v2: also update intelfb_create Signed-off-by: Matthew Auld Cc: Thomas

[PATCH v2 02/15] drm/i915/ttm: require mappable by default

2022-02-10 Thread Matthew Auld
On devices with non-mappable LMEM ensure we always allocate the pages within the mappable portion. For now we assume that all LMEM buffers will require CPU access, which is also inline with pretty much all current kernel internal users. In the next patch we will introduce a new flag to override

[PATCH v2 00/15] Initial support for small BAR recovery

2022-02-10 Thread Matthew Auld
Starting from DG2 we will have resizable BAR support for device local-memory, but in some cases the final BAR size might still be smaller than the total local-memory size. In such cases only part of local-memory will be CPU accessible, while the remainder is only accessible via the GPU. This

Re: [PATCH] drm/amdgpu: Fix compile error.

2022-02-10 Thread Andrey Grodzovsky
On 2022-02-10 02:06, Christian König wrote: Am 10.02.22 um 04:17 schrieb Andrey Grodzovsky: Seems I forgot to add this to the relevant commit when submitting. Rebase/merge issue? Looks like it. It looks more like I forgot to add the header file change to the commit after updating with

Re: [PATCH v3 0/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-10 Thread Javier Martinez Canillas
Hello Geert, On 2/10/22 18:06, Geert Uytterhoeven wrote: > On Wed, Feb 9, 2022 at 1:19 PM Geert Uytterhoeven > wrote: >> On Wed, Feb 9, 2022 at 10:03 AM Javier Martinez Canillas >> wrote: >>> This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306, >>> SSD1307 and SSD1309

Re: [PATCH v2] drm/mediatek: allow commands to be sent during video mode

2022-02-10 Thread Chun-Kuang Hu
Hi, Julien: Julien STEPHAN 於 2022年2月10日 週四 下午8:47寫道: > > Mipi dsi panel drivers can use mipi_dsi_dcs_{set,get}_display_brightness() > to request backlight changes. > > This can be done during panel initialization (dsi is in command mode) > or afterwards (dsi is in Video Mode). > > When the DSI

Re: [PATCH v11 5/5] drm/amdgpu: add drm buddy support to amdgpu

2022-02-10 Thread Matthew Auld
On 08/02/2022 11:20, Arunpravin wrote: On 04/02/22 6:53 pm, Christian König wrote: Am 04.02.22 um 12:22 schrieb Arunpravin: On 28/01/22 7:48 pm, Matthew Auld wrote: On Thu, 27 Jan 2022 at 14:11, Arunpravin wrote: - Remove drm_mm references and replace with drm buddy functionalities - Add

[PATCH v10 2/6] drm/i915/gt: Re-work intel_write_status_page

2022-02-10 Thread Michael Cheng
Re-work intel_write_status_page to use drm_clflush_virt_range. This will prevent compiler errors when building for non-x86 architectures. Signed-off-by: Michael Cheng --- drivers/gpu/drm/i915/gt/intel_engine.h | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git

[PATCH v10 1/6] drm: Add arch arm64 for drm_clflush_virt_range

2022-02-10 Thread Michael Cheng
Add arm64 support for drm_clflush_virt_range. dcache_clean_inval_poc performs a flush by first performing a clean, follow by an invalidation operation. v2 (Michael Cheng): Use correct macro for cleaning and invalidation the dcache. v3 (Michael Cheng): Remove ifdef for

[PATCH v10 6/6] drm/i915/gt: replace cache_clflush_range

2022-02-10 Thread Michael Cheng
Replace all occurrence of cache_clflush_range with drm_clflush_virt_range. This will prevent compile errors on non-x86 platforms. Signed-off-by: Michael Cheng --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 12 ++-- drivers/gpu/drm/i915/gt/intel_execlists_submission.c | 2 +-

[PATCH v10 4/6] drm/i915/gt: Re-work reset_csb

2022-02-10 Thread Michael Cheng
Use drm_clflush_virt_range instead of directly invoking clflush. This will prevent compiler errors when building for non-x86 architectures. v2(Michael Cheng): Remove extra clflush v3(Michael Cheng): Remove memory barrier since drm_clflush_virt_range takes care of it.

Re: [PATCH 2/2] fbdev: Don't sort deferred-I/O pages by default

2022-02-10 Thread Andy Shevchenko
On Thu, Feb 10, 2022 at 03:11:13PM +0100, Thomas Zimmermann wrote: > Fbdev's deferred I/O sorts all dirty pages by default, which incurs a > significant overhead. Make the sorting step optional and update the few > drivers that require it. Use a FIFO list by default. > > Sorting pages by memory

[PATCH] drm/amdkfd: fix loop error handling

2022-02-10 Thread trix
From: Tom Rix Clang static analysis reports this problem kfd_chardev.c:2594:16: warning: The expression is an uninitialized value. The computed value will also be garbage while (ret && i--) { ^~~ i is a loop variable and this block unwinds a problem in the loop.

Re: [PATCH] drm/dp_mst: fix drm_dp_dpcd_read return value checks

2022-02-10 Thread Jani Nikula
On Thu, 10 Feb 2022, Simon Ser wrote: > drm_dp_dpcd_read returns the number of bytes read. The previous code > would print garbage on DPCD error, and would exit with on error on > success. Reviewed-by: Jani Nikula I do wish we'd just made dpcd access return 0 when the number of bytes

Re: [PATCH v3 0/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-10 Thread Geert Uytterhoeven
On Wed, Feb 9, 2022 at 1:19 PM Geert Uytterhoeven wrote: > On Wed, Feb 9, 2022 at 10:03 AM Javier Martinez Canillas > wrote: > > This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306, > > SSD1307 and SSD1309 displays. It is a port of the ssd1307fb fbdev driver. > > [...] >

Re: [PATCH v5 01/23] drm/encoder: Add of_graph port to struct drm_encoder

2022-02-10 Thread Sascha Hauer
On Thu, Feb 10, 2022 at 12:52:32PM +0100, Sascha Hauer wrote: > On Wed, Feb 09, 2022 at 01:12:45PM +0200, Jani Nikula wrote: > > On Wed, 09 Feb 2022, Sascha Hauer wrote: > > > David, Daniel, > > > > > > I'll need a word from you regarding this patch. It's needed in patch > > > 22/23 in this

Re: [PATCH v2 1/2] drm/gem-shmem: Set vm_ops in static initializer

2022-02-10 Thread Steven Price
On 09/02/2022 15:56, Thomas Zimmermann wrote: > Initialize default vm_ops in static initialization of the GEM SHMEM funcs, > instead of the mmap code. It's simply better style. GEM helpers will later > set a VMA's vm_ops from the default automatically. > > v2: > * also update the drivers

Re: [PATCH v2] drm/mediatek: allow commands to be sent during video mode

2022-02-10 Thread AngeloGioacchino Del Regno
Il 10/02/22 13:46, Julien STEPHAN ha scritto: Mipi dsi panel drivers can use mipi_dsi_dcs_{set,get}_display_brightness() to request backlight changes. This can be done during panel initialization (dsi is in command mode) or afterwards (dsi is in Video Mode). When the DSI is in Video Mode, all

Re: [PATCH 1/2] dt-bindings: display: imx: Add fsl,imx21-lcdc docs

2022-02-10 Thread Lucas Stach
Hi Rob, Am Dienstag, dem 01.02.2022 um 11:35 -0600 schrieb Rob Herring: > On Fri, Jan 28, 2022 at 06:58:29PM +0100, Uwe Kleine-König wrote: > > Hello Rob, > > > > On Fri, Jan 28, 2022 at 07:04:10AM -0600, Rob Herring wrote: > > > On Fri, Jan 28, 2022 at 4:59 AM Uwe Kleine-König > > > wrote: > >

  1   2   3   >