From patchwork Tue May 8 09:36:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10385869 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 24B6B60353 for ; Tue, 8 May 2018 09:37:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F64C287A0 for ; Tue, 8 May 2018 09:37:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0417A28C9B; Tue, 8 May 2018 09:37:20 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EA86287A0 for ; Tue, 8 May 2018 09:37:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754864AbeEHJhQ (ORCPT ); Tue, 8 May 2018 05:37:16 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53024 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754716AbeEHJhN (ORCPT ); Tue, 8 May 2018 05:37:13 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180508093711euoutp024a6e1f72af91eae271a887bea6eb3498~socK1m5ex1798217982euoutp02H; Tue, 8 May 2018 09:37:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180508093711euoutp024a6e1f72af91eae271a887bea6eb3498~socK1m5ex1798217982euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525772231; bh=T2zKHl27wpdx3jTBMC4cOyGjvO+ZR8YmcnE/QZKg+UU=; h=From:To:Cc:Subject:Date:References:From; b=tKtC3mDSARpAdTJQjzRy/73POT2ELRs8emKXBaGbH7JOhAiPxQAT4gkXVm+ZXJfgy lUMglAC2eJ8SM6/evWgiAl+neUEec9X5DWBIRxQp5LZblCxgj/jdp5G6zcy1iBNhR7 b/OuHYQE04XYYJwKYD5vTkxRUkbg0aQD0IqP18wo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180508093710eucas1p1081b851c92500e914e61770488e5634f~socJ1xVf31516415164eucas1p1N; Tue, 8 May 2018 09:37:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id CA.1C.10409.5CF61FA5; Tue, 8 May 2018 10:37:09 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180508093709eucas1p1199cb512a2f164164657098dd6099906~socI8Iv5l1389813898eucas1p1L; Tue, 8 May 2018 09:37:09 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-9c-5af16fc59fcd Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B0.64.04183.5CF61FA5; Tue, 8 May 2018 10:37:09 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8E00JM8LDVW770@eusync4.samsung.com>; Tue, 08 May 2018 10:37:09 +0100 (BST) From: Andrzej Hajda To: Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] drm/exynos/dsi: mask frame-done interrupt Date: Tue, 08 May 2018 11:36:58 +0200 Message-id: <20180508093658.32011-1-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWy7djP87pH8z9GGbxcamNxa905VouNM9az Wlz5+p7NYtL9CSwWM87vY7JYe+QuuwObx/3u40wefVtWMXp83iQXwBzFZZOSmpNZllqkb5fA ldHXWl5wjbvi+vM9zA2Mrzm7GDk5JARMJI6fPcsMYgsJrGCUuLMpu4uRC8j+zCjx/doHJpii /n/7GSESyxglfu+/wQLh/GeUODtxLhtIFZuApsTfzTfBbBEBZYlV+9rZQYqYBS4xSrw+2c0I khAWsJJ4e+I+K4jNIqAq8eHHWXYQm1fAQuLL/2/sEOvkJZ5NnwfWLCFwk1Vi7oobbBAJF4m9 u3cyQtjCEq+Ob4FqkJG4PLmbBcKulrj5ookFormDUeL+73aoZmuJw8cvgm1mFuCTmLRtOtDX HEBxXomONiGIEg+JpVu+M0PYjhLLzn9kgwRMrMTiHXsZJzBKLmBkWMUonlpanJueWmycl1qu V5yYW1yal66XnJ+7iREYYaf/Hf+6g3Hfn6RDjAIcjEo8vD8KPkQJsSaWFVfmHmKU4GBWEuFV lv0YJcSbklhZlVqUH19UmpNafIhRmoNFSZw3TqMuSkggPbEkNTs1tSC1CCbLxMEp1cA478fl d+Eix1mt9PyXpxyfGXhqU6nwukStwn5b9VCjtVb3r82xMlXKmu+2uebZHUnT72dl5G4Vfzuh e0Bz88XjrawtXZoG867w/3zma7MoM4a75YS7n76HzuJT3Q3uP48tvfXzt0f0we1rktOjsvUr fXO5qj8qJMyXSWLR5nyt3jd7mU9H5G0lluKMREMt5qLiRACTrO9erAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJMWRmVeSWpSXmKPExsVy+t/xa7pH8z9GGXxex2xxa905VouNM9az Wlz5+p7NYtL9CSwWM87vY7JYe+QuuwObx/3u40wefVtWMXp83iQXwBzFZZOSmpNZllqkb5fA ldHXWl5wjbvi+vM9zA2Mrzm7GDk5JARMJPr/7WfsYuTiEBJYwihx7n4rE0hCSKCRSeLpxVwQ m01AU+Lv5ptsILaIgLLEqn3t7CANzAJXGCXav3WxgySEBawk3p64zwpiswioSnz4cRYszitg IfHl/zd2iG3yEs+mz2OfwMi1gJFhFaNIamlxbnpusZFecWJucWleul5yfu4mRqC3tx37uWUH Y9e74EOMAhyMSjy8Pwo+RAmxJpYVV+YeYpTgYFYS4VWW/RglxJuSWFmVWpQfX1Sak1p8iFGa g0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgVE5+Mb10kc5K1OC7f7n1T2ZseTjk3+3tCM3 Feuuv/LuJaeDW9wx1fqi3ZocR383LpKLDeVIPLDg2auo0w/bf+6M8LjIZ6Whqf5tzon10jy3 Tvz84LXxVFCF1p+X0/+zXNa6f3KBAOdV9QVLjcJz/sSuWN8aXOG4eX6qtUbZyahfwb97xZTb mNOUWIozEg21mIuKEwFw/fPF8gEAAA== X-CMS-MailID: 20180508093709eucas1p1199cb512a2f164164657098dd6099906 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180508093709eucas1p1199cb512a2f164164657098dd6099906 X-RootMTR: 20180508093709eucas1p1199cb512a2f164164657098dd6099906 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DSI driver is not really interested in this interrupt. It causes only unnecessary code execution of interrupt handler and could possibly cause FIFO overflow - as it triggers DSI interrupt handler to process next DSI transfer. With this patch we will get rid of about 30 IRQ handler calls per second. Fixes: e6f988a45857 ("drm/exynos: dsi: add support for Exynos5433") Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index eae44fd714f0..7c3030b7e586 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1264,15 +1264,15 @@ static irqreturn_t exynos_dsi_irq(int irq, void *dev_id) if (status & DSIM_INT_SW_RST_RELEASE) { u32 mask = ~(DSIM_INT_RX_DONE | DSIM_INT_SFR_FIFO_EMPTY | - DSIM_INT_SFR_HDR_FIFO_EMPTY | DSIM_INT_FRAME_DONE | - DSIM_INT_RX_ECC_ERR | DSIM_INT_SW_RST_RELEASE); + DSIM_INT_SFR_HDR_FIFO_EMPTY | DSIM_INT_RX_ECC_ERR | + DSIM_INT_SW_RST_RELEASE); exynos_dsi_write(dsi, DSIM_INTMSK_REG, mask); complete(&dsi->completed); return IRQ_HANDLED; } if (!(status & (DSIM_INT_RX_DONE | DSIM_INT_SFR_FIFO_EMPTY | - DSIM_INT_FRAME_DONE | DSIM_INT_PLL_STABLE))) + DSIM_INT_PLL_STABLE))) return IRQ_HANDLED; if (exynos_dsi_transfer_finish(dsi))