Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4450317rwe; Mon, 17 Apr 2023 12:54:34 -0700 (PDT) X-Google-Smtp-Source: AKy350aAqQFi/VXU68vtPf2aITyAaHx/6RDX6SGA8pCGttWiYC+2NPNXFA/dSlYvo4z8WivEQLGO X-Received: by 2002:a17:903:22c1:b0:19c:f096:bbef with SMTP id y1-20020a17090322c100b0019cf096bbefmr79188plg.49.1681761274574; Mon, 17 Apr 2023 12:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681761274; cv=none; d=google.com; s=arc-20160816; b=Jm8q6KBNx5VxOizGC0wJL28nnVLXDceZojg6QKgxeutrfNWvIEzAx1LkogEcMB/9e5 SYB9VEjgW4+/Axai8b06P6ggYnNhBVitFVxaeHiKYualAkX8ANZ7x4yhkugcseqDxZNY Xtbm1GrhTyvzBN/84JA1GvTuj1NRMx5JQG/RcpRkLyp00KzZot9rZCSxG2Cb4KDnbCG8 1VyStL5hxzd+8b7kHG2ygoVwOc8xzuwkVZRzXDy4hIuHDPoz3orhsjeLS+QPrrOoBfVk HVH5CCyVnhtMWYCu6uEJqfUQV+ZNsd+/vlvQzYRZQTvf2Zz+eW3VywrR+i7BfygVcr+C 1axQ== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=fC5cXA/sg1YBemjrXp3NG5p4n43a+hlNEaZPbJVfg80=; b=WPranv29o1gMaNQx67jdmyR9st3uGGsIKu5aW/hPEzzEH5U+5sJyWzhePJqx/+RKRU JETw3Fr2AifKxFr+7C4MvAj4g/Pid6wTJadm3DOt2/wzXCR/g57TqnYg7IoL6vS5nDrV A0dqwRpFun2MUG+jDF0dO4GnqpY3ytJxGRT6YMkvq2LBRdqB0ow3EH6OxVQJA3uSB9ai iTIL0fu41Xw8WQfRgsqSgh0G6SkutRak9+cd+Eu3sndtZ6lCiWbBwB5S4UuVzi35gHEN 1M4VjRJImayCwEH9NPJaVR1NUzvDeIGzPaajVHpH0LwtzUU/24SR9JqEE4ut3SMxF/HT YCvA== 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 k6-20020a170902ba8600b001a1fe40a8d7si11690289pls.520.2023.04.17.12.54.23; Mon, 17 Apr 2023 12:54:34 -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 S229930AbjDQTlU (ORCPT + 99 others); Mon, 17 Apr 2023 15:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbjDQTlT (ORCPT ); Mon, 17 Apr 2023 15:41:19 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996482135 for ; Mon, 17 Apr 2023 12:41:13 -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 7B9701F637; Mon, 17 Apr 2023 21:41:09 +0200 (CEST) Date: Mon, 17 Apr 2023 21:41:07 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: Dmitry Baryshkov , Jessica Zhang , phone-devel@vger.kernel.org, Neil Armstrong , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Vinod Koul , Bjorn Andersson , Kuogee Hsieh , Konrad Dybcio , Loic Poulain , Vinod Polimera , Adam Skladowski , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 5/7] drm/msm/dpu: Document and enable TEAR interrupts on DSI interfaces Message-ID: <5tjwn4p3nkpjuczudipkrvhy63kfzos6x7o7aufwdei7auujcz@oba37opujh5r> Mail-Followup-To: Marijn Suijten , Abhinav Kumar , Dmitry Baryshkov , Jessica Zhang , phone-devel@vger.kernel.org, Neil Armstrong , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Vinod Koul , Bjorn Andersson , Kuogee Hsieh , Konrad Dybcio , Loic Poulain , Vinod Polimera , Adam Skladowski , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221231215006.211860-1-marijn.suijten@somainline.org> <20221231215006.211860-6-marijn.suijten@somainline.org> <773cd72b-a766-1764-e25f-0af1174f0e51@quicinc.com> <1051d6bd-eb3c-6293-0bd2-3f4ea28fa3f8@linaro.org> <20230214130636.ldckqgcq6ajph372@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,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-02-14 09:54:57, Abhinav Kumar wrote: [..] > >>>> Just wondering, how were the lengths calculated for the INTF blocks? > >>>> The values in general seem a little off to me. > > > > These (for MSM8998) have been taken from downstream specifically; my > > series starts using INTF_STATUS at 0x26C which conveniently is the > > register right after 0x268, matching the fact that INTF TE and these > > registers weren't supported/available yet on MSM8998. > > > >>>> For example, I'm looking downstream and it seems to me that the length > >>>> for the INTF_0 on MSM8998 should be 0x280. Similarly for SC7280, I'm > >>>> seeing that length for INTF + tearcheck should be 0x2c4. > > > > There are many different downstream sources and tags with seemingly > > conflicting/confusing information. For v2 [2] I've picked the highest > > register used by the driver which is INTF_TEAR_AUTOREFRESH_CONFIG at > > 0x2B4 (but there might always be more registers that don't need to be > > poked at by the driver, but contain magic debug information and the > > like... those would be useful to capture in the dump going forward). > > > > [2]: https://github.com/SoMainline/linux/commit/2bbc609dd28aa0bd0a2dede20163e521912d0072 > > > > Not entirely correct.TEAR_AUTOREFRESH_STATUS is at 0x2c0 for sm8350 and > sm8450 as well so 0x2b4 is a bit short. DPU code uses autorefresh status > today.Esp after your changes it will use the autorefresh status from > intf te which is at offset 0x2c0 Revisiting this, I don't see current DPU code nor downstream 5.4 / 5.10 SDE techpack on some of my checkouts use this register, only INTF_TEAR_AUTOREFRESH_CONFIG at 0x2b4..0x2b7. Am I missing something critical here? > >>> We have discussed INTF lengths in [1]. The current understanding of the > >>> block lengths can be found at [2]. Please comment there if any of the > >>> fixed lengths sounds incorrect to you. > >>> > >>> [1] https://patchwork.freedesktop.org/patch/522187/ > >>> [2] https://patchwork.freedesktop.org/patch/522227/ > >>> > >>> [skipped the rest] > >>> > >> > >> Please correct my understanding here, it was agreed to fix intf blocks > >> to 0x2c4 here https://patchwork.freedesktop.org/patch/522227/ but I dont > >> see this was merged? > >> > >> It was agreed to first land INTF_TE and then add the higher addresses > > > > Seems like it, at least if I interpret [3] correctly. My series adds a > > new define that will hardcode _len to 0x2B8 for now, and Dmitry/Konrad > > can later extend it to whatever is stated by the correct downstream > > source. > > > > Like mentioned above it should be 0x2c0 for intf block. > > If you face any conflicting information in downstream code, you can > always check with me on IRC. Ack, it looks like others landed these changes for me now via the catalog rework, so I have just rebased and kept the lengths in. - Marijn