Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3913187ybi; Mon, 3 Jun 2019 02:25:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkZn+G5gfjvzQ7/dlkaXPdRNGiCHXOn2oWBTUkh3xL9XRj8QHbn4+W61Xuu61WseXu4SSL X-Received: by 2002:a17:902:363:: with SMTP id 90mr28220397pld.131.1559553952253; Mon, 03 Jun 2019 02:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559553952; cv=none; d=google.com; s=arc-20160816; b=pgCoR3VZZCVle5ZtD0GL2APtCDcNcBYOVZwg4jf837E6UlImrphuzLSxrQTicjIUQM Mii4Rn2rRtMmKWLrWRLCUhAaQLx8lVUbeaF8W7rqAeEDhrA8RujFHCqa/Cf9fGXcQ/7E UMhfHxi9G5BcNYPrlphI6jayRxtbFpIciAKs2B8auJVRpubRI4vwQ0GEOVecwCPUFZmQ YsZWC/6NVbOJoPMNaooFqDJzQqZz0v14/4KC1jFzSH4/ShIz+M85s6j/OEwhaevk0Sv/ oA+GgYD8gf75VPZDUTFMcvGk47KJak8VsfIKhivbzEoK3+aHb2xM38aKZ+H1OYI+V3/u o16Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=djUZE72jHAuXqcCCQ1tgT9yvlf0PVu8KwRSaSqWyfJc=; b=ziZ5cF4/k6/m3L8/LDQaIvosM8Zemsus1u/EFlorq3wvcHZVYGRbILpoH8TtC9BE0x 7ZDLIZvCvlwWWJbehNgymkf+uX42r5bTyuSn0XC66RYKhsVzO/sKa3zeErU7veoL3fnt 1ZYmdHOTzSHyvZBMIDrI5aPZQNh+7Q0vbvrusMFESHYV7rNXRDBAP+J0Jqddkut9SeYx GF0bA0XF2IAfyTljgeHo+qxdGOVAFDaE/l0r3FD5/W159YN6lXATbmnmhGzPbgN65/Ov LMYm8jgd/Zd+/JszRARUo1r5h24ulU85tfCdgEOpNZBPNHfi+slxojrREhkRoT0P9jHk NxAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q22si17437082pgb.597.2019.06.03.02.25.36; Mon, 03 Jun 2019 02:25:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728246AbfFCJYX (ORCPT + 99 others); Mon, 3 Jun 2019 05:24:23 -0400 Received: from mga14.intel.com ([192.55.52.115]:54536 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728179AbfFCJYW (ORCPT ); Mon, 3 Jun 2019 05:24:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2019 02:24:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,546,1549958400"; d="scan'208";a="181096381" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by fmsmga002.fm.intel.com with ESMTP; 03 Jun 2019 02:24:20 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [char-misc-next 6/7] mei: docs: add hdcp documentation Date: Mon, 3 Jun 2019 12:14:05 +0300 Message-Id: <20190603091406.28915-7-tomas.winkler@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190603091406.28915-1-tomas.winkler@intel.com> References: <20190603091406.28915-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 1. Add a short ducumentation for MEI HDCP driver, and fix DOC comments in drivers/misc/mei/hdcp/mei_hdcp.c Signed-off-by: Tomas Winkler --- Documentation/driver-api/mei/hdcp.rst | 32 +++++++++++++++++++ .../driver-api/mei/mei-client-bus.rst | 1 + drivers/misc/mei/hdcp/mei_hdcp.c | 11 +++---- 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 Documentation/driver-api/mei/hdcp.rst diff --git a/Documentation/driver-api/mei/hdcp.rst b/Documentation/driver-api/mei/hdcp.rst new file mode 100644 index 000000000000..e85a065b1cdc --- /dev/null +++ b/Documentation/driver-api/mei/hdcp.rst @@ -0,0 +1,32 @@ +.. SPDX-License-Identifier: GPL-2.0 + +HDCP: +===== + +ME FW as a security engine provides the capability for setting up +HDCP2.2 protocol negotiation between the Intel graphics device and +an HDC2.2 sink. + +ME FW prepares HDCP2.2 negotiation parameters, signs and encrypts them +according the HDCP 2.2 spec. The Intel graphics sends the created blob +to the HDCP2.2 sink. + +Similarly, the HDCP2.2 sink's response is transferred to ME FW +for decryption and verification. + +Once all the steps of HDCP2.2 negotiation are completed, +upon request ME FW will configure the port as authenticated and supply +the HDCP encryption keys to Intel graphics hardware. + + +mei_hdcp driver +--------------- +.. kernel-doc:: drivers/misc/mei/hdcp/mei_hdcp.c + :doc: MEI_HDCP Client Driver + +mei_hdcp api +------------ + +.. kernel-doc:: drivers/misc/mei/hdcp/mei_hdcp.c + :functions: + diff --git a/Documentation/driver-api/mei/mei-client-bus.rst b/Documentation/driver-api/mei/mei-client-bus.rst index bfe28ebc3ca8..f242b3f8d6aa 100644 --- a/Documentation/driver-api/mei/mei-client-bus.rst +++ b/Documentation/driver-api/mei/mei-client-bus.rst @@ -164,4 +164,5 @@ MEI Client Bus Drivers .. toctree:: :maxdepth: 2 + hdcp nfc diff --git a/drivers/misc/mei/hdcp/mei_hdcp.c b/drivers/misc/mei/hdcp/mei_hdcp.c index b07000202d4a..ed816939fb32 100644 --- a/drivers/misc/mei/hdcp/mei_hdcp.c +++ b/drivers/misc/mei/hdcp/mei_hdcp.c @@ -2,7 +2,7 @@ /* * Copyright © 2019 Intel Corporation * - * Mei_hdcp.c: HDCP client driver for mei bus + * mei_hdcp.c: HDCP client driver for mei bus * * Author: * Ramalingam C @@ -11,12 +11,9 @@ /** * DOC: MEI_HDCP Client Driver * - * This is a client driver to the mei_bus to make the HDCP2.2 services of - * ME FW available for the interested consumers like I915. - * - * This module will act as a translation layer between HDCP protocol - * implementor(I915) and ME FW by translating HDCP2.2 authentication - * messages to ME FW command payloads and vice versa. + * The mei_hdcp driver acts as a translation layer between HDCP 2.2 + * protocol implementer (I915) and ME FW by translating HDCP2.2 + * negotiation messages to ME FW command payloads and vice versa. */ #include -- 2.20.1