From patchwork Wed Feb 20 07:52:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10821607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1387E139A for ; Wed, 20 Feb 2019 07:52:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F00E82DAF7 for ; Wed, 20 Feb 2019 07:52:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3EC92DB04; Wed, 20 Feb 2019 07:52:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9256C2DB18 for ; Wed, 20 Feb 2019 07:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8e8xbZIGMD7EuPhCs8ABgcUBoPCLXCF64rmRJBZcmyw=; b=dUn+2Lv3uTqTE7 Kk1O9mTN+1lhBzskI6LiZPEgq3GB0WfTR0TMHLseQlu3vNLJI7mZnWtcYTa4TtQjovKJOS7JuFkOI TFkaGg9b5zmtUs225rV3Vo6jYzrp1C3qw2Zc9B72EO2hJmlfDWAy0KlFOU9g6Ii6AlIKrakxd6WsO pmcl3BbONvpmHqyx4sMuN5aX7X2tlV0J/pUSDtWMAVZUOGXVYw9FYV9UCnbF2oZ4LZra7WXqQ0qHD T9ghYa+ON3CgADPM9DZmF7MJvfuvzBuIb6cvqLeWiRiRi1Lw4QFj5Lpc0bMR64vH+Qsa9BcMeZ1BA S9GGzHTe2S8sfcYq6vZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwMgI-0006mG-13; Wed, 20 Feb 2019 07:52:38 +0000 Received: from mail-oln040092067084.outbound.protection.outlook.com ([40.92.67.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwMgE-0006du-4T for linux-rockchip@lists.infradead.org; Wed, 20 Feb 2019 07:52:36 +0000 Received: from AM5EUR02FT048.eop-EUR02.prod.protection.outlook.com (10.152.8.52) by AM5EUR02HT014.eop-EUR02.prod.protection.outlook.com (10.152.8.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10; Wed, 20 Feb 2019 07:52:31 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com (10.152.8.51) by AM5EUR02FT048.mail.protection.outlook.com (10.152.9.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10 via Frontend Transport; Wed, 20 Feb 2019 07:52:31 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3]) by AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3%10]) with mapi id 15.20.1643.014; Wed, 20 Feb 2019 07:52:31 +0000 From: Jonas Karlman To: "dri-devel@lists.freedesktop.org" , "linux-rockchip@lists.infradead.org" Subject: [PATCH] drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs Thread-Topic: [PATCH] drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs Thread-Index: AQHUyPE7zdLEuuqPkEW4bxazWr4x9g== Date: Wed, 20 Feb 2019 07:52:31 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0701CA0024.eurprd07.prod.outlook.com (2603:10a6:203:51::34) To AM3PR03MB0966.eurprd03.prod.outlook.com (2a01:111:e400:884c::23) x-incomingtopheadermarker: OriginalChecksum:D3EED088A0B4B703399759ED71D3D448A3AA5BDB746913DDE8D5AAE1D070CCDE; UpperCasedChecksum:1C9DA61C68196F2282915394E45E1E2722BE52A976D93F7CFE526274684C6424; SizeAsReceived:8788; Count:62 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [uYInlPeSPVjbqg1kRsDhOq3UNNQTLVPR] x-microsoft-original-message-id: <20190220075215.26157-1-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 62 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031322404)(2017031323274)(1601125500)(1603101475)(1701031045); SRVR:AM5EUR02HT014; x-ms-traffictypediagnostic: AM5EUR02HT014: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(4566010)(82015058); SRVR:AM5EUR02HT014; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR02HT014; x-microsoft-antispam-message-info: xBb/WP6IjV40emBWlrskTSAwQYmatJCrF3hGvZ1pYiXMnN8YaFQzeLWis94SVc8Q MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 54485d23-c432-40fe-8436-6091d627118c X-MS-Exchange-CrossTenant-Network-Message-Id: f31910c0-3b0d-44a7-b5da-08d697085d52 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 54485d23-c432-40fe-8436-6091d627118c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 07:52:29.7325 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT014 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190219_235234_376314_3A9075DC X-CRM114-Status: UNSURE ( 7.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Archit Taneja , Heiko Stuebner , Neil Armstrong , David Airlie , Jonas Karlman , "linux-kernel@vger.kernel.org" , Andrzej Hajda , Sean Paul , Laurent Pinchart , Daniel Vetter Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Rockchip RK3288 SoC (v2.00a) and RK3328/RK3399 SoCs (v2.11a) have also been identified as needing this workaround with a single iteration. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device version") Signed-off-by: Jonas Karlman Tested-by: Heiko Stueber --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 64c3cf027518..14223c0ee784 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1655,6 +1655,8 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) * iteration for others. * The Amlogic Meson GX SoCs (v2.01a) have been identified as needing * the workaround with a single iteration. + * The Rockchip RK3288 SoC (v2.00a) and RK3328/RK3399 SoCs (v2.11a) have + * been identified as needing the workaround with a single iteration. */ switch (hdmi->version) { @@ -1663,7 +1665,9 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) break; case 0x131a: case 0x132a: + case 0x200a: case 0x201a: + case 0x211a: case 0x212a: count = 1; break;