Change-Id: I8d2bb6fb996d56a7cf45beb418c69774b8f95df0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/11877
Tested-by: Ajay Kaher <akaher@vmware.com>
Reviewed-by: Srinidhi Rao <srinidhir@vmware.com>
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 |
-From 994ab9c2b1626c2ccf77fe01e2f4163cbbfac4ec Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From afad9332031e9e48a81752f782d992dedf8e08ee Mon Sep 17 00:00:00 2001 |
|
| 2 | 2 |
From: Pantelis Antoniou <pantelis.antoniou@konsulko.com> |
| 3 |
-Date: Tue, 10 Mar 2020 05:44:52 +0000 |
|
| 3 |
+Date: Wed, 3 Dec 2014 13:23:28 +0200 |
|
| 4 | 4 |
Subject: [PATCH] OF: DT-Overlay configfs interface |
| 5 | 5 |
|
| 6 | 6 |
This is a port of Pantelis Antoniou's v3 port that makes use of the |
| ... | ... |
@@ -47,10 +47,10 @@ Signed-off-by: Ajay Kaher <akaher@vmware.com> |
| 47 | 47 |
|
| 48 | 48 |
configfs: New of_overlay API |
| 49 | 49 |
--- |
| 50 |
- .../devicetree/configfs-overlays.txt | 31 ++ |
|
| 51 |
- drivers/of/Kconfig | 7 + |
|
| 52 |
- drivers/of/Makefile | 1 + |
|
| 53 |
- drivers/of/configfs.c | 310 ++++++++++++++++++ |
|
| 50 |
+ Documentation/devicetree/configfs-overlays.txt | 31 +++ |
|
| 51 |
+ drivers/of/Kconfig | 7 + |
|
| 52 |
+ drivers/of/Makefile | 1 + |
|
| 53 |
+ drivers/of/configfs.c | 310 +++++++++++++++++++++++++ |
|
| 54 | 54 |
4 files changed, 349 insertions(+) |
| 55 | 55 |
create mode 100644 Documentation/devicetree/configfs-overlays.txt |
| 56 | 56 |
create mode 100644 drivers/of/configfs.c |
| ... | ... |
@@ -93,7 +93,7 @@ index 0000000..5fa43e0 |
| 93 | 93 |
+intended to be used by hardware managers in the kernel, while the copy interface |
| 94 | 94 |
+make sense for developers (since it avoids problems with namespaces). |
| 95 | 95 |
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig |
| 96 |
-index 5e13159..7c906e2 100644 |
|
| 96 |
+index d916186..f664362 100644 |
|
| 97 | 97 |
--- a/drivers/of/Kconfig |
| 98 | 98 |
+++ b/drivers/of/Kconfig |
| 99 | 99 |
@@ -107,4 +107,11 @@ config OF_DMA_DEFAULT_COHERENT |
| ... | ... |
@@ -437,5 +437,5 @@ index 0000000..178f062 |
| 437 | 437 |
+} |
| 438 | 438 |
+late_initcall(of_cfs_init); |
| 439 | 439 |
-- |
| 440 |
-2.19.0 |
|
| 440 |
+2.7.4 |
|
| 441 | 441 |
|
| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-From d52d91b920d4b6ae17adc42375649f1ae190006b Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From c6d9dc693051da8f33055c6d7512fb3f4fdd4c38 Mon Sep 17 00:00:00 2001 |
|
| 2 | 2 |
From: Phil Elwell <phil@raspberrypi.org> |
| 3 | 3 |
Date: Thu, 14 Jun 2018 15:07:26 +0100 |
| 4 | 4 |
Subject: [PATCH] of: configfs: Use of_overlay_fdt_apply API call |
| 5 | 5 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,43 @@ |
| 0 |
+From f5ba852479c7a135948de601c4caf857f795508f Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From: Phil Elwell <phil@raspberrypi.com> |
|
| 2 |
+Date: Thu, 6 Feb 2020 12:23:15 +0000 |
|
| 3 |
+Subject: [PATCH] of: overlay: Correct symbol path fixups |
|
| 4 |
+ |
|
| 5 |
+When symbols from overlays are added to the live tree their paths must |
|
| 6 |
+be rebased. The translated symbol is normally the result of joining |
|
| 7 |
+the fragment-relative path (with a leading "/") to the target path |
|
| 8 |
+(either copied directly from the "target-path" property or resolved |
|
| 9 |
+from the phandle). This translation fails when the target is the root |
|
| 10 |
+node (a common case for Raspberry Pi overlays) because the resulting |
|
| 11 |
+path starts with a double slash. For example, if target-path is "/" and |
|
| 12 |
+the fragment adds a node called "newnode", the label associated with |
|
| 13 |
+that node will be assigned the path "//newnode", which can't be found |
|
| 14 |
+in the tree. |
|
| 15 |
+ |
|
| 16 |
+Fix the failure case by explicitly replacing a target path of "/" with |
|
| 17 |
+an empty string. |
|
| 18 |
+ |
|
| 19 |
+Fixes: d1651b03c2df ("of: overlay: add overlay symbols to live device tree")
|
|
| 20 |
+ |
|
| 21 |
+Signed-off-by: Phil Elwell <phil@raspberrypi.com> |
|
| 22 |
+Signed-off-by: Ajay Kaher <akaher@vmware.com> |
|
| 23 |
+--- |
|
| 24 |
+ drivers/of/overlay.c | 2 ++ |
|
| 25 |
+ 1 file changed, 2 insertions(+) |
|
| 26 |
+ |
|
| 27 |
+diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c |
|
| 28 |
+index 50bbe0e..7e585d2 100644 |
|
| 29 |
+--- a/drivers/of/overlay.c |
|
| 30 |
+@@ -245,6 +245,8 @@ static struct property *dup_and_fixup_symbol_prop( |
|
| 31 |
+ if (!target_path) |
|
| 32 |
+ return NULL; |
|
| 33 |
+ target_path_len = strlen(target_path); |
|
| 34 |
++ if (!strcmp(target_path, "/")) |
|
| 35 |
++ target_path_len = 0; |
|
| 36 |
+ |
|
| 37 |
+ new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); |
|
| 38 |
+ if (!new_prop) |
|
| 39 |
+-- |
|
| 40 |
+2.7.4 |
|
| 41 |
+ |
| ... | ... |
@@ -13,7 +13,7 @@ |
| 13 | 13 |
Summary: Kernel |
| 14 | 14 |
Name: linux |
| 15 | 15 |
Version: 5.9.0 |
| 16 |
-Release: 8%{?kat_build:.kat}%{?dist}
|
|
| 16 |
+Release: 9%{?kat_build:.kat}%{?dist}
|
|
| 17 | 17 |
License: GPLv2 |
| 18 | 18 |
URL: http://www.kernel.org/ |
| 19 | 19 |
Group: System Environment/Kernel |
| ... | ... |
@@ -85,6 +85,13 @@ Patch103: perf-core-Fix-a-leak-in-perf-event-parse-addr-filter.patch |
| 85 | 85 |
#Fix for CVE-2020-8694 |
| 86 | 86 |
Patch104: powercap-restrict-energy-meter-to-root-access.patch |
| 87 | 87 |
|
| 88 |
+%ifarch aarch64 |
|
| 89 |
+# Rpi of_configfs patches |
|
| 90 |
+Patch201: 0001-OF-DT-Overlay-configfs-interface.patch |
|
| 91 |
+Patch202: 0002-of-configfs-Use-of_overlay_fdt_apply-API-call.patch |
|
| 92 |
+Patch203: 0003-of-overlay-Correct-symbol-path-fixups.patch |
|
| 93 |
+%endif |
|
| 94 |
+ |
|
| 88 | 95 |
# Crypto: |
| 89 | 96 |
# Patch to add drbg_pr_ctr_aes256 test vectors to testmgr |
| 90 | 97 |
Patch500: crypto-testmgr-Add-drbg_pr_ctr_aes256-test-vectors.patch |
| ... | ... |
@@ -314,6 +321,13 @@ Python programming language to use the interface to manipulate perf events. |
| 314 | 314 |
%patch103 -p1 |
| 315 | 315 |
%patch104 -p1 |
| 316 | 316 |
|
| 317 |
+%ifarch aarch64 |
|
| 318 |
+# Rpi of_configfs patches |
|
| 319 |
+%patch201 -p1 |
|
| 320 |
+%patch202 -p1 |
|
| 321 |
+%patch203 -p1 |
|
| 322 |
+%endif |
|
| 323 |
+ |
|
| 317 | 324 |
# crypto |
| 318 | 325 |
%patch500 -p1 |
| 319 | 326 |
%patch501 -p1 |
| ... | ... |
@@ -697,6 +711,8 @@ getent group sgx_prv >/dev/null || groupadd -r sgx_prv |
| 697 | 697 |
%{python3_sitelib}/*
|
| 698 | 698 |
|
| 699 | 699 |
%changelog |
| 700 |
+* Wed Dec 09 2020 Ajay Kaher <akaher@vmware.com> 5.9.0-9 |
|
| 701 |
+- To dynamic load Overlays adding of_configfs patches v5.9.y. |
|
| 700 | 702 |
* Tue Dec 01 2020 Prashant S Chauhan <psinghchauha@vmware.com> 5.9.0-8 |
| 701 | 703 |
- Added ami for arm support in linux generic, added multiple drivers |
| 702 | 704 |
- in aarch64 to support aws ami |