Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1758498rdb; Tue, 20 Feb 2024 06:17:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVBPsBYbKcEMQdhrBHpg/B/JP0c5+fDoWalsqT4ipXBLNRQNQtZz0MKScXXg4TqhJdyL6uet4nOSGzoI8ETNnJtl4B3DypC4uWYJEqxww== X-Google-Smtp-Source: AGHT+IEzCzcBJE5EJGwgRjnufxt6A5cheV1gVZrH8QxvBCIvJvfJpRn8km5rgBs/f+TXJ32X33rK X-Received: by 2002:a05:6a20:c68e:b0:1a0:b8a4:256a with SMTP id gq14-20020a056a20c68e00b001a0b8a4256amr547060pzb.36.1708438626573; Tue, 20 Feb 2024 06:17:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708438626; cv=pass; d=google.com; s=arc-20160816; b=D/B3ZJmAiHahsZ6HzBAoFHuyuIvyKF3fcrVkq9MNe57PxSQogeTrSMi9/hGfWF49MY KElJm2G++nIjv2wngzPDpbNsCdYhlKcfmNaMoTusHGbfKb0AjpyKynutGT8DlbDwRt7L vbY7hxlvAq2H/hhj+305PoRtCULcyKM3OHmuay9ScDZhJ90GaI4AO8sOm6ViYj+O5z1N s2KkLgyrPWSXmFnBCTDCmDeO1S0biB10RiEwZ/fGt6xfXetkOXAdIz+gLLixF6NVWemF YS8KsNat1Bm+ro8KFqco9G5PRoMPbtYFsYyi/MA3cZ2H4a1nFFAfjGgJMoJuuyUw/8Yo J2HQ== 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=fuyUU3yi15kmc0JQ2NK+KRF8Ebxp3j+SrJjLGk5UHWE=; fh=yKF1pHHHPwEQITEiGKfusfNamv0N1f6csUOqdO+PNYQ=; b=rtbHZYYggu+eH7gKxOIPm9lWlvnyg+gFzPCegVxQr1exSr+x9gZiaZ7pDDtelP/YrI qm62Ukf5EqgPpF53yUnxzP+hMOKoLbP9sF+BJm963XzvrAubAB79L4piAuNmyTSC19Zg 5WGETiQRiU582o1YUgweM79IcZlkldUyDPAKdeRdHH44R4Sffypv4Ob4NTJnWlg2K0eP 7XUvWNI3I6Dl+z2YKxRnzKujeJPevuwWL6x6ga9FUZW7pBsnmYNS7RoA4JN8NH2nNEAm 0m9fxpmGvPA/8iFnWrcXIipLK3+bGuD51gwCGqGBHEfuewzDwMsMgglwltRmaswkhs/+ Nosw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pdc/qalD"; 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-73166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73166-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 s24-20020a63af58000000b005ce00003530si6270924pgo.562.2024.02.20.06.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 06:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73166-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="pdc/qalD"; 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-73166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73166-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 4388C2834B8 for ; Tue, 20 Feb 2024 14:17:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A034C7428C; Tue, 20 Feb 2024 14:16:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pdc/qalD" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.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 E455A6F06D for ; Tue, 20 Feb 2024 14:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708438578; cv=none; b=WLGky4Rib3DU/BGn9oNCl6/bErfLC8Kps1Jz116C1vXWy4fAaMa6XrYmhnl2H/4Dm387h1IqtEC2SQibjDwwtYqQdtyueyhW2xXa5iz+LsS1LU6tonEwV8J6eyaPCOYeQvfaUU81vCcGZQElWsr5tvTjPPBCNe6KZ44q/PoddGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708438578; c=relaxed/simple; bh=u2lRwHQr+DNTmD6MOY+Hc1uiaIEemJ6XjPTAocMI6pg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N4WQZbYfbMlI5t8ncDE2Ltn7DZweWb0SZSjC2qvJnL0NhYwxJRSMU77jMnQP0tp+d2uJwlPjgDHKLNcNHFI17n/NrtTrgNAA3F5XnACPuwW+VgjXuUm6SUkBsN9P53JOiyyd7tIN6LCqnTRNEOGKCeue127ca36mtHfTQ28wRmY= 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=pdc/qalD; arc=none smtp.client-ip=209.85.208.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 Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so5811654a12.1 for ; Tue, 20 Feb 2024 06:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708438575; x=1709043375; 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=fuyUU3yi15kmc0JQ2NK+KRF8Ebxp3j+SrJjLGk5UHWE=; b=pdc/qalDKGwJWtdd9F7zL/lstPzHhMrNCp3NcwE1XIDeEsFH5JQ75joO2UgqVyRZk9 pTUIv2J84vGje8vPzeXQlaIUiaB/IGouMzkuBe6UBhQszTO4znQUEL067IzxGpUA8m0n JFCzqNs/bva7/TLHC0+Rfjfb/5G+hvG8Jc6NmamOvU9bRvKQ0Z3k+SjSE0h3bC7iSJzS N4nhYoFjbdHpg0rvohnak6Y4DB+0qKJQV+D+sKEYZiIimsDQmBK3JSqUqVZx7COMj26p MI45RMPT0XAl4SamU2Avf6ZZ8AXVUqK6kLS9l26nPH384pvXO77r6l4u+L3is2rMPiTp 5dCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708438575; x=1709043375; 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=fuyUU3yi15kmc0JQ2NK+KRF8Ebxp3j+SrJjLGk5UHWE=; b=E4hct2YmFqvZEWIZMk3H9ZzZoakwM2e0cYyXU2hnWD1zSoQdzDsTSLXk7F3u45DtrZ OKA42lsvDtJEmLi1Wn0/uS7GaL43uZz6bVGd6Gi0KO4ENdm206jsj4c6Ona34L5jCVsO w3lHnNUUCqq061/TKVpfoTnl3jNKv7HtXbU77BNX2Lry5vp0+PwCIDbEtnw7J/ZQJPcE fvmxry/2eppXeMZozIg/v3GgWXN3NWZgofXV0gOkzc/AMHzA2AeEMXFZjH9WFKsbZ3ID xy7HfxurWBAHHRtWVZd38KhfN24bHy7y96fZE9anJj/5R5RVE4EwVKNK7yKafiTErv45 ch1A== X-Forwarded-Encrypted: i=1; AJvYcCU9+n5tMeoPjrt7a2EJld4LybRTxfu/rm10WJfTibspqRoq9T4D0aikSGdtEg0guYxT2GX+EgTvn9Hn6AvGldoEla4p6kOEcHnShvqL X-Gm-Message-State: AOJu0Yz2rkobMLWYGnHl1LB7QsGb23dFDsMliP+JmDL+LQZrNgmLWfxo AXPO7UMBJrmlLceHfKAmpxmXbKu9/vtKX3BuBGU9F6EqwT4V/OPHrnQ5k3Aom/w= X-Received: by 2002:a17:906:48d6:b0:a3e:eb81:ab62 with SMTP id d22-20020a17090648d600b00a3eeb81ab62mr1923965ejt.7.1708438575151; Tue, 20 Feb 2024 06:16:15 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id s8-20020a170906500800b00a3de4c7bf00sm3998534ejj.79.2024.02.20.06.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 06:16:14 -0800 (PST) From: Abel Vesa Date: Tue, 20 Feb 2024 16:15:58 +0200 Subject: [PATCH v4 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: <20240220-x1e80100-display-v4-3-971afd9de861@linaro.org> References: <20240220-x1e80100-display-v4-0-971afd9de861@linaro.org> In-Reply-To: <20240220-x1e80100-display-v4-0-971afd9de861@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.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1429; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=u2lRwHQr+DNTmD6MOY+Hc1uiaIEemJ6XjPTAocMI6pg=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1LQmpwQCwaM7h86l7n/lgwLER6BCHp8FIaw4s fSeFtMTqzKJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdS0JgAKCRAbX0TJAJUV Vmd0EADFMcoAAj5UThHklCNqyD/WAnBBW1CRjsolukiODmf2oSbkcpO9G6XiedqbIBOh/kavUsG 7FlOh8qlEo1gR1CY4UUwRlQODaCbfMgzYqlh4gchEPmSubydMkZMCOPI51V8NiN382TRCGB5fg/ 2V4tb91dybOb8pVOrOhXfAO/Fs/rOY9deJIGCvWDinV1A1afxLR7Lng2iUefVHJnQWIDxGLdqMu OTt5x/e7Mt+GE9yMPpu95CJWIO0gh7B5EnHWDDkxfC2ZaOe3rbiA8s7eYYPYX0ZTMTAO3V13cZt iqzxigN9D76pKtpT4V0n9IiDxCh5RofR4mB52tpc9m7HPcAV3iqzrz+d7EQhhQ/LC7IrORFWZ48 X7s/cgawdWVoustKBZTufdlXGuchGIS2uisf2o23Jy81Of85ajUP7O6Rs6h6gID6PjU7P8aayjQ B75tUOWme28NLtaWnD24Wo3lW9HBdDyudt02y+DL1CYDdarSy8EQMotu1zMMUT+Bpx/yhWVEgGW tjmUe2av10CCV6DQWdIhLR36b9CJAKsdiLR4iyXxUxeiE1wdgmGuhYipSa1oP7x6ro58g3RsYnY j0qxH8yewcX+e2o8xEAhgzykYOoxysKm8JrxA4mbJVJflcRfGW2TFArf9zM0mg9TUxrP30ojNNH xTCm/e2pakgsFrQ== 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 65657230bbff..fab6ad4e5107 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -687,6 +687,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 }, @@ -707,6 +719,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