Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1222033rwd; Sun, 14 May 2023 15:23:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GzSmQvoqY6VVoflMXkGgRm/cEyFjGoUoE+/dMI7QTf/DmE+0xp55IYrsIxfDO9AAF3o9R X-Received: by 2002:a17:90a:bd94:b0:24e:5a0:d2c5 with SMTP id z20-20020a17090abd9400b0024e05a0d2c5mr30959199pjr.30.1684103037441; Sun, 14 May 2023 15:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684103037; cv=none; d=google.com; s=arc-20160816; b=qAaweLNdd42qbqF84LQA81g4GhaKjaZft0l+KbBMHB7yhXxkVm77iwLjMm/WYcnWUn MD9JzZmYCaO04R9O20203U67+3EjDFUN4s5Rb+UG61X772mCjxIdJnRKU5UmoGhOl1Ms WSmWjosA+1c6fW96kLnnW3vfRH+3+zCD6yDgHcn7O5wQMXCqxQ9AdT6LYFfbtlIGRSLU GKBfSUk7OczcOpHT7pqR5VQlWr32sGnUqHpvUZcr/HRee/o9mreCTK/1dKZnErB2lyF4 CT7Wcl/BH1eLJDJl7H7MCukv4+6oGnzkdPvSfS4TsiNRUAxSxyvbAwu6HmnI4Zylxy+t T4OA== 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=B7EjzCEAuiD2T83ZRsKMBuc+002HLGHTSbgHuXF7oDs=; b=NARprsfkDqKEolDLagLYRom6X5JxMRwQF9XDf0LVwH1MNtXNWlecQw1bTjJd/qR98L gaOzwha7FjHxLtJejxuqFIqz3PmbdAjCSWO7yh8NoK4ddSVj4ch0OUeFoc5qkNQb3gTh amzCfc1fMar3wJVPT/dmpip3tFZT79945BP25GRUAbAvgygVXcSJgYDCCcXgbUnUrCx6 0etmML7eRh14BEj9fhdaeHraK4mVcSmzM5rwT2YBnk+PBi+ShjwoPefpmhp2Phhrkh6+ M8sVrq9gd/GQXkpGavTVqmuVRPwQbkKKg9GUyfwdLqwcCINfQWYB047wLTCyXnK7O59E 0mTw== 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 gw18-20020a17090b0a5200b002470ea7f67fsi28039416pjb.3.2023.05.14.15.23.36; Sun, 14 May 2023 15:23:57 -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 S230494AbjENVqi (ORCPT + 99 others); Sun, 14 May 2023 17:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjENVqh (ORCPT ); Sun, 14 May 2023 17:46:37 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [IPv6:2001:4b7a:2000:18::167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2074710CE; Sun, 14 May 2023 14:46: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 BD73E3F295; Sun, 14 May 2023 23:46:33 +0200 (CEST) Date: Sun, 14 May 2023 23:46:32 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org, quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 5/8] drm/msm/dpu: add support for DSC encoder v1.2 engine Message-ID: References: <1683914423-17612-1-git-send-email-quic_khsieh@quicinc.com> <1683914423-17612-6-git-send-email-quic_khsieh@quicinc.com> <41243dc6-eb9d-dea6-f945-cb1f6594a2a4@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41243dc6-eb9d-dea6-f945-cb1f6594a2a4@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-05-12 21:19:19, Dmitry Baryshkov wrote: > +static inline void dpu_hw_dsc_bind_pingpong_blk_1_2(struct dpu_hw_dsc *hw_dsc, > > + const enum dpu_pingpong pp) > > +{ > > + struct dpu_hw_blk_reg_map *hw; > > + const struct dpu_dsc_sub_blks *sblk; > > + int mux_cfg = 0xf; /* Disabled */ > > + > > + hw = &hw_dsc->hw; > > + > > + sblk = hw_dsc->caps->sblk; > > + > > + if (pp) > > + mux_cfg = (pp - PINGPONG_0) & 0x7; > > Do we need an unbind support here like we do for the DSC 1.1? > > > + > > + DPU_REG_WRITE(hw, sblk->ctl.base + DSC_CTL, mux_cfg); > > +} Friendly request to strip/snip unneeded context (as done in this reply) to make it easier to spot the conversation, and replies to it. - Marijn