[PATCH v4 03/78] drm/vc4: hvs: Boost the core clock during modeset

2020-07-09 Thread Maxime Ripard
In order to prevent timeouts and stalls in the pipeline, the core clock needs to be maxed at 500MHz during a modeset on the BCM2711. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_drv.h | 2 ++ drivers/gpu/drm/vc4/vc4_hvs.c | 9 +

[PATCH] drm/amd/display: add dmcub check on RENOIR

2020-07-09 Thread Aaron Ma
RENOIR loads dmub fw not dmcu, check dmcu only will prevent loading iram, it breaks backlight control. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=208277 Signed-off-by: Aaron Ma --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v13 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

2020-07-09 Thread Xin Ji
On Tue, Jul 07, 2020 at 03:01:25PM +0800, Nicolas Boichat wrote: Hi Nicolas, thanks for the replay. > On Tue, Jun 9, 2020 at 3:20 PM Xin Ji wrote: > > > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K.

Re: [RFC PATCH 0/4] DSI/DBI and TinyDRM driver

2020-07-09 Thread Paul Cercueil
Hi Daniel, Le mer. 8 juil. 2020 à 9:23, Daniel Vetter a écrit : On Tue, Jul 07, 2020 at 04:32:25PM +0200, Noralf Trønnes wrote: (cc Dillon) Den 03.07.2020 19.26, skrev Sam Ravnborg: > Hi Noralf/Paul. > > Trying to stir up this discussion again. > > On Sun, Jun 14, 2020 at 06:36:22PM

[PATCH v4 72/78] drm/vc4: hdmi: Do the VID_CTL configuration at once

2020-07-09 Thread Maxime Ripard
The VID_CTL setup is done in several places in the driver even though it's not really required. Let's simplify it a bit to do the configuration in one go. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff

[PATCH v4 49/78] drm/vc4: hdmi: Remove vc4_hdmi_connector

2020-07-09 Thread Maxime Ripard
The vc4_hdmi_connector was only used to switch between drm_connector to drm_encoder. However, we can now use vc4_hdmi to do the switch, so that structure is redundant. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 19 ---

[PATCH v4 08/78] drm/vc4: crtc: Use a shared interrupt

2020-07-09 Thread Maxime Ripard
Some pixelvalves in vc5 use the same interrupt line so let's register our interrupt handler as a shared one. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v4 09/78] drm/vc4: crtc: Move the cob allocation outside of bind

2020-07-09 Thread Maxime Ripard
The COB allocation depends on the HVS channel used for a given pixelvalve. While the channel allocation was entirely static in vc4, vc5 changes that and at bind time, a pixelvalve can be assigned to multiple HVS channels. Let's prepare that rework by allocating the COB when it's actually needed.

[PATCH v4 01/78] dt-bindings: display: Add support for the BCM2711 HVS

2020-07-09 Thread Maxime Ripard
The HVS found in the BCM2711 is slightly different from the previous generations, let's add a compatible for it. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml | 18 ++- 1 file changed, 17 insertions(+), 1

[PATCH] Replace HTTP links with HTTPS ones: BACKLIGHT CLASS/SUBSYSTEM

2020-07-09 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH v4 07/78] drm/vc4: crtc: Deal with different number of pixel per clock

2020-07-09 Thread Maxime Ripard
Some of the HDMI pixelvalves in vc5 output two pixels per clock cycle. Let's put the number of pixel output per clock cycle in the CRTC data and update the various calculations to reflect that. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 18

[PATCH v4 04/78] drm/vc4: plane: Change LBM alignment constraint on LBM

2020-07-09 Thread Maxime Ripard
From: Dave Stevenson The HVS5 needs an alignment of 64bytes for its LBM memory, so let's reflect it. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v4 16/78] drm/vc4: crtc: Add function to compute FIFO level bits

2020-07-09 Thread Maxime Ripard
The longer FIFOs in vc5 pixelvalves means that the FIFO full level doesn't fit in the original register field and that we also have a secondary field. In order to prepare for this, let's move the registers fill part to a helper function. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard ---

RE: [PATCH v2] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs

2020-07-09 Thread Angelo Ribeiro
Hi, Is this patch good to go? @dan...@ffwll.ch, @Philippe CORNU Was already tested by @Yannick FERTRE and @Adrian Pop on https://lkml.org/lkml/2020/4/6/691 . Thanks, Angelo From: Yannick FERTRE Date: Wed, Jun 24, 2020 at 16:35:04 > Hello Angelo, > thanks for the patch. > Tested-by:

[PATCH RESEND] drm/imx: imx-ldb: Disable both channels for split mode in enc->disable()

2020-07-09 Thread Liu Ying
Both of the two LVDS channels should be disabled for split mode in the encoder's ->disable() callback, because they are enabled in the encoder's ->enable() callback. Fixes: 6556f7f82b9c ("drm: imx: Move imx-drm driver out of staging") Cc: Philipp Zabel Cc: Sascha Hauer Cc: Pengutronix Kernel

[PATCH] drm/vc4: hdmi: Add a name to the codec DAI component

2020-07-09 Thread Maxime Ripard
Since the components for a given device in ASoC are identified by their name, it makes sense to add one even though it's not strictly necessary. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c

drm: BUG: unable to handle page fault for address: 17ec6000

2020-07-09 Thread Paul Menzel
Dear Linux folks, Building Linux v5.8-rc4-25-gbfe91da29bfad with Clang/LLD 1:11~++20200701093119+ffee8040534-1~exp1 from Debian experimental for 32-bit (`ARCH=i386`), starting Weston (Wayland) or X.Org Server results in non-working screen, and Linux shows the trace below [1]. [

[PATCH v4 74/78] drm/vc4: hdmi: Support the BCM2711 HDMI controllers

2020-07-09 Thread Maxime Ripard
Now that the driver is ready for it, let's bring in the HDMI controllers variants for the BCM2711. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 278 +- drivers/gpu/drm/vc4/vc4_hdmi.h | 36 ++- drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 480

general protection fault in dma_buf_release

2020-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=121cf75510 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476ed6 dashboard

[PATCH v4 56/78] drm/vc4: hdmi: Store the encoder type in the variant structure

2020-07-09 Thread Maxime Ripard
The vc4 CRTC will use the encoder type to control its output clock muxing. However, this will be different from HDMI0 to HDMI1, so let's store our type in the variant structure so that we can support multiple controllers later on. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c

[PATCH v4 10/78] drm/vc4: crtc: Rename HVS channel to output

2020-07-09 Thread Maxime Ripard
In vc5, the HVS has 6 outputs and 3 FIFOs (or channels), with pixelvalves each being assigned to a given output, but each output can then be muxed to feed from multiple FIFOs. Since vc4 had that entirely static, both were probably equivalent, but since that changes, let's rename hvs_channel to

[PATCH v4 44/78] drm/vc4: hdmi: Use local vc4_hdmi directly

2020-07-09 Thread Maxime Ripard
The function vc4_hdmi_connector_detect access its vc4_hdmi struct by dereferencing the pointer in the structure vc4_dev. This will cause some issues when we will have multiple HDMI controllers, so let's just use the local variable for now instead of dereferencing that pointer all the time, and

[PATCH v4 57/78] drm/vc4: hdmi: Deal with multiple debugfs files

2020-07-09 Thread Maxime Ripard
The HDMI driver was registering a single debugfs file so far with the name hdmi_regs. Obviously, this is not going to work anymore when will have multiple HDMI controllers since we will end up trying to register two files with the same name. Let's use the variant to avoid that name conflict.

[PATCH v4 22/78] drm/vc4: crtc: Move HVS init and close to a function

2020-07-09 Thread Maxime Ripard
In order to make further refactoring easier, let's move the HVS channel setup / teardown to their own function. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hvs.c | 104 +++ 1 file changed, 58 insertions(+), 46 deletions(-) diff --git

[PATCH v4 30/78] drm/vc4: crtc: Clear the PixelValve FIFO on disable

2020-07-09 Thread Maxime Ripard
In order to avoid a stale pixel getting stuck on mode change or a disable / enable cycle, we need to make sure to flush the PV FIFO on disable. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v4 54/78] drm/vc4: hdmi: Add PHY RNG enable / disable function

2020-07-09 Thread Maxime Ripard
Let's continue the implementation of hooks for the parts that change in the BCM2711 SoC with the PHY RNG setup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 15 +-- drivers/gpu/drm/vc4/vc4_hdmi.h | 8 drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 15

[PATCH RESEND v2 2/2] drm/bridge: dw-hdmi: Always add the bridge in the global bridge list

2020-07-09 Thread Liu Ying
It doesn't hurt to add the bridge in the global bridge list also for platform specific dw-hdmi drivers which are based on the component framework. This can be achieved by moving the drm_bridge_add() function call from dw_hdmi_probe() to __dw_hdmi_probe(). A counterpart movement for

[PATCH v4 53/78] drm/vc4: hdmi: Add PHY init and disable function

2020-07-09 Thread Maxime Ripard
The HDMI PHY in the BCM2711 HDMI controller is significantly more complicated to setup than in the older BCM283x SoCs. Let's add hooks to enable and disable the PHY. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/Makefile | 1 + drivers/gpu/drm/vc4/vc4_hdmi.c | 14

[PATCH v4 50/78] drm/vc4: hdmi: Introduce resource init and variant

2020-07-09 Thread Maxime Ripard
The HDMI controllers found in the BCM2711 has a pretty different clock and registers areas than found in the older BCM283x SoCs. Let's create a variant structure to store the various adjustments we'll need later on, and a function to get the resources needed for one particular version.

[PATCH v4 36/78] dt-bindings: display: vc4: pv: Add BCM2711 pixel valves

2020-07-09 Thread Maxime Ripard
The BCM2711 comes with other pixelvalves that have different requirements and capabilities. Let's document their compatible. Reviewed-by: Rob Herring Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/brcm,bcm2835-pixelvalve0.yaml | 5 + 1

[PATCH v4 39/78] drm/vc4: hdmi: Move structure to header

2020-07-09 Thread Maxime Ripard
We will need to share the vc4_hdmi and related structures with multiple files, so let's create a header for it. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 76 +--- drivers/gpu/drm/vc4/vc4_hdmi.h | 86

[PATCH v4 65/78] drm/vc4: hdmi: Reset audio infoframe on encoder_enable if previously streaming

2020-07-09 Thread Maxime Ripard
From: Dave Stevenson If the encoder is disabled and re-enabled (eg mode change) all infoframes are reset, whilst the audio subsystem know nothing about this change. The driver therefore needs to reinstate the audio infoframe for itself. Signed-off-by: Dave Stevenson Signed-off-by: Maxime

[PATCH v4 67/78] drm/vc4: hdmi: Add audio-related callbacks

2020-07-09 Thread Maxime Ripard
From: Dave Stevenson The audio configuration has changed for the BCM2711, with notably a different parent clock and a different channel configuration. Make that modular to be able to support the BCM2711. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard ---

Re: [PATCH] drm/aspeed: Call drm_fbdev_generic_setup after drm_dev_register

2020-07-09 Thread Thomas Zimmermann
Am 09.07.20 um 08:51 schrieb Joel Stanley: > On Wed, 1 Jul 2020 at 09:10, Sam Ravnborg wrote: >> >> Hi Guenter. >> >> On Tue, Jun 30, 2020 at 05:10:02PM -0700, Guenter Roeck wrote: >>> The following backtrace is seen when running aspeed G5 kernels. >>> >>> WARNING: CPU: 0 PID: 1 at

Re: [PATCH v2] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs

2020-07-09 Thread Philippe CORNU
On 7/8/20 7:08 PM, Angelo Ribeiro wrote: > Hi, > > Is this patch good to go? > @dan...@ffwll.ch, @Philippe CORNU > > Was already tested by @Yannick FERTRE > and @Adrian Pop > on https://lkml.org/lkml/2020/4/6/691 . > > Thanks, > Angelo > > From: Yannick > FERTRE > Date: Wed, Jun 24, 2020 at

RE: [PATCH v7 14/17] drm/i915: Add connector to hdcp_shim->check_link()

2020-07-09 Thread C, Ramalingam
> -Original Message- > From: Sean Paul > Sent: Tuesday, June 23, 2020 9:29 PM > To: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org > Cc: Li, Juston ; C, Ramalingam > ; ville.syrj...@linux.intel.com; > jani.nik...@linux.intel.com; joonas.lahti...@linux.intel.com; Vivi,

[PATCH v3 1/4] drm/msm/dpu: Use OPP API to set clk/perf state

2020-07-09 Thread Rajendra Nayak
On some qualcomm platforms DPU needs to express a performance state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Rob Clark

[PATCH v3 2/4] drm/msm: dsi: Use OPP API to set clk/perf state

2020-07-09 Thread Rajendra Nayak
On SDM845 and SC7180 DSI needs to express a performance state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. dev_pm_opp_set_rate() is designed to be equivalent to

[PATCH v3 0/4] DVFS support for dpu and dsi

2020-07-09 Thread Rajendra Nayak
Changes in v3 - Added dev_pm_opp_put_clkname() in the error path Changes in v2 - Patch 2: Dropped dsi_link_clk_set_rate_6g_v2 and dsi_link_clk_disable_6g_v2 as suggested by Matthias These patches add DVFS support for DPU and DSI. These patches have no other dependency. Patch 1 and 2 will need

[PATCH v3 3/4] arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domains

2020-07-09 Thread Rajendra Nayak
Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 59

Re: [Intel-gfx] [PATCH 03/25] dma-buf.rst: Document why idenfinite fences are a bad idea

2020-07-09 Thread Daniel Stone
Hi, On Tue, 7 Jul 2020 at 21:13, Daniel Vetter wrote: > Comes up every few years, gets somewhat tedious to discuss, let's > write this down once and for all. Thanks for writing this up! I wonder if any of the notes from my reply to the previous-version thread would be helpful to more explicitly

Re: [Intel-gfx] [PATCH 01/25] dma-fence: basic lockdep annotations

2020-07-09 Thread Daniel Vetter
On Thu, Jul 09, 2020 at 08:32:41AM +0100, Daniel Stone wrote: > Hi, > > On Wed, 8 Jul 2020 at 16:13, Daniel Vetter wrote: > > On Wed, Jul 8, 2020 at 4:57 PM Christian König > > wrote: > > > Could we merge this controlled by a separate config option? > > > > > > This way we could have the

Re: [PATCH 1/2] drm/vgem: Do not allocate backing shmemfs file for an import dmabuf object

2020-07-09 Thread Christian König
Am 08.07.20 um 18:19 schrieb Daniel Vetter: On Wed, Jul 8, 2020 at 6:11 PM Daniel Vetter wrote: On Wed, Jul 8, 2020 at 5:05 PM Christian König wrote: Am 08.07.20 um 17:01 schrieb Daniel Vetter: On Wed, Jul 8, 2020 at 4:37 PM Christian König wrote: Am 08.07.20 um 11:54 schrieb Daniel

Re: [PATCH] efi: avoid error message when booting under Xen

2020-07-09 Thread Jürgen Groß
On 28.06.20 10:50, Jürgen Groß wrote: Ping? On 10.06.20 16:10, Juergen Gross wrote: efifb_probe() will issue an error message in case the kernel is booted as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid that message by calling efi_mem_desc_lookup() only if EFI_PARAVIRT

[PATCH v7 08/12] device core: Introduce DMA range map, supplanting dma_pfn_offset

2020-07-09 Thread Jim Quinlan
The new field 'dma_range_map' in struct device is used to facilitate the use of single or multiple offsets between mapping regions of cpu addrs and dma addrs. It subsumes the role of "dev->dma_pfn_offset" which was only capable of holding a single uniform offset and had no region bounds checking.

drm/ast something ate high-res modes (5.3->5.6 regression)

2020-07-09 Thread Ilpo Järvinen
Hi, After upgrading kernel from 5.3 series to 5.6.16 something seems to prevent me from achieving high resolutions with the ast driver. With 5.6.16: $ xrandr Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 1920 x 2048 VGA-1 connected primary 1600x1200+0+0 (normal left inverted right

[PATCH v3 4/4] arm64: dts: sc7180: Add DSI and MDP OPP tables and power-domains

2020-07-09 Thread Rajendra Nayak
Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 49

Re: drm/ast something ate high-res modes (5.3->5.6 regression)

2020-07-09 Thread Ilpo Järvinen
On Wed, 8 Jul 2020, Thomas Zimmermann wrote: > Am 08.07.20 um 16:26 schrieb Daniel Vetter: > > On Wed, Jul 8, 2020 at 4:22 PM Thomas Zimmermann > > wrote: > >> > >> Am 08.07.20 um 15:46 schrieb Ilpo Järvinen: > >>> On Wed, 8 Jul 2020, Thomas Zimmermann wrote: > >>> > Am 08.07.20 um 12:05

[PATCH v4 76/78] dt-bindings: display: vc4: Document BCM2711 VC5

2020-07-09 Thread Maxime Ripard
The BCM2711 comes with a new VideoCore. Add a compatible for it. Reviewed-by: Rob Herring Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/brcm,bcm2835-vc4.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 27/78] drm/vc4: crtc: Move HVS channel init before the PV initialisation

2020-07-09 Thread Maxime Ripard
In order to avoid stale pixels getting stuck in an intermediate FIFO between the HVS and the pixelvalve on BCM2711, we need to configure the HVS channel before the pixelvalve is reset and configured. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 8 1 file changed, 4

[PATCH v4 37/78] drm/vc4: crtc: Add BCM2711 pixelvalves

2020-07-09 Thread Maxime Ripard
The BCM2711 has 5 pixelvalves, so now that our driver is ready, let's add support for them. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 95 ++- drivers/gpu/drm/vc4/vc4_regs.h | 7 +++- 2 files changed, 100

[PATCH v4 40/78] drm/vc4: hdmi: rework connectors and encoders

2020-07-09 Thread Maxime Ripard
the vc4_hdmi driver has some custom structures to hold the data it needs to associate with the drm_encoder and drm_connector structures. However, it allocates them separately from the vc4_hdmi structure which makes it more complicated than it needs to be. Move those structures to be contained by

[PATCH v4 61/78] drm/vc4: hdmi: Rename drm_encoder pointer in mode_valid

2020-07-09 Thread Maxime Ripard
The mode_valid hook on the encoder uses a pointer to a drm_encoder called crtc, which is pretty confusing. Let's rename it to encoder to make it clear what it is. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 58/78] drm/vc4: hdmi: Move CEC init to its own function

2020-07-09 Thread Maxime Ripard
The CEC init code was put directly into the bind function, which was quite inconsistent with how the audio support was done, and would prevent us from further changes to skip that initialisation entirely. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 108

[PATCH v4 70/78] drm/vc4: hdmi: Always recenter the HDMI FIFO

2020-07-09 Thread Maxime Ripard
In order to avoid a pixel getting stuck in an unflushable FIFO, we need to recenter the FIFO every time we're doing a modeset and not only if we're connected to an HDMI monitor. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 46 +++ 1 file

[PATCH v4 68/78] drm/vc4: hdmi: Deal with multiple ALSA cards

2020-07-09 Thread Maxime Ripard
The HDMI driver was registering a single ALSA card so far with the name vc4-hdmi. Obviously, this is not going to work anymore when will have multiple HDMI controllers since we will end up trying to register two files with the same name. Let's use the variant to avoid that name conflict.

[PATCH v4 46/78] drm/vc4: hdmi: Pass vc4_hdmi to CEC code

2020-07-09 Thread Maxime Ripard
Our CEC code also retrieves the associated vc4_hdmi by setting the vc4_dev pointer as its private data, and then dereferences its vc4_hdmi pointer. In order to eventually get rid of that pointer, we can simply pass the vc4_hdmi pointer directly. Reviewed-by: Eric Anholt Signed-off-by: Maxime

[PATCH v4 75/78] dt-bindings: display: vc4: hdmi: Add BCM2711 HDMI controllers bindings

2020-07-09 Thread Maxime Ripard
The HDMI controllers found in the BCM2711 SoC need some adjustments to the bindings, especially since the registers have been shuffled around in more register ranges. Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml |

[PATCH v4 73/78] drm/vc4: hdmi: Switch to blank pixels when disabled

2020-07-09 Thread Maxime Ripard
In order to avoid pixels getting stuck in an unflushable FIFO, we need when we disable the HDMI controller to switch away from getting our pixels from the pixelvalve and instead use blank pixels, and switch back to the pixelvalve when we enable the HDMI controller. Signed-off-by: Maxime Ripard

[PATCH v4 52/78] drm/vc4: hdmi: Add reset callback

2020-07-09 Thread Maxime Ripard
The BCM2711 and BCM283x HDMI controllers use a slightly different reset sequence, so let's add a callback to reset the controller. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 31 ++- drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ 2 files changed, 21

[PATCH v4 71/78] drm/vc4: hdmi: Implement finer-grained hooks

2020-07-09 Thread Maxime Ripard
In order to prevent some pixels getting stuck in an unflushable FIFO on bcm2711, we need to enable the HVS, the pixelvalve (the CRTC) and the HDMI controller (the encoder) in an intertwined way, and with tight delays. However, the atomic callbacks don't really provide a way to work with either

[PATCH v4 06/78] drm/vc4: plane: Create more planes

2020-07-09 Thread Maxime Ripard
Let's now create more planes that can be affected to all the CRTCs. vc4 has 3 CRTCs, 1 primary and 1 cursor each, and was having 24 (8 planes per CRTC) overlays. However, vc5 has 5 CRTCs, so keeping the same logic would put us at 50 planes which is well above the 32 planes limit imposed by DRM.

[PATCH v4 63/78] drm/vc4: hdmi: Use clk_set_min_rate instead

2020-07-09 Thread Maxime Ripard
The HSM clock needs to be running at 101% the pixel clock of the HDMI controller, however it's shared between the two HDMI controllers, which means that if the resolutions are different between the two HDMI controllers, and the lowest resolution is on the second (in enable order) controller, the

[PATCH v4 69/78] drm/vc4: hdmi: Remove register dumps in enable

2020-07-09 Thread Maxime Ripard
The current code has some logic, disabled by default, to dump the register setup in the HDMI controller. However, since we're going to split those functions in multiple, shorter, functions that only make sense where they are called in sequence, keeping the register dump makes little sense.

[PATCH v4 19/78] drm/vc4: crtc: Disable color management for HVS5

2020-07-09 Thread Maxime Ripard
The HVS5 uses different color matrices. Disable color management support for now. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 17 +++-- drivers/gpu/drm/vc4/vc4_hvs.c | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff

[PATCH v4 24/78] drm/vc4: hvs: Make sure our channel is reset

2020-07-09 Thread Maxime Ripard
In order to clear our intermediate FIFOs that might end up with a stale pixel, let's make sure our FIFO channel is reset everytime our channel is setup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hvs.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v4 21/78] drm/vc4: crtc: Move PV dump to config_pv

2020-07-09 Thread Maxime Ripard
Now that we only configure the PixelValve in vc4_crtc_config_pv, it doesn't really make much sense to dump its register content in its caller. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff

[PATCH v4 55/78] drm/vc4: hdmi: Add a CSC setup callback

2020-07-09 Thread Maxime Ripard
Similarly to the previous patches, the CSC setup is slightly different in the BCM2711 than in the previous generations. Let's add a callback for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 142 +++--- drivers/gpu/drm/vc4/vc4_hdmi.h | 7 ++-

[PATCH v4 34/78] drm/vc4: crtc: Move the CRTC disable out

2020-07-09 Thread Maxime Ripard
We'll need to reuse the part that disables the HVS and PixelValve during boot too, so let's create a separate function. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 34 ++ 1 file changed, 22 insertions(+), 12

[PATCH v4 77/78] drm/vc4: drv: Support BCM2711

2020-07-09 Thread Maxime Ripard
The BCM2711 has a reworked display pipeline, and the load tracker needs some adjustement to operate properly. Let's add a compatible for BCM2711 and disable the load tracker until properly supported. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_drv.c | 1 +-

[PATCH v4 43/78] drm/vc4: hdmi: Move accessors to vc4_hdmi

2020-07-09 Thread Maxime Ripard
The current driver only supports a single HDMI controller, and part of the issue is that the main vc4_dev structure holds a pointer to its (only) HDMI controller, and the HDMI registers accessors will use it to retrieve the mapped addresses. Let's modify those accessors to use directly the

Re: [RESEND PATCH 2/3] drm/mediatek: mtk_dpi: Convert to bridge driver

2020-07-09 Thread Enric Balletbo i Serra
Hi Boris, Thank you for review the patch. On 1/7/20 13:51, Boris Brezillon wrote: > On Mon, 18 May 2020 19:39:08 +0200 > Enric Balletbo i Serra wrote: > >> Convert mtk_dpi to a bridge driver with built-in encoder support for >> compatibility with existing component drivers. >> >>

[PATCH v4 31/78] drm/vc4: crtc: Clear the PixelValve FIFO during configuration

2020-07-09 Thread Maxime Ripard
Even though it's not really clear why we need to flush the PV FIFO during the configuration even though we started by flushing it, experience shows that without it we get a stale pixel stuck in the FIFO between the HVS and the PV. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c

[PATCH v4 12/78] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-07-09 Thread Maxime Ripard
The VIDEN bit in the pixelvalve currently being used to enable or disable the pixelvalve seems to not be enough in some situations, which whill end up with the pixelvalve stalling. In such a case, even re-enabling VIDEN doesn't bring it back and we need to clear the FIFO. This can only be done if

[PATCH v4 23/78] drm/vc4: crtc: Move the HVS gamma LUT setup to our init function

2020-07-09 Thread Maxime Ripard
Since most of the HVS channel is setup in the init function, let's move the gamma setup there too. As this makes the HVS mode_set function empty, let's remove it in the process. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- drivers/gpu/drm/vc4/vc4_drv.h | 1 +-

[PATCH v4 02/78] drm/vc4: Add support for the BCM2711 HVS5

2020-07-09 Thread Maxime Ripard
From: Dave Stevenson The HVS found in the BCM2711 is slightly different from the previous generations. Most notably, the display list layout changes a bit, the LBM doesn't have the same size and the formats ordering for some formats is swapped. Signed-off-by: Dave Stevenson Reviewed-by: Eric

Re: [PATCH] drm/hisilicon/hibmc: Move drm_fbdev_generic_setup() down to avoid the splat

2020-07-09 Thread Xinliang Liu
Hi Zenghui, Thanks for fixing this. Applied to drm-misc-fixes. Best, -Xinliang On Mon, 6 Jul 2020 at 22:53, Zenghui Yu wrote: > > The HiSilicon hibmc driver triggers a splat at boot time as below > > [ 14.137806] [ cut here ] > [ 14.142405] hibmc-drm :0a:00.0:

[PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-07-09 Thread Maxime Ripard
In order to avoid pixels getting stuck in the (unflushable) FIFO between the HVS and the PV, we need to add some delay after disabling the PV output and before disabling the HDMI controller. 20ms seems to be good enough so let's use that. Signed-off-by: Maxime Ripard ---

[PATCH v4 26/78] drm/vc4: crtc: Remove redundant pixelvalve reset

2020-07-09 Thread Maxime Ripard
Since we moved the pixelvalve configuration to atomic_enable, we're now first calling the function that resets the pixelvalve and then the one that configures it. However, the first thing the latter is doing is calling the reset function, meaning that we reset twice our pixelvalve. Let's remove

[PATCH v4 20/78] drm/vc4: crtc: Turn pixelvalve reset into a function

2020-07-09 Thread Maxime Ripard
The driver resets the pixelvalve FIFO in a number of occurences without always using the same sequence. Since this will be critical for BCM2711, let's move that sequence to a function so that we are consistent. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard ---

[PATCH v4 33/78] drm/vc4: hvs: Introduce a function to get the assigned FIFO

2020-07-09 Thread Maxime Ripard
At boot time, if we detect that a pixelvalve has been enabled, we need to be able to retrieve the HVS channel it has been assigned to so that we can disable that channel too. Let's create that function that returns the FIFO or an error from a given output. Reviewed-by: Eric Anholt Signed-off-by:

[PATCH v4 25/78] drm/vc4: crtc: Remove mode_set_nofb

2020-07-09 Thread Maxime Ripard
On BCM2711 to avoid stale pixels getting stuck in intermediate FIFOs, the pixelvalve needs to be setup each time there's a mode change or enable / disable sequence. Therefore, we can't really use mode_set_nofb anymore to configure it, but we need to move it to atomic_enable. Signed-off-by:

[PATCH v4 35/78] drm/vc4: drv: Disable the CRTC at boot time

2020-07-09 Thread Maxime Ripard
In order to prevent issues during the firmware to KMS transition, we need to make sure the pixelvalve are disabled at boot time so that the DRM state matches the hardware state. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 25

Re: [RFC PATCH 3/4] gpu/drm: Add TinyDRM for DSI/DBI panels

2020-07-09 Thread Paul Cercueil
Hi Sandy, Le mer. 8 juil. 2020 à 10:26, Sandy Huang a écrit : Hi paul, After add this driver, the followinig usage scenarios can be supported? panel 1. crtc->encoder->connector[edp/hdmi/mipi dsi] -> panel panel 2. Panel setup/control and framebuffer upload over SPI the

[PATCH] Replace HTTP links with HTTPS ones: DRM DRIVERS FOR BRIDGE CHIPS

2020-07-09 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

RE: [PATCH v7 12/17] drm/i915: Factor out HDCP shim functions from dp for use by dp_mst

2020-07-09 Thread C, Ramalingam
> -Original Message- > From: Sean Paul > Sent: Tuesday, June 23, 2020 9:29 PM > To: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org > Cc: Li, Juston ; C, Ramalingam > ; ville.syrj...@linux.intel.com; > jani.nik...@linux.intel.com; joonas.lahti...@linux.intel.com; Vivi,

[PATCH v7 00/12] PCI: brcmstb: enable PCIe for STB chips

2020-07-09 Thread Jim Quinlan
Patchset Summary: Enhance a PCIe host controller driver. Because of its unusual design we are foced to change dev->dma_pfn_offset into a more general role allowing multiple offsets. See the 'v1' notes below for more info. v7: Commit: "device core: Introduce DMA range map, supplanting

Re: drm/ast something ate high-res modes (5.3->5.6 regression)

2020-07-09 Thread Ilpo Järvinen
On Wed, 8 Jul 2020, Thomas Zimmermann wrote: > Hi > > Am 08.07.20 um 12:05 schrieb Ilpo Järvinen: > > Hi, > > > > After upgrading kernel from 5.3 series to 5.6.16 something seems to > > prevent me from achieving high resolutions with the ast driver. > > Thanks for reporting. It's not a bug,

[PATCH v4 00/78] drm/vc4: Support BCM2711 Display Pipeline

2020-07-09 Thread Maxime Ripard
Hi everyone, Here's a (pretty long) series to introduce support in the VC4 DRM driver for the display pipeline found in the BCM2711 (and thus the RaspberryPi 4). The main differences are that there's two HDMI controllers and that there's more pixelvalve now. Those pixelvalve come with a mux in

[PATCH v4 14/78] drm/vc4: crtc: Assign output to channel automatically

2020-07-09 Thread Maxime Ripard
The HVS found in the BCM2711 has 6 outputs and 3 FIFOs, with each output being connected to a pixelvalve, and some muxing between the FIFOs and outputs. Any output cannot feed from any FIFO though, and they all have a bunch of constraints. In order to support this, let's store the possible FIFOs

[PATCH v4 17/78] drm/vc4: crtc: Rename HDMI encoder type to HDMI0

2020-07-09 Thread Maxime Ripard
The previous generations were only supporting a single HDMI controller, but that's about to change, so put an index as well to differentiate between the two controllers. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-

[PATCH v4 18/78] drm/vc4: crtc: Add HDMI1 encoder type

2020-07-09 Thread Maxime Ripard
The BCM2711 sports a second HDMI controller, so let's add that second HDMI encoder type. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h

[PATCH v4 45/78] drm/vc4: hdmi: Add container_of macros for encoders and connectors

2020-07-09 Thread Maxime Ripard
Whenever the code needs to access the vc4_hdmi structure from a DRM connector or encoder, it first accesses the drm_device associated to the connector, then retrieve the drm_dev private data which gives it a pointer to our vc4_dev, and will finally follow the vc4_hdmi pointer in that structure.

[PATCH v4 11/78] drm/vc4: crtc: Use local chan variable

2020-07-09 Thread Maxime Ripard
The vc4_crtc_handle_page_flip already has a local variable holding the value of vc4_crtc->channel, so let's use it instead. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c

[PATCH v4 38/78] drm/vc4: hdmi: Use debugfs private field

2020-07-09 Thread Maxime Ripard
We're calling vc4_debugfs_add_file with our struct vc4_hdmi pointer set in the private field, but we don't use that field and go through the main struct vc4_dev to get it. Let's use the private field directly, that will save us some trouble later on. Reviewed-by: Eric Anholt Signed-off-by:

[PATCH v4 47/78] drm/vc4: hdmi: Retrieve the vc4_hdmi at unbind using our device

2020-07-09 Thread Maxime Ripard
The unbind function needs to retrieve a vc4_hdmi structure pointer through the struct device that we're given since we want to support multiple HDMI controllers. However, our optional ASoC support doesn't make that trivial since it will overwrite the device drvdata if we use it, but obviously

[PATCH v4 15/78] drm/vc4: crtc: Add FIFO depth to vc4_crtc_data

2020-07-09 Thread Maxime Ripard
Not all pixelvalve FIFOs in vc5 have the same depth, so we need to add that to our vc4_crtc_data structure to be able to compute the fill level properly later on. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 20 +---

[PATCH v4 78/78] ARM: dts: bcm2711: Enable the display pipeline

2020-07-09 Thread Maxime Ripard
Now that all the drivers have been adjusted for it, let's bring in the necessary device tree changes. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 46 +++- arch/arm/boot/dts/bcm2711.dtsi| 115 ++- 2 files changed, 160

[PATCH v4 13/78] drm/vc4: kms: Convert to for_each_new_crtc_state

2020-07-09 Thread Maxime Ripard
The vc4 atomic commit loop has an handrolled loop that is basically identical to for_each_new_crtc_state, let's convert it to that helper. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_kms.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 16/20] Documentation: s390/vfio-ap: eliminate duplicated word

2020-07-09 Thread Pierre Morel
On 2020-07-07 20:04, Randy Dunlap wrote: Drop the doubled word "the". Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Cc: Tony Krowiak Cc: Pierre Morel Cc: Halil Pasic Cc: linux-s...@vger.kernel.org --- Documentation/s390/vfio-ap.rst |2 +- 1 file

  1   2   >