Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4466743rdb; Mon, 11 Dec 2023 23:17:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEOxnTWGPMt16dafczDQhi5Om81oKs8w/KU/18WsQnZbf4PHZB+AiaClIyEf0O9EXHRTDA X-Received: by 2002:a05:6870:55c6:b0:1fb:75a:77a5 with SMTP id qk6-20020a05687055c600b001fb075a77a5mr5579763oac.86.1702365477934; Mon, 11 Dec 2023 23:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702365477; cv=none; d=google.com; s=arc-20160816; b=dhb781Szfp3BgUht8pwsjFq2HhUCFOp250E4Zl3h51g6dsbR5HtyEwKLO+hsXYY2iZ thp5Yw609GCEcV+TJhAN+CMDehA58l+6i87hSFBm0a/99hNZHdUsd7bj0v7MMKqY+zri Fyk/IX0P2Zo7jA38usiGLdqoAda+lGvjpScV6Ux+oDWL0X6OONIcL3N1gTVxuTmSQ7vb XINifOETlwFC3I4Bw2ahzcUW4REFZwUoXqCG18Woi10hjoD7XGbU0HHH3uUANF2f4CgY ah95rhxfVZCD2ENCAApMh+4EH1e6T5XqiuoxsAiiuxEaHzhjOX+vi2UJZ3jdmZAeXb4t 2k/w== 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=TVT/VN6qzSaiQZWjp2ufbT3HoEBo3Ldac4YHEG+4eFk=; fh=OEFO3JBSW4W/gAXs3h+YXcjBDwOaMs19owGoPRgaEzY=; b=L69LFIvbooGjzReQXgLQ4VEhlr444AfZYqlmrq47WCT48Lg31jjzUau7aYUkwZYf56 o74JWkFQpDn5VcWTC0vRzC/us+I5+N418sDrR5rGTfqEP7NBic5S3oueImrnxKstvdur yDgXkSx3yxEADZRIEAoW2vJ4abZN7eunaQtx6YzyRc6eiR53i2/Nv9MAG0bwh8q/QKxo /F7X7aGBRAi2dkgpvBdzUWLF0bQWa3EZY+VQaG2TpD91GfmUu/jwJHmtF6SIb6+z+X4X t85zKQ695HnOZfQZwvkMkZLHtZf/6pWMCJagbcfWveWPbL1zc7BIJKyG6k0jb+9HpJEs yf0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C8oFOrkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i13-20020a63e90d000000b005bd3c9a9528si7230344pgh.263.2023.12.11.23.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 23:17:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C8oFOrkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 691978042D30; Mon, 11 Dec 2023 23:17:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjLLHRi (ORCPT + 99 others); Tue, 12 Dec 2023 02:17:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjLLHRg (ORCPT ); Tue, 12 Dec 2023 02:17:36 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A98FA1 for ; Mon, 11 Dec 2023 23:17:43 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5d6b9143782so47545457b3.0 for ; Mon, 11 Dec 2023 23:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702365462; x=1702970262; 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=TVT/VN6qzSaiQZWjp2ufbT3HoEBo3Ldac4YHEG+4eFk=; b=C8oFOrkrnQig3UG2RTHHrbOkAwi+6+Z0OAGFzr1UBzIyt0jeyZKw1VUoKi8A2dTcko 1JTP3x5vAjhP02Y7V9D1L5LNgcIW1I5gJ/AAvhnQm25zR4G7QoaTfVDb0v1qVG58hVYk JthjdyUxtNER8/oAngxbACB7ynYfx3eArKamoJnJ9z4vBR894r4zkhCMqIYZRgkq7Q30 jyS1Ay3f6R/ArmHYHlF61x64oycLGVG9KY2MKMM0OObi9bwSHBsIJwbsVdAwwOiwiEoP qKYxWo22qRLZqu/4PK+IJCMkuTSMgPa5nXRJQkJoUqh0qOzuIYTIaS2XkLSASu0HTU9l bhmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702365462; x=1702970262; 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=TVT/VN6qzSaiQZWjp2ufbT3HoEBo3Ldac4YHEG+4eFk=; b=faCYg7Jqq8jJPqgh57qJ/530MLjtb8TLycXdLLnEtfj14nZoDDmTKnfU3VKyTpCPEh zODjQx8iby1GZU8bsLeW+17byEsDPa9LJq0WsTiO0aG7l+Uis+7SANHjDbzm0uEVpU9Q O9iPIAPmu0/ciZ3dH4AT1HzkR7CdXLfUBSROtvt6J6irQls6vNNcXOeUiDJVMdgkYMly y8HmH5GJCQzjjZcVhoKZVrFFqcLtzWP+hSF12e1VqxYy0PhMuTvf+0k//+FOBZjaMBrE 7XXQwQ/eAmR/L80DEXvRSHgF9CJKt+A8pO3zAsHzKRmk2eWuwK0l0kzG3+NzDnG73n80 ZTfQ== X-Gm-Message-State: AOJu0Yy0etDLemFgIxO49t8ao0cTMomXj4djc5T7J57jha9xctg9ovAu mYxQqcrPjPZSv4AdNnYuB5hiCXhFf0W08/Wzb51rOQ== X-Received: by 2002:a81:5fc5:0:b0:5de:a315:b72c with SMTP id t188-20020a815fc5000000b005dea315b72cmr4968084ywb.95.1702365462403; Mon, 11 Dec 2023 23:17:42 -0800 (PST) MIME-Version: 1.0 References: <20231212002245.23715-1-quic_abhinavk@quicinc.com> <20231212002245.23715-12-quic_abhinavk@quicinc.com> In-Reply-To: <20231212002245.23715-12-quic_abhinavk@quicinc.com> From: Dmitry Baryshkov Date: Tue, 12 Dec 2023 09:17:31 +0200 Message-ID: Subject: Re: [PATCH v3 11/15] drm/msm/dpu: add an API to setup the CDM block for writeback 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, kernel test robot , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 23:17:55 -0800 (PST) On Tue, 12 Dec 2023 at 02:23, Abhinav Kumar wrote: > > Add an API dpu_encoder_helper_phys_setup_cdm() which can be used by > the writeback encoder to setup the CDM block. > > Currently, this is defined and used within the writeback's physical > encoder layer however, the function can be modified to be used to setup > the CDM block even for non-writeback interfaces. > > Until those modifications are planned and made, keep it local to > writeback. > > changes in v3: > - call bind_pingpong_blk() directly as disable() is dropped > - add dpu_csc10_rgb2yuv_601l to dpu_hw_util.h and use it > - fix kbot error on the function doc > - document that dpu_encoder_helper_phys_setup_cdm() doesn't handle > DPU_CHROMA_H1V2 > > changes in v2: > - add the RGB2YUV CSC matrix to dpu util as needed by CDM > - use dpu_hw_get_csc_cfg() to get and program CSC > - drop usage of setup_csc_data() and setup_cdwn() cdm ops > as they both have been merged into enable() > - drop reduntant hw_cdm and hw_pp checks > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202312102149.qmbCdsg2-lkp@intel.com/ > Signed-off-by: Abhinav Kumar > --- > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 6 ++ > .../drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 93 ++++++++++++++++++- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 14 +++ > 3 files changed, 112 insertions(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry