[PATCH] V2: Currently, DRM get the capability of the mst hub only from DP_DPCD_REV and get the slower speed even the mst hub can run in the faster speed.

2020-09-10 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 --- ChangeLog: 1. use drm_dp_read_dpc

[PATCH -next 5/8] drm/amd/amdgpu: fix comparison pointer to bool warning in si.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/si.c:1342:5-10: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c ind

[PATCH -next 3/8] drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_0.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:619:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/dr

Re: [PATCH v5 30/36] memory: tegra20-emc: Register as interconnect provider

2020-09-10 Thread Georgi Djakov
On 8/14/20 03:06, Dmitry Osipenko wrote: > Now memory controller is a memory interconnection provider. This allows us > to use interconnect API in order to change memory configuration. > > Signed-off-by: Dmitry Osipenko Acked-by: Georgi Djakov ___ dri

Re: [PATCH v5 27/36] memory: tegra-mc: Register as interconnect provider

2020-09-10 Thread Dmitry Osipenko
09.09.2020 11:31, Georgi Djakov пишет: > On 8/14/20 03:06, Dmitry Osipenko wrote: >> Now memory controller is a memory interconnection provider. This allows us >> to use interconnect API in order to change memory configuration. >> >> Signed-off-by: Dmitry Osipenko > > Thanks Dmitry! Looks good to

Re: [PATCH v2 04/23] virtio: Add get_shm_region method

2020-09-10 Thread Miklos Szeredi
On Wed, Sep 9, 2020 at 9:04 AM Gerd Hoffmann wrote: > > On Wed, Sep 02, 2020 at 05:00:25PM -0700, Gurchetan Singh wrote: > > On Wed, Sep 2, 2020 at 3:15 PM Vivek Goyal wrote: > > > > > Hi Gurchetan, > > > > > > Now Miklos has queued, these tree virtio patches for shared memory > > > region in his

[PATCH v5 1/2] dt-bindings: display: himax, hx8837: Add Himax HX8837 bindings

2020-09-10 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v4: - Rob's Reviewed-by Changes since v3: - Moved to bindings/display/ - Added the ports - Converted to YAML - Removed Pavel's Ack,

[PATCH -next] drm/amdkfd: Fix -Wunused-const-variable warning

2020-09-10 Thread YueHaibing
If KFD_SUPPORT_IOMMU_V2 is not set, gcc warns: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:121:37: warning: ‘raven_device_info’ defined but not used [-Wunused-const-variable=] static const struct kfd_device_info raven_device_info = { ^

Re: [PATCH v4] gpu/drm: ingenic: Add option to mmap GEM buffers cached

2020-09-10 Thread Paul Cercueil
Any love for my patch? I have more pending :) Thanks, -Paul Le sam. 22 août 2020 à 18:42, Paul Cercueil a écrit : Ingenic SoCs are most notably used in cheap chinese handheld gaming consoles. There, the games and applications generally render in software directly into GEM buffers. Traditi

Re: [PATCH] drm/panfrost: Ensure GPU quirks are always initialised

2020-09-10 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig > diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c > b/drivers/gpu/drm/panfrost/panfrost_gpu.c > index e0f190e43813..6d17d3cbd1df 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c > +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c > @@ -305,6 +305,8 @@ void p

Re: [PATCH RFC v6 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-09-10 Thread Georgi Djakov
Hi Sylwester, On 8/28/20 17:49, Sylwester Nawrocki wrote: > On 30.07.2020 14:28, Sylwester Nawrocki wrote: >> On 09.07.2020 23:04, Rob Herring wrote: >>> On Thu, Jul 02, 2020 at 06:37:19PM +0200, Sylwester Nawrocki wrote: Add documentation for new optional properties in the exynos bus nodes:

Re: [PATCH V2 0/8] opp: Unconditionally call dev_pm_opp_of_remove_table()

2020-09-10 Thread Viresh Kumar
On 31-08-20, 16:39, Viresh Kumar wrote: > On 28-08-20, 11:37, Viresh Kumar wrote: > > Hello, > > > > This cleans up some of the user code around calls to > > dev_pm_opp_of_remove_table(). > > > > All the patches can be picked by respective maintainers directly except > > for the last patch, which

[PATCH v5 2/2] drm/bridge: hx8837: add a Himax HX8837 display controller driver

2020-09-10 Thread Lubomir Rintel
Himax HX8837 is used to drive the LCD panel on OLPC platforms. It controls the panel backlight and is able to refresh it when the LCD controller (and the rest of the plaform) is powered off. It also converts regular RGB color data from the LCDC so that it looks reasonable on the OLPC LCD panel wi

[PATCH -next 1/8] drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v9_0.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2805:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/

[PATCH] drm/scheduler: fix sched_fence.c kernel-doc warnings

2020-09-10 Thread Tian Tao
Fix kernel-doc warnings. drivers/gpu/drm/scheduler/sched_fence.c:110: warning: Function parameter or member 'f' not described in 'drm_sched_fence_release_scheduled' drivers/gpu/drm/scheduler/sched_fence.c:110: warning: Excess function parameter 'fence' description in 'drm_sched_fence_release_schedu

[PATCH -next] drm/amd/display: Create trigger_hotplug entry

2020-09-10 Thread YueHaibing
Add trigger_hotplug debugfs entry. Fixes: 6f77b2ac6280 ("drm/amd/display: Add connector HPD trigger debugfs entry") Signed-off-by: YueHaibing --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/am

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-10 Thread Jason Gunthorpe
On Wed, Sep 09, 2020 at 01:06:39PM -0700, Joe Perches wrote: > fallthrough to a separate case/default label break; isn't very readable. > > Convert pseudo-keyword fallthrough; statements to a simple break; when > the next label is case or default and the only statement in the next > label block is

[PATCH -next] drm/bridge/tc358775: Remove unneeded semicolon

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/bridge/tc358775.c:488:2-3: Unneeded semicolon Signed-off-by: Zheng Bin --- drivers/gpu/drm/bridge/tc358775.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index

[PATCH -next 4/8] drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_2.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:562:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/dr

[PATCH v5 0/2] Add a Himax HX8837 display controller driver

2020-09-10 Thread Lubomir Rintel
Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. The only change since the previous version is the Reviewed-by tag in DT bindings. Compared to v3 the bindings have been con

[PATCH] drm/mm: prevent a potential null-pointer dereference

2020-09-10 Thread Jing Xiangfeng
The macro 'DECLARE_NEXT_HOLE_ADDR' may hit a potential null-pointer dereference. So use 'entry' after checking it. Fixes: 5fad79fd66ff ("drm/mm: cleanup and improve next_hole_*_addr()") Signed-off-by: Jing Xiangfeng --- drivers/gpu/drm/drm_mm.c | 7 +-- 1 file changed, 5 insertions(+), 2 del

Re: [PATCH v5 33/36] memory: tegra30-emc: Register as interconnect provider

2020-09-10 Thread Georgi Djakov
On 8/14/20 03:06, Dmitry Osipenko wrote: > Now external memory controller is a memory interconnection provider. > This allows us to use interconnect API to change memory configuration. > > Signed-off-by: Dmitry Osipenko Acked-by: Georgi Djakov ___ dri

[PATCH -next] drm/panel: s6e63m0: Add missing MODULE_LICENSE

2020-09-10 Thread YueHaibing
Kbuild warns when this file is built as a loadable module: WARNING: modpost: missing MODULE_LICENSE() in drivers/gpu/drm/panel/panel-samsung-s6e63m0.o Add the missing license/author/description tags. Fixes: b7b23e447687 ("drm/panel: s6e63m0: Break out SPI transport") Signed-off-by: YueHaibing

Re: [PATCH] drm/vc4/vc4_hdmi: fill ASoC card owner

2020-09-10 Thread Maxime Ripard
On Tue, Aug 25, 2020 at 02:38:19PM +0200, Stefan Wahren wrote: > Am 10.07.20 um 11:47 schrieb Stefan Wahren: > > Hi Marek, > > > > Am 02.07.20 um 08:58 schrieb Marek Szyprowski: > >> On 01.07.2020 20:49, Stefan Wahren wrote: > >>> Am 01.07.20 um 09:39 schrieb Marek Szyprowski: > card->owner is

[PATCH] drm/mediatek: add exception handing in mtk_drm_probe() if component init fail

2020-09-10 Thread Yu Kuai
mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), if it fail, previous successive init component is not proccessed. Thus uninitialize valid component and put their device if component init failed. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-b

[PATCH] drm/vc4: Remove unused variables

2020-09-10 Thread Tian Tao
Fixes the following W=1 kernel build warning(s): vc4_plane.c: In function ‘vc4_plane_init’: vc4_plane.c:1340:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Tian Tao --- drivers/gpu/drm/vc4/vc4_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH v5] drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets

2020-09-10 Thread Kuogee Hsieh
add event thread to execute events serially from event queue. Also timeout mode is supported which allow an event be deferred to be executed at later time. Both link and phy compliant tests had been done successfully. Changes in v2: - Fix potential deadlock by removing redundant connect_mutex - C

[PATCH -next 0/8] drm/amd/amdgpu: fix comparison pointer to bool warning

2020-09-10 Thread Zheng Bin
Zheng Bin (8): drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v9_0.c drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_0.c drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_2

[PATCH -next] drm/ttm/agp: Fix Wunused-variable warning

2020-09-10 Thread YueHaibing
If CONFIG_AGP is not set, gcc warns: drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_ttm_tt_bind’: drivers/gpu/drm/radeon/radeon_ttm.c:692:24: warning: unused variable ‘rdev’ [-Wunused-variable] struct radeon_device *rdev = radeon_get_rdev(bdev); ^~~~ Move it t

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

2020-09-10 Thread Alex Dewar
kmemdup can be used instead of kmalloc+memcpy. Replace an occurrence of this pattern. Issue identified with Coccinelle. Signed-off-by: Alex Dewar --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/synop

[PATCH -next 2/8] drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3563:5-31: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/d

Re: [PATCH 2/3] backlight: pwm_bl: Artificially add 0% during interpolation

2020-09-10 Thread Alexandru M Stan
On Fri, Sep 4, 2020 at 4:38 AM Daniel Thompson wrote: > > On Mon, Jul 20, 2020 at 09:25:21PM -0700, Alexandru Stan wrote: > > Some displays need the low end of the curve cropped in order to make > > them happy. In that case we still want to have the 0% point, even though > > anything between 0% an

[PATCH -next 6/8] drm/amd/amdgpu: fix comparison pointer to bool warning in uvd_v6_0.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c:1243:14-25: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu

[PATCH -next 7/8] drm/amd/amdgpu: fix comparison pointer to bool warning in amdgpu_atpx_handler.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c:619:15-49: WARNING: Comparison to bool drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c:629:15-49: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 ++-- 1 f

[PATCH] [RFC] drm/stm: Prefer faster display pixel clock over slower ones

2020-09-10 Thread Marek Vasut
If the delta between requested pixelclock and resulting pixelclock is larger than the delta between requested pixelclock and the next step in available pixelclock (limited to 10% of pixelclock to avoid too much out-of-specification operation), use the faster pixelclock. This fixes the condition wh

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

2020-09-10 Thread Bernard Zhao
In fnction is_cr_done & is_ch_eq_done, when done = false happened once, no need to circle left ln_count. This change is to make the code run a bit fast. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 14 +- 1 file changed, 5 insertions(+), 9 deleti

[PATCH v3 2/2] drm: bridge: add support for lontium LT9611UXC bridge

2020-09-10 Thread Dmitry Baryshkov
Add support for Lontium LT9611UXC HDMI bridge. Lontium LT9611UXC is a DSI to HDMI bridge which supports two DSI ports and I2S port as an input and HDMI port as output. Despite name being similar to LT9611, these devices are different enough to warrant separate driver. Signed-off-by: Dmitry Baryshk

[PATCH -next] drm/amd/display: Fix possible memleak in dp_trigger_hotplug()

2020-09-10 Thread YueHaibing
If parse_write_buffer_into_params() fails, we should free wr_buf before return. Fixes: 6f77b2ac6280 ("drm/amd/display: Add connector HPD trigger debugfs entry") Signed-off-by: YueHaibing --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 de

Re: [PATCH v5 27/36] memory: tegra-mc: Register as interconnect provider

2020-09-10 Thread Georgi Djakov
On 8/14/20 03:06, Dmitry Osipenko wrote: > Now memory controller is a memory interconnection provider. This allows us > to use interconnect API in order to change memory configuration. > > Signed-off-by: Dmitry Osipenko Thanks Dmitry! Looks good to me. Acked-by: Georgi Djakov _

[PATCH -next 8/8] drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v4_0.c

2020-09-10 Thread Zheng Bin
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:1003:4-9: WARNING: Comparison to bool drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:1083:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 d

Re: [git pull] drm fixes for 5.9-rc4

2020-09-10 Thread Harald Arnesen
Linus Torvalds [08.09.2020 20:19]: > On Fri, Sep 4, 2020 at 2:51 PM Harald Arnesen wrote: >> >> Still doesn't work without the three reverts >> (763fedd6a216, 9e0f9464e2ab, 7ac2d2536dfa)... > > So this didn't make rc4, but it's in my tree now. > > Harald, I'm assuming things work for you again

[PATCH v3 1/2] dt-bindings: display: bridge: Add documentation for LT9611UXC

2020-09-10 Thread Dmitry Baryshkov
Lontium LT9611UXC is a DSI to HDMI bridge which supports 2 DSI ports and I2S port as input and one HDMI port as output. The LT9611UXC chip is handled by a separate driver, but the bindings used are fully compatible with the LT9611 chip, so let's reuse the lt9611.yaml schema. Signed-off-by: Dmitry

[PATCH v3 0/2] Add LT9611UXC DSI to HDMI bridge support

2020-09-10 Thread Dmitry Baryshkov
Hi, This series adds support for Lontium LT9611UXC bridge chip which takes MIPI DSI as input and provides HDMI signal as output. The chip can be found in Qualcomm RB5 platform [1], [2]. [1] https://www.qualcomm.com/products/qualcomm-robotics-rb5-platform [2] https://www.thundercomm.com/app_en/pr

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Pekka Paalanen
On Wed, 9 Sep 2020 13:57:28 +0300 Laurentiu Palcu wrote: > Hi all, > > I was wondering whether you could give me an advise on how to proceed further > with the following issue as I'm preparing to upstream the next set of patches > for the iMX8MQ display controller(DCSS). The display controller h

Re: [PATCH -next] drm/amdkfd: Fix -Wunused-const-variable warning

2020-09-10 Thread Huang Rui
On Thu, Sep 10, 2020 at 10:55:32AM +0800, YueHaibing wrote: > If KFD_SUPPORT_IOMMU_V2 is not set, gcc warns: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:121:37: warning: > ‘raven_device_info’ defined but not used [-Wunused-const-variable=] > static const struct kfd_device_info raven_de

Re: [PATCH 2/3] backlight: pwm_bl: Artificially add 0% during interpolation

2020-09-10 Thread Daniel Vetter
On Wed, Sep 09, 2020 at 05:03:37PM +0200, Daniel Vetter wrote: > On Wed, Sep 9, 2020 at 4:45 PM Daniel Thompson > wrote: > > > > On Mon, Sep 07, 2020 at 09:50:18AM +0200, Daniel Vetter wrote: > > > On Fri, Sep 04, 2020 at 12:38:22PM +0100, Daniel Thompson wrote: > > > > On Mon, Jul 20, 2020 at 09:

[PULL] drm-intel-fixes

2020-09-10 Thread Jani Nikula
Hi Dave & Daniel - drm-intel-fixes-2020-09-10: drm/i915 fixes for v5.9-rc5: - Fix regression leading to audio probe failure BR, Jani. The following changes since commit f4d51dffc6c01a9e94650d95ce0104964f8ae822: Linux 5.9-rc4 (2020-09-06 17:11:40 -0700) are available in the Git repository a

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Simon Ser
On Wednesday, September 9, 2020 12:57 PM, Laurentiu Palcu wrote: > Hi all, > > I was wondering whether you could give me an advise on how to proceed further > with the following issue as I'm preparing to upstream the next set of patches > for the iMX8MQ display controller(DCSS). The display cont

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Daniel Vetter
On Thu, Sep 10, 2020 at 10:25:43AM +0300, Pekka Paalanen wrote: > On Wed, 9 Sep 2020 13:57:28 +0300 > Laurentiu Palcu wrote: > > > Hi all, > > > > I was wondering whether you could give me an advise on how to proceed > > further > > with the following issue as I'm preparing to upstream the next

Re: [PATCH v2 -next] drm/amdkfd: Fix -Wunused-const-variable warning

2020-09-10 Thread Huang Rui
On Thu, Sep 10, 2020 at 03:50:06PM +0800, YueHaibing wrote: > If KFD_SUPPORT_IOMMU_V2 is not set, gcc warns: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:121:37: warning: > ‘raven_device_info’ defined but not used [-Wunused-const-variable=] > static const struct kfd_device_info raven_de

Re: [PATCH v9 0/5] Add support for iMX8MQ Display Controller Subsystem

2020-09-10 Thread Laurentiu Palcu
Hi Daniel, On Thu, Sep 10, 2020 at 08:47:34AM +0200, Daniel Vetter wrote: > On Wed, Sep 9, 2020 at 5:03 PM Lucas Stach wrote: > > > > Hi Laurentiu, > > > > On Mo, 2020-08-31 at 14:24 +0300, Laurentiu Palcu wrote: > > > Hi Lucas, Sam, > > > > > > On Mon, Aug 31, 2020 at 12:37:23PM +0200, Lucas Sta

[PULL] scatterlists related fixes

2020-09-10 Thread Marek Szyprowski
Hi Dave & Daniel, Please pull a set of fixes for various DRM drivers that finally resolve incorrect usage of the scatterlists (struct sg_table nents and orig_nents entries), what causes issues when IOMMU is used. Best regards Marek Szyprowski, PhD Samsung R&D Institute Poland The following chan

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Daniel Vetter
On Thu, Sep 10, 2020 at 07:50:59AM +, Simon Ser wrote: > On Wednesday, September 9, 2020 12:57 PM, Laurentiu Palcu > wrote: > > > Hi all, > > > > I was wondering whether you could give me an advise on how to proceed > > further > > with the following issue as I'm preparing to upstream the n

Re: [RFC PATCH 1/2] drm/hyperv: Add DRM driver for hyperv synthetic video device

2020-09-10 Thread Tang, Shaofeng
Hi Deepak, Do you have a new version of this patch now? I take a try with it. and meet some typo and "incompatible pointer" error. If you have a new version, could you share it with us? BR, Shaofeng ___ dri-devel mailing list dri-devel@lists.freedesktop

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Simon Ser
On Thursday, September 10, 2020 10:18 AM, Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 07:50:59AM +, Simon Ser wrote: > > > On Wednesday, September 9, 2020 12:57 PM, Laurentiu Palcu > > laurentiu.pa...@oss.nxp.com wrote: > > > > > Hi all, > > > I was wondering whether you could give me an

Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display

2020-09-10 Thread Daniel Vetter
On Mon, Aug 31, 2020 at 01:02:50PM -0700, Anitha Chrisanthus wrote: > This is a basic KMS atomic modesetting display driver for KeemBay family of > SOCs. Driver has no 2D or 3D graphics.It calls into the ADV bridge > driver at the connector level. > > Single CRTC with LCD controller->mipi DSI-> AD

Re: [PATCH v7 3/4] drm/kmb: Mipi DSI part of the display driver

2020-09-10 Thread Daniel Vetter
On Mon, Aug 31, 2020 at 01:02:51PM -0700, Anitha Chrisanthus wrote: > Initializes Mipi DSI and sets up connects to ADV bridge > > v2: removed license text > upclassed dev_private, removed HAVE_IRQ. (Sam) > > v3: Squashed all 59 commits to one > > v4: review changes from Sam Ravnborg >

[Bug 209163] amdgpu: The CS has been cancelled because the context is lost

2020-09-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209163 --- Comment #9 from Christian König (christian.koe...@amd.com) --- Try amdgpu.vramlimit=512 on the kernel command line to limit the available VRAM to 512MB. The problem is certainly some kind of memory leak. You need to test an up to date kernel

Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display

2020-09-10 Thread Daniel Vetter
On Mon, Aug 31, 2020 at 01:02:50PM -0700, Anitha Chrisanthus wrote: > This is a basic KMS atomic modesetting display driver for KeemBay family of > SOCs. Driver has no 2D or 3D graphics.It calls into the ADV bridge > driver at the connector level. > > Single CRTC with LCD controller->mipi DSI-> AD

Re: [PATCH v7 0/4] Add support for KeemBay DRM driver

2020-09-10 Thread Daniel Vetter
On Mon, Aug 31, 2020 at 01:02:48PM -0700, Anitha Chrisanthus wrote: > This is a new DRM driver for Intel's KeemBay SOC. > The SoC couples an ARM Cortex A53 CPU with an Intel > Movidius VPU. > > This driver is tested with the KMB EVM board which is the refernce baord > for Keem Bay SOC. The SOC's d

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-10 Thread Felipe Balbi
Hi, Joe Perches writes: > drivers/usb/dwc3/core.c | 2 +- > drivers/usb/gadget/legacy/inode.c | 2 +- > drivers/usb/gadget/udc/pxa25x_udc.c | 4 ++-- > drivers/usb/phy/phy-fsl-usb.c |

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Pekka Paalanen
On Thu, 10 Sep 2020 09:52:26 +0200 Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 10:25:43AM +0300, Pekka Paalanen wrote: > > On Wed, 9 Sep 2020 13:57:28 +0300 > > Laurentiu Palcu wrote: > > > > > Hi all, > > > > > > I was wondering whether you could give me an advise on how to proceed > >

Re: [PATCH -next] drm/ttm/agp: Fix Wunused-variable warning

2020-09-10 Thread Christian König
Am 10.09.20 um 04:33 schrieb YueHaibing: If CONFIG_AGP is not set, gcc warns: drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_ttm_tt_bind’: drivers/gpu/drm/radeon/radeon_ttm.c:692:24: warning: unused variable ‘rdev’ [-Wunused-variable] struct radeon_device *rdev = radeon_get_rdev(bd

Re: [PATCH] drm/mm: prevent a potential null-pointer dereference

2020-09-10 Thread Christian König
Am 10.09.20 um 04:38 schrieb Jing Xiangfeng: The macro 'DECLARE_NEXT_HOLE_ADDR' may hit a potential null-pointer dereference. So use 'entry' after checking it. I don't see a potential null-pointer dereference here. Where should that be? Christian. Fixes: 5fad79fd66ff ("drm/mm: cleanup and

Re: [PATCH v10 30/30] videobuf2: use sgtable-based scatterlist wrappers

2020-09-10 Thread Hans Verkuil
On 04/09/2020 15:17, Marek Szyprowski wrote: > Use recently introduced common wrappers operating directly on the struct > sg_table objects and scatterlist page iterators to make the code a bit > more compact, robust, easier to follow and copy/paste safe. > > No functional change, because the code

Re: [PATCH v10 29/30] media: pci: fix common ALSA DMA-mapping related codes

2020-09-10 Thread Hans Verkuil
On 04/09/2020 15:17, Marek Szyprowski wrote: > The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the > numer of the created entries in the DMA address space. However the numer -> number > subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be > called with the

[RFC PATCH 3/3] drm: mxsfb: enforce framebuffer size matches plane size

2020-09-10 Thread Stefan Agner
The plane size must match the CRTC already (enforced by not setting the CAN_POSTION flag). However, the controller also requires the framebuffer to be exactly the CRTC size. Make use of the new flag DRM_PLANE_REQUIRE_MATCHING_FB to match the plane size. Signed-off-by: Stefan Agner --- drivers/gp

[RFC PATCH 2/3] drm/atomic-helper: add REQUIRE_MATCHING_FB flag

2020-09-10 Thread Stefan Agner
Add flag which checks that the framebuffer size matches the plane size exactly. This is useful for display controller which can't handle framebuffers other than the plane/CRTC size. Signed-off-by: Stefan Agner --- drivers/gpu/drm/drm_atomic_helper.c | 7 +++ drivers/gpu/drm/sel

[RFC PATCH 1/3] drm: use flags instead of boolean in plane check

2020-09-10 Thread Stefan Agner
To improve readability and make it easier to add further optional checks replace the boolean parameters with a single flag bitfield as parameter of drm_atomic_helper_check_plane_state. The regular call sites have been converted using a simple coccinelle patch. virtual patch @@ expression e1, e2,

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Laurentiu Palcu
Hi Pekka, On Thu, Sep 10, 2020 at 11:50:26AM +0300, Pekka Paalanen wrote: > On Thu, 10 Sep 2020 09:52:26 +0200 > Daniel Vetter wrote: > > > On Thu, Sep 10, 2020 at 10:25:43AM +0300, Pekka Paalanen wrote: > > > On Wed, 9 Sep 2020 13:57:28 +0300 > > > Laurentiu Palcu wrote: > > > > > > > Hi al

Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display

2020-09-10 Thread Neil Armstrong
On 31/08/2020 22:02, Anitha Chrisanthus wrote: > This is a basic KMS atomic modesetting display driver for KeemBay family of > SOCs. Driver has no 2D or 3D graphics.It calls into the ADV bridge > driver at the connector level. > > Single CRTC with LCD controller->mipi DSI-> ADV bridge > > Only 10

Re: [PATCH v2 05/10] arm64: dts: renesas: r8a77961: Add FCP device nodes

2020-09-10 Thread Geert Uytterhoeven
Hi Morimoto-san, On Tue, Sep 8, 2020 at 2:34 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch adds FCP device nodes for R-Car M3-W+ (r8a77961) SoC. > This patch was tested on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto > --- a/arch/arm64/boot/dts/ren

Re: [PATCH 5/9] arm64: dts: renesas: r8a77961: Add VSP device nodes

2020-09-10 Thread Geert Uytterhoeven
On Mon, Sep 7, 2020 at 4:59 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch adds VSP device nodes for R-Car M3-W+ (r8a77961) SoC. > This patch is test on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH 5/9] arm64: dts: renesas: r8a77961: Add VSP device nodes

2020-09-10 Thread Geert Uytterhoeven
Hi Kieran, On Mon, Sep 7, 2020 at 5:55 PM Kieran Bingham wrote: > On 07/09/2020 03:59, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > > > This patch adds VSP device nodes for R-Car M3-W+ (r8a77961) SoC. > > This patch is test on R-Car M3-W+ Salvator-XS board. > > > > Signed-off-by: Kun

Re: [PATCH v10 30/30] videobuf2: use sgtable-based scatterlist wrappers

2020-09-10 Thread Tomasz Figa
On Thu, Sep 10, 2020 at 11:17 AM Hans Verkuil wrote: > > On 04/09/2020 15:17, Marek Szyprowski wrote: > > Use recently introduced common wrappers operating directly on the struct > > sg_table objects and scatterlist page iterators to make the code a bit > > more compact, robust, easier to follow a

Re: [PATCH v2 07/10] arm64: dts: renesas: r8a77961: Add DU device nodes

2020-09-10 Thread Geert Uytterhoeven
On Tue, Sep 8, 2020 at 2:35 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch adds DU device nodes for R-Car M3-W+ (r8a77961) SoC. > This patch was tested on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}

Re: [PATCH v2 07/10] arm64: dts: renesas: r8a77961: Add DU device nodes

2020-09-10 Thread Geert Uytterhoeven
Hi Morimoto-san, On Tue, Sep 8, 2020 at 2:35 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch adds DU device nodes for R-Car M3-W+ (r8a77961) SoC. > This patch was tested on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto > --- > arch/arm64/boot/dts/rene

Re: [PATCH v2 08/10] arm64: dts: renesas: r8a77961: Add HDMI device nodes

2020-09-10 Thread Geert Uytterhoeven
On Tue, Sep 8, 2020 at 2:35 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch adds HDMI device nodes for R-Car M3-W+ (r8a77961) SoC. > This patch was tested on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Gr{oetje,eetin

[PATCH] drm/imx/dcss: fix compilation issue on 32bit

2020-09-10 Thread Laurentiu Palcu
When compiling for 32bit platforms, the compilation fails with: ERROR: modpost: "__aeabi_ldivmod" [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! This patch adds a dependency on ARM64 since no 32bit SoCs have D

Re: [PATCH v2 09/10] arm64: dts: renesas: r8a77961-salvator-xs: add HDMI Display support

2020-09-10 Thread Geert Uytterhoeven
On Tue, Sep 8, 2020 at 2:35 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > This patch enables HDMI Display on R-Car M3-W+ Salvator-XS board. > > Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeve

Re: [PATCH] drm/imx/dcss: fix compilation issue on 32bit

2020-09-10 Thread Daniel Vetter
On Thu, Sep 10, 2020 at 11:53 AM Laurentiu Palcu wrote: > > When compiling for 32bit platforms, the compilation fails with: > > ERROR: modpost: "__aeabi_ldivmod" > [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! > ERROR: modpost: "__aeabi_uldivmod" > [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefi

[PATCH] drm/vc4: hdmi: Fix off by ones in vc4_hdmi_read/write()

2020-09-10 Thread Dan Carpenter
The variant->registers[] has ->num_registers elements so the > comparison needs to be changes to >= to prevent an out of bounds access. Fixes: 311e305fdb4e ("drm/vc4: hdmi: Implement a register layout abstraction") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 4 ++-- 1

[PATCH] drm/vc4: hdmi: Fix NULL vs IS_ERR() checks in vc5_hdmi_init_resources()

2020-09-10 Thread Dan Carpenter
The devm_ioremap() function never returns error pointers, it returns NULL. Fixes: 8323989140f3 ("drm/vc4: hdmi: Support the BCM2711 HDMI controllers") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/vc4/vc4_hdmi.c | 32 1 file changed, 16 insertions(+), 16 delet

[PATCH][next] drm/i915: Fix inconsistent IS_ERR and PTR_ERR

2020-09-10 Thread Gustavo A. R. Silva
Fix inconsistent IS_ERR and PTR_ERR in i915_gem_object_copy_blt(). The proper pointer to be passed as argument to PTR_ERR() is vma[1]. This bug was detected with the help of Coccinelle. Fixes: 6b05030496f7 ("drm/i915: Convert i915_gem_object/client_blt.c to use ww locking as well, v2.") Signed-

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-10 Thread Matthias Brugger
On 09/09/2020 22:06, Joe Perches wrote: diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c index 09f931d4598c..778be26d329f 100644 --- a/drivers/net/wireless/mediatek/mt7601u/dma.c +++ b/drivers/net/wireless/mediatek/mt7601u/dma.c @@ -193,11

Re: [PATCH] drm/imx/dcss: fix compilation issue on 32bit

2020-09-10 Thread Laurentiu Palcu
On Thu, Sep 10, 2020 at 11:57:10AM +0200, Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 11:53 AM Laurentiu Palcu > wrote: > > > > When compiling for 32bit platforms, the compilation fails with: > > > > ERROR: modpost: "__aeabi_ldivmod" > > [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! > > ERR

Re: [PATCH] drm/imx/dcss: fix compilation issue on 32bit

2020-09-10 Thread Lucas Stach
On Do, 2020-09-10 at 13:21 +0300, Laurentiu Palcu wrote: > On Thu, Sep 10, 2020 at 11:57:10AM +0200, Daniel Vetter wrote: > > On Thu, Sep 10, 2020 at 11:53 AM Laurentiu Palcu > > wrote: > > > When compiling for 32bit platforms, the compilation fails with: > > > > > > ERROR: modpost: "__aeabi_ldiv

Re: [PATCH] drm/imx/dcss: fix compilation issue on 32bit

2020-09-10 Thread Laurentiu Palcu
Hi Lucas, On Thu, Sep 10, 2020 at 12:24:44PM +0200, Lucas Stach wrote: > On Do, 2020-09-10 at 13:21 +0300, Laurentiu Palcu wrote: > > On Thu, Sep 10, 2020 at 11:57:10AM +0200, Daniel Vetter wrote: > > > On Thu, Sep 10, 2020 at 11:53 AM Laurentiu Palcu > > > wrote: > > > > When compiling for 32bit

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Pekka Paalanen
On Thu, 10 Sep 2020 12:30:09 +0300 Laurentiu Palcu wrote: > Hi Pekka, > > On Thu, Sep 10, 2020 at 11:50:26AM +0300, Pekka Paalanen wrote: > > On Thu, 10 Sep 2020 09:52:26 +0200 > > Daniel Vetter wrote: > > > > > On Thu, Sep 10, 2020 at 10:25:43AM +0300, Pekka Paalanen wrote: > > > > On Wed

Re: [PATCH 5/9] arm64: dts: renesas: r8a77961: Add VSP device nodes

2020-09-10 Thread Kieran Bingham
Hi Geert, On 10/09/2020 10:44, Geert Uytterhoeven wrote: > Hi Kieran, > > On Mon, Sep 7, 2020 at 5:55 PM Kieran Bingham > wrote: >> On 07/09/2020 03:59, Kuninori Morimoto wrote: >>> From: Kuninori Morimoto >>> >>> This patch adds VSP device nodes for R-Car M3-W+ (r8a77961) SoC. >>> This patch i

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Laurentiu Palcu
Hi Pekka, On Thu, Sep 10, 2020 at 01:28:03PM +0300, Pekka Paalanen wrote: > On Thu, 10 Sep 2020 12:30:09 +0300 > Laurentiu Palcu wrote: > > > Hi Pekka, > > > > On Thu, Sep 10, 2020 at 11:50:26AM +0300, Pekka Paalanen wrote: > > > On Thu, 10 Sep 2020 09:52:26 +0200 > > > Daniel Vetter wrote: >

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Laurent Pinchart
Hi Pekka, On Thu, Sep 10, 2020 at 11:50:26AM +0300, Pekka Paalanen wrote: > On Thu, 10 Sep 2020 09:52:26 +0200 Daniel Vetter wrote: > > > On Thu, Sep 10, 2020 at 10:25:43AM +0300, Pekka Paalanen wrote: > > > On Wed, 9 Sep 2020 13:57:28 +0300 Laurentiu Palcu wrote: > > > > > > > Hi all, > > > >

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Laurent Pinchart
Hi Pekka, On Thu, Sep 10, 2020 at 01:28:03PM +0300, Pekka Paalanen wrote: > On Thu, 10 Sep 2020 12:30:09 +0300 Laurentiu Palcu wrote: > > On Thu, Sep 10, 2020 at 11:50:26AM +0300, Pekka Paalanen wrote: > > > On Thu, 10 Sep 2020 09:52:26 +0200 Daniel Vetter wrote: > > > > On Thu, Sep 10, 2020 at 10

Re: [PATCH 5/9] arm64: dts: renesas: r8a77961: Add VSP device nodes

2020-09-10 Thread Geert Uytterhoeven
Hi Kieran, On Thu, Sep 10, 2020 at 12:34 PM Kieran Bingham wrote: > On 10/09/2020 10:44, Geert Uytterhoeven wrote: > > On Mon, Sep 7, 2020 at 5:55 PM Kieran Bingham > > wrote: > >> On 07/09/2020 03:59, Kuninori Morimoto wrote: > >>> From: Kuninori Morimoto > >>> > >>> This patch adds VSP device

Re: per-plane LUTs and CSCs?

2020-09-10 Thread Ville Syrjälä
On Thu, Sep 10, 2020 at 10:18:36AM +0200, Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 07:50:59AM +, Simon Ser wrote: > > On Wednesday, September 9, 2020 12:57 PM, Laurentiu Palcu > > wrote: > > > > > Hi all, > > > > > > I was wondering whether you could give me an advise on how to proceed

[PATCH 3/4] drm/vmwgfx: stop setting multiple domain flags

2020-09-10 Thread Christian König
Setting more than one placement flag is illegal. Fix this by using the current flags. Signed-off-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c b/drivers/gpu/drm/vmwgfx/vmwgfx

[PATCH 1/4] drm/vram-helper: stop using TTM placement flags

2020-09-10 Thread Christian König
Those are going to be removed, stop using them here. Instead define separate flags for the helper. Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem_vram_helper.c | 14 +- include/drm/drm_gem_vram_helper.h | 7 +++ 2 files changed, 12 insertions(+), 9 deletions(-)

[PATCH 2/4] drm/nouveau: stop using TTM placement flags

2020-09-10 Thread Christian König
Those are going to be removed, stop using them here. Instead use the GEM flags from the UAPI. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/dispnv04/crtc.c| 9 ++- drivers/gpu/drm/nouveau/dispnv04/disp.c| 5 +- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 4 +- drivers/g

[PATCH 4/4] drm/ttm: nuke memory type flags

2020-09-10 Thread Christian König
It's not supported to specify more than one of those flags. So it never made sense to make this a flag in the first place. Nuke the flags and specify directly which memory type to use. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 24 +++--- drivers/gpu/drm/amd

Re: drm/bridge: Synopsys DW-HDMI bridge driver for the Ingenic JZ4780 (was Re: Specialising the Synopsys DW-HDMI bridge driver for the Ingenic JZ4780)

2020-09-10 Thread Ezequiel Garcia
On Thu, 10 Sep 2020 at 04:54, H. Nikolaus Schaller wrote: > > Hi Ezequiel, > > > Am 27.08.2020 um 09:21 schrieb H. Nikolaus Schaller : > > > > Hi Ezequiel, > > > >> Am 24.08.2020 um 19:38 schrieb Ezequiel Garcia > >> : > >> > >> On Mon, 24 Aug 2020 at 13:05, H. Nikolaus Schaller > >> wrote: > >

  1   2   >