Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1424198rwr; Thu, 20 Apr 2023 15:04:36 -0700 (PDT) X-Google-Smtp-Source: AKy350Za/4v9I35ivLkqparjKTzCoa20aWsE95r3oeC9WT/GNtq53PiLbdq/I7dog+gIpxz/qetD X-Received: by 2002:a05:6a00:1749:b0:63b:64f7:45a0 with SMTP id j9-20020a056a00174900b0063b64f745a0mr3468929pfc.12.1682028276249; Thu, 20 Apr 2023 15:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682028276; cv=none; d=google.com; s=arc-20160816; b=MlngPoQCmLNlALhoc1j4hdAouL7hwdAVbxW5bsW3XeBfaBZke0MU4VHduJeaX+jrS0 Kx51BgJmwp4xEBXc8QvEtWDkg6TQao/xlULLELVRemoTvu4655AI0n+7rYUejLQIYCak 4tKXqQKNCVmEBd6nKM+ElB0/oJnu+3oPM+ZxcYMvTsTIf3QjZHklvtMEYdTdwbIdF9Qo gePSDqa8uWCm8Y0r1Nj7JJHvVxBvCx3gQ0cAXATNgC/hNkBJs5uwy2BhsWb8pLhuOV+x 8xOdtG6He5NT/p/qipZQD3hUXUWhxZdtywUhb6Ap7Q4NWfnvD4s1EwTifK49EZzXcGdB mRVg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BmAi39/gc4uVlHv1482b2EFgusc1/SAG92/BvgtoNss=; b=zKDAREj4yFqbXpq+eV5AJ7n1i4jlvRPGVl2YHbv6tLJYiywdjtcMQi4KHCiFrKCl53 7LmwQ1hBkuKr6oWl/voPrumQmov9R/IvwbZjK6fYq9cGFk2NECd5ICrO2T5xo6liXHIi 4afRONsaOQipGbvjFKLY5E0YdR81abjKqZ0GUTPU1y5YkyLKSF6wgC+fCDdLTbk3eVGs kQ6Nmg/XFk1PfLZ20FIOEIs9vNWRJPtL9jPw4gd8wF4S31cmKMiXO4FOMgCG93ivnMCa zguLk1TtUTW0K9dF4JvDEyoUWNIWNdCdpUFxru67IqcQJDCYr8QzO6MccS5p+mx9dtvR f7sw== 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 g70-20020a625249000000b0063b7e907032si2567064pfb.271.2023.04.20.15.04.22; Thu, 20 Apr 2023 15:04:36 -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 S231636AbjDTVvm (ORCPT + 99 others); Thu, 20 Apr 2023 17:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjDTVvk (ORCPT ); Thu, 20 Apr 2023 17:51:40 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [5.144.164.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84041FFB for ; Thu, 20 Apr 2023 14:51:39 -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 B91F320548; Thu, 20 Apr 2023 23:51:36 +0200 (CEST) Date: Thu, 20 Apr 2023 23:51:35 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Konrad Dybcio , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Adam Skladowski , Loic Poulain , Bjorn Andersson , Kuogee Hsieh , Robert Foss , Vinod Koul , Rajesh Yadav , Jeykumar Sankaran , Neil Armstrong , Chandan Uddaraju , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jordan Crouse , Archit Taneja , Sravanthi Kollukuduru Subject: Re: [PATCH v2 11/17] drm/msm/dpu: Disable MDP vsync source selection on DPU 5.0.0 and above Message-ID: References: <20230411-dpu-intf-te-v2-0-ef76c877eb97@somainline.org> <20230411-dpu-intf-te-v2-11-ef76c877eb97@somainline.org> <20fab838-e05b-163d-aa72-bd8235df9f2c@linaro.org> <38030486-f08a-33e6-f8d1-3f4de379a75b@linaro.org> <3d1b08f0-adf9-8815-46f7-c31b54a7140c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3d1b08f0-adf9-8815-46f7-c31b54a7140c@linaro.org> 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-20 04:03:31, Dmitry Baryshkov wrote: [..] > >>> ? -static void dpu_hw_setup_vsync_source(struct dpu_hw_mdp *mdp, > >>> +static void dpu_hw_setup_vsync_source_v1(struct dpu_hw_mdp *mdp, > >>> ????????? struct dpu_vsync_source_cfg *cfg) > >> > >> In my opinion _v1 is not really descriptive here. Could you please rename it to dpu_hw_setup_vsync_source_no_vsync_sel() ? > > v1 refers to the CTL rev 100 a.k.a 1.0.0 a.k.a 1, but that's not > > yet very well formulated upstream.. if we even need it.. I think v1 just refers to "the first next variant of this function", similar to how for example Microsoft COM APIs start without a suffix, then get 1, 2, 3 etc appended as new variants "of the same" trickle in. > Yeah, but this mdp_top, not the ctl. And for CTL I'd probably rename _v1 > to _active to follow actual feature name. Correct, I just got lazily inspired by downstream here. There it switches on SDE_MDP_VSYNC_SEL which is based on DPU >= 5.0.0 as explained in the patch. > >> Or maybe rename dpu_hw_setup_vsync_source() to dpu_hw_setup_vsync_source_vsync_sel() and drop _v1 from this function. Maybe add _and_ in there? > >> > >> Up to you. - Marijn