Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp189436ybg; Tue, 28 Jul 2020 03:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys5y2Eer2hK9H1R5eVW6zJC81nC1eHrN3buuaWPw2NZ9dLnDzEiP+1q1G3HCMGN13rmI+v X-Received: by 2002:a50:9e6f:: with SMTP id z102mr15579595ede.300.1595932300102; Tue, 28 Jul 2020 03:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595932300; cv=none; d=google.com; s=arc-20160816; b=kud2eyu4uQafOHc7G/WBwMKNE04kHBpL7P8JxdvYXZR6M7W9A0Nto/HfgWpppjGNIf 446URufkPm1CLv4fLlL4h7TBLoyoSEN0H49wjPdcFeOqxQTC4bbFZR5Ya5wt4DDD0jtJ vKcjjDbjkGHmlFXJG5q4ji7r6xaz1bsX0XCcAV7OJv8ee6mxNy8TWYCjPr5QjqOt14WN ece8Ndp+yE0lpb9cBASn1AMV/QYVxXJuK6p3E8DuBj/b2i0u86xM2TGvOAKKk5hyQlkh WukDO92zSco+oYg9fbb7IHUKOvLKlB1/1qG84cvZvNY/b4qLrlmaQ1X5keq3fT1JLCjs eHmg== 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=Y5ceSz5kBwvnkS9EauvIKWx1J5tvf5TXDk4n7UdnC5w=; b=ICFGShlTTydjnbP0MOAIhi+a/aR1imXIHFpMUWuXX2IopnkcT7DbnV6bR9QLHrkiL/ em9i3MlgTSpe5PzwLkx5MZt2bxEKSmMQgQdVd23hgd3WRWJtWsFSsdMqKIYtuaXCHbj1 GLXiwt/gdkp2i5tJI79L4inK4Y6WmaWM9CuDE7UEkTKA7gBMbfP9Dj/Wa3a+UPbn62J6 QI/NmOqaT9zFvMl5hpxZ0g/59xyD21WwrOfblj3kuFnmaslTMMnVQUXvQIdt6bbuAFFK rJZb9nH+WZz/TXTdk93OFy42DA3Wm4mETi3OXTTwn09qFbugqVVTuGwifLiVOge30cwG MiVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=k7c86DFk; 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 d2si7583251edr.225.2020.07.28.03.31.17; Tue, 28 Jul 2020 03:31:40 -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=k7c86DFk; 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 S1728636AbgG1Kad (ORCPT + 99 others); Tue, 28 Jul 2020 06:30:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728542AbgG1Kad (ORCPT ); Tue, 28 Jul 2020 06:30:33 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA65C061794 for ; Tue, 28 Jul 2020 03:30:33 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id 9so16799653wmj.5 for ; Tue, 28 Jul 2020 03:30:33 -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=Y5ceSz5kBwvnkS9EauvIKWx1J5tvf5TXDk4n7UdnC5w=; b=k7c86DFkAMXUKdkCigOqF6z+tJn4AYl2YFAMqdxQpX14GIluEQj8pekgNwItnSKj2N /QAd8CsRWLuuqXATjhgH9+qrbs1gpFld3vO5ncwaNXqlFGY49rCbnwRhIlYipEtCt67u sBhVQtty+k7AOvdFftIO1Lty4nZqVGdGhSWByRfV7G0j5SPsdYngxeSdPrMmt8tCr9/Q 49BL0ffavtQhjtvmfcng4fEU9t5tKjBbAYzqmUvnG9GBahvgtOoD0/r+JvtSbOul80JO qnmn4M3ZvTEwgzc9M1yl3PAyy6eynXLRW8We14LFJpaxWRvuK/pm3soZMPyo3178Uz0n tXsA== 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=Y5ceSz5kBwvnkS9EauvIKWx1J5tvf5TXDk4n7UdnC5w=; b=c90TduWsICp7BKhJIOkrhj+XWA556rSQ4fZPCxj/Yiu448T4/Xxs+VRKOVbVPWO5GE bx+ApjjBE9mdqMAV3mWXCjcAhEsVTjcW8Otm42Nt86WDwEqrKRyax1IE88Mgy3k1zAnr HiV3o27LVuEBvxHIUIHErjMGTjBnhjFTY/+IvZg3J3Ot83tjXEx2D6bugBEB9kEy7fQb NdROuT4zKZgPKHx30Ax27/PN/BB/RU2d29jy1/I1yzZbfDsprluC49ef9QnOHfdfRls4 eoxkNREBwCqJuCetk63b+hHSVf5KtyTPqpkMBnFJ3uUu4Dfcxch6KEyLgcuhKrPe8+IS pLzg== X-Gm-Message-State: AOAM533EzdKw6CDND80Bss7iVLTgjDY37TXybXyZdv/JWG+YGKGAAxEC aTSpv++i+inYge+gPlHDSuZokraFFUkCuo4jP7dHng== X-Received: by 2002:a1c:7918:: with SMTP id l24mr3367332wme.158.1595932231996; Tue, 28 Jul 2020 03:30:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dave Stevenson Date: Tue, 28 Jul 2020 11:30:16 +0100 Message-ID: Subject: Re: [PATCH v4 21/78] drm/vc4: crtc: Move PV dump to config_pv 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: > > Now that we only configure the PixelValve in vc4_crtc_config_pv, it doesn't > really make much sense to dump its register content in its caller. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 26 ++++++++++++-------------- > 1 file changed, 12 insertions(+), 14 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index c2ab907611e3..181d3fd57bc7 100644 > --- a/drivers/gpu/drm/vc4/vc4_crtc.c > +++ b/drivers/gpu/drm/vc4/vc4_crtc.c > @@ -290,6 +290,14 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) > vc4_encoder->type == VC4_ENCODER_TYPE_DSI1); > u32 format = is_dsi ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24; > u8 ppc = pv_data->pixels_per_clock; > + bool debug_dump_regs = false; > + > + if (debug_dump_regs) { > + struct drm_printer p = drm_info_printer(&vc4_crtc->pdev->dev); > + dev_info(&vc4_crtc->pdev->dev, "CRTC %d regs before:\n", > + drm_crtc_index(crtc)); > + drm_print_regset32(&p, &vc4_crtc->regset); > + } > > vc4_crtc_pixelvalve_reset(crtc); > > @@ -359,30 +367,20 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) > PV_CONTROL_WAIT_HSTART | > VC4_SET_FIELD(vc4_encoder->clock_select, > PV_CONTROL_CLK_SELECT)); > -} > - > -static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc) > -{ > - struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); > - bool debug_dump_regs = false; > > if (debug_dump_regs) { > struct drm_printer p = drm_info_printer(&vc4_crtc->pdev->dev); > - dev_info(&vc4_crtc->pdev->dev, "CRTC %d regs before:\n", > + dev_info(&vc4_crtc->pdev->dev, "CRTC %d regs after:\n", > drm_crtc_index(crtc)); > drm_print_regset32(&p, &vc4_crtc->regset); > } > +} > > +static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc) > +{ > vc4_crtc_config_pv(crtc); > > vc4_hvs_mode_set_nofb(crtc); > - > - if (debug_dump_regs) { > - struct drm_printer p = drm_info_printer(&vc4_crtc->pdev->dev); > - dev_info(&vc4_crtc->pdev->dev, "CRTC %d regs after:\n", > - drm_crtc_index(crtc)); > - drm_print_regset32(&p, &vc4_crtc->regset); > - } > } > > static void require_hvs_enabled(struct drm_device *dev) > -- > git-series 0.9.1