From patchwork Fri Feb 23 11:44:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10237471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E06D460209 for ; Fri, 23 Feb 2018 11:44:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D05BF29540 for ; Fri, 23 Feb 2018 11:44:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C48B329542; Fri, 23 Feb 2018 11:44:48 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ECB9F29541 for ; Fri, 23 Feb 2018 11:44:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 897666EF99; Fri, 23 Feb 2018 11:44:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 82FF36EF99 for ; Fri, 23 Feb 2018 11:44:42 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id x7so1779695wmc.0 for ; Fri, 23 Feb 2018 03:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=cJqYihT+12ge1rm7ibPz4aQ/vjxvF2dIHTv/eCyJ8t8=; b=tGGl1wTinPZDFnMsc4mPB16Ym7ipdKcB9uojCc0hv0/f9+z/1suHUrQNmgJQPYUsUm r9wS6xhkTlebVjR5TUAeN493IkRkIMFDJBugCAlXhlOTQHMLpvw4iZTnAO5XWU/ho6NQ XUUoZUvJERWcOJHPNlxBmLj1d6RoHdRuWopyI0ygJvAUOuocIzjqRis9nPKNFGaiTTfr lkojLQC+PbWnkC2EhUMJcyvuC8rWnbriN0yyhiUVdT/+U5wXv8PM5wL6FTAgdihDPr6h QAbRdupo9rPDawQF1IDE2E6g//bwzWoOaGo+xcXcHBKW8/ZTS7dDCXWw875wOAE4Iz2z xXCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cJqYihT+12ge1rm7ibPz4aQ/vjxvF2dIHTv/eCyJ8t8=; b=TA3tYV7AibbSOwkvNMLYJgOwgUKUEJqw6VqHlLlESVKfc+evGRkg8Ye9BMyP5Jbxzf uS+MnhZ94k1El5cn9HRrbMZrh5hTo4xhFPh4++71nb52PC83yWOZJbojo3xPpKqqB7E5 9i585z2rmUsW9aeNnO6ERWN8AqswMuIXgfyLhiqX4d3W8UZt5iQe/EzJ1oLo5zwET0ny WM3zs03hC2zQw8yNY2U+lbfbETjN20MLTwLv5Uq2zv6aOzoL4niBseU0zx2TAL2pz62s mYND4whqXqB82elncYvRFeFR3W4hSqFGRU4NezLauIUzi/rdQVx4098akL+EdAF1titi 1wpQ== X-Gm-Message-State: APf1xPCk+z1JxDYoEQOHrYCP3jCQ5BCosbqt27EbUR/mS0aQFr0JXHVM Jeseh1xJ4qJgYGzcYVkuouUzntTeVt0= X-Google-Smtp-Source: AH8x2244Lpcly3MQw5qBJ7Cp5URgXirn7iE2mRGmBTCN7PN0ufzSaJNGdF/WL/uHeI0mjOch3SiuOQ== X-Received: by 10.28.52.4 with SMTP id b4mr1630120wma.90.1519386280816; Fri, 23 Feb 2018 03:44:40 -0800 (PST) Received: from bender.home ([2a01:cb1d:4ce:ea00:d172:1f61:8906:cb97]) by smtp.gmail.com with ESMTPSA id 77sm2450280wmt.37.2018.02.23.03.44.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Feb 2018 03:44:40 -0800 (PST) From: Neil Armstrong To: airlied@linux.ie, architt@codeaurora.org, a.hajda@samsung.com Subject: [PATCH] drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs Date: Fri, 23 Feb 2018 12:44:37 +0100 Message-Id: <1519386277-25902-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jose.Abreu@synopsys.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Neil Armstrong MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson GX SoCs, embedded the v2.01a controller, has been also identified needing this workaround. This patch adds the corresponding version to enable a single iteration for this specific version. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device version") Signed-off-by: Neil Armstrong --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index a38db40..f5018f9 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1637,6 +1637,8 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) * (and possibly on the platform). So far only i.MX6Q (v1.30a) and * i.MX6DL (v1.31a) have been identified as needing the workaround, with * 4 and 1 iterations respectively. + * The Amlogic Meson GX SoCs (v2.01a) have been identifies as needing + * the workaround with a single iteration. */ switch (hdmi->version) { @@ -1644,6 +1646,7 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) count = 4; break; case 0x131a: + case 0x201a: count = 1; break; default: