Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4943776rdb; Tue, 12 Dec 2023 14:04:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUsBMo9PDdDzXkmCksxmRoiukwEojBGcKrcl9J67NyoItrq52wo0F7VA3liDhaWItkUKXy X-Received: by 2002:a05:6a00:1c87:b0:6ce:7d6f:cf4d with SMTP id y7-20020a056a001c8700b006ce7d6fcf4dmr4056359pfw.54.1702418670841; Tue, 12 Dec 2023 14:04:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702418670; cv=none; d=google.com; s=arc-20160816; b=QvpweqsDN0ZbupqWDE0kkZHYUdAWbNvMZhIkebIirzFysE9eCby+l7wqJRDlgPqu/F KC0JKHxNGNDd0CmKNUfgjYXfyA8pBys2jXA2PW5QjlFNarh3SJ/mQaXqxWyhDEt/ZT6Y D56Y8erJfyW8i4WMqZV58LN4G6DAmwg4PtPd1Z02e0zjrZw160mTYEwOtTNOVwTSH+s8 ndg2cW7u8FlS33CZY/pVJP2obpM0sExnHxbOtEzf/LbpgBSOdka8VcCqJtj55vgVrH4Q k//Y2Dduf/MReMss70wXa7LklofN6UeccYA58GKquBEGes96v35Tdf7zWT7gIk3dkPHl nw+g== 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=RJY8C1DWpCBLWloqWzk5/jPg3401/emPFTGMZQJWPSo=; fh=GBGv1H4Nt+qZKtkDXsKa1hBGdBXwQ6VFIVLYbWZAk3k=; b=hFnNWZDKQHFgvX0qXK3TWyUTM4nmtb5+SQMPVqFBIAB/4ChxQwjrTLq5tahl/MrjQc HP56gzi6uqwlHcyzjqhzEgETI+TE9Yvb0BhZImtoRzgfNgddUVigVpfJGGvuAVgjh/lw JS7Var4nh9LR3mIZdP77Qp/nuSe3sKXksj80R8pyq7IwAf7JINdwEArBoFZFIyKs4k32 5EsZPzF3uWAaLKgNEsnTvHXzo4tDNdz04LtyBTm7SodpHblCefaqp92KZ9aO9FbkFJrn ir8DDVgGHjjVNC1I5N0FYi+YqUXx14VVfQLg+/rbxYdwhZjw0xnpssXfwy2qepkR5D8R IRHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWZqK1nS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id fa1-20020a056a002d0100b006be55174f3fsi8507371pfb.28.2023.12.12.14.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 14:04:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWZqK1nS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 5E1A28022EB3; Tue, 12 Dec 2023 14:04:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235173AbjLLWEG (ORCPT + 99 others); Tue, 12 Dec 2023 17:04:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231690AbjLLWEF (ORCPT ); Tue, 12 Dec 2023 17:04:05 -0500 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BFCBC for ; Tue, 12 Dec 2023 14:04:09 -0800 (PST) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5d3644ca426so61204037b3.1 for ; Tue, 12 Dec 2023 14:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702418649; x=1703023449; 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=RJY8C1DWpCBLWloqWzk5/jPg3401/emPFTGMZQJWPSo=; b=vWZqK1nSJ/ndzZnbSOaNrhi5bXQ6HGdV2Qc+EK/t3eIrPXK3NhLEZBYxfqJEoQe9AV U2V7UMNIsEb45n3VHHPLali6WlE8cy9D+Sw8POHX/5ST8XZPHkPcDvxfK9EazoKlY3ru HffOTO7zDZxHIY4PTKvv6Z0AjXhNf5tkBttNIknshWGfSZ9KmhVMjzJM4mBDU1hKrenI kSfwOnH2ufq8tjZVpAuz+lgWbbVaGh7j6IwPqfBaQxypBXcGW7TP8vapY4Z1YSlwS6Gy DveZ/ohhFqRY/0FMRpiBuLCr/+FreWyANWbgr9iLoBX9s4OaUwkTTd1GIA6/hUizDdnO YUbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702418649; x=1703023449; 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=RJY8C1DWpCBLWloqWzk5/jPg3401/emPFTGMZQJWPSo=; b=GoMLntw4Vg6V82E58oui8nS++NFtNnb6Dr4iW/voZZbSowRLdp7Z7sq+G8wRJ+VlYD IfZtB5GF1d0qoP4TkQ5Z0qmc9kh2tctFqLgCxH/vpnVsnT7Sxg0TpWZMjFVQykIju+q7 K74yER6vU/C2MBhecbIu3rorkTNeqv5g2JlJB/RHmuvIPBDCDM2TH2W6wafXYOlTPsuo RrFcxMd4j8iCWr6lZJR0m3ULWIQTaM7vd63dgWurMvgK/wKaeGULb14YEMJzVPljAKMd zyYbxajPDm3fa2ZPWYfebf4T17XmL7TF8ihekiPsezQu0xSOZdaIjv+oMFzHHMA+RSZp Noow== X-Gm-Message-State: AOJu0Yz8ZnImVjntXDoclrt45dfM33ISRRZsOzbZ+g2dJ7ShiJ80f5Zu bNZeM8WocT0jECLb9tg2nYfsnmxN5BYjWVzxLOumgw== X-Received: by 2002:a81:52cd:0:b0:5e2:834e:7f76 with SMTP id g196-20020a8152cd000000b005e2834e7f76mr441125ywb.41.1702418648867; Tue, 12 Dec 2023 14:04:08 -0800 (PST) MIME-Version: 1.0 References: <20231212205254.12422-1-quic_abhinavk@quicinc.com> <20231212205254.12422-2-quic_abhinavk@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 13 Dec 2023 00:03:57 +0200 Message-ID: Subject: Re: [PATCH v4 01/15] drm/msm/dpu: add formats check for writeback encoder 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=-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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 14:04:28 -0800 (PST) On Tue, 12 Dec 2023 at 23:30, Dmitry Baryshkov wrote: > > On Tue, 12 Dec 2023 at 22:53, Abhinav Kumar wrote: > > > > In preparation for adding more formats to dpu writeback add > > format validation to it to fail any unsupported formats. > > > > changes in v4: > > - change the failure message of the API > > drm_atomic_helper_check_wb_connector_state() to a generic > > one in case it checks more errors later and moreoever it > > already has debug message to indicate its failure > > - change the corresponding DPU_ERROR to DPU_DEBUG in-line with > > other atomic_check failure messages > > > > changes in v3: > > - rebase on top of msm-next > > - replace drm_atomic_helper_check_wb_encoder_state() with > > drm_atomic_helper_check_wb_connector_state() due to the > > rebase > > > > changes in v2: > > - correct some grammar in the commit text > > > > Fixes: d7d0e73f7de3 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") > > Signed-off-by: Abhinav Kumar > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > > index bb94909caa25..4953d87affa1 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > > @@ -272,6 +272,7 @@ static int dpu_encoder_phys_wb_atomic_check( > > { > > struct drm_framebuffer *fb; > > const struct drm_display_mode *mode = &crtc_state->mode; > > + int ret; > > > > DPU_DEBUG("[atomic_check:%d, \"%s\",%d,%d]\n", > > phys_enc->hw_wb->idx, mode->name, mode->hdisplay, mode->vdisplay); > > @@ -308,6 +309,12 @@ static int dpu_encoder_phys_wb_atomic_check( > > return -EINVAL; > > } > > > > + ret = drm_atomic_helper_check_wb_connector_state(conn_state->connector, conn_state->state); > > + if (ret < 0) { > > + DPU_DEBUG("wb check connector state failed ret = %d\n", ret); > > We already have a debug message in > drm_atomic_helper_check_wb_connector_state(). Can we please drop this > one? If you don't mind, I can just drop it while applying > > > + return ret; > > + } > > + > > return 0; > > } > > > > -- > > 2.40.1 > > > > > -- > With best wishes > Dmitry -- With best wishes Dmitry