Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2553358rwd; Mon, 15 May 2023 13:22:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JgyQ27yNJG8/U5l9fvRtDzJSky6xNkYTxWq/GGfdD2jU83TO8LTEkcvSA9RosXGGA0YoQ X-Received: by 2002:a17:90a:604b:b0:24e:403d:488f with SMTP id h11-20020a17090a604b00b0024e403d488fmr34264845pjm.20.1684182165191; Mon, 15 May 2023 13:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684182165; cv=none; d=google.com; s=arc-20160816; b=o9ZSWnaikM/nC6ZY0sjccuGB+lZuaEXGWmVltNg7YAeBoydLf0VJkRCiktRucxVJEl 962BGOshkzpVKKhKA4rY6NxIPzJdA6oDTWQ6p1Baxk6oi/nqWunVQNVbwxCD4ZXAvJZM UIkL8WgvZ3hjqSYIiuNzbNwjKmrvYAfHJUE/F8fkY3YkG4rDD7JZ5bvoEDIRcY7QVaNY Vot9F+vbi0ZGqJUm9jkWD/T/B7ZQbgljBM9/mBVMoW2A8I6RoA9JGM0XoTpzMj4bQNWf VdQsiY4ie47QYDnjUbr/adUPv0DmsACLDuE6kJG63KXHJ49g2voGl/0c4S3IsWJGBI+0 Y6Gw== 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=ag9uCsJSYRGjQVKNza6vjGS9IVHIeO4HGfDWZBZM9xI=; b=qER1JJP5FMfpC/NQqqOXW5voOrEcKpWQRnpa3WxY9uSEboPPbM4X8qAoC9C07uMTcu nAhzLg4XVexwWOKCEsH1tGBrzghDu9fLpa++Rwi6NJNkvBD4ucGDa3mkWOGDGzgOXTJv SU4pKoMzJIIta1zNYRn5tkPF0j6Fxv1iuuA7ImsRLlgDxPdCPV5aPs/3bPgNL7m6Gzpk 296Ksh3FUZCvCld2T4m8BJasNR3267Bq0iVbTW8FcaHN61KEKmI+F5z5fd6EY6LR0Ett 4oUU8avaNjKNDcw2zrGNcU/2WA6zbemegbeSNOadbqURMz5aqDD1ie8EzlGVEMqYWalK +dsQ== 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 ip14-20020a17090b314e00b0024e41806376si24093pjb.180.2023.05.15.13.22.33; Mon, 15 May 2023 13:22:45 -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 S245255AbjEOURg (ORCPT + 99 others); Mon, 15 May 2023 16:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245275AbjEOURf (ORCPT ); Mon, 15 May 2023 16:17:35 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0179A11D8A for ; Mon, 15 May 2023 13:17:10 -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 077BC1F987; Mon, 15 May 2023 22:17:06 +0200 (CEST) Date: Mon, 15 May 2023 22:17:04 +0200 From: Marijn Suijten To: Kuogee Hsieh Cc: 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, dmitry.baryshkov@linaro.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> <08b4b6b3-1401-c2dc-0270-c8f7d538ed9c@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08b4b6b3-1401-c2dc-0270-c8f7d538ed9c@quicinc.com> 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-15 10:06:33, Kuogee Hsieh wrote: > >> +static inline int _dsc_calc_ob_max_addr(struct dpu_hw_dsc *hw_dsc, int num_ss) > > Can you write out "ob" fully? > > > > These don't need to be marked "inline", same below. Please add newlines around your reply, like I did here, to make it easier to spot them in the context. As asked in another thread, shorten the original message around it if it's not relevant for your reply message (see bits). > are you means all functions in this file doe snot to be marked as inline? https://www.kernel.org/doc/local/inline.html In general, inline is fine for math functions that are small and useful to be inlined (and functions in headers that get compiled multiple times but need to be deduplicated when all the objects are linked together). It has no sensible meaning on callback functions (of which their pointer get assigned to a struct member), however. In DPU1 for example, only dpu_hw_ctl.c erroneously does this for callbacks (and this patch, but I presume you'll fix this up in v9). > >> +{ > >> + int max_addr = 2400 / num_ss; > > ss -> slice (or subslice), right? > ... > slice (softslice) Thanks if you can fix this up in v9! - Marijn