Received: by 10.223.176.5 with SMTP id f5csp703997wra; Fri, 9 Feb 2018 05:59:36 -0800 (PST) X-Google-Smtp-Source: AH8x226xf6J3tP/1JyP+RC0MZGtBmd1Wksd1T0hH4S+5vDI2jS9eBL5pMO/sQrzwKYbiP/NpJ8mh X-Received: by 2002:a17:902:b718:: with SMTP id d24-v6mr636697pls.323.1518184776061; Fri, 09 Feb 2018 05:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518184776; cv=none; d=google.com; s=arc-20160816; b=NnndN/nzsHzBeXP1MNPJDuZlDt2nmVDTPqKsaZxPsrVx3Rnxbg/plzjqPvgKvXoKun lq9H37EPDRaLZJ88wyUfY1dxszAnN4BUAorc3GIWvvH4k2ct+J82k/b8RA+hrX4O8Pt0 nQu9eHqFZL4xb4Bx/j/PsJ7COcf+tYO7BudAHmQM/YhJcQbuelouqa1cyfKLmufe9gg4 ZH4s8WmhL2DvenvL497elu04KyeM6SRHcURtrVklBvcnKVWgjjIvh53p+XrjHFmJ8tpJ 6hTQw5m+0lKYT+HFvnfsd6qA9aXL5Hzysh8nMCro/lXafvpn+I7Pn9Whv6kpdfwcB4Sq m4HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KUp81ry4A4fey7TckUDF3+3bWoqYMZL0PZkVIwqbf6Q=; b=cG33q7uLvU4nlZ3lYOQPHkVmEv4zdtaVQAYvJfp7huWAojP3W4iGGDM5LKkN5r9J5s GLx8jfQMXU0PBRZIZyy6rKNGMOp9otEy71Q+zzHd67dmEONktSy1RtOwDGPupn7XY0HI NNLQNxpti1njsj8Dj1h8B5RwJoksHpWvV7rvDcCS4QHf3qf8etHm6vF7BwZqXPqA7aCw 2Xz2UGVCuNXSfocjx3WVMsWDO1fyRfE8N8VgOzVdrWFy+6oitPOW1WC7LSzIhfZOS0Cj pxsvVyQCdKPXI8CV40mY6JgcJZCqqtpeyxDQr0w44Ve5mAgKsdgVhZReGBHO5qPht8Pb OrFQ== 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 g16si1754775pfh.248.2018.02.09.05.59.22; Fri, 09 Feb 2018 05:59:36 -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 S1753500AbeBINow (ORCPT + 99 others); Fri, 9 Feb 2018 08:44:52 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51560 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753475AbeBINos (ORCPT ); Fri, 9 Feb 2018 08:44:48 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E77D51056; Fri, 9 Feb 2018 13:44:46 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurent Pinchart , Kieran Bingham , thongsyho , Nhan Nguyen Subject: [PATCH 4.9 90/92] drm: rcar-du: Use the VBK interrupt for vblank events Date: Fri, 9 Feb 2018 14:39:59 +0100 Message-Id: <20180209133937.523989272@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133931.211869118@linuxfoundation.org> References: <20180209133931.211869118@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laurent Pinchart commit cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 upstream. When implementing support for interlaced modes, the driver switched from reporting vblank events on the vertical blanking (VBK) interrupt to the frame end interrupt (FRM). This incorrectly divided the reported refresh rate by two. Fix it by moving back to the VBK interrupt. Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes") Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: thongsyho Signed-off-by: Nhan Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c @@ -551,7 +551,7 @@ static irqreturn_t rcar_du_crtc_irq(int status = rcar_du_crtc_read(rcrtc, DSSR); rcar_du_crtc_write(rcrtc, DSRCR, status & DSRCR_MASK); - if (status & DSSR_FRM) { + if (status & DSSR_VBK) { drm_crtc_handle_vblank(&rcrtc->crtc); rcar_du_crtc_finish_page_flip(rcrtc); ret = IRQ_HANDLED;