Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2801217imu; Mon, 19 Nov 2018 06:21:26 -0800 (PST) X-Google-Smtp-Source: AJdET5eP4nSvtokcthTshvzqVEfcudmomQ86192UzLzBTjyk2iCDuFFoxc/qzgfPY7f1QCobM4vh X-Received: by 2002:a17:902:443:: with SMTP id 61-v6mr22175029ple.216.1542637286071; Mon, 19 Nov 2018 06:21:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542637286; cv=none; d=google.com; s=arc-20160816; b=tyc//DRAu1pE2KECYpObxEHfI5tv2mQd2aTbP0671agVC3Is/Wgiop2OuRQJNmHl6A 9J51cvhFD6F/MAPmmmFAmHeFP9RNrN4J3vaY8mZSpmnf30/ufr4c2TYP4vDUikn5unwn hroUHKI+xf70L45PAsuYC+Pan4KOrrnNJ01gxrUaFrabQ0N7U1PefqBY43b4OLQQAnqH 7j61pPdyNwpBKVRsFTYMWFvQ0V+/pPrx/Q2DCveypgDgfxA0wPwOe2XVp0fa8wHEZ0A7 HsM2NmKwOUSlaVuxkmuwi2l3mQGcS8Q2/ZjYY1OQcJFXB3G8r/3zHUm2fgSxx2egtJZN zYYg== 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=kn4OUmoPgHU/wFRw04/p30C/TyTv8W8eehsfFOEgSPE=; b=HVeb/7fy/bd0U4IVXcH7Mur9hmH8llLHiO/+ELzfkf2LQ03SO6+6PvU7J8Zc2bbIxV w45k1YX+9uDgK9RJOAKNZ6UBwqBH8nTDJ0LnHuN64610TCAKWQ4y6HYpjiBP7+9YVPRW g1iUBgPUY6FTxgax/AFMEvmrBlraNRAPHFjdAUXfhUY2CACECFS5ekeBxR2JF6GNVwiN PZH9s1oyxy7AuWmwHxnSiE2vjaVusUk+ETyj3MKxZXA/DmZ0mPdGbEAtIipw3V5j6kZ9 T6SLAXJY/TquCJSsMZ5ShWqitM6B2ylJbqQKJNQRqu87R5DDxBC21TZQOGPV2q6gd8aX 92kg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si4556669plq.198.2018.11.19.06.21.11; Mon, 19 Nov 2018 06:21:26 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729466AbeKTAma (ORCPT + 99 others); Mon, 19 Nov 2018 19:42:30 -0500 Received: from gloria.sntech.de ([185.11.138.130]:38384 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbeKTAma (ORCPT ); Mon, 19 Nov 2018 19:42:30 -0500 Received: from we0660.dip.tu-dresden.de ([141.76.178.148] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOkNm-0007v7-2B; Mon, 19 Nov 2018 15:18:34 +0100 From: Heiko Stuebner To: Damian Kos Cc: Chris Zhong , Sandy Huang , David Airlie , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/rockchip: fix for mailbox read size Date: Mon, 19 Nov 2018 15:18:33 +0100 Message-ID: <7088529.fTnRXqZmiP@phil> In-Reply-To: <1541518625-25984-1-git-send-email-dkos@cadence.com> References: <1541518625-25984-1-git-send-email-dkos@cadence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 6. November 2018, 16:37:05 CET schrieb Damian Kos: > Some of the functions (like cdn_dp_dpcd_read, cdn_dp_get_edid_block) > allow to read 64KiB, but the cdn_dp_mailbox_read_receive, that is > used by them, can read only up to 255 bytes at once. Normally, it's > not a big issue as DPCD or EDID reads won't (hopefully) exceed that > value. > The real issue here is the revocation list read during the HDCP > authentication process. (problematic use case: > https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.4/drivers/gpu/drm/rockchip/cdn-dp-reg.c#1152) > The list can reach 127*5+4 bytes (num devs * 5 bytes per ID/Bksv + > 4 bytes of an additional info). > In other words - CTSes with HDCP Repeater won't pass without this > fix. Oh, and the driver will most likely stop working (best case > scenario). > > Signed-off-by: Damian Kos applied to drm-misc-next Thanks Heiko