Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AA93C54EBD for ; Mon, 9 Jan 2023 08:34:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4768810E291; Mon, 9 Jan 2023 08:34:25 +0000 (UTC) Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE0DB10E290; Mon, 9 Jan 2023 08:34:22 +0000 (UTC) Received: from SoMainline.org (unknown [89.205.225.143]) (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 C25503EBD0; Mon, 9 Jan 2023 09:34:20 +0100 (CET) Date: Mon, 9 Jan 2023 09:34:17 +0100 From: Marijn Suijten To: Dmitry Baryshkov Subject: Re: [PATCH] drm/msm/dpu: sort entries in the HW catalog Message-ID: <20230109083417.5drdfllpm4ythy42@SoMainline.org> References: <20230108211113.200846-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230108211113.200846-1-dmitry.baryshkov@linaro.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, Sean Paul , Bjorn Andersson , Abhinav Kumar , dri-devel@lists.freedesktop.org, Stephen Boyd , linux-arm-msm@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 2023-01-08 23:11:13, Dmitry Baryshkov wrote: > Different entries into the catalog were added quite randomly. Enforce > the sorting order of some kind. It is not alphabetic to prevent the > patch from growing uncontrollably. Why not sort these chronologically based on DPU hardware revision in the match table at the end of this file? Regardless, this patch is going to make it hard to properly rebase DPU additions; see for example patch 4/8 and 5/8 in my second round of DSC fixes. At the same time we should find a solution to the wishy-washy reuse of structs and defines, which may appear the same initially but become mismatched as more features are added (see how I had to split out multiple of these in the INTF TE enablement series). > Thus SDM comes before SC and SM > platforms and QCM is kept as the last one. There are no functional > changes in this patch. > > Signed-off-by: Dmitry Baryshkov > --- > > Yes, I hate such mass-moves too. However the entries in this file are > slowly becoming uncontrollable. Let's enforce some order now (while it's > late already, but not _that_ late). I agree that something should happen, contributing to this file is unnecessarily tough. - Marijn