Re: [PATCH v2] drm/atomic: add ATOMIC_AMEND flag to the Atomic IOCTL.

2018-12-12 Thread Tomasz Figa
Hi Helen, On Sat, Nov 24, 2018 at 6:54 AM Helen Koike wrote: > > This flag tells core to jump ahead the queued update if the conditions > in drm_atomic_async_check() are met. That means we are only able to do an > async update if no modeset is pending and update for the same plane is > not

[Bug 201273] Fatal error during GPU init amdgpu RX560

2018-12-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201273 --- Comment #19 from quirin.blae...@freenet.de --- Created attachment 279983 --> https://bugzilla.kernel.org/attachment.cgi?id=279983=edit dmesg lsmod additional infos Error message returned. v4.19.7 no patches Archive contains dmesg and

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

2018-12-12 Thread Ville Syrjälä
On Wed, Dec 12, 2018 at 04:32:02PM -0800, Dhinakaran Pandiyan wrote: > On Tue, 2018-11-20 at 18:13 +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Fill out the AVI infoframe quantization range bits using > > drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI encoder as well. > > > >

[PATCH AUTOSEL 4.4 05/23] drm/msm: Grab a vblank reference when waiting for commit_done

2018-12-12 Thread Sasha Levin
From: Sean Paul [ Upstream commit 3b712e43e3876b42b38321ecf790a1f5fe59c834 ] Similar to the atomic helpers, we should enable vblank while we're waiting for the commit to finish. DPU needs this, MDP5 seems to work fine without it. Reviewed-by: Abhinav Kumar Signed-off-by: Sean Paul

[PATCH AUTOSEL 4.9 28/34] drm/ast: Fix connector leak during driver unload

2018-12-12 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit e594a5e349ddbfdaca1951bb3f8d72f3f1660d73 ] When unloading the ast driver, a warning message is printed by drm_mode_config_cleanup() because a reference is still held to one of the drm_connector structs. Correct this by calling drm_crtc_force_disable_all() in

[PATCH AUTOSEL 4.9 05/34] drm/msm: Grab a vblank reference when waiting for commit_done

2018-12-12 Thread Sasha Levin
From: Sean Paul [ Upstream commit 3b712e43e3876b42b38321ecf790a1f5fe59c834 ] Similar to the atomic helpers, we should enable vblank while we're waiting for the commit to finish. DPU needs this, MDP5 seems to work fine without it. Reviewed-by: Abhinav Kumar Signed-off-by: Sean Paul

[PATCH AUTOSEL 4.14 32/41] drm/ast: Fix connector leak during driver unload

2018-12-12 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit e594a5e349ddbfdaca1951bb3f8d72f3f1660d73 ] When unloading the ast driver, a warning message is printed by drm_mode_config_cleanup() because a reference is still held to one of the drm_connector structs. Correct this by calling drm_crtc_force_disable_all() in

[PATCH AUTOSEL 4.14 17/41] drm/msm: Fix error return checking

2018-12-12 Thread Sasha Levin
From: Wen Yang [ Upstream commit 098336deb946f37a70afc0979af388b615c378bf ] The error checks on ret for a negative error return always fails because the return value of iommu_map_sg() is unsigned and can never be negative. Detected with Coccinelle: drivers/gpu/drm/msm/msm_iommu.c:69:9-12:

[PATCH AUTOSEL 4.14 06/41] drm/msm: Grab a vblank reference when waiting for commit_done

2018-12-12 Thread Sasha Levin
From: Sean Paul [ Upstream commit 3b712e43e3876b42b38321ecf790a1f5fe59c834 ] Similar to the atomic helpers, we should enable vblank while we're waiting for the commit to finish. DPU needs this, MDP5 seems to work fine without it. Reviewed-by: Abhinav Kumar Signed-off-by: Sean Paul

[PATCH AUTOSEL 4.19 62/73] drm/ast: Fix connector leak during driver unload

2018-12-12 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit e594a5e349ddbfdaca1951bb3f8d72f3f1660d73 ] When unloading the ast driver, a warning message is printed by drm_mode_config_cleanup() because a reference is still held to one of the drm_connector structs. Correct this by calling drm_crtc_force_disable_all() in

[PATCH AUTOSEL 4.19 59/73] drm/amdgpu/vcn: Update vcn.cur_state during suspend

2018-12-12 Thread Sasha Levin
From: James Zhu [ Upstream commit 0a9b89b2e2e7b6d90f81ddc47e489be1043e01b1 ] Replace vcn_v1_0_stop with vcn_v1_0_set_powergating_state during suspend, to keep adev->vcn.cur_state update. It will fix VCN S3 hung issue. Signed-off-by: James Zhu Reviewed-by: Leo Liu Signed-off-by: Alex Deucher

[PATCH AUTOSEL 4.19 36/73] drm/amd/powerplay: issue pre-display settings for display change event

2018-12-12 Thread Sasha Levin
From: Evan Quan [ Upstream commit 10cb3e6b63bf4266a5198813526fdd7259ffb8be ] For display config change event only, pre-display config settings are needed. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 35/73] drm/msm: Fix error return checking

2018-12-12 Thread Sasha Levin
From: Wen Yang [ Upstream commit 098336deb946f37a70afc0979af388b615c378bf ] The error checks on ret for a negative error return always fails because the return value of iommu_map_sg() is unsigned and can never be negative. Detected with Coccinelle: drivers/gpu/drm/msm/msm_iommu.c:69:9-12:

[PATCH AUTOSEL 4.19 32/73] drm/msm/hdmi: Enable HPD after HDMI IRQ is set up

2018-12-12 Thread Sasha Levin
From: Todor Tomov [ Upstream commit ee4456359640defe3f51cc6b728bfce4bc444c9e ] SoCs that contain MDP5 have a top level wrapper called MDSS that manages locks, power and irq for the sub-blocks within it. Irq for HDMI is also routed through the MDSS. Shortly after the Hot Plug Detection (HPD)

[PATCH AUTOSEL 4.19 33/73] drm/msm: dpu: Don't set legacy plane->crtc pointer

2018-12-12 Thread Sasha Levin
From: Sean Paul [ Upstream commit 081679c51ef2fd7b23cf9ddb7d775b17f75de18c ] It causes a WARN in drm_atomic_get_plane_state(), and is not used by atomic (or dpu). Signed-off-by: Sean Paul Reviewed-by: Daniel Vetter Signed-off-by: Rob Clark Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 34/73] drm/msm: dpu: Fix "WARNING: invalid free of devm_ allocated data"

2018-12-12 Thread Sasha Levin
From: YueHaibing [ Upstream commit ce25aa3ee6939d83979cccf7adc5737cba9a0cb7 ] 'dpu_enc' is a member of 'drm_enc' And 'drm_enc' got allocated with devm_kzalloc in dpu_encoder_init. This gives this error message: ./drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:459:1-6: WARNING: invalid free of

[PATCH AUTOSEL 4.19 18/73] drm/amdgpu: wait for IB test on first device open

2018-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit 3bfa8897e4d08f822d1d58cf6cbbffbccef82e08 ] Instead of delaying that to the first query. Otherwise we could try to use the SDMA for VM updates before the IB tests are done. Signed-off-by: Christian König Reviewed-by: Chunming Zhou Reviewed-by: Junwei

[PATCH AUTOSEL 4.19 17/73] drm/ttm: fix LRU handling in ttm_buffer_object_transfer

2018-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit d6e820fcd4cf08b11d291a1dd7bbd0636914647c ] We need to set the NO_EVICT flag on the ghost object or otherwise we are adding it to the LRU. When it is added to the LRU we can run into a race between destroying and evicting it again. Signed-off-by:

[PATCH AUTOSEL 4.19 14/73] drm/msm: fix handling of cmdstream offset

2018-12-12 Thread Sasha Levin
From: Rob Clark [ Upstream commit 47e7f506ee6590ceb2efa1f08aca7f9f2ee5c1d3 ] Userspace hasn't used submit cmds with submit_offset != 0 for a while, but this starts cropping up again with cmdstream sub-buffer-allocation in libdrm_freedreno. Doesn't do much good to increment the buf ptr before

[PATCH AUTOSEL 4.19 16/73] drm/msm: Grab a vblank reference when waiting for commit_done

2018-12-12 Thread Sasha Levin
From: Sean Paul [ Upstream commit 3b712e43e3876b42b38321ecf790a1f5fe59c834 ] Similar to the atomic helpers, we should enable vblank while we're waiting for the commit to finish. DPU needs this, MDP5 seems to work fine without it. Reviewed-by: Abhinav Kumar Signed-off-by: Sean Paul

[PATCH AUTOSEL 4.19 10/73] drm/amd/display: Fix 6x4K displays light-up on Vega20 (v2)

2018-12-12 Thread Sasha Levin
From: Roman Li [ Upstream commit c679fd55b1ba903c2a770127edbf6aef6f27 ] [Why] More than 4x4K didn't lightup on Vega20 due to low dcfclk value. Powerplay expects valid min requirement for dcfclk from DC. [How] Update min_dcfclock_khz based on min_engine_clock value. v2: backport to 4.20

[PATCH AUTOSEL 4.19 15/73] drm/msm/dsi: configure VCO rate for 10nm PLL driver

2018-12-12 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 8531f0587f5c9e1a74cd9543a97617349f5e0706 ] Currenty the VCO rate in the 10nm PLL driver relies on the parent rate which is not configured. Configure the VCO rate to 19.2 Mhz as required by the 10nm PLL driver. Signed-off-by: Abhinav Kumar Signed-off-by:

[PATCH AUTOSEL 4.19 13/73] drm/msm/gpu: Fix a couple memory leaks in debugfs

2018-12-12 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 51270de91412b819f654b849db3bf92dac0a0855 ] The msm_gpu_open() function should free "show_priv" on error or it causes static checker warnings. Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state") Signed-off-by: Dan

[PATCH AUTOSEL 4.19 12/73] drm/msm: Fix task dump in gpu recovery

2018-12-12 Thread Sasha Levin
From: Sharat Masetty [ Upstream commit 482f96324a4e08818db7d75bb12beaaea6c9561d ] The current recovery code gets a pointer to the task struct and does a few things all within the rcu_read_lock. This puts constraints on the types of gfp flags that can be used within the rcu lock. This patch

[PATCH v9 33/39] misc/mei/hdcp: Enabling the HDCP authentication

2018-12-12 Thread Ramalingam C
Request to ME to configure a port as authenticated. On Success, ME FW will mark the port as authenticated and provides HDCP cipher with the encryption keys. Enabling the Authentication can be requested once all stages of HDCP2.2 authentication is completed by interacting with ME FW. Only after

[PATCH v9 34/39] misc/mei/hdcp: Closing wired HDCP2.2 Tx Session

2018-12-12 Thread Ramalingam C
Request the ME to terminate the HDCP2.2 session for a port. On Success, ME FW will mark the intel port as Deauthenticated and terminate the wired HDCP2.2 Tx session started due to the cmd WIRED_INITIATE_HDCP2_SESSION. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant

[PATCH v9 24/39] misc/mei/hdcp: Initiate Wired HDCP2.2 Tx Session

2018-12-12 Thread Ramalingam C
Request ME FW to start the HDCP2.2 session for an intel port. Prepares payloads for command WIRED_INITIATE_HDCP2_SESSION and sends to ME FW. On Success, ME FW will start a HDCP2.2 session for the port and provides the content for HDCP2.2 AKE_Init message. v2: Rebased. v3: cldev is add as a

[PATCH v9 28/39] misc/mei/hdcp: Initiate Locality check

2018-12-12 Thread Ramalingam C
Requests ME to start the second stage of HDCP2.2 authentication, called Locality Check. On Success, ME FW will provide LC_Init message to send to hdcp sink. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant comments and cast are removed [Tomas] v4: %zd used for ssize_t

[PATCH v9 37/39] drm/i915: Fix KBL HDCP2.2 encrypt status signalling

2018-12-12 Thread Ramalingam C
Implement the required WA sequence for KBL to fix the incorrect positioning of the window of oppurtunity and enc_en signalling. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH v9 39/39] FOR_TESTING_ONLY: debugfs: Excluding the LSPCon for HDCP1.4

2018-12-12 Thread Ramalingam C
Just excluding the LSPCon HDMI ports from the HDCP1.4 testing. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/i915_debugfs.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index

[PATCH v9 21/39] mei: bus: export to_mei_cl_device for mei client device drivers

2018-12-12 Thread Ramalingam C
From: Tomas Winkler Export to_mei_cl_device macro, it is needed also in mei client drivers. Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 1 - include/linux/mei_cl_bus.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/bus.c

[PATCH v9 32/39] misc/mei/hdcp: Verify M_prime

2018-12-12 Thread Ramalingam C
Request to ME to verify the M_Prime received from the HDCP sink. ME FW will calculate the M and compare with M_prime received as part of RepeaterAuth_Stream_Ready, which is HDCP2.2 protocol msg. On successful completion of this stage, downstream propagation of the stream management info is

[PATCH v9 31/39] misc/mei/hdcp: Repeater topology verification and ack

2018-12-12 Thread Ramalingam C
Request ME to verify the downstream topology information received. ME FW will validate the Repeaters receiver id list and downstream topology. On Success ME FW will provide the Least Significant 128bits of VPrime, which forms the repeater ack. v2: Rebased. v3: cldev is passed as first

[PATCH v9 36/39] drm/i915: Commit CP without modeset

2018-12-12 Thread Ramalingam C
Commits the content protection change of a connector, without crtc modeset. This improves the user experience. Originally proposed by Sean Paul at v3 of HDCP1.4 framework https://patchwork.freedesktop.org/patch/191759/. For some reason this was dropped, but needed for the proper functionality of

[PATCH v9 30/39] misc/mei/hdcp: Prepare Session Key

2018-12-12 Thread Ramalingam C
Request to ME to prepare the encrypted session key. On Success, ME provides Encrypted session key. Function populates the HDCP2.2 authentication msg SKE_Send_Eks. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant comments and cast are removed [Tomas] v4: %zd for ssize_t

[PATCH v9 26/39] misc/mei/hdcp: Verify H_prime

2018-12-12 Thread Ramalingam C
Requests for the verification of AKE_Send_H_prime. ME will calculate the H and comparing it with received H_Prime. The result will be returned as status. Here AKE_Send_H_prime is a HDCP2.2 Authentication msg. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant comments and

[PATCH v9 35/39] misc/mei/hdcp: Component framework for I915 Interface

2018-12-12 Thread Ramalingam C
Mei hdcp driver is designed as component slave for the I915 component master. v2: Rebased. v3: Notifier chain is adopted for cldev state update [Tomas] v4: Made static dummy functions as inline in mei_hdcp.h API for polling client device status IS_ENABLED used in header, for config status

[PATCH v9 25/39] misc/mei/hdcp: Verify Receiver Cert and prepare km

2018-12-12 Thread Ramalingam C
Requests for verification for receiver certification and also the preparation for next AKE auth message with km. On Success ME FW validate the HDCP2.2 receivers certificate and do the revocation check on the receiver ID. AKE_Stored_Km will be prepared if the receiver is already paired, else

[PATCH v9 38/39] FOR_TEST: i915/Kconfig: Select mei_hdcp by I915

2018-12-12 Thread Ramalingam C
FOR TESTING PURPOSE ONLY. By default INTEL_MEI_HDCP is set to y. This patch is created to test the interface between I915 and MEI_HDCP. Signed-off-by: Ramalingam C --- drivers/misc/mei/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/mei/Kconfig

[PATCH v9 29/39] misc/mei/hdcp: Verify L_prime

2018-12-12 Thread Ramalingam C
Request to ME to verify the LPrime received from HDCP sink. On Success, ME FW will verify the received Lprime by calculating and comparing with L. This represents the completion of Locality Check. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant comments and cast are

[PATCH v9 27/39] misc/mei/hdcp: Store the HDCP Pairing info

2018-12-12 Thread Ramalingam C
Provides Pairing info to ME to store. Pairing is a process to fast track the subsequent authentication with the same HDCP sink. On Success, received HDCP pairing info is stored in non-volatile memory of ME. v2: Rebased. v3: cldev is passed as first parameter [Tomas] Redundant comments and

[PATCH v9 14/39] drm/i915: Implement HDCP2.2 link integrity check

2018-12-12 Thread Ramalingam C
Implements the link integrity check once in 500mSec. Once encryption is enabled, an ongoing Link Integrity Check is performed by the HDCP Receiver to check that cipher synchronization is maintained between the HDCP Transmitter and the HDCP Receiver. On the detection of synchronization lost, the

[PATCH v9 20/39] mei: bus: whitelist hdcp client

2018-12-12 Thread Ramalingam C
From: Tomas Winkler Whitelist HDCP client for in kernel drm use v2: Rebased. Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus-fixup.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/misc/mei/bus-fixup.c b/drivers/misc/mei/bus-fixup.c index

[PATCH v9 19/39] drm/i915: Add HDCP2.2 support for HDMI connectors

2018-12-12 Thread Ramalingam C
On HDMI connector init, intel_hdcp_init is passed with a flag for hdcp2.2 support based on the platform capability. v2: Rebased. v3: Collected the reviewed-by received. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 3 ++- 1 file changed, 2

[PATCH v9 16/39] drm/i915: Implement the HDCP2.2 support for DP

2018-12-12 Thread Ramalingam C
Implements the DP adaptation specific HDCP2.2 functions. These functions perform the DPCD read and write for communicating the HDCP2.2 auth message back and forth. v2: wait for cp_irq is merged with this patch. Rebased. v3: wait_queue is used for wait for cp_irq [Chris Wilson] v4: Style

[PATCH v9 12/39] drm/i915: Implement HDCP2.2 repeater authentication

2018-12-12 Thread Ramalingam C
Implements the HDCP2.2 repeaters authentication steps such as verifying the downstream topology and sending stream management information. v2: Rebased. v3: -EINVAL is returned for topology error and rollover scenario. Endianness conversion func from drm_hdcp.h is used [Uma] v4: Rebased as

[PATCH v9 17/39] drm/i915: Implement the HDCP2.2 support for HDMI

2018-12-12 Thread Ramalingam C
Implements the HDMI adaptation specific HDCP2.2 operations. Basically these are DDC read and write for authenticating through HDCP2.2 messages. v2: Rebased. v3: No more special handling of Gmbus burst read for AKE_SEND_CERT. Style fixed with few naming. [Uma] %s/PARING/PAIRING v4: msg_sz

[PATCH v9 11/39] drm: helper functions for hdcp2 seq_num to from u32

2018-12-12 Thread Ramalingam C
Library functions for endianness are aligned for 16/32/64 bits. But hdcp sequence numbers are 24bits(big endian). So for their conversion to and from u32 helper functions are developed. Signed-off-by: Ramalingam C --- include/drm/drm_hdcp.h | 18 ++ 1 file changed, 18

[PATCH v9 22/39] misc/mei/hdcp: Client driver for HDCP application

2018-12-12 Thread Ramalingam C
ME FW is contributes a vital role in HDCP2.2 authentication. HDCP2.2 driver needs to communicate to ME FW for each step of the HDCP2.2 authentication. ME FW prepare and HDCP2.2 authentication parameters and encrypt them as per spec. With such parameter Driver prepares HDCP2.2 auth messages and

[PATCH v9 23/39] misc/mei/hdcp: Define ME FW interface for HDCP2.2

2018-12-12 Thread Ramalingam C
Defines the HDCP specific ME FW interfaces such as Request CMDs, payload structure for CMDs and their response status codes. This patch defines payload size(Excluding the Header)for each WIRED HDCP2.2 CMDs. v2: Rebased. v3: Extra comments are removed. v4: %s/\/\*\*/\/\* v5: Extra lines are

[PATCH v9 15/39] drm/i915: Handle HDCP2.2 downstream topology change

2018-12-12 Thread Ramalingam C
When repeater notifies a downstream topology change, this patch reauthenticate the repeater alone without disabling the hdcp encryption. If that fails then complete reauthentication is executed. v2: Rebased. v3: Typo in commit msg is fixed [Uma] v4: Rebased as part of patch reordering.

[PATCH v9 18/39] drm/i915: Add HDCP2.2 support for DP connectors

2018-12-12 Thread Ramalingam C
On DP connector init, intel_hdcp_init is passed with a flag for hdcp2.2 support based on the platform capability. v2: Rebased. v3: Collected the reviewed-by received. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1

[PATCH v9 13/39] drm: HDCP2.2 link check related constants

2018-12-12 Thread Ramalingam C
Enums and macros are defined for HDCP2.2 link check. Signed-off-by: Ramalingam C --- include/drm/drm_hdcp.h | 8 1 file changed, 8 insertions(+) diff --git a/include/drm/drm_hdcp.h b/include/drm/drm_hdcp.h index d8093ecf3ddc..21a128e7020a 100644 --- a/include/drm/drm_hdcp.h +++

[PATCH v9 09/39] drm/i915: Enable and Disable of HDCP2.2

2018-12-12 Thread Ramalingam C
Considering that HDCP2.2 is more secure than HDCP1.4, When a setup supports HDCP2.2 and HDCP1.4, HDCP2.2 will be enabled. When HDCP2.2 enabling fails and HDCP1.4 is supported, HDCP1.4 is enabled. This change implements a sequence of enabling and disabling of HDCP2.2 authentication and HDCP2.2

[PATCH v9 10/39] drm/i915: Implement HDCP2.2 receiver authentication

2018-12-12 Thread Ramalingam C
Implements HDCP2.2 authentication for hdcp2.2 receivers, with following steps: Authentication and Key exchange (AKE). Locality Check (LC). Session Key Exchange(SKE). DP Errata for stream type configuration for receivers. At AKE, the HDCP Receiver’s public key

[PATCH v9 07/39] drm/i915: MEI interface definition

2018-12-12 Thread Ramalingam C
Defining the mei-i915 interface functions and initialization of the interface. v2: Adjust to the new interface changes. [Tomas] Added further debug logs for the failures at MEI i/f. port in hdcp_port data is equipped to handle -ve values. v3: mei comp is matched for global i915 comp

[PATCH v9 08/39] drm/i915: hdcp1.4 CP_IRQ handling and SW encryption tracking

2018-12-12 Thread Ramalingam C
"hdcp_encrypted" flag is defined to denote the HDCP1.4 encryption status. This SW tracking is used to determine the need for real hdcp1.4 disable and hdcp_check_link upon CP_IRQ. On CP_IRQ we filter the CP_IRQ related to the states like Link failure and reauthentication req etc and handle them in

[PATCH v9 03/39] drivers/base: use a worker for sysfs unbind

2018-12-12 Thread Ramalingam C
From: Daniel Vetter Drivers might want to remove some sysfs files, which needs the same locks and ends up angering lockdep. Relevant snippet of the stack trace: kernfs_remove_by_name_ns+0x3b/0x80 bus_remove_driver+0x92/0xa0 acpi_video_unregister+0x24/0x40 i915_driver_unload+0x42/0x130

[PATCH v9 01/39] drm/i915: Gathering the HDCP1.4 routines together

2018-12-12 Thread Ramalingam C
All HDCP1.4 routines are gathered together, followed by the generic functions those can be extended for HDCP2.2 too. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 118 +++--- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git

[PATCH v9 06/39] drm/i915: Initialize HDCP2.2

2018-12-12 Thread Ramalingam C
Add the HDCP2.2 initialization to the existing HDCP1.4 stack. v2: mei interface handle is protected with mutex. [Chris Wilson] v3: Notifiers are used for the mei interface state. v4: Poll for mei client device state Error msg for out of mem [Uma] Inline req for init function removed

[PATCH v9 04/39] component: alloc component_match without any comp to match

2018-12-12 Thread Ramalingam C
If all the components associated to a component master is not added to the component framework due to the HW capability or Kconfig selection, component_match will be NULL at component_master_add_with_match(). To avoid this, component_match_alloc() is added to the framework, to allcoate the struct

[PATCH v9 05/39] drm/i915: component master at i915 driver load

2018-12-12 Thread Ramalingam C
A generic component master is added to hold the i915 registration until all required kernel modules are up and active. This is achieved through following steps: - moving the i915 driver registration to the component master's bind call - all required kernel modules will add one component

[PATCH v9 02/39] drm: header for i915 - MEI_HDCP interface

2018-12-12 Thread Ramalingam C
Header defines the interface for the I915 and MEI_HDCP drivers. Signed-off-by: Ramalingam C --- include/drm/i915_mei_hdcp_interface.h | 132 ++ 1 file changed, 132 insertions(+) create mode 100644 include/drm/i915_mei_hdcp_interface.h diff --git

[PATCH v9 00/39] drm/i915: Implement HDCP2.2

2018-12-12 Thread Ramalingam C
This series enables the HDCP2.2 for I915. The sequence for HDCP2.2 authentication and encryption is implemented as a generic flow between HDMI and DP. Encoder specific implementations are moved into hdcp_shim. Intel HWs supports HDCP2.2 through ME FW. Hence this series introduces a client driver

Re: [PATCH] drm: add capability DRM_CAP_ASYNC_UPDATE

2018-12-12 Thread Tomasz Figa
On Thu, Dec 6, 2018 at 1:12 AM Helen Koike wrote: > > Hi Ville > > On 11/27/18 11:34 AM, Ville Syrjälä wrote: > > On Fri, Nov 23, 2018 at 07:53:26PM -0200, Helen Koike wrote: > >> Allow userspace to identify if the driver supports async update. > > > > And what exactly is an "async update"? > > I

Re: [PATCH v8 05/35] drm/i915: MEI interface definition

2018-12-12 Thread C, Ramalingam
On 12/12/2018 4:34 PM, C, Ramalingam wrote: On 12/12/2018 4:08 PM, Daniel Vetter wrote: On Wed, Dec 12, 2018 at 02:28:29PM +0530, C, Ramalingam wrote: On 12/7/2018 7:59 PM, Daniel Vetter wrote: On Fri, Dec 07, 2018 at 11:22:44AM +0530, C, Ramalingam wrote: On 12/6/2018 3:53 PM, Daniel

Re: [PATCH] drm/sun4i: fix HSYNC and VSYNC polarity

2018-12-12 Thread Jonathan Liu
Hi Giulio, On Wed, 12 Dec 2018 at 04:20, Giulio Benetti wrote: > > Hi Jonathan, > > Il 11/12/2018 11:49, Jonathan Liu ha scritto: > > Hi Giulio, > > > > On Thu, 6 Dec 2018 at 22:00, Giulio Benetti > > wrote: > >> > >> Hi Jonathan, > >> > >> Il 06/12/2018 08:29, Jonathan Liu ha scritto: > >>> Hi

Re: [PATCH] drm/sun4i: fix HSYNC and VSYNC polarity

2018-12-12 Thread Jonathan Liu
Hi Giulio, On Wed, 12 Dec 2018 at 04:39, Giulio Benetti wrote: > > Forgot to ask you, > > Il 11/12/2018 18:20, Giulio Benetti ha scritto: > > Hi Jonathan, > > > > Il 11/12/2018 11:49, Jonathan Liu ha scritto: > >> Hi Giulio, > >> > >> On Thu, 6 Dec 2018 at 22:00, Giulio Benetti > >> wrote: >

Re: [GIT PULL] mediatek drm fixes for 4.20

2018-12-12 Thread CK Hu
Hi, Dave: On Thu, 2018-12-13 at 10:17 +1000, Dave Airlie wrote: > On Thu, 13 Dec 2018 at 07:32, Dave Airlie wrote: > > > > On Mon, 10 Dec 2018 at 12:13, CK Hu wrote: > > > > > > Hi, Dave: > > > > > > Here is one fix. > > > > > > Regards, > > > CK > > > > > > The following changes since commit >

[Bug 108862] OpenGL CTS KHR-GL31.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue failed

2018-12-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108862 Chen Xi changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 108876] OpenGL CTS glCreateShader() call failed.: glGetError() returned GL_INVALID_ENUM at gl3cCommonBugsTests.cpp:5590

2018-12-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108876 Chen Xi changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Intel-gfx] [PATCH v2] drm/i915: correct the pitch check for NV12 framebuffer

2018-12-12 Thread Hwang, Dongseong
On Wed, Dec 12, 2018 at 1:15 PM Ville Syrjälä wrote: > > On Wed, Dec 12, 2018 at 09:33:49PM +0100, Daniel Vetter wrote: > > On Wed, Dec 12, 2018 at 9:24 PM Ville Syrjälä > > wrote: > > > > > > On Tue, Dec 11, 2018 at 04:39:05PM -0800, Dongseong Hwang wrote: > > > > framebuffer for NV12 requires

Re: [PATCH 0/3] drm/exynos: add support for dynamic zpos in DECON and FIMD

2018-12-12 Thread Inki Dae
18. 12. 12. 오후 5:43에 Andrzej Hajda 이(가) 쓴 글: > On 12.12.2018 00:26, Inki Dae wrote: >> >> 18. 12. 11. 오후 5:36에 Andrzej Hajda 이(가) 쓴 글: >>> On 11.12.2018 09:01, Inki Dae wrote: 18. 12. 11. 오후 4:49에 Andrzej Hajda 이(가) 쓴 글: > On 11.12.2018 00:45, Inki Dae wrote: >> Hi Andrzej, >>

[Bug 105251] [Vega10] GPU lockup on boot: VMC page fault

2018-12-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105251 --- Comment #61 from Benjamin Hodgetts --- Created attachment 142797 --> https://bugs.freedesktop.org/attachment.cgi?id=142797=edit New Error Since 4.19.X Ok, so some time between my last report and now (started happening since

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

2018-12-12 Thread Dhinakaran Pandiyan
On Tue, 2018-11-20 at 18:13 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Fill out the AVI infoframe quantization range bits using > drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI encoder as well. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_sdvo.c | 19

Re: [GIT PULL] mediatek drm fixes for 4.20

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 07:32, Dave Airlie wrote: > > On Mon, 10 Dec 2018 at 12:13, CK Hu wrote: > > > > Hi, Dave: > > > > Here is one fix. > > > > Regards, > > CK > > > > The following changes since commit > > 651022382c7f8da46cb4872a545ee1da6d097d2a: > > > > Linux 4.20-rc1 (2018-11-04

Re: [pull] amdgpu drm-next-4.21

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 07:13, Alex Deucher wrote: > > Hi Dave, > > Updates for 4.21: > - Powerplay updates for newer polaris variants > - Add cursor plane update fast path > - Enable gpu reset by default on CI parts > - Fix config with KFD/HSA not enabled > - Misc bug fixes > Either this or the

Re: [PATCH 0/3] drm/exynos: add support for dynamic zpos in DECON and FIMD

2018-12-12 Thread Inki Dae
18. 12. 12. 오후 5:30에 Andrzej Hajda 이(가) 쓴 글: > On 12.12.2018 00:48, Inki Dae wrote: >> >> 18. 12. 11. 오후 10:20에 Andrzej Hajda 이(가) 쓴 글: >>> Hi again, >>> >>> It seems I have missed two questions: >>> >>> On 11.12.2018 09:36, Andrzej Hajda wrote: On 11.12.2018 09:01, Inki Dae wrote: >

Re: [PATCH] [RFC] MAINTAINERS: Daniel for drm co-maintainer

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 01:45, Sean Paul wrote: > > On Mon, Dec 10, 2018 at 11:30:01AM +0100, Daniel Vetter wrote: > > lkml and Linus gained a CoC, and it's serious this time. Which means > > my no 1 reason for declining to officially step up as drm maintainer > > is gone, and I didn't find any

[pull] drm/msm: msm-next for 4.21

2018-12-12 Thread Rob Clark
Hi Dave, A little bigger this time, but still negative diffstat. This time around, seeing some love for some older hw: - a2xx gpu support for apq8060 (hp touchpad) and imx5 (headless gpu-only mode) - a2xx gpummu support (a2xx was pre-iommu) - mdp4 display support for apq8060/touchpad For

Re: [GIT PULL] mediatek drm fixes for 4.20

2018-12-12 Thread Dave Airlie
On Mon, 10 Dec 2018 at 12:13, CK Hu wrote: > > Hi, Dave: > > Here is one fix. > > Regards, > CK > > The following changes since commit > 651022382c7f8da46cb4872a545ee1da6d097d2a: > > Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) > > are available in the Git repository at: > >

[Bug 106175] amdgpu.dc=1 shows performance issues with Xorg compositors when moving windows

2018-12-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106175 tempel.jul...@gmail.com changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[PATCH v6 0/2] arm64: dts: Add sdm845 GPU/GMU and SMMU

2018-12-12 Thread Jordan Crouse
Now that more of the sdm845 bindings are headed upstream this a refresh of of https://patchwork.freedesktop.org/series/39308/ to add bindings and nodes for the GPU/GMU and GPU SMMU for sdm845. This is based on : git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git for-next with:

[PATCH v6 1/2] dt-bindings: drm/msm/a6xx: Document GMU and update GPU bindings

2018-12-12 Thread Jordan Crouse
Update the GPU bindings and document the new bindings for the GMU device found with Adreno a6xx targets. Signed-off-by: Jordan Crouse --- .../devicetree/bindings/display/msm/gmu.txt | 56 +++ .../devicetree/bindings/display/msm/gpu.txt | 41 +- 2 files changed,

[PATCH v6 2/2] arm64: dts: sdm845: Add gpu and gmu device nodes

2018-12-12 Thread Jordan Crouse
Add the nodes to describe the Adreno GPU and GMU devices. Signed-off-by: Jordan Crouse --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 123 +++ 1 file changed, 123 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index

Re: [Intel-gfx] [PATCH v2] drm/i915: correct the pitch check for NV12 framebuffer

2018-12-12 Thread Ville Syrjälä
On Wed, Dec 12, 2018 at 09:33:49PM +0100, Daniel Vetter wrote: > On Wed, Dec 12, 2018 at 9:24 PM Ville Syrjälä > wrote: > > > > On Tue, Dec 11, 2018 at 04:39:05PM -0800, Dongseong Hwang wrote: > > > framebuffer for NV12 requires the pitch to the multiplier of 4, instead > > > of the width. This

[pull] amdgpu drm-next-4.21

2018-12-12 Thread Alex Deucher
Hi Dave, Updates for 4.21: - Powerplay updates for newer polaris variants - Add cursor plane update fast path - Enable gpu reset by default on CI parts - Fix config with KFD/HSA not enabled - Misc bug fixes The following changes since commit 22666cc1481ae3814d9c7718418cc4a3aa7d90c3:

[PULL] drm-misc-fixes

2018-12-12 Thread Sean Paul
Hi Dave, One lonely patch to fix a new WARN on rockchip rk3399 chromebooks. drm-misc-fixes-2018-12-12: - rockchip: Revert change causing WARN on shutdown (Brian) Cc: Brian Norris Cheers, Sean The following changes since commit b31a3ca745a4a47ba63208d37cd50abffe58280f: drm/fb-helper: Fix

Re: [PATCH 4/5] drm/msm/dpu: Initialize supported modifiers

2018-12-12 Thread Sean Paul
On Wed, Dec 12, 2018 at 10:02:26AM -0800, Fritz Koenig wrote: > On Wed, Dec 12, 2018 at 8:12 AM Sean Paul wrote: > > > > On Tue, Dec 11, 2018 at 10:42:23AM -0800, Fritz Koenig wrote: > > > Pass list of supported modifiers to plane init. > > > > > > Signed-off-by: Fritz Koenig > > > --- > > >

Re: [Intel-gfx] [PATCH v2] drm/i915: correct the pitch check for NV12 framebuffer

2018-12-12 Thread Daniel Vetter
On Wed, Dec 12, 2018 at 9:24 PM Ville Syrjälä wrote: > > On Tue, Dec 11, 2018 at 04:39:05PM -0800, Dongseong Hwang wrote: > > framebuffer for NV12 requires the pitch to the multiplier of 4, instead > > of the width. This patch corrects it. > > > > For instance, a 480p video, whose width and pitch

[pull] amdgpu, amdkfd drm-fixes-4.20

2018-12-12 Thread Alex Deucher
Hi Dave, Fixes for 4.20: - Stability fixes for new polaris variants (e.g., RX590) - New vega pci ids - Vega20 smu fix - Ctx locking fix The following changes since commit e594a5e349ddbfdaca1951bb3f8d72f3f1660d73: drm/ast: Fix connector leak during driver unload (2018-12-06 14:12:02 +1000)

Re: [PATCH v2] drm/i915: correct the pitch check for NV12 framebuffer

2018-12-12 Thread Ville Syrjälä
On Tue, Dec 11, 2018 at 04:39:05PM -0800, Dongseong Hwang wrote: > framebuffer for NV12 requires the pitch to the multiplier of 4, instead > of the width. This patch corrects it. > > For instance, a 480p video, whose width and pitch are 854 and 896 > respectively, is excluded for NV12 plane so

[PATCH libdrm 2/2] libdrm: Use DRM_IOCTL_GET_PCIINFO on DragonFly

2018-12-12 Thread François Tigeot
It is a cleaner and less fragile way to get PCI IDs than the one currently used by local DPorts patches. Signed-off-by: François Tigeot --- xf86drm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 5ddf9366..6db1ab96 100644 --- a/xf86drm.c

[PATCH libdrm 1/2] xf86drm: implement drmParseSubsystemType for DragonFly

2018-12-12 Thread François Tigeot
Like on OpenBSD, the DragonFly BSD kernel only contains pci drm drivers. Signed-off-by: François Tigeot --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 0085bf17..5ddf9366 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -3016,7 +3016,7 @@

Re: [PATCH v5 1/2] dt-bindings: Document,qcom,adreno-gmu

2018-12-12 Thread Jordan Crouse
On Wed, Dec 12, 2018 at 11:26:46AM -0800, Doug Anderson wrote: > Hi, > > On Wed, Dec 12, 2018 at 9:31 AM Jordan Crouse wrote: > > > > Document the device tree bindings for the Adreno GMU device > > available on Adreno a6xx targets. > > > > Reviewed-by: Rob Herring > > Signed-off-by: Jordan

Re: [PATCH v5 1/2] dt-bindings: Document,qcom,adreno-gmu

2018-12-12 Thread Doug Anderson
Hi, On Wed, Dec 12, 2018 at 9:31 AM Jordan Crouse wrote: > > Document the device tree bindings for the Adreno GMU device > available on Adreno a6xx targets. > > Reviewed-by: Rob Herring > Signed-off-by: Jordan Crouse > --- > .../devicetree/bindings/display/msm/gmu.txt | 54

Re: [PATCH v5 2/2] arm64: dts: sdm845: Add gpu and gmu device nodes

2018-12-12 Thread Doug Anderson
Hi, On Wed, Dec 12, 2018 at 9:31 AM Jordan Crouse wrote: > > Add the nodes to describe the Adreno GPU and GMU devices. > > Signed-off-by: Jordan Crouse > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 123 +++ > 1 file changed, 123 insertions(+) > > diff --git

Re: [PATCH -fixes] drm/vmwgfx: Protect from excessive execbuf kernel memory allocations v2

2018-12-12 Thread Deepak Singh Rawat
Reviewed-by: Deepak Rawat On Wed, 2018-12-12 at 10:38 -0800, Thomas Hellstrom wrote: > Hi, Deepak, > > On Wed, 2018-12-12 at 10:00 -0800, Deepak Singh Rawat wrote: > > On Wed, 2018-12-12 at 15:35 +0100, Thomas Hellstrom wrote: > > > With the new validation code, a malicious user-space app

Re: [PATCH -fixes] drm/vmwgfx: Protect from excessive execbuf kernel memory allocations v2

2018-12-12 Thread Thomas Hellstrom
Hi, Deepak, On Wed, 2018-12-12 at 10:00 -0800, Deepak Singh Rawat wrote: > On Wed, 2018-12-12 at 15:35 +0100, Thomas Hellstrom wrote: > > With the new validation code, a malicious user-space app could > > potentially submit command streams with enough buffer-object and > > resource > > references

Re: [PATCH 4/5] drm/msm/dpu: Initialize supported modifiers

2018-12-12 Thread Fritz Koenig
On Wed, Dec 12, 2018 at 8:12 AM Sean Paul wrote: > > On Tue, Dec 11, 2018 at 10:42:23AM -0800, Fritz Koenig wrote: > > Pass list of supported modifiers to plane init. > > > > Signed-off-by: Fritz Koenig > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 8 +++- > > 1 file changed, 7

  1   2   >