Re: [PATCH v4 5/7] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-04 Thread Tomi Valkeinen
Hi Boris, On 04/12/2020 12:50, Boris Brezillon wrote: > On Tue, 1 Dec 2020 17:48:28 +0530 > Nikhil Devshatwar wrote: > >> Remove the old code to iterate over the bridge chain, as this is >> already done by the framework. >> The bridge state should have the negotiated bus format and flags. >> Use

Re: [PATCH 4/5] drm/scheduler: Job timeout handler returns status (v2)

2020-12-04 Thread Andrey Grodzovsky
On 12/4/20 3:13 AM, Christian König wrote: Thinking more about that I came to the conclusion that the whole approach here isn't correct. See even when the job has been completed or canceled we still want to restart the timer. The reason for this is that the timer is then not restarted for t

Re: [PATCH v2] drm/vc4: hdmi: Don't poll for the infoframes status on setup

2020-12-04 Thread Dave Stevenson
Hi Maxime On Thu, 3 Dec 2020 at 07:46, Maxime Ripard wrote: > > The infoframes are sent at a regular interval as a data island packet, > so we don't need to wait for them to be sent when we're setting them up. > > However, we do need to poll when we're enabling since the we can't > update the pac

Re: [RFC PATCH 1/2] drm: RFC add choice to use dynamic debug in drm-debug

2020-12-04 Thread Ville Syrjälä
On Thu, Dec 03, 2020 at 08:53:17PM -0700, Jim Cromie wrote: > drm's debug system uses distinct categories of debug messages, mapped > to bits in drm.debug. Currently, code does a lot of unlikely bit-mask > checks on drm.debug (in drm_debug_enabled), we can use dynamic debug > instead, and get all

Re: [PATCH v11 01/10] dt-bindings: memory: tegra20: emc: Document opp-supported-hw property

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 10:24:30PM +0300, Dmitry Osipenko wrote: > Document opp-supported-hw property, which is not strictly necessary to > have on Tegra20, but it's very convenient to have because all other SoC > core devices will use hardware versioning, and thus, it's good to maintain > the cons

Re: [PATCH v4 5/7] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-04 Thread Tomi Valkeinen
On 04/12/2020 13:12, Boris Brezillon wrote: >>> That'd be even better if you implement the bridge interface instead of >>> the encoder one so we can get rid of the encoder_{helper}_funcs and use >>> drm_simple_encoder_init(). >> >> I'm a bit confused here. What should be the design here... >> >>

Re: [PATCH v10 17/19] ARM: tegra: Add EMC OPP properties to Tegra20 device-trees

2020-12-04 Thread Thierry Reding
On Tue, Dec 01, 2020 at 01:57:44AM +0300, Dmitry Osipenko wrote: > 01.12.2020 00:17, Jon Hunter пишет: > > Hi Dmitry, > > > > On 23/11/2020 00:27, Dmitry Osipenko wrote: > >> Add EMC OPP DVFS tables and update board device-trees by removing > >> unsupported OPPs. > >> > >> Signed-off-by: Dmitry Os

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-04 Thread Daniel Vetter
On Fri, Dec 4, 2020 at 9:12 AM Pekka Paalanen wrote: > > On Thu, 3 Dec 2020 21:45:14 +0100 > Daniel Vetter wrote: > > > On Thu, Dec 3, 2020 at 7:55 PM James Park > > wrote: > > > > > > The trailing underscore for DRM_FOURCC_STANDALONE_ isn't > > > intentional, right? Should I put all the integ

Re: [PATCH v2 1/7] drm: Introduce an atomic_commit_setup function

2020-12-04 Thread Daniel Vetter
On Fri, Dec 4, 2020 at 4:11 PM Maxime Ripard wrote: > > Private objects storing a state shared across all CRTCs need to be > carefully handled to avoid a use-after-free issue. > > The proper way to do this to track all the commits using that shared > state and wait for the previous commits to be d

Re: [PATCH v11 02/10] memory: tegra20: Support hardware versioning and clean up OPP table initialization

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 10:24:31PM +0300, Dmitry Osipenko wrote: > Support hardware versioning, which is now required for Tegra20 EMC OPP. > Clean up OPP table initialization by using a error code returned by OPP > API for judging about the OPP table presence in a device-tree and remove > OPP regul

Re: [PATCH v11 03/10] memory: tegra30: Support interconnect framework

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 10:24:32PM +0300, Dmitry Osipenko wrote: > Now Internal and External memory controllers are memory interconnection > providers. This allows us to use interconnect API for tuning of memory > configuration. EMC driver now supports OPPs and DVFS. MC driver now > supports tuning

Re: [PATCH v11 04/10] memory: tegra124-emc: Make driver modular

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 10:24:33PM +0300, Dmitry Osipenko wrote: > Add modularization support to the Tegra124 EMC driver, which now can be > compiled as a loadable kernel module. > > Note that EMC clock must be registered at clk-init time, otherwise PLLM > will be disabled as unused clock at boot

[PATCH] drm/amdgpu: fw_attestation: fix unused function warning

2020-12-04 Thread Arnd Bergmann
From: Arnd Bergmann Without debugfs, the compiler notices one function that is not used at all: drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:123:12: error: unused function 'amdgpu_is_fw_attestation_supported' [-Werror,-Wunused-function] In fact the static const amdgpu_fw_attestation_debu

[PATCH] drm/ttm: fix unused function warning

2020-12-04 Thread Arnd Bergmann
From: Arnd Bergmann ttm_pool_type_count() is not used when debugfs is disabled: drivers/gpu/drm/ttm/ttm_pool.c:243:21: error: unused function 'ttm_pool_type_count' [-Werror,-Wunused-function] static unsigned int ttm_pool_type_count(struct ttm_pool_type *pt) Move the definition into the #ifdef

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

2020-12-04 Thread pr-tracker-bot
The pull request you sent on Fri, 4 Dec 2020 12:25:35 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-12-04 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e87297fa080a7ed6b431873c771b3801cab573f5 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [PATCH 1/1] dt-bindings: eliminate yamllint warnings

2020-12-04 Thread Mark Brown
On Fri, Dec 04, 2020 at 10:42:26AM +0800, Zhen Lei wrote: > All warnings are related only to "wrong indentation", except one: > Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml:4:1: \ > [error] missing document start "---" (document-start) It would make life easier (and be more normal pra

Re: [RFC PATCH v1 00/12] Replace strstarts() by str_has_prefix()

2020-12-04 Thread James Bottomley
On Fri, 2020-12-04 at 18:03 +0100, laniel_fran...@privacyrequired.com wrote: > In this patch set, I replaced all calls to strstarts() by calls to > str_has_prefix(). Indeed, the kernel has two functions to test if a > string begins with an other: > 1. strstarts() which returns a bool, so 1 if the s

Re: [PATCH v4 5/7] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-04 Thread Tomi Valkeinen
On 04/12/2020 15:54, Boris Brezillon wrote: > On Fri, 4 Dec 2020 13:47:05 +0200 > Tomi Valkeinen wrote: > >> On 04/12/2020 13:12, Boris Brezillon wrote: >> > That'd be even better if you implement the bridge interface instead of > the encoder one so we can get rid of the encoder_{helper}_

[PATCH] dma-buf: Fix kerneldoc formatting

2020-12-04 Thread Daniel Vetter
I wanted to look up something and noticed the hyperlink doesn't work. While fixing that also noticed a trivial kerneldoc comment typo in the same section, fix that too. Signed-off-by: Daniel Vetter --- Documentation/driver-api/dma-buf.rst | 2 +- include/linux/dma-buf-map.h | 2 +- 2 fi

Re: [PATCH] dma-buf: Fix kerneldoc formatting

2020-12-04 Thread Simon Ser
On Friday, December 4th, 2020 at 9:02 PM, Daniel Vetter wrote: > I wanted to look up something and noticed the hyperlink doesn't work. > While fixing that also noticed a trivial kerneldoc comment typo in the > same section, fix that too. Reviewed-by: Simon Ser _

Re: [PATCH] drm/amdgpu: fix debugfs creation/removal, again

2020-12-04 Thread Alex Deucher
On Fri, Dec 4, 2020 at 1:17 AM Zhou1, Tao wrote: > > [AMD Public Use] > > Reviewed-by: Tao Zhou Applied. Thanks! Alex > > > -Original Message- > > From: Arnd Bergmann > > Sent: Friday, December 4, 2020 7:07 AM > > To: Deucher, Alexander ; Koenig, Christian > > ; David Airlie ; Daniel

Re: [PATCH] drm/amdgpu: fw_attestation: fix unused function warning

2020-12-04 Thread Alex Deucher
On Fri, Dec 4, 2020 at 11:51 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > Without debugfs, the compiler notices one function that is not used at > all: > > drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:123:12: error: unused > function 'amdgpu_is_fw_attestation_supported' [-Werror,-Wu

[PATCH 1/9] drm: rcar-du: Fix crash when using LVDS1 clock for CRTC

2020-12-04 Thread Laurent Pinchart
On D3 and E3 platforms, the LVDS encoder includes a PLL that can generate a clock for the corresponding CRTC, used even when the CRTC output to a non-LVDS port. This mechanism is supported by the driver, but the implementation is broken in dual-link LVDS mode. In that case, the LVDS1 drm_encoder is

[PATCH 3/9] drm: rcar-du: Drop unneeded encoder cleanup in error path

2020-12-04 Thread Laurent Pinchart
The encoder->name field can never be non-null in the error path, as that can only be possible after a successful call to drm_simple_encoder_init(). Drop the cleanup. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 5 + 1 file changed, 1 insertion(+), 4 deletio

[PATCH 0/9] drm: rcar-du: Fix LVDS-related crash

2020-12-04 Thread Laurent Pinchart
Hello, This patch series fixes a crash in the LVDS encoder on D3 and E3 SoCs. See patch 1/9 for details. The next patches are additional cleanups. Patches 4/9 to 6/9 fix incorrect usage of the devm_* API. They could be made simpler by using the proposed drmm_* allocators for encoders and planes (

[PATCH 2/9] drm: rcar-du: Release vsp device reference in all error paths

2020-12-04 Thread Laurent Pinchart
Use drmm_add_action_or_reset() instead of drmm_add_action() to ensure the vsp device reference is released in case the function call fails. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/dr

[PATCH 4/9] drm: rcar-du: Use DRM-managed allocation for VSP planes

2020-12-04 Thread Laurent Pinchart
devm_kcalloc() is the wrong API to allocate planes, as the lifetime of the planes is tied to the DRM device, not the device to driver binding. drmm_kcalloc() isn't a good option either, as it would result in the planes being freed before being unregistered during the managed cleanup of the DRM obje

[PATCH 6/9] drm: rcar-du: Embed drm_device in rcar_du_device

2020-12-04 Thread Laurent Pinchart
Embedding drm_device in rcar_du_device allows usage of the DRM managed API to allocate both structures in one go, simplifying error handling. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 33 +---

[PATCH 7/9] drm: rcar-du: Replace dev_private with container_of

2020-12-04 Thread Laurent Pinchart
Now that drm_device is embedded in rcar_du_device, we can use container_of to get the rcar_du_device pointer from the drm_device, instead of using the drm_device.dev_private field. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 -- drivers/gpu/drm/rcar-du/rcar_du

[PATCH 9/9] drm: rcar-du: Drop local encoder variable

2020-12-04 Thread Laurent Pinchart
The local encoder variable is an alias for &renc->base, and is only use twice. It doesn't help much, drop it, along with the rcar_encoder_to_drm_encoder() macro that is then unused. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 6 ++ drivers/gpu/drm/rcar-du/

[PATCH 8/9] drm: rcar-du: Skip encoder allocation for LVDS1 in dual-link mode

2020-12-04 Thread Laurent Pinchart
The rcar-du driver skips registration of the encoder for the LVDS1 output when LVDS is used in dual-link mode, as the LVDS0 and LVDS1 links are bundled and handled through the LVDS0 output. It however still allocates the encoder and immediately destroys it, which is pointless. Skip allocation of th

[PATCH 5/9] drm: rcar-du: Use DRM-managed allocation for encoders

2020-12-04 Thread Laurent Pinchart
devm_kzalloc() is the wrong API to allocate encoders, as the lifetime of the encoders is tied to the DRM device, not the device to driver binding. drmm_kzalloc() isn't a good option either, as it would result in the encoder being freed before being unregistered during the managed cleanup of the DRM

Re: [PATCH] drm: Allow drm_fourcc.h without including drm.h

2020-12-04 Thread kernel test robot
Hi James, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.10-rc6 next-20201204] [If your patch is applied to the

Re: [PATCH 1/2] drm: add legacy support for using degamma for gamma

2020-12-04 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Thu, Dec 03, 2020 at 01:48:44PM +0200, Tomi Valkeinen wrote: > We currently have drm_atomic_helper_legacy_gamma_set() helper which can > be used to handle legacy gamma-set ioctl. > drm_atomic_helper_legacy_gamma_set() sets GAMMA_LUT, and clears > CTM and DEGAM

[PATCH v3 0/9] drm/i915: Add support for Intel's eDP backlight controls

2020-12-04 Thread Lyude Paul
A while ago we ran into issues while trying to enable the eDP backlight control interface as defined by VESA, in order to make the DPCD backlight controls on newer laptop panels work. The issue ended up being much more complicated however, as we also apparently needed to add support for an Intel-sp

[PATCH v3 1/9] drm/i915/dp: Program source OUI on eDP panels

2020-12-04 Thread Lyude Paul
Since we're about to start adding support for Intel's magic HDR backlight interface over DPCD, we need to ensure we're properly programming this field so that Intel specific sink services are exposed. Otherwise, 0x300-0x3ff will just read zeroes. We also take care not to reprogram the source OUI i

[PATCH v3 2/9] drm/i915: Rename pwm_* backlight callbacks to ext_pwm_*

2020-12-04 Thread Lyude Paul
Since we're going to need to add a set of lower-level PWM backlight control hooks to be shared by normal backlight controls and HDR backlight controls in SDR mode, let's add a prefix to the external PWM backlight functions so that the difference between them and the high level PWM-only backlight fu

[PATCH v3 3/9] drm/i915: Pass down brightness values to enable/disable backlight callbacks

2020-12-04 Thread Lyude Paul
Instead of using intel_panel->backlight.level, have the caller provide us with the current panel backlight value. We'll need this for when we separate PWM-related backlight callbacks from other means of backlight control (like DPCD backlight controls), as the caller of each PWM callback will be res

[PATCH v3 4/9] drm/i915: Keep track of pwm-related backlight hooks separately

2020-12-04 Thread Lyude Paul
Currently, every different type of backlight hook that i915 supports is pretty straight forward - you have a backlight, probably through PWM (but maybe DPCD), with a single set of platform-specific hooks that are used for controlling it. HDR backlights, in particular VESA and Intel's HDR backlight

[PATCH v3 5/9] drm/i915/dp: Rename eDP VESA backlight interface functions

2020-12-04 Thread Lyude Paul
Since we're about to add support for a second type of backlight control interface over DP AUX (specifically, Intel's proprietary HDR backlight controls) let's rename all of the current backlight hooks we have for vesa to make it clear that they're specific to the VESA interface and not Intel's. v3

[PATCH v3 6/9] drm/i915/dp: Add register definitions for Intel HDR backlight interface

2020-12-04 Thread Lyude Paul
No functional changes yet, this just adds definitions for all of the known DPCD registers used by Intel's HDR backlight interface. Since we'll only ever use this in i915, we just define them in intel_dp_aux_backlight.c Reviewed-by: Rodrigo Vivi Signed-off-by: Lyude Paul Cc: thay...@noraisin.net

[PATCH v3 7/9] drm/i915/dp: Enable Intel's HDR backlight interface (only SDR for now)

2020-12-04 Thread Lyude Paul
So-recently a bunch of laptops on the market have started using DPCD backlight controls instead of the traditional DDI backlight controls. Originally we thought we had this handled by adding VESA backlight control support to i915, but the story ended up being a lot more complicated then that. Simp

[PATCH v3 9/9] drm/dp: Revert "drm/dp: Introduce EDID-based quirks"

2020-12-04 Thread Lyude Paul
This reverts commit 0883ce8146ed6074c76399f4e70dbed788582e12. Originally these quirks were added because of the issues with using the eDP backlight interfaces on certain laptop panels, which made it impossible to properly probe for DPCD backlight support without having a whitelist for panels that w

[PATCH v3 8/9] drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight

2020-12-04 Thread Lyude Paul
Since we now support controlling panel backlights through DPCD using both the standard VESA interface, and Intel's proprietary HDR backlight interface, we should allow the user to be able to explicitly choose between one or the other in the event that we're wrong about panels reliably reporting sup

Re: [PATCH 2/2] drm: automatic legacy gamma support

2020-12-04 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Thu, Dec 03, 2020 at 01:48:45PM +0200, Tomi Valkeinen wrote: > To support legacy gamma ioctls the drivers need to set > drm_crtc_funcs.gamma_set either to a custom implementation or to > drm_atomic_helper_legacy_gamma_set. Most of the atomic drivers do the > l

[PATCH v3 0/4] tpm_tis: Detect interrupt storms

2020-12-04 Thread Jerry Snitselaar
This patchset is an attempt to try and catch tpm_tis devices that have interrupt storm issues, disable the interrupt, and use polling. In 2016 the tpm_tis interrupt code was accidently disabled, and polling was just being used. When we initially tried to enable interrupts again there were some repo

[PATCH v3 3/4] tpm_tis: Disable interrupts if interrupt storm detected

2020-12-04 Thread Jerry Snitselaar
When enabling the interrupt code for the tpm_tis driver we have noticed some systems have a bios issue causing an interrupt storm to occur. The issue isn't limited to a single tpm or system manufacturer so keeping a denylist of systems with the issue isn't optimal. Instead try to detect the problem

[PATCH v3 2/4] drm/i915/pmu: Use kstat_irqs to get interrupt count

2020-12-04 Thread Jerry Snitselaar
Now that kstat_irqs is exported, get rid of count_interrupts in i915_pmu.c Cc: Thomas Gleixner Cc: Jani Nikula Cc: Rodrigo Vivi Cc: David Airlie Cc: Daniel Vetter Cc: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: Jarkko Sakkinen Cc: Jason Gunthorpe Cc: Peter Huewe

[PATCH v3 4/4] tpm_tis: Disable Interrupts on the ThinkPad L490

2020-12-04 Thread Jerry Snitselaar
The interrupt storm detection code detects the issue on the ThinkPad T490s, but the L490 still hangs at initialization. So swap out the T490s for the L490 in the dmi check. Cc: Jarkko Sakkinen Cc: Jason Gunthorpe Cc: Peter Huewe Cc: James Bottomley Cc: Matthew Garrett Cc: Hans de Goede Signe

[PATCH v3 1/4] irq: export kstat_irqs

2020-12-04 Thread Jerry Snitselaar
To try and detect potential interrupt storms that have been occurring with tpm_tis devices it was suggested to use kstat_irqs() to get the number of interrupts. Since tpm_tis can be built as a module it needs kstat_irqs exported. Reported-by: kernel test robot Cc: Thomas Gleixner Cc: Jarkko Sakk

<    1   2