Re: [PATCH] drm/nouveau/nvkm: mark expected switch fall-throughs

2019-02-16 Thread Gustavo A. R. Silva
Hello, Friendly ping (second one): Who can take this, please? Thanks -- Gustavo On 1/10/19 1:33 PM, Gustavo A. R. Silva wrote: > Hi, > > Friendly ping: > > Who can take this? > > Thanks > -- > Gustavo > > On 10/17/18 9:28 AM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimpli

[PATCH v3 03/11] drm/bridge: extract some Analogix I2C DP common code

2019-02-16 Thread Vasily Khoruzhick via dri-devel
From: Icenowy Zheng Some code can be shared within different DP bridges by Analogix. Extract them to a new module. Signed-off-by: Icenowy Zheng Signed-off-by: Vasily Khoruzhick --- drivers/gpu/drm/bridge/analogix/Kconfig | 4 + drivers/gpu/drm/bridge/analogix/Makefile | 2 + .

[PATCH v3 06/11] drm/sun4i: rgb: Add DT property to disable strict clock rate check

2019-02-16 Thread Vasily Khoruzhick via dri-devel
Clock rate check that was added in commit bb43d40d7c83 ("drm/sun4i: rgb: Validate the clock rate") prevents some panel and bridges from working with sun4i driver. Unfortunately, dotclock frequency for some modes are not achievable on sunxi hardware, and there's a slight deviation in rate returned

[PATCH v3 04/11] dt-bindings: Add ANX6345 DP/eDP transmitter binding

2019-02-16 Thread Vasily Khoruzhick via dri-devel
From: Icenowy Zheng The ANX6345 is an ultra-low power DisplayPort/eDP transmitter designed for portable devices. Add a binding document for it. Signed-off-by: Icenowy Zheng Signed-off-by: Vasily Khoruzhick --- .../bindings/display/bridge/anx6345.txt | 56 +++ 1 file cha

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-16 Thread Brendan Higgins via dri-devel
On Thu, Feb 14, 2019 at 3:57 PM Frank Rowand wrote: > > On 12/5/18 3:54 PM, Brendan Higgins wrote: > > On Tue, Dec 4, 2018 at 2:58 AM Frank Rowand wrote: > >> > >> Hi Brendan, > >> > >> On 11/28/18 11:36 AM, Brendan Higgins wrote: > >>> Split out a couple of test cases that these features in base

[Bug 108575] amd-staging-drm-next, R4 Mullins hdmi monitor wont wake up from S3 - *ERROR* REG_WAIT timeout 1us * 80000 tries - dce_abm_immediate_disable

2019-02-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108575 --- Comment #4 from Przemek --- Yesterday I have observed a strange behavior. After suspend/resume cycle HDMI screen is turned off, but when you trigger hibernate/resume after suspend/resume HDMI output is turned back on and is working properly

[PATCH v3 11/11] arm64: allwinner: a64: enable LCD-related hardware for Pinebook

2019-02-16 Thread Vasily Khoruzhick via dri-devel
From: Icenowy Zheng Pinebook has an ANX6345 bridge connected to the RGB666 LCD output and eDP panel input. The bridge is controlled via I2C that's connected to R_I2C bus. There're pinebooks with 3 different panels in the wild, all 3 with different timings. Add all the compatibles to panel node a

Re: [PATCH] drm/nouveau/bo: mark expected switch fall-through

2019-02-16 Thread Gustavo A. R. Silva
Hi, Please drop this, as I have included this fix into the following patch, which addresses all the expected fall-throughs in drivers/gpu/drm: https://lore.kernel.org/patchwork/patch/1042856/ Thanks -- Gustavo On 2/11/19 12:58 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplic

[PATCH] drm/audio: declaration of struct device

2019-02-16 Thread Ramalingam C via dri-devel
Header has used the references to struct device without it definition or declaration. Hence resulting in compilation warning such as "'struct device' declared inside parameter list..." This changes adds a declaration to struct device in the header to avoid any such warnings. Signed-off-by: Ram

[PATCH] drm/radeon/ci_dpm: Mark expected switch fall-throughs

2019-02-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/rad

[PATCH] drm/amd/display/dc/bios_parser2: Mark expected switch fall-throughs

2019-02-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/amd

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-16 Thread Brendan Higgins via dri-devel
On Thu, Feb 14, 2019 at 6:05 PM Frank Rowand wrote: > > On 2/14/19 4:56 PM, Brendan Higgins wrote: > > On Thu, Feb 14, 2019 at 3:57 PM Frank Rowand wrote: > >> > >> On 12/5/18 3:54 PM, Brendan Higgins wrote: > >>> On Tue, Dec 4, 2018 at 2:58 AM Frank Rowand > >>> wrote: > > Hi Brendan

[PATCH] drm: Mark expected switch fall-throughs

2019-02-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 3 was used: -Wimplicit-fallthrough=3 Notice that, in some cases, the code comment is modified in accordance with what GCC is expecting to find. This patch is part of the ong

[PATCH v14] drm/audio: declaration of struct device

2019-02-16 Thread Ramalingam C via dri-devel
Header has used the references to struct device without it definition or declaration. Hence the warning of "struct device declared inside parameter list..." This changes adds a declaration to struct device in the header to avoid any such warnings. Signed-off-by: Ramalingam C --- include/drm/drm

[PATCH v3 10/11] drm/panel: simple: Add NewEast Optoelectronics CO., LTD WJFH116008A panel support

2019-02-16 Thread Vasily Khoruzhick via dri-devel
This commit adds support for the NewEast Optoelectronics CO., LTD WJFH116008A 11.6" 1920x1080 TFT LCD panel. Signed-off-by: Vasily Khoruzhick --- .../display/panel/neweast,wjfh116008a.txt | 7 drivers/gpu/drm/panel/panel-simple.c | 39 +++ 2 files changed, 46 i

[PATCH] drm/amd/powerplay/smu7_hwmgr: Mark expected switch fall-throughs

2019-02-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/amd

[PATCH] drm/amd/display/dce_mem_input: Mark expected switch fall-through

2019-02-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 3 was used: -Wimplicit-fallthrough=3 Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find. This patch is part

[PATCH v3 05/11] drm/bridge: Add Analogix anx6345 support

2019-02-16 Thread Vasily Khoruzhick via dri-devel
From: Icenowy Zheng The ANX6345 is an ultra-low power DisplayPower/eDP transmitter designed for portable devices. This driver adds initial support for RGB to eDP mode, without HPD and interrupts. This is a configuration usually seen in eDP applications. Signed-off-by: Icenowy Zheng Signed-off-

[PATCH] drm/radeon/evergreen_cs: fix missing break in switch statement

2019-02-16 Thread Gustavo A. R. Silva
Add missing break statement in order to prevent the code from falling through to case CB_TARGET_MASK. This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: dd220a00e8bd ("drm/radeon/kms: add support for streamout v7") Cc: sta...@vger.kernel.org Signed-off-by: G

Re: drm/nouveau/bios/ramcfg, setting of RON pull value

2019-02-16 Thread Ilia Mirkin
On Sat, Feb 16, 2019 at 10:02 AM Colin Ian King wrote: > > Hi, > > Static Analysis with CoverityScan as detected an issue with the setting > of the RON pull value in function nvkm_gddr3_calc in > drm/nouveau/bios/ramcfg.c > > This was introduced by commit: c25bf7b6155cb ("drm/nouveau/bios/ramcfg:

drm/nouveau/bios/ramcfg, setting of RON pull value

2019-02-16 Thread Colin Ian King via dri-devel
Hi, Static Analysis with CoverityScan as detected an issue with the setting of the RON pull value in function nvkm_gddr3_calc in drm/nouveau/bios/ramcfg.c This was introduced by commit: c25bf7b6155cb ("drm/nouveau/bios/ramcfg: Separate out RON pull value") CoverityScan reports the issue as follo

[Bug 100979] Radeon r4 on a6-6310(BEEMA) APU hard lockup on hibernate and on second resume from suspend

2019-02-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100979 --- Comment #15 from Przemek --- Just for the rectification, after resume from hibernate both screens lights up as they should (eDP and HDMI). -- You are receiving this mail because: You are the assignee for the bug.__

[Bug 102322] System crashes after "[drm] IP block:gmc_v8_0 is hung!" / [drm] IP block:sdma_v3_0 is hung!

2019-02-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102322 --- Comment #77 from dwagner --- Since another month has passed: I can still reproduce the crash with today's git head of amd-staging-drm-next (and an up-to-date Arch Linux) within minutes by replaying a video at 3 fps. Additional new bonus bug

[PATCH v14 08/33] drm/i915: Implement HDCP2.2 repeater authentication

2019-02-16 Thread Ramalingam C via dri-devel
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 pa

[PATCH v14 05/33] drm/i915: hdcp1.4 CP_IRQ handling and SW encryption tracking

2019-02-16 Thread Ramalingam C via dri-devel
"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 v14 21/33] misc/mei/hdcp: Initiate Wired HDCP2.2 Tx Session

2019-02-16 Thread Ramalingam C via dri-devel
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 sepa

[PATCH v14 18/33] mei: bus: export to_mei_cl_device for mei client device drivers

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

[PATCH v14 04/33] drm/i915: MEI interface implementation

2019-02-16 Thread Ramalingam C via dri-devel
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 master

[PATCH v14 17/33] mei: bus: whitelist hdcp client

2019-02-16 Thread Ramalingam C via dri-devel
From: Tomas Winkler Whitelist HDCP client for in kernel drm use v2: Rebased. Signed-off-by: Tomas Winkler Signed-off-by: Ramalingam C --- 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-f

[PATCH v14 23/33] misc/mei/hdcp: Verify H_prime

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 11/33] drm/i915: Handle HDCP2.2 downstream topology change

2019-02-16 Thread Ramalingam C via dri-devel
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. Min

[PATCH v14 13/33] drm/i915: Implement the HDCP2.2 support for DP

2019-02-16 Thread Ramalingam C via dri-devel
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 fix

[PATCH v14 12/33] drm: removing the DP Errata msg and its msg id

2019-02-16 Thread Ramalingam C via dri-devel
Since DP ERRATA message is not defined at spec, those structure definition is removed from drm_hdcp.h Signed-off-by: Ramalingam C Suggested-by: Daniel Vetter Reviewed-by: Daniel Vetter Reviewed-by: Uma Shankar --- include/drm/drm_hdcp.h | 6 -- 1 file changed, 6 deletions(-) diff --git a

[PATCH v14 10/33] drm/i915: Implement HDCP2.2 link integrity check

2019-02-16 Thread Ramalingam C via dri-devel
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

[PATCH v14 01/33] drm/i915: Gathering the HDCP1.4 routines together

2019-02-16 Thread Ramalingam C via dri-devel
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 Acked-by: Daniel Vetter Reviewed-by: Uma Shankar Reviewed-by: Tomas Winkler --- drivers/gpu/drm/i915/intel_hdcp.c | 118 +++-

[PATCH v14 24/33] misc/mei/hdcp: Store the HDCP Pairing info

2019-02-16 Thread Ramalingam C via dri-devel
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 ca

[PATCH v14 20/33] misc/mei/hdcp: Define ME FW interface for HDCP2.2

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 16/33] drm/i915: Fix KBL HDCP2.2 encrypt status signalling

2019-02-16 Thread Ramalingam C via dri-devel
HDCP transmitter is supposed to indicate the HDCP encryption status of the link through enc_en signals in a window of time called "window of opportunity" defined by HDCP HDMI spec. But on KBL this timing of signalling has an issue. To fix the issue this WA of resetting the signalling is required.

[PATCH v14 19/33] misc/mei/hdcp: Client driver for HDCP application

2019-02-16 Thread Ramalingam C via dri-devel
ME FW 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 commu

[PATCH v14 07/33] drm/i915: Implement HDCP2.2 receiver authentication

2019-02-16 Thread Ramalingam C via dri-devel
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

[PATCH v14 22/33] misc/mei/hdcp: Verify Receiver Cert and prepare km

2019-02-16 Thread Ramalingam C via dri-devel
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

[PATCH v14 03/33] drm/i915: Initialize HDCP2.2

2019-02-16 Thread Ramalingam C via dri-devel
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 [Uma

[PATCH v14 15/33] drm/i915: CP_IRQ handling for DP HDCP2.2 msgs

2019-02-16 Thread Ramalingam C via dri-devel
Implements the Waitqueue is created to wait for CP_IRQ Signaling the CP_IRQ arrival through atomic variable. For applicable DP HDCP2.2 msgs read wait for CP_IRQ. As per HDCP2.2 spec "HDCP Transmitters must process CP_IRQ interrupts when they are received from HDCP Receivers

[PATCH v14 00/33] drm/i915: Implement HDCP2.2

2019-02-16 Thread Ramalingam C via dri-devel
This series enables the HDCP2.2 Type 0 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 d

[PATCH v14 06/33] drm/i915: Enable and Disable of HDCP2.2

2019-02-16 Thread Ramalingam C via dri-devel
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 por

[PATCH v14 09/33] drm: HDCP2.2 link check period

2019-02-16 Thread Ramalingam C via dri-devel
Time period for HDCP2.2 link check. Signed-off-by: Ramalingam C Reviewed-by: Daniel Vetter Reviewed-by: Uma Shankar --- include/drm/drm_hdcp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_hdcp.h b/include/drm/drm_hdcp.h index 7260b31af276..d4e98b11b4aa 100644 --- a/inclu

[PATCH v14 02/33] drm/audio: declaration of struct device

2019-02-16 Thread Ramalingam C via dri-devel
Header has used the references to struct device without it definition or declaration. Hence resulting in compilation warning such as "'struct device' declared inside parameter list..." This changes adds a declaration to struct device in the header to avoid any such warnings. Signed-off-by: Ram

[PATCH v14 25/33] misc/mei/hdcp: Initiate Locality check

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 14/33] drm/i915: Implement the HDCP2.2 support for HDMI

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 26/33] misc/mei/hdcp: Verify L_prime

2019-02-16 Thread Ramalingam C via dri-devel
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 rem

[PATCH v14 29/33] misc/mei/hdcp: Verify M_prime

2019-02-16 Thread Ramalingam C via dri-devel
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

[PATCH v14 32/33] misc/mei/hdcp: Component framework for I915 Interface

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 33/33] FOR_TEST_ONLY: i915/Kconfig: Select mei_hdcp by I915

2019-02-16 Thread Ramalingam C via dri-devel
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 b/drivers/misc/mei/Kconfi

[PATCH v14 31/33] misc/mei/hdcp: Closing wired HDCP2.2 Tx Session

2019-02-16 Thread Ramalingam C via dri-devel
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 comme

[PATCH v14 27/33] misc/mei/hdcp: Prepare Session Key

2019-02-16 Thread Ramalingam C via dri-devel
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 v14 28/33] misc/mei/hdcp: Repeater topology verification and ack

2019-02-16 Thread Ramalingam C via dri-devel
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 paramete

[PATCH v14 30/33] misc/mei/hdcp: Enabling the HDCP authentication

2019-02-16 Thread Ramalingam C via dri-devel
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

Re: [PATCH RFC] drm: add func to better detect wether swiotlb is needed

2019-02-16 Thread Koenig, Christian
Am 15.02.19 um 22:29 schrieb Michael D Labriola: > This commit fixes DRM failures on Xen PV systems that were introduced in > v4.17 by the following commits: > > 82626363 drm: add func to get max iomem address v2 > fd5fd480 drm/amdgpu: only enable swiotlb alloc when need v2 > 1bc3d3cc drm/radeon: o

[Bug 202537] amdgpu/DC failed to reserve new abo buffer before flip

2019-02-16 Thread bugzilla-daemon--- via dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=202537 Christian König (christian.koe...@amd.com) changed: What|Removed |Added CC||christian.koe

Re: [PATCH 06/11] drm/syncobj: add timeline payload query ioctl v4

2019-02-16 Thread Christian König via dri-devel
Am 15.02.19 um 20:31 schrieb Lionel Landwerlin via amd-gfx: On 07/12/2018 09:55, Chunming Zhou wrote: user mode can query timeline payload. v2: check return value of copy_to_user v3: handle querying entry by entry v4: rebase on new chain container, simplify interface Signed-off-by: Chunming Zho

[Bug 107273] [Intel GFX CI] amdgpu 0000:01:00.0: HDMI-A-1: EDID is invalid

2019-02-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107273 Lakshmi changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [RFC] gpu/docs: Clarify what userspace means for gl

2019-02-16 Thread Rob Clark via dri-devel
On Thu, Feb 14, 2019 at 4:00 AM Daniel Vetter wrote: > > Clear rules avoid arguing. > > I think it'd be good to have an equally solid list on the kms side. > But kms is much more meant to be a standard, and the list of userspace > projects we've accepted in the past is constantly shifting and > ad

[RFC v4 08/17] kunit: test: add support for test abort

2019-02-16 Thread Brendan Higgins via dri-devel
Add support for aborting/bailing out of test cases. Needed for implementing assertions. Signed-off-by: Brendan Higgins --- Changes Since Last Version - This patch is new introducing a new cross-architecture way to abort out of a test case (needed for KUNIT_ASSERT_*, see next patch for deta

Re: [PATCH] drm/amd/display: Fix reference counting for struct dc_sink.

2019-02-16 Thread Mathias Fröhlich
Alex, On Wednesday, 13 February 2019 21:38:03 CET Alex Deucher wrote: > Add amd-gfx and some DC people. Thanks!! When I sent, I did not remember that there is an other list for amd! Up to now I am much more on the MESA side ... Mathias ___ dri-devel

[PATCH v14 01/35] drm/i915: Gathering the HDCP1.4 routines together

2019-02-16 Thread Ramalingam C via dri-devel
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 Acked-by: Daniel Vetter Reviewed-by: Uma Shankar Reviewed-by: Tomas Winkler --- drivers/gpu/drm/i915/intel_hdcp.c | 118 +++-

[RFC v4 02/17] kunit: test: add test resource management API

2019-02-16 Thread Brendan Higgins via dri-devel
Create a common API for test managed resources like memory and test objects. A lot of times a test will want to set up infrastructure to be used in test cases; this could be anything from just wanting to allocate some memory to setting up a driver stack; this defines facilities for creating "test r

[PATCH AUTOSEL 4.20 63/77] drm/msm: Fix A6XX support for opp-level

2019-02-16 Thread Sasha Levin via dri-devel
From: Douglas Anderson [ Upstream commit a3c5e2cd79753121f49a8662c1e0a60ddb5486ca ] The bindings for Qualcomm opp levels changed after being Acked but before landing. Thus the code in the GPU driver that was relying on the old bindings is now broken. Let's change the code to match the new bind

[PATCH AUTOSEL 4.20 47/77] staging: android: ion: Support cpu access during dma_buf_detach

2019-02-16 Thread Sasha Levin via dri-devel
From: Liam Mark [ Upstream commit 31eb79db420a3f94c4c45a8c0a05cd30e333f981 ] Often userspace doesn't know when the kernel will be calling dma_buf_detach on the buffer. If userpace starts its CPU access at the same time as the sg list is being freed it could end up accessing the sg list after it

[RFC v4 17/17] of: unittest: split up some super large test cases

2019-02-16 Thread Brendan Higgins via dri-devel
Split up the super large test cases of_unittest_find_node_by_name and of_unittest_dynamic into properly sized and defined test cases. Signed-off-by: Brendan Higgins --- drivers/of/base-test.c | 297 ++--- 1 file changed, 249 insertions(+), 48 deletions(-) dif

Re: [PATCH RESEND v2 08/12] dt-bindings: add binding for generic eDP panel

2019-02-16 Thread Vasily Khoruzhick via dri-devel
On Thu, Feb 14, 2019 at 12:38 PM Rob Herring wrote: > > On Thu, Feb 14, 2019 at 2:04 PM Vasily Khoruzhick wrote: > > > > On Tue, Feb 5, 2019 at 2:24 AM Thierry Reding > > wrote: > > > > > > On Tue, Feb 05, 2019 at 09:57:37AM +0100, Daniel Vetter wrote: > > > > On Mon, Feb 04, 2019 at 05:22:58PM

[RFC v4 11/17] kunit: tool: add Python wrappers for running KUnit tests

2019-02-16 Thread Brendan Higgins via dri-devel
From: Felix Guo The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user.

[RFC v4 09/17] kunit: test: add the concept of assertions

2019-02-16 Thread Brendan Higgins via dri-devel
Add support for assertions which are like expectations except the test terminates if the assertion is not satisfied. Signed-off-by: Brendan Higgins --- include/kunit/test.h | 397 - kunit/string-stream-test.c | 12 +- kunit/test-test.c | 2 +

[RFC v4 12/17] kunit: defconfig: add defconfigs for building KUnit tests

2019-02-16 Thread Brendan Higgins via dri-devel
Add defconfig for UML and a fragment that can be used to configure other architectures for building KUnit tests. Add option to kunit_tool to use a defconfig to create the kunitconfig. Signed-off-by: Brendan Higgins --- Changes Since Last Version - This patch is new adding default configs to buil

[RFC v4 06/17] kbuild: enable building KUnit

2019-02-16 Thread Brendan Higgins via dri-devel
Add KUnit to root Kconfig and Makefile allowing it to actually be built. Signed-off-by: Brendan Higgins --- Changes Since Last Version - Rewrote patch description. This was previously called "[RFC v3 06/19] arch: um: enable running kunit from User Mode Linux," which was incorrect since thi

[RFC v4 10/17] kunit: test: add test managed resource tests

2019-02-16 Thread Brendan Higgins via dri-devel
Tests how tests interact with test managed resources in their lifetime. Signed-off-by: Avinash Kondareddy Signed-off-by: Brendan Higgins --- kunit/test-test.c | 121 ++ 1 file changed, 121 insertions(+) diff --git a/kunit/test-test.c b/kunit/test-tes

[PATCH v14 04/32] drm/i915: hdcp1.4 CP_IRQ handling and SW encryption tracking

2019-02-16 Thread Ramalingam C via dri-devel
"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 v14 11/35] drm: HDCP2.2 link check period

2019-02-16 Thread Ramalingam C via dri-devel
Time period for HDCP2.2 link check. Signed-off-by: Ramalingam C Reviewed-by: Daniel Vetter Reviewed-by: Uma Shankar --- include/drm/drm_hdcp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_hdcp.h b/include/drm/drm_hdcp.h index 7260b31af276..d4e98b11b4aa 100644 --- a/inclu

[RFC] gpu/docs: Clarify what userspace means for gl

2019-02-16 Thread Daniel Vetter
Clear rules avoid arguing. I think it'd be good to have an equally solid list on the kms side. But kms is much more meant to be a standard, and the list of userspace projects we've accepted in the past is constantly shifting and adjusting. So I figured I'll leave that as an exercise for later on.

[PATCH AUTOSEL 4.14 01/40] drm/msm: Unblock writer if reader closes file

2019-02-16 Thread Sasha Levin via dri-devel
From: "Kristian H. Kristensen" [ Upstream commit 99c66bc051e7407fe0bf0607b142ec0be1a1d1dd ] Prevents deadlock when fifo is full and reader closes file. Signed-off-by: Kristian H. Kristensen Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/msm_rd.c | 7 ++- 1 f

[PATCH v14 24/35] misc/mei/hdcp: Verify Receiver Cert and prepare km

2019-02-16 Thread Ramalingam C via dri-devel
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

[RFC v4 05/17] kunit: test: add the concept of expectations

2019-02-16 Thread Brendan Higgins via dri-devel
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins --- include/kunit/test.h | 415 +++ kunit/test.c | 34 2 files changed, 449 insertions(+) diff --git a/include/ku

[PATCH AUTOSEL 4.20 43/77] drm/amd/powerplay: OD setting fix on Vega10

2019-02-16 Thread Sasha Levin via dri-devel
From: Kenneth Feng [ Upstream commit 6d87dc97eb3341de3f7b1efa3156cb0e014f4a96 ] gfxclk for OD setting is limited to 1980M for non-acg ASICs of Vega10 Signed-off-by: Kenneth Feng Reviewed-by: Evan Quan Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../powerplay/hwmgr/vega10_pro

[PATCH AUTOSEL 4.19 35/65] drm/amd/powerplay: OD setting fix on Vega10

2019-02-16 Thread Sasha Levin via dri-devel
From: Kenneth Feng [ Upstream commit 6d87dc97eb3341de3f7b1efa3156cb0e014f4a96 ] gfxclk for OD setting is limited to 1980M for non-acg ASICs of Vega10 Signed-off-by: Kenneth Feng Reviewed-by: Evan Quan Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../powerplay/hwmgr/vega10_pro

[RFC v4 16/17] of: unittest: split out a couple of test cases from unittest

2019-02-16 Thread Brendan Higgins via dri-devel
Split out a couple of test cases that these features in base.c from the unittest.c monolith. The intention is that we will eventually split out all test cases and group them together based on what portion of device tree they test. Signed-off-by: Brendan Higgins --- drivers/of/Makefile | 2

[PATCH v14 10/35] drm/i915: Implement HDCP2.2 repeater authentication

2019-02-16 Thread Ramalingam C via dri-devel
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 pa

[PATCH v14 23/35] misc/mei/hdcp: Initiate Wired HDCP2.2 Tx Session

2019-02-16 Thread Ramalingam C via dri-devel
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 sepa

Re: [PATCH 1/2] drm/fourcc: add ARM tiled format modifier

2019-02-16 Thread Qiang Yu via dri-devel
On Thu, Feb 14, 2019 at 11:27 PM Brian Starkey wrote: > > Hi, > > On Wed, Feb 06, 2019 at 09:14:56PM +0800, Qiang Yu wrote: > > Signed-off-by: Qiang Yu > > --- > > include/uapi/drm/drm_fourcc.h | 9 + > > 1 file changed, 9 insertions(+) > > > > diff --git a/include/uapi/drm/drm_fourcc.h

[RFC v4 15/17] of: unittest: migrate tests to run on KUnit

2019-02-16 Thread Brendan Higgins via dri-devel
Migrate tests without any cleanup, or modifying test logic in anyway to run under KUnit using the KUnit expectation and assertion API. Signed-off-by: Brendan Higgins --- drivers/of/Kconfig|1 + drivers/of/unittest.c | 1310 + 2 files changed, 671 i

[RFC v4 04/17] kunit: test: add test_stream a std::stream like logger

2019-02-16 Thread Brendan Higgins via dri-devel
A lot of the expectation and assertion infrastructure prints out fairly complicated test failure messages, so add a C++ style log library for for logging test results. Signed-off-by: Brendan Higgins --- include/kunit/kunit-stream.h | 50 include/kunit/test.h | 2 + kunit/

[PATCH AUTOSEL 4.19 54/65] drm/msm: Fix A6XX support for opp-level

2019-02-16 Thread Sasha Levin via dri-devel
From: Douglas Anderson [ Upstream commit a3c5e2cd79753121f49a8662c1e0a60ddb5486ca ] The bindings for Qualcomm opp levels changed after being Acked but before landing. Thus the code in the GPU driver that was relying on the old bindings is now broken. Let's change the code to match the new bind

[PATCH v14 11/32] drm: removing the DP Errata msg and its msg id

2019-02-16 Thread Ramalingam C via dri-devel
Since DP ERRATA message is not defined at spec, those structure definition is removed from drm_hdcp.h Signed-off-by: Ramalingam C Suggested-by: Daniel Vetter Reviewed-by: Daniel Vetter Reviewed-by: Uma Shankar --- include/drm/drm_hdcp.h | 6 -- 1 file changed, 6 deletions(-) diff --git a

Re: [PATCH] pci/quirks: Add quirk to reset nvgpu at boot for the Lenovo ThinkPad P50

2019-02-16 Thread Bjorn Helgaas via dri-devel
Hi Lyude, On Tue, Feb 12, 2019 at 05:02:30PM -0500, Lyude Paul wrote: > On a very specific subset of ThinkPad P50 SKUs, particularly ones that > come with a Quadro M1000M chip instead of the M2000M variant, the BIOS > seems to have a very nasty habit of not always resetting the secondary > Nvidia

[PATCH v14 00/35] drm/i915: Implement HDCP2.2

2019-02-16 Thread Ramalingam C via dri-devel
This series enables the HDCP2.2 Type 0 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 d

[PATCH v14 18/35] drm/i915: Fix KBL HDCP2.2 encrypt status signalling

2019-02-16 Thread Ramalingam C via dri-devel
HDCP transmitter is supposed to indicate the HDCP encryption status of the link through enc_en signals in a window of time called "window of opportunity" defined by HDCP HDMI spec. But on KBL this timing of signalling has an issue. To fix the issue this WA of resetting the signalling is required.

[RFC v4 13/17] Documentation: kunit: add documentation for KUnit

2019-02-16 Thread Brendan Higgins via dri-devel
Add documentation for KUnit, the Linux kernel unit testing framework. - Add intro and usage guide for KUnit - Add API reference Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins --- Documentation/index.rst | 1 + Documentation/kunit/api/index.rst | 16 ++ Documentation/kunit/

Re: [PATCH v2 0/2] drm/omap: panel-tpo-td028ttec1: add backlight support

2019-02-16 Thread Tomi Valkeinen via dri-devel
On 15/02/2019 09:12, Andreas Kemnade wrote: > Hi, > > On Fri, 8 Feb 2019 11:13:33 +0200 > Tomi Valkeinen wrote: > >> On 05/02/2019 08:38, Andreas Kemnade wrote: >>> This panel has a backlight, so add a property describing that and >>> add the code to use that. >>> This makes things like xset dpm

[PATCH v14 09/35] drm: helper functions for hdcp2 seq_num to from u32

2019-02-16 Thread Ramalingam C via dri-devel
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. v2: Comment is updated. [Daniel] Reviewed-by Uma. Signed-off-by: Ramalingam C Reviewed-by: Daniel Vetter

[PATCH AUTOSEL 4.20 46/77] drm/sun4i: hdmi: Fix usage of TMDS clock

2019-02-16 Thread Sasha Levin via dri-devel
From: Priit Laes [ Upstream commit 5e1bc251cebc84b41b8eb5d2434e54d939a85430 ] Although TMDS clock is required for HDMI to properly function, nobody called clk_prepare_enable(). This fixes reference counting issues and makes sure clock is running when it needs to be running. Due to TDMS clock be

[git pull] drm fixes for 5.0-rc7

2019-02-16 Thread Dave Airlie via dri-devel
Hi Linus, Usual pull request, little larger than I'd like but nothing too strange in it. Willy found an bug in the lease ioctl calculations, but it's a drm master only ioctl which makes it harder to mess with. i915: - combo phy programming fix - opregion version check fix for VBT RVDA lookup - ge

Re: [PATCH] video/macfb: Remove redundant code

2019-02-16 Thread Geert Uytterhoeven
On Fri, Feb 15, 2019 at 3:19 AM Finn Thain wrote: > The value of info->var.bits_per_pixel get checked in macfb_setcolreg(). > Remove additional checks as they are redundant. > > macfb_defined.activate gets initialized to FB_ACTIVATE_NOW by the struct > initializer. Remove redundant assignments. >

  1   2   3   >