Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1823156lqg; Mon, 4 Mar 2024 05:09:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCZGQnbfwd+OZcRlEAC4wIpQZtMPYi6AYJ1q86t8DQJHSWSBPL9XYXgliBC66JCFIW5Xp3TsveDo63GrBPiJdOqrd0SMxANHA1yYsEQA== X-Google-Smtp-Source: AGHT+IEtHh4Dq3Qghd1x8EcHzpM03sLYSuVzz8AuEpMst4EaZ8vXIPCb3I8wV4nnqZoW4kvVieim X-Received: by 2002:a50:cac7:0:b0:565:ebf2:a257 with SMTP id f7-20020a50cac7000000b00565ebf2a257mr6427848edi.19.1709557779976; Mon, 04 Mar 2024 05:09:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709557779; cv=pass; d=google.com; s=arc-20160816; b=uLSm5PC6vzUNxUlII1zsMO0mGqPIaPlJvqtsVCGvQKKKecmRk1+hqtRraui0/aqL6R nvVylEkelQcrwk8r7tUF+98DsNSTBKMFOqXKHgYNeF6RRYKbs5FORJ8Phq5PYZQgGo2H v2RE+15+mGPvNfQC5IDPKt/awjzhMuEuI4QnIfA4n8Q3xD5p/Je636Cpqa//GIa1OmJ0 MnxID525Ieyggub7jH143NhhVmp8I3Yjds0p5O6Aqy5Hk08IEKgaIyck1T4pg0abJqLV 5P1RRcUh1ZVfIMJo21m+7h4mnUTBb42/LoZAKWf+Lclu03kWYL0gS9s0DsZl506NFOoP bg1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ZF5EHPeguAlmw8pt+rnW85Aj9ppqfHEoGqFfoa9ov8U=; fh=L81fdQ4JXS2frD3QYXBmRaOtHIOYpdCYl1RDFVLV6lI=; b=eKjoNjgX8FqU1msgXHotyhe9G0YeS51Q/1VLn3mPbB9z8M5HF4kTczDn+dkLY4iXO0 gHJA8wPfQnnupqVrFS57O1K5b5LyISvWsCPZIHDLG43w22XN8scMureH6eoOtZidOQjq N2rULUYnz2V7hvEA9XQKAt20jc7PX6g5PFmKzowj1LSWXDBz7knhDY+SCe1apwLMFhkR jvuUk9WcQMpMVMTZEEUJcVjtwoWMhUwQ4DzQ07BDz9ZTFeNK5Kl5NQcNlCMRET3hP2Ru w0k2lka7tCdKGcmJvWqFrd4pCOJNKTRrPt05scTaNKAKQtLPDjoDfsC8guneupQvfbSM WvsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTTCinR6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l27-20020a50d6db000000b00566be94e43dsi3457619edj.639.2024.03.04.05.09.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:09:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTTCinR6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90613-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6D5751F22816 for ; Mon, 4 Mar 2024 13:09:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 410843EA94; Mon, 4 Mar 2024 13:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vTTCinR6" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54EB93F8C8 for ; Mon, 4 Mar 2024 13:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709557618; cv=none; b=GEsx9O+uxY3s2O6RHiw1mtaEhzJQIzKbFcqHuUSzx/MgmZqwVlWdmup3x+U4F+yMXU/Edf5I7uAeCGnGisrdd55Py891vuDsaPnnkAhLTCdtGGUZW0vtRu0XWTS1Ct/pY3jZKOxqRcfr+W4/AdiuQZeuffWHw54ZFpLy7AFGhBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709557618; c=relaxed/simple; bh=YVZkshAZhkcuNqrSOesTmaPiOfvAz8zAKAbFCPcnxsU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MrZsQJH96l3VYy1lwIM2XUDQDrBbagNpo+o6cQccvlJ7In7lj+vSKOlRzb8c10rsAYct3LVdg0B4IVlzHTWn/Q1DLM7v+wlAVUh19QcHqD8SJKq3j46AhtsguRpgYUEdQWzdqUpQdGxJ6dahQCPV4EXI0bGwbqq4MpIRSd1JN8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vTTCinR6; arc=none smtp.client-ip=209.85.128.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-6093e067220so39863567b3.0 for ; Mon, 04 Mar 2024 05:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709557615; x=1710162415; 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=ZF5EHPeguAlmw8pt+rnW85Aj9ppqfHEoGqFfoa9ov8U=; b=vTTCinR6sMSysMwszdVZy8Undj9su1wcsF/qeq/rdZRXsPceEpao+/dCVJuHmQ4La/ O39teMI5RHBU0nNIzyoGFcVBe6MRhYKYo9d58fljvCGnxnzPf2Us1GRhxWX2TIMmZa3U AgTtXFvmn122P65fKcvObIMlKVCtlL5aht/xek7q7yXZJg79RmdVJZ9pXVdYFTW86HJF vne8uNGweGHgTJwybEdSwdwCyKI40jFzMsofI0mYyUDAZVHM708n9p/86AwbZ5Rx3733 M1UDEa9/0j8T+OAofOwsjU4CIY2zZCK+xF0k5stj0B1TuZ0ZvvHpRceN2i4Aa7Hw1ldH UzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709557615; x=1710162415; 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=ZF5EHPeguAlmw8pt+rnW85Aj9ppqfHEoGqFfoa9ov8U=; b=BgJcZFIZszl1ZvW6h7lkkI5nBvBX4uoVTsNkCI4hAxeSFC++ayKgBwOpR0UtG8X6x7 9ijN+PLOunOo63pek2h55HwCzX8mkTOn/pnmFPR5y5riXEjXnSnctAo0vzyv48x3Dnlf J09Yqtyjn19/aTUnNqvtWNgjfHbq8iOo1Gokw/qUCOOvgkvAzWt7rp3Fw344CBGgGeeu SESx/XFHEQnHEPrHCofna9/OYGVEfWS7C6SgiIEGjPv6WqmvQqOVgdekXhnimfeQojmm 0QQA771/62dR6MbI9hruFzj4BTdLsAHZ9IxlfQvw31tBU/WQSsFXUW5bkqV8y695t7q6 8CZw== X-Forwarded-Encrypted: i=1; AJvYcCXIWm1NFsbEH8scO9I2H7nsvfgPa9l+Sl772LafdKpYJJCC9yxp3vA96wJQVRQ94Mn9Rg57TSFVGuNUgc/KbFwh0Qpuo0SVVIuL/4uq X-Gm-Message-State: AOJu0YzQuOqcIoJ0xVhlbqomummpmard5Ng/jZtPu+GExa2RyN5ES2JP 8YpMWV1mKh3qwD1DPUrVHzHJ7QPpdsBBkwNvCr7p2QgeHsCF1wvuaFXNtuBkG0Fg5LLe/OH9C1O t89zMGko9Y+jo4fYE60f1i86WEYjxYIxsLJPliA== X-Received: by 2002:a5b:b05:0:b0:dcd:13ba:cdd6 with SMTP id z5-20020a5b0b05000000b00dcd13bacdd6mr6132325ybp.47.1709557615168; Mon, 04 Mar 2024 05:06:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228194730.619204-1-quic_abhinavk@quicinc.com> In-Reply-To: <20240228194730.619204-1-quic_abhinavk@quicinc.com> From: Dmitry Baryshkov Date: Mon, 4 Mar 2024 15:06:43 +0200 Message-ID: Subject: Re: [PATCH 1/2] drm/msm/dpu: drop unused dpu_kms from interface initialization To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, quic_parellan@quicinc.com, quic_jesszhan@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 28 Feb 2024 at 21:47, Abhinav Kumar wrote: > > dpu_kms seems unused while initializing DSI, HDMI and DP through > their respective _dpu_kms_initialize_* functions. > > Hence lets drop the parameter altogether. > > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > index 2af62d8fa9a7..ab924ac78c9b 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > @@ -494,8 +494,7 @@ static void dpu_kms_wait_flush(struct msm_kms *kms, unsigned crtc_mask) > } > > static int _dpu_kms_initialize_dsi(struct drm_device *dev, > - struct msm_drm_private *priv, > - struct dpu_kms *dpu_kms) > + struct msm_drm_private *priv) > { > struct drm_encoder *encoder = NULL; > struct msm_display_info info; > @@ -558,8 +557,7 @@ static int _dpu_kms_initialize_dsi(struct drm_device *dev, > } > > static int _dpu_kms_initialize_displayport(struct drm_device *dev, > - struct msm_drm_private *priv, > - struct dpu_kms *dpu_kms) > + struct msm_drm_private *priv) This breaks now on top of YUV patchset: drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c: In function '_dpu_kms_initialize_displayport': drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:583:35: error: 'dpu_kms' undeclared (first use in this function) 583 | yuv_supported = !!dpu_kms->catalog->cdm; As this requires adding of the yuv_supported argument, let's consider moving it backwards: for _dpu_kms_initialize_writeback() we can get format_list and n_formats from the dpu_kms. > { > struct drm_encoder *encoder = NULL; > struct msm_display_info info; > @@ -592,8 +590,7 @@ static int _dpu_kms_initialize_displayport(struct drm_device *dev, > } > > static int _dpu_kms_initialize_hdmi(struct drm_device *dev, > - struct msm_drm_private *priv, > - struct dpu_kms *dpu_kms) > + struct msm_drm_private *priv) > { > struct drm_encoder *encoder = NULL; > struct msm_display_info info; > @@ -671,19 +668,19 @@ static int _dpu_kms_setup_displays(struct drm_device *dev, > int rc = 0; > int i; > > - rc = _dpu_kms_initialize_dsi(dev, priv, dpu_kms); > + rc = _dpu_kms_initialize_dsi(dev, priv); > if (rc) { > DPU_ERROR("initialize_dsi failed, rc = %d\n", rc); > return rc; > } > > - rc = _dpu_kms_initialize_displayport(dev, priv, dpu_kms); > + rc = _dpu_kms_initialize_displayport(dev, priv); > if (rc) { > DPU_ERROR("initialize_DP failed, rc = %d\n", rc); > return rc; > } > > - rc = _dpu_kms_initialize_hdmi(dev, priv, dpu_kms); > + rc = _dpu_kms_initialize_hdmi(dev, priv); > if (rc) { > DPU_ERROR("initialize HDMI failed, rc = %d\n", rc); > return rc; > -- > 2.34.1 > -- With best wishes Dmitry