Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5048953rwe; Tue, 18 Apr 2023 01:01:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YUC8XS7RQS7ilPMxSEmXihk4NSmL3wesNJj/AVTKzx00QWRbhHOgC1xa2ViuP2VipaEOSB X-Received: by 2002:a17:902:c40f:b0:1a6:34ea:6bcf with SMTP id k15-20020a170902c40f00b001a634ea6bcfmr1604082plk.45.1681804904176; Tue, 18 Apr 2023 01:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681804904; cv=none; d=google.com; s=arc-20160816; b=kjXOrwYTZ/+zDWwetYNScWEZVcKk8pktXLjo8+ZBEycrT+TA1YJZ7j0FTffRQ5pe5A Lz3urn9/sfVKJQ5IaROqyt3jpykAX204iT/LTBCOB8T9od93yd/ZMHuTf99iINZVy/2E Qojy2O8SQBozWwfOnlGU2OJh3R93dAMCJp2ELP06ndP0OGsrpCuqOnbmMdCoPQxc2hKY Pk5Ll/5dqucsckYZv0Y/YHYezYoBJH6a4cSqyIX5WTp77k7nqK4vPWdzHjZjX/LyZezg VOMMMzhBaGp70ef+QBwUxVRRwWym2RvqjA1CG2n316r/F+zKM2cK3uyLb/dBUMdXxb27 GCmQ== 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; bh=yJD8hA3k1FBWjdSM/Qb3k/ZponhumgXWRsCPcMW0/I4=; b=NIh3Q90GtemZVtbGTPpR+4A3OJvWtFv/7Y4B7YM5QZSNLdkqyAI4kocLNBtee2t6tO ov4NgEZTntZq59LGtpQ0Re54//hwDOd+D3BK9ppkJO0L4Kp3DfwNYpjzrjoAMnWlXO6s Y3aGz/pIr/c2cILkAlk6BP/9hMCNyY3haHj/HYmmZZDY4iNq8MCDogtZsVQUx+wFo0kU hhJ3/rn9B/mNWCzWr3qEhg/mft/3xhz1h64RUhVwsNFX9Q2SU61xp03KPtpXwKdM8PSF VlqU95MsV5575q6T/YAGVwqA8KKkC72IiNMc5rWUCnpY4QUwKoLQkRsSU/1pPwHEX4i1 WyBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a170902778100b0019a7a67d312si13436317pll.454.2023.04.18.01.01.31; Tue, 18 Apr 2023 01:01:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjDRHy5 (ORCPT + 99 others); Tue, 18 Apr 2023 03:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbjDRHyl (ORCPT ); Tue, 18 Apr 2023 03:54:41 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF9F93C2B for ; Tue, 18 Apr 2023 00:54:35 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 7B19A2008D; Tue, 18 Apr 2023 09:54:32 +0200 (CEST) Date: Tue, 18 Apr 2023 09:54:30 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: Rob Clark , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Jordan Crouse , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] drm/msm/dpu: Drop unused members from HW structs Message-ID: References: <20230418-dpu-drop-useless-for-lookup-v1-0-b9897ceb6f3e@somainline.org> <20230418-dpu-drop-useless-for-lookup-v1-1-b9897ceb6f3e@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 2023-04-17 18:54:18, Abhinav Kumar wrote: > > On 4/17/2023 4:14 PM, Marijn Suijten wrote: > > Some of these members were initialized while never read, while others > > were not even assigned any value at all. Drop them to save some space, > > and above all confusion when looking at these members. > > > > Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") > > Fixes: 84a33d0fd921 ("drm/msm/dpu: add dpu_hw_wb abstraction for writeback blocks") > > Signed-off-by: Marijn Suijten > > --- > > It seems like WB UBWC formats are not supported today. Because otherwise > ctx->mdp would be used for writeback. I guess we can add a ubwc member > similar to hw_sspp, when we do add the support for this. Hence this is, That seems preferable to me. SSPP does the same in patch 3/3, and I have been thinking to replace the dpu_mdss_cfg *catalog parameter in dpu_hw_sspp_init with just the ubwc cfg pointer. Likewise dpu_hw_ctl_init also takes the full dpu_mdss_cfg only to take out the mixers. - Marijn > Reviewed-by: Abhinav Kumar