[PATCH] drm/msm/dsi: dsi_phy_28nm_8960: fix uninitialized variable access

2021-04-09 Thread Dmitry Baryshkov
The parent_name initialization was lost in refactoring, restore it now. Fixes: 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code") Reported-by: kernel test robot Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 4 1 file

Re:Re: [PATCH v1] drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()

2021-04-09 Thread Yingjie Wang
My pleasure! At 2021-04-09 04:17:36, "Alex Deucher" wrote: >Applied. Thanks! > >Alex > >On Wed, Apr 7, 2021 at 2:23 AM wrote: >> >> From: Yingjie Wang >> >> In radeon_dp_mst_detect(), We should check whether or not @connector >> has been unregistered from userspace. If the connector is

[Bug 212635] nouveau 0000:04:00.0: fifo: fault 00 [READ] at 0000000000380000 engine 00 [GR] client 14 [HUB/SCC] reason 02 [PTE] on channel 5 [007fabf000 X[570]]

2021-04-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212635 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 296317 --> https://bugzilla.kernel.org/attachment.cgi?id=296317=edit kernel .config (kernel 5.11.12) -- You may reply to this email to add a comment. You are

[Bug 212635] New: nouveau 0000:04:00.0: fifo: fault 00 [READ] at 0000000000380000 engine 00 [GR] client 14 [HUB/SCC] reason 02 [PTE] on channel 5 [007fabf000 X[570]]

2021-04-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212635 Bug ID: 212635 Summary: nouveau :04:00.0: fifo: fault 00 [READ] at 0038 engine 00 [GR] client 14 [HUB/SCC] reason 02 [PTE] on channel 5 [007fabf000 X[570]]

[RFC 3/3] drm/msm/dpu: simplify interrupt managing

2021-04-09 Thread Dmitry Baryshkov
Change huge lookup table to contain just sensible entries. IRQ index is now not an index in the table, but just register id (multiplied by 32, the amount of IRQs in the register) plus offset in the register. This allows us to remove all the "reserved" entries from dpu_irq_map. The table is now

[RFC 2/3] drm/msm/dpu: hw_intr: always call dpu_hw_intr_clear_intr_status_nolock

2021-04-09 Thread Dmitry Baryshkov
Always call dpu_hw_intr_clear_intr_status_nolock() from the dpu_hw_intr_dispatch_irqs(). This simplifies the callback function and enforces clearing the hw interrupt status. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 9 -

[RFC 1/3] drm/msm/dpu: merge dpu_hw_intr_get_interrupt_statuses into dpu_hw_intr_dispatch_irqs

2021-04-09 Thread Dmitry Baryshkov
There is little sense in reading interrupt statuses and right after that going after the array of statuses to dispatch them. Merge both loops into single function doing read and dispatch. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 10 +--

Re: [PATCH] gpu/drm: mediatek: hdmi: check for valid modes on MT8167

2021-04-09 Thread Chun-Kuang Hu
Hi, Neil: Neil Armstrong 於 2021年4月9日 週五 下午4:43寫道: > > On MT8167, only CEA modes and anything using a clock below 148500 is > supported for HDMI. This change adds some checks to make sure the > video format is OK for MT8167. I think this patch should be separated to 3 patches. check CEA mode,

Re: [PATCH v3 2/3] drm/msm/dpu: add support to dump dpu registers

2021-04-09 Thread abhinavk
Hi Rob Thank you for the review. On 2021-04-09 13:38, Rob Clark wrote: On Thu, Apr 8, 2021 at 7:28 PM Abhinav Kumar wrote: Add the dpu_dbg module which adds supports to dump dpu registers which can be used in case of error conditions. changes in v3: - Get rid of registration mechanism for

Re: [PATCH v3 2/3] drm/msm/dpu: add support to dump dpu registers

2021-04-09 Thread Rob Clark
On Thu, Apr 8, 2021 at 7:28 PM Abhinav Kumar wrote: > > Add the dpu_dbg module which adds supports to dump dpu registers > which can be used in case of error conditions. > > changes in v3: > - Get rid of registration mechanism for sub-modules and instead get >this information from the dpu

Re: [git pull] drm fixes for 5.12-rc7

2021-04-09 Thread pr-tracker-bot
The pull request you sent on Sat, 10 Apr 2021 05:46:21 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-04-10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a85f165e1f38c0a5a6e671ce8126a8cafe35af09 Thank you! -- Deet-doot-dot, I am a bot.

Re: [pull] amdgpu, radeon, ttm, sched drm-next-5.13

2021-04-09 Thread Dave Airlie
On Fri, 9 Apr 2021 at 19:07, Christian König wrote: > > Am 08.04.21 um 15:03 schrieb Alex Deucher: > > On Thu, Apr 8, 2021 at 6:28 AM Christian König > > wrote: > >> Am 08.04.21 um 09:13 schrieb Christian König: > >>> Am 07.04.21 um 21:04 schrieb Alex Deucher: > On Wed, Apr 7, 2021 at 3:23

[git pull] drm fixes for 5.12-rc7

2021-04-09 Thread Dave Airlie
Hey Linus, Was relatively quiet this week, but still a few pulls came in, pretty much small fixes across the board, a couple of regression fixes in the amdgpu/radeon code, msm has a few minor fixes across the board, a panel regression fix also. I'm out all next week, so Daniel will do any last

[PATCH v1 1/1] video: ssd1307fb: Drop OF dependency

2021-04-09 Thread Andy Shevchenko
After the commit 72915994e028 ("video: ssd1307fb: Make use of device properties") driver does not depend on OF, drop unneeded dependency. Signed-off-by: Andy Shevchenko --- drivers/video/fbdev/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/Kconfig

Re: [PATCH v2] drm/bridge/sii8620: fix dependency on extcon

2021-04-09 Thread Randy Dunlap
t;Silicon Image SII8620 HDMI/MHL bridge" > depends on OF > select DRM_KMS_HELPER > - imply EXTCON > + depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in > depends on RC_CORE || !RC_CORE > help > Silicon Image SII8620 HDM

[PATCH v6 2/2] drm/bridge: Add ChromeOS EC ANX7688 bridge driver support

2021-04-09 Thread Dafna Hirschfeld
From: Enric Balletbo i Serra This driver adds support for the ChromeOS EC ANX7688 HDMI to DP converter For our use case, the only reason the Linux kernel driver is necessary is to reject resolutions that require more bandwidth than what is available on the DP side. DP bandwidth and lane count

[PATCH v6 0/2] Add support for ANX7688

2021-04-09 Thread Dafna Hirschfeld
ANX7688 is a typec port controller that also converts HDMI to DP. ANX7688 is found on Acer Chromebook R13 (elm) and on Pine64 PinePhone. On Acer Chromebook R13 (elm), the device is powered-up and controller by the Embedded Controller. Therefore its operation is transparent to the SoC. It is used

[PATCH v6 1/2] dt-bindings: display: add google,cros-ec-anx7688.yaml

2021-04-09 Thread Dafna Hirschfeld
ChromeOS EC ANX7688 is a display bridge that converts HDMI 2.0 to DisplayPort 1.3 Ultra-HDi (4096x2160p60). It is an Analogix ANX7688 chip which is connected to and operated by the ChromeOS Embedded Controller (See google,cros-ec.yaml). It is accessed using I2C tunneling through the EC and

Re: [PATCH 1/2] drm/panel: Add DT bindings for Samsung LMS397KF04

2021-04-09 Thread Rob Herring
On Tue, 06 Apr 2021 01:47:12 +0200, Linus Walleij wrote: > This adds device tree bindings for the Samsung LMS397KF04 > RGB DPI display panel. > > Cc: devicet...@vger.kernel.org > Signed-off-by: Linus Walleij > --- > .../display/panel/samsung,lms397kf04.yaml | 74 +++ > 1

Re: [PATCH -next] drm/etnaviv: remove unneeded if-null-free check

2021-04-09 Thread Christian Gmeiner
Am Fr., 9. Apr. 2021 um 14:23 Uhr schrieb Qiheng Lin : > > Eliminate the following coccicheck warning: > > drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:616:2-8: WARNING: > NULL check before some freeing functions is not needed. > drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:618:2-8: WARNING: >

Re: [PATCH] drm/atmel-hlcdc: Allow async page flips

2021-04-09 Thread Ludovic.Desroches
On Tue, Mar 30, 2021 at 08:17:20AM -0700, Dan Sneddon wrote: > The driver is capable of doing async page flips so we need to tell the > core to allow them. > > Signed-off-by: Dan Sneddon Tested-by: Ludovic Desroches Thanks, Ludovic > --- > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 1

Re: [PATCH 2/2] drm/ttm: re-add debugs tt_shrink file

2021-04-09 Thread Matthew Auld
On Fri, 9 Apr 2021 at 14:01, Christian König wrote: > > That got lost when we moved back to a static limit. > > Signed-off-by: Christian König Reviewed-by: Matthew Auld ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH RFC 1/3] fpga: region: Add fpga-region property 'fpga-config-from-dmabuf'

2021-04-09 Thread Rob Herring
On Fri, Apr 02, 2021 at 02:39:31PM +0530, Nava kishore Manne wrote: > Add "fpga-config-from-dmabuf" property to allow the bitstream > configuration from pre-allocated dma-buffer. > > Signed-off-by: Nava kishore Manne > --- > Documentation/devicetree/bindings/fpga/fpga-region.txt | 2 ++ > 1

Re: [PATCH 1/2] drm/ttm: fix return value check

2021-04-09 Thread Matthew Auld
On Fri, 9 Apr 2021 at 14:01, Christian König wrote: > > The function returns the number of swapped pages here. Only abort when we get > a negative error code. > > Signed-off-by: Christian König Reviewed-by: Matthew Auld ___ dri-devel mailing list

Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master

2021-04-09 Thread Thomas Zimmermann
Hi Am 09.04.21 um 15:50 schrieb Kevin Tang: > +static int __init sprd_drm_init(void) > +{ > +     int ret; I think ret should just go away. Like this? "return platform_register_drivers(sprd_drm_drivers, ARRAY_SIZE(sprd_drm_drivers));" Sure. Best regards Thomas if so,

Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master

2021-04-09 Thread Kevin Tang
Hi Thomas, First of all, thanks for comments. Thomas Zimmermann 于2021年4月8日周四 下午6:21写道: > Hi, > > I have just a few nits below plus the points that others made. > > Am 22.02.21 um 14:28 schrieb Kevin Tang: > > Adds drm support for the Unisoc's display subsystem. > > > > This is drm kms driver,

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread David Hildenbrand
On 09.04.21 15:35, Arnd Bergmann wrote: On Fri, Apr 9, 2021 at 1:21 PM David Hildenbrand wrote: Random drivers should not override a user configuration of core knobs (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, which depends on CMA, if possible; however, these

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread Arnd Bergmann
On Fri, Apr 9, 2021 at 1:21 PM David Hildenbrand wrote: > > Random drivers should not override a user configuration of core knobs > (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, > which depends on CMA, if possible; however, these drivers also have to > tolerate if

Re: [PATCH v4 4/6] drm/sprd: add Unisoc's drm display controller driver

2021-04-09 Thread Kevin Tang
Maxime Ripard 于2021年4月7日周三 下午6:45写道: > Hi, > > Adding Jörg, Will and Robin, > > On Wed, Mar 31, 2021 at 09:21:19AM +0800, Kevin Tang wrote: > > > > +static u32 check_mmu_isr(struct sprd_dpu *dpu, u32 reg_val) > > > > +{ > > > > + struct dpu_context *ctx = >ctx; > > > > + u32 mmu_mask =

[PATCH v2 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Andy Shevchenko
kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out panic and oops helpers. There are several purposes of doing this: - dropping dependency in bug.h - dropping a loop by moving out panic_notifier.h - unload kernel.h

[PATCH -next] drm/i915/display: remove redundant NULL check

2021-04-09 Thread Qiheng Lin
Fix the following coccicheck warning: drivers/gpu/drm/i915/display/intel_psr.c:1530:29-31: WARNING !A || A && B is equivalent to !A || B Signed-off-by: Qiheng Lin --- drivers/gpu/drm/i915/display/intel_psr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH v2 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Sebastian Reichel
Hi, On Fri, Apr 09, 2021 at 01:02:50PM +0300, Andy Shevchenko wrote: > kernel.h is being used as a dump for all kinds of stuff for a long time. > Here is the attempt to start cleaning it up by splitting out panic and > oops helpers. > > There are several purposes of doing this: > - dropping

[PATCH -next] video: fbdev: vermilion: use DEFINE_MUTEX() for mutex lock and LIST_HEAD() for list head

2021-04-09 Thread Ye Bin
mutex lock can be initialized automatically with DEFINE_MUTEX() rather than explicitly calling mutex_init(). list head can be initialized automatically with LIST_HEAD() rather than explicitly calling INIT_LIST_HEAD(). Reported-by: Hulk Robot Signed-off-by: Ye Bin ---

[PATCH -next] drm/etnaviv: remove unneeded if-null-free check

2021-04-09 Thread Qiheng Lin
Eliminate the following coccicheck warning: drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:616:2-8: WARNING: NULL check before some freeing functions is not needed. drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:618:2-8: WARNING: NULL check before some freeing functions is not needed.

[PATCH 1/2] drm/ttm: fix return value check

2021-04-09 Thread Christian König
The function returns the number of swapped pages here. Only abort when we get a negative error code. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c

[PATCH 2/2] drm/ttm: re-add debugs tt_shrink file

2021-04-09 Thread Christian König
That got lost when we moved back to a static limit. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_tt.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 7d479095dcf8..4d8498a3d642 100644 ---

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread Linus Walleij
On Fri, Apr 9, 2021 at 1:20 PM David Hildenbrand wrote: > Random drivers should not override a user configuration of core knobs > (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, > which depends on CMA, if possible; however, these drivers also have to > tolerate if DMA_CMA

Re: [PATCH v2 4/5] drm/vc4: hdmi: Enable the scrambler

2021-04-09 Thread Maxime Ripard
Hi Dave, On Thu, Apr 01, 2021 at 12:30:45PM +0100, Dave Stevenson wrote: > > Signed-off-by: Maxime Ripard > > --- > > drivers/gpu/drm/vc4/vc4_hdmi.c | 56 + > > drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 3 ++ > > 2 files changed, 59 insertions(+) > > > > diff --git

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread Lucas Stach
Am Freitag, dem 09.04.2021 um 13:20 +0200 schrieb David Hildenbrand: > Random drivers should not override a user configuration of core knobs > (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, > which depends on CMA, if possible; however, these drivers also have to > tolerate

Re: [PATCH] pwm: Rename pwm_get_state() to better reflect its semantic

2021-04-09 Thread Thierry Reding
On Tue, Apr 06, 2021 at 03:43:56PM +0200, Uwe Kleine-König wrote: > Hello Thierry, > > On Tue, Apr 06, 2021 at 01:16:31PM +0200, Thierry Reding wrote: > > On Tue, Apr 06, 2021 at 09:30:36AM +0200, Uwe Kleine-König wrote: > > > Given that lowlevel drivers usually cannot implement exactly what a >

Re: [PATCH] drm/ttm: make global mutex and use count static

2021-04-09 Thread Daniel Vetter
On Fri, Apr 09, 2021 at 01:07:30PM +0200, Christian König wrote: > Only needed during device hot plug and remove and not exported. > > Signed-off-by: Christian König > Suggested-by: Bernard Acked-by: Daniel Vetter > --- > drivers/gpu/drm/ttm/ttm_device.c | 4 ++-- > 1 file changed, 2

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Do not report 100% RC6 if not supported

2021-04-09 Thread Tvrtko Ursulin
On 06/04/2021 12:19, Andi Shyti wrote: Hi Tvrtko, We use GT parked status to estimate RC6 while not in use, however if RC6 is not supported to start with that does not work very well and produces a false 100% RC6 readout. Fix by not advancing the estimated RC6 counter when feature is not

[PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread David Hildenbrand
Random drivers should not override a user configuration of core knobs (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, which depends on CMA, if possible; however, these drivers also have to tolerate if DMA_CMA is not available/functioning, for example, if no CMA area for

Re: [PATCH] drm/ttm: cleanup coding style a bit

2021-04-09 Thread Christian König
Am 01.04.21 um 03:59 schrieb Bernard: From: "Christian König" Date: 2021-03-31 21:15:22 To: Bernard Zhao ,Huang Rui ,David Airlie ,Daniel Vetter ,dri-devel@lists.freedesktop.org,linux-ker...@vger.kernel.org Cc: opensource.ker...@vivo.com Subject: Re: [PATCH] drm/ttm: cleanup coding style a

[PATCH] drm/ttm: make global mutex and use count static

2021-04-09 Thread Christian König
Only needed during device hot plug and remove and not exported. Signed-off-by: Christian König Suggested-by: Bernard --- drivers/gpu/drm/ttm/ttm_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c

Re: [PATCH 1/2] mm/vmscan: add sync_shrinkers function

2021-04-09 Thread Christian König
Am 09.04.21 um 13:00 schrieb Vlastimil Babka: On 4/9/21 9:17 AM, Christian König wrote: To be able to switch to a spinlock and reduce lock contention in the TTM shrinker we don't want to hold a mutex while unmapping and freeing pages from the pool. Does using spinlock instead of mutex really

Re: [PATCH 1/2] mm/vmscan: add sync_shrinkers function

2021-04-09 Thread Vlastimil Babka
On 4/9/21 9:17 AM, Christian König wrote: > To be able to switch to a spinlock and reduce lock contention in the TTM > shrinker we don't want to hold a mutex while unmapping and freeing pages > from the pool. Does using spinlock instead of mutex really reduce lock contention? > But then we

Re: [PATCH 00/18] drm/vc4: hdmi: Add Support for the YUV output

2021-04-09 Thread Neil Armstrong
On 18/03/2021 19:16, Jernej Škrabec wrote: > Hi! > > Dne sreda, 17. marec 2021 ob 16:43:34 CET je Maxime Ripard napisal(a): >> Hi, >> >> Here's an attempt at support the HDMI YUV output on the BCM2711 SoC found on >> the RaspberryPi4. >> >> I took the same approach than what dw-hdmi did already,

Re: [PATCH 2/2] drm/doc: emphasize difference between plane formats and IN_FORMATS blob

2021-04-09 Thread Pekka Paalanen
On Thu, 8 Apr 2021 17:39:22 +0300 Ville Syrjälä wrote: > On Thu, Apr 08, 2021 at 04:57:51PM +0300, Pekka Paalanen wrote: > > On Thu, 8 Apr 2021 13:30:16 +0200 > > Daniel Vetter wrote: > > > > > > Is it also so that passing MOD_INVALID to the explicit modifier uAPI > > > > (ADDFB2) is

[PATCH -next] ompfb: video: use DEFINE_SPINLOCK() instead of spin_lock_init() in apply.c

2021-04-09 Thread Yu Jiahua
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Yu Jiahua --- drivers/video/fbdev/omap2/omapfb/dss/apply.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v2 04/10] drm/aperture: Add infrastructure for aperture ownership

2021-04-09 Thread Daniel Vetter
On Fri, Apr 09, 2021 at 09:54:03AM +0200, Thomas Zimmermann wrote: > Hi > > Am 08.04.21 um 11:48 schrieb Daniel Vetter: > > On Thu, Mar 18, 2021 at 11:29:15AM +0100, Thomas Zimmermann wrote: > > > Platform devices might operate on firmware framebuffers, such as VESA or > > > EFI. Before a native

Re: [PATCH v2 04/10] drm/aperture: Add infrastructure for aperture ownership

2021-04-09 Thread Daniel Vetter
On Fri, Apr 09, 2021 at 09:06:56AM +0200, Thomas Zimmermann wrote: > Hi > > Am 08.04.21 um 11:48 schrieb Daniel Vetter: > > > > Maybe just me, but to avoid overstretching the attention spawn of doc > > readers I'd avoid this example here. And maybe make the recommendation > > stronger, e.g. "PCI

Re: [pull] amdgpu, radeon, ttm, sched drm-next-5.13

2021-04-09 Thread Christian König
Am 08.04.21 um 15:03 schrieb Alex Deucher: On Thu, Apr 8, 2021 at 6:28 AM Christian König wrote: Am 08.04.21 um 09:13 schrieb Christian König: Am 07.04.21 um 21:04 schrieb Alex Deucher: On Wed, Apr 7, 2021 at 3:23 AM Dave Airlie wrote: On Wed, 7 Apr 2021 at 06:54, Alex Deucher wrote: On

Re: [PATCH 1/1] drm/bridge: anx7625: send DPCD command to downstream

2021-04-09 Thread Robert Foss
Hey Xin, On Fri, 9 Apr 2021 at 07:35, Xin Ji wrote: > > Send DPCD command to downstream before anx7625 power down, > tell downstream into standby mode. > > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 75 +++ > 1 file changed, 75 insertions(+)

[PULL] drm-misc-next

2021-04-09 Thread Maxime Ripard
Hi Dave, Daniel, Like you asked, here's this week drm-misc-next PR Maxime drm-misc-next-2021-04-09: drm-misc-next for 5.13: UAPI Changes: Cross-subsystem Changes: Core Changes: - bridge: Fix Kconfig dependency - cmdline: Refuse zero width/height mode - ttm: Ignore signaled move fences,

[PULL] drm-intel-fixes

2021-04-09 Thread Rodrigo Vivi
Hi Dave and Daniel, Only one last minute fix targeting stable to fix a null dereference. Here goes drm-intel-fixes-2021-04-09: - Fix invalid access to ACPI _DSM objects (Takashi) Thanks, Rodrigo. The following changes since commit e49d033bddf5b565044e2abe4241353959bc9120: Linux 5.12-rc6

Re: [PATCH 06/18] drm/vc4: Rework the encoder retrieval code

2021-04-09 Thread Thomas Zimmermann
Hi Am 17.03.21 um 16:43 schrieb Maxime Ripard: Due to a FIFO that cannot be flushed between the pixelvalve and the HDMI controllers on BCM2711, we need to carefully disable both at boot time if they were left enabled by the firmware. However, at the time we're running that code, the struct

[PATCH] gpu/drm: mediatek: hdmi: check for valid modes on MT8167

2021-04-09 Thread Neil Armstrong
On MT8167, only CEA modes and anything using a clock below 148500 is supported for HDMI. This change adds some checks to make sure the video format is OK for MT8167. Signed-off-by: Fabien Parent Signed-off-by: Neil Armstrong --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 17 + 1

Re: [PATCH v4 5/6] dt-bindings: display: add Unisoc's mipi dsi controller bindings

2021-04-09 Thread Kevin Tang
Maxime Ripard 于2021年4月7日周三 下午6:46写道: > On Wed, Mar 31, 2021 at 09:49:14AM +0800, Kevin Tang wrote: > > Hi Maxime, > > > > Maxime Ripard 于2021年3月24日周三 下午7:13写道: > > > > > On Mon, Feb 22, 2021 at 09:28:21PM +0800, Kevin Tang wrote: > > > > From: Kevin Tang > > > > > > > > Adds MIPI DSI

[PULL] drm-misc-fixes

2021-04-09 Thread Maarten Lankhorst
drm-misc-fixes-2021-04-09: drm-misc-fixes for v5.12-rc7: - Fix use-after-free in xen. - Reduce fifo threshold on hvs4 to fix a fifo full error. - Disable TE support for Droid4 and N950. - Small compiler fixes. The following changes since commit 50891bead80bc79871528c2962d65c781c02330b:

Re: [Freedreno] [PATCH 1/3] drm/msm/mdp5: Configure PP_SYNC_HEIGHT to double the vtotal

2021-04-09 Thread Marijn Suijten
Hi Abhinav, Angelo, Rob, On 4/9/21 2:08 AM, Rob Clark wrote: On Thu, Apr 8, 2021 at 4:16 PM AngeloGioacchino Del Regno wrote: Il gio 8 apr 2021, 21:05 Rob Clark ha scritto: On Wed, Apr 7, 2021 at 12:11 PM AngeloGioacchino Del Regno wrote: Il 07/04/21 20:19, abhin...@codeaurora.org ha

Re: [PATCH 04/18] drm/vc4: txp: Properly set the possible_crtcs mask

2021-04-09 Thread Thomas Zimmermann
Am 17.03.21 um 16:43 schrieb Maxime Ripard: The current code does a binary or on the possible_crtcs variable of the TXP encoder, while we want to set it to that value instead. Fixes: 39fcb2808376 ("drm/vc4: txp: Turn the TXP into a CRTC of its own") Signed-off-by: Maxime Ripard Cc: #

Re: [PATCH 05/18] drm/vc4: crtc: Skip the TXP

2021-04-09 Thread Thomas Zimmermann
Am 17.03.21 um 16:43 schrieb Maxime Ripard: The vc4_set_crtc_possible_masks is meant to run over all the encoders and then set their possible_crtcs mask to their associated pixelvalve. However, since the commit 39fcb2808376 ("drm/vc4: txp: Turn the TXP into a CRTC of its own"), the TXP has

Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv

2021-04-09 Thread David Hildenbrand
On 08.04.21 22:29, Arnd Bergmann wrote: On Thu, Apr 8, 2021 at 6:45 PM David Hildenbrand wrote: On 08.04.21 14:49, Linus Walleij wrote: On Thu, Apr 8, 2021 at 2:01 PM David Hildenbrand wrote: This is something you could do using a hidden helper symbol like config DRMA_ASPEED_GFX

Re: [PATCH 04/18] drm/vc4: txp: Properly set the possible_crtcs mask

2021-04-09 Thread Thomas Zimmermann
Am 17.03.21 um 16:43 schrieb Maxime Ripard: The current code does a binary or on the possible_crtcs variable of the s/binary or/binary OR/ I had to read this twice to get it. Otherwise Acked-by: Thomas Zimmermann TXP encoder, while we want to set it to that value instead. Fixes:

Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv

2021-04-09 Thread David Hildenbrand
On 08.04.21 15:19, Arnd Bergmann wrote: On Thu, Apr 8, 2021 at 2:50 PM Linus Walleij wrote: On Thu, Apr 8, 2021 at 2:01 PM David Hildenbrand wrote: This is something you could do using a hidden helper symbol like config DRMA_ASPEED_GFX bool "Aspeed display driver" select

Re: [PATCH 03/18] drm/bridge: dw-hdmi: Use helpers

2021-04-09 Thread Thomas Zimmermann
There was some objection in patch 2, but at least this conversion patch looks good. Acked-by: Thomas Zimmremann Am 17.03.21 um 16:43 schrieb Maxime Ripard: Signed-off-by: Maxime Ripard --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 141 +- 1 file changed, 28

Re: [PATCH 02/18] drm/bridge: Add HDMI output fmt helper

2021-04-09 Thread Thomas Zimmermann
Hi Am 17.03.21 um 16:43 schrieb Maxime Ripard: The atomic_get_output_bus_fmts bridge callback is there to list the available formats for output by decreasing order of preference. On HDMI controllers, we have a fairly static list that will depend on what the HDMI sink is capable of and the BPC

[PATCH -next] drm/hisilicon/kirin: Remove redundant DRM_ERROR call in dsi_parse_dt()

2021-04-09 Thread Chen Hui
There is a error message within devm_ioremap_resource already, so remove the DRM_ERROR call to avoid redundant error message. Signed-off-by: Chen Hui --- drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v2 04/10] drm/aperture: Add infrastructure for aperture ownership

2021-04-09 Thread Thomas Zimmermann
Hi Am 08.04.21 um 11:48 schrieb Daniel Vetter: On Thu, Mar 18, 2021 at 11:29:15AM +0100, Thomas Zimmermann wrote: Platform devices might operate on firmware framebuffers, such as VESA or EFI. Before a native driver for the graphics hardware can take over the device, it has to remove any

Re: [PATCH] drm/virtio: Create Dumb BOs as guest Blobs (v2)

2021-04-09 Thread Gerd Hoffmann
Hi, > > IIRC the VIRTGPU_BLOB_FLAG_USE_SHAREABLE flag means that the host *can* > > create a shared mapping (i.e. the host seeing guest-side changes without > > explicit transfer doesn't cause problems for the guest). It doesn not > > mean the host *must* create a shared mapping (note that

Re: [PATCH] drm/ttm: optimize the pool shrinker a bit

2021-04-09 Thread Daniel Vetter
On Thu, Apr 08, 2021 at 02:44:16PM +0200, Christian König wrote: > Am 08.04.21 um 13:31 schrieb Daniel Vetter: > > On Thu, Apr 08, 2021 at 01:17:32PM +0200, Christian König wrote: > > > Am 08.04.21 um 13:08 schrieb Daniel Vetter: > > > > On Thu, Apr 01, 2021 at 03:54:13PM +0200, Christian König

Re: [PATCH 2/2] drm/vmwgfx: Make sure unpinning handles reservations

2021-04-09 Thread Daniel Vetter
On Thu, Apr 08, 2021 at 01:22:45PM -0400, Zack Rusin wrote: > Quite often it's a little hard to tell if reservations are already held > in code paths that unpin bo's. While our pinning/unpinning code should > be more explicit that requires a substential amount of work so instead > we can avoid the

Re: [PATCH 2/2] drm/vmwgfx: Make sure unpinning handles reservations

2021-04-09 Thread Intel
Hi, Zack, On 4/8/21 7:22 PM, Zack Rusin wrote: Quite often it's a little hard to tell if reservations are already held in code paths that unpin bo's. While our pinning/unpinning code should be more explicit that requires a substential amount of work so instead we can avoid the issues by making

[PATCH 2/2] drm/ttm: optimize the pool shrinker a bit

2021-04-09 Thread Christian König
Switch back to using a spinlock again by moving the IOMMU unmap outside of the locked region. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 40 +++--- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_pool.c

[PATCH 1/2] mm/vmscan: add sync_shrinkers function

2021-04-09 Thread Christian König
To be able to switch to a spinlock and reduce lock contention in the TTM shrinker we don't want to hold a mutex while unmapping and freeing pages from the pool. But then we somehow need to prevent a race between (for example) the shrinker trying to free pages and hotplug trying to remove the

Re: [PATCH 01/18] drm: Introduce new HDMI helpers

2021-04-09 Thread Thomas Zimmermann
Hi with my comments addressed: Acked-by: Thomas Zimmermann Am 17.03.21 um 16:43 schrieb Maxime Ripard: The new bridge rework to support the input and output formats introduced some boilerplate code that will need to be shared across drivers. Since dw-hdmi is the only driver so far, let's

Re: [PATCH v2 03/10] drm/aperture: Move fbdev conflict helpers into drm_aperture.h

2021-04-09 Thread Thomas Zimmermann
Hi Am 08.04.21 um 11:50 schrieb Daniel Vetter: On Thu, Mar 18, 2021 at 11:29:14AM +0100, Thomas Zimmermann wrote: Fbdev's helpers for handling conflicting framebuffers are related to framebuffer apertures, not console emulation. Therefore move them into a drm_aperture.h, which will contain the

Re: [PATCH v2 04/10] drm/aperture: Add infrastructure for aperture ownership

2021-04-09 Thread Thomas Zimmermann
Hi Am 08.04.21 um 11:48 schrieb Daniel Vetter: Maybe just me, but to avoid overstretching the attention spawn of doc readers I'd avoid this example here. And maybe make the recommendation stronger, e.g. "PCI device drivers can avoid open-coding remove_conflicting_framebuffers() by calling

Re: [PATCH v3 2/3] drm/msm/dpu: add support to dump dpu registers

2021-04-09 Thread kernel test robot
] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Abhinav-Kumar/Add-devcoredump-support-for-DPU/20210409-103135 base

Linux Kernel build bug with AMD_IOMMU_V2=M and HSA_AMD=Y

2021-04-09 Thread David Niklas
Hello, (There are so many maintainers for kfd_iommu.c I feel like I'm spamming.) When compiling for Linux version 5.11.12 using the AMDGPU GPU driver with HSA_AMD enabled, I get the below set of errors. To work around this, I need to change AMD_IOMMU_V2 from M to Y. This bug doesn't affect linux

Re: [PATCH v2 -next] phy: phy-mtk-hdmi: Remove redundant dev_err call in mtk_hdmi_phy_probe()

2021-04-09 Thread Chunfeng Yun
On Thu, 2021-04-08 at 07:55 -0400, He Ying wrote: > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Reported-by: Hulk Robot > Signed-off-by: He Ying > --- > v2: > - Use 'return PTR_ERR()' instead of 'ret =

[PATCH] drm/vc4: Fix PM reference leak in vc4_vec_encoder_enable()

2021-04-09 Thread Bixuan Cui
The pm_runtime_get_sync will increment pm usage counter even it failed.Thus a pairing decrement is needed. Change pm_runtime_get_sync to pm_runtime_resume_and_get for keeping usage counter balanced. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- drivers/gpu/drm/vc4/vc4_vec.c | 2 +- 1