[PATCH v4] dma-buf: system_heap: Use 'for_each_sgtable_sg' in pages free flow

2021-11-25 Thread guangming.cao
From: Guangming For previous version, it uses 'sg_table.nent's to traverse sg_table in pages free flow. However, 'sg_table.nents' is reassigned in 'dma_map_sg', it means the number of created entries in the DMA adderess space. So, use 'sg_table.nents' in pages free flow will case some pages can't

Re: drm/ttm: moving the LRU into the resource

2021-11-25 Thread Thomas Hellström
Hi, Christian, On 11/24/21 13:44, Christian König wrote: Hi guys, I've already send out this patch set a couple of times. This fixes the fundamental problem in TTM that during a move a buffer has resources allocated from two different domains at the same time. Additional to that it's a prereq

Re: [PATCH 03/12] drm/ttm: add a weak BO reference to the resource v3

2021-11-25 Thread Thomas Hellström
On 11/24/21 13:44, Christian König wrote: Keep track for which BO a resource was allocated. This is necessary to move the LRU handling into the resources. A bit problematic is i915 since it tries to use the resource interface without a BO which is illegal from the conceptional point of view.

Re: [PATCH 08/12] arm64: dts: rockchip: rk356x: Add VOP2 nodes

2021-11-25 Thread Sascha Hauer
On Thu, Nov 25, 2021 at 09:25:28PM +0100, Johan Jonker wrote: > Hi Sascha, > > > On 11/17/21 3:33 PM, Sascha Hauer wrote: > > The VOP2 is the display output controller on the RK3568. Add the node > > for it to the dtsi file along with the required display-subsystem node > > and the iommu node. >

Re: [PATCH 01/12] drm/ttm: add ttm_resource_fini

2021-11-25 Thread Christian König
Am 26.11.21 um 07:48 schrieb Huang Rui: On Wed, Nov 24, 2021 at 08:44:19PM +0800, Christian König wrote: Make sure we call the common cleanup function in all implementations of the resource manager. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 ++ d

Re: [PATCH 0/2] virtgpu dummy events

2021-11-25 Thread Daniel Vetter
On Mon, Nov 22, 2021 at 03:22:08PM -0800, Gurchetan Singh wrote: > From: Gurchetan Singh > > There was a desire to not have a virtgpu-specific implementation of > poll(..), but there wasn't any real event to return either. > > Solution: Dummy event with just event code > > Context: > > https:/

Re: [PATCH 12/12] drm: rockchip: Add VOP2 driver

2021-11-25 Thread kernel test robot
Hi Sascha, I love your patch! Perhaps something to improve: [auto build test WARNING on rockchip/for-next] [also build test WARNING on drm/drm-next v5.16-rc2 next-20211125] [cannot apply to arm64/for-next/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v3] dma-buf: system_heap: Use 'for_each_sgtable_sg' in pages free flow

2021-11-25 Thread Greg KH
On Fri, Nov 26, 2021 at 11:16:05AM +0800, guangming@mediatek.com wrote: > From: Guangming > > For previous version, it uses 'sg_table.nent's to traverse sg_table in pages > free flow. > However, 'sg_table.nents' is reassigned in 'dma_map_sg', it means the number > of > created entries in the

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-11-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #81 from kolAflash (kolafl...@kolahilft.de) --- Created attachment 299721 --> https://bugzilla.kernel.org/attachment.cgi?id=299721&action=edit Linux kernel make .config @James Compiling v5.10.80 (f884bb85b8d877d4e0c670403754813a790

[PATCH v3] dma-buf: system_heap: Use 'for_each_sgtable_sg' in pages free flow

2021-11-25 Thread guangming.cao
From: Guangming For previous version, it uses 'sg_table.nent's to traverse sg_table in pages free flow. However, 'sg_table.nents' is reassigned in 'dma_map_sg', it means the number of created entries in the DMA adderess space. So, use 'sg_table.nents' in pages free flow will case some pages can't

[PATCH v2 1/2] drm/msm/dpu: simplify clocks handling

2021-11-25 Thread Dmitry Baryshkov
DPU driver contains code to parse clock items from device tree into special data struct and then enable/disable/set rate for the clocks using that data struct. However the DPU driver itself uses only parsing and enabling/disabling part (the rate setting is used by DP driver). Move this implementat

[PATCH v2 2/2] drm/msm/dp: rewrite dss_module_power to use bulk clock functions

2021-11-25 Thread Dmitry Baryshkov
In order to simplify DP code, drop hand-coded loops over clock arrays, replacing them with clk_bulk_* functions. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/dp/dp_clk_util.c | 120 --- drivers/gpu/drm/msm/dp/dp_clk

[PATCH v2 0/2] drm/msm: rework clock handling

2021-11-25 Thread Dmitry Baryshkov
msm_dss_clk_*() functions significantly duplicate clk_bulk_* family of functions. Drop custom code and use bulk clocks directly. This also removes dependency of DP driver on the DPU driver internals. Changes since v1: - Rebase on top of current tree to fix conflicts The following changes since c

[PATCH AUTOSEL 5.4 02/19] drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY

2021-11-25 Thread Sasha Levin
From: Julian Braha [ Upstream commit bb162bb2b4394108c8f055d1b115735331205e28 ] When PHY_SUN6I_MIPI_DPHY is selected, and RESET_CONTROLLER is not selected, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for PHY_SUN6I_MIPI_DPHY Depends on [n]: (ARCH_SUNXI [=n]

[PATCH AUTOSEL 5.10 19/28] drm/amd/amdgpu: fix potential memleak

2021-11-25 Thread Sasha Levin
From: Bernard Zhao [ Upstream commit 27dfaedc0d321b4ea4e10c53e4679d6911ab17aa ] In function amdgpu_get_xgmi_hive, when kobject_init_and_add failed There is a potential memleak if not call kobject_put. Reviewed-by: Felix Kuehling Signed-off-by: Bernard Zhao Signed-off-by: Alex Deucher Signed-

[PATCH AUTOSEL 5.10 18/28] drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again

2021-11-25 Thread Sasha Levin
From: shaoyunl [ Upstream commit 2cf49e00d40d5132e3d067b5aa6d84791929ab15 ] In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch already been called, the start_cpsch will not be called since there is no resume in this case. When reset been triggered again,

[PATCH AUTOSEL 5.10 04/28] drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY

2021-11-25 Thread Sasha Levin
From: Julian Braha [ Upstream commit bb162bb2b4394108c8f055d1b115735331205e28 ] When PHY_SUN6I_MIPI_DPHY is selected, and RESET_CONTROLLER is not selected, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for PHY_SUN6I_MIPI_DPHY Depends on [n]: (ARCH_SUNXI [=n]

[PATCH AUTOSEL 5.15 26/39] drm/amd/amdgpu: fix potential memleak

2021-11-25 Thread Sasha Levin
From: Bernard Zhao [ Upstream commit 27dfaedc0d321b4ea4e10c53e4679d6911ab17aa ] In function amdgpu_get_xgmi_hive, when kobject_init_and_add failed There is a potential memleak if not call kobject_put. Reviewed-by: Felix Kuehling Signed-off-by: Bernard Zhao Signed-off-by: Alex Deucher Signed-

[PATCH AUTOSEL 5.15 25/39] drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again

2021-11-25 Thread Sasha Levin
From: shaoyunl [ Upstream commit 2cf49e00d40d5132e3d067b5aa6d84791929ab15 ] In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch already been called, the start_cpsch will not be called since there is no resume in this case. When reset been triggered again,

[PATCH AUTOSEL 5.15 24/39] drm/amd/pm: Remove artificial freq level on Navi1x

2021-11-25 Thread Sasha Levin
From: Lijo Lazar [ Upstream commit be83a5676767c99c2417083c29d42aa1e109a69d ] Print Navi1x fine grained clocks in a consistent manner with other SOCs. Don't show aritificial DPM level when the current clock equals min or max. Signed-off-by: Lijo Lazar Reviewed-by: Evan Quan Acked-by: Alex Deu

[PATCH AUTOSEL 5.15 05/39] drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY

2021-11-25 Thread Sasha Levin
From: Julian Braha [ Upstream commit bb162bb2b4394108c8f055d1b115735331205e28 ] When PHY_SUN6I_MIPI_DPHY is selected, and RESET_CONTROLLER is not selected, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for PHY_SUN6I_MIPI_DPHY Depends on [n]: (ARCH_SUNXI [=n]

[PATCH v3 2/3] drm/msm/dpu: get INTF blocks directly rather than through RM

2021-11-25 Thread Dmitry Baryshkov
INTF blocks are not really handled by resource manager, they are assigned at dpu_encoder_setup_display using dpu_encoder_get_intf(). Then this allocation is passed to RM and then returned to then dpu_encoder. So allocate them outside of RM and use them directly. Signed-off-by: Dmitry Baryshkov --

[PATCH v3 3/3] drm/msm/dpu: drop unused lm_max_width from RM

2021-11-25 Thread Dmitry Baryshkov
No code uses lm_max_width from resource manager, so drop it. Instead of calculating the lm_max_width, code can use max_mixer_width field from the hw catalog. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 12 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 4

[PATCH v3 0/3] drm/msm/dpu: simplify RM code

2021-11-25 Thread Dmitry Baryshkov
INTF blocks are not really handled by resource manager, they are assigned at dpu_encoder_setup_display using dpu_encoder_get_intf(). Then this allocation is passed to RM and then returned to then dpu_encoder. So allocate them outside of RM and use them directly. While we are at fix, drop the lm_ma

[PATCH v3 1/3] drm/msm/dpu: consistently index dpu_kms->hw_vbif

2021-11-25 Thread Dmitry Baryshkov
Always use vbif_idx to index VBIFs in the dpu_kms->hw_vbif. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 8 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu

Re: [git pull] drm fixes for 5.16-rc3

2021-11-25 Thread pr-tracker-bot
The pull request you sent on Fri, 26 Nov 2021 10:52:04 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-11-26 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a4849f6000e29235a2707f22e39da6b897bb9543 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [PATCH 2/3] drm/vc4: plane: Add support for DRM_FORMAT_P030

2021-11-25 Thread kernel test robot
Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip v5.16-rc2 next-20211125] [cannot apply to anholt/for-next] [If your patch is applied to the wrong git tree, kindly drop us a

[PATCH] drm/msm/dpu: remove extra wrappers around dpu_core_irq

2021-11-25 Thread Dmitry Baryshkov
Remove extra dpu_irq_* wrappers from dpu_kms.c, merge them directly into dpu_core_irq_* functions. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 12 - .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 9 --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

[Bug 201957] amdgpu: ring gfx timeout

2021-11-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 T. Noah (aus...@tutanota.com) changed: What|Removed |Added CC||aus...@tutanota.com --- C

Re: [PATCH v4] i2c: tegra: Add the ACPI support

2021-11-25 Thread Dmitry Osipenko
25.11.2021 19:53, Akhil R пишет: > Add support for the ACPI based device registration so that the driver > can be also enabled through ACPI table. > > This does not include the ACPI support for Tegra VI and DVC I2C. > > Signed-off-by: Akhil R > --- > drivers/i2c/busses/i2c-tegra.c | 52 > +

[git pull] drm fixes for 5.16-rc3

2021-11-25 Thread Dave Airlie
Hey Linus, No idea if turkey comes before pull request processing, but here's the regular week's fixes. A bunch for amdgpu, nouveau adds support for a new GPU (like a PCI ID addition), and a scattering of fixes across i915/hyperv/aspeed/vc4. Dave. drm-fixes-2021-11-26: drm fixes for 5.16-rc3 am

Re: [PATCH v4] i2c: tegra: Add the ACPI support

2021-11-25 Thread Dmitry Osipenko
25.11.2021 22:28, Andy Shevchenko пишет: >> - err = reset_control_reset(i2c_dev->rst); >> + if (handle) >> + err = acpi_evaluate_object(handle, "_RST", NULL, NULL); > Does it compile for CONFIG_ACPI=n case? > It compiles and works fine with CONFIG_ACPI=n.

[PATCH 2/2] drm/ bridge: tc358762: drop connector field

2021-11-25 Thread Dmitry Baryshkov
The tc358762.connector field is unused. Remove it to save space. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/tc358762.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358762.c b/drivers/gpu/drm/bridge/tc358762.c index ebdf771a1e49..930e19dfb329 100644

[PATCH 1/2] drm/ bridge: tc358762: move bridge init to enable callback

2021-11-25 Thread Dmitry Baryshkov
During the pre_enable time the previous bridge (e.g. DSI host) might be not initialized yet. Move the regulator enablement and bridge init to te enable callback (and consequently regulator disblement to disable). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/tc358762.c | 20

Re: [PATCH] drm/msm: Initialize MDSS irq domain at probe time

2021-11-25 Thread Dmitry Baryshkov
On 25/11/2021 18:09, AngeloGioacchino Del Regno wrote: Since commit 8f59ee9a570c ("drm/msm/dsi: Adjust probe order"), the DSI host gets initialized earlier, but this caused unability to probe the entire stack of components because they all depend on interrupts coming from the main `mdss` node (md

Re: [PATCH] drm/msm: Initialize MDSS irq domain at probe time

2021-11-25 Thread Dmitry Baryshkov
On 25/11/2021 18:09, AngeloGioacchino Del Regno wrote: Since commit 8f59ee9a570c ("drm/msm/dsi: Adjust probe order"), the DSI host gets initialized earlier, but this caused unability to probe the entire stack of components because they all depend on interrupts coming from the main `mdss` node (md

Re: [PATCH v2 2/2] drm/amdkfd: Slighly optimize 'init_doorbell_bitmap()'

2021-11-25 Thread Felix Kuehling
Am 2021-11-23 um 3:46 p.m. schrieb Christophe JAILLET: > The 'doorbell_bitmap' bitmap has just been allocated. So we can use the > non-atomic '__set_bit()' function to save a few cycles as no concurrent > access can happen. > > Reviewed-by: Felix Kuehling > Signed-off-by: Christophe JAILLET Than

Re: [PATCH v9 3/8] dt-bindings: display: Add ingenic, jz4780-dw-hdmi DT Schema

2021-11-25 Thread Rob Herring
On Wed, 24 Nov 2021 22:29:09 +0100, H. Nikolaus Schaller wrote: > From: Sam Ravnborg > > Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. > Based on .txt binding from Zubair Lutfullah Kakakhel > > We also add generic ddc-i2c-bus to synopsys,dw-hdmi.yaml > > Signed-off-by: Sam Rav

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-11-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #80 from James Zhu (jam...@amd.com) --- Hi @kolAflash, I applied those patches on (https://github.com/gregkh/linux.git linux-5.10.y f884bb85b8d877d4e0c670403754813a7901705b) (https://github.com/gregkh/linux.git linux-5.12.y 0e6f65

RE: [RFC v2 01/22] drm: RFC for Plane Color Hardware Pipeline

2021-11-25 Thread Shankar, Uma
> -Original Message- > From: Harry Wentland > Sent: Tuesday, November 23, 2021 8:35 PM > To: Shankar, Uma ; intel-...@lists.freedesktop.org; > dri- > de...@lists.freedesktop.org > Cc: ville.syrj...@linux.intel.com; ppaala...@gmail.com; brian.star...@arm.com; > sebast...@sebastianwick.ne

[ANNOUNCE] libdrm 2.4.109

2021-11-25 Thread Simon Ser
Bas Nieuwenhuizen (1): amdgpu: Add new function to get fd. Eleni Maria Stea (1): xf86drm: fix compiler warnings Emmanuel Vadot (2): ci: Switch freedesktop/ci-templates ci: Add FreeBSD support Simon Ser (2): xf86drm: add drmGetDeviceFromDevId build: bump versio

Re: [PATCH 08/12] arm64: dts: rockchip: rk356x: Add VOP2 nodes

2021-11-25 Thread Johan Jonker
Hi Sascha, On 11/17/21 3:33 PM, Sascha Hauer wrote: > The VOP2 is the display output controller on the RK3568. Add the node > for it to the dtsi file along with the required display-subsystem node > and the iommu node. > > Signed-off-by: Sascha Hauer > --- > arch/arm64/boot/dts/rockchip/rk356x

Re: [PATCH] arm64: dts: rockchip: enable vop2 and hdmi tx on quartz64a

2021-11-25 Thread Johan Jonker
On 11/17/21 4:44 PM, Michael Riesch wrote: > Enable the RK356x Video Output Processor (VOP) 2 on the Pine64 > Quartz64 Model A. > > Signed-off-by: Michael Riesch > --- > .../boot/dts/rockchip/rk3566-quartz64-a.dts | 24 +++ > 1 file changed, 24 insertions(+) > > diff --git

Re: [PATCH v4] i2c: tegra: Add the ACPI support

2021-11-25 Thread Andy Shevchenko
On Thu, Nov 25, 2021 at 6:54 PM Akhil R wrote: > > Add support for the ACPI based device registration so that the driver > can be also enabled through ACPI table. > > This does not include the ACPI support for Tegra VI and DVC I2C. Thanks for an update, my comments below. ... > - err = re

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-11-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #79 from kolAflash (kolafl...@kolahilft.de) --- @James Got this when compiling with Linux-5.10.81: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c: In function ‘kgd2kfd_device_init’: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-11-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #78 from kolAflash (kolafl...@kolahilft.de) --- (In reply to James Zhu from comment #77) > Created attachment 299697 [details] > backport patch for 5.10 stable. > > Hi @kolAflash, before I send out them to public for review,. could yo

Re: [PATCH v2] dma_heap: use for_each_sgtable_sg in sg_table release flow

2021-11-25 Thread Kuan-Ying Lee
On Thu, 2021-11-25 at 21:49 +0800, guangming@mediatek.com wrote: > From: Guangming > > Use (for_each_sgtable_sg) rather than (for_each_sg) to traverse > sg_table to free sg_table. > Use (for_each_sg) maybe will casuse some pages can't be freed > when send wrong nents number. s/casuse/cause

Re: 5.15 regression: CONFIG_SYSFB_SIMPLEFB breaks console scrolling

2021-11-25 Thread Thorsten Leemhuis
On 21.11.21 12:47, Thorsten Leemhuis wrote: > Hi, this is your Linux kernel regression tracker speaking. /me again > On 16.11.21 05:52, Harald Dunkel wrote: >> >> if I enable CONFIG_SYSFB_SIMPLEFB in 5.15.2 and use grub's default >> configuration >> (Debian sid amd64), then a few lines at the bot

[PATCH] drm/msm/dpu: fix exception in error path

2021-11-25 Thread Dmitry Baryshkov
In case of DPU probe failure, prevent the following NULL pointer exception: [3.976112] Unable to handle kernel NULL pointer dereference at virtual address 0030 [3.984983] Mem abort info: [3.987800] ESR = 0x9604 [3.990891] EC = 0x25: DABT (current EL), IL = 32 b

[PATCH] drm/msm/dsi: fix initialization in the bonded DSI case

2021-11-25 Thread Dmitry Baryshkov
Commit 739b4e7756d3 ("drm/msm/dsi: Fix an error code in msm_dsi_modeset_init()") changed msm_dsi_modeset_init() to return an error code in case msm_dsi_manager_validate_current_config() returns false. However this is not an error case, but a slave DSI of the bonded DSI link. In this case msm_dsi_mo

Re: [PATCH 11/15] iio: buffer-dma: Boost performance using write-combine cache setting

2021-11-25 Thread Paul Cercueil
Hi Jonathan, Le dim., nov. 21 2021 at 17:43:20 +, Paul Cercueil a écrit : Hi Jonathan, Le dim., nov. 21 2021 at 15:00:37 +, Jonathan Cameron a écrit : On Mon, 15 Nov 2021 14:19:21 + Paul Cercueil wrote: We can be certain that the input buffers will only be accessed by user

Re: [PATCH 0/6] drm/tiny/st7735r: Match up with staging/fbtft driver

2021-11-25 Thread Noralf Trønnes
Den 24.11.2021 23.03, skrev David Lechner: > On 11/24/21 9:07 AM, Noralf Trønnes wrote: >> Hi, >> >> This patchset adds a missing piece for decommissioning the >> staging/fbtft/fb_st7735r.c driver namely a way to configure the >> controller from Device Tree. >> >> All fbtft drivers have builtin

Re: [PATCH 1/2] drm/msm: Handle ringbuffer overflow

2021-11-25 Thread Rob Clark
On Wed, Nov 24, 2021 at 11:36 PM Dmitry Baryshkov wrote: > > On 28/04/2021 22:36, Rob Clark wrote: > > From: Rob Clark > > > > Currently if userspace manages to fill up the ring faster than the GPU > > can consume we (a) spin for up to 1sec, and then (b) overwrite the > > ringbuffer contents from

[PATCH v4] i2c: tegra: Add the ACPI support

2021-11-25 Thread Akhil R
Add support for the ACPI based device registration so that the driver can be also enabled through ACPI table. This does not include the ACPI support for Tegra VI and DVC I2C. Signed-off-by: Akhil R --- drivers/i2c/busses/i2c-tegra.c | 52 -- 1 file change

Re: [PATCH] drm/amd/display: fix application of sizeof to pointer

2021-11-25 Thread Rodrigo Siqueira Jordao
On 2021-11-23 10:04 p.m., cgel@gmail.com wrote: From: Lv Ruyi Both of split and merge are pointers, not arrays. Reported-by: Zeal Robot Signed-off-by: Lv Ruyi --- drivers/gpu/drm/amd/display/dc/dml/dml_wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-25 Thread Jagan Teki
On Mon, Nov 22, 2021 at 8:34 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 07:49:26PM +0530, Jagan Teki wrote: > > On Mon, Nov 22, 2021 at 7:35 PM Maxime Ripard wrote: > > > On Mon, Nov 22, 2021 at 07:18:13PM +0530, Jagan Teki wrote: > > > > On Mon, Nov 22, 2021 at 3:37 PM Maxime Ripard wr

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-25 Thread Jagan Teki
On Thu, Nov 25, 2021 at 9:40 PM Maxime Ripard wrote: > > On Thu, Nov 25, 2021 at 07:55:41PM +0530, Jagan Teki wrote: > > Hi, > > > > On Thu, Nov 25, 2021 at 7:45 PM Maxime Ripard wrote: > > > > > > On Wed, Nov 24, 2021 at 12:02:47AM +0530, Jagan Teki wrote: > > > > > > > > > + dsi->panel = of

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-25 Thread Maxime Ripard
On Thu, Nov 25, 2021 at 07:55:41PM +0530, Jagan Teki wrote: > Hi, > > On Thu, Nov 25, 2021 at 7:45 PM Maxime Ripard wrote: > > > > On Wed, Nov 24, 2021 at 12:02:47AM +0530, Jagan Teki wrote: > > > > > > > > + dsi->panel = of_drm_find_panel(remote); > > > > > > > > + if (IS_ERR(dsi->panel)

Re: completely rework the dma_resv semantic

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:20:45PM +0100, Christian König wrote: > Hi guys, > > as discussed before this set of patches completely rework the dma_resv > semantic > and spreads the new handling over all the existing drivers and users. > > First of all this drops the DAG approach because it requir

Re: [PATCH v4 2/3] ARM: dts: stm32: fix dtbs_check warning on ili9341 dts binding

2021-11-25 Thread Alexandre TORGUE
Hi Dillon On 7/24/21 5:44 AM, dillon.min...@gmail.com wrote: From: Dillon Min Since the compatible string defined from ilitek,ili9341.yaml is "st,sf-tc240t-9370-t", "ilitek,ili9341" so, append "ilitek,ili9341" to avoid the below dtbs_check warning. arch/arm/boot/dts/stm32f429-disco.dt.yaml:

Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:21:07PM +0100, Christian König wrote: > This change adds the dma_resv_usage enum and allows us to specify why a > dma_resv object is queried for its containing fences. > > Additional to that a dma_resv_usage_rw() helper function is added to aid > retrieving the fences fo

Re: [PATCH] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-11-25 Thread kernel test robot
Hi KuoHsiang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next v5.16-rc2 next-20211125] [cannot apply to airlied/drm-next

[PATCH] drm/ast: fix semicolon.cocci warnings

2021-11-25 Thread kernel test robot
From: kernel test robot drivers/gpu/drm/ast/ast_dp.c:166:3-4: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: KuoHsiang Chou Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/lin

Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:21:07PM +0100, Christian König wrote: > This change adds the dma_resv_usage enum and allows us to specify why a > dma_resv object is queried for its containing fences. > > Additional to that a dma_resv_usage_rw() helper function is added to aid > retrieving the fences fo

Re: [PATCH 19/26] drm: support more than one write fence in drm_gem_plane_helper_prepare_fb

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:21:04PM +0100, Christian König wrote: > Use dma_resv_get_singleton() here to eventually get more than one write > fence as single fence. Yeah this is nice, atomic commit helpers not supporting multiple write fences was really my main worry in this entire endeavour. Other

[PATCH 6/6] Documentation/gpu: Add DC glossary

2021-11-25 Thread Rodrigo Siqueira
In the DC driver, we have multiple acronyms that are not obvious most of the time. This commit introduces a DC glossary in order to make it easier to navigate through our driver. Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu-dc/amdgpu-dc.rst | 2 +- Documentation/gpu/amdgpu-dc

[PATCH 5/6] Documentation/gpu: Add basic overview of DC pipeline

2021-11-25 Thread Rodrigo Siqueira
This commit describes how DCN works by providing high-level diagrams with an explanation of each component. In particular, it details the Global Sync signals. Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu-dc/amdgpu-dc.rst | 22 +- .../gpu/amdgpu-dc/amdgpu-dcn-overview.rst

[PATCH 4/6] Documentation/gpu: How to collect DTN log

2021-11-25 Thread Rodrigo Siqueira
Introduce how to collect DTN log from debugfs. Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu-dc/amdgpu-dc-debug.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/gpu/amdgpu-dc/amdgpu-dc-debug.rst b/Documentation/gpu/amdgpu-dc/amdgpu-dc-debug

[PATCH 2/6] Documentation/gpu: Document amdgpu_dm_visual_confirm debugfs entry

2021-11-25 Thread Rodrigo Siqueira
Display core provides a feature that makes it easy for users to debug Multiple planes by enabling a visual notification at the bottom of each plane. This commit introduces how to use such a feature. Signed-off-by: Rodrigo Siqueira --- .../gpu/amdgpu-dc/amdgpu-dc-debug.rst | 34 ++

[PATCH 1/6] Documentation/gpu: Reorganize DC documentation

2021-11-25 Thread Rodrigo Siqueira
Display core documentation is not well organized, and it is hard to find information due to the lack of sections. This commit reorganizes the documentation layout, and it is preparation work for future changes. Signed-off-by: Rodrigo Siqueira --- Documentation/gpu/amdgpu-dc.rst | 7

[PATCH 3/6] Documentation/gpu: Document pipe split visual confirmation

2021-11-25 Thread Rodrigo Siqueira
Display core provides a feature that makes it easy for users to debug Pipe Split. This commit introduces how to use such a debug option. Signed-off-by: Rodrigo Siqueira --- .../gpu/amdgpu-dc/amdgpu-dc-debug.rst | 28 +-- 1 file changed, 26 insertions(+), 2 deletions(-) d

[PATCH 0/6] Expand display core documentation

2021-11-25 Thread Rodrigo Siqueira
Display Core (DC) is one of the components under amdgpu, and it has multiple features directly related to the KMS API. Unfortunately, we don't have enough documentation about DC in the upstream, which makes the life of some external contributors a little bit more challenging. For these reasons, thi

Re: [PATCH 3/3] dt-bindings: display: msm: Add binding for msm8998 dpu

2021-11-25 Thread AngeloGioacchino Del Regno
Il 25/11/21 12:53, Dmitry Baryshkov ha scritto: On 07/09/2021 21:37, Rob Herring wrote: On Wed, Sep 01, 2021 at 08:11:38PM +0200, AngeloGioacchino Del Regno wrote: Add yaml binding for msm8998 dpu1 support. Signed-off-by: AngeloGioacchino Del Regno ---   .../bindings/display/msm/dpu-msm8998

Re: [PATCH v2 1/2] drm/input_helper: Add new input-handling helper

2021-11-25 Thread Daniel Vetter
On Mon, Nov 22, 2021 at 11:43:42AM +0200, Pekka Paalanen wrote: > On Fri, 19 Nov 2021 17:11:07 +0100 > Daniel Vetter wrote: > > > On Fri, Nov 19, 2021 at 04:04:28PM +, Simon Ser wrote: > > > On Friday, November 19th, 2021 at 16:53, Daniel Vetter > > > wrote: > > > > > > > Random idea ...

Re: [PATCH v6 7/7] drm/mediatek: Add mt8195 DisplayPort driver

2021-11-25 Thread Chun-Kuang Hu
Hi, Guillaume: This is a big patch, so I give some comment first. Guillaume Ranquet 於 2021年11月10日 週三 下午9:06寫道: > > From: Markus Schneider-Pargmann > > This patch adds a DisplayPort driver for the Mediatek mt8195 SoC and a > according phy driver mediatek-dp-phy. > > It supports both functional u

Re: [PATCH] drm: check drm_format_info hsub and vsub to avoid divide by zero

2021-11-25 Thread Daniel Vetter
On Mon, Nov 22, 2021 at 10:29:05AM -0500, George Kennedy wrote: > > > On 11/19/2021 9:25 AM, Jani Nikula wrote: > > On Fri, 19 Nov 2021, Daniel Vetter wrote: > > > On Fri, Nov 19, 2021 at 12:03:00PM +0200, Ville Syrjälä wrote: > > > > On Fri, Nov 19, 2021 at 10:40:38AM +0100, Daniel Vetter wrote

Re: [PATCH v2 1/2] drm/input_helper: Add new input-handling helper

2021-11-25 Thread Daniel Vetter
On Fri, Nov 19, 2021 at 11:07:16AM -0800, Brian Norris wrote: > Hi Daniel, > > On Fri, Nov 19, 2021 at 11:01:18AM +0100, Daniel Vetter wrote: > > On Thu, Nov 18, 2021 at 11:30:43AM -0800, Brian Norris wrote: > > > On Thu, Nov 18, 2021 at 10:05:11AM +0100, Daniel Vetter wrote: > > > > On Wed, Nov 1

Re: [PATCH] drm/msm: Initialize MDSS irq domain at probe time

2021-11-25 Thread Dmitry Baryshkov
On 25/11/2021 18:09, AngeloGioacchino Del Regno wrote: Since commit 8f59ee9a570c ("drm/msm/dsi: Adjust probe order"), the DSI host gets initialized earlier, but this caused unability to probe the entire stack of components because they all depend on interrupts coming from the main `mdss` node (md

Re: [PATCH 0/5] xen: cleanup detection of non-essential pv devices

2021-11-25 Thread Boris Ostrovsky
On 11/22/21 3:20 AM, Juergen Gross wrote: On 22.10.21 08:47, Juergen Gross wrote: Today the non-essential pv devices are hard coded in the xenbus driver and this list is lacking multiple entries. This series reworks the detection logic of non-essential devices by adding a flag for that purpos

[PATCH] drm/msm: Initialize MDSS irq domain at probe time

2021-11-25 Thread AngeloGioacchino Del Regno
Since commit 8f59ee9a570c ("drm/msm/dsi: Adjust probe order"), the DSI host gets initialized earlier, but this caused unability to probe the entire stack of components because they all depend on interrupts coming from the main `mdss` node (mdp5, or dpu1). To fix this issue, also anticipate probing

Re: [PATCH v6 7/7] drm/mediatek: Add mt8195 DisplayPort driver

2021-11-25 Thread Maxime Ripard
On Wed, Nov 24, 2021 at 01:45:21PM +, Guillaume Ranquet wrote: > Hi, > Thanks for all your input, really appreciated. > > Quoting Maxime Ripard (2021-11-16 15:51:12) > > Hi, > > > > On Mon, Nov 15, 2021 at 09:33:52AM -0500, Guillaume Ranquet wrote: > > > Quoting Maxime Ripard (2021-11-15 11:11

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-25 Thread Jagan Teki
Hi, On Thu, Nov 25, 2021 at 7:45 PM Maxime Ripard wrote: > > On Wed, Nov 24, 2021 at 12:02:47AM +0530, Jagan Teki wrote: > > > > > > > + dsi->panel = of_drm_find_panel(remote); > > > > > > > + if (IS_ERR(dsi->panel)) { > > > > > > > + dsi->panel = NULL; > > > > > > > + > > > >

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-25 Thread Maxime Ripard
On Wed, Nov 24, 2021 at 12:02:47AM +0530, Jagan Teki wrote: > > > > > > + dsi->panel = of_drm_find_panel(remote); > > > > > > + if (IS_ERR(dsi->panel)) { > > > > > > + dsi->panel = NULL; > > > > > > + > > > > > > + dsi->next_bridge = of_drm_find_bridge(remote); > > >

Re: [PATCH v2] dma_heap: use for_each_sgtable_sg in sg_table release flow

2021-11-25 Thread Robin Murphy
On 2021-11-25 13:49, guangming@mediatek.com wrote: From: Guangming Use (for_each_sgtable_sg) rather than (for_each_sg) to traverse sg_table to free sg_table. Use (for_each_sg) maybe will casuse some pages can't be freed when send wrong nents number. It's still worth spelling out that this

Re: [PATCH v10 08/10] dyndbg: add print-to-tracefs, selftest with it - RFC

2021-11-25 Thread Vincent Whitchurch
On Fri, Nov 19, 2021 at 11:46:31PM +0100, jim.cro...@gmail.com wrote: > Vincent's code has the macro magic to define that event, which IIUC > is what makes it controllable by ftrace, and therefore acceptable in > principle to Steve. > Would there be any reason to expand his set of 2 events into de

[PATCH v2] dma_heap: use for_each_sgtable_sg in sg_table release flow

2021-11-25 Thread guangming.cao
From: Guangming Use (for_each_sgtable_sg) rather than (for_each_sg) to traverse sg_table to free sg_table. Use (for_each_sg) maybe will casuse some pages can't be freed when send wrong nents number. Signed-off-by: Guangming --- drivers/dma-buf/heaps/system_heap.c | 2 +- 1 file changed, 1 inse

Re: [PATCH] dma_heap: use sg_table.orig_nents in sg_table release flow

2021-11-25 Thread Robin Murphy
On 2021-11-25 12:46, guangming@mediatek.com wrote: From: Guangming Use (sg_table.orig_nents) rather than (sg_table.nents) to traverse sg_table to free sg_table. Use (sg_table.nents) maybe will casuse some pages can't be freed. ...and this sort of bug is precisely why we have the for_each

Re: [PATCH v2 07/13] drm/msm: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

2021-11-25 Thread Dmitry Baryshkov
On 16/10/2021 21:42, Claudio Suarez wrote: Once EDID is parsed, the monitor HDMI support information is available through drm_display_info.is_hdmi. Retriving the same information with drm_detect_hdmi_monitor() is less efficient. Change to drm_display_info.is_hdmi Signed-off-by: Claudio Suarez

Re: [PATCH] drm/msm: Fix potential NULL dereference in DPU

2021-11-25 Thread Dmitry Baryshkov
On 20/10/2021 21:38, Jessica Zhang wrote: Add NULL checks in KMS CRTC funcs to avoid potential NULL dereference. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") I believe that single Fixes is incorrect here. For example snapshot support was added later. I'd suggest to split the patch

Re: [PATCH v5 7/7] drm/msm/dp: Add sc8180x DP controllers

2021-11-25 Thread Dmitry Baryshkov
On 17/10/2021 01:18, Bjorn Andersson wrote: The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Link: https://lore.kernel.org/linux-arm-msm/20210725042436.3967173-7-bjorn.anders...@linaro.org/ Signed-off-by: Bjorn Andersson It seems that SC8180x DPU support wa

Re: [Freedreno] [PATCH 2/2] drm/msm/hdmi: switch to drm_bridge_connector

2021-11-25 Thread Dmitry Baryshkov
On 19/10/2021 02:54, abhin...@codeaurora.org wrote: On 2021-10-16 07:21, Dmitry Baryshkov wrote: On Sat, 16 Oct 2021 at 01:25, wrote: Hi Dmitry On 2021-10-14 17:11, Dmitry Baryshkov wrote: > Merge old hdmi_bridge and hdmi_connector implementations. Use > drm_bridge_connector instead. > Can y

[PATCH] dma_heap: use sg_table.orig_nents in sg_table release flow

2021-11-25 Thread guangming.cao
From: Guangming Use (sg_table.orig_nents) rather than (sg_table.nents) to traverse sg_table to free sg_table. Use (sg_table.nents) maybe will casuse some pages can't be freed. Signed-off-by: Guangming --- drivers/dma-buf/heaps/system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: Exynos DSI bridge conversion

2021-11-25 Thread Andrzej Hajda
Hi Jagan, On 25.11.2021 07:33, Jagan Teki wrote: Hi Andrej and all, Andrzej :) I'm trying to convert existing exynos dsi driver to bridge and make them accessible for i.MX8MM platform. I've a few questions on the existing exynos dsi driver and which is indeed incompatible to proceed to mak

Re: [PATCH 3/3] dt-bindings: display: msm: Add binding for msm8998 dpu

2021-11-25 Thread Dmitry Baryshkov
On 07/09/2021 21:37, Rob Herring wrote: On Wed, Sep 01, 2021 at 08:11:38PM +0200, AngeloGioacchino Del Regno wrote: Add yaml binding for msm8998 dpu1 support. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/display/msm/dpu-msm8998.yaml | 220 ++ 1 file change

Re: [PATCH] drm/i915: Use per device iommu check

2021-11-25 Thread Robin Murphy
On 2021-11-25 10:42, Tvrtko Ursulin wrote: From: Tvrtko Ursulin With both integrated and discrete Intel GPUs in a system, the current global check of intel_iommu_gfx_mapped, as done from intel_vtd_active() may not be completely accurate. In this patch we add i915 parameter to intel_vtd_active(

Re: [PATCH v4 0/6] add fixes to pass DP Link Layer compliance test cases

2021-11-25 Thread Dmitry Baryshkov
On 11/08/2021 19:30, Kuogee Hsieh wrote: drm/msm/dp: add fixes to pass DP Link Layer compliance test cases Kuogee Hsieh (6): drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run drm/msm/dp: reduce link rate if failed at link training 1 drm/msm/dp: reset aux controller

[PATCH v2] drm/bridge: megachips: Ensure both bridges are probed before registration

2021-11-25 Thread Martyn Welch
In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected when the STDP4028 is probed first, a monitor is detected and an attempt is made to read

Re: [PATCH] drm/bridge: megachips: Ensure both bridges are probed before registration

2021-11-25 Thread Robert Foss
On Wed, 24 Nov 2021 at 19:40, Martyn Welch wrote: > > On Tue, 2021-11-23 at 16:18 +0100, Robert Foss wrote: > > Hey Martyn, > > > > On Tue, 16 Nov 2021 at 13:28, Martyn Welch > > wrote: > > > > > > In the configuration used by the b850v3, the STDP2690 is used to read > > > EDID > > > data whilst

[PATCH] drm/i915: Use per device iommu check

2021-11-25 Thread Tvrtko Ursulin
From: Tvrtko Ursulin With both integrated and discrete Intel GPUs in a system, the current global check of intel_iommu_gfx_mapped, as done from intel_vtd_active() may not be completely accurate. In this patch we add i915 parameter to intel_vtd_active() in order to prepare it for multiple GPUs an

[PULL] drm-misc-fixes

2021-11-25 Thread Maxime Ripard
Hi Daniel, Dave, Here's this week drm-misc-fixes PR Maxime drm-misc-fixes-2021-11-25: One removal fix for hyperv, one fix in aspeed for the vga_pw sysfs file content, one error-checking fix for vc4 and two fixes for nouveau, one to support a new device and another one to properly check for error

  1   2   >