Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10447312rwl; Mon, 2 Jan 2023 02:50:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsQvbmtj6xfw+aeHZhkLsUmO5f8nd/EEKf/99JYbU9Hr/8y+6mxxT02NCeGX60nVAWbWtjV X-Received: by 2002:a17:907:1246:b0:7c0:b6ec:3ff3 with SMTP id wc6-20020a170907124600b007c0b6ec3ff3mr28095274ejb.65.1672656643615; Mon, 02 Jan 2023 02:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672656643; cv=none; d=google.com; s=arc-20160816; b=MExB+TtBxUqtt7dva2p3rZSkBMERpK6fdm7743EIul8IYw9+IC3K08PUualWaTfBb8 KJshQGhWl0oWjrXbeYrUdKfYCVye4XfFPFcqH5B5m+gAfmsmeNVd5Z3uPaj53jJnm2h9 LwjEgPNqCni8XV9ObEpjPYuSupy1Jv9/mphqOUc5jQBkANjP4s+omWNNhSR4v3YGXWSp w9zta1/WBAZ1maPIClk0uJtP8tAeCKdV20M9cxqR7ZB1MhEv/rAaQMXSRUqs8m8a/750 vd/QNUyCSzclIsBj3PFW4+4Av9f9gWw++kg/oa9oPt9vOEcHphbNRRWWLJltUKSWnzcf l0rQ== 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=1Dk2ws8ppVHzprg+fujpXAesd5JncZJ+v5tImLaIHrQ=; b=cmPfr6MbZckdMZkxwpjdu2UW1+8dZrdiL9q4/pHxj++eEqu1vdRcrkFPHK9FnSlAIE lSLPtyUYEgzIi8GW67QawNccX2I8mo16EdPQe7lctgQFSaqHxxWc+0juPKICikv+pVQI hFg7rXtk0Aj1HtBNI7snRP5zbuylws15uNLsZ6f1baErgaOF+s5xQ5QirIac4b/iYvhy AepXXZQuYOjUD+6efbVicaxhQLrqIzTjZ4Gn1heNGyCbMdZZm6ve2Vhbb3JFB2SUyaZ1 M4H+O57Pxq1Y+UP8By030KD4uXjRyPGyMm4kojouueKQNqHiYVhkV/Knh0a5LPAYNUsU OfTA== 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 ga33-20020a1709070c2100b0084c4942ea8esi19815244ejc.268.2023.01.02.02.50.29; Mon, 02 Jan 2023 02:50:43 -0800 (PST) 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 S229912AbjABKim (ORCPT + 60 others); Mon, 2 Jan 2023 05:38:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjABKij (ORCPT ); Mon, 2 Jan 2023 05:38:39 -0500 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [IPv6:2001:4b7a:2000:18::171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD0A9EBF for ; Mon, 2 Jan 2023 02:38:38 -0800 (PST) Received: from SoMainline.org (D57D4C6E.static.ziggozakelijk.nl [213.125.76.110]) (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 3B1ED3EE8C; Mon, 2 Jan 2023 11:38:36 +0100 (CET) Date: Mon, 2 Jan 2023 11:38:34 +0100 From: Marijn Suijten To: Dmitry Baryshkov Cc: phone-devel@vger.kernel.org, Abhinav Kumar , 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 , Jessica Zhang , 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: <20230102103834.v37rv7i72sysruko@SoMainline.org> References: <20221231215006.211860-1-marijn.suijten@somainline.org> <20221231215006.211860-6-marijn.suijten@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 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-01-01 15:12:35, Dmitry Baryshkov wrote: > On 31/12/2022 23:50, Marijn Suijten wrote: > > > > -#define INTF_BLK(_name, _id, _base, _type, _ctrl_id, _progfetch, _features, _reg, _underrun_bit, _vsync_bit) \ > > +#define INTF_BLK(_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _reg, _underrun_bit, _vsync_bit, _tear_reg, _tear_rd_ptr_bit) \ > > {\ > > .name = _name, .id = _id, \ > > - .base = _base, .len = 0x280, \ > > + .base = _base, .len = _len, \ > > Please move .len setting to a separate patch, it is not direclty related > to tear interrupt addition. It is directly related in that the TE registers reside in the extra space beyond 0x280, but I can surely make that explicit in a separate patch. > > .features = _features, \ > > .type = _type, \ > > .controller_id = _ctrl_id, \ > > .prog_fetch_lines_worst_case = _progfetch, \ > > .intr_underrun = DPU_IRQ_IDX(_reg, _underrun_bit), \ > > .intr_vsync = DPU_IRQ_IDX(_reg, _vsync_bit), \ > > + .intr_tear_rd_ptr = DPU_IRQ_IDX(_tear_reg, _tear_rd_ptr_bit), \ > > Initially I added separate _reg and _bit settings because reg was common > to both interrupts. However now as tear interrups use different reg it > might be better to first move DPU_IRQ_IDX out of this macro () and then > to add your tear_rd_ptr_intr as a single intr_idx. I assumed as much; then we do get the duplication of _reg but I guess it's not too bad if the lines are nicely wrapped like in _pp[]. I'll do so in a separate patch. - Marijn