Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1230809rdb; Fri, 16 Feb 2024 09:02:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdaCjHrbxVdznyODdxSXmdblynKDVP9i5nAf+/+5MGs+qT5LjsUb372q6SSiAQmnotlOa0DTGeQhykVCRx3Q9TYUPYr+2RXGz2bOHZKQ== X-Google-Smtp-Source: AGHT+IGmuK+kioW4BLBFcUe0+XBoW5jBCWYgIsAdqQPNPtmY18YVqB4qewB6HUVVWsA8c+niBfVJ X-Received: by 2002:a05:6a20:6f88:b0:1a0:64bc:743 with SMTP id gv8-20020a056a206f8800b001a064bc0743mr6330022pzb.7.1708102933641; Fri, 16 Feb 2024 09:02:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708102933; cv=pass; d=google.com; s=arc-20160816; b=FmvzSh5Q/XZJoAc+ToaieEmJzkcAV/NuvDUIpXKnCwbi2m6DIJ2g0Fx82UUH7C0Bfl Hn9egh4T3iwEvMHGbSMlGeeT7tvGTVsIOMvWCo48Tr2JA74MBltLvg1ZNVcaabv0G/aG oILO713tc33BOBu52pMUDm4fMeCJ/FI+Dp+SjM2U4zCaGA4XOd5C4D0ZOCFN38XieOxE Rl2/eZodJrTUYJl9N/T+eXi8+NBJRuhBN0x5yEVeiGhoGC17ahnWsYmmpr8sbQRUqSlu TyqsIJ1fn2BWw7FbQ91WtY+LDENLryKJVGn3T3voEpAnh1RyJl0T1QZVc/2/diQ7eCbL ccEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=TiEpeDDImaOw/7EpXqQxgkCNsM3mPa/vvbsJHlnFxEg=; fh=5+6Idzpvq62iBmeYqjbfDeMSQrmgbaA6QjAjaW6TkjE=; b=d4KK0i/5enQmaI7SstUjwwrQv+hTP5RrnN2m55849/jQw3ODtVWzcUQbVg+hwlmBKF qzZ4lqtEJQjHfjXSorGx2BhZFldviloXDp62GdA0aVzfX25ZJbb0ltvMpzPtNnZw8W+2 WKqg830TAFly1Tn9Q+lvPGQEbZfnDigwGpPDOAUZct7yY2tI/TwEZbUgKvnTJrgFhfLk gyfZVe5d+BGOlVwWleOk/L9Ks12aFG656iUDLj0fyN6/4p/67NTMnFQJN2OHPv7rgDnh E2+/85Y0eaR3IP38Ab+47+FNsmtkjBEud7IoF+WNhUXTjLn7mDiAVFX2twmP4upud1H4 aJog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GO3m4Cjh; 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-69005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y127-20020a636485000000b005d4cd6a0aaesi144237pgb.398.2024.02.16.09.02.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:02:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GO3m4Cjh; 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-69005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69005-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 55F842857D9 for ; Fri, 16 Feb 2024 17:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2135132C3D; Fri, 16 Feb 2024 17:01:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GO3m4Cjh" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 5FE9613249D for ; Fri, 16 Feb 2024 17:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102887; cv=none; b=n9StxCygKRmsRMKwooxxgcoCsjPnyniCXPWagFvUmzW2wN7aEYlFQAvgF32iKVRpUw5EIImojYLAXCPGz1B0QkAwxCBtO1VJ7s6iGj9UEYEPAqBqN33rILIkweIkJTUQEPZwCAJBZ/hPW2ybiSoY62Fif18XWGhatJgbf0QSY4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102887; c=relaxed/simple; bh=84rmvZDk8zW8CmAQCdqUYugRzCw8mcvg2iteKd1+WTI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sMSZo+a27S5U+Ao/YfsuZwMpYSWrmnmNT/CuAIQ4zGe2xIywec8hM6iNmXAxOKcsaCuHbgPbI3xzflif46+aC5lJhC3fbAyz1ktkXOjUFwWyRGMEwb/Kmk4WodiPCpSM+49itY5j4oe7nRdJAEvb/wye4oc0BylcuuGPIFrGkZ0= 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=GO3m4Cjh; arc=none smtp.client-ip=209.85.167.41 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-lf1-f41.google.com with SMTP id 2adb3069b0e04-511ac32fe38so3337344e87.1 for ; Fri, 16 Feb 2024 09:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708102884; x=1708707684; 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=TiEpeDDImaOw/7EpXqQxgkCNsM3mPa/vvbsJHlnFxEg=; b=GO3m4Cjh9XJ0BoghcPoii/Oc/qH098Zb4zhrPiAoKiQJjAl9W5DiNPUtQWPzYgkJke 0+qHmiQXKHfmfVU9g8Uoqg19oyBB91CxY4x3ZJVqZnk+8Xof5BwWB9UlFtXMR/BmyLOR +ILhaGVnXwGue+0RMlYdsWjEAOHmLjHWPWL7ficj4b7rJiSUiP7t2f+HZDKt36LOFUcI bieECdflWFEoTGsoO3wSjZ1iVtPgyw+RjVJg3aS9PAE6nNjPMErOMy94+iDLID29UZhx 8HVVzf2/C57/XkSpi8EvSkumlGs+oFr8u0KaQ5o7Y9LNFbWjGb1TVAMQU1NmQ8sVJlRa pf3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708102884; x=1708707684; 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=TiEpeDDImaOw/7EpXqQxgkCNsM3mPa/vvbsJHlnFxEg=; b=HIQ3lL62ONo3ujwxUiSwKNoY/+ihTk0PwXl+VsDR8ZrpGxw5QJh11qWBQdm0lvNEcC Vwes1GOdJvZUuo1pFA1I6KrzaPV5LysfTXkbk7bYN4u2tt3kfY0w8CJcQsk+69JEJEF7 wMMMTDqP1XzFD7Y7xWQk4cdMwC2pkwRcN8pzBKpIXJ7zEtYGfSb8exIn1ekn6c1cJwBO sk7MQ3qIgZZA4DPBLMZQEwF/sUM7hDmmzMX2BSG34z4gO9mN+CPV6nMC5dcfW6Nll/Ck tfI28O4u6tfZSRkR9Jtkbj1cdJgLw275xukAWFWF0oPA0e6Id58Z+FtJYk+Jk2bobWYA TPxQ== X-Forwarded-Encrypted: i=1; AJvYcCW8k3lu1LQP0LX0p4dMUmXCf8nPesSBxyU1wMEiMokcLFHgd8PaR3JK6wBsVPN+LM27j8//CY0tnWgnQv263/3AJjtelsFkJ271QqER X-Gm-Message-State: AOJu0YzgazoQvznDPS/75P1rR4J7IA/Co1pT0MP+s7qRnAc/0cc6KyPz bAsHjaXE7GX7VJwvVaaz08/jqGE+lCPL1aQOIbCOUcQu7Z22yaCVmqxqks7u1/iPzt2ahQosdyx 4 X-Received: by 2002:ac2:5e91:0:b0:512:9a29:1a81 with SMTP id b17-20020ac25e91000000b005129a291a81mr810748lfq.14.1708102884192; Fri, 16 Feb 2024 09:01:24 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id u20-20020aa7d894000000b00563a6c9fd71sm159706edq.16.2024.02.16.09.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:01:23 -0800 (PST) From: Abel Vesa Date: Fri, 16 Feb 2024 19:01:07 +0200 Subject: [PATCH v3 3/4] drm/msm: mdss: Add X1E80100 support 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: 7bit Message-Id: <20240216-x1e80100-display-v3-3-28b1c33ac8c0@linaro.org> References: <20240216-x1e80100-display-v3-0-28b1c33ac8c0@linaro.org> In-Reply-To: <20240216-x1e80100-display-v3-0-28b1c33ac8c0@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Rob Herring Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1429; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=84rmvZDk8zW8CmAQCdqUYugRzCw8mcvg2iteKd1+WTI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlz5TawkNXFf8B6q+w8cJ6kZXt6czU75fNIjfWe S7h6Gw6Y7qJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZc+U2gAKCRAbX0TJAJUV VuvRD/4z8UMEJIBQnP1ombhXmaNwnavPDiWb+WUoZcchzehTqQFuOvOd7gUbysgF1BetLgS0fBR bO6yAlQY9as5QEB09JCpPqMM8ZM5mdr2RrL0n8F2wBtaIBzlwL9Xfn4kw7FTcLTTws/hX4ALuMa ciCS+Fw6gOa9QCFCG94wLQo3BWEJ8WBnzIkN4K3yuhZ/Dd1B0ElfzvGGiR0EIozJe+u0sbHFzcG d56O8FaZQotNrHjwqstRaS8VJISvf7ern1/2pvbF/DU5hgVmLMF2tzKiIg+vnJB4sI/y73792yL CmRIKriZwzWe8VNlyfyr6bmo5N3EOYR7pU0rXsHQS6VKtwjYRir7dO0wpw9WWSlTO8rUtFRwk4g dl3gqxK+fXp0iJPXrDWbHT2osLWWIU4XOXfaa/vSMTlKB+dW7vkXXluONKWE+W51I9KtC96cywl kVVIikF8ZkEaCK+EvO0rBmubczFUFqPqrCTiQxR+p2w0QG4IXZyNtLhLM0IBIe44tpaqfOFa+7Z tFFosC1TELeeAW+2YEncvg08NlWL8AllQJsneqnirC/dlZYhmPCiw+5wNVyB3PpSE02GtW8xRs6 IRseXiwYM4AC+tBkkFKS2W7PIqZNTY1oQZqvru/7jaIQDtKyY8QsXCJvQZE6k2R9sZszH9LlF4a ZzbVyEAPLeVLYzA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Add support for MDSS on X1E80100. Reviewed-by: Dmitry Baryshkov Signed-off-by: Abel Vesa --- drivers/gpu/drm/msm/msm_mdss.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index 35423d10aafa..6eda501e2a1a 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -636,6 +636,18 @@ static const struct msm_mdss_data sm8550_data = { .macrotile_mode = 1, .reg_bus_bw = 57000, }; + +static const struct msm_mdss_data x1e80100_data = { + .ubwc_enc_version = UBWC_4_0, + .ubwc_dec_version = UBWC_4_3, + .ubwc_swizzle = 6, + .ubwc_static = 1, + /* TODO: highest_bank_bit = 2 for LP_DDR4 */ + .highest_bank_bit = 3, + .macrotile_mode = 1, + /* TODO: Add reg_bus_bw with real value */ +}; + static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,mdss" }, { .compatible = "qcom,msm8998-mdss", .data = &msm8998_data }, @@ -656,6 +668,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sm8450-mdss", .data = &sm8350_data }, { .compatible = "qcom,sm8550-mdss", .data = &sm8550_data }, { .compatible = "qcom,sm8650-mdss", .data = &sm8550_data}, + { .compatible = "qcom,x1e80100-mdss", .data = &x1e80100_data}, {} }; MODULE_DEVICE_TABLE(of, mdss_dt_match); -- 2.34.1