Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4454017rdb; Mon, 11 Dec 2023 22:41:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFr4bN/3GtXqYD53Ok5YEPnvz2y1DnpTQLeeVxZZrcztbC/khCqltjKqUC9wVtgo8IS2Sfo X-Received: by 2002:a05:6808:4496:b0:3b9:b3b7:e5cc with SMTP id eq22-20020a056808449600b003b9b3b7e5ccmr8133390oib.51.1702363304979; Mon, 11 Dec 2023 22:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702363304; cv=none; d=google.com; s=arc-20160816; b=GSo1NM7oATiZEWmgiJLZel7tEcVj0Xqs7xJDMRNZlcwtTd4b0kWZMsVd+YZHOpm2yV SrEfxc+8BZHob5q+pVXrsihaymK09vOe4ZYsBhVFnv0beAfxB02F2GFR3q7a1T61Symp Lm6gSaywovmApqG//0oFpEfU7dVmTHfvYoJ6XX/Zl5tdOZJiTXJXqDJfuGT4EGoJFlnc QwV//x2Wu1eVC0F6Tide7ECELrDkKH+23SINr+CI2fjZXuiRtzXINK9xJk7rNdcTcqDr q5OUWcZxuIp08ScsJfwrkkAmsmx6gcGkDpB2Jz4fZQhI/OhcLwFewGrx3iuVQCRSW4u4 Oz0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YKE2zuLzeQJDcIXSdKzo06j4Otoprc4M3hYEaOW4B8o=; fh=GBGv1H4Nt+qZKtkDXsKa1hBGdBXwQ6VFIVLYbWZAk3k=; b=kAnNrSgxGY7C4MrbkBtF94UgBxYDEh+gt/DsZj7PQ3a2q9himMRmBgvHQ5uZ6Cy24E VmoKJTaynX50QY/C7W1e45JBDmVKSRxBPYm2P8S36xhjYS6i2PkHxAwkNzYRf7HC7Pla 1Q5TNPGmPD0sAgotOzF1p99OHkq1wCXEvK5vrwluSgxKXNMBpOpfN08jkvnBCssPg6/V YLQ+xiOZfHtZXv9zvPbOXDMq8XiYae2sbGWNZlxeZru4L4x90fjka/5YcKUEIHe269fe YvRjCz7oBBGwJgojqcHrB4cpSQvp+OUUzvWORFGOCWJqi9/1gME4+mHdDLBt/980v0wF 3e1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w7CTmTsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s13-20020a056a00194d00b006cef51f51bdsi5117773pfk.15.2023.12.11.22.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 22:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w7CTmTsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ED33680AB1EC; Mon, 11 Dec 2023 22:41:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjLLGlf (ORCPT + 99 others); Tue, 12 Dec 2023 01:41:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjLLGle (ORCPT ); Tue, 12 Dec 2023 01:41:34 -0500 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84194C7 for ; Mon, 11 Dec 2023 22:41:40 -0800 (PST) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5e176babd4eso11349337b3.2 for ; Mon, 11 Dec 2023 22:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702363299; x=1702968099; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YKE2zuLzeQJDcIXSdKzo06j4Otoprc4M3hYEaOW4B8o=; b=w7CTmTsR4bBftceV6dA8o9SkIwdin5kWphWNg24ZoBmAmR3UJT9A4WvMa6uK1HaX4P d26/t2VWh4VUPiGw81pclF3ceFc3tLx8rQAxcSeRM7PFlxVtIaFhQvcRcB1bUp0ZTpzj btceeHcpuCt8srjtVGnZ0xfBj3VLPBeWZYfo4XAvnCL9wJ25qUD78GV/1XNefqNLTAsj ZZRSb5YmTMHTNsxjK0+el1NV6aRrlaRB1idcggDWcjit+hLxuawxybwPM6Qi18iTGsaO Y2NzRwy8lpiR2IVkMXrv7ZARqApy7xvLQOBCsx7EW1688WhNmUM2Kp3iyIlFTO9t6Sr3 hZNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702363300; x=1702968100; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YKE2zuLzeQJDcIXSdKzo06j4Otoprc4M3hYEaOW4B8o=; b=hHpkw+PId78zb37uz+MhMHMTxfqOjBzPQZvTQ5U1qUkWWIeQ+HHz8mYQpW8sLoXbx5 JEkqtPWLse8h+rrhTk6qpPf0Sgaik8G1xZjZKWwS1dj1lFdvOZXgZfK1vU5ehJhDgaN7 MK1vcsBOzKBvoGdNdYI+CZ7MaLPJV0PxrpovoLnDwszH36KkWwSzbP/WGoLd1Cy1IzT/ k59wiZ5VkuGRkt/Y5Qb+7a7bTG2mNffa9ZBsCT/NiXWaFo1+LtJgr7SG8IW3iPqHrwsg uORlwzDQfPeYfr53RzCynWvbuAn/ADaG/rMQaO6DQeDVnwjmpzjjdjbb66p/Mxd8cXoe SR1Q== X-Gm-Message-State: AOJu0Yx8KkHM9NImJOjpef5b0VCFL7+Nm9nYkU53ZWeI094J+inHyNa/ EdjS8d0S1m6opUv6ta/KS+bsUm6rBYt37J0/5ThZ0w== X-Received: by 2002:a81:8585:0:b0:5d7:1940:53c7 with SMTP id v127-20020a818585000000b005d7194053c7mr4579131ywf.63.1702363299778; Mon, 11 Dec 2023 22:41:39 -0800 (PST) MIME-Version: 1.0 References: <20231212002245.23715-1-quic_abhinavk@quicinc.com> <20231212002245.23715-5-quic_abhinavk@quicinc.com> In-Reply-To: <20231212002245.23715-5-quic_abhinavk@quicinc.com> From: Dmitry Baryshkov Date: Tue, 12 Dec 2023 08:41:29 +0200 Message-ID: Subject: Re: [PATCH v3 04/15] drm/msm/dpu: move csc matrices to dpu_hw_util To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, seanpaul@chromium.org, quic_jesszhan@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 22:41:44 -0800 (PST) On Tue, 12 Dec 2023 at 02:23, Abhinav Kumar wrote: > > Since the type and usage of CSC matrices is spanning across DPU > lets introduce a helper to the dpu_hw_util to return the CSC > corresponding to the request type. This will help to add more > supported CSC types such as the RGB to YUV one which is used in > the case of CDM. > > changes in v3: > - drop the extra wrapper and export the matrices directly > > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 30 ++++++++++++++++++++ > drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 31 +-------------------- > 2 files changed, 31 insertions(+), 30 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry