From nobody Mon Nov 25 21:20:34 2024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 98D42101C4 for ; Fri, 25 Oct 2024 00:20:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729815622; cv=none; b=pcy/FvHxPxZLS+nmNCATI/fcxrwL7UXMhuY5uOmW0MTqtYfaTjTXS0yEYQpt3y75rQOfjwSjH7craHbpI/bSBtpi973r8hJhPEMIzjJvOJN6+St8ErpLARzyKXIMIfKNU9JL94jxU1bGk9Yby5rAV8C0rQqEOvjyLzJBFTH+9y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729815622; c=relaxed/simple; bh=tBM5ZHVDqp/ggxgh+nGqHn0WBtaJgoFLbizrCaVdf4U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EzEynWytQs0+CVK5aSyEWjKgqWEf5xJvlSVx7FdIAz1PqvWMJfy2YDvcH0pRbk7YaVJWMQZsohYcsquJ/r8UZDTEZ/w+KqZDMlB4lJTaj/pjXcmz/nhTN4sy3YGtS0vVHwdZhKR+mbm+5kg1+4eNS2FH+32ztmkXHpnfhR58N8E= 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=U3TxWuef; arc=none smtp.client-ip=209.85.218.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="U3TxWuef" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a9932aa108cso215287066b.2 for ; Thu, 24 Oct 2024 17:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729815618; x=1730420418; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=XZZkDePstTJuwJ96EH3uXNnHMnvpB7WYQKxAsltEhs4=; b=U3TxWuefbloppi1JvzfADC3aa0SBCnh7cEpRQJnfaT9/F3U4cMrHXIHx4qmnIAhr23 fdzw2THUkzDO+VVbdw0C7r5ZH7HT0d1e+lTzZXmLZXvG+xH5wGh+sNA6bDz5i8iXpFbr g03X+pmvTMfKbJLjDHfKLIAIqHrc5kU3P23bTfy3GTq3Xp9Y6J2feAjlWVDDodgolOua xYIDevq18UOGhTCuhE4B6GE47JcnVbjijTPPoRctGQEfUV+vj/0kyxSil2CBUq3sCgHn 38CzVh/QMyrJCmLwAOLRuh9uapcOBzGscUQJlkDPpimq59H6OjAEbTc8k4pN3h5xnjqq dKPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729815618; x=1730420418; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZZkDePstTJuwJ96EH3uXNnHMnvpB7WYQKxAsltEhs4=; b=knMQMBOqkwbcqcja+LDQNfmCiNl+USjgzCHwLhRzniRCGQF2D0i8ZECsXveo5hSQI1 Pcl/Sh8ufKsHf+2C4/HN11XHH/cQVEy8s0IlPTphwERAGo6t7U9hP6/E+FgD33VUX2LO Umwh3mnwSuEzLCGYobMsrDdK3Ml0FaHAgbGnGpVpVipZ309h//KU8LmdDipP+c3juRE0 FaCxz9lHTlipUK8KQV5vLEuFhV27h/Bcid3RsWjQ2rLlolVCbB3zoqo+toxzzAXwGpEG IZl/URri79/0rXwlU5vRQTiVinkVaGRpXKwuTdgdS7ywgDhEWiAsC8yDPzRA/H3XA6n9 ADQw== X-Forwarded-Encrypted: i=1; AJvYcCVgu1IY8Aox/FXuvN99UOSlgwa/hnxyN6mnMbW0JJ+W5ucupAibKYXNy3SD9xPj3lQk7ghoxft8dMS15jA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz9BQdNHuUHfxZskTiSRnPd8KCP3Fyt5+6pH9tUOChbYIhWt+MS pXDfsCxFA6ltIRCn99TT6c4xUwDPOo5uHFAPtHukxCvh/VUDHrSdNJaU+7I/f9w= X-Google-Smtp-Source: AGHT+IGfLGuZ11NKLQzcMCjgzAbykSZ7Ywu8iQJoJVAdqvbZpX6tU7NZd2ImvI3L9BmR5RWWNtZC7w== X-Received: by 2002:a17:907:2d8f:b0:a9a:67aa:31f5 with SMTP id a640c23a62f3a-a9abf85d024mr742840366b.10.1729815617704; Thu, 24 Oct 2024 17:20:17 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53b2e1b05b3sm6227e87.161.2024.10.24.17.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 17:20:16 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 25 Oct 2024 03:20:10 +0300 Subject: [PATCH v6 3/9] drm/msm/dpu: drop virt_formats from SSPP subblock configuration Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241025-dpu-virtual-wide-v6-3-0310fd519765@linaro.org> References: <20241025-dpu-virtual-wide-v6-0-0310fd519765@linaro.org> In-Reply-To: <20241025-dpu-virtual-wide-v6-0-0310fd519765@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3641; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=tBM5ZHVDqp/ggxgh+nGqHn0WBtaJgoFLbizrCaVdf4U=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnGuQ61qEp7BtCLTOQeLUBGK8kSLpIQo0o4l99l PmUo8S21/mJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZxrkOgAKCRCLPIo+Aiko 1ds3CACSlyGTl1xRe0S7eTfpHofuP2JOrZ8lcnlmGSaehi+uJ1XEJ6zfPThYkI2PGfdZrzgIfqj Eb+4tE9R4ezwm7AWZlIGkiDd6pBmXrujKbGCXQzPSMi8F1ZVLsPXU8AjewZXfm+CHcR1ww9xrAa VVz9duNLmmkjsuEgXIhW76uUwAPhtVxmxvEgIUwjcCLLPShic0iEIwJOLLLK3XRSsFSusFoEg7E QgZeNSNLUj1PGYdEeeEsxplvO9SRMQDBZ5LLhEQ4wk4JLHazuf8pXL8NfT08e+NAn45GzCxu6BR 94Q+5I14leFOpcn6GmDxbKIO+Qpo6AIoSfu5U6hQ7PqOcGMQ X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The virt_formats / virt_num_formats are not used by the current driver and are not going to be used in future since formats for virtual planes are handled in a different way, by forbidding unsupported combinations during atomic_check. Drop those fields now. Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 12 ------------ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/d= rm/msm/disp/dpu1/dpu_hw_catalog.c index f7efeb2b77c4..bfca993deb70 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -317,8 +317,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .base =3D 0x1a00, .len =3D 0x100,}, \ .format_list =3D plane_formats_yuv, \ .num_formats =3D ARRAY_SIZE(plane_formats_yuv), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ .rotation_cfg =3D NULL, \ } =20 @@ -333,8 +331,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .base =3D 0x1a00, .len =3D 0x100,}, \ .format_list =3D plane_formats_yuv, \ .num_formats =3D ARRAY_SIZE(plane_formats_yuv), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ .rotation_cfg =3D rot_cfg, \ } =20 @@ -344,8 +340,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .maxupscale =3D SSPP_UNITY_SCALE, \ .format_list =3D plane_formats, \ .num_formats =3D ARRAY_SIZE(plane_formats), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ } =20 /* qseed2 is not supported, so disabled scaling */ @@ -360,8 +354,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .base =3D 0x320, .len =3D 0x100,}, \ .format_list =3D plane_formats_yuv, \ .num_formats =3D ARRAY_SIZE(plane_formats_yuv), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ .rotation_cfg =3D NULL, \ } =20 @@ -373,8 +365,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .base =3D 0x200, .len =3D 0x28,}, \ .format_list =3D plane_formats, \ .num_formats =3D ARRAY_SIZE(plane_formats), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ } =20 #define _DMA_SBLK() \ @@ -383,8 +373,6 @@ static const u32 wb2_formats_rgb_yuv[] =3D { .maxupscale =3D SSPP_UNITY_SCALE, \ .format_list =3D plane_formats, \ .num_formats =3D ARRAY_SIZE(plane_formats), \ - .virt_format_list =3D plane_formats, \ - .virt_num_formats =3D ARRAY_SIZE(plane_formats), \ } =20 static const struct dpu_rotation_cfg dpu_rot_sc7280_cfg_v2 =3D { diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/d= rm/msm/disp/dpu1/dpu_hw_catalog.h index 817e98bc6997..78ae3a9f22f9 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h @@ -372,8 +372,6 @@ struct dpu_caps { * @csc_blk: * @format_list: Pointer to list of supported formats * @num_formats: Number of supported formats - * @virt_format_list: Pointer to list of supported formats for virtual pla= nes - * @virt_num_formats: Number of supported formats for virtual planes * @dpu_rotation_cfg: inline rotation configuration */ struct dpu_sspp_sub_blks { @@ -386,8 +384,6 @@ struct dpu_sspp_sub_blks { =20 const u32 *format_list; u32 num_formats; - const u32 *virt_format_list; - u32 virt_num_formats; const struct dpu_rotation_cfg *rotation_cfg; }; =20 --=20 2.39.5