Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4923491rwr; Mon, 8 May 2023 15:03:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53eH72U/AcaVu7qPwLPthNRHcKY6xZiR8GX69U2dxxBU2kaOawWhjEzJFb+L92ASFCI9F+ X-Received: by 2002:a17:903:483:b0:1aa:dba2:d155 with SMTP id jj3-20020a170903048300b001aadba2d155mr11408847plb.48.1683583429553; Mon, 08 May 2023 15:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683583429; cv=none; d=google.com; s=arc-20160816; b=IOKUR0MwJQLas/Tb0CI3n5n8xxvP/s51u3Z+8QDc5xMzzZ7klRbIEpm/BwzpJVq/tB fXdCntdmfMNBaHJrsXBOjDrunbKAQh0peNw9u2gk5bHdMrDBozQJODqFmk+adk7mIxU/ sHcDPqOciMNm9xXdhgSKPpTRN83VdhPrpxwvQYYFHn9H/zhV8QIg9yh+bw0PC9uVfxk9 eIqI5K/MNOw8ZZtKtAy8R2htfHLk9pH8/k2l8rdYT3q8lr9a8pOAJWKkdAJwY+zBzK06 Hw7TBfE+b/727VZIACm2wVTszr9rO9gpjhKUWSMaQC1BUM70yBQKxWaasLJEO6U2LJ4n 9chA== 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=h8hZ4vXScVKpcwkPlWKbpiS2wxwQ1hgEfmE8yckPdp8=; b=R5xxRzjcaP2tcvuY8/l/WgS0abLRo4MHSfB9THfsOixIJ5FluwYHBsTIrcbh2Zn4BE E1r6fgv5hCSeym1rhX7nDS5yVj01cufLlfKzh2zCh6nZZSzwAT8taXGsVRmQVnW+ZlgU 28sioO49ihtodk/rffCxSvxzQjSoWcWYNsfzmKULPOLZpO898DqFg5c3lp45EChKx4cz cA4DjZyfch6yUMUEc9zEvRGr3yiwmqqd2xKO67Fk/tneQJz6NSc9WznoIpU5NHbBMRcF uqV8VjNLQC58UcihrJa9q0uC9xtjZseC/keAw39C7mbXe3OOCPuFSjsxhWdWc/fWQV1/ v8aw== 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 iy9-20020a170903130900b001ab1411f3e6si3679194plb.260.2023.05.08.15.03.36; Mon, 08 May 2023 15:03:49 -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 S234078AbjEHVuj (ORCPT + 99 others); Mon, 8 May 2023 17:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233701AbjEHVuh (ORCPT ); Mon, 8 May 2023 17:50:37 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D28549FE for ; Mon, 8 May 2023 14:50:36 -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-r2.th.seeweb.it (Postfix) with ESMTPSA id C5C0D3F5A5; Mon, 8 May 2023 23:50:33 +0200 (CEST) Date: Mon, 8 May 2023 23:50:32 +0200 From: Marijn Suijten To: Jessica Zhang Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag Message-ID: References: <20230405-add-dsc-support-v2-0-1072c70e9786@quicinc.com> <20230405-add-dsc-support-v2-3-1072c70e9786@quicinc.com> <1d7ccb5f-55c2-3b3a-df97-2c17beffabfc@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d7ccb5f-55c2-3b3a-df97-2c17beffabfc@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-05-08 14:46:10, Jessica Zhang wrote: > > > On 5/7/2023 9:00 AM, Marijn Suijten wrote: > > On 2023-05-05 14:23:50, Jessica Zhang wrote: > >> Add DATA_COMPRESS feature flag to DPU INTF block. > >> > >> In DPU 7.x and later, DSC/DCE enablement registers have been moved from > >> PINGPONG to INTF. > >> > >> As core_rev (and related macros) was removed from the dpu_kms struct, the > >> most straightforward way to indicate the presence of this register would be > >> to have a feature flag. > > > > Irrelevant. Even though core_rev was still in mainline until recently, > > we always hardcoded the features in the catalog and only used core_rev > > to select a dpu_mdss_cfg catalog entry. There is no "if version >= X > > then enable feature Y" logic, this manually-enabled feature flag is the > > only, correct way to do it. > > Hi Marijn, > > Understood. Thanks if you can drop the paragraph. > FWIW, if we do find more register bit-level differences > between HW versions in the future, it might make more sense to keep the > HW catalog small and bring core_rev back, rather than keep adding these > kinds of small differences to caps. That is not up to me to decide, but I do agree that DPU is currently "one big mess" where lots of things are hardcoded in the catalog (which isn't a bad thing, these things won't change but it does make it harder on us than if we could dynamically state "every DPU between these two revisions"), and certain other things are/were read back from hardware registers. As well as the sub-block feature flags that pain us :) - Marijn > Thanks, > > Jessica Zhang