Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1132487pxf; Fri, 2 Apr 2021 02:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJVsBndpNlDKoj1U8fQt8qBfeQAwGgoCdhV6vQ4oU1gcCb0vbUEkqJXRt7ckUjzqw0VWSu X-Received: by 2002:a05:6638:91:: with SMTP id v17mr11957253jao.69.1617354069549; Fri, 02 Apr 2021 02:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617354069; cv=none; d=google.com; s=arc-20160816; b=sGA/G6wqrE7/8MTVNj9U4nnqqmv7ktzmnas78ZWmXctn356mtekfRQmldFMAJ4e2cF VnuL+8t76RkRjK2OrFZDA+gQgDfaU6tgOrSQIeEb+Rm7FPQkm/4JiUntBWeO6AWj8kv5 CZePyS5lGT7sXne47A8Jki743qX2PRsRNB8ynA9ZfUwfpQcNHMzQAjrDTeqm6qw5q5EO 6cmsjR9nOJYSyVngaRhJD+FHtV/ZWYxq4kkuJkTkftNW16A4wHVIo57qOK3Z405gsldV HWs5nhGtGqfra0J0siqZ9EzwPfalUBjVwGvqSVtP5+cdsO/gsEC5/dG81aq8JNjqtZ1t S9kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H5sFd9ikyo99Tp1kF3bqKsglDQgIg5nWiTRt1IrvZQg=; b=btAHuia+nbIm7YprxybA5VM1iAWksPauIA4j18XNuuX5MPoRIklluRf6nYKdg0b2Tk B3PfzpilRcIfPjZUmKNONuh7zhQddn7axCf2zfQxLtRhbcDkifzzOXFILGzy204+QL2H ZhYW4nmGJ/0TD9WPnoza2L6qO6BcqN/ku70wjgW0H51hf4B22qW36Weeo1XoaRNtYRRM O3AYqJOEEwL4r+d27TEIRLtPZRyserSoJr3GwPqG38+k6LXWvuDWZLvvmTwe+9XLEE0k vXIqzIOj5wZIb8F2542LvqRZNtlWon7umkmbEEksjfhYE6hdvGk1+ZBahlx2B016oEzA /q3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=oWFPNwZp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si7342412iow.73.2021.04.02.02.00.55; Fri, 02 Apr 2021 02:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=oWFPNwZp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbhDBJAb (ORCPT + 99 others); Fri, 2 Apr 2021 05:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbhDBJA2 (ORCPT ); Fri, 2 Apr 2021 05:00:28 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 936CFC0613E6 for ; Fri, 2 Apr 2021 02:00:27 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E69632C1; Fri, 2 Apr 2021 11:00:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1617354024; bh=elTh91fHBqoRE3n15Vt6YQfqLzAPhdsnX4FGuvqKbJM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oWFPNwZpRW0+ESGW3PxJDKemt4sdh4C2jxyzELlrhmAyenar17Mj6v3OiAJ7L8+MS Cn415IdbXHMs57Nwqp7UyBPce4jNY+QIqHyATyPyPnQSbGMiGRz8GAHgEwVkG6tX/l LlGJEOhMI+/QDocY1j9CI6RYvLmbQqR+fNXvD2gM= Date: Fri, 2 Apr 2021 11:59:39 +0300 From: Laurent Pinchart To: Xin Ji Cc: Sean Paul , Foss , Nicolas Boichat , Andrzej Hajda , devel@driverdev.osuosl.org, Jernej Skrabec , Sheng Pan , Jonas Karlman , David Airlie , Bernie Liang , Neil Armstrong , Zhen Li , LKML , dri-devel , Vasily Khoruzhick , Boris Brezillon , Torsten Duwe , Hsin-Yi Wang , Sam Ravnborg , Dan Carpenter , Marek Szyprowski Subject: Re: [PATCH v6 4/5] drm/bridge: anx7625: add HDCP support Message-ID: References: <189a637c87827f78c433a053e3c2129ebec73188.1616135353.git.xji@analogixsemi.com> <20210329102710.GA1930154@anxtwsw-Precision-3640-Tower> <20210402022708.GA2154388@anxtwsw-Precision-3640-Tower> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210402022708.GA2154388@anxtwsw-Precision-3640-Tower> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xin, On Fri, Apr 02, 2021 at 10:27:08AM +0800, Xin Ji wrote: > On Mon, Mar 29, 2021 at 02:02:08PM -0400, Sean Paul wrote: > > On Mon, Mar 29, 2021 at 6:27 AM Xin Ji wrote: > > > > > > On Thu, Mar 25, 2021 at 02:19:23PM -0400, Sean Paul wrote: > > > > On Fri, Mar 19, 2021 at 2:35 AM Xin Ji wrote: > > > > > > > > > > Add HDCP feature, enable HDCP function through chip internal key > > > > > and downstream's capability. > > > > > > > > > > Signed-off-by: Xin Ji > > > > > --- > > > > /snip > > > > > > > static void anx7625_dp_start(struct anx7625_data *ctx) > > > > > { > > > > > int ret; > > > > > @@ -643,6 +787,9 @@ static void anx7625_dp_start(struct anx7625_data *ctx) > > > > > return; > > > > > } > > > > > > > > > > + /* HDCP config */ > > > > > + anx7625_hdcp_setting(ctx); > > > > > > > > You should really use the "Content Protection" property to > > > > enable/disable HDCP instead of force-enabling it at all times. > > > > > > Hi Sean, it's hard to implement "Content Protection" property, we have > > > implemented HDCP in firmware, it is not compatible with it. We don't > > > have interface to get Downstream Cert. > > > Thanks, > > > Xin > > > > Hi Xin, > > I'm sorry, I don't understand what you mean when you say you don't > > have an interface to get Downstream Cert. > > > > The Content Protection property is just a means through which > > userspace can turn on and turn off HDCP when it needs. As far as I can > > tell, your patch turns on HDCP when the display is enabled and leaves > > it on until it is disabled. This is undesirable since it forces HDCP > > on the user. > > > > Is it impossible to enable/disable HDCP outside of display > > enable/disable on your hardware? > > Hi Sean, I have commit a test patch on google review site, can you > please help to review it? I'll use Connector's ".atomic_check()" > interface to detect Content Protection property change. > (https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2674580) Please note that upstream review happens on mailing lists, not in gerrit. Internal reviews for Chrome OS development are certainly fine there, but that will not mean the patch will then be accepted upstream as-is, it will still need to go through the upstream review process, without any shortcut. I strongly recommend using an upstream-first strategy, with public review. > > > > > + > > > > > if (ctx->pdata.is_dpi) > > > > > ret = anx7625_dpi_config(ctx); > > > > > else > > > > /snip -- Regards, Laurent Pinchart