Re: [Intel-gfx] [PATCH] drm/i915/gvt: Fix crash after request->hw_context change

2018-05-21 Thread Chris Wilson
Quoting Zhenyu Wang (2018-05-21 04:44:34) > On 2018.05.18 11:22:06 +0100, Chris Wilson wrote: > > Quoting Zhenyu Wang (2018-05-18 11:13:05) > > > When we do shadowing, workload's request might not be allocated yet, > > > so we still require shadow context's object. And when complete workload, > > >

[Intel-gfx] [PATCH v2 4/4] drm/i915: Pin the ring high

2018-05-21 Thread Chris Wilson
If we can use an unmappable ring, try to pin it out of the mappable aperture. This simple layout preference is to try and keep the mappable aperture reserved and available to handle GGTT mmapping requests from userspace without causing evictions and GPU stalls. Signed-off-by: Chris Wilson Cc: Joo

[Intel-gfx] [PATCH v2 3/4] drm/i915: Limit searching for PIN_HIGH

2018-05-21 Thread Chris Wilson
To no surprise (since we've flip-flopped over the use of PIN_HIGH a few times), doing a search by address over a pathologically fragmented address space is exceeding slow. To protect ourselves from nearly unbounded latency (think searching a million holes while under struct_mutex), limit the search

[Intel-gfx] [PATCH v2 1/4] drm/mm: Reject over-sized allocation requests early

2018-05-21 Thread Chris Wilson
As we keep an rbtree of available holes sorted by their size, we can very easily determine if there is any hole large enough that might satisfy the allocation request. This helps when dealing with a highly fragmented address space and a request for a search by address. To cache the largest size, w

[Intel-gfx] [PATCH v2 2/4] drm/mm: Add a search-by-address variant to only inspect a single hole

2018-05-21 Thread Chris Wilson
Searching for an available hole by address is slow, as there no guarantee that a hole will be available and so we must walk over all nodes in the rbtree before we determine the search was futile. In many cases, the caller doesn't strictly care for the highest available hole and was just opportunist

[Intel-gfx] [PATCH v2] drm/i915/gvt: Fix crash after request->hw_context change

2018-05-21 Thread Zhenyu Wang
When we do shadowing, workload's request might not be allocated yet, so we still require shadow context's object. And when complete workload, delay to zero workload's request pointer after used for update guest context. v2: Move request alloc earlier as already try to track shadow status depending

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gvt: Fix crash after request->hw_context change (rev2)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/gvt: Fix crash after request->hw_context change (rev2) URL : https://patchwork.freedesktop.org/series/43406/ State : warning == Summary == $ dim checkpatch origin/drm-tip 4eec44c20bac drm/i915/gvt: Fix crash after request->hw_context change -:8: WARNING:CO

Re: [Intel-gfx] [PATCH v3 32/40] drm/i915: Enable superior HDCP ver that is capable

2018-05-21 Thread Ramalingam C
On Friday 18 May 2018 06:19 PM, Shankar, Uma wrote: -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Ramalingam C Sent: Tuesday, April 3, 2018 7:28 PM To: intel-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; seanp...@chromiu

Re: [Intel-gfx] [PATCH v3 35/40] drm/i915: Check HDCP 1.4 and 2.2 link on CP_IRQ

2018-05-21 Thread Ramalingam C
On Friday 18 May 2018 09:29 PM, Shankar, Uma wrote: -Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Ramalingam C Sent: Tuesday, April 3, 2018 7:28 PM To: intel-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; seanp...@chromiu

Re: [Intel-gfx] [PATCH v2 1/5] media: cec-notifier: Get notifier by device and connector name

2018-05-21 Thread Neil Armstrong
Hi Sean, On 18/05/2018 17:48, Sean Paul wrote: > On Fri, May 18, 2018 at 03:05:00PM +0200, Neil Armstrong wrote: >> In non device-tree world, we can need to get the notifier by the driver >> name directly and eventually defer probe if not yet created. >> >> This patch adds a variant of the get fun

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gvt: Fix crash after request->hw_context change (rev2)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/gvt: Fix crash after request->hw_context change (rev2) URL : https://patchwork.freedesktop.org/series/43406/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4211 -> Patchwork_9062 = == Summary - SUCCESS == No regressions found. Exte

Re: [Intel-gfx] [PATCH v2 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-21 Thread Neil Armstrong
Hi Ville, On 18/05/2018 15:24, Ville Syrjälä wrote: > On Fri, May 18, 2018 at 03:05:01PM +0200, Neil Armstrong wrote: >> This patchs adds the cec_notifier feature to the intel_hdmi part >> of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate >> between each HDMI ports. >> T

Re: [Intel-gfx] [PATCH v3 37/40] drm/i915: Implement the HDCP2.2 support for DP

2018-05-21 Thread Ramalingam C
On Friday 18 May 2018 09:45 PM, Shankar, Uma wrote: -Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Ramalingam C Sent: Tuesday, April 3, 2018 7:28 PM To: intel-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; seanp...@chromiu

Re: [Intel-gfx] [PATCH v2 3/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-21 Thread Neil Armstrong
Hi Enric, On 18/05/2018 18:19, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:05 GMT+02:00 Neil Armstrong : >> The EC can expose a CEC bus, this patch adds the CEC related definitions >> needed by the cros-ec-cec driver. >> Having a 16 byte mkbp event size makes it possible to send CEC

Re: [Intel-gfx] [PATCH v2 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-21 Thread Neil Armstrong
Hi Enric, On 18/05/2018 17:02, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:05 GMT+02:00 Neil Armstrong : >> The Chrome OS Embedded Controller can expose a CEC bus, this patch add the > > A minor nit, there is a "consensus" on tell cros-ec as "ChromeOS > Embedded Controller" or "Chro

Re: [Intel-gfx] [PATCH v2 0/5] Add ChromeOS EC CEC Support

2018-05-21 Thread Neil Armstrong
On 18/05/2018 16:04, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:04 GMT+02:00 Neil Armstrong : >> Hi All, >> >> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support >> through it's Embedded Controller, to enable the Linux CEC Core to communicate >> with it and get

Re: [Intel-gfx] [PATCH v3 38/40] drm/i915: Implement the HDCP2.2 support for HDMI

2018-05-21 Thread Ramalingam C
On Friday 18 May 2018 09:59 PM, Shankar, Uma wrote: -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Ramalingam C Sent: Tuesday, April 3, 2018 7:28 PM To: intel-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; seanp...@chromiu

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early

2018-05-21 Thread Patchwork
== Series Details == Series: series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early URL : https://patchwork.freedesktop.org/series/43497/ State : warning == Summary == $ dim checkpatch origin/drm-tip b023636132bb drm/mm: Reject over-sized allocation requests early e

Re: [Intel-gfx] [PATCH v3 39/40] drm/i915: Add HDCP2.2 support for DP connectors

2018-05-21 Thread Ramalingam C
On Friday 18 May 2018 10:07 PM, Shankar, Uma wrote: -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Ramalingam C Sent: Tuesday, April 3, 2018 7:28 PM To: intel-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; seanp...@chromiu

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early

2018-05-21 Thread Patchwork
== Series Details == Series: series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early URL : https://patchwork.freedesktop.org/series/43497/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4211 -> Patchwork_9063 = == Summary - WARNING == Minor unkn

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gvt: Fix crash after request->hw_context change (rev2)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/gvt: Fix crash after request->hw_context change (rev2) URL : https://patchwork.freedesktop.org/series/43406/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4211_full -> Patchwork_9062_full = == Summary - WARNING == Minor unknown chang

Re: [Intel-gfx] [PATCH v2] drm/i915/gvt: Fix crash after request->hw_context change

2018-05-21 Thread Chris Wilson
Quoting Zhenyu Wang (2018-05-21 09:17:52) > When we do shadowing, workload's request might not be allocated yet, > so we still require shadow context's object. And when complete workload, > delay to zero workload's request pointer after used for update guest context. > > v2: Move request alloc ear

Re: [Intel-gfx] [PATCH v2] drm/i915/gvt: Fix crash after request->hw_context change

2018-05-21 Thread Chris Wilson
Quoting Chris Wilson (2018-05-21 10:54:57) > Quoting Zhenyu Wang (2018-05-21 09:17:52) > > When we do shadowing, workload's request might not be allocated yet, > > so we still require shadow context's object. And when complete workload, > > delay to zero workload's request pointer after used for up

Re: [Intel-gfx] [PATCH v3] drm/i915/gen11: Preempt-to-idle support in execlists.

2018-05-21 Thread Lis, Tomasz
On 2018-05-18 23:08, Daniele Ceraolo Spurio wrote: On 11/05/18 08:45, Tomasz Lis wrote: The patch adds support of preempt-to-idle requesting by setting a proper bit within Execlist Control Register, and receiving preemption result from Context Status Buffer. Preemption in previous gens re

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early

2018-05-21 Thread Patchwork
== Series Details == Series: series starting with [v2,1/4] drm/mm: Reject over-sized allocation requests early URL : https://patchwork.freedesktop.org/series/43497/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4211_full -> Patchwork_9063_full = == Summary - WARNING ==

[Intel-gfx] [PATCH] drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Mahesh Kumar
From: "Kumar, Mahesh" This patch implements new DDB allocation algorithm as per HW team recommendation. This algo takecare of scenario where we allocate less DDB for the planes with lower relative pixel rate, but they require more DDB to work. It also takes care of enabling same watermark level f

[Intel-gfx] [PATCH v3] drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits

2018-05-21 Thread Lionel Landwerlin
On Gen8+ this register is not priviledged and we want to use it in Mesa to implement a feature required by GPA called Null Hardware. The idea is to have the command parser turn 3DPRIMITIVE/GPGPU_WALKER into NOOPs. This patch just whitelists the bits that we need and that are currently not used by

[Intel-gfx] [PATCH] drm/i915/icl: fix icl_unmap/map_plls_to_ports

2018-05-21 Thread Mahesh Kumar
All connectors may not have best_encoder attached, so don't dereference encoder pointer for each connector. Fixes: c27e917e2bda (drm/i915/icl: add basic support for the ICL clocks) Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_ddi.c | 6 -- 1 file changed, 4 insertions(+), 2 del

Re: [Intel-gfx] [PATCH v4] gpu: drm: i915: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
On Thu, May 17, 2018 at 10:40 AM, Souptick Joarder wrote: > On Thu, May 17, 2018 at 12:48 AM, Chris Wilson > wrote: >> Quoting Souptick Joarder (2018-05-16 20:12:20) >>> Use new return type vm_fault_t for fault handler. For >>> now, this is just documenting that the function returns >>> a VM_FAU

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/skl+: ddb allocation algorithm optimization URL : https://patchwork.freedesktop.org/series/43508/ State : warning == Summary == $ dim checkpatch origin/drm-tip 73a56949d33f drm/i915/skl+: ddb allocation algorithm optimization -:51: CHECK:LOGICAL_CONTINUATI

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/skl+: ddb allocation algorithm optimization URL : https://patchwork.freedesktop.org/series/43508/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915/skl+: ddb allocation algorithm optimization -drivers/gpu/drm/i915/i915_drv.h:159:19

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/skl+: ddb allocation algorithm optimization URL : https://patchwork.freedesktop.org/series/43508/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9064 = == Summary - FAILURE == Serious unknown changes coming with Patc

Re: [Intel-gfx] [PATCH v3 11/40] misc/mei/hdcp: Store the HDCP Pairing info

2018-05-21 Thread Ramalingam C
Thanks Jani. I will use free form comments in v4, meanwhile i will explore the required stuff for kernel-doc and add kernel-doc entries where ever it makes sense, in upcoming versions. --Ram On Thursday 17 May 2018 01:47 PM, Jani Nikula wrote: On Thu, 17 May 2018, "C, Ramalingam" wrote: +/*

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3) URL : https://patchwork.freedesktop.org/series/43420/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9065 = == Summary - FAILURE == Serious unknown

[Intel-gfx] [PATCH v4 00/41] drm/i915: Implement HDCP2.2

2018-05-21 Thread Ramalingam C
The sequence for HDCP2.2 authentication and encryption is implemented in I915. Encoder specific implementations are moved into hdcp_shim. Intel HWs supports HDCP2.2 through ME FW. Hence this series introduces a client driver for mei bus, so that for HDCP2.2 authentication, HDCP2.2 stack in I915 ca

[Intel-gfx] [PATCH v4 01/41] drm: hdcp2.2 authentication msg definitions

2018-05-21 Thread Ramalingam C
This patch defines the hdcp2.2 protocol messages for authentication. v2: bit_fields are removed. Instead bitmasking used. [Tomas and Jani] prefix HDCP_2_2_ is added to the macros. [Tomas] v3: No Changes. v4: Style and spellings are fixed [Uma] Signed-off-by: Ramalingam C --- include/drm

[Intel-gfx] [PATCH v4 02/41] drm: HDMI and DP specific HDCP2.2 defines

2018-05-21 Thread Ramalingam C
This patch adds HDCP register definitions for HDMI and DP HDCP adaptations. HDMI specific HDCP2.2 register definitions are added into drm_hdcp.h, where as HDCP2.2 register offsets in DPCD offsets are defined at drm_dp_helper.h. v2: bit_field definitions are replaced by macros. [Tomas and Jani]

[Intel-gfx] [PATCH v4 05/41] misc/mei/hdcp: Notifier chain for mei cldev state change

2018-05-21 Thread Ramalingam C
Notifier Chain is defined to inform all its clients about the mei client device state change. Routine is defined for the clients to register and unregister for the notification on state change. v2: Rebased. v3: Notifier chain is adopted for cldev state update [Tomas] v4: Made static dummy fu

[Intel-gfx] [PATCH v4 03/41] mei: bus: whitelist hdcp client

2018-05-21 Thread Ramalingam C
From: Tomas Winkler Whitelist HDCP client for in kernel drm use v2: Rebased. v3: No changes. v4: No changes. 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/me

[Intel-gfx] [PATCH v4 04/41] misc/mei/hdcp: Client driver for HDCP application

2018-05-21 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 co

[Intel-gfx] [PATCH v4 08/41] misc/mei/hdcp: Initiate Wired HDCP2.2 Tx Session

2018-05-21 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 se

[Intel-gfx] [PATCH v4 07/41] linux/mei: Header for mei_hdcp driver interface

2018-05-21 Thread Ramalingam C
Data structures and Enum for the I915-MEI_HDCP interface are defined at v2: Rebased. v3: mei_cl_device is removed from mei_hdcp_data [Tomas] v4: Comment style and typo fixed [Uma] Signed-off-by: Ramalingam C --- include/linux/mei_hdcp.h | 70 ++

[Intel-gfx] [PATCH v4 06/41] misc/mei/hdcp: Define ME FW interface for HDCP2.2

2018-05-21 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/\/\*\*/\/\* Signed-off-by: Rama

[Intel-gfx] [PATCH v4 09/41] misc/mei/hdcp: Verify Receiver Cert and prepare km

2018-05-21 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 AKE_No

[Intel-gfx] [PATCH v4 10/41] misc/mei/hdcp: Verify H_prime

2018-05-21 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 an

[Intel-gfx] [PATCH v4 11/41] misc/mei/hdcp: Store the HDCP Pairing info

2018-05-21 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

[Intel-gfx] [PATCH v4 12/41] misc/mei/hdcp: Initiate Locality check

2018-05-21 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

[Intel-gfx] [PATCH v4 14/41] misc/mei/hdcp: Prepare Session Key

2018-05-21 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_

[Intel-gfx] [PATCH v4 15/41] misc/mei/hdcp: Repeater topology verification and ack

2018-05-21 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 parame

[Intel-gfx] [PATCH v4 13/41] misc/mei/hdcp: Verify L_prime

2018-05-21 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 r

[Intel-gfx] [PATCH v4 16/41] misc/mei/hdcp: Verify M_prime

2018-05-21 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 comple

[Intel-gfx] [PATCH v4 19/41] drm/i915: wrapping all hdcp var into intel_hdcp

2018-05-21 Thread Ramalingam C
Considering significant number of HDCP specific variables, it will be clean to have separate struct for HDCP. New structure called intel_hdcp is added within intel_connector. v2: struct hdcp statically allocated. [Sean Paul] enable and disable function parameters are retained.[Sean Paul] v3:

[Intel-gfx] [PATCH v4 17/41] misc/mei/hdcp: Enabling the HDCP authentication

2018-05-21 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 t

[Intel-gfx] [PATCH v4 18/41] misc/mei/hdcp: Closing wired HDCP2.2 Tx Session

2018-05-21 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 com

[Intel-gfx] [PATCH v4 20/41] drm/i915: Define HDCP2.2 related variables

2018-05-21 Thread Ramalingam C
For upcoming implementation of HDCP2.2 in I915, important variable required for HDCP2.2 are defined. HDCP_shim is extended to support encoder specific HDCP2.2 flows. v2: 1.4 shim is extended to support hdcp2.2. [Sean Paul] platform's/panel's hdcp ver capability is removed. [Sean Paul] mei r

[Intel-gfx] [PATCH v4 21/41] drm/i915: Define Intel HDCP2.2 registers

2018-05-21 Thread Ramalingam C
Intel HDCP2.2 registers are defined with addr offsets and bit details. v2: Replaced the arith calc with _PICK [Sean Paul] v3: No changes. v4: %s/HDCP2_CTR_DDI/HDCP2_CTL_DDI [Uma] Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/i915_reg.h | 32 1 file

[Intel-gfx] [PATCH v4 23/41] drm/i915: Implement HDCP2.2 receiver authentication

2018-05-21 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 certif

[Intel-gfx] [PATCH v4 22/41] drm/i915: Wrappers for mei HDCP2.2 services

2018-05-21 Thread Ramalingam C
Adds the wrapper for all mei hdcp2.2 service functions. v2: Rebased. v3: cldev is moved from mei_hdcp_data to hdcp. v4: %s/hdcp2_store_paring_info/hdcp2_store_pairing_info Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 194 ++ 1 fil

[Intel-gfx] [PATCH v4 27/41] drm/i915: Implement HDCP2.2 link integrity check

2018-05-21 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 H

[Intel-gfx] [PATCH v4 24/41] drm/i915: Implement HDCP2.2 repeater authentication

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

[Intel-gfx] [PATCH v4 25/41] drm/i915: Enable and Disable HDCP2.2 port encryption

2018-05-21 Thread Ramalingam C
Implements the enable and disable functions for HDCP2.2 encryption of the PORT. v2: intel_wait_for_register is used instead of wait_for. [Chris Wilson] v3: No Changes. v4: Debug msg is added for timeout at Disable of Encryption [Uma] %s/HDCP2_CTL/HDCP2_CTL Signed-off-by: Ramalingam C ---

[Intel-gfx] [PATCH v4 26/41] drm/i915: Implement HDCP2.2 En/Dis-able

2018-05-21 Thread Ramalingam C
Implements a sequence of enabling and disabling the HDCP2.2 (auth and encryption). v2: Rebased. v3: No Changes. v4: No Changes. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_hdcp.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/dr

[Intel-gfx] [PATCH v4 28/41] drm/i915: Handle HDCP2.2 downstream topology change

2018-05-21 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: No Changes. v4: Typo in commit msg is fixed [Uma] Signed-off-by: Ramalingam C

[Intel-gfx] [PATCH v4 29/41] drm/i915: Pullout the bksv read and validation

2018-05-21 Thread Ramalingam C
For reusability purpose, this patch implements the hdcp1.4 bksv's read and validation as a functions. For detecting the HDMI panel's HDCP capability this fucntions will be used. v2: Rebased. v3: No Changes. v4: inline tag is removed with modified error msg. Signed-off-by: Ramalingam C ---

[Intel-gfx] [PATCH v4 30/41] drm/i915: Initialize HDCP2.2 and its MEI interface

2018-05-21 Thread Ramalingam C
Initialize HDCP2.2 support. This includes the mei interface initialization along with required notifier registration. 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

[Intel-gfx] [PATCH v4 31/41] drm/i915: Schedule hdcp_check_link in _intel_hdcp_enable

2018-05-21 Thread Ramalingam C
As a preparation for making the intel_hdcp_enable as common function for both HDCP1.4 and HDCP2.2, HDCP1.4 check_link scheduling is moved into _intel_hdcp_enable() function. v3: No Changes. v4: Style fix. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_h

[Intel-gfx] [PATCH v4 35/41] drm/i915: Check HDCP 1.4 and 2.2 link on CP_IRQ

2018-05-21 Thread Ramalingam C
On DP HDCP1.4 and 2.2, when CP_IRQ is received, start the link integrity check for the HDCP version that is enabled. v2: Rebased. Function name is changed. v3: No Changes. v4: No Changes. Signed-off-by: Ramalingam C cc: Sean Paul --- drivers/gpu/drm/i915/intel_dp.c | 2 +- drivers/gpu

[Intel-gfx] [PATCH v4 33/41] drm/i915: Enable HDCP1.4 incase of HDCP2.2 failure

2018-05-21 Thread Ramalingam C
When HDCP2.2 enabling fails and HDCP1.4 is supported, HDCP1.4 is enabled. v2: Rebased. v3: No Changes. v4: Reviewed-by is collected. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -

[Intel-gfx] [PATCH v4 38/41] drm/i915: Implement the HDCP2.2 support for DP

2018-05-21 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. Note: Chris Wilson suggested alternate method for waiting for CP_IRQ, than completions concept. WIP to understand and implement that,

[Intel-gfx] [PATCH v4 32/41] drm/i915: Enable superior HDCP ver that is capable

2018-05-21 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. v2: Included few optimization suggestions [Chris Wilson] Commit message is updated as per the rebased version. v3: No changes. v4: Extra comment added and Style issue f

[Intel-gfx] [PATCH v4 37/41] drm/i915/gmbus: Enable burst read

2018-05-21 Thread Ramalingam C
Support for Burst read in HW is added for HDCP2.2 compliance requirement. This patch enables the burst read for all the gmbus read of more than 511Bytes, on capable platforms. v2: Extra line is removed. v3: Macro is added for detecting the BURST_READ Support [Jani] Runtime detection of the

[Intel-gfx] [PATCH v4 36/41] drm/i915/gmbus: Increase the Bytes per Rd/Wr Op

2018-05-21 Thread Ramalingam C
GMBUS HW supports 511Bytes as Max Bytes per single RD/WR op. Instead of enabling the 511Bytes per RD/WR cycle on legacy platforms for no absolute ROIs, this change allows the max bytes per op upto 511Bytes from Gen9 onwards. v2: No Change. v3: Inline function for max_xfer_size and renaming of

[Intel-gfx] [PATCH v4 34/41] drm/i915: hdcp_check_link only on CP_IRQ

2018-05-21 Thread Ramalingam C
HDCP check link is invoked only on CP_IRQ detection, instead of all short pulses. v3: No Changes. v4: Added sean in cc and collected the reviewed-by received. Signed-off-by: Ramalingam C cc: Sean Paul Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_dp.c | 9 - 1 file chang

[Intel-gfx] [PATCH v4 39/41] drm/i915: Implement the HDCP2.2 support for HDMI

2018-05-21 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 Changes. v4: No more special handling of Gmbus burst read for AKE_SEND_CERT. Style fixed with few naming. [Uma] %s/PARING/P

[Intel-gfx] [PATCH v4 41/41] drm/i915: Add HDCP2.2 support for HDMI connectors

2018-05-21 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: No Changes. v4: Collected the reviewed-by received. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 3 ++- 1 f

[Intel-gfx] [PATCH v4 40/41] drm/i915: Add HDCP2.2 support for DP connectors

2018-05-21 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: No Changes. v4: Collected the reviewed-by received. Signed-off-by: Ramalingam C Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/intel_dp.c | 2 +- driver

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: fix icl_unmap/map_plls_to_ports

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/icl: fix icl_unmap/map_plls_to_ports URL : https://patchwork.freedesktop.org/series/43510/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9066 = == Summary - FAILURE == Serious unknown changes coming with Patchwork_9

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Implement HDCP2.2 (rev5)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915: Implement HDCP2.2 (rev5) URL : https://patchwork.freedesktop.org/series/38254/ State : warning == Summary == $ dim checkpatch origin/drm-tip 5534d5c8130b drm: hdcp2.2 authentication msg definitions e1983dd17552 drm: HDMI and DP specific HDCP2.2 defines 05

Re: [Intel-gfx] [PATCH v5 7/7] drm/i915: Expose RPCS (SSEU) configuration to userspace

2018-05-21 Thread Lionel Landwerlin
On 15/05/18 10:05, Tvrtko Ursulin wrote: On 14/05/2018 16:56, Lionel Landwerlin wrote: From: Chris Wilson We want to allow userspace to reconfigure the subslice configuration for its own use case. To do so, we expose a context parameter to allow adjustment of the RPCS register stored within t

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Implement HDCP2.2 (rev5)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915: Implement HDCP2.2 (rev5) URL : https://patchwork.freedesktop.org/series/38254/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm: hdcp2.2 authentication msg definitions Okay! Commit: drm: HDMI and DP specific HDCP2.2 defines Okay! Co

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Implement HDCP2.2 (rev5)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915: Implement HDCP2.2 (rev5) URL : https://patchwork.freedesktop.org/series/38254/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9067 = == Summary - FAILURE == Serious unknown changes coming with Patchwork_9067 absolut

[Intel-gfx] [PATCH v4 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-21 Thread Neil Armstrong
This patchs adds the cec_notifier feature to the intel_hdmi part of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate between each HDMI ports. The changes will allow the i915 HDMI code to notify EDID and HPD changes to an eventual CEC adapter. Signed-off-by: Neil Armstrong

[Intel-gfx] [PATCH v4 1/5] media: cec-notifier: Get notifier by device and connector name

2018-05-21 Thread Neil Armstrong
In non device-tree world, we can need to get the notifier by the driver name directly and eventually defer probe if not yet created. This patch adds a variant of the get function by using the device name instead and will not create a notifier if not yet created. But the i915 driver exposes at lea

[Intel-gfx] [PATCH v4 5/5] media: platform: Add ChromeOS EC CEC driver

2018-05-21 Thread Neil Armstrong
The ChromeOS Embedded Controller can expose a CEC bus, this patch add the driver for such feature of the Embedded Controller. This driver is part of the cros-ec MFD and will be add as a sub-device when the feature bit is exposed by the EC. The controller will only handle a single logical address

[Intel-gfx] [PATCH v4 4/5] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-21 Thread Neil Armstrong
The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device when the CEC feature bit is present. Signed-off-by: Neil Armstrong Reviewed-by: Enric Balletbo i Serra --- drivers/mfd/cros_ec_dev.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mfd/cros_ec_dev

[Intel-gfx] [PATCH v4 0/5] Add ChromeOS EC CEC Support

2018-05-21 Thread Neil Armstrong
Hi All, The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support through it's Embedded Controller, to enable the Linux CEC Core to communicate with it and get the CEC Physical Address from the correct HDMI Connector, the following must be added/changed: - Add the CEC sub-device reg

[Intel-gfx] [PATCH v4 3/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-21 Thread Neil Armstrong
The EC can expose a CEC bus, this patch adds the CEC related definitions needed by the cros-ec-cec driver. Having a 16 byte mkbp event size makes it possible to send CEC messages from the EC to the AP directly inside the mkbp event instead of first doing a notification and then a read. Signed-off-

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: fix icl_unmap/map_plls_to_ports

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/icl: fix icl_unmap/map_plls_to_ports URL : https://patchwork.freedesktop.org/series/43510/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9068 = == Summary - WARNING == Minor unknown changes coming with Patchwork_906

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3) URL : https://patchwork.freedesktop.org/series/43420/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9069 = == Summary - WARNING == Minor unknown c

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/skl+: ddb allocation algorithm optimization URL : https://patchwork.freedesktop.org/series/43508/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9070 = == Summary - WARNING == Minor unknown changes coming with Patchw

[Intel-gfx] ✗ Fi.CI.BAT: failure for Add ChromeOS EC CEC Support (rev5)

2018-05-21 Thread Patchwork
== Series Details == Series: Add ChromeOS EC CEC Support (rev5) URL : https://patchwork.freedesktop.org/series/43162/ State : failure == Summary == Applying: media: cec-notifier: Get notifier by device and connector name Applying: drm/i915: hdmi: add CEC notifier to intel_hdmi Applying: mfd: c

Re: [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Implement HDCP2.2 (rev5)

2018-05-21 Thread Ramalingam C
On Monday 21 May 2018 06:53 PM, Patchwork wrote: == Series Details == Series: drm/i915: Implement HDCP2.2 (rev5) URL : https://patchwork.freedesktop.org/series/38254/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm: hdcp2.2 authentication msg definitions Okay! Commit

Re: [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Implement HDCP2.2 (rev5)

2018-05-21 Thread Shankar, Uma
>-Original Message- >From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of >Ramalingam C >Sent: Monday, May 21, 2018 8:34 PM >To: intel-gfx@lists.freedesktop.org; Patchwork >; lkp ; Jani Nikula > >Subject: Re: [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Imple

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/icl: fix icl_unmap/map_plls_to_ports

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/icl: fix icl_unmap/map_plls_to_ports URL : https://patchwork.freedesktop.org/series/43510/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212_full -> Patchwork_9068_full = == Summary - WARNING == Minor unknown changes coming with Pat

Re: [Intel-gfx] [PATCH v5 7/7] drm/i915: Expose RPCS (SSEU) configuration to userspace

2018-05-21 Thread Tvrtko Ursulin
On 21/05/2018 14:22, Lionel Landwerlin wrote: On 15/05/18 10:05, Tvrtko Ursulin wrote: On 14/05/2018 16:56, Lionel Landwerlin wrote: From: Chris Wilson We want to allow userspace to reconfigure the subslice configuration for its own use case. To do so, we expose a context parameter to allow

Re: [Intel-gfx] [PATCH v5 7/7] drm/i915: Expose RPCS (SSEU) configuration to userspace

2018-05-21 Thread Lionel Landwerlin
On 21/05/18 17:00, Tvrtko Ursulin wrote: On 21/05/2018 14:22, Lionel Landwerlin wrote: On 15/05/18 10:05, Tvrtko Ursulin wrote: On 14/05/2018 16:56, Lionel Landwerlin wrote: From: Chris Wilson We want to allow userspace to reconfigure the subslice configuration for its own use case. To d

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3) URL : https://patchwork.freedesktop.org/series/43420/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212_full -> Patchwork_9069_full = == Summary - WARNING == Minor

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/skl+: ddb allocation algorithm optimization

2018-05-21 Thread Patchwork
== Series Details == Series: drm/i915/skl+: ddb allocation algorithm optimization URL : https://patchwork.freedesktop.org/series/43508/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4212_full -> Patchwork_9070_full = == Summary - WARNING == Minor unknown changes coming w

Re: [Intel-gfx] [PATCH] drm/i915/icl: Disable pipe CSC and gamma in cursor plane

2018-05-21 Thread Paulo Zanoni
Em Sex, 2018-05-18 às 13:15 -0700, José Roberto de Souza escreveu: > 'Pipe CSC enable' bit is more than just deprecated in ICL+, it was > disabled in 077ef1f09c25 'drm/i915/icl: Don't set pipe CSC/Gamma in > PLANE_COLOR_CTL' for primary and sprite planes as it was causing > those planes to be rende

[Intel-gfx] [PATCH 2/2] drm/i915: Configure SKL+ scaler initial phase correctly

2018-05-21 Thread Ville Syrjala
From: Ville Syrjälä Set up the SKL+ scaler initial phase registers correctly. Otherwise we start fetching the data from the center of the first pixel instead of the top-left corner, which obviously then leads to right/bottom edges replicating data excessively as the data runs out half a pixel too

  1   2   >