All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions
@ 2022-04-14  2:52 Khem Raj
  2022-04-14  2:52 ` [PATCH 2/6] mdadm: Drop clang specific cflags Khem Raj
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/machine/include/riscv/arch-riscv.inc | 2 ++
 meta/conf/machine/include/riscv/tune-riscv.inc | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/meta/conf/machine/include/riscv/arch-riscv.inc b/meta/conf/machine/include/riscv/arch-riscv.inc
index e5611a12a66..230a266563a 100644
--- a/meta/conf/machine/include/riscv/arch-riscv.inc
+++ b/meta/conf/machine/include/riscv/arch-riscv.inc
@@ -7,6 +7,8 @@ TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
 TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
 TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
 
+TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}"
+
 # Fix: ld: unrecognized option '--hash-style=sysv'
 LINKER_HASH_STYLE:libc-newlib = ""
 # Fix: ld: unrecognized option '--hash-style=gnu'
diff --git a/meta/conf/machine/include/riscv/tune-riscv.inc b/meta/conf/machine/include/riscv/tune-riscv.inc
index cc2896f277b..659801496c9 100644
--- a/meta/conf/machine/include/riscv/tune-riscv.inc
+++ b/meta/conf/machine/include/riscv/tune-riscv.inc
@@ -6,6 +6,8 @@ TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
 TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point"
 TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point"
 
+TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions"
+
 TUNEVALID[bigendian] = "Big endian mode"
 
 AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
@@ -31,3 +33,9 @@ TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf"
 TUNE_ARCH:tune-riscv32nf = "riscv32"
 TUNE_PKGARCH:tune-riscv32nf = "riscv32nf"
 PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf"
+
+# no compressed
+TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc"
+TUNE_ARCH:tune-riscv64nc = "riscv64"
+TUNE_PKGARCH:tune-riscv64nc = "riscv64nc"
+PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc"
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/6] mdadm: Drop clang specific cflags
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
@ 2022-04-14  2:52 ` Khem Raj
  2022-04-14  2:52 ` [PATCH 3/6] harfbuzz: Upgrade to 4.2.0 Khem Raj
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This option is no longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb
index 1c2fc8c37a7..19035caaec9 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.2.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb
@@ -35,8 +35,6 @@ DEPENDS = "udev"
 SYSTEMD_SERVICE:${PN} = "mdmonitor.service"
 SYSTEMD_AUTO_ENABLE = "disable"
 
-CFLAGS:append:toolchain-clang = " -Wno-error=address-of-packed-member"
-
 # PPC64 and MIPS64 uses long long for u64 in the kernel, but powerpc's asm/types.h
 # prevents 64-bit userland from seeing this definition, instead defaulting
 # to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/6] harfbuzz: Upgrade to 4.2.0
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
  2022-04-14  2:52 ` [PATCH 2/6] mdadm: Drop clang specific cflags Khem Raj
@ 2022-04-14  2:52 ` Khem Raj
  2022-04-14  2:52 ` [PATCH 4/6] pango: Upgrade to 1.50.6 Khem Raj
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Changes in this release [1] [2]

[1] https://github.com/harfbuzz/harfbuzz/releases/tag/4.1.0
[2] https://github.com/harfbuzz/harfbuzz/releases/tag/4.2.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../harfbuzz/{harfbuzz_4.0.1.bb => harfbuzz_4.2.0.bb}           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-graphics/harfbuzz/{harfbuzz_4.0.1.bb => harfbuzz_4.2.0.bb} (95%)

diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_4.2.0.bb
similarity index 95%
rename from meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb
rename to meta/recipes-graphics/harfbuzz/harfbuzz_4.2.0.bb
index bf77a5e56c5..44d42e6904b 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz_4.2.0.bb
@@ -12,7 +12,7 @@ UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
 UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar"
 
 SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49"
+SRC_URI[sha256sum] = "f2200f177768bdc21445aa09703326f3bbe8114ac083d081fe1a79d305c7ae73"
 
 inherit meson pkgconfig lib_package gtk-doc gobject-introspection
 
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/6] pango: Upgrade to 1.50.6
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
  2022-04-14  2:52 ` [PATCH 2/6] mdadm: Drop clang specific cflags Khem Raj
  2022-04-14  2:52 ` [PATCH 3/6] harfbuzz: Upgrade to 4.2.0 Khem Raj
@ 2022-04-14  2:52 ` Khem Raj
  2022-04-14  2:52 ` [PATCH 5/6] pango: Drop using additional cflags with clang Khem Raj
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Changes in this release [1]

[1] https://github.com/GNOME/pango/commit/37a427018c92a2bc679ef104097e07a619609c9c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-graphics/pango/{pango_1.50.4.bb => pango_1.50.6.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-graphics/pango/{pango_1.50.4.bb => pango_1.50.6.bb} (94%)

diff --git a/meta/recipes-graphics/pango/pango_1.50.4.bb b/meta/recipes-graphics/pango/pango_1.50.6.bb
similarity index 94%
rename from meta/recipes-graphics/pango/pango_1.50.4.bb
rename to meta/recipes-graphics/pango/pango_1.50.6.bb
index 0ea621bf670..b1b9054234d 100644
--- a/meta/recipes-graphics/pango/pango_1.50.4.bb
+++ b/meta/recipes-graphics/pango/pango_1.50.6.bb
@@ -20,7 +20,7 @@ GIR_MESON_DISABLE_FLAG = "disabled"
 
 SRC_URI += "file://run-ptest"
 
-SRC_URI[archive.sha256sum] = "f4ad63e87dc2b145300542a4fb004d07a9f91b34152fae0ddbe50ecdd851c162"
+SRC_URI[archive.sha256sum] = "a998bcf36881c3ac20495d40bceb304f4eaa9175bd2967c85656434cbdafe86a"
 
 DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi"
 
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/6] pango: Drop using additional cflags with clang
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
                   ` (2 preceding siblings ...)
  2022-04-14  2:52 ` [PATCH 4/6] pango: Upgrade to 1.50.6 Khem Raj
@ 2022-04-14  2:52 ` Khem Raj
  2022-04-14  2:52 ` [PATCH 6/6] pango: Skip test-layout ptest Khem Raj
  2022-04-14  7:32 ` [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Alistair Francis
  5 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This is no longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/pango/pango_1.50.6.bb | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta/recipes-graphics/pango/pango_1.50.6.bb b/meta/recipes-graphics/pango/pango_1.50.6.bb
index b1b9054234d..cd04801db10 100644
--- a/meta/recipes-graphics/pango/pango_1.50.6.bb
+++ b/meta/recipes-graphics/pango/pango_1.50.6.bb
@@ -37,10 +37,6 @@ do_configure:prepend() {
     chmod +x ${S}/tests/*.py
 }
 
-do_configure:prepend:toolchain-clang() {
-    sed -i -e "/Werror=implicit-fallthrough/d" ${S}/meson.build
-}
-
 LEAD_SONAME = "libpango-1.0*"
 
 FILES:${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}"
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/6] pango: Skip test-layout ptest
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
                   ` (3 preceding siblings ...)
  2022-04-14  2:52 ` [PATCH 5/6] pango: Drop using additional cflags with clang Khem Raj
@ 2022-04-14  2:52 ` Khem Raj
  2022-04-14  3:33   ` [OE-core] " Alexander Kanavin
  2022-04-14  7:32 ` [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Alistair Francis
  5 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2022-04-14  2:52 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This has intermittent behavior, is sensitive to harfbuzz version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../0001-Skip-running-test-layout-test.patch  | 45 +++++++++++++++++++
 meta/recipes-graphics/pango/pango_1.50.6.bb   |  4 +-
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch

diff --git a/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch b/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
new file mode 100644
index 00000000000..c391e158d28
--- /dev/null
+++ b/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
@@ -0,0 +1,45 @@
+From b9bfe3a79f165682a6db3d7ee1928365e93b1ccf Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 13 Apr 2022 19:39:29 -0700
+Subject: [PATCH] Skip running test-layout test
+
+This fails intermittently, it varies based on what version of harfbuzz
+is installed and if it does not match with what pango CI tests then we
+get random failures in this test. This has been disabled in other
+distros [1] too
+
+We want to drop this on next upgrade and see if this test passes if not
+then keep it disabled
+
+Fixes
+
+Running test: pango/test-layout.test
+1..36
+ok 1 /layout/letterspacing.layout
+ok 2 /layout/valid-7.layout
+not ok 3 /layout/valid-14.layout
+Bail out!
+FAIL: pango/test-layout.test (Child process killed by signal 6)
+
+[1] https://github.com/archlinux/svntogit-packages/commit/3f883e7ff8071adad23b6bcc0ba4b995aff10d52
+
+Upstream-Status: Inappropriate [Distro specific]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ tests/test-layout.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test-layout.c b/tests/test-layout.c
+index 1139e4f..b47a066 100644
+--- a/tests/test-layout.c
++++ b/tests/test-layout.c
+@@ -222,5 +222,5 @@ main (int argc, char *argv[])
+     }
+   g_dir_close (dir);
+ 
+-  return g_test_run ();
++  return 77;
+ }
+-- 
+2.35.2
+
diff --git a/meta/recipes-graphics/pango/pango_1.50.6.bb b/meta/recipes-graphics/pango/pango_1.50.6.bb
index cd04801db10..93e16534641 100644
--- a/meta/recipes-graphics/pango/pango_1.50.6.bb
+++ b/meta/recipes-graphics/pango/pango_1.50.6.bb
@@ -18,7 +18,9 @@ inherit gnomebase gi-docgen ptest-gnome upstream-version-is-even gobject-introsp
 GIR_MESON_ENABLE_FLAG = "enabled"
 GIR_MESON_DISABLE_FLAG = "disabled"
 
-SRC_URI += "file://run-ptest"
+SRC_URI += "file://run-ptest \
+            file://0001-Skip-running-test-layout-test.patch \
+"
 
 SRC_URI[archive.sha256sum] = "a998bcf36881c3ac20495d40bceb304f4eaa9175bd2967c85656434cbdafe86a"
 
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH 6/6] pango: Skip test-layout ptest
  2022-04-14  2:52 ` [PATCH 6/6] pango: Skip test-layout ptest Khem Raj
@ 2022-04-14  3:33   ` Alexander Kanavin
  0 siblings, 0 replies; 9+ messages in thread
From: Alexander Kanavin @ 2022-04-14  3:33 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]

Please do file an upstream bug and include a link to it.

Alex

On Thu 14. Apr 2022 at 4.52, Khem Raj <raj.khem@gmail.com> wrote:

> This has intermittent behavior, is sensitive to harfbuzz version
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../0001-Skip-running-test-layout-test.patch  | 45 +++++++++++++++++++
>  meta/recipes-graphics/pango/pango_1.50.6.bb   |  4 +-
>  2 files changed, 48 insertions(+), 1 deletion(-)
>  create mode 100644
> meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
>
> diff --git
> a/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
> b/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
> new file mode 100644
> index 00000000000..c391e158d28
> --- /dev/null
> +++
> b/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
> @@ -0,0 +1,45 @@
> +From b9bfe3a79f165682a6db3d7ee1928365e93b1ccf Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Wed, 13 Apr 2022 19:39:29 -0700
> +Subject: [PATCH] Skip running test-layout test
> +
> +This fails intermittently, it varies based on what version of harfbuzz
> +is installed and if it does not match with what pango CI tests then we
> +get random failures in this test. This has been disabled in other
> +distros [1] too
> +
> +We want to drop this on next upgrade and see if this test passes if not
> +then keep it disabled
> +
> +Fixes
> +
> +Running test: pango/test-layout.test
> +1..36
> +ok 1 /layout/letterspacing.layout
> +ok 2 /layout/valid-7.layout
> +not ok 3 /layout/valid-14.layout
> +Bail out!
> +FAIL: pango/test-layout.test (Child process killed by signal 6)
> +
> +[1]
> https://github.com/archlinux/svntogit-packages/commit/3f883e7ff8071adad23b6bcc0ba4b995aff10d52
> +
> +Upstream-Status: Inappropriate [Distro specific]
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + tests/test-layout.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/tests/test-layout.c b/tests/test-layout.c
> +index 1139e4f..b47a066 100644
> +--- a/tests/test-layout.c
> ++++ b/tests/test-layout.c
> +@@ -222,5 +222,5 @@ main (int argc, char *argv[])
> +     }
> +   g_dir_close (dir);
> +
> +-  return g_test_run ();
> ++  return 77;
> + }
> +--
> +2.35.2
> +
> diff --git a/meta/recipes-graphics/pango/pango_1.50.6.bb
> b/meta/recipes-graphics/pango/pango_1.50.6.bb
> index cd04801db10..93e16534641 100644
> --- a/meta/recipes-graphics/pango/pango_1.50.6.bb
> +++ b/meta/recipes-graphics/pango/pango_1.50.6.bb
> @@ -18,7 +18,9 @@ inherit gnomebase gi-docgen ptest-gnome
> upstream-version-is-even gobject-introsp
>  GIR_MESON_ENABLE_FLAG = "enabled"
>  GIR_MESON_DISABLE_FLAG = "disabled"
>
> -SRC_URI += "file://run-ptest"
> +SRC_URI += "file://run-ptest \
> +            file://0001-Skip-running-test-layout-test.patch \
> +"
>
>  SRC_URI[archive.sha256sum] =
> "a998bcf36881c3ac20495d40bceb304f4eaa9175bd2967c85656434cbdafe86a"
>
> --
> 2.35.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#164383):
> https://lists.openembedded.org/g/openembedded-core/message/164383
> Mute This Topic: https://lists.openembedded.org/mt/90456793/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 5271 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions
  2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
                   ` (4 preceding siblings ...)
  2022-04-14  2:52 ` [PATCH 6/6] pango: Skip test-layout ptest Khem Raj
@ 2022-04-14  7:32 ` Alistair Francis
  2022-04-14  7:36   ` Khem Raj
  5 siblings, 1 reply; 9+ messages in thread
From: Alistair Francis @ 2022-04-14  7:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

On Thu, Apr 14, 2022 at 12:52 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/conf/machine/include/riscv/arch-riscv.inc | 2 ++
>  meta/conf/machine/include/riscv/tune-riscv.inc | 8 ++++++++
>  2 files changed, 10 insertions(+)
>
> diff --git a/meta/conf/machine/include/riscv/arch-riscv.inc b/meta/conf/machine/include/riscv/arch-riscv.inc
> index e5611a12a66..230a266563a 100644
> --- a/meta/conf/machine/include/riscv/arch-riscv.inc
> +++ b/meta/conf/machine/include/riscv/arch-riscv.inc
> @@ -7,6 +7,8 @@ TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
>  TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
>  TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
>
> +TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}"

I thought Linux expected compressed instruction support, is there
actual hardware that doesn't have compressed instructions?

Alistair

> +
>  # Fix: ld: unrecognized option '--hash-style=sysv'
>  LINKER_HASH_STYLE:libc-newlib = ""
>  # Fix: ld: unrecognized option '--hash-style=gnu'
> diff --git a/meta/conf/machine/include/riscv/tune-riscv.inc b/meta/conf/machine/include/riscv/tune-riscv.inc
> index cc2896f277b..659801496c9 100644
> --- a/meta/conf/machine/include/riscv/tune-riscv.inc
> +++ b/meta/conf/machine/include/riscv/tune-riscv.inc
> @@ -6,6 +6,8 @@ TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
>  TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point"
>  TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point"
>
> +TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions"
> +
>  TUNEVALID[bigendian] = "Big endian mode"
>
>  AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
> @@ -31,3 +33,9 @@ TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf"
>  TUNE_ARCH:tune-riscv32nf = "riscv32"
>  TUNE_PKGARCH:tune-riscv32nf = "riscv32nf"
>  PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf"
> +
> +# no compressed
> +TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc"
> +TUNE_ARCH:tune-riscv64nc = "riscv64"
> +TUNE_PKGARCH:tune-riscv64nc = "riscv64nc"
> +PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc"
> --
> 2.35.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#164378): https://lists.openembedded.org/g/openembedded-core/message/164378
> Mute This Topic: https://lists.openembedded.org/mt/90456787/3619028
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alistair23@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions
  2022-04-14  7:32 ` [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Alistair Francis
@ 2022-04-14  7:36   ` Khem Raj
  0 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2022-04-14  7:36 UTC (permalink / raw)
  To: Alistair Francis; +Cc: OE-core



On 4/14/22 00:32, Alistair Francis wrote:
> On Thu, Apr 14, 2022 at 12:52 PM Khem Raj <raj.khem@gmail.com> wrote:
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>   meta/conf/machine/include/riscv/arch-riscv.inc | 2 ++
>>   meta/conf/machine/include/riscv/tune-riscv.inc | 8 ++++++++
>>   2 files changed, 10 insertions(+)
>>
>> diff --git a/meta/conf/machine/include/riscv/arch-riscv.inc b/meta/conf/machine/include/riscv/arch-riscv.inc
>> index e5611a12a66..230a266563a 100644
>> --- a/meta/conf/machine/include/riscv/arch-riscv.inc
>> +++ b/meta/conf/machine/include/riscv/arch-riscv.inc
>> @@ -7,6 +7,8 @@ TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
>>   TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
>>   TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
>>
>> +TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}"
> 
> I thought Linux expected compressed instruction support, is there
> actual hardware that doesn't have compressed instructions?

CDAC in India is designing bunch of cores without C instruction support.

> 
> Alistair
> 
>> +
>>   # Fix: ld: unrecognized option '--hash-style=sysv'
>>   LINKER_HASH_STYLE:libc-newlib = ""
>>   # Fix: ld: unrecognized option '--hash-style=gnu'
>> diff --git a/meta/conf/machine/include/riscv/tune-riscv.inc b/meta/conf/machine/include/riscv/tune-riscv.inc
>> index cc2896f277b..659801496c9 100644
>> --- a/meta/conf/machine/include/riscv/tune-riscv.inc
>> +++ b/meta/conf/machine/include/riscv/tune-riscv.inc
>> @@ -6,6 +6,8 @@ TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
>>   TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point"
>>   TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point"
>>
>> +TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions"
>> +
>>   TUNEVALID[bigendian] = "Big endian mode"
>>
>>   AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
>> @@ -31,3 +33,9 @@ TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf"
>>   TUNE_ARCH:tune-riscv32nf = "riscv32"
>>   TUNE_PKGARCH:tune-riscv32nf = "riscv32nf"
>>   PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf"
>> +
>> +# no compressed
>> +TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc"
>> +TUNE_ARCH:tune-riscv64nc = "riscv64"
>> +TUNE_PKGARCH:tune-riscv64nc = "riscv64nc"
>> +PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc"
>> --
>> 2.35.2
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#164378): https://lists.openembedded.org/g/openembedded-core/message/164378
>> Mute This Topic: https://lists.openembedded.org/mt/90456787/3619028
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alistair23@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-14 16:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14  2:52 [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Khem Raj
2022-04-14  2:52 ` [PATCH 2/6] mdadm: Drop clang specific cflags Khem Raj
2022-04-14  2:52 ` [PATCH 3/6] harfbuzz: Upgrade to 4.2.0 Khem Raj
2022-04-14  2:52 ` [PATCH 4/6] pango: Upgrade to 1.50.6 Khem Raj
2022-04-14  2:52 ` [PATCH 5/6] pango: Drop using additional cflags with clang Khem Raj
2022-04-14  2:52 ` [PATCH 6/6] pango: Skip test-layout ptest Khem Raj
2022-04-14  3:33   ` [OE-core] " Alexander Kanavin
2022-04-14  7:32 ` [OE-core] [PATCH 1/6] riscv: Add tunes for rv64 without compressed instructions Alistair Francis
2022-04-14  7:36   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.