Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4839955ybl; Tue, 4 Feb 2020 03:00:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyDu+POvPTnmeHoHqtkNehpTzAkwYzM8ePMgszfer1G1IxFDg1g5IgXUP/nuVrxMA35lRNm X-Received: by 2002:a9d:5c1:: with SMTP id 59mr21693910otd.192.1580814019099; Tue, 04 Feb 2020 03:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580814019; cv=none; d=google.com; s=arc-20160816; b=YXzfOrlpqQ0SJ2loc85n813bqePYYnji1SebJUjnZSyyt374xUeI+w4e35UVVt+1xI A6lsmyy6VYvkwx/rNh1QckfLyls/vQ8NsT47sTTTK9BjNhnstZi7lvXfV7p6E4JfHi6u SZcO3DlpX9vkWU5LIxHr0FpB4iLLyhXyL1tIfFcYpPsaoy5+E6nOwSGhkPmz+oL4ANIA zFgGfRmAj2YVjLvc3YLUktvf73fiYvPWkJhxZhjExGgQBU9NZqJPCc6yv9jceQ4uFjV5 zGHyYuzuoH8DW/9t60M0kI1tZWsxqLW56rLvBiiPaaX4wjuPqihVn4KF6WCcwbekD5ek s0/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YL3TO9ZpKBY8+YOVx7GVmXHwa9ZG4OtIovpotqZSOvQ=; b=m90nB9GTFDs1II0YyHFitNEYagZ4Tix0d//huFmxmcJc8ZzjX+tfMEAjS15CubOuOB m7jWUFdqiqPcXoGsRvbwnr8VX1o7IZTtufj7KC+W/z/7Zm7nRKRvPeayND58P9WPImn4 74k9BfGtTGDywt1Ji8pD0eAIrV1RcxGkFFdlu1AxRzsXLkqFTdtvktXcXVS+1ZDxrGMN K3QfbObgC1vzWZFzRfaiwBNxEAxpEGKvhTuyR3q27nEzoLLBqoF8W9CCDCDAh0NFq927 NODL1LTT8NP0sJ8Qy0f3c/PdE3IQzkDsLD9YPXyAefUXvVlw5i/Pk2VVbzGzfmxb4Nr6 tU+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i0jtLvBB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si11108894otp.107.2020.02.04.03.00.07; Tue, 04 Feb 2020 03:00:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=i0jtLvBB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727174AbgBDK6m (ORCPT + 99 others); Tue, 4 Feb 2020 05:58:42 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46100 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbgBDK6l (ORCPT ); Tue, 4 Feb 2020 05:58:41 -0500 Received: by mail-qt1-f196.google.com with SMTP id e25so13917962qtr.13 for ; Tue, 04 Feb 2020 02:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=YL3TO9ZpKBY8+YOVx7GVmXHwa9ZG4OtIovpotqZSOvQ=; b=i0jtLvBBX8r5QFc0r7Hxo2IZOc6yvj9C31xPCO1shilPLnf2bgJo2m6Tz7Lgh3spwt tnKqB4gxkprzhxpFv6FFGHeXmydAtHjxmf0aefNbF9p+ihxiajkPn1gY17dmT1J4+vym SErflyV3b6IxZovmGu7nMrHcy8kBkMAgMvM5vZ8FZ+eZ8HDqAEEczfSp/WMNHoejJYfM lyLrVQTvEcYf2IES4Z3MPN+Vosc+DOGCjPIfkEGjJBPSMC+/zMLUNHbNahIE5qmE9J9a jZUN3yRHQOcgCFTynkHYZJp4g/5Q4fTQPU8VZy3I0/R/vlKdXcVL8w/muhJKDi58nv9Z vp3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=YL3TO9ZpKBY8+YOVx7GVmXHwa9ZG4OtIovpotqZSOvQ=; b=nCubRDI+m4ro20fJweLp8C1ihvl8q7B+4Yg+hFC35O0vN8vHmllvsDX+gnK+x+aUho YgSJNbDsDG6dGK+D+JN4w7w4CIqc0QwGL8Wl1Lmb+Tqpyl543ztnoqvyy6HhUEXGZUqc Lbgehq4z/6meTJqUBnxyYKxz63bjemItUExIfX7Dkkb9OLL0XGrgHrY2S9bAqOuDIAlg bJagKanaqT+IBLO+GFE13TsEwf36gK5ZSGHDAE2zGCZNQEmDj963zuqasibYZG/JMNnj PVeLkkqUHuEYNb2J024ohcHPcup9OdHJgbpW8NNPkEv0Giv9RBy8DXZ+UsxcGfUBStPc d18g== X-Gm-Message-State: APjAAAXA/r9NORv7v60yWy+7tY010vz8l/ts7aSO+XGQsLf8caPJUOd5 YaWKAnU5BUEM3f2ke6u9Ht2TRQnYqcEv8fDfyvaSdg== X-Received: by 2002:aed:2bc2:: with SMTP id e60mr28271222qtd.115.1580813920706; Tue, 04 Feb 2020 02:58:40 -0800 (PST) MIME-Version: 1.0 References: <1579601650-7055-1-git-send-email-yannick.fertre@st.com> In-Reply-To: From: Benjamin Gaignard Date: Tue, 4 Feb 2020 11:58:30 +0100 Message-ID: Subject: Re: [PATCH] drm/stm: ltdc: check crtc state before enabling LIE To: Philippe CORNU Cc: Yannick FERTRE , Benjamin GAIGNARD , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre TORGUE , "dri-devel@lists.freedesktop.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeu. 23 janv. 2020 =C3=A0 10:50, Philippe CORNU = a =C3=A9crit : > > Dear Yannick, > Thank you for your patch, > > Acked-by: Philippe Cornu > > Philippe :-) > > On 1/21/20 11:14 AM, Yannick Fertre wrote: > > Following investigations of a hardware bug, the LIE interrupt > > can occur while the display controller is not activated. > > LIE interrupt (vblank) don't have to be set if the CRTC is not > > enabled. > > Applied on drm-misc-next. Thanks Benjamin > > Signed-off-by: Yannick Fertre > > --- > > drivers/gpu/drm/stm/ltdc.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > > index c2815e8..ea654c7 100644 > > --- a/drivers/gpu/drm/stm/ltdc.c > > +++ b/drivers/gpu/drm/stm/ltdc.c > > @@ -648,9 +648,14 @@ static const struct drm_crtc_helper_funcs ltdc_crt= c_helper_funcs =3D { > > static int ltdc_crtc_enable_vblank(struct drm_crtc *crtc) > > { > > struct ltdc_device *ldev =3D crtc_to_ltdc(crtc); > > + struct drm_crtc_state *state =3D crtc->state; > > > > DRM_DEBUG_DRIVER("\n"); > > - reg_set(ldev->regs, LTDC_IER, IER_LIE); > > + > > + if (state->enable) > > + reg_set(ldev->regs, LTDC_IER, IER_LIE); > > + else > > + return -EPERM; > > > > return 0; > > } > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel