Accepting request 1143220 from home:michals
- Update character device patches to current version. * folded link-lpthread.patch into 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch OBS-URL: https://build.opensuse.org/request/show/1143220 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librtas?expand=0&rev=69
This commit is contained in:
parent
6320ffa20b
commit
753e6d5d54
@ -1,4 +1,4 @@
|
|||||||
From 0d48bdca32cbf7a83bcaa5a27e3454d24055e0cb Mon Sep 17 00:00:00 2001
|
From 569da8e5f0d5009694dc2def350cb9cd2c1d81a6 Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Sat, 12 Aug 2023 12:41:36 -0500
|
Date: Sat, 12 Aug 2023 12:41:36 -0500
|
||||||
Subject: [PATCH 1/6] librtas: expose low-level RTAS call APIs internally
|
Subject: [PATCH 1/6] librtas: expose low-level RTAS call APIs internally
|
||||||
@ -10,6 +10,7 @@ The implementations of librtas APIs will move into separate C files as
|
|||||||
they gain support for new interfaces offered by the kernel.
|
they gain support for new interfaces offered by the kernel.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
librtas_src/internal.h | 5 +++++
|
librtas_src/internal.h | 5 +++++
|
||||||
librtas_src/syscall_calls.c | 11 ++++++-----
|
librtas_src/syscall_calls.c | 11 ++++++-----
|
||||||
@ -75,5 +76,5 @@ index 1e09217..eabc5ea 100644
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
int rc, token;
|
int rc, token;
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From 12a2764fd7efe7c52b53579a67edb641d662f54f Mon Sep 17 00:00:00 2001
|
From ee06898b1e7807a6e201b281ffc8ee3fa96136f4 Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Sat, 12 Aug 2023 12:44:38 -0500
|
Date: Sat, 12 Aug 2023 12:44:38 -0500
|
||||||
Subject: [PATCH 2/6] librtas: move VPD code into separate module
|
Subject: [PATCH 2/6] librtas: move VPD code into separate module
|
||||||
@ -8,6 +8,7 @@ interface exposed by newer kernels. This will be a lot of additional
|
|||||||
code, so move it out of syscall_calls.c.
|
code, so move it out of syscall_calls.c.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
Makefile.am | 1 +
|
Makefile.am | 1 +
|
||||||
librtas_src/syscall_calls.c | 67 ------------------------------
|
librtas_src/syscall_calls.c | 67 ------------------------------
|
||||||
@ -193,5 +194,5 @@ index 0000000..b2689fb
|
|||||||
+ return rc ? rc : status;
|
+ return rc ? rc : status;
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From 80dfb541257cb88519855543324478cbb0f1f1b3 Mon Sep 17 00:00:00 2001
|
From c47176a5f1ce7bb16ba02b8c8520e02b285d7e9f Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Mon, 25 Sep 2023 11:32:33 -0500
|
Date: Mon, 25 Sep 2023 11:32:33 -0500
|
||||||
Subject: [PATCH 3/6] librtas: move system parameter code to separate module
|
Subject: [PATCH 3/6] librtas: move system parameter code to separate module
|
||||||
@ -8,6 +8,7 @@ different interface exposed by newer kernels. This will involve adding
|
|||||||
a nontrivial amount of code, so move it out of syscall_calls.c.
|
a nontrivial amount of code, so move it out of syscall_calls.c.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
Makefile.am | 3 +-
|
Makefile.am | 3 +-
|
||||||
librtas_src/syscall_calls.c | 84 -----------------------------------
|
librtas_src/syscall_calls.c | 84 -----------------------------------
|
||||||
@ -226,5 +227,5 @@ index 0000000..40af55e
|
|||||||
+ return rc ? rc : status;
|
+ return rc ? rc : status;
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From ba86b513cbed32f5cdf8840b727457688a0737fb Mon Sep 17 00:00:00 2001
|
From c914a1a701391c565203b10603ad0fbc52438bf7 Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Mon, 25 Sep 2023 11:41:22 -0500
|
Date: Mon, 25 Sep 2023 11:41:22 -0500
|
||||||
Subject: [PATCH 4/6] librtas: vendor papr-miscdev.h
|
Subject: [PATCH 4/6] librtas: vendor papr-miscdev.h
|
||||||
@ -7,6 +7,7 @@ This is a common header used by other kernel uapi headers that we will
|
|||||||
copy into the source tree.
|
copy into the source tree.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
Makefile.am | 4 +++-
|
Makefile.am | 4 +++-
|
||||||
librtas_src/papr-miscdev.h | 9 +++++++++
|
librtas_src/papr-miscdev.h | 9 +++++++++
|
||||||
@ -44,5 +45,5 @@ index 0000000..c0b1072
|
|||||||
+
|
+
|
||||||
+#endif /* _UAPI_PAPR_MISCDEV_H_ */
|
+#endif /* _UAPI_PAPR_MISCDEV_H_ */
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
From 3fffa2c147a69fac72b0159be967ecbe9c751dfb Mon Sep 17 00:00:00 2001
|
From 57d5e1c07b40e56f6209e7b806208818464f8e8d Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Sat, 12 Aug 2023 13:27:39 -0500
|
Date: Sat, 12 Aug 2023 13:27:39 -0500
|
||||||
Subject: [PATCH 5/6] librtas/vpd: prefer /dev/papr-vpd when available
|
Subject: [PATCH 5/6] librtas/vpd: prefer /dev/papr-vpd when available
|
||||||
|
|
||||||
Change rtas_get_vpd() to prefer the /dev/papr-vpd character device as
|
Change rtas_get_vpd() to prefer the /dev/papr-vpd character device
|
||||||
proposed for the kernel here:
|
expected in Linux v6.8.
|
||||||
|
|
||||||
https://lore.kernel.org/linuxppc-dev/20230822-papr-sys_rtas-vs-lockdown-v1-0-932623cf3c7b@linux.ibm.com/
|
|
||||||
|
|
||||||
On the first invocation of rtas_get_vpd(), probe for the new ABI and
|
On the first invocation of rtas_get_vpd(), probe for the new ABI and
|
||||||
initialize an internal function pointer according to the result. Use
|
initialize an internal function pointer according to the result. Use
|
||||||
@ -46,17 +44,27 @@ change. This is the primary (and perhaps only) user of rtas_get_vpd().
|
|||||||
For now, carry a copy of the kernel uapi header.
|
For now, carry a copy of the kernel uapi header.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
Makefile.am | 3 +-
|
Makefile.am | 5 +-
|
||||||
librtas_src/papr-vpd.h | 22 ++++++
|
librtas_src/papr-vpd.h | 22 ++++++
|
||||||
librtas_src/vpd.c | 155 ++++++++++++++++++++++++++++++++++++-----
|
librtas_src/vpd.c | 155 ++++++++++++++++++++++++++++++++++++-----
|
||||||
3 files changed, 161 insertions(+), 19 deletions(-)
|
3 files changed, 162 insertions(+), 20 deletions(-)
|
||||||
create mode 100644 librtas_src/papr-vpd.h
|
create mode 100644 librtas_src/papr-vpd.h
|
||||||
|
|
||||||
diff --git a/Makefile.am b/Makefile.am
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
index d0cabfb..d3513e9 100644
|
index d0cabfb..89a6eaa 100644
|
||||||
--- a/Makefile.am
|
--- a/Makefile.am
|
||||||
+++ b/Makefile.am
|
+++ b/Makefile.am
|
||||||
|
@@ -26,7 +26,7 @@ LIBRTAS_AGE = 0
|
||||||
|
LIBRTAS_LIBRARY_VERSION = $(LIBRTAS_CURRENT):$(LIBRTAS_REVISION):$(LIBRTAS_AGE)
|
||||||
|
|
||||||
|
lib_LTLIBRARIES += librtas.la
|
||||||
|
-librtas_la_LDFLAGS = -version-info $(LIBRTAS_LIBRARY_VERSION)
|
||||||
|
+librtas_la_LDFLAGS = -version-info $(LIBRTAS_LIBRARY_VERSION) -lpthread
|
||||||
|
librtas_la_SOURCES = \
|
||||||
|
librtas_src/vpd.c \
|
||||||
|
librtas_src/ofdt.c \
|
||||||
@@ -37,7 +37,8 @@ librtas_la_SOURCES = \
|
@@ -37,7 +37,8 @@ librtas_la_SOURCES = \
|
||||||
library_include_HEADERS += librtas_src/librtas.h
|
library_include_HEADERS += librtas_src/librtas.h
|
||||||
noinst_HEADERS += \
|
noinst_HEADERS += \
|
||||||
@ -275,5 +283,5 @@ index b2689fb..544560f 100644
|
|||||||
+ seq_next, bytes_ret);
|
+ seq_next, bytes_ret);
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
From c98bf4d902821cfeb83cd6037a36a0bf208f842c Mon Sep 17 00:00:00 2001
|
From d8d4ee6f5052704ac82bb8aa8d8fe8816dac41cd Mon Sep 17 00:00:00 2001
|
||||||
From: Nathan Lynch <nathanl@linux.ibm.com>
|
From: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
Date: Mon, 25 Sep 2023 11:42:26 -0500
|
Date: Mon, 25 Sep 2023 11:42:26 -0500
|
||||||
Subject: [PATCH 6/6] librtas/sysparm: prefer /dev/papr-sysparm when available
|
Subject: [PATCH 6/6] librtas/sysparm: prefer /dev/papr-sysparm when available
|
||||||
|
|
||||||
Change rtas_get_sysparm() and rtas_set_sysparm() to prefer the
|
Change rtas_get_sysparm() and rtas_set_sysparm() to prefer the
|
||||||
/dev/papr-sysparm character device as proposed for the kernel here:
|
/dev/papr-sysparm character device expected in Linux v6.8.
|
||||||
|
|
||||||
[[[ FIXME ]]]
|
|
||||||
|
|
||||||
On the first invocation of either function, probe for the new ABI and
|
On the first invocation of either function, probe for the new ABI and
|
||||||
initialize internal function pointers according to the result. Use
|
initialize internal function pointers according to the result. Use
|
||||||
@ -24,6 +22,7 @@ recognize.
|
|||||||
For now, carry a copy of the kernel uapi header.
|
For now, carry a copy of the kernel uapi header.
|
||||||
|
|
||||||
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
||||||
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||||
---
|
---
|
||||||
Makefile.am | 1 +
|
Makefile.am | 1 +
|
||||||
librtas_src/papr-sysparm.h | 58 +++++++++++++++
|
librtas_src/papr-sysparm.h | 58 +++++++++++++++
|
||||||
@ -32,7 +31,7 @@ Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
|||||||
create mode 100644 librtas_src/papr-sysparm.h
|
create mode 100644 librtas_src/papr-sysparm.h
|
||||||
|
|
||||||
diff --git a/Makefile.am b/Makefile.am
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
index d3513e9..29b3b76 100644
|
index 89a6eaa..67257e3 100644
|
||||||
--- a/Makefile.am
|
--- a/Makefile.am
|
||||||
+++ b/Makefile.am
|
+++ b/Makefile.am
|
||||||
@@ -38,6 +38,7 @@ library_include_HEADERS += librtas_src/librtas.h
|
@@ -38,6 +38,7 @@ library_include_HEADERS += librtas_src/librtas.h
|
||||||
@ -282,5 +281,5 @@ index 40af55e..b4d2054 100644
|
|||||||
+ return set_sysparm_fn(parameter, data);
|
+ return set_sysparm_fn(parameter, data);
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.42.0
|
2.43.0
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package librtas-doc
|
# spec file for package librtas-doc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -33,7 +33,6 @@ Patch3: 0003-librtas-move-system-parameter-code-to-separate-modul.patch
|
|||||||
Patch4: 0004-librtas-vendor-papr-miscdev.h.patch
|
Patch4: 0004-librtas-vendor-papr-miscdev.h.patch
|
||||||
Patch5: 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch
|
Patch5: 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch
|
||||||
Patch6: 0006-librtas-sysparm-prefer-dev-papr-sysparm-when-availab.patch
|
Patch6: 0006-librtas-sysparm-prefer-dev-papr-sysparm-when-availab.patch
|
||||||
Patch7: link-lpthread.patch
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 1 08:44:01 UTC 2024 - Michal Suchanek <msuchanek@suse.com>
|
||||||
|
|
||||||
|
- Update character device patches to current version.
|
||||||
|
* folded link-lpthread.patch into 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 20 16:14:19 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
|
Mon Nov 20 16:14:19 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package librtas
|
# spec file for package librtas
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -35,7 +35,6 @@ Patch3: 0003-librtas-move-system-parameter-code-to-separate-modul.patch
|
|||||||
Patch4: 0004-librtas-vendor-papr-miscdev.h.patch
|
Patch4: 0004-librtas-vendor-papr-miscdev.h.patch
|
||||||
Patch5: 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch
|
Patch5: 0005-librtas-vpd-prefer-dev-papr-vpd-when-available.patch
|
||||||
Patch6: 0006-librtas-sysparm-prefer-dev-papr-sysparm-when-availab.patch
|
Patch6: 0006-librtas-sysparm-prefer-dev-papr-sysparm-when-availab.patch
|
||||||
Patch7: link-lpthread.patch
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
librtas now uses pthread_once
|
|
||||||
|
|
||||||
diff -ur librtas-2.0.5.orig/Makefile.am librtas-2.0.5/Makefile.am
|
|
||||||
--- librtas-2.0.5.orig/Makefile.am 2023-11-23 20:42:40.488274968 +0100
|
|
||||||
+++ librtas-2.0.5/Makefile.am 2023-11-23 20:46:55.600974184 +0100
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
LIBRTAS_LIBRARY_VERSION = $(LIBRTAS_CURRENT):$(LIBRTAS_REVISION):$(LIBRTAS_AGE)
|
|
||||||
|
|
||||||
lib_LTLIBRARIES += librtas.la
|
|
||||||
-librtas_la_LDFLAGS = -version-info $(LIBRTAS_LIBRARY_VERSION)
|
|
||||||
+librtas_la_LDFLAGS = -version-info $(LIBRTAS_LIBRARY_VERSION) -lpthread
|
|
||||||
librtas_la_SOURCES = \
|
|
||||||
librtas_src/vpd.c \
|
|
||||||
librtas_src/ofdt.c \
|
|
||||||
Only in librtas-2.0.5: Makefile.am~
|
|
Loading…
Reference in New Issue
Block a user