Received: by 10.223.185.116 with SMTP id b49csp2509383wrg; Thu, 15 Feb 2018 12:44:25 -0800 (PST) X-Google-Smtp-Source: AH8x225267L6UttaQWO+R/X/3mumeWHdsuqFlllwDdK39qqRGdNq47pzK/Tq+5HgPxemMFjbpTtx X-Received: by 10.99.112.20 with SMTP id l20mr3273539pgc.412.1518727465358; Thu, 15 Feb 2018 12:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518727465; cv=none; d=google.com; s=arc-20160816; b=wDlyb+J2MBWosVl0TW+/5O6UE9HGZ1+ZOllrukcBHcw/mqmEcSU4iqjT6T6rKidtHC i6TEJkPtUArJz1/s/hJUPAFXYL/9/HOkeXAqk8XLXUk8+SxLLLbJBrud7pD3VF9l4oMG ryNNUKYpcTSiKc1t3IRx1+vyiF4EGQKSxzbUCHUoSGMdFCNCeyKTwm/hr0ePTHo+7iy/ 8EQTtJepCAyPJRT6MeedQzOgoYQ96CEBuZWx1RdUG1su2a/VGDmj98wtlCKjBOZBK0Gh FS2gSH3NHGHFR9jcZbS+Z2MPg0452SKPmxY9KYMLswq5agnq23qvSlUofKIojon+1fnw BRRg== 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=ngFZC4OhjR8raqX8m3ym+HUlqXvp9ETRfL7HIvRqziY=; b=mYx1iS05m525K+EnuHwueXxbCQCibxJbzyzpQxLGUQSMUxbv8QseLiD2h3DdnLS05T CjxCy98bAlQcUrGlaieSpaByjhydGhE7iOoJ6Mr5j/yKGqvtxxkE2VrPDQIlk4bEVMSu GeOr5uYYF+EHMuOI3yaIGpfpHbiNlzdWdg/YCeCyogn5bx5p/1xVBlbZG8qe/YAwT8EB cdjU23VXHY9c0CymB8iAuGF3HD4L7ORWwoZaUsllVICw5yZ3La1YDyCJRw2+S7uxS52E Kja6OKBKSZd8cSZbp0bd+QF+vM2DSCvlyohY5dvIcdnKf5JNVqIcnmgp4VVJzXrdwrQy g86g== 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 u23si6740021pgv.642.2018.02.15.12.44.10; Thu, 15 Feb 2018 12:44:25 -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 S1162077AbeBOPVb (ORCPT + 99 others); Thu, 15 Feb 2018 10:21:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48886 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162036AbeBOPV0 (ORCPT ); Thu, 15 Feb 2018 10:21:26 -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 748848E2; Thu, 15 Feb 2018 15:21:25 +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.4 024/108] drm: rcar-du: Use the VBK interrupt for vblank events Date: Thu, 15 Feb 2018 16:16:21 +0100 Message-Id: <20180215151225.926384928@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151222.267507937@linuxfoundation.org> References: <20180215151222.267507937@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.4-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 @@ -531,7 +531,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_handle_vblank(rcrtc->crtc.dev, rcrtc->index); rcar_du_crtc_finish_page_flip(rcrtc); ret = IRQ_HANDLED;