Re: [PATCH] MAINTAINERS: move Milo Kim to credits

2020-09-22 Thread Krzysztof Kozlowski
On Mon, 21 Sep 2020 at 23:06, Pavel Machek wrote: > > Hi! > > > Milo Kim's email in TI bounces with permanent error (550: Invalid > > recipient). Last email from him on LKML was in 2017. Move Milo Kim to > > credits and remove the separate driver entries for: > > > > - TI LP855x backlight drive

Re: [PATCH drm/hisilicon v2 1/2] drm/hisilicon: Support i2c driver algorithms for bit-shift adapters

2020-09-22 Thread Thomas Zimmermann
Hi, again a few nits below. Am 22.09.20 um 09:03 schrieb Tian Tao: > Adding driver implementation to support i2c driver algorithms for > bit-shift adapters, so hibmc will using the interface provided by > drm to read edid. > > Signed-off-by: Tian Tao I gave this an R-b, which you should have a

Re: [PATCH drm/hisilicon v2 2/2] drm/hisilicon: Features to support reading resolutions from EDID

2020-09-22 Thread Thomas Zimmermann
Am 22.09.20 um 09:03 schrieb Tian Tao: > Use drm_get_edid to get the resolution, if that fails, set it to > a fixed resolution. Rewrite the desrtoy callback function to release > resources. > > Signed-off-by: Tian Tao Reviewed-by: Thomas Zimmermann > --- > drivers/gpu/drm/hisilicon/hibmc/hi

Re: [PATCH v7 0/2]dd support for Tianma nt36672a video mode panel

2020-09-22 Thread Sumit Semwal
Hi Sam / Theirry, On Wed, 2 Sep 2020 at 12:14, Sumit Semwal wrote: > > Some Poco F1 phones from Xiaomi have a FHD+ video mode panel based on the > Novatek NT36672A display controller; Add support for the same. This latest version (v7) had all the outstanding comments fixed, and Bjorn has also gi

[PATCH v2] drm/panel: otm8009a: remove hack to force commands in HS

2020-09-22 Thread Yannick Fertre
From: Antonio Borneo The panel is able to receive commands in LP. The current hack to force backlight commands in HS was due to workaround an incorrect settings on DSI controller that prevents sending LP commands while video out was active. Remove the hack that forces HS commands. Changes in v2

[PATCH v2] drm/panel: otm8009a: allow using non-continuous dsi clock

2020-09-22 Thread Yannick Fertre
From: Antonio Borneo The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Changes in v2: - Added my signed-off Signed-off-by: Antonio Borneo Signed-off-by: Ya

[PATCH 1/5] thermal: devfreq_cooling: change tracing function and arguments

2020-09-22 Thread Lukasz Luba
Prepare for deleting the static and dynamic power calculation and clean the trace function. These two fields are going to be removed in the next changes. Reviewed-by: Steven Rostedt (VMware) # for tracing code Signed-off-by: Lukasz Luba --- drivers/thermal/devfreq_cooling.c | 3 +-- include/tr

Re: XDC 2020 feedback and comments

2020-09-22 Thread DorotaC
On Mon, 21 Sep 2020 10:03:32 +0200 Samuel Iglesias Gonsálvez wrote: > Hi all, > > Huge thanks again to the entire team from Intel, for their great work > organizing XDC 2020, our first virtual conference! > > As usual we're looking for feedback on both XDC itself, and the CFP > process and prog

[PATCH -next] drm/panfrost: simplify the return expression of cz_ih_hw_init()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/panfrost/panfrost_device.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index e68967338..ea8d318

Re: [PATCH 3/6] drm/i915: use vmap in shmem_pin_map

2020-09-22 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 06:37:21PM +0200, Christoph Hellwig wrote: > void shmem_unpin_map(struct file *file, void *ptr) > { > + long i = shmem_npages(file); > + > mapping_clear_unevictable(file->f_mapping); > - __shmem_unpin_map(file, ptr, shmem_npte(file)); > + vunmap(ptr); > +

Re: [PATCH] drm/bridge: dw-mipi-dsi: Use kmemdup cf. kmalloc+memcpy

2020-09-22 Thread Alex Dewar
Hmm, I applied this already: commit 33f290811d4c1a09c4e92f5bf0458525835dbcba Author: Alex Dewar Date: Wed Sep 9 20:02:08 2020 +0100 drm/bridge: dw-mipi-dsi: Use kmemdup cf. kmalloc+memcpy kmemdup can be used instead of kmalloc+memcpy. Replace an occurrence of this pattern.

Re: [PATCH] drm/vc4: hvs: Pull the state of all the CRTCs prior to PV muxing

2020-09-22 Thread Maxime Ripard
On Fri, Sep 18, 2020 at 03:52:55PM +0100, Dave Stevenson wrote: > Hi Maxime > > On Thu, 17 Sep 2020 at 13:16, Maxime Ripard wrote: > > > > The vc4 display engine has a first controller called the HVS that will > > perform the composition of the planes. That HVS has 3 FIFOs and can > > therefore c

[PATCH] drm/amd/display: optimize code runtime a bit

2020-09-22 Thread Bernard Zhao
Static function dal_ddc_i2c_payloads_destroy is only called in dal_ddc_service_query_ddc_data, the parameter is &payloads , there is no point NULL risk, so no need to check. This change is to make the code run a bit fast. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/core/dc_lin

[PATCH -next] drm/tidss: simplify the return expression of tidss_pm_runtime_resume()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/tidss/tidss_drv.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tidss_drv.c index 9179ea18f..96568695a 100644 --- a/drivers/gpu/

[PATCH 5/5] drm/panfrost: Register devfreq cooling and attempt to add Energy Model

2020-09-22 Thread Lukasz Luba
Register devfreq cooling device and attempt to register Energy Model. This will add the devfreq device to the Energy Model framework. It will create a dedicated and unified data structures used i.e. in thermal framework. The last NULL parameter indicates that the power model is simplified and creat

Re: [PATCHv4 1/6] iommu/io-pgtable-arm: Add support to use system cache

2020-09-22 Thread Sai Prakash Ranjan
Hi Will, On 2020-09-21 23:33, Will Deacon wrote: On Fri, Sep 11, 2020 at 07:57:18PM +0530, Sai Prakash Ranjan wrote: Add a quirk IO_PGTABLE_QUIRK_SYS_CACHE to override the attributes set in TCR for the page table walker when using system cache. I wonder if the panfrost folks can reuse this fo

[PATCH 2/3] drm: rockchip: hdmi: allow any clock that is within the range

2020-09-22 Thread Vicente Bergas
For a video mode to work it suffices that the available bandwidth is large enough. There is no need to have an exact match. This greatly expands the list of supported monitors. Signed-off-by: Vicente Bergas Tested-by: Vicente Bergas --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1 fil

[PATCH -next] gpu: host1x: simplify the return expression of host1x_cdma_init()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/host1x/cdma.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/host1x/cdma.c index e8d3fda91..08a0f9e10 100644 --- a/drivers/gpu/host1x/cdma.c +++ b/driv

[PATCH -next] vga_switcheroo: simplify the return expression of vga_switcheroo_runtime_resume

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/vga/vga_switcheroo.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index 087304b1a..1401fd52f 100644 --- a/drivers/gpu/vga/

[PATCH -next] drm/ast: simplify the return expression of ast_* function

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/ast/ast_drv.c | 7 +-- drivers/gpu/drm/ast/ast_mode.c | 7 +-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index f0b4af1c390a..

[PATCH -next] drm/amd/pm: simplify the return expression of smu_hw_fini

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index 5c4b74f964fc..3612841d40d

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-22 Thread Thomas Gleixner
On Mon, Sep 21 2020 at 09:24, Linus Torvalds wrote: > On Mon, Sep 21, 2020 at 12:39 AM Thomas Gleixner wrote: >> >> If a task is migrated to a different CPU then the mapping address will >> change which will explode in colourful ways. > > Right you are. > > Maybe we really *could* call this new km

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-22 Thread Thomas Gleixner
On Sun, Sep 20 2020 at 10:42, Linus Torvalds wrote: > On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: >> >> I think the more obvious solution is to split the whole exercise: >> >> schedule() >> prepare_switch() >> unmap() >> >> switch_to() >> >> finish_switch() >>

[PATCH -next] drm/amdgpu/mes: simplify the return expression of mes_v10_1_ring_init

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c index 4b746584a..1c22d8393 100644 ---

[PATCHv5 2/6] iommu/arm-smmu: Add domain attribute for system cache

2020-09-22 Thread Sai Prakash Ranjan
Add iommu domain attribute for using system cache aka last level cache by client drivers like GPU to set right attributes for caching the hardware pagetables into the system cache. Signed-off-by: Sai Prakash Ranjan --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 17 + drivers/iommu/a

[PATCH -next] video: omapfb: simplify the return expression of hdmi_pll_enable

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c index 4991b

[PATCH -next] drm/i915: simplify the return expression of i915_driver_release()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/i915/i915_drv.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index acc32066c..a594bb4aa 100644 --- a/drivers/gpu/drm/i91

[PATCH 0/3] drm: rockchip: hdmi: enable higher resolutions than FHD

2020-09-22 Thread Vicente Bergas
This patch series enable a QHD HDMI monitor to work at native resolution. Tested on a Sapphire board with RK3399 connected to a Q27q-10 monitor at 2560x1440@60 Vicente Bergas (3): drm: rockchip: remove vop_crtc_mode_fixup to fix clock handling drm: rockchip: HDMI: allow any clock that is with

[PATCH -next] gpu/drm: simplify the return expression of drm_agp_info_ioctl()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/drm_agpsupport.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c index 4c7ad46fd..2405785ae 100644 --- a/drivers/gpu/drm/

[PATCH] drm/amd/display: Simplify condition in try_disable_dsc

2020-09-22 Thread Nathan Chancellor
Clang warns: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:637:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] && !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {

[PATCH 0/5] Thermal devfreq cooling improvements with Energy Model

2020-09-22 Thread Lukasz Luba
Hi all, This path set is a continuation of my previous work, which aimed to add Energy Model to all devices. This series is a follow up for the patches which got merged to v5.9-rc1. It aims to change the thermal devfreq cooling and use the Energy Model instead of private calculation and structures

[PATCH 4/5] thermal: devfreq_cooling: remove old power model and use EM

2020-09-22 Thread Lukasz Luba
Remove old power model and use new Energy Model to calculate the power budget. It drops static + dynamic power calculations and power table in order to use Energy Model performance domain data. This model should be easy to use and could find more users. It is also less complicated to setup the need

Re: [PATCH v3] drm/dp_mst: Retrieve extended DPCD caps for topology manager

2020-09-22 Thread Koba Ko
On Tue, Sep 22, 2020 at 2:11 AM Lyude Paul wrote: > > Hi, sorry I lost track of this until just now. Comments down below: > Sorry, the wrong base. I will modify it based on v2 and will send v4. > On Fri, 2020-09-11 at 11:44 +0800, Koba Ko wrote: > > As per DP-1.3, First check DP_EXTENDED_RECEIVER

[PATCH drm/hisilicon v2 1/2] drm/hisilicon: Support i2c driver algorithms for bit-shift adapters

2020-09-22 Thread Tian Tao
Adding driver implementation to support i2c driver algorithms for bit-shift adapters, so hibmc will using the interface provided by drm to read edid. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 25 ++-

[PATCH -next] drm/v3d: fix double kfree in v3d_submit_cl_ioctl()

2020-09-22 Thread Zheng Bin
If v3d_job_init() returns with an error, the storage addressed by 'bin' is freed a second time. This patch fixes that. Fixes: 0d352a3a8a1f ("drm/v3d: don't leak bin job if v3d_job_init fails.") Fixes: 29cd13cfd762 ("drm/v3d: Fix memory leak in v3d_submit_cl_ioctl") Signed-off-by: Zheng Bin --- d

[PATCH -next] omapfb: simplify the return expression of panel_dpi_connect

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-d

Re: [PATCH v3 7/9] soc: mediatek: cmdq: add jump function

2020-09-22 Thread Matthias Brugger
On 07/07/2020 17:45, Dennis YC Hsieh wrote: Add jump function so that client can jump to any address which contains instruction. Signed-off-by: Dennis YC Hsieh Now pushed to v5.9-next/soc Thanks! --- drivers/soc/mediatek/mtk-cmdq-helper.c | 13 + include/linux/soc/media

[PATCH -next] drm/omap: dss: simplify the return expression of dss_setup_default_clock()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/omapdrm/dss/dss.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 6ccbc29c4..b74579270 100644 --- a/drivers/gpu/

[PATCH -next] omapfb: panel-sony-acx565akm: simplify the return expression of acx565akm_connect()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- .../fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omap

[Re-send][PATCH] gpu/ipu-v3:reduce protected code area in ipu idmac get/put

2020-09-22 Thread Bernard
This change will speed-up a bit these ipu_idmac_get & ipu_idmac_put processing and there is no need to protect kzalloc & kfree. Signed-off-by: Bernard Zhao --- drivers/gpu/ipu-v3/ipu-common.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/g

[PATCH -next] drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 5400cac02087..cb9e9e5afa5a 100644 ---

[PATCH -next] drm/qxl: simplify the return expression of qxl_plane_prepare_fb()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/qxl/qxl_display.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 6063f3a15..65de1f69a 100644 --- a/drivers/gpu/

[PATCH -next] omapfb: simplify the return expression of sharp_ls_connect

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- .../fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c b/drivers/video/fbdev/omap2/oma

[PATCH -next] drm/amdgpu: simplify the return expression

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/amd/amdgpu/cik_ih.c | 7 +-- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 ++ 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/a

[PATCH -next] drm/vc4: simplify the return expression of vc4_v3d_bin_bo_get()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/vc4/vc4_bo.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 74ceebd62..dfd214386 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.

Re: [PATCH -next] gpu: host1x: simplify the return expression of host1x_cdma_init()

2020-09-22 Thread miaoqinglang
在 2020/9/21 21:12, Mikko Perttunen 写道: On 9/21/20 4:10 PM, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao ---   drivers/gpu/host1x/cdma.c | 8 +---   1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/hos

Re: [PATCH v3] drm/dp_mst: Retrieve extended DPCD caps for topology manager

2020-09-22 Thread Koba Ko
On Tue, Sep 22, 2020 at 2:11 AM Lyude Paul wrote: > > Hi, sorry I lost track of this until just now. Comments down below: Sorry, the wrong base. I will modify it based on v2 and will send v4. > > On Fri, 2020-09-11 at 11:44 +0800, Koba Ko wrote: > > As per DP-1.3, First check DP_EXTENDED_RECEIVER

[PATCH -next] omapfb: connector-hdmi: simplify the return expression of hdmic_connect

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpio/gpio-cs5535.c | 6 +- drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c | 7 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-cs5535

[PATCH -next] omapfb: simplify the return expression of tpo_td043_connect

2020-09-22 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- .../fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb/

[PATCH -next] omapdrm: panel: td028ttec1: simplify the return expression of td028ttec1_panel_connect()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- .../fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c b/drivers/video/fbdev/omap2/omap

Re:Re: [PATCH] drm/amd/display: optimize code runtime a bit

2020-09-22 Thread Bernard
From: Alex Deucher Date: 2020-09-22 03:33:20 To: Bernard Zhao Cc: Harry Wentland ,Leo Li ,Alex Deucher ,"Christian König" ,David Airlie ,Daniel Vetter ,Rodrigo Siqueira ,Jun Lei ,Aric Cyr ,Wenjing Liu ,abdoulaye berthe ,Michael Strauss ,Brandon Syu ,Martin Leung ,amd-gfx list ,Maling l

[PATCH -next] drm: omapdrm: dss: simplify the return expression of hdmi_init_pll_data

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/omapdrm/dss/hdmi_pll.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c b/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c index cf2b000f3..c3e85b636 100644 ---

[PATCH 1/3] drm: rockchip: hdmi: remove vop_crtc_mode_fixup to fix clock handling

2020-09-22 Thread Vicente Bergas
Under certain conditions vop_crtc_mode_fixup rounds the clock 14850 to 148501000 which leads to the following error: dwhdmi-rockchip ff94.hdmi: PHY configuration failed (clock 148501000) The issue was found on RK3399 booting with u-boot. U-boot configures the display at 2560x1440 and then

[PATCHv5 6/6] iommu: arm-smmu-impl: Add a space before open parenthesis

2020-09-22 Thread Sai Prakash Ranjan
Fix the checkpatch warning for space required before the open parenthesis. Signed-off-by: Sai Prakash Ranjan --- drivers/iommu/arm/arm-smmu/arm-smmu-impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c b/drivers/iommu/arm/arm-smmu

[PATCH drm/hisilicon v2 0/2] support reading resolutions from EDID

2020-09-22 Thread Tian Tao
patch #1 add a new file to implements i2c adapters, #2 read the resolution from the edid, if that fails, set the resolution to fixed. and update the destroy callback function to release the i2c adapters Changes since v1: -merge patch #3 into patch #2. -add new function to_hibmc_drm_private, modify

[PATCHv5 1/6] iommu/io-pgtable-arm: Add support to use system cache

2020-09-22 Thread Sai Prakash Ranjan
Add a quirk IO_PGTABLE_QUIRK_SYS_CACHE to override the attributes set in TCR for the page table walker when using system cache. Signed-off-by: Sai Prakash Ranjan --- drivers/iommu/io-pgtable-arm.c | 7 ++- include/linux/io-pgtable.h | 4 2 files changed, 10 insertions(+), 1 deletion

[PATCH 3/3] drm: rockchip: hdmi: add higher pixel clock frequencies

2020-09-22 Thread Vicente Bergas
In order to support video resolutions beyond FHD more bandwidth is needed. The new entry values have been taken from u-boot: https://gitlab.denx.de/u-boot/u-boot/-/blob/ba2a0cbb053951ed6d36161989d38da724696b4d/drivers/video/rockchip/rk_hdmi.c#L63 Signed-off-by: Vicente Bergas Tested-by: Vicente B

[PATCHv5 5/6] iommu: arm-smmu-impl: Use table to list QCOM implementations

2020-09-22 Thread Sai Prakash Ranjan
Use table and of_match_node() to match qcom implementation instead of multiple of_device_compatible() calls for each QCOM SMMU implementation. Signed-off-by: Sai Prakash Ranjan --- drivers/iommu/arm/arm-smmu/arm-smmu-impl.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff

Re: [PATCH 0/3] drm: commit_work scheduling

2020-09-22 Thread Qais Yousef
On 09/19/20 12:37, Rob Clark wrote: > From: Rob Clark > > The android userspace treats the display pipeline as a realtime problem. > And arguably, if your goal is to not miss frame deadlines (ie. vblank), > it is. (See https://lwn.net/Articles/809545/ for the best explaination > that I found.) >

[PATCH -next] omapfb: connector-analog-tv: simplify the return expression of tvc_connect()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- .../fbdev/omap2/omapfb/displays/connector-analog-tv.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c b/drivers/video/fbdev/omap2/omapf

[PATCH drm/hisilicon v2 2/2] drm/hisilicon: Features to support reading resolutions from EDID

2020-09-22 Thread Tian Tao
Use drm_get_edid to get the resolution, if that fails, set it to a fixed resolution. Rewrite the desrtoy callback function to release resources. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 38 +--- 1 file changed, 34 insertions(+), 4 deletio

[PULL] drm-misc-next

2020-09-22 Thread Maxime Ripard
Hi! Since Daniel wanted a few thing to make it into 5.10, here's a final drm-misc-next PR for this cycle :) Thanks! Maxime drm-misc-next-2020-09-21: drm-misc-next for 5.10: UAPI Changes: Cross-subsystem Changes: Core Changes: - dev: More devm_drm convertions and removal of drm_dev_init Dri

Re: [PATCH -next] drm: omapdrm: dss: simplify the return expression of hdmi_init_pll_data

2020-09-22 Thread miaoqinglang
在 2020/9/21 21:39, Tomi Valkeinen 写道: Hi, On 21/09/2020 16:10, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/omapdrm/dss/hdmi_pll.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/ds

[PATCH V4] drm/dp_mst: Retrieve extended DPCD caps for topology manager

2020-09-22 Thread Koba Ko
As per DP-1.3, First check DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT. If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 1,read the DP_DP13_DPCD_REV to get the faster capability. If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 0,read DP_DPCD_REV. Signed-off-by: Koba Ko Reviewed-by: Lyude Paul --- drivers/g

Re: [PATCH v3 8/9] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api

2020-09-22 Thread Dennis-YC Hsieh
Hi Matthias, On Mon, 2020-09-21 at 18:19 +0200, Matthias Brugger wrote: > > On 07/07/2020 17:45, Dennis YC Hsieh wrote: > > Add clear parameter to let client decide if > > event should be clear to 0 after GCE receive it. > > > > Change since v2: > > - Keep behavior in drm crtc driver and > >

XDC 2020 feedback and comments

2020-09-22 Thread Samuel Iglesias Gonsálvez
Hi all, Huge thanks again to the entire team from Intel, for their great work organizing XDC 2020, our first virtual conference! As usual we're looking for feedback on both XDC itself, and the CFP process and program selection. Both about what was great and should be kept for next year's edition,

[PATCH 3/5] thermal: devfreq_cooling: add new registration functions with Energy Model

2020-09-22 Thread Lukasz Luba
The Energy Model (EM) framework supports devices such as Devfreq. Create new registration functions which automatically register EM for the thermal devfreq_cooling devices. This patch prepares the code for coming changes which are going to replace old power model with the new EM. Signed-off-by: Lu

[PATCH v2] drm/amd/display: optimize code runtime a bit

2020-09-22 Thread Bernard Zhao
In the function dal_ddc_service_query_ddc_data, get rid of dal_ddc_i2c_payloads_destroy, call dal_vector_destruct() directly. This change is to make the code run a bit fast. Signed-off-by: Bernard Zhao Changes since V1: *get rid of dal_ddc_i2c_payloads_destroy, call dal_vector_destruct() directly

[PATCH 2/5] thermal: devfreq_cooling: get a copy of device status

2020-09-22 Thread Lukasz Luba
Devfreq cooling needs to now the correct status of the device in order to operate. Do not rely on Devfreq last_status which might be a stale data and get more up-to-date values of the load. Devfreq framework can change the device status in the background. To mitigate this situation make a copy of

[PATCHv5 4/6] drm/msm/a6xx: Add support for using system cache(LLC)

2020-09-22 Thread Sai Prakash Ranjan
From: Sharat Masetty The last level system cache can be partitioned to 32 different slices of which GPU has two slices preallocated. One slice is used for caching GPU buffers and the other slice is used for caching the GPU SMMU pagetables. This talks to the core system cache driver to acquire the

[PATCH -next] drm/panel: simplify the return expression of td028ttec1_prepare

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c index 037c14fd6..ba

[PATCHv5 0/6] System Cache support for GPU and required SMMU support

2020-09-22 Thread Sai Prakash Ranjan
Some hardware variants contain a system cache or the last level cache(llc). This cache is typically a large block which is shared by multiple clients on the SOC. GPU uses the system cache to cache both the GPU data buffers(like textures) as well the SMMU pagetables. This helps with improved render

[PATCHv5 3/6] drm/msm: rearrange the gpu_rmw() function

2020-09-22 Thread Sai Prakash Ranjan
From: Sharat Masetty The register read-modify-write construct is generic enough that it can be used by other subsystems as needed, create a more generic rmw() function and have the gpu_rmw() use this new function. Signed-off-by: Sharat Masetty Reviewed-by: Jordan Crouse Signed-off-by: Sai Prak

[PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()

2020-09-22 Thread Qinglang Miao
Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c index 8ab025d00..913ea

Re: [Intel-gfx] [PATCH 3/6] drm/i915: use vmap in shmem_pin_map

2020-09-22 Thread Tvrtko Ursulin
On 22/09/2020 07:22, Christoph Hellwig wrote: On Mon, Sep 21, 2020 at 08:11:57PM +0100, Matthew Wilcox wrote: This is awkward. I'd like it if we had a vfree() variant which called put_page() instead of __free_pages(). I'd like it even more if we used release_pages() instead of our own loop t

Re: [PATCH 04/11] drm/vmwgfx: stop using ttm_bo_create

2020-09-22 Thread Christian König
Am 22.09.20 um 08:45 schrieb Thomas Zimmermann: Hi Am 21.09.20 um 16:48 schrieb Christian König: Implement in the driver instead since it is the only user of that function. Maybe merge this patch with patch 10. That's how I initially did it as well, but then found a number of bugs in the VM

[GIT PULL] exynos-drm-next

2020-09-22 Thread Inki Dae
Hi Dave, Just two cleanups. Please kindly let me know if there is any problem. Thanks, Inki Dae The following changes since commit b40be05ed255d9a0257fb66ab2728ecca2c9d597: Merge branch 'for-5.10-drm-sg-fix' of https://github.com/mszyprow/linux into drm-next (2020-09-17 16:07:11 +1000

[PATCH rdma-next v3 1/2] lib/scatterlist: Add support in dynamic allocation of SG table from pages

2020-09-22 Thread Leon Romanovsky
From: Maor Gottlieb Extend __sg_alloc_table_from_pages to support dynamic allocation of SG table from pages. It should be used by drivers that can't supply all the pages at one time. This function returns the last populated SGE in the table. Users should pass it as an argument to the function fr

[PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages

2020-09-22 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: * Squashed Christopher's suggestion to avoid introduced new API, but extend existing one. v2: https://lore.kernel.org/linux-rdma/20200916140726.839377-1-l...@kernel.org * Fixed indentations and comments * Deleted sg_alloc_next() * Squashed lib/scatterlist

Re: [PATCH] MAINTAINERS: move Milo Kim to credits

2020-09-22 Thread Mark Brown
On Tue, Sep 22, 2020 at 09:08:37AM +0200, Krzysztof Kozlowski wrote: > On Mon, 21 Sep 2020 at 23:06, Pavel Machek wrote: > > I believe normal way would be to mark the entries "orphaned", not to > > drop them altogether. Plus, I believe someone from TI is likely to > > step up. > These are entrie

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2020-09-22 Thread Pekka Paalanen
On Tue, 22 Sep 2020 10:44:38 +0300 Tomi Valkeinen wrote: > On 21/09/2020 14:49, Pekka Paalanen wrote: > > > would it not be simplest if KMS UAPI specification defined the abstract > > color pipeline with all the blocks that may be exposed with > > driver-agnostic UAPI, and then just say that if

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2020-09-22 Thread Daniel Stone
Hi, On Tue, 22 Sep 2020 at 08:44, Tomi Valkeinen wrote: > On 21/09/2020 14:49, Pekka Paalanen wrote: > > would it not be simplest if KMS UAPI specification defined the abstract > > color pipeline with all the blocks that may be exposed with > > driver-agnostic UAPI, and then just say that if a bl

[PATCH v3] drm/bridge: lvds-codec: Add support for regulator

2020-09-22 Thread Laurent Pinchart
From: Biju Das Add the support for enabling optional regulator that may be used as VCC source. Signed-off-by: Biju Das Reviewed-by: Laurent Pinchart [Replaced 'error' variable with 'ret'] [Renamed regulator from 'vcc' to 'power'] Signed-off-by: Laurent Pinchart --- Changes since v2: - Use th

[GIT PULL FOR v5.10 - v3] R-Car display drivers miscellaneous changes

2020-09-22 Thread Laurent Pinchart
Hi Dave and Daniel, Still because the original pull request hasn't been pulled yet, here's an updated version that fixes one small issue. I had initially fixed it in a separate patch to be merged in the fixes branch for v5.10, but realized the offending commit wasn't in -next yet. Is there still

[PATCH 0/3] Fix Kernel-doc warnings introduced on next-20200921

2020-09-22 Thread Mauro Carvalho Chehab
A few new warnings were added at linux-next. Address them, in order for us to keep zero warnings at the docs. The entire patchset fixing all kernel-doc warnings is at: https://git.linuxtv.org/mchehab/experimental.git/log/?h=doc-fixes Mauro Carvalho Chehab (3): net: fix a new kernel-doc

[PATCH 3/3] drm/dp: fix a kernel-doc issue at drm_edid.c

2020-09-22 Thread Mauro Carvalho Chehab
The name of the argument is different, causing those warnings: ./drivers/gpu/drm/drm_edid.c:3754: warning: Function parameter or member 'video_code' not described in 'drm_display_mode_from_cea_vic' ./drivers/gpu/drm/drm_edid.c:3754: warning: Excess function parameter 'vic' descri

[PATCH 2/3] drm/dp: fix kernel-doc warnings at drm_dp_helper.c

2020-09-22 Thread Mauro Carvalho Chehab
As warned by kernel-doc: ./drivers/gpu/drm/drm_dp_helper.c:385: warning: Function parameter or member 'type' not described in 'drm_dp_downstream_is_type' ./drivers/gpu/drm/drm_dp_helper.c:886: warning: Function parameter or member 'dev' not described in 'drm_dp_downstream_mode'

Re: [RFC PATCH v1 3/3] dt-binding: display: Require two rests on mantix panel

2020-09-22 Thread Guido Günther
Hi, On Mon, Sep 21, 2020 at 02:05:55PM -0300, Fabio Estevam wrote: > Hi Guido, > > On Mon, Sep 21, 2020 at 1:56 PM Guido Günther wrote: > > > > We need to reset both for the panel to show an image. > > There is a typo in "resets" in the Subject line. Fix queued for v2. Thanks! -- Guido ___

Re: [PATCH 4/7] drm/omap: Implement CTM property for CRTC using OVL managers CPR matrix

2020-09-22 Thread Tomi Valkeinen
On 21/09/2020 14:49, Pekka Paalanen wrote: > would it not be simplest if KMS UAPI specification defined the abstract > color pipeline with all the blocks that may be exposed with > driver-agnostic UAPI, and then just say that if a block is not present, > it behaves as pass-through, a no-op? > > E

Re: [PATCH] MAINTAINERS: move Milo Kim to credits

2020-09-22 Thread Krzysztof Kozlowski
On Tue, 22 Sep 2020 at 13:36, Dan Murphy wrote: > > All > > On 9/22/20 4:36 AM, Mark Brown wrote: > > On Tue, Sep 22, 2020 at 09:08:37AM +0200, Krzysztof Kozlowski wrote: > >> On Mon, 21 Sep 2020 at 23:06, Pavel Machek wrote: > >>> I believe normal way would be to mark the entries "orphaned", not

Re: [PATCH 2/4] video: fbdev: amba-clcd: Retire elder CLCD driver

2020-09-22 Thread Peter Collingbourne
On Mon, Sep 21, 2020 at 2:32 PM Linus Walleij wrote: > > On Tue, Sep 15, 2020 at 3:10 AM Peter Collingbourne wrote: > > On Tue, Jun 9, 2020 at 1:08 PM Linus Walleij > > wrote: > > > > > > All the functionality in this driver has been reimplemented > > > in the new DRM driver in drivers/gpu/drm/

Re: [PATCH -next] dma-buf: heaps: Remove unused variable ret

2020-09-22 Thread Christian König
Am 22.09.20 um 09:53 schrieb Zou Wei: This patch fixes below warnings reported by coccicheck ./drivers/dma-buf/heaps/heap-helpers.c:202:5-8: Unneeded variable: "ret". Return "0" on line 215 Signed-off-by: Zou Wei Acked-by: Christian König Going to pick this up for drm-misc-next. --- d

[PATCH 0/7] drm/i915: Add support for LTTPR non-transparent link training mode

2020-09-22 Thread Imre Deak
Add the drm-core helpers and register definitions required to detect LTTPRs and perform the link training in non-transparent mode. In i915 switch to non-transparent link training mode if any LTTPR is detected. Cc: dri-devel@lists.freedesktop.org Imre Deak (7): drm/i915: Fix DP link training pat

[PATCH 5/7] drm/dp: Add LTTPR helpers

2020-09-22 Thread Imre Deak
Add the helpers and register definitions needed to read out the common and per-PHY LTTPR capabilities and perform link training in the LTTPR non-transparent mode. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_dp_helper.c | 179 ++

Re: [PATCH 2/3] drm/atomic: Use kthread worker for nonblocking commits

2020-09-22 Thread Daniel Vetter
On Mon, Sep 21, 2020 at 07:55:42AM -0700, Rob Clark wrote: > On Mon, Sep 21, 2020 at 2:23 AM Daniel Vetter wrote: > > > > On Sat, Sep 19, 2020 at 12:37:25PM -0700, Rob Clark wrote: > > > From: Rob Clark > > > > > > This will allow us to more easily switch scheduling rules based on what > > > user

Re: [PATCH] drm/gma500: clean up indentation issues

2020-09-22 Thread Daniel Vetter
On Sun, Sep 20, 2020 at 03:14:07PM +0100, Colin King wrote: > From: Colin Ian King > > There are a couple of statements that are indented too deeply, > remove the extraneous tabs and also an empty line. > > Signed-off-by: Colin Ian King Pushed to drm-misc-next, thanks for your patch. -Daniel

Re: [PATCH -next] vga_switcheroo: simplify the return expression of vga_switcheroo_runtime_resume

2020-09-22 Thread Daniel Vetter
On Mon, Sep 21, 2020 at 09:11:10PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao Pushed to drm-misc-next, thanks for your patch. -Daniel > --- > drivers/gpu/vga/vga_switcheroo.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > >

[PATCH 01/11] drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2

2020-09-22 Thread Christian König
As an alternative to the placement flag add a pin count to the ttm buffer object. v2: add dma_resv_assert_help() calls Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 9 ++--- drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +- include/drm/ttm/ttm_bo_api.h | 26 +

[PATCH 02/11] drm/vmwgfx: remove unused placement combination

2020-09-22 Thread Christian König
Just some dead code cleanup. Signed-off-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h| 1 - drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 30 -- 2 files changed, 31 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/

[PATCH 04/11] drm/vmwgfx: switch over to the new pin interface v2

2020-09-22 Thread Christian König
Stop using TTM_PL_FLAG_NO_EVICT. v2: fix unconditional pinning Signed-off-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 49 +++--- drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c| 4 +- drivers/gpu/drm/vmwgf

  1   2   3   >