Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1873668pxb; Fri, 25 Mar 2022 07:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhhCy3GXyybqyWGcvV6MLPa4V+mFgpNnNsNr+U5jtyaDl1ePv/byuBNUajWs75+Uni9eMh X-Received: by 2002:a17:90a:7f89:b0:1c7:cabb:cba7 with SMTP id m9-20020a17090a7f8900b001c7cabbcba7mr8162432pjl.181.1648217439938; Fri, 25 Mar 2022 07:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648217439; cv=none; d=google.com; s=arc-20160816; b=pm5JsNMg5tUcUff9Pez46H1fSItpAGXDCPZy1A7jVyVdlrRIT1jk9CUCtSC/YTxkt9 5SxTbhW0zI8R1ShEICEfCuTmX5lhPHXeJjrvhs89uWOLMdaYMphi+mAYx83cm/m7XpKe uH07XXV++1pnxNOkpECyKh4EiHUc0irN86UYf2jr8xk2m3X7Zn9tyol0njzuE3kC/luq 2yxPQm61/i716LTKqwB7sKLAQQqfnKB5kGpPDG1wd3Yq9hBLAip9kWn/1wWxkWmZSxng S++YNFIEmMGE34wCOQHODUNYVGSSOyevekVEF1T5hwVsdtFjbIYl1aep4N/K9fjB8Dci hIlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IMJ2pgZICoEjZoJ0TApuj9SdQcaXcDOjFRrhumjj84Y=; b=dg4Kf6w7WGjBG1c/jExpRhOoFIM/CVRfQgL7F0dTWS9lEm+jgmTzc4uEDO0vDCZGz8 lSBv/v+Y8MvfA9IN7RUbiR2HVODlLnPiOqNy3W6yA6YYIN+sqK0fO1HP8QeT6LLcE3XZ uTSNIjWNIoR4zxbT4Bmr17hSiA0iyjvXGH19iuYXJ9Wlrczeoh54LNWr+zL+rbINlOu1 ftkMaqK+ssmvRUPpqT7avnpL8DeWFkbGemaTeOeMAAc7E06ZrRfTN2ceFHaxjaOXOrff Xr2z8ImsHNbqmJEBYBtkNIARwQn6hJmkaml7nOmy1BpoQ8NAy9h4HKnBZQuS66nsnJuU MvDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5CiytF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18-20020a170903025200b00153b2d165d4si2363351plh.476.2022.03.25.07.10.19; Fri, 25 Mar 2022 07:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5CiytF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351675AbiCXQ03 (ORCPT + 99 others); Thu, 24 Mar 2022 12:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347656AbiCXQ01 (ORCPT ); Thu, 24 Mar 2022 12:26:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77CBF6C974; Thu, 24 Mar 2022 09:24:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0D9C66187F; Thu, 24 Mar 2022 16:24:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5D80C340EC; Thu, 24 Mar 2022 16:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648139094; bh=z0SKDKFfLXgUlaEweN3w20sozNkj9PoC13UdkCxFdwo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R5CiytF7K28XTl+QYrKnUKx8xPaqAdeKr/pOrLvZqjXaSfUjSlummA2mDlVLb/1kU ss9g+9wYHpT9GUXhMkgQ93Y9oGdUXn117X5AXWlBgzDECVEV0MbezFnVT/4OvQ+LrZ vuYGAvlJrvxvVlABtIeQn09HUWGeR4H4xeIRoLnWul2hpCUUva5FvYxzeF76LTJwSP MdS+LK1B3kGU/L39H8wHcfTTEO82bYO3syshdHL/HiJr/ouOVtSxFvUUJ5D8wf+fp1 /RCe4jxepKwgrD8nQpkodRwmxOzzRqyLnGAonmL2VRB+Dkj2hkCfhEJ5uOImEH30Kl WP97O+iKdXFKw== Date: Thu, 24 Mar 2022 21:54:47 +0530 From: Vinod Koul To: Marijn Suijten Cc: Rob Clark , linux-arm-msm@vger.kernel.org, Bjorn Andersson , David Airlie , Daniel Vetter , Jonathan Marek , Dmitry Baryshkov , Abhinav Kumar , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: Re: [REPOST PATCH v4 06/13] drm/msm/disp/dpu1: Add DSC support in hw_ctl Message-ID: References: <20220210103423.271016-1-vkoul@kernel.org> <20220210103423.271016-7-vkoul@kernel.org> <20220217222024.mf4cmgtpvvg3bftm@SoMainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220217222024.mf4cmgtpvvg3bftm@SoMainline.org> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-02-22, 23:20, Marijn Suijten wrote: > On 2022-02-10 16:04:16, Vinod Koul wrote: > > Later gens of hardware have DSC bits moved to hw_ctl, so configure these > > bits so that DSC would work there as well > > > > Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Vinod Koul > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 11 ++++++++++- > > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 2 ++ > > 2 files changed, 12 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > > index 02da9ecf71f1..49659165cea8 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > > @@ -25,6 +25,8 @@ > > #define CTL_MERGE_3D_ACTIVE 0x0E4 > > #define CTL_INTF_ACTIVE 0x0F4 > > #define CTL_MERGE_3D_FLUSH 0x100 > > +#define CTL_DSC_ACTIVE 0x0E8 > > +#define CTL_DSC_FLUSH 0x104 > > #define CTL_INTF_FLUSH 0x110 > > #define CTL_INTF_MASTER 0x134 > > #define CTL_FETCH_PIPE_ACTIVE 0x0FC > > @@ -34,6 +36,7 @@ > > > > #define DPU_REG_RESET_TIMEOUT_US 2000 > > #define MERGE_3D_IDX 23 > > +#define DSC_IDX 22 > > This define does not seem used in any of these patches. Is that > intended? This should used in the below case you pointed, updated now > > static void dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx, > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h > > index 806c171e5df2..9847c9c46d6f 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h > > @@ -40,6 +40,7 @@ struct dpu_hw_stage_cfg { > > * @merge_3d: 3d merge block used > > * @intf_mode_sel: Interface mode, cmd / vid > > * @stream_sel: Stream selection for multi-stream interfaces > > + * @dsc: DSC BIT masks > > Bit masks of what? Enabled DSCs? A more verbose doc-comment is desired > here, matching the rest of the fields :) - something like "DSC block(s) > used" similar to merge_3d? Or copy the docs from `dsc_mask`, which is > the value that is written into this field. Updated -- ~Vinod