From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E18B9C04FFE for ; Mon, 20 May 2024 15:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PbKg+ZWxDN16Och9Q3NLDD+Vk7nSXD+cHkF1PopyVN0=; b=2Jg1SeRukdL0uK 1lfsZIL83qTVMUW8Pj0jECW7bzDBS+NSvfoi7j4FjUiX9+B4CHHVCqUGBPN4iJ9iCKY+TrM8TyRJS p5dM2OyhI+3CgmWTiw7EzsOefhiOFy8dhUEJXh2M31qV9z0qlYFb5LQJlis8+mFC45ktvaiYl5RCt w1SrLUPy08q0ljxmSvilgf5iksGzhB1fv9mCJ9xFlthmJnDrL+qyoBAIF+0XQ+d1QrU3byiFbJCuA iXIbkh0APY9O/SfFXkbEyDkVtxvh3pczp6bT27QHzbp0waTQ6PP5lBbs1T9WGmPhdDNSGHu6JYqRh bTofIZ8zYiPz8Hn59KTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s952a-0000000ErT3-0Umy; Mon, 20 May 2024 15:35:08 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s952X-0000000ErPm-2X5P for linux-arm-kernel@lists.infradead.org; Mon, 20 May 2024 15:35:07 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-34da4d6f543so2449627f8f.3 for ; Mon, 20 May 2024 08:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716219301; x=1716824101; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sAGBZ1PEBcf/fJDsVPro0tPE1WsZuaRgTUZ3iHIhxSQ=; b=tY54VACqvZcfJOeC5dxB9JIbfFgXw07Tp7LHCDEYS1N6Q7JqL6y8EWXELG6YcTplYn vE9wCF9I+UKJ0/ujNvZab/X2seY45q+e4OGIW2MFqOrR3atlTWy6h8w4H5B5PBFhdOyt EoR+cS6kHhhASCXk5EeV4Qx1FcfP3P+Sdqvze6s6yPJrheuGsi/rzFqxSgjMDuu7sHSE d5dceh/G6BmvIwZz7zkzYnsh2ZmFBlIbfA2a4OQaA++/a62xQI7KclX2sTSjGx2fwBc3 K9cTVBoA5AF/vsxng3psIzdkPGHkGoH+ToV6apmynYhLkz7HAjlJCk6efi5SAULTJ7xv 5Dvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716219301; x=1716824101; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sAGBZ1PEBcf/fJDsVPro0tPE1WsZuaRgTUZ3iHIhxSQ=; b=kTKap9h8OjTgkAcrT9uTI2Svvumc7BxgYi4DXfI3nwnJncrwPXPcIcwyScU7aqF3F+ zcwDl22ySUDgdBTfwsz08HZxolEX2r68JED9cdI8nf0XVZdPyMcExOdaWp2k3PYrdiok oZsLx8+zibg6fw67JAAgM+iH+x4ufYlb/PA+Fk7Mbucw1fjR5p3drdV4dKHa2uvDhI/e 9hQSb98wNiZTkEjhIqo3DxGF1toIlJmlW8YlwV5UpgBMis/89eL9lkRNYYC5fa0J3GAj +eU8WOburJG2x7kNRszyT5luXVSTXSDaEt5iMFlp+7zHdvEzQj7ACoCLtLkk4Baadb1N jh3g== X-Forwarded-Encrypted: i=1; AJvYcCVCr4P6+ogO0Eyvke1GvdtGeUfPQcFj+eQ7oQR5jZ7kj4Ns0Uw+O8d7aUo+JKic63wtoH9m4EHCyIfMHrSKpEeB3VaQHYvBSQUdDw6e6EhlX8DCSXk= X-Gm-Message-State: AOJu0YyzCSKBKoMpLGW+UIsrz+DYwcr+qhn1UO3FhN94k8HfJ5t7qXru eVKQNMsIG4txjIfp5Jt2snuNuyuZJizQ4+1fgp6sRWiVq0XF0+B4phBjNI4bZsk= X-Google-Smtp-Source: AGHT+IFNk692k3RqaMXye+c2Qq79nAeUMEO50j29S1MXyLQIcYzL4B0x4R28xGbxScdBA6EWOGa/VA== X-Received: by 2002:adf:e586:0:b0:34c:b2df:6f01 with SMTP id ffacd0b85a97d-3504a737f13mr21144851f8f.21.1716219300694; Mon, 20 May 2024 08:35:00 -0700 (PDT) Received: from [192.168.1.172] ([93.5.22.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bcedsm29225112f8f.19.2024.05.20.08.34.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 May 2024 08:35:00 -0700 (PDT) Message-ID: <1de9d53c-bfc3-4d10-bf9a-b89ce756836b@baylibre.com> Date: Mon, 20 May 2024 17:34:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/3] drm/mediatek: Implement OF graphs support for display paths To: AngeloGioacchino Del Regno , chunkuang.hu@kernel.org Cc: robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, matthias.bgg@gmail.com, shawn.sung@mediatek.com, yu-chang.lee@mediatek.com, ck.hu@mediatek.com, jitao.shi@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, wenst@chromium.org, kernel@collabora.com References: <20240516081104.83458-1-angelogioacchino.delregno@collabora.com> <20240516081104.83458-4-angelogioacchino.delregno@collabora.com> Content-Language: en-US From: Alexandre Mergnat In-Reply-To: <20240516081104.83458-4-angelogioacchino.delregno@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240520_083505_706664_AAC386EB X-CRM114-Status: GOOD ( 14.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Reviewed-by: Alexandre Mergnat Tested-by: Alexandre Mergnat On 16/05/2024 10:11, AngeloGioacchino Del Regno wrote: > It is impossible to add each and every possible DDP path combination > for each and every possible combination of SoC and board: right now, > this driver hardcodes configuration for 10 SoCs and this is going to > grow larger and larger, and with new hacks like the introduction of > mtk_drm_route which is anyway not enough for all final routes as the > DSI cannot be connected to MERGE if it's not a dual-DSI, or enabling > DSC preventively doesn't work if the display doesn't support it, or > others. > > Since practically all display IPs in MediaTek SoCs support being > interconnected with different instances of other, or the same, IPs > or with different IPs and in different combinations, the final DDP > pipeline is effectively a board specific configuration. > > Implement OF graphs support to the mediatek-drm drivers, allowing to > stop hardcoding the paths, and preventing this driver to get a huge > amount of arrays for each board and SoC combination, also paving the > way to share the same mtk_mmsys_driver_data between multiple SoCs, > making it more straightforward to add support for new chips. -- Regards, Alexandre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel