Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by mx.groups.io with SMTP id smtpd.web09.27807.1603638215886733296 for ; Sun, 25 Oct 2020 08:03:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=xRTxwj9A; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.160.172, mailfrom: jdmason@kudzu.us) Received: by mail-qt1-f172.google.com with SMTP id c15so4955409qtc.2 for ; Sun, 25 Oct 2020 08:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J4gonb3eqBMxHFkLGu080xZ/nU8y9erjocmc4FAJu2g=; b=xRTxwj9Aw76xjO0FpGcVtq/MWSItJ0ClcMsVwDKDpbByK0G3L620ZKnDOTucUBzm1W +efL/Un5qR8KVbl2xAYKFo2HMZYqp0x0IyFMof/kD2HfgTWfH4ylRXDDlDzOsfYJGluF U9yf8OC6M/7jo1Uq9RjCQY2d2IoeyjJYZ9SBwfGuOD+HFLQsWj3wHNWLUzWllq4dQwoW E8tHwxL2H8YBclsmt0nzw6WHI2TwhUjbuc94JWmFpZ/SQ/zKstye5og/EsmpBjIEyVjF vtOtiDHYdbOkXRDIe/RW6H8cjXarUgz8A1Me4Hew5EVEJ88V6g4uFsUsCP52IpT2MM2b gf1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=J4gonb3eqBMxHFkLGu080xZ/nU8y9erjocmc4FAJu2g=; b=FDkBRPO1w2sAhRbJvm0TzAg6TRH/u5AtGpOHaIXqlD1vQtyclQSfvgkn7Mdjhz6NJU ZXC/7MzhraVenMQrVEc7WcAPR/1szN2rf+6tYq/SGVUYsq9eUDf6cPvIu7VWW+opgcHa QwDioPxe5rwf/Ks57VjKEzoR5b74lyhgGWN32dvSMv0jlI7EaWSZJq8GeLvPpRHKZqxg 0mZQw7L4F3+WHcYIwbuH0Qz4lvHUJukMRfOyMtP6tZkerdHBQCfTHk8I0cOGO7bc5vLi uAVnl+kr19le8qar6X5iVO6RW7PZNZ5zX59yiUd3M/mOe0hVj9a5avTQ4hP4CNu2p58L +x+g== X-Gm-Message-State: AOAM533TJ/49AZudkB4+u+DROdhpwvgzfg4E8cL329sWQHDH5QqJ9QvK wRkhUhBcwav1ddPfrTHUZd+pUucTV88RMhvP X-Google-Smtp-Source: ABdhPJzCiIiEkcBmXBVP6Wj0QawPepgiXgdA8aHbtuBoBVk8T9AgUwLHJLZ0xPw0VLH5t8W9bZa+vQ== X-Received: by 2002:ac8:71cc:: with SMTP id i12mr12392442qtp.262.1603638213877; Sun, 25 Oct 2020 08:03:33 -0700 (PDT) Return-Path: Received: from kudzu.us ([136.56.1.171]) by smtp.gmail.com with ESMTPSA id j2sm4965197qtp.27.2020.10.25.08.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 08:03:33 -0700 (PDT) Date: Sun, 25 Oct 2020 11:03:28 -0400 From: "Jon Mason" To: Anders Dellien Cc: meta-arm@lists.yoctoproject.org Subject: Re: [meta-arm] [PATCH] arm-bsp/tc0: Add kernel patches Message-ID: <20201025150327.GG8073@kudzu.us> References: <20201021184256.40276-1-anders.dellien@arm.com> MIME-Version: 1.0 In-Reply-To: <20201021184256.40276-1-anders.dellien@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 21, 2020 at 07:42:56PM +0100, Anders Dellien wrote: > Add patches for SCMI, MHUv2 and DRM. Also update the kernel config > to enable boot to Android home screen instead of just console. > > Change-Id: Ic2af15441667b967ef360d8410de94e83eb73de4 > Signed-off-by: Anders Dellien Patch included in master. Thanks, Jon > --- > .../linux/linux-arm-platforms.inc | 13 +- > ...m-Add-component-aware-simple-encoder.patch | 364 ++++++++ > ...dd-RENDER-capability-to-the-device-n.patch | 31 + > ...2-add-device-tree-binding-documentat.patch | 134 +++ > ...ilbox-arm_mhuv2-add-arm-mhuv2-driver.patch | 822 ++++++++++++++++++ > ...2-add-doorbell-transport-protocol-op.patch | 156 ++++ > ...2-add-multi-word-transport-protocol-.patch | 271 ++++++ > ...rm_scmi-Add-fast_switch_possible-api.patch | 67 ++ > ...-Set-fast_switch_possible-conditiona.patch | 42 + > .../tc0/defconfig | 444 +++++++--- > .../linux/linux-arm64-ack_5.4.bbappend | 2 + > 11 files changed, 2208 insertions(+), 138 deletions(-) > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0001-drm-Add-component-aware-simple-encoder.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0002-drm-arm-komeda-add-RENDER-capability-to-the-device-n.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0003-mailbox-arm_mhuv2-add-device-tree-binding-documentat.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0004-mailbox-arm_mhuv2-add-arm-mhuv2-driver.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0005-mailbox-arm_mhuv2-add-doorbell-transport-protocol-op.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0006-mailbox-arm_mhuv2-add-multi-word-transport-protocol-.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0007-firmware-arm_scmi-Add-fast_switch_possible-api.patch > create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0008-cpufreq-arm_scmi-Set-fast_switch_possible-conditiona.patch > rename meta-arm-bsp/recipes-kernel/linux/{files => linux-arm64-ack-5.4}/tc0/defconfig (69%) > > diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc > index 644ddc1..62b1dec 100644 > --- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc > +++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc > @@ -73,7 +73,18 @@ KCONFIG_MODE_sgi575 = "--alldefconfig" > # > # Total Compute KMACHINE > # > -SRC_URI_append_tc0 = " file://defconfig" > COMPATIBLE_MACHINE_tc0 = "tc0" > KMACHINE_tc0 = "tc0" > KCONFIG_MODE_tc0 = "--alldefconfig" > +SRC_URI_append_tc0 = " \ > + file://defconfig \ > + file://0001-drm-Add-component-aware-simple-encoder.patch \ > + file://0002-drm-arm-komeda-add-RENDER-capability-to-the-device-n.patch \ > + file://0003-mailbox-arm_mhuv2-add-device-tree-binding-documentat.patch \ > + file://0004-mailbox-arm_mhuv2-add-arm-mhuv2-driver.patch \ > + file://0005-mailbox-arm_mhuv2-add-doorbell-transport-protocol-op.patch \ > + file://0006-mailbox-arm_mhuv2-add-multi-word-transport-protocol-.patch \ > + file://0007-firmware-arm_scmi-Add-fast_switch_possible-api.patch \ > + file://0008-cpufreq-arm_scmi-Set-fast_switch_possible-conditiona.patch \ > + " > + > diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0001-drm-Add-component-aware-simple-encoder.patch b/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0001-drm-Add-component-aware-simple-encoder.patch > new file mode 100644 > index 0000000..7855bee > --- /dev/null > +++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-5.4/tc0/0001-drm-Add-component-aware-simple-encoder.patch > @@ -0,0 +1,364 @@ > +From 7863ac1515009547bae3a66e0808e72b3bdcf8c8 Mon Sep 17 00:00:00 2001 > +From: Tushar Khandelwal > +Date: Tue, 16 Jun 2020 12:39:06 +0000 > +Subject: [PATCH 1/9] drm: Add component-aware simple encoder > + > +This is a simple DRM encoder that gets its connector timings information > +from a OF subnode in the device tree and exposes that as a "discovered" > +panel. It can be used together with component-based DRM drivers in an > +emulated environment where no real encoder or connector hardware exists > +and the display output is configured outside the kernel. > + > +Signed-off-by: Tushar Khandelwal > + > +Upstream-Status: Backport [https://git.linaro.org/landing-teams/working/arm/kernel-release.git/commit/?h=latest-armlt&id=15283f7be4b1e586702551e85b4caf06531ac2fc] > +--- > + drivers/gpu/drm/Kconfig | 11 + > + drivers/gpu/drm/Makefile | 2 + > + drivers/gpu/drm/drm_virtual_encoder.c | 299 ++++++++++++++++++++++++++ > + 3 files changed, 312 insertions(+) > + create mode 100644 drivers/gpu/drm/drm_virtual_encoder.c > + > +diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > +index e67c194c2aca..c95279cd9341 100644 > +--- a/drivers/gpu/drm/Kconfig > ++++ b/drivers/gpu/drm/Kconfig > +@@ -265,6 +265,17 @@ config DRM_VKMS > + > + If M is selected the module will be called vkms. > + > ++config DRM_VIRT_ENCODER > ++ tristate "Virtual OF-based encoder" > ++ depends on DRM && OF > ++ select VIDEOMODE_HELPERS > ++ help > ++ Choose this option to get a virtual encoder and its associated > ++ connector that will use the device tree to read the display > ++ timings information. If M is selected the module will be called > ++ drm_vencoder. > ++ > ++ > + config DRM_ATI_PCIGART > + bool > + > +diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile > +index 82ff826b33cc..d2ab6fc64932 100644 > +--- a/drivers/gpu/drm/Makefile > ++++ b/drivers/gpu/drm/Makefile > +@@ -53,6 +53,8 @@ drm_kms_helper-$(CONFIG_DRM_DP_CEC) += drm_dp_cec.o > + > + obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o > + obj-$(CONFIG_DRM_DEBUG_SELFTEST) += selftests/ > ++drm_vencoder-y := drm_virtual_encoder.o > ++obj-$(CONFIG_DRM_VIRT_ENCODER) += drm_vencoder.o > + > + obj-$(CONFIG_DRM) += drm.o > + obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o > +diff --git a/drivers/gpu/drm/drm_virtual_encoder.c b/drivers/gpu/drm/drm_virtual_encoder.c > +new file mode 100644 > +index 000000000000..4fd2098df286 > +--- /dev/null > ++++ b/drivers/gpu/drm/drm_virtual_encoder.c > +@@ -0,0 +1,299 @@ > ++/* > ++ * Copyright (C) 2016 ARM Limited > ++ * Author: Liviu Dudau > ++ * > ++ * Dummy encoder and connector that use the OF to "discover" the attached > ++ * display timings. Can be used in situations where the encoder and connector's > ++ * functionality are emulated and no setup steps are needed, or to describe > ++ * attached panels for which no driver exists but can be used without > ++ * additional hardware setup. > ++ * > ++ * The encoder also uses the component framework so that it can be a quick > ++ * replacement for existing drivers when testing in an emulated environment. > ++ * > ++ * This file is subject to the terms and conditions of the GNU General Public > ++ * License. See the file COPYING in the main directory of this archive > ++ * for more details. > ++ * > ++ */ > ++ > ++#include > ++#include > ++#include > ++#include > ++#include > ++#include > ++#include > ++#include > ++#include