[linux-yocto] [yocto-kernel-cache][yocto-5.15][PATCH] nxp-s32g: add generic ulpi usb phy kernel option

2022-07-21 Thread quanyang.wang
From: Quanyang Wang 

Add generic ulpi usb phy kernel option.

Signed-off-by: Quanyang Wang 
---
Hi Bruce,
Would you please help merge this patch to the branch:
yocto-5.15
Thanks,
Quanyang
---
 bsp/nxp-s32g/nxp-s32g.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg
index 230571eadf..8c3dff0d35 100644
--- a/bsp/nxp-s32g/nxp-s32g.cfg
+++ b/bsp/nxp-s32g/nxp-s32g.cfg
@@ -77,6 +77,7 @@ CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_CONFIGFS=y
 CONFIG_USB_CONFIGFS_MASS_STORAGE=y
+CONFIG_USB_ULPI_GENERIC=y
 
 #MMC
 CONFIG_MMC=y
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11508): 
https://lists.yoctoproject.org/g/linux-yocto/message/11508
Mute This Topic: https://lists.yoctoproject.org/mt/92540815/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-openssl102-fips][PATCH] openssl-fips: Exclude variable from task hash

2022-07-21 Thread Jate Sujjavanich
Add LAYERPATH_meta-openssl-one-zero-two-fips to vardepsexclude for
do_check_fips to improve sstate reuse

This variable notifies the user of a machine specific path.

Signed-off-by: Jate Sujjavanich 
---
 recipes-connectivity/openssl/openssl-fips_2.0.16.bb | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/recipes-connectivity/openssl/openssl-fips_2.0.16.bb 
b/recipes-connectivity/openssl/openssl-fips_2.0.16.bb
index 7a2949a..582fee1 100644
--- a/recipes-connectivity/openssl/openssl-fips_2.0.16.bb
+++ b/recipes-connectivity/openssl/openssl-fips_2.0.16.bb
@@ -84,6 +84,12 @@ def which(paths, file):
 
 OPENSSL_FIPS_PREBUILT ?= "${FILE_DIRNAME}/${BPN}"
 
+#
+# This variable notifes the user of a machine specific path, so it should not
+# be used in the task hash calculation
+#
+do_check_fips[vardepsexclude] += "LAYERPATH_meta-openssl-one-zero-two-fips"
+
 addtask do_check_fips before do_fetch
 python do_check_fips() {
 if d.getVar('OPENSSL_FIPS_FULLPATH', True) == "":
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57617): https://lists.yoctoproject.org/g/yocto/message/57617
Mute This Topic: https://lists.yoctoproject.org/mt/92539303/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-openssl102-fips][PATCH] MAINTAINERS: Fix mailing list email address

2022-07-21 Thread Jate Sujjavanich
Signed-off-by: Jate Sujjavanich 
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 66a924c..e248803 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1,7 +1,7 @@
 This file contains a list of maintainers for the meta-openssl102-fips layer.
 
 Please submit any patches against meta-openssl102 to the Yocto Project mailing
-list (yo...@yoctoproject.org).  Please prefix emails with 
+list (yocto@lists.yoctoproject.org).  Please prefix emails with 
 [meta-openssl102-fips].
 
 You may also contact the maintainers directly.
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57616): https://lists.yoctoproject.org/g/yocto/message/57616
Mute This Topic: https://lists.yoctoproject.org/mt/92539263/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH V2] meta-security: Add recipe for libhoth

2022-07-21 Thread John Broadbent via lists.yoctoproject.org
From: John Edward Broadbent 

Libhoth is usb protocol implementation which is required for hoth class
devices

Signed-off-by: John Edward Broadbent 
---
 meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb

diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb 
b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
new file mode 100644
index 000..33b9aa0
--- /dev/null
+++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Google Hoth USB library"
+DESCRIPTION = "Libraries and example programs for interacting with a \
+   hoth-class root of trust."
+HOME_PAGE = "https://github.com/google/libhoth;
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
+SRCREV = "1622e8a040d21dd564fdc1cb4df5eda01688c197"
+
+DEPENDS += "libusb1"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson
+
-- 
2.37.1.359.gd136c6c3e2-goog


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57615): https://lists.yoctoproject.org/g/yocto/message/57615
Mute This Topic: https://lists.yoctoproject.org/mt/92539009/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth

2022-07-21 Thread Khem Raj
On Thu, Jul 21, 2022 at 7:11 PM John Broadbent  wrote:
>
> The examples are not separately buildable, and not installed. So there
> is currently no way to make a sperate ${PN}-examples.
> We don't need the examples now, but we are interested to know what you think.
>

I see, that should be ok. I do see a few issues with the patch see below.

> Thanks for the speedy review.
> Joh Broadbent
>
>
> On Thu, Jul 21, 2022 at 3:46 PM Khem Raj  wrote:
> >
> > On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
> >  wrote:
> > >
> > > From: John Edward Broadbent 
> > >
> > > Libhoth is usb protocol implementation which is required for hoth class
> > > devices
> > >
> > > Signed-off-by: John Edward Broadbent 
> > > ---
> > >  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +
> > >  1 file changed, 17 insertions(+)
> > >  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > >
> > > diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb 
> > > b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > > new file mode 100644
> > > index 000..59f52ad
> > > --- /dev/null
> > > +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > > @@ -0,0 +1,17 @@
> > > +SUMMARY = "Google Hoth USB library"
> > > +DESCRIPTION = "Libraries and example programs for interacting with a \
> > > +   hoth-class root of trust."
> > > +HOME_PAGE = https://github.com/google/libhoth

This should be

HOMEPAGE = "https://github.com/google/libhoth;

> > > +
> > > +LICENSE = "Apache-2.0"
> > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> > > +
> > > +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> > > +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"

This revision does not build with musl/clang atleast since there is a
shadowing of a macro going on. You need to avoid that
I cooked a quick patch here

http://sprunge.us/LT8yuB

You might want to take a look.

> > > +
> > > +DEPENDS += "libusb1"
> > > +
> > > +S = "${WORKDIR}/git"
> > > +
> > > +inherit pkgconfig meson
> >
> > Dont we want to package the examples too ? perhaps in a ${PN}-examples
> > or something ?
> >
> > > +
> > > --
> > > 2.37.1.359.gd136c6c3e2-goog
> > >
> > >
> > > 
> > >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57613): https://lists.yoctoproject.org/g/yocto/message/57613
Mute This Topic: https://lists.yoctoproject.org/mt/92537492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth

2022-07-21 Thread John Broadbent via lists.yoctoproject.org
The examples are not separately buildable, and not installed. So there
is currently no way to make a sperate ${PN}-examples.
We don't need the examples now, but we are interested to know what you think.

Thanks for the speedy review.
Joh Broadbent


On Thu, Jul 21, 2022 at 3:46 PM Khem Raj  wrote:
>
> On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
>  wrote:
> >
> > From: John Edward Broadbent 
> >
> > Libhoth is usb protocol implementation which is required for hoth class
> > devices
> >
> > Signed-off-by: John Edward Broadbent 
> > ---
> >  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +
> >  1 file changed, 17 insertions(+)
> >  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> >
> > diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb 
> > b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > new file mode 100644
> > index 000..59f52ad
> > --- /dev/null
> > +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > @@ -0,0 +1,17 @@
> > +SUMMARY = "Google Hoth USB library"
> > +DESCRIPTION = "Libraries and example programs for interacting with a \
> > +   hoth-class root of trust."
> > +HOME_PAGE = https://github.com/google/libhoth
> > +
> > +LICENSE = "Apache-2.0"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> > +
> > +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> > +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
> > +
> > +DEPENDS += "libusb1"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +inherit pkgconfig meson
>
> Dont we want to package the examples too ? perhaps in a ${PN}-examples
> or something ?
>
> > +
> > --
> > 2.37.1.359.gd136c6c3e2-goog
> >
> >
> > 
> >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57612): https://lists.yoctoproject.org/g/yocto/message/57612
Mute This Topic: https://lists.yoctoproject.org/mt/92537492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth

2022-07-21 Thread Khem Raj
On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
 wrote:
>
> From: John Edward Broadbent 
>
> Libhoth is usb protocol implementation which is required for hoth class
> devices
>
> Signed-off-by: John Edward Broadbent 
> ---
>  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +
>  1 file changed, 17 insertions(+)
>  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
>
> diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb 
> b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> new file mode 100644
> index 000..59f52ad
> --- /dev/null
> +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> @@ -0,0 +1,17 @@
> +SUMMARY = "Google Hoth USB library"
> +DESCRIPTION = "Libraries and example programs for interacting with a \
> +   hoth-class root of trust."
> +HOME_PAGE = https://github.com/google/libhoth
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
> +
> +DEPENDS += "libusb1"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit pkgconfig meson

Dont we want to package the examples too ? perhaps in a ${PN}-examples
or something ?

> +
> --
> 2.37.1.359.gd136c6c3e2-goog
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57611): https://lists.yoctoproject.org/g/yocto/message/57611
Mute This Topic: https://lists.yoctoproject.org/mt/92537492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth

2022-07-21 Thread jebr via lists.yoctoproject.org
From: John Edward Broadbent 

Libhoth is usb protocol implementation which is required for hoth class
devices

Signed-off-by: John Edward Broadbent 
---
 meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb

diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb 
b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
new file mode 100644
index 000..59f52ad
--- /dev/null
+++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Google Hoth USB library"
+DESCRIPTION = "Libraries and example programs for interacting with a \
+   hoth-class root of trust."
+HOME_PAGE = https://github.com/google/libhoth
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
+SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
+
+DEPENDS += "libusb1"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson
+
-- 
2.37.1.359.gd136c6c3e2-goog


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57610): https://lists.yoctoproject.org/g/yocto/message/57610
Mute This Topic: https://lists.yoctoproject.org/mt/92537492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Minutes: Yocto Project Weekly Triage Meeting 7/21/2022

2022-07-21 Thread sakib . sajal

*Wiki: *https://wiki.yoctoproject.org/wiki/Bug_Triage

*Attendees: *Steve Sakoman, Joshua Watt, Saul Wold, Randy Macleod, 
Richard Purdie, Aryaman, Ross Burton, Alexandre Belloni, Tim Orling, 
Bruce Ashfield


*ARs:*

*Notes:*
N/A*
*
**

*Medium+ 4.1 Unassigned Enhancements/Bugs: *77 (Last week 79)

*Medium+ 4.99 Unassigned Enhancements/Bugs: *43**(Last week 43)

*AB Bugs: *51 (Last week 52)

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57609): https://lists.yoctoproject.org/g/yocto/message/57609
Mute This Topic: https://lists.yoctoproject.org/mt/92528972/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Custom YOCTO meta-layer building on Ubuntu 20 but Not in Ubuntu 18.Why? #dunfell #yocto #dunfell

2022-07-21 Thread Khem Raj



On 7/21/22 7:03 AM, seth...@calixto.co.in wrote:
We are making a Custom BSP Package for our Board using the YOCTO. I 
encountered with a problem during the build of Yocto image in Ubuntu 
18.04. But the Same image successfully got built in the Ubuntu 20 Machine.


Iam able to build poky in Ubuntu 18.04 machine by removing custom 
layers.But adding custom layers the above problem arises.



there seems to be something in the interaction between core layer with 
your custom layers, Usually issues of this nature are solved in the 
custom layers. Since its not a community layer, its not easy for someone 
from community to help you unless there are more details on nature of 
error or the content of custom layer.




And the errors which are coming is from the meta layer inside poky for 
the gcc9.3 package.


Is there anything to be taken care for making custom layer independent 
on Ubuntu versions. As i just started YOCTO(dunfell) few weeks before, I 
am a noob in YOCTO . Please help on the above issue







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57608): https://lists.yoctoproject.org/g/yocto/message/57608
Mute This Topic: https://lists.yoctoproject.org/mt/92524182/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Integrating Opentelemetry in Yocto Zeus

2022-07-21 Thread Ross Burton
On 21 Jul 2022, at 14:48, poornesh.g via lists.yoctoproject.org 
 wrote:
> 
> Greetings !
> 
> I am having requirement of integrating Opentelemetry in Yocto Zeus . 
> Requesting your suggestions/procedure for integrating Opentelemetry in Yocto 
> Zeus .

First, Zeus is *very* old: https://wiki.yoctoproject.org/wiki/Releases says 
that it was end-of-life in August 2020.  Please upgrade to something newer.

Anyway, it looks like the opentelemetry collector is written in Go, so I 
suggest that your procedure for integrating opentelemetary is to write a recipe 
that uses the Go classes to build it.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57607): https://lists.yoctoproject.org/g/yocto/message/57607
Mute This Topic: https://lists.yoctoproject.org/mt/92526729/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Integrating Opentelemetry in Yocto Zeus

2022-07-21 Thread poornesh . g
Greetings !

I am having requirement of integrating Opentelemetry in Yocto Zeus . Requesting 
your suggestions/procedure for integrating Opentelemetry in Yocto Zeus .

Thanks in advance

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57606): https://lists.yoctoproject.org/g/yocto/message/57606
Mute This Topic: https://lists.yoctoproject.org/mt/92526729/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Custom YOCTO meta-layer building on Ubuntu 20 but Not in Ubuntu 18.Why? #dunfell #yocto #dunfell

2022-07-21 Thread sethu . m
We are making a Custom BSP Package for our Board using the YOCTO. I encountered 
with a problem during the build of Yocto image in Ubuntu 18.04. But the Same 
image successfully got built in the Ubuntu 20 Machine.

Iam able to build poky in Ubuntu 18.04 machine by removing custom layers.But 
adding custom layers the above problem arises.

And the errors which are coming is from the meta layer inside poky for the 
gcc9.3 package.

Is there anything to be taken care for making custom layer independent on 
Ubuntu versions. As i just started YOCTO(dunfell) few weeks before, I am a noob 
in YOCTO . Please help on the above issue

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57605): https://lists.yoctoproject.org/g/yocto/message/57605
Mute This Topic: https://lists.yoctoproject.org/mt/92524182/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][v5.15/standard/intel-sdk-5.15/intel-socfpga & v5.15/standard/preempt-rt/intel-sdk-5.15/intel-socfpga][PATCH 1/1] arm64: psci: don't create online interface file for cpu0 on intel socfpga

2022-07-21 Thread LiweiSong
From: Meng Li 

commit 0eee61da3433d22534098984ebdc5b41aebbac4d from
git://git.yoctoproject.org/linux-yocto 
v5.10/standard/intel-sdk-5.10/intel-socfpga.

After upgrading u-boot to v2021.07, it creates the fit bootloader image
that includes atf and u-boot by default. As known, the cpu hardware
off/on action is processed in atf code, but for intel socfpga platform,
system resets when do cpu0 up. So, create this workaround in kernel
code to avoid operating cpu0 off/on interface online file firstly, and
then try to fix the root cause in atf code in later.

Signed-off-by: Meng Li 
Signed-off-by: Liwei Song 
---
 arch/arm64/kernel/psci.c | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c
index ab7f4c476104..c5c7d3452aac 100644
--- a/arch/arm64/kernel/psci.c
+++ b/arch/arm64/kernel/psci.c
@@ -49,7 +49,14 @@ static int cpu_psci_cpu_boot(unsigned int cpu)
 #ifdef CONFIG_HOTPLUG_CPU
 static bool cpu_psci_cpu_can_disable(unsigned int cpu)
 {
-   return !psci_tos_resident_on(cpu);
+   /* This is a work around for Intel socfpga platforms that don't support
+* for shutting down cpu0. So add the limitation to disable offline 
cpu0.
+*/
+   if ((of_machine_is_compatible("altr,socfpga-stratix10") ||
+   of_machine_is_compatible("intel,socfpga-agilex")) && 
cpu == 0)
+   return false;
+   else
+   return !psci_tos_resident_on(cpu);
 }
 
 static int cpu_psci_cpu_disable(unsigned int cpu)
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11507): 
https://lists.yoctoproject.org/g/linux-yocto/message/11507
Mute This Topic: https://lists.yoctoproject.org/mt/92522889/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-