Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp231098ybg; Tue, 28 Jul 2020 04:41:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYOGYJJ15VUaBNkQJoP6+7MX2nCbMQBxawWwIoI0pYNSeyxnZy0rW3yGwUxOivfh3IkqHV X-Received: by 2002:aa7:c70b:: with SMTP id i11mr6276042edq.272.1595936518061; Tue, 28 Jul 2020 04:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595936518; cv=none; d=google.com; s=arc-20160816; b=NIO2ehJYrxbvUGGMfhAOBlANW/VwjZCqAg7swwkqC0PikqSn2lBxEDpU5+x5LavSO1 2kiJk+KiRoF3dRqzxhUnbOsIyq3xpUyjN7OC8ayOR5Dw0vBpz10AqrBTCR7BXSdNE+He Ovt6aFLne0WEHdRJRRZEz2X7fzCVrjVgB8Cvc3OEKKSURF2eLLnRk5ClUAckj3Om99el L4iNJCiXAxBn8ypjUnCRgSs/9f1+ppfg5CyuCZZof3SoQLwUnxp7mj5SGqPiWZW3Ft2/ PKdBJuPKNQJBZe9W/Q0AbcKCE1nLu2E3IhoI/DKXtnENf1HkyguSeemCbOKENwM7J3Pv H8KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TarT8FJy4xxh1Gu95tM1MOrQBSTLu+L0cNKerMl6tuM=; b=ZxDY9ibmIdcLv4J2B5gkHM5wS8nPlyG7iIz9Z5nsEOVXrRdST/hDewDLV7jZTjOv5F 5ml62wXdjI247mAJAtizg16YVo/DSv8wuUGUmgkieEqtkbxECvoUYPAilnO/A49fsPzq auKqmP4LBCJ2chk5kUZaWDSSbVsTURq/3KHWAGfu90r5FY9cBs36mjkdILNxw9c2jK2j qdJdNaaoeaMF+nDYn7wnjDEV2aDKP8dYxlbsoRAfyQvBDIk16ExhUyzv3D/DFmBsK5vP vk2+aQBU3FOdunpG4nN0aBBOlvly6uXFDSZwVT+Cjpgl88m7M12Wqs4ErV7FTnpklX6U VnHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=BIlUz2QY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si7124240edh.348.2020.07.28.04.41.35; Tue, 28 Jul 2020 04:41:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=BIlUz2QY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729197AbgG1Lkn (ORCPT + 99 others); Tue, 28 Jul 2020 07:40:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729144AbgG1Lkm (ORCPT ); Tue, 28 Jul 2020 07:40:42 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6247FC061794 for ; Tue, 28 Jul 2020 04:40:42 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z18so14404553wrm.12 for ; Tue, 28 Jul 2020 04:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TarT8FJy4xxh1Gu95tM1MOrQBSTLu+L0cNKerMl6tuM=; b=BIlUz2QYxFWzzF/PGXouifAVShEdvViFuBcAvy11rSq1/UB3TPjN7cDoyPiYLXMGbE wMbfEszWmq6MQz43NGegaGCTgKkNGFFlEd8U7O868CP4tprwvtl5q9N3//jweqWAoxxc ViHZhLSVULlg1K/JYXV3GQJnuOpvZ5ihctOpovBbCRV+fC2WP5VRqheKMrgizTs8AaEm TKpDzIjehfn+zwRq/MR79ctzf0Bpb6beoozBqRgNhS1l1GCds1QqS4WVVolNx+gvcyUk p5KoK5+g+A4xIfsgxbPDcFl5QtWVgix3eV/Y5LTJ9A/Od5o+TRrdAyC2L/e9YgXNazw7 XlMw== 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; bh=TarT8FJy4xxh1Gu95tM1MOrQBSTLu+L0cNKerMl6tuM=; b=KB3mJ25yVOQjBkLr1pH01KlwiWrKA2U+vwixMWefjgUuJkjr6ssaXgs6g2BW7T5H6D 57wHwjdMcbJ03timEvGt0yvQ+rdSrcaAxnOZRCvjgRSlMReYSFzu7HN/Mltu/xMfKqdS KcgVDcVMpqXn3cMgyG57+obd4Mo71z0uqjbKJ9Xqt0GJ8MTIE84Ozs7S1KAb6XWg1bpj y9GepMl/1aE4jAMNlLnq5xf2nbuscvEUMhujjEhzZOCAcHdUk58rIN4kVMeL7MY/BKPM MMVG5uvgYwhQhfTg+TllifPrYFq5OFE54SLij6/auzv5RnZl/ZuyytozgfbDv+I4Ufps 9P1g== X-Gm-Message-State: AOAM531PcDN3InuiyIFncYF45XarmSS3g2EjcIfYho7O7c6Ks5Z6OURv TvEtBDF679oOz1JMalNIoSfJqgNmD3s5NU1W7bjeyA== X-Received: by 2002:a5d:6681:: with SMTP id l1mr23497356wru.47.1595936441188; Tue, 28 Jul 2020 04:40:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dave Stevenson Date: Tue, 28 Jul 2020 12:40:23 +0100 Message-ID: Subject: Re: [PATCH v4 30/78] drm/vc4: crtc: Clear the PixelValve FIFO on disable To: Maxime Ripard Cc: Nicolas Saenz Julienne , Eric Anholt , DRI Development , linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, LKML , Tim Gover , Phil Elwell 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 Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > In order to avoid a stale pixel getting stuck on mode change or a disable > / enable cycle, we need to make sure to flush the PV FIFO on disable. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index 7b178d67187f..13fe0e370fb3 100644 > --- a/drivers/gpu/drm/vc4/vc4_crtc.c > +++ b/drivers/gpu/drm/vc4/vc4_crtc.c > @@ -408,8 +408,7 @@ static void vc4_crtc_atomic_disable(struct drm_crtc *crtc, > if (vc4_encoder->post_crtc_disable) > vc4_encoder->post_crtc_disable(encoder); > > - CRTC_WRITE(PV_CONTROL, CRTC_READ(PV_CONTROL) & ~PV_CONTROL_EN); > - > + vc4_crtc_pixelvalve_reset(crtc); > vc4_hvs_atomic_disable(crtc, old_state); > > if (vc4_encoder->post_crtc_powerdown) > -- > git-series 0.9.1