Skip to contentSkip to conversation

Remove support for I-pipe / kernels < 5.10

PATCH In review Jan Kiszka 2 participants 8 messages Dec 16, 2021 – Dec 20, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Remove support for I-pipe / kernels < 5.10

Move forward and cut off the ropes that binds us to I-pipe kernels, thus anything older than 5.10.

This series primarily removes no longer used files and kernel version wrappings. It does not yet fold dovetail code into the pipeline abstractions once established to work with both patches. That can be done later.

Jan

Jan Kiszka (5):
ci: Drop builds for kernels older than 5.10
cobalt: Drop support for I-pipe based kernels
cobalt: Drop vmalloc_kernel wrapper
cobalt: Drop wrappings for kernels < 5.10
cobalt: Fold dovetail directory in arch-specific sections

 .gitlab-ci.yml                                |   56 -
 doc/asciidoc/README.INSTALL.adoc              |   31 +-
 .../kernel/dovetail/pipeline/wrappers.h       |    9 -
 include/cobalt/kernel/ipipe/pipeline/clock.h  |   45 -
 .../kernel/ipipe/pipeline/inband_work.h       |   32 -
 include/cobalt/kernel/ipipe/pipeline/irq.h    |   14 -
 .../cobalt/kernel/ipipe/pipeline/kevents.h    |   36 -
 include/cobalt/kernel/ipipe/pipeline/lock.h   |   21 -
 .../cobalt/kernel/ipipe/pipeline/machine.h    |   55 -
 .../cobalt/kernel/ipipe/pipeline/pipeline.h   |   96 --
 include/cobalt/kernel/ipipe/pipeline/sched.h  |   58 -
 include/cobalt/kernel/ipipe/pipeline/sirq.h   |   59 -
 include/cobalt/kernel/ipipe/pipeline/thread.h |   27 -
 include/cobalt/kernel/ipipe/pipeline/tick.h   |   18 -
 include/cobalt/kernel/ipipe/pipeline/trace.h  |  116 --
 .../kernel/ipipe/pipeline/vdso_fallback.h     |   16 -
 .../cobalt/kernel/ipipe/pipeline/wrappers.h   |   25 -
 include/cobalt/kernel/rtdm/driver.h           |    4 +-
 .../cobalt/arch/arm/{dovetail => }/Makefile   |    0
 .../dovetail/include/asm/xenomai/features.h   |   30 -
 .../dovetail/include/asm/xenomai/wrappers.h   |   27 -
 .../include/asm/xenomai/calibration.h         |    6 +-
 .../include/asm/xenomai/features.h            |    6 +-
 .../include/asm/xenomai/fptest.h              |    6 +-
 .../include/asm/xenomai/machine.h             |    6 +-
 .../include/asm/xenomai/syscall.h             |    6 +-
 .../include/asm/xenomai/syscall32.h           |    0
 .../include/asm/xenomai/thread.h              |    8 +-
 .../include/asm/xenomai/wrappers.h            |    3 -
 kernel/cobalt/arch/arm/ipipe/Makefile         |    5 -
 kernel/cobalt/arch/arm/ipipe/README           |    3 -
 .../ipipe/include/asm/xenomai/calibration.h   |   63 -
 .../arm/ipipe/include/asm/xenomai/fptest.h    |   52 -
 .../arm/ipipe/include/asm/xenomai/machine.h   |   85 --
 .../arm/ipipe/include/asm/xenomai/syscall.h   |   91 --
 .../arm/ipipe/include/asm/xenomai/syscall32.h |   24 -
 .../arm/ipipe/include/asm/xenomai/thread.h    |  119 --
 kernel/cobalt/arch/arm/ipipe/machine.c        |   63 -
 kernel/cobalt/arch/arm/ipipe/switch.S         |  219 ---
 kernel/cobalt/arch/arm/ipipe/syscall.c        |   53 -
 kernel/cobalt/arch/arm/ipipe/thread.c         |  343 -----
 .../cobalt/arch/arm/{dovetail => }/machine.c  |    0
 .../cobalt/arch/arm64/{dovetail => }/Makefile |    0
 .../include/asm/xenomai/calibration.h         |    6 +-
 .../include/asm/xenomai/features.h            |    6 +-
 .../include/asm/xenomai/fptest.h              |    6 +-
 .../include/asm/xenomai/machine.h             |    6 +-
 .../include/asm/xenomai/syscall.h             |    6 +-
 .../include/asm/xenomai/syscall32.h           |    6 +-
 .../include/asm/xenomai/thread.h              |    8 +-
 .../include/asm/xenomai/wrappers.h            |    3 -
 kernel/cobalt/arch/arm64/ipipe/Makefile       |    5 -
 kernel/cobalt/arch/arm64/ipipe/README         |    3 -
 .../ipipe/include/asm/xenomai/calibration.h   |   37 -
 .../ipipe/include/asm/xenomai/features.h      |   30 -
 .../arm64/ipipe/include/asm/xenomai/fptest.h  |   47 -
 .../arm64/ipipe/include/asm/xenomai/machine.h |   68 -
 .../arm64/ipipe/include/asm/xenomai/syscall.h |   77 --
 .../ipipe/include/asm/xenomai/syscall32.h     |   24 -
 .../arm64/ipipe/include/asm/xenomai/thread.h  |   97 --
 .../ipipe/include/asm/xenomai/wrappers.h      |   27 -
 kernel/cobalt/arch/arm64/ipipe/machine.c      |   66 -
 kernel/cobalt/arch/arm64/ipipe/syscall.c      |   53 -
 kernel/cobalt/arch/arm64/ipipe/thread.c       |  156 ---
 .../arch/arm64/{dovetail => }/machine.c       |    0
 .../cobalt/arch/x86/{dovetail => }/Makefile   |    0
 kernel/cobalt/arch/x86/{ipipe => }/c1e.c      |    0
 kernel/cobalt/arch/x86/dovetail/c1e.c         |    1 -
 kernel/cobalt/arch/x86/dovetail/smi.c         |    1 -
 .../include/asm/xenomai/calibration.h         |    0
 .../include/asm/xenomai/fptest.h              |    0
 .../include/asm/xenomai/machine.h             |    0
 .../include/asm/xenomai/syscall.h             |    0
 .../include/asm/xenomai/thread.h              |    2 +-
 .../arch/x86/include/asm/xenomai/wrappers.h   |   40 -
 kernel/cobalt/arch/x86/ipipe/Makefile         |    5 -
 kernel/cobalt/arch/x86/ipipe/README           |    3 -
 .../ipipe/include/asm/xenomai/calibration.h   |   71 -
 .../x86/ipipe/include/asm/xenomai/fptest.h    |   83 --
 .../x86/ipipe/include/asm/xenomai/machine.h   |   35 -
 .../x86/ipipe/include/asm/xenomai/syscall.h   |   81 --
 .../x86/ipipe/include/asm/xenomai/thread.h    |  101 --
 kernel/cobalt/arch/x86/ipipe/machine.c        |   78 --
 kernel/cobalt/arch/x86/ipipe/thread.c         |  526 -------
 .../cobalt/arch/x86/{dovetail => }/machine.c  |    0
 kernel/cobalt/arch/x86/{ipipe => }/smi.c      |    0
 kernel/cobalt/debug.c                         |    1 +
 kernel/cobalt/heap.c                          |    2 +-
 .../asm-generic/xenomai/ipipe/thread.h        |   39 -
 .../include/asm-generic/xenomai/syscall.h     |   14 +-
 .../xenomai/{dovetail => }/thread.h           |    6 +-
 .../include/asm-generic/xenomai/wrappers.h    |  198 +--
 kernel/cobalt/include/ipipe/thread_info.h     |   38 -
 .../cobalt/include/linux/xenomai/wrappers.h   |   44 -
 kernel/cobalt/ipipe/Makefile                  |    5 -
 kernel/cobalt/ipipe/clock.c                   |  158 ---
 kernel/cobalt/ipipe/init.c                    |   81 --
 kernel/cobalt/ipipe/intr.c                    | 1230 -----------------
 kernel/cobalt/ipipe/kevents.c                 |  541 --------
 kernel/cobalt/ipipe/sched.c                   |  198 ---
 kernel/cobalt/ipipe/syscall.c                 |   29 -
 kernel/cobalt/ipipe/tick.c                    |  286 ----
 kernel/cobalt/pipe.c                          |    5 +-
 kernel/cobalt/posix/clock.c                   |    4 +-
 kernel/cobalt/posix/compat.c                  |   24 +-
 kernel/cobalt/posix/io.c                      |   10 +-
 kernel/cobalt/posix/memory.c                  |    2 +-
 kernel/cobalt/posix/mqueue.c                  |    4 +-
 kernel/cobalt/posix/process.c                 |    3 +-
 kernel/cobalt/posix/signal.c                  |    2 +-
 kernel/cobalt/posix/syscall32.c               |    2 +-
 kernel/cobalt/posix/timerfd.c                 |    2 +-
 kernel/cobalt/rtdm/Makefile                   |    3 +-
 kernel/cobalt/rtdm/wrappers.c                 |  106 --
 kernel/cobalt/thread.c                        |    1 +
 .../analogy/national_instruments/mio_common.c |    2 -
 .../analogy/national_instruments/mite.c       |    3 -
 .../analogy/national_instruments/ni_660x.c    |    2 -
 .../analogy/national_instruments/tio_common.c |    1 -
 kernel/drivers/gpio/gpio-core.c               |    2 +-
 kernel/drivers/ipc/rtipc.c                    |    2 +-
 kernel/drivers/net/addons/proxy.c             |    3 -
 kernel/drivers/net/drivers/e1000e/netdev.c    |   27 -
 .../drivers/experimental/e1000/e1000_main.c   |    3 -
 .../net/drivers/experimental/e1000/kcompat.h  |    8 -
 .../drivers/net/drivers/freescale/fec_main.c  |   21 -
 kernel/drivers/net/drivers/igb/igb_main.c     |   31 -
 kernel/drivers/net/drivers/r8169.c            |    4 -
 kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c  |    6 +-
 kernel/drivers/net/stack/rtdev.c              |    4 -
 scripts/prepare-kernel.sh                     |   40 +-
 scripts/xeno-config-cobalt.in                 |    3 -
 132 files changed, 110 insertions(+), 6790 deletions(-)
 delete mode 100644 include/cobalt/kernel/dovetail/pipeline/wrappers.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/clock.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/inband_work.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/irq.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/kevents.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/lock.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/machine.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/pipeline.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/sched.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/sirq.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/thread.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/tick.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/trace.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/vdso_fallback.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/wrappers.h
 rename kernel/cobalt/arch/arm/{dovetail => }/Makefile (100%)
 delete mode 100644 kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/features.h
 delete mode 100644 kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/wrappers.h
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/calibration.h (90%)
 rename kernel/cobalt/arch/arm/{ipipe => }/include/asm/xenomai/features.h (89%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/fptest.h (91%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/machine.h (92%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/syscall.h (96%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/syscall32.h (100%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/thread.h (86%)
 rename kernel/cobalt/arch/arm/{ipipe => }/include/asm/xenomai/wrappers.h (92%)
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/README
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall32.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/switch.S
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/thread.c
 rename kernel/cobalt/arch/arm/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/Makefile (100%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/calibration.h (79%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/features.h (64%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/fptest.h (79%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/machine.h (82%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/syscall.h (92%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/syscall32.h (52%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/thread.h (75%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/wrappers.h (78%)
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/README
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/features.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall32.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/wrappers.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/thread.c
 rename kernel/cobalt/arch/arm64/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/Makefile (100%)
 rename kernel/cobalt/arch/x86/{ipipe => }/c1e.c (100%)
 delete mode 120000 kernel/cobalt/arch/x86/dovetail/c1e.c
 delete mode 120000 kernel/cobalt/arch/x86/dovetail/smi.c
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/calibration.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/fptest.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/machine.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/syscall.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/thread.h (96%)
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/README
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/thread.c
 rename kernel/cobalt/arch/x86/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/x86/{ipipe => }/smi.c (100%)
 delete mode 100644 kernel/cobalt/include/asm-generic/xenomai/ipipe/thread.h
 rename kernel/cobalt/include/asm-generic/xenomai/{dovetail => }/thread.h (78%)
 delete mode 100644 kernel/cobalt/include/ipipe/thread_info.h
 delete mode 100644 kernel/cobalt/include/linux/xenomai/wrappers.h
 delete mode 100644 kernel/cobalt/ipipe/Makefile
 delete mode 100644 kernel/cobalt/ipipe/clock.c
 delete mode 100644 kernel/cobalt/ipipe/init.c
 delete mode 100644 kernel/cobalt/ipipe/intr.c
 delete mode 100644 kernel/cobalt/ipipe/kevents.c
 delete mode 100644 kernel/cobalt/ipipe/sched.c
 delete mode 100644 kernel/cobalt/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/ipipe/tick.c
 delete mode 100644 kernel/cobalt/rtdm/wrappers.c
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/5 ci: Drop builds for kernels older than 5.10

From: Jan Kiszka <[email protected]>

---
 .gitlab-ci.yml | 56 --------------------------------------------------
 1 file changed, 56 deletions(-)
.gitlab-ci.yml +0 -56
index 76daad792e..e4f35f2c45 100644
@@ -187,22 +187,6 @@ arm-5.10-head:
     PIPELINE_KERNEL: ${DOVETAIL_URL}
     KERNEL_DEFCONFIG: multi_v7_defconfig
 
-arm-5.4-release:
-  extends: .build
-  variables:
-    ARCH: arm
-    PIPELINE_REV: ipipe-core-5.4..*-arm-.*
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-arm.git
-    KERNEL_DEFCONFIG: multi_v7_defconfig
-
-arm-4.19-release:
-  extends: .build
-  variables:
-    ARCH: arm
-    PIPELINE_REV: ipipe-core-4.19..*-arm-.*
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-arm.git
-    KERNEL_DEFCONFIG: multi_v7_defconfig
-
 arm64-5.10-head:
   extends: .build
   variables:
@@ -211,22 +195,6 @@ arm64-5.10-head:
     PIPELINE_KERNEL: ${DOVETAIL_URL}
     KERNEL_DEFCONFIG: defconfig
 
-arm64-5.4-release:
-  extends: .build
-  variables:
-    ARCH: arm64
-    PIPELINE_REV: ipipe-core-5.4..*-arm64-.*
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-arm64.git
-    KERNEL_DEFCONFIG: defconfig
-
-arm64-4.19-cip-release:
-  extends: .build
-  variables:
-    ARCH: arm64
-    PIPELINE_REV: ipipe-core-4.19..*cip.*-arm64-.*
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-arm64.git
-    KERNEL_DEFCONFIG: defconfig
-
 x86-5.10-head:
   extends: .build
   variables:
@@ -235,30 +203,6 @@ x86-5.10-head:
     PIPELINE_KERNEL: ${DOVETAIL_URL}
     KERNEL_DEFCONFIG: x86_64_defconfig
 
-x86-5.4-head:
-  extends: .build
-  variables:
-    ARCH: x86
-    PIPELINE_REV: ipipe-x86-5.4.y
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-x86.git
-    KERNEL_DEFCONFIG: x86_64_defconfig
-
-x86-4.19-cip-head:
-  extends: .build
-  variables:
-    ARCH: x86
-    PIPELINE_REV: ipipe-x86-4.19.y-cip
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-x86.git
-    KERNEL_DEFCONFIG: x86_64_defconfig
-
-x86-4.19-cip-release:
-  extends: .build
-  variables:
-    ARCH: x86
-    PIPELINE_REV: ipipe-core-4.19..*cip.*-x86-.*
-    PIPELINE_KERNEL: ${IPIPE_URL}/ipipe-x86.git
-    KERNEL_DEFCONFIG: x86_64_defconfig
-
 i386-userland:
   extends: .build
   variables:
Signature · 1 line
2.31.1
author
#2 lore raw

PATCH 2/5 cobalt: Drop support for I-pipe based kernels

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

This means Dovetail-only, 5.10+.

---
 doc/asciidoc/README.INSTALL.adoc              |   31 +-
 include/cobalt/kernel/ipipe/pipeline/clock.h  |   45 -
 .../kernel/ipipe/pipeline/inband_work.h       |   32 -
 include/cobalt/kernel/ipipe/pipeline/irq.h    |   14 -
 .../cobalt/kernel/ipipe/pipeline/kevents.h    |   36 -
 include/cobalt/kernel/ipipe/pipeline/lock.h   |   21 -
 .../cobalt/kernel/ipipe/pipeline/machine.h    |   55 -
 .../cobalt/kernel/ipipe/pipeline/pipeline.h   |   96 --
 include/cobalt/kernel/ipipe/pipeline/sched.h  |   58 -
 include/cobalt/kernel/ipipe/pipeline/sirq.h   |   59 -
 include/cobalt/kernel/ipipe/pipeline/thread.h |   27 -
 include/cobalt/kernel/ipipe/pipeline/tick.h   |   18 -
 include/cobalt/kernel/ipipe/pipeline/trace.h  |  116 --
 .../kernel/ipipe/pipeline/vdso_fallback.h     |   16 -
 .../cobalt/kernel/ipipe/pipeline/wrappers.h   |   25 -
 kernel/cobalt/arch/arm/ipipe/Makefile         |    5 -
 kernel/cobalt/arch/arm/ipipe/README           |    3 -
 .../ipipe/include/asm/xenomai/calibration.h   |   63 -
 .../arm/ipipe/include/asm/xenomai/features.h  |   30 -
 .../arm/ipipe/include/asm/xenomai/fptest.h    |   52 -
 .../arm/ipipe/include/asm/xenomai/machine.h   |   85 --
 .../arm/ipipe/include/asm/xenomai/syscall.h   |   91 --
 .../arm/ipipe/include/asm/xenomai/syscall32.h |   24 -
 .../arm/ipipe/include/asm/xenomai/thread.h    |  119 --
 .../arm/ipipe/include/asm/xenomai/wrappers.h  |   27 -
 kernel/cobalt/arch/arm/ipipe/machine.c        |   63 -
 kernel/cobalt/arch/arm/ipipe/switch.S         |  219 ---
 kernel/cobalt/arch/arm/ipipe/syscall.c        |   53 -
 kernel/cobalt/arch/arm/ipipe/thread.c         |  343 -----
 kernel/cobalt/arch/arm64/ipipe/Makefile       |    5 -
 kernel/cobalt/arch/arm64/ipipe/README         |    3 -
 .../ipipe/include/asm/xenomai/calibration.h   |   37 -
 .../ipipe/include/asm/xenomai/features.h      |   30 -
 .../arm64/ipipe/include/asm/xenomai/fptest.h  |   47 -
 .../arm64/ipipe/include/asm/xenomai/machine.h |   68 -
 .../arm64/ipipe/include/asm/xenomai/syscall.h |   77 --
 .../ipipe/include/asm/xenomai/syscall32.h     |   24 -
 .../arm64/ipipe/include/asm/xenomai/thread.h  |   97 --
 .../ipipe/include/asm/xenomai/wrappers.h      |   27 -
 kernel/cobalt/arch/arm64/ipipe/machine.c      |   66 -
 kernel/cobalt/arch/arm64/ipipe/syscall.c      |   53 -
 kernel/cobalt/arch/arm64/ipipe/thread.c       |  156 ---
 kernel/cobalt/arch/x86/dovetail/c1e.c         |   73 +-
 kernel/cobalt/arch/x86/dovetail/smi.c         |  169 ++-
 kernel/cobalt/arch/x86/ipipe/Makefile         |    5 -
 kernel/cobalt/arch/x86/ipipe/README           |    3 -
 kernel/cobalt/arch/x86/ipipe/c1e.c            |   72 -
 .../ipipe/include/asm/xenomai/calibration.h   |   71 -
 .../x86/ipipe/include/asm/xenomai/fptest.h    |   83 --
 .../x86/ipipe/include/asm/xenomai/machine.h   |   35 -
 .../x86/ipipe/include/asm/xenomai/syscall.h   |   81 --
 .../x86/ipipe/include/asm/xenomai/thread.h    |  101 --
 kernel/cobalt/arch/x86/ipipe/machine.c        |   78 --
 kernel/cobalt/arch/x86/ipipe/smi.c            |  168 ---
 kernel/cobalt/arch/x86/ipipe/thread.c         |  526 -------
 .../asm-generic/xenomai/ipipe/thread.h        |   39 -
 kernel/cobalt/include/ipipe/thread_info.h     |   38 -
 kernel/cobalt/ipipe/Makefile                  |    5 -
 kernel/cobalt/ipipe/clock.c                   |  158 ---
 kernel/cobalt/ipipe/init.c                    |   81 --
 kernel/cobalt/ipipe/intr.c                    | 1230 -----------------
 kernel/cobalt/ipipe/kevents.c                 |  541 --------
 kernel/cobalt/ipipe/sched.c                   |  198 ---
 kernel/cobalt/ipipe/syscall.c                 |   29 -
 kernel/cobalt/ipipe/tick.c                    |  286 ----
 scripts/prepare-kernel.sh                     |   39 +-
 scripts/xeno-config-cobalt.in                 |    3 -
 67 files changed, 260 insertions(+), 6368 deletions(-)
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/clock.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/inband_work.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/irq.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/kevents.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/lock.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/machine.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/pipeline.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/sched.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/sirq.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/thread.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/tick.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/trace.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/vdso_fallback.h
 delete mode 100644 include/cobalt/kernel/ipipe/pipeline/wrappers.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/README
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/features.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall32.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/wrappers.h
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/switch.S
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/arch/arm/ipipe/thread.c
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/README
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/features.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall32.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/wrappers.h
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/arch/arm64/ipipe/thread.c
 mode change 120000 => 100644 kernel/cobalt/arch/x86/dovetail/c1e.c
 mode change 120000 => 100644 kernel/cobalt/arch/x86/dovetail/smi.c
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/Makefile
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/README
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/c1e.c
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/calibration.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/fptest.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/machine.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/thread.h
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/machine.c
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/smi.c
 delete mode 100644 kernel/cobalt/arch/x86/ipipe/thread.c
 delete mode 100644 kernel/cobalt/include/asm-generic/xenomai/ipipe/thread.h
 delete mode 100644 kernel/cobalt/include/ipipe/thread_info.h
 delete mode 100644 kernel/cobalt/ipipe/Makefile
 delete mode 100644 kernel/cobalt/ipipe/clock.c
 delete mode 100644 kernel/cobalt/ipipe/init.c
 delete mode 100644 kernel/cobalt/ipipe/intr.c
 delete mode 100644 kernel/cobalt/ipipe/kevents.c
 delete mode 100644 kernel/cobalt/ipipe/sched.c
 delete mode 100644 kernel/cobalt/ipipe/syscall.c
 delete mode 100644 kernel/cobalt/ipipe/tick.c
doc/asciidoc/README.INSTALL.adoc +14 -17
index c22f563712..c0f4c12e99 100644
@@ -61,17 +61,17 @@ as follows:
 
 ------------------------------------------------------------------------------
 $ scripts/prepare-kernel.sh [--linux=<linux-srctree>]
-[--ipipe=<ipipe-patch>] [--arch=<target-arch>]
+[--dovetail=<dovetail-patch>] [--arch=<target-arch>]
 ------------------------------------------------------------------------------
 
 `--linux`:: specifies the path of the target kernel source tree. Such
     kernel tree may be already configured or not, indifferently. This
     path defaults to $PWD.
 
-`--ipipe`:: specifies the path of the interrupt pipeline (aka I-pipe)
+`--dovetil`:: specifies the path of the interrupt pipeline (aka Dovetail)
     patch to apply against the kernel tree. Suitable patches are
-    available from the project's link:/downloads/ipipe/[download
-    area].  This parameter can be omitted if the I-pipe has already
+    available from the project's link:/downloads/dovetail/[download
+    area].  This parameter can be omitted if the Dovetail has already
     been patched in, or the script shall suggest an appropriate
     one. The script will detect whether the interrupt pipeline code is
     already present into the kernel tree, and skip this operation if
@@ -82,12 +82,12 @@ $ scripts/prepare-kernel.sh [--linux=<linux-srctree>]
     default.
 
 For instance, the following command would prepare the Linux tree
-located at `/home/me/linux-3.10-ipipe` in order to patch the Xenomai
+located at `/home/me/linux-dovetail` in order to patch the Xenomai
 support in:
 
 ------------------------------------------------------------------------------
 $ cd xenomai-3
-$ scripts/prepare-kernel.sh --linux=/home/me/linux-3.10
+$ scripts/prepare-kernel.sh --linux=/home/me/linux-dovetail
 ------------------------------------------------------------------------------
 
 Note: The script will infer the location of the Xenomai kernel code
@@ -182,7 +182,7 @@ typically run:
 ------------------------------------------------------------------------------
 $ cd $linux_tree
 $ $xenomai_root/scripts/prepare-kernel.sh --arch=x86 \
-  --ipipe=ipipe-core-X.Y.Z-x86-NN.patch
+  --dovetail=patch-X.Y.Z-dovetail.patch
 $ make [ARCH=i386] xconfig/gconfig/menuconfig
 ------------------------------------------------------------------------------
 ...configure the kernel (see also the recommended settings
@@ -200,7 +200,7 @@ typical steps would be as follows:
 ------------------------------------------------------------------------------
 $ cd $linux_tree
 $ $xenomai_root/scripts/prepare-kernel.sh --arch=i386 \
-  --ipipe=ipipe-core-X.Y.Z-x86-NN.patch
+  --dovetail=patch-X.Y.Z-dovetail.patch
 $ make xconfig/gconfig/menuconfig
 ------------------------------------------------------------------------------
 ...configure the kernel (see also the recommended settings
@@ -216,7 +216,7 @@ Similarly, for a 64bit platform, you would use:
 ------------------------------------------------------------------------------
 $ cd $linux_tree
 $ $xenomai_root/scripts/prepare-kernel.sh --arch=x86_64 \
-  --ipipe=ipipe-core-X.Y.Z-x86-NN.patch
+  --dovetail=patch-X.Y.Z-dovetail.patch
 $ make xconfig/gconfig/menuconfig
 ------------------------------------------------------------------------------
 ...configure the kernel (see also the recommended settings
@@ -243,7 +243,7 @@ will look like:
 ------------------------------------------------------------------------------
 $ cd $linux_tree
 $ $xenomai_root/scripts/prepare-kernel.sh --arch=arm \
-  --ipipe=ipipe-core-X.Y.Z-x86-NN.patch
+  --dovetail=patch-X.Y.Z-dovetail.patch
 $ mkdir -p $build_root/linux
 $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- O=$build_root/linux \
   csb637_defconfig
@@ -300,13 +300,11 @@ although this is not mandatory if building with `--disable-tls`.
 _Cobalt_-specific requirements
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-- The kernel version must be 3.10 or better.
+- The kernel version must be 5.10 or better.
 
-- An interrupt pipeline (I-pipe) patch must be available for your
+- An interrupt pipeline (Dovetail) patch must be available for your
   target kernel. You can find the official patches issued by the
-  Xenomai project link:/downloads/ipipe/[there].
-  Only patches from the *ipipe-core* series are appropriate, legacy
-  patches from the *adeos-ipipe* series are not.
+  Xenomai project link:/downloads/dovetail/[there].
 
 - A timestamp counter (TSC) is required from running on a x86_32
   hardware. Unlike with Xenomai 2.x, TSC-emulation using a PIT
@@ -774,8 +772,7 @@ messages like these:
 
 ------------------------------------------------------------------------------
 $ dmesg | grep -i xenomai
-I-pipe: head domain Xenomai registered.
-[Xenomai] Cobalt vX.Y.Z enabled
+[Xenomai] Cobalt vX.Y.Z
 ------------------------------------------------------------------------------
 
 
include/cobalt/kernel/ipipe/pipeline/clock.h deleted +0 -45

45 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/inband_work.h deleted +0 -32
deleted file mode 100644
index 12ef07b00a..0000000000
@@ -1,32 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- *
- * Copyright (C) 2019 Philippe Gerum  <[email protected]>
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_INBAND_WORK_H
-#define _COBALT_KERNEL_IPIPE_INBAND_WORK_H
-
-#include <linux/ipipe.h>
-
-/*
- * This field must be named inband_work and appear first in the
- * container work struct.
- */
-struct pipeline_inband_work {
-	struct ipipe_work_header work;
-};
-
-#define PIPELINE_INBAND_WORK_INITIALIZER(__work, __handler)		\
-	{								\
-		.work = {						\
-			.size = sizeof(__work),				\
-			.handler = (void (*)(struct ipipe_work_header *)) \
-			__handler,					\
-		},							\
-	}
-
-#define pipeline_post_inband_work(__work)	\
-	ipipe_post_work_root(__work, inband_work.work)
-
-#endif /* !_COBALT_KERNEL_IPIPE_INBAND_WORK_H */
include/cobalt/kernel/ipipe/pipeline/irq.h deleted +0 -14
deleted file mode 100644
index a2db772d37..0000000000
@@ -1,14 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_IRQ_H
-#define _COBALT_KERNEL_IPIPE_IRQ_H
-
-void xnintr_init_proc(void);
-
-void xnintr_cleanup_proc(void);
-
-int xnintr_mount(void);
-
-#endif /* !_COBALT_KERNEL_IPIPE_IRQ_H */
include/cobalt/kernel/ipipe/pipeline/kevents.h deleted +0 -36
deleted file mode 100644
index f3f0c2f95e..0000000000
@@ -1,36 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- *
- * Copyright (C) 2019 Philippe Gerum  <[email protected]>
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_KEVENTS_H
-#define _COBALT_KERNEL_IPIPE_KEVENTS_H
-
-#define KEVENT_PROPAGATE   0
-#define KEVENT_STOP        1
-
-struct cobalt_process;
-struct cobalt_thread;
-
-static inline
-int pipeline_attach_process(struct cobalt_process *process)
-{
-	return 0;
-}
-
-static inline
-void pipeline_detach_process(struct cobalt_process *process)
-{ }
-
-int pipeline_prepare_current(void);
-
-void pipeline_attach_current(struct xnthread *thread);
-
-int pipeline_trap_kevents(void);
-
-void pipeline_enable_kevents(void);
-
-void pipeline_cleanup_process(void);
-
-#endif /* !_COBALT_KERNEL_IPIPE_KEVENTS_H */
include/cobalt/kernel/ipipe/pipeline/lock.h deleted +0 -21
deleted file mode 100644
index f33b041c72..0000000000
@@ -1,21 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_LOCK_H
-#define _COBALT_KERNEL_IPIPE_LOCK_H
-
-#include <pipeline/pipeline.h>
-
-typedef ipipe_spinlock_t pipeline_spinlock_t;
-
-#define PIPELINE_SPIN_LOCK_UNLOCKED(__name)  IPIPE_SPIN_LOCK_UNLOCKED
-
-#ifdef CONFIG_XENO_OPT_DEBUG_LOCKING
-/* Disable UP-over-SMP kernel optimization in debug mode. */
-#define __locking_active__  1
-#else
-#define __locking_active__  ipipe_smp_p
-#endif
-
-#endif /* !_COBALT_KERNEL_IPIPE_LOCK_H */
include/cobalt/kernel/ipipe/pipeline/machine.h deleted +0 -55

55 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/pipeline.h deleted +0 -96

96 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/sched.h deleted +0 -58

58 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/sirq.h deleted +0 -59

59 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/thread.h deleted +0 -27
deleted file mode 100644
index 30a88537b3..0000000000
@@ -1,27 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- *
- * Copyright (C) 2019 Philippe Gerum  <[email protected]>
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_THREAD_H
-#define _COBALT_KERNEL_IPIPE_THREAD_H
-
-#include <linux/ipipe.h>
-#include <linux/sched.h>
-
-struct xnthread;
-
-#define cobalt_threadinfo ipipe_threadinfo
-
-static inline struct cobalt_threadinfo *pipeline_current(void)
-{
-	return ipipe_current_threadinfo();
-}
-
-static inline struct xnthread *pipeline_thread_from_task(struct task_struct *p)
-{
-	return ipipe_task_threadinfo(p)->thread;
-}
-
-#endif /* !_COBALT_KERNEL_IPIPE_THREAD_H */
include/cobalt/kernel/ipipe/pipeline/tick.h deleted +0 -18
deleted file mode 100644
index 41347f7b18..0000000000
@@ -1,18 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- */
-
-#ifndef _COBALT_KERNEL_IPIPE_TICK_H
-#define _COBALT_KERNEL_IPIPE_TICK_H
-
-int pipeline_install_tick_proxy(void);
-
-void pipeline_uninstall_tick_proxy(void);
-
-struct xnsched;
-static inline bool pipeline_must_force_program_tick(struct xnsched *sched)
-{
-	return false;
-}
-
-#endif /* !_COBALT_KERNEL_IPIPE_TICK_H */
include/cobalt/kernel/ipipe/pipeline/trace.h deleted +0 -116

116 lines not on this page · raw message

include/cobalt/kernel/ipipe/pipeline/vdso_fallback.h deleted +0 -16
deleted file mode 100644
index f9ea3886ba..0000000000
@@ -1,16 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- *
- * Copyright (c) Siemens AG, 2021
- */
-
-#ifndef _COBALT_KERNEL_PIPELINE_VDSO_FALLBACK_H
-#define _COBALT_KERNEL_PIPELINE_VDSO_FALLBACK_H
-
-static __always_inline bool 
-pipeline_handle_vdso_fallback(int nr, struct pt_regs *regs)
-{
-	return false;
-}
-
-#endif /* !_COBALT_KERNEL_PIPELINE_VDSO_FALLBACK_H */
include/cobalt/kernel/ipipe/pipeline/wrappers.h deleted +0 -25
deleted file mode 100644
index dcf021e83d..0000000000
@@ -1,25 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- */
-#ifndef _COBALT_KERNEL_IPIPE_WRAPPERS_H
-#define _COBALT_KERNEL_IPIPE_WRAPPERS_H
-
-#include <linux/ipipe.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
-#define cobalt_set_task_state(tsk, state_value)	\
-	set_task_state(tsk, state_value)
-#else
-/*
- * The co-kernel can still set the current task state safely if it
- * runs on the head stage.
- */
-#define cobalt_set_task_state(tsk, state_value)	\
-	smp_store_mb((tsk)->state, (state_value))
-#endif
-
-#ifndef ipipe_root_nr_syscalls
-#define ipipe_root_nr_syscalls(ti)	NR_syscalls
-#endif
-
-#endif /* !_COBALT_KERNEL_IPIPE_WRAPPERS_H */
kernel/cobalt/arch/arm/ipipe/Makefile deleted +0 -5
deleted file mode 100644
index c482fb3376..0000000000
@@ -1,5 +0,0 @@
-obj-$(CONFIG_XENOMAI) += xenomai.o
-
-xenomai-$(CONFIG_IPIPE) := machine.o thread.o switch.o syscall.o
-
-ccflags-y := -I$(srctree)/arch/arm/xenomai/include -I$(srctree)/include/xenomai
kernel/cobalt/arch/arm/ipipe/README deleted +0 -3
deleted file mode 100644
index 80f954aef6..0000000000
@@ -1,3 +0,0 @@
-Get the interrupt pipeline code for the target kernel from
-http://xenomai.org/downloads/ipipe/, or
-git://git.xenomai.org/ipipe.git
kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/calibration.h deleted +0 -63

63 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/features.h deleted +0 -30
deleted file mode 100644
index d485286a4e..0000000000
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2005 Philippe Gerum <[email protected]>.
- *
- * ARM port
- *   Copyright (C) 2005 Stelian Pop
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM_ASM_FEATURES_H
-#define _COBALT_ARM_ASM_FEATURES_H
-
-struct cobalt_featinfo;
-static inline void collect_arch_features(struct cobalt_featinfo *p) { }
-
-#include <asm/xenomai/uapi/features.h>
-
-#endif /* !_COBALT_ARM_ASM_FEATURES_H */
kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/fptest.h deleted +0 -52

52 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/machine.h deleted +0 -85

85 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall.h deleted +0 -91

91 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/syscall32.h deleted +0 -24
deleted file mode 100644
index 95c5a11685..0000000000
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2014 Philippe Gerum <[email protected]>.
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM_ASM_SYSCALL32_H
-#define _COBALT_ARM_ASM_SYSCALL32_H
-
-#include <asm-generic/xenomai/syscall32.h>
-
-#endif /* !_COBALT_ARM_ASM_SYSCALL32_H */
kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/thread.h deleted +0 -119

119 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/include/asm/xenomai/wrappers.h deleted +0 -27
deleted file mode 100644
index fe598966cd..0000000000
@@ -1,27 +0,0 @@
-/*
- * Copyright (C) 2005 Philippe Gerum <[email protected]>.
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM_ASM_WRAPPERS_H
-#define _COBALT_ARM_ASM_WRAPPERS_H
-
-#include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
-
-#define __put_user_inatomic __put_user
-#define __get_user_inatomic __get_user
-
-#endif /* _COBALT_ARM_ASM_WRAPPERS_H */
kernel/cobalt/arch/arm/ipipe/machine.c deleted +0 -63

63 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/switch.S deleted +0 -219

219 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/syscall.c deleted +0 -53

53 lines not on this page · raw message

kernel/cobalt/arch/arm/ipipe/thread.c deleted +0 -343

343 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/Makefile deleted +0 -5
deleted file mode 100644
index cf12a18014..0000000000
@@ -1,5 +0,0 @@
-obj-$(CONFIG_XENOMAI) += xenomai.o
-
-xenomai-y := machine.o thread.o syscall.o
-
-ccflags-y := -I$(srctree)/arch/arm64/xenomai/include -I$(srctree)/include/xenomai
kernel/cobalt/arch/arm64/ipipe/README deleted +0 -3
deleted file mode 100644
index 80f954aef6..0000000000
@@ -1,3 +0,0 @@
-Get the interrupt pipeline code for the target kernel from
-http://xenomai.org/downloads/ipipe/, or
-git://git.xenomai.org/ipipe.git
kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/calibration.h deleted +0 -37
deleted file mode 100644
index e85521e139..0000000000
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2015 Philippe Gerum <[email protected]>.
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM64_ASM_CALIBRATION_H
-#define _COBALT_ARM64_ASM_CALIBRATION_H
-
-static inline void xnarch_get_latencies(struct xnclock_gravity *p)
-{
-	unsigned int ulat;
-#if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0
-	ulat = CONFIG_XENO_OPT_TIMING_SCHEDLAT;
-#elif defined(CONFIG_ARCH_HISI)
-	ulat = 4000;
-#else
-	ulat = 4000;
-#endif
-	p->user = xnclock_ns_to_ticks(&nkclock, ulat);
-	p->kernel = xnclock_ns_to_ticks(&nkclock, CONFIG_XENO_OPT_TIMING_KSCHEDLAT);
-	p->irq = xnclock_ns_to_ticks(&nkclock, CONFIG_XENO_OPT_TIMING_IRQLAT);
-}
-
-#endif /* !_COBALT_ARM64_ASM_CALIBRATION_H */
kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/features.h deleted +0 -30
deleted file mode 100644
index 112408fe29..0000000000
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2015 Philippe Gerum <[email protected]>.
- *
- * ARM port
- *   Copyright (C) 2005 Stelian Pop
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM64_ASM_FEATURES_H
-#define _COBALT_ARM64_ASM_FEATURES_H
-
-struct cobalt_featinfo;
-static inline void collect_arch_features(struct cobalt_featinfo *p) { }
-
-#include <asm/xenomai/uapi/features.h>
-
-#endif /* !_COBALT_ARM64_ASM_FEATURES_H */
kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/fptest.h deleted +0 -47

47 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/machine.h deleted +0 -68

68 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall.h deleted +0 -77

77 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/syscall32.h deleted +0 -24
deleted file mode 100644
index a66ddd6807..0000000000
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2014 Philippe Gerum <[email protected]>.
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM64_ASM_SYSCALL32_H
-#define _COBALT_ARM64_ASM_SYSCALL32_H
-
-#include <asm-generic/xenomai/syscall32.h>
-
-#endif /* !_COBALT_ARM64_ASM_SYSCALL32_H */
kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/thread.h deleted +0 -97

97 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/include/asm/xenomai/wrappers.h deleted +0 -27
deleted file mode 100644
index 5a5754fd65..0000000000
@@ -1,27 +0,0 @@
-/*
- * Copyright (C) 2005 Philippe Gerum <[email protected]>.
- *
- * Xenomai is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Xenomai; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-#ifndef _COBALT_ARM64_ASM_WRAPPERS_H
-#define _COBALT_ARM64_ASM_WRAPPERS_H
-
-#include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
-
-#define __put_user_inatomic __put_user
-#define __get_user_inatomic __get_user
-
-#endif /* _COBALT_ARM64_ASM_WRAPPERS_H */
kernel/cobalt/arch/arm64/ipipe/machine.c deleted +0 -66

66 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/syscall.c deleted +0 -53

53 lines not on this page · raw message

kernel/cobalt/arch/arm64/ipipe/thread.c deleted +0 -156

156 lines not on this page · raw message

kernel/cobalt/arch/x86/dovetail/c1e.c deleted +0 -1
deleted file mode 120000
index 5dc924ec6c..0000000000
@@ -1 +0,0 @@
-../ipipe/c1e.c
\ No newline at end of file
kernel/cobalt/arch/x86/dovetail/c1e.c new file +72 -0

72 lines not on this page · raw message

kernel/cobalt/arch/x86/dovetail/smi.c deleted +0 -1
deleted file mode 120000
index 8d197210f4..0000000000
@@ -1 +0,0 @@
-../ipipe/smi.c
\ No newline at end of file
kernel/cobalt/arch/x86/dovetail/smi.c new file +168 -0

168 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/Makefile deleted +0 -5
deleted file mode 100644
index 1ef407c353..0000000000
@@ -1,5 +0,0 @@
-
-obj-$(CONFIG_XENOMAI) += xenomai.o
-xenomai-y := machine.o thread.o smi.o c1e.o
-
-ccflags-y := -I$(srctree)/arch/x86/xenomai/include -I$(srctree)/include/xenomai
kernel/cobalt/arch/x86/ipipe/README deleted +0 -3
deleted file mode 100644
index 80f954aef6..0000000000
@@ -1,3 +0,0 @@
-Get the interrupt pipeline code for the target kernel from
-http://xenomai.org/downloads/ipipe/, or
-git://git.xenomai.org/ipipe.git
kernel/cobalt/arch/x86/ipipe/c1e.c deleted +0 -72

72 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/calibration.h deleted +0 -71

71 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/fptest.h deleted +0 -83

28 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/machine.h deleted +0 -35
deleted file mode 100644
index 750eb1ec50..0000000000

Lines of this file are not shown. View the raw message.

kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/syscall.h deleted +0 -81

81 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/include/asm/xenomai/thread.h deleted +0 -101

101 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/machine.c deleted +0 -78

78 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/smi.c deleted +0 -168

168 lines not on this page · raw message

kernel/cobalt/arch/x86/ipipe/thread.c deleted +0 -526

526 lines not on this page · raw message

kernel/cobalt/include/asm-generic/xenomai/ipipe/thread.h deleted +0 -39
deleted file mode 100644
index fcd7275d9e..0000000000

Lines of this file are not shown. View the raw message.

kernel/cobalt/include/ipipe/thread_info.h deleted +0 -38
deleted file mode 100644
index 3fc467a313..0000000000

Lines of this file are not shown. View the raw message.

kernel/cobalt/ipipe/Makefile deleted +0 -5
deleted file mode 100644
index f2b877d450..0000000000

Lines of this file are not shown. View the raw message.

kernel/cobalt/ipipe/clock.c deleted +0 -158

158 lines not on this page · raw message

kernel/cobalt/ipipe/init.c deleted +0 -81

81 lines not on this page · raw message

kernel/cobalt/ipipe/intr.c deleted +0 -1230

1,230 lines not on this page · raw message

kernel/cobalt/ipipe/kevents.c deleted +0 -541

541 lines not on this page · raw message

kernel/cobalt/ipipe/sched.c deleted +0 -198

198 lines not on this page · raw message

kernel/cobalt/ipipe/syscall.c deleted +0 -29
deleted file mode 100644
index 867a81ec24..0000000000

Lines of this file are not shown. View the raw message.

kernel/cobalt/ipipe/tick.c deleted +0 -286

286 lines not on this page · raw message

scripts/prepare-kernel.sh +6 -33
index 11aa72fc41..ca869f19a4 100755

Lines of this file are not shown. View the raw message.

scripts/xeno-config-cobalt.in +0 -3
index 9f60e90bb3..a093779b96 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.31.1

Part of the diff is not shown here. View the raw message.

author
#3 lore raw

PATCH 3/5 cobalt: Drop vmalloc_kernel wrapper

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

vmalloc_kernel() without extra flags is just vmalloc. And for requesting __GFP_ZERO, there vzalloc since 2.6.37.

---
 kernel/cobalt/heap.c                                 |  2 +-
 kernel/cobalt/include/asm-generic/xenomai/wrappers.h | 12 ------------
 kernel/cobalt/posix/memory.c                         |  2 +-
 3 files changed, 2 insertions(+), 14 deletions(-)
kernel/cobalt/heap.c +1 -1
index f106d5d071..28fe78a78e 100644
@@ -850,7 +850,7 @@ void *xnheap_vmalloc(size_t size)
 	 * software on a 32bit system had to be wrong in the first
 	 * place anyway.
 	 */
-	return vmalloc_kernel(size, 0);
+	return vmalloc(size);
 }
 EXPORT_SYMBOL_GPL(xnheap_vmalloc);
 
kernel/cobalt/include/asm-generic/xenomai/wrappers.h +0 -12
index 87ceeda800..414469c3a5 100644
@@ -197,12 +197,6 @@ devm_hwmon_device_register_with_groups(struct device *dev, const char *name,
 }
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
-#define vmalloc_kernel(__size, __flags)	__vmalloc(__size, GFP_KERNEL|__flags, PAGE_KERNEL)
-#else
-#define vmalloc_kernel(__size, __flags)	__vmalloc(__size, GFP_KERNEL|__flags)
-#endif
-
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5,7,0)
 #define pci_aer_clear_nonfatal_status	pci_cleanup_aer_uncorrect_error_status
 #define old_timespec32    compat_timespec
@@ -210,12 +204,6 @@ devm_hwmon_device_register_with_groups(struct device *dev, const char *name,
 #define old_timeval32     compat_timeval
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
-#define vmalloc_kernel(__size, __flags)	__vmalloc(__size, GFP_KERNEL|__flags, PAGE_KERNEL)
-#else
-#define vmalloc_kernel(__size, __flags)	__vmalloc(__size, GFP_KERNEL|__flags)
-#endif
-
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
 #define read_file_from_kernel(__file, __buf, __buf_size, __file_size, __id) \
 	({								\
kernel/cobalt/posix/memory.c +1 -1
index fc88e264c6..25cc784ea9 100644
@@ -324,7 +324,7 @@ int cobalt_umm_init(struct cobalt_umm *umm, u32 size,
 	BUG_ON(xnarch_cache_aliasing());
 
 	size = PAGE_ALIGN(size);
-	basemem = vmalloc_kernel(size, __GFP_ZERO);
+	basemem = vzalloc(size);
 	if (basemem == NULL)
 		return -ENOMEM;
 
Signature · 1 line
2.31.1
author
#4 lore raw

PATCH 4/5 cobalt: Drop wrappings for kernels < 5.10

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

This massively reduces our wrappings and also allows to consolidate related headers and modules. linux/xenomai/wrappers.h, rtdm/wrappers.c and pipeline/wrappers.h are removed completely. mmiowb(), cobalt_gpiochip_dev, cobalt_get_restart_block, read_file_from_kernel no longer vary and are folded into the callers. access_rok and access_wok are simply replaced by access_ok.

We keep DEFINE_PROC_OPS as it simplifies the usage.

---
 .../kernel/dovetail/pipeline/wrappers.h       |   9 -
 include/cobalt/kernel/rtdm/driver.h           |   4 +-
 .../include/asm/xenomai/wrappers.h            |   3 -
 .../include/asm/xenomai/wrappers.h            |   3 -
 .../arch/x86/include/asm/xenomai/wrappers.h   |  40 ----
 kernel/cobalt/debug.c                         |   1 +
 .../include/asm-generic/xenomai/syscall.h     |  14 +-
 .../include/asm-generic/xenomai/wrappers.h    | 186 +-----------------
 .../cobalt/include/linux/xenomai/wrappers.h   |  44 -----
 kernel/cobalt/pipe.c                          |   5 +-
 kernel/cobalt/posix/clock.c                   |   4 +-
 kernel/cobalt/posix/compat.c                  |  24 +--
 kernel/cobalt/posix/io.c                      |  10 +-
 kernel/cobalt/posix/mqueue.c                  |   4 +-
 kernel/cobalt/posix/process.c                 |   3 +-
 kernel/cobalt/posix/signal.c                  |   2 +-
 kernel/cobalt/posix/syscall32.c               |   2 +-
 kernel/cobalt/posix/timerfd.c                 |   2 +-
 kernel/cobalt/rtdm/Makefile                   |   3 +-
 kernel/cobalt/rtdm/wrappers.c                 | 106 ----------
 kernel/cobalt/thread.c                        |   1 +
 .../analogy/national_instruments/mio_common.c |   2 -
 .../analogy/national_instruments/mite.c       |   3 -
 .../analogy/national_instruments/ni_660x.c    |   2 -
 .../analogy/national_instruments/tio_common.c |   1 -
 kernel/drivers/gpio/gpio-core.c               |   2 +-
 kernel/drivers/ipc/rtipc.c                    |   2 +-
 kernel/drivers/net/addons/proxy.c             |   3 -
 kernel/drivers/net/drivers/e1000e/netdev.c    |  27 ---
 .../drivers/experimental/e1000/e1000_main.c   |   3 -
 .../net/drivers/experimental/e1000/kcompat.h  |   8 -
 .../drivers/net/drivers/freescale/fec_main.c  |  21 --
 kernel/drivers/net/drivers/igb/igb_main.c     |  31 ---
 kernel/drivers/net/drivers/r8169.c            |   4 -
 kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c  |   6 +-
 kernel/drivers/net/stack/rtdev.c              |   4 -
 scripts/prepare-kernel.sh                     |   1 -
 37 files changed, 43 insertions(+), 547 deletions(-)
 delete mode 100644 include/cobalt/kernel/dovetail/pipeline/wrappers.h
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/wrappers.h (92%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/wrappers.h (78%)
 delete mode 100644 kernel/cobalt/include/linux/xenomai/wrappers.h
 delete mode 100644 kernel/cobalt/rtdm/wrappers.c
include/cobalt/kernel/dovetail/pipeline/wrappers.h deleted +0 -9
deleted file mode 100644
index 133aacac3f..0000000000
@@ -1,9 +0,0 @@
-/*
- * SPDX-License-Identifier: GPL-2.0
- */
-#ifndef _COBALT_KERNEL_DOVETAIL_WRAPPERS_H
-#define _COBALT_KERNEL_DOVETAIL_WRAPPERS_H
-
-/* No wrapper needed so far. */
-
-#endif /* !_COBALT_KERNEL_DOVETAIL_WRAPPERS_H */
include/cobalt/kernel/rtdm/driver.h +2 -2
index 2a68c3e920..930da34ed1 100644
@@ -1272,13 +1272,13 @@ int rtdm_munmap(void *ptr, size_t len);
 static inline int rtdm_read_user_ok(struct rtdm_fd *fd,
 				    const void __user *ptr, size_t size)
 {
-	return access_rok(ptr, size);
+	return access_ok(ptr, size);
 }
 
 static inline int rtdm_rw_user_ok(struct rtdm_fd *fd,
 				  const void __user *ptr, size_t size)
 {
-	return access_wok(ptr, size);
+	return access_ok(ptr, size);
 }
 
 static inline int rtdm_copy_from_user(struct rtdm_fd *fd,
kernel/cobalt/arch/arm/include/asm/xenomai/wrappers.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/wrappers.h +0 -3
similarity index 92%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/wrappers.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/wrappers.h
index fe598966cd..baab5a3b5a 100644
@@ -21,7 +21,4 @@
 
 #include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
 
-#define __put_user_inatomic __put_user
-#define __get_user_inatomic __get_user
-
 #endif /* _COBALT_ARM_ASM_WRAPPERS_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/wrappers.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/wrappers.h +0 -3
similarity index 78%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/wrappers.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/wrappers.h
index 7a1122fd30..61fcfaf592 100644
@@ -9,7 +9,4 @@
 
 #include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
 
-#define __put_user_inatomic __put_user
-#define __get_user_inatomic __get_user
-
 #endif /* _COBALT_ARM64_ASM_WRAPPERS_H */
kernel/cobalt/arch/x86/include/asm/xenomai/wrappers.h +0 -40
index a4cc368a56..c9263cbc08 100644
@@ -21,44 +21,4 @@
 
 #include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
 
-#define __get_user_inatomic __get_user
-#define __put_user_inatomic __put_user
-
-#if LINUX_VERSION_CODE > KERNEL_VERSION(4,9,108) && \
-    LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
-#define IPIPE_X86_FPU_EAGER
-#endif
-#if LINUX_VERSION_CODE > KERNEL_VERSION(4,4,137) && \
-    LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
-#define IPIPE_X86_FPU_EAGER
-#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
-#define IPIPE_X86_FPU_EAGER
-#endif
-
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
-#include <asm/i387.h>
-#include <asm/fpu-internal.h>
-#else
-#include <asm/fpu/internal.h>
-#endif
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
-
-static inline void kernel_fpu_disable(void)
-{
-	__thread_clear_has_fpu(current);
-}
-
-static inline void kernel_fpu_enable(void)
-{
-}
-
-static inline bool kernel_fpu_disabled(void)
-{
-	return __thread_has_fpu(current) == 0 && (read_cr0() & X86_CR0_TS) == 0;
-}
-#endif /* linux < 4.1.0 */
-
 #endif /* _COBALT_X86_ASM_WRAPPERS_H */
kernel/cobalt/debug.c +1 -0
index a6e2cc42d3..e8458855a6 100644
@@ -23,6 +23,7 @@
 #include <linux/mm.h>
 #include <linux/signal.h>
 #include <linux/vmalloc.h>
+#include <linux/sched/mm.h>
 #include <cobalt/kernel/sched.h>
 #include <cobalt/kernel/heap.h>
 #include <cobalt/kernel/clock.h>
kernel/cobalt/include/asm-generic/xenomai/syscall.h +3 -11
index 117bb3ff8a..70b3e68f97 100644
@@ -28,14 +28,6 @@
 #include <cobalt/uapi/asm-generic/syscall.h>
 #include <cobalt/uapi/kernel/types.h>
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
-#define access_rok(addr, size)	access_ok((addr), (size))
-#define access_wok(addr, size)	access_ok((addr), (size))
-#else
-#define access_rok(addr, size)	access_ok(VERIFY_READ, (addr), (size))
-#define access_wok(addr, size)	access_ok(VERIFY_WRITE, (addr), (size))
-#endif
-
 #define __xn_copy_from_user(dstP, srcP, n)	raw_copy_from_user(dstP, srcP, n)
 #define __xn_copy_to_user(dstP, srcP, n)	raw_copy_to_user(dstP, srcP, n)
 #define __xn_put_user(src, dstP)		__put_user(src, dstP)
@@ -47,7 +39,7 @@ static inline int cobalt_copy_from_user(void *dst, const void __user *src,
 {
 	size_t remaining = size;
 
-	if (likely(access_rok(src, size)))
+	if (likely(access_ok(src, size)))
 		remaining = __xn_copy_from_user(dst, src, size);
 
 	if (unlikely(remaining > 0)) {
@@ -60,7 +52,7 @@ static inline int cobalt_copy_from_user(void *dst, const void __user *src,
 static inline int cobalt_copy_to_user(void __user *dst, const void *src,
 				      size_t size)
 {
-	if (unlikely(!access_wok(dst, size) ||
+	if (unlikely(!access_ok(dst, size) ||
 	    __xn_copy_to_user(dst, src, size)))
 		return -EFAULT;
 	return 0;
@@ -69,7 +61,7 @@ static inline int cobalt_copy_to_user(void __user *dst, const void *src,
 static inline int cobalt_strncpy_from_user(char *dst, const char __user *src,
 					   size_t count)
 {
-	if (unlikely(!access_rok(src, 1)))
+	if (unlikely(!access_ok(src, 1)))
 		return -EFAULT;
 
 	return __xn_strncpy_from_user(dst, src, count);
kernel/cobalt/include/asm-generic/xenomai/wrappers.h +1 -185

204 lines not on this page · raw message

kernel/cobalt/include/linux/xenomai/wrappers.h deleted +0 -44

44 lines not on this page · raw message

kernel/cobalt/pipe.c +3 -2
index 17aca5df64..33181101a0 100644
@@ -27,6 +27,7 @@
 #include <linux/spinlock.h>
 #include <linux/device.h>
 #include <linux/uaccess.h>
+#include <linux/compat.h>
 #include <asm/io.h>
 #include <asm/xenomai/syscall.h>
 #include <cobalt/kernel/sched.h>
@@ -798,7 +799,7 @@ static ssize_t xnpipe_read(struct file *file,
 	ssize_t ret;
 	spl_t s;
 
-	if (!access_wok(buf, count))
+	if (!access_ok(buf, count))
 		return -EFAULT;
 
 	xnlock_get_irqsave(&nklock, s);
@@ -906,7 +907,7 @@ static ssize_t xnpipe_write(struct file *file,
 	if (count == 0)
 		return 0;
 
-	if (!access_rok(buf, count))
+	if (!access_ok(buf, count))
 		return -EFAULT;
 
 	xnlock_get_irqsave(&nklock, s);
kernel/cobalt/posix/clock.c +2 -2
index 71d14db526..16cc8b20a6 100644
@@ -323,7 +323,7 @@ int __cobalt_clock_nanosleep(clockid_t clock_id, int flags,
 	if (xnthread_test_localinfo(cur, XNSYSRST)) {
 		xnthread_clear_localinfo(cur, XNSYSRST);
 
-		restart = cobalt_get_restart_block(current);
+		restart = &current->restart_block;
 
 		if (restart->fn != cobalt_restart_syscall_placeholder) {
 			if (rmt) {
@@ -346,7 +346,7 @@ int __cobalt_clock_nanosleep(clockid_t clock_id, int flags,
 
 	if (xnthread_test_info(cur, XNBREAK)) {
 		if (signal_pending(current)) {
-			restart = cobalt_get_restart_block(current);
+			restart = &current->restart_block;
 			restart->nanosleep.expires =
 				(flags & TIMER_ABSTIME) ? timeout :
 				    xntimer_get_timeout_stopped(&cur->rtimer);
kernel/cobalt/posix/compat.c +12 -12
index 2ec46084c5..c7fc4fc331 100644
@@ -27,7 +27,7 @@ int sys32_get_timespec(struct timespec64 *ts,
 {
 	struct old_timespec32 cts;
 
-	if (u_cts == NULL || !access_rok(u_cts, sizeof(*u_cts)))
+	if (u_cts == NULL || !access_ok(u_cts, sizeof(*u_cts)))
 		return -EFAULT;
 
 	if (__xn_get_user(cts.tv_sec, &u_cts->tv_sec) ||
@@ -46,7 +46,7 @@ int sys32_put_timespec(struct old_timespec32 __user *u_cts,
 {
 	struct old_timespec32 cts;
 
-	if (u_cts == NULL || !access_wok(u_cts, sizeof(*u_cts)))
+	if (u_cts == NULL || !access_ok(u_cts, sizeof(*u_cts)))
 		return -EFAULT;
 
 	cts.tv_sec = ts->tv_sec;
@@ -82,7 +82,7 @@ int sys32_get_timeval(struct __kernel_old_timeval *tv,
 		      const struct old_timeval32 __user *ctv)
 {
 	return (ctv == NULL ||
-		!access_rok(ctv, sizeof(*ctv)) ||
+		!access_ok(ctv, sizeof(*ctv)) ||
 		__xn_get_user(tv->tv_sec, &ctv->tv_sec) ||
 		__xn_get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0;
 }
@@ -92,7 +92,7 @@ int sys32_put_timeval(struct old_timeval32 __user *ctv,
 		      const struct __kernel_old_timeval *tv)
 {
 	return (ctv == NULL ||
-		!access_wok(ctv, sizeof(*ctv)) ||
+		!access_ok(ctv, sizeof(*ctv)) ||
 		__xn_put_user(tv->tv_sec, &ctv->tv_sec) ||
 		__xn_put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0;
 }
@@ -113,7 +113,7 @@ int sys32_get_timex(struct __kernel_timex *tx,
 	tx->time.tv_sec = time.tv_sec;
 	tx->time.tv_usec = time.tv_usec;
 
-	if (!access_rok(ctx, sizeof(*ctx)) ||
+	if (!access_ok(ctx, sizeof(*ctx)) ||
 	    __xn_get_user(tx->modes, &ctx->modes) ||
 	    __xn_get_user(tx->offset, &ctx->offset) ||
 	    __xn_get_user(tx->freq, &ctx->freq) ||
@@ -151,7 +151,7 @@ int sys32_put_timex(struct old_timex32 __user *ctx,
 	if (ret)
 		return ret;
 
-	if (!access_wok(ctx, sizeof(*ctx)) ||
+	if (!access_ok(ctx, sizeof(*ctx)) ||
 	    __xn_put_user(tx->modes, &ctx->modes) ||
 	    __xn_put_user(tx->offset, &ctx->offset) ||
 	    __xn_put_user(tx->freq, &ctx->freq) ||
@@ -181,7 +181,7 @@ int sys32_get_fdset(fd_set *fds, const compat_fd_set __user *cfds,
 {
 	int rdpos, wrpos, rdlim = cfdsize / sizeof(compat_ulong_t);
 
-	if (cfds == NULL || !access_rok(cfds, cfdsize))
+	if (cfds == NULL || !access_ok(cfds, cfdsize))
 		return -EFAULT;
 
 	for (rdpos = 0, wrpos = 0; rdpos < rdlim; rdpos++, wrpos++)
@@ -196,7 +196,7 @@ int sys32_put_fdset(compat_fd_set __user *cfds, const fd_set *fds,
 {
 	int rdpos, wrpos, wrlim = fdsize / sizeof(long);
 
-	if (cfds == NULL || !access_wok(cfds, wrlim * sizeof(compat_ulong_t)))
+	if (cfds == NULL || !access_ok(cfds, wrlim * sizeof(compat_ulong_t)))
 		return -EFAULT;
 
 	for (rdpos = 0, wrpos = 0; wrpos < wrlim; rdpos++, wrpos++)
@@ -440,7 +440,7 @@ int sys32_get_msghdr(struct user_msghdr *msg,
 	compat_uptr_t tmp1, tmp2, tmp3;
 
 	if (u_cmsg == NULL ||
-	    !access_rok(u_cmsg, sizeof(*u_cmsg)) ||
+	    !access_ok(u_cmsg, sizeof(*u_cmsg)) ||
 	    __xn_get_user(tmp1, &u_cmsg->msg_name) ||
 	    __xn_get_user(msg->msg_namelen, &u_cmsg->msg_namelen) ||
 	    __xn_get_user(tmp2, &u_cmsg->msg_iov) ||
@@ -465,7 +465,7 @@ int sys32_get_mmsghdr(struct mmsghdr *mmsg,
 		      const struct compat_mmsghdr __user *u_cmmsg)
 {
 	if (u_cmmsg == NULL ||
-	    !access_rok(u_cmmsg, sizeof(*u_cmmsg)) ||
+	    !access_ok(u_cmmsg, sizeof(*u_cmmsg)) ||
 	    __xn_get_user(mmsg->msg_len, &u_cmmsg->msg_len))
 		return -EFAULT;
 
@@ -477,7 +477,7 @@ int sys32_put_msghdr(struct compat_msghdr __user *u_cmsg,
 		     const struct user_msghdr *msg)
 {
 	if (u_cmsg == NULL ||
-	    !access_wok(u_cmsg, sizeof(*u_cmsg)) ||
+	    !access_ok(u_cmsg, sizeof(*u_cmsg)) ||
 	    __xn_put_user(ptr_to_compat(msg->msg_name), &u_cmsg->msg_name) ||
 	    __xn_put_user(msg->msg_namelen, &u_cmsg->msg_namelen) ||
 	    __xn_put_user(ptr_to_compat(msg->msg_iov), &u_cmsg->msg_iov) ||
@@ -495,7 +495,7 @@ int sys32_put_mmsghdr(struct compat_mmsghdr __user *u_cmmsg,
 		     const struct mmsghdr *mmsg)
 {
 	if (u_cmmsg == NULL ||
-	    !access_wok(u_cmmsg, sizeof(*u_cmmsg)) ||
+	    !access_ok(u_cmmsg, sizeof(*u_cmmsg)) ||
 	    __xn_put_user(mmsg->msg_len, &u_cmmsg->msg_len))
 		return -EFAULT;
 
kernel/cobalt/posix/io.c +5 -5
index b95dfbce9d..45ec09fae7 100644
@@ -247,7 +247,7 @@ int __cobalt_select(int nfds, void __user *u_rfds, void __user *u_wfds,
 		if (xnthread_test_localinfo(curr, XNSYSRST)) {
 			xnthread_clear_localinfo(curr, XNSYSRST);
 
-			restart = cobalt_get_restart_block(current);
+			restart = &current->restart_block;
 			timeout = restart->nanosleep.expires;
 
 			if (restart->fn != cobalt_restart_syscall_placeholder) {
@@ -262,7 +262,7 @@ int __cobalt_select(int nfds, void __user *u_rfds, void __user *u_wfds,
 			} else
 #endif
 			{
-				if (!access_wok(u_tv, sizeof(tv))
+				if (!access_ok(u_tv, sizeof(tv))
 				    || cobalt_copy_from_user(&tv, u_tv,
 							     sizeof(tv)))
 					return -EFAULT;
@@ -291,8 +291,8 @@ int __cobalt_select(int nfds, void __user *u_rfds, void __user *u_wfds,
 			} else
 #endif
 			{
-				if (!access_wok((void __user *) ufd_sets[i],
-						sizeof(fd_set))
+				if (!access_ok((void __user *) ufd_sets[i],
+					       sizeof(fd_set))
 				    || cobalt_copy_from_user(in_fds[i],
 							     (void __user *)ufd_sets[i],
 							     fds_size))
@@ -335,7 +335,7 @@ int __cobalt_select(int nfds, void __user *u_rfds, void __user *u_wfds,
 	if (err == -EINTR && signal_pending(current)) {
 		xnthread_set_localinfo(curr, XNSYSRST);
 
-		restart = cobalt_get_restart_block(current);
+		restart = &current->restart_block;
 		restart->fn = cobalt_restart_syscall_placeholder;
 		restart->nanosleep.expires = timeout;
 
kernel/cobalt/posix/mqueue.c +2 -2
index d93c0bdf6d..d0a6d4e31f 100644
@@ -948,7 +948,7 @@ int __cobalt_mq_timedsend(mqd_t uqd, const void __user *u_buf, size_t len,
 		goto out;
 	}
 
-	if (len > 0 && !access_rok(u_buf, len)) {
+	if (len > 0 && !access_ok(u_buf, len)) {
 		ret = -EFAULT;
 		goto out;
 	}
@@ -1012,7 +1012,7 @@ int __cobalt_mq_timedreceive(mqd_t uqd, void __user *u_buf,
 	if (IS_ERR(mqd))
 		return PTR_ERR(mqd);
 
-	if (*lenp > 0 && !access_wok(u_buf, *lenp)) {
+	if (*lenp > 0 && !access_ok(u_buf, *lenp)) {
 		ret = -EFAULT;
 		goto fail;
 	}
kernel/cobalt/posix/process.c +2 -1
index 935007f821..1abc86f37b 100644
@@ -34,6 +34,7 @@
 #include <linux/file.h>
 #include <linux/sched.h>
 #include <linux/signal.h>
+#include <linux/sched/mm.h>
 #include <pipeline/kevents.h>
 #include <cobalt/kernel/sched.h>
 #include <cobalt/kernel/heap.h>
@@ -605,7 +606,7 @@ int cobalt_map_user(struct xnthread *thread, __u32 __user *u_winoff)
 	if (xnthread_current() || xnthread_test_state(thread, XNMAPPED))
 		return -EBUSY;
 
-	if (!access_wok(u_winoff, sizeof(*u_winoff)))
+	if (!access_ok(u_winoff, sizeof(*u_winoff)))
 		return -EFAULT;
 
 	ret = pipeline_prepare_current();
kernel/cobalt/posix/signal.c +1 -1
index 5f5cb85d19..ced534079b 100644
@@ -259,7 +259,7 @@ static int signal_wait(sigset_t *set, xnticks_t timeout,
 	curr = cobalt_current_thread();
 	XENO_BUG_ON(COBALT, curr == NULL);
 
-	if (u_si && !access_wok(u_si, sizeof(*u_si)))
+	if (u_si && !access_ok(u_si, sizeof(*u_si)))
 		return -EFAULT;
 
 	xnlock_get_irqsave(&nklock, s);
kernel/cobalt/posix/syscall32.c +1 -1
index b0b2785e09..2667896115 100644
@@ -906,7 +906,7 @@ COBALT_SYSCALL32emu(mmap, lostage,
 	int ret;
 
 	if (u_crma == NULL ||
-	    !access_rok(u_crma, sizeof(*u_crma)) ||
+	    !access_ok(u_crma, sizeof(*u_crma)) ||
 	    __xn_get_user(rma.length, &u_crma->length) ||
 	    __xn_get_user(rma.offset, &u_crma->offset) ||
 	    __xn_get_user(rma.prot, &u_crma->prot) ||
kernel/cobalt/posix/timerfd.c +1 -1
index 472c4cba0c..2fbe152a5e 100644
@@ -54,7 +54,7 @@ static ssize_t timerfd_read(struct rtdm_fd *fd, void __user *buf, size_t size)
 		return -EINVAL;
 
 	u_ticks = buf;
-	if (!access_wok(u_ticks, sizeof(*u_ticks)))
+	if (!access_ok(u_ticks, sizeof(*u_ticks)))
 		return -EFAULT;
 
 	aligned = (((unsigned long)buf) & (sizeof(ticks) - 1)) == 0;
kernel/cobalt/rtdm/Makefile +1 -2
index 4f5a6caa77..fb5774b949 100644
@@ -4,7 +4,6 @@ obj-$(CONFIG_XENOMAI) += xenomai.o
 xenomai-y :=	core.o		\
 		device.o	\
 		drvlib.o	\
-		fd.o		\
-		wrappers.o
+		fd.o
 
 ccflags-y += -I$(srctree)/$(src)/.. -I$(srctree)/kernel
kernel/cobalt/rtdm/wrappers.c deleted +0 -106

106 lines not on this page · raw message

kernel/cobalt/thread.c +1 -0
index debc5077b1..7adc7f7897 100644
@@ -25,6 +25,7 @@
 #include <linux/signal.h>
 #include <linux/pid.h>
 #include <linux/sched.h>
+#include <uapi/linux/sched/types.h>
 #include <cobalt/kernel/sched.h>
 #include <cobalt/kernel/timer.h>
 #include <cobalt/kernel/synch.h>
kernel/drivers/analogy/national_instruments/mio_common.c +0 -2
index b071adcfc9..82b1da525c 100644
@@ -256,7 +256,6 @@ static inline void ni_set_bitfield(struct a4l_device *dev,
 		break;
 	}
 
-	mmiowb();
 	rtdm_lock_put_irqrestore(&devpriv->soft_reg_copy_lock, flags);
 }
 
@@ -324,7 +323,6 @@ static inline void ni_set_cdo_dma_channel(struct a4l_device * dev, int mite_chan
 			 CDO_DMA_Select_Shift) & CDO_DMA_Select_Mask;
 	}
 	ni_writeb(devpriv->cdio_dma_select_reg, M_Offset_CDIO_DMA_Select);
-	mmiowb();
 	rtdm_lock_put_irqrestore(&devpriv->soft_reg_copy_lock, flags);
 }
 
kernel/drivers/analogy/national_instruments/mite.c +0 -3
index be4b268c11..655cda91d3 100644
@@ -340,7 +340,6 @@ void a4l_mite_release_channel(struct mite_channel *mite_chan)
 		mite_dma_reset(mite_chan);
 		mite->channel_allocated[mite_chan->channel] = 0;
 		mite_chan->ring = NULL;
-		mmiowb();
 	}
 	rtdm_lock_put_irqrestore(&mite->lock, flags);
 }
@@ -360,7 +359,6 @@ void a4l_mite_dma_arm(struct mite_channel *mite_chan)
 	rtdm_lock_get_irqsave(&mite->lock, flags);
 	mite_chan->done = 0;
 	writel(chor, mite->mite_io_addr + MITE_CHOR(mite_chan->channel));
-	mmiowb();
 	rtdm_lock_put_irqrestore(&mite->lock, flags);
 }
 
@@ -621,7 +619,6 @@ u32 a4l_mite_get_status(struct mite_channel *mite_chan)
 		writel(CHOR_CLRDONE,
 		       mite->mite_io_addr + MITE_CHOR(mite_chan->channel));
 	}
-	mmiowb();
 	rtdm_lock_put_irqrestore(&mite->lock, flags);
 	return status;
 }
kernel/drivers/analogy/national_instruments/ni_660x.c +0 -2
index 40a4b2678d..eeac4b4028 100644
@@ -858,7 +858,6 @@ void ni_660x_set_dma_channel(struct a4l_device *dev,
 			       dma_configuration_soft_copies
 			       [counter->chip_index] |
 			       dma_reset_bit(mite_channel), DMAConfigRegister);
-	mmiowb();
 	rtdm_lock_put_irqrestore(&private(dev)->soft_reg_copy_lock, flags);
 }
 
@@ -877,7 +876,6 @@ void ni_660x_unset_dma_channel(struct a4l_device *dev,
 			       private(dev)->
 			       dma_configuration_soft_copies
 			       [counter->chip_index], DMAConfigRegister);
-	mmiowb();
 	rtdm_lock_put_irqrestore(&private(dev)->soft_reg_copy_lock, flags);
 }
 
kernel/drivers/analogy/national_instruments/tio_common.c +0 -1
index bcce728eb5..a066f1ad91 100644
@@ -157,7 +157,6 @@ void ni_tio_set_bits_transient(struct ni_gpct *counter,
 	write_register(counter,
 		       counter_dev->regs[register_index] | transient_bit_values,
 		       register_index);
-	mmiowb();
 	rtdm_lock_put_irqrestore(&counter_dev->regs_lock, flags);
 }
 
kernel/drivers/gpio/gpio-core.c +1 -1
index f67a5bf0aa..a054328f3c 100644
@@ -590,7 +590,7 @@ static int match_gpio_chip(struct gpio_chip *gc, void *data)
 	struct gpiochip_match_data *d = data;
 	struct gpiochip_holder *h;
 
-	if (cobalt_gpiochip_dev(gc) == d->parent) {
+	if (gc->parent == d->parent) {
 		h = kmalloc(sizeof(*h), GFP_KERNEL);
 		if (h) {
 			h->chip = gc;
kernel/drivers/ipc/rtipc.c +1 -1
index abb76817a6..859bdab2f2 100644
@@ -322,7 +322,7 @@ int rtipc_get_length(struct rtdm_fd *fd, size_t *lenp,
 			return -EINVAL;
 		csz = arg;
 		return csz == NULL ||
-			!access_rok(csz, sizeof(*csz)) ||
+			!access_ok(csz, sizeof(*csz)) ||
 			__xn_get_user(*lenp, csz) ? -EFAULT : 0;
 	}
 #endif
kernel/drivers/net/addons/proxy.c +0 -3
index 0b3ec74fab..f70587678a 100644
@@ -250,9 +250,6 @@ static inline void rtnetproxy_kernel_recv(struct rtskb *rtskb)
 	/* the rtskb stamp is useless (different clock), get new one */
 	__net_timestamp(skb);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
-	dev->last_rx = jiffies;
-#endif
 	dev->stats.rx_bytes += skb->len;
 	dev->stats.rx_packets++;
 
kernel/drivers/net/drivers/e1000e/netdev.c +0 -27
index 20073aa672..acb8dbdafa 100644
@@ -53,10 +53,6 @@
 #include <linux/aer.h>
 #include <linux/prefetch.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
-#include <linux/pci-aspm.h>
-#endif
-
 #include "e1000.h"
 
 #define RT_E1000E_NUM_RXD	64
@@ -2883,15 +2879,9 @@ static void e1000e_update_phy_task(struct work_struct *work)
  * Need to wait a few seconds after link up to get diagnostic information from
  * the phy
  */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 static void e1000_update_phy_info(struct timer_list *t)
 {
 	struct e1000_adapter *adapter = from_timer(adapter, t, phy_info_timer);
-#else /* < 4.14 */
-static void e1000_update_phy_info(unsigned long data)
-{
-	struct e1000_adapter *adapter = (struct e1000_adapter *) data;
-#endif /* < 4.14 */
 
 	if (test_bit(__E1000_DOWN, &adapter->state))
 		return;
@@ -3037,15 +3027,9 @@ static void e1000e_check_82574_phy_workaround(struct e1000_adapter *adapter)
  * e1000_watchdog - Timer Call-back
  * @data: pointer to adapter cast into an unsigned long
  **/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 static void e1000_watchdog(struct timer_list *t)
 {
 	struct e1000_adapter *adapter = from_timer(adapter, t, watchdog_timer);
-#else /* < 4.14 */
-static void e1000_watchdog(unsigned long data)
-{
-	struct e1000_adapter *adapter = (struct e1000_adapter *) data;
-#endif /* < 4.14 */
 
 	/* Do the rest outside of interrupt context */
 	rtdm_schedule_nrt_work(&adapter->watchdog_task);
@@ -3357,7 +3341,6 @@ static void e1000_tx_queue(struct e1000_adapter *adapter,
 	 * we need this if more than one processor can write to our tail
 	 * at a time, it synchronizes IO on IA64/Altix systems
 	 */
-	mmiowb();
 }
 
 #define MINIMUM_DHCP_PACKET_SIZE 282
@@ -4095,18 +4078,8 @@ static int e1000_probe(struct pci_dev *pdev,
 
 	memcpy(netdev->dev_addr, adapter->hw.mac.addr, netdev->addr_len);
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 	timer_setup(&adapter->watchdog_timer, e1000_watchdog, 0);
 	timer_setup(&adapter->phy_info_timer, e1000_update_phy_info, 0);
-#else /* < 4.14 */
-	init_timer(&adapter->watchdog_timer);
-	adapter->watchdog_timer.function = e1000_watchdog;
-	adapter->watchdog_timer.data = (unsigned long) adapter;
-
-	init_timer(&adapter->phy_info_timer);
-	adapter->phy_info_timer.function = e1000_update_phy_info;
-	adapter->phy_info_timer.data = (unsigned long) adapter;
-#endif /* < 4.14 */
 
 	INIT_WORK(&adapter->reset_task, e1000_reset_task);
 	INIT_WORK(&adapter->watchdog_task, e1000_watchdog_task);
kernel/drivers/net/drivers/experimental/e1000/e1000_main.c +0 -3
index 64b724c3cb..db16cff11a 100644
@@ -3606,9 +3606,6 @@ static void e1000_tx_queue(struct e1000_adapter *adapter,
 	writel(i, adapter->hw.hw_addr + tx_ring->tdt);
 
     rtdm_lock_irqrestore(context);
-	/* we need this if more than one processor can write to our tail
-	 * at a time, it synchronizes IO on IA64/Altix systems */
-	mmiowb();
 }
 
 #define E1000_FIFO_HDR			0x10
kernel/drivers/net/drivers/experimental/e1000/kcompat.h +0 -8
index 48906b7f06..fd15e8580a 100644
@@ -171,14 +171,6 @@
 #define PCI_CAP_ID_EXP 0x10
 #endif
 
-#ifndef mmiowb
-#ifdef CONFIG_IA64
-#define mmiowb() asm volatile ("mf.a" ::: "memory")
-#else
-#define mmiowb()
-#endif
-#endif
-
 #ifndef SET_NETDEV_DEV
 #define SET_NETDEV_DEV(net, pdev)
 #endif
kernel/drivers/net/drivers/freescale/fec_main.c +0 -21
index 864e4b5b80..38396a08e1 100644
@@ -878,11 +878,7 @@ fec_stop(struct net_device *ndev)
 }
 
 static void
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,6,0)
 fec_timeout(struct net_device *ndev, unsigned int txqueue)
-#else
-fec_timeout(struct net_device *ndev)
-#endif
 {
 	struct fec_enet_private *fep = netdev_priv(ndev);
 
@@ -2318,10 +2314,8 @@ fec_enet_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)
 }
 
 static const struct ethtool_ops fec_enet_ethtool_ops = {
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,7,0)
 	.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
 				     ETHTOOL_COALESCE_MAX_FRAMES,
-#endif
 	.get_drvinfo		= fec_enet_get_drvinfo,
 	.get_regs_len		= fec_enet_get_regs_len,
 	.get_regs		= fec_enet_get_regs,
@@ -2358,11 +2352,7 @@ static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
 		return -ENODEV;
 
 	if (fep->bufdesc_ex) {
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,9,0)
 		bool use_fec_hwts = !phy_has_hwtstamp(phydev);
-#else
-		bool use_fec_hwts = true;
-#endif
 		if (cmd == SIOCSHWTSTAMP) {
 			if (use_fec_hwts)
 				return fec_ptp_set(ndev, rq);
@@ -3265,9 +3255,7 @@ fec_probe(struct platform_device *pdev)
 {
 	struct fec_enet_private *fep;
 	struct fec_platform_data *pdata;
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,5,0)
 	phy_interface_t interface;
-#endif
 	struct net_device *ndev;
 	int i, irq, ret = 0, eth_id;
 	const struct of_device_id *of_id;
@@ -3350,24 +3338,15 @@ fec_probe(struct platform_device *pdev)
 		phy_node = of_node_get(np);
 	}
 	fep->phy_node = phy_node;
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,5,0)
 	ret = of_get_phy_mode(pdev->dev.of_node, &interface);
 	if (ret) {
-#else
-	ret = of_get_phy_mode(pdev->dev.of_node);
-	if (ret < 0) {
-#endif
 		pdata = dev_get_platdata(&pdev->dev);
 		if (pdata)
 			fep->phy_interface = pdata->phy;
 		else
 			fep->phy_interface = PHY_INTERFACE_MODE_MII;
 	} else {
-#if LINUX_VERSION_CODE > KERNEL_VERSION(5,5,0)
 		fep->phy_interface = interface;
-#else
-		fep->phy_interface = ret;
-#endif
 	}
 
 	fep->clk_ipg = devm_clk_get(&pdev->dev, "ipg");
kernel/drivers/net/drivers/igb/igb_main.c +0 -31
index d47c0bb35c..d0f647c63e 100644
@@ -202,13 +202,8 @@ static void igb_clean_all_rx_rings(struct igb_adapter *);
 static void igb_clean_tx_ring(struct igb_ring *);
 static void igb_clean_rx_ring(struct igb_ring *);
 static void igb_set_rx_mode(struct rtnet_device *);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 static void igb_update_phy_info(struct timer_list *);
 static void igb_watchdog(struct timer_list *);
-#else
-static void igb_update_phy_info(unsigned long);
-static void igb_watchdog(unsigned long);
-#endif
 static void igb_watchdog_task(struct work_struct *);
 static netdev_tx_t igb_xmit_frame(struct rtskb *skb, struct rtnet_device *);
 static struct net_device_stats *igb_get_stats(struct rtnet_device *);
@@ -2199,15 +2194,8 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 		wr32(E1000_TXPBS, I210_TXPBSIZE_DEFAULT);
 	}
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 	timer_setup(&adapter->watchdog_timer, igb_watchdog, 0);
 	timer_setup(&adapter->phy_info_timer, igb_update_phy_info, 0);
-#else /* < 4.14 */
-	setup_timer(&adapter->watchdog_timer, igb_watchdog,
-		    (unsigned long) adapter);
-	setup_timer(&adapter->phy_info_timer, igb_update_phy_info,
-		    (unsigned long) adapter);
-#endif /* < 4.14 */
 
 	INIT_WORK(&adapter->reset_task, igb_reset_task);
 	INIT_WORK(&adapter->watchdog_task, igb_watchdog_task);
@@ -3520,15 +3508,9 @@ static void igb_check_wvbr(struct igb_adapter *adapter)
 /* Need to wait a few seconds after link up to get diagnostic information from
  * the phy
  */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 static void igb_update_phy_info(struct timer_list *t)
 {
 	struct igb_adapter *adapter = from_timer(adapter, t, phy_info_timer);
-#else /* < 4.14 */
-static void igb_update_phy_info(unsigned long data)
-{
-	struct igb_adapter *adapter = (struct igb_adapter *) data;
-#endif /* < 4.14 */
 	igb_get_phy_info(&adapter->hw);
 }
 
@@ -3616,15 +3598,9 @@ static void igb_check_lvmmc(struct igb_adapter *adapter)
  *  igb_watchdog - Timer Call-back
  *  @data: pointer to adapter cast into an unsigned long
  **/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
 static void igb_watchdog(struct timer_list *t)
 {
 	struct igb_adapter *adapter = from_timer(adapter, t, watchdog_timer);
-#else /* < 4.14 */
-static void igb_watchdog(unsigned long data)
-{
-	struct igb_adapter *adapter = (struct igb_adapter *)data;
-#endif /* < 4.14 */
 	/* Do the rest outside of interrupt context */
 	schedule_work(&adapter->watchdog_task);
 }
@@ -4155,13 +4131,6 @@ static void igb_tx_map(struct igb_ring *tx_ring,
 	igb_maybe_stop_tx(tx_ring, DESC_NEEDED);
 
 	writel(i, tx_ring->tail);
-
-	/* we need this if more than one processor can write to our tail
-	 * at a time, it synchronizes IO on IA64/Altix systems
-	 */
-	mmiowb();
-
-	return;
 }
 
 netdev_tx_t igb_xmit_frame_ring(struct rtskb *skb,
kernel/drivers/net/drivers/r8169.c +0 -4
index b49a15e305..e05e40cf9c 100644
@@ -78,10 +78,6 @@ RTL8169_VERSION "2.2"	<2004/08/09>
 #include <linux/timer.h>
 #include <linux/init.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
-#include <linux/pci-aspm.h>
-#endif
-
 #include <rtnet_port.h>	/*** RTnet ***/
 
 #define RTL8169_VERSION "2.2-04"
kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c +3 -3
index 158d7118f2..34427e74fc 100644
@@ -214,9 +214,9 @@ static int load_cfg_file(struct rtcfg_file *cfgfile, struct rtcfg_cmd *cmd)
 		cfgfile->buffer = vmalloc(1);
 	} else {
 		cfgfile->buffer = NULL; /* Leave allocation to the kernel. */
-		ret = read_file_from_kernel(filp, &cfgfile->buffer,
-					i_size_read(file_inode(filp)),
-					&file_size, READING_UNKNOWN);
+		ret = kernel_read_file(filp, 0, &cfgfile->buffer,
+				       i_size_read(file_inode(filp)),
+				       &file_size, READING_UNKNOWN);
 		if (ret < 0) {
 			fput(filp);
 			return ret;
kernel/drivers/net/stack/rtdev.c +0 -4
index 13e979088e..f639cf6403 100644
@@ -51,10 +51,6 @@ DEFINE_MUTEX(rtnet_devices_nrt_lock);
 
 static int rtdev_locked_xmit(struct rtskb *skb, struct rtnet_device *rtdev);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
-#define atomic_fetch_add_unless __atomic_add_unless
-#endif
-
 int rtdev_reference(struct rtnet_device *rtdev)
 {
 	smp_mb__before_atomic();
scripts/prepare-kernel.sh +0 -1
index ca869f19a4..9a78f0ec4d 100755
@@ -412,7 +412,6 @@ patch_link n cobalt-core.h kernel/cobalt/trace include/trace/events
 patch_link n cobalt-rtdm.h kernel/cobalt/trace include/trace/events
 patch_link n cobalt-posix.h kernel/cobalt/trace include/trace/events
 patch_link r n kernel/cobalt/include/asm-generic/xenomai include/asm-generic/xenomai
-patch_link r n kernel/cobalt/include/linux/xenomai include/linux/xenomai
 patch_link n m kernel/cobalt/posix kernel/xenomai/posix
 patch_link n m kernel/cobalt/rtdm kernel/xenomai/rtdm
 patch_link n m kernel/cobalt/dovetail kernel/xenomai/pipeline
Signature · 1 line
2.31.1
author
#5 lore raw

PATCH 5/5 cobalt: Fold dovetail directory in arch-specific sections

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

There is no other pipeline variant anymore.

---
 kernel/cobalt/arch/arm/{dovetail => }/Makefile            | 0
 .../arm/{dovetail => }/include/asm/xenomai/calibration.h  | 6 +++---
 .../arm/{dovetail => }/include/asm/xenomai/features.h     | 6 +++---
 .../arch/arm/{dovetail => }/include/asm/xenomai/fptest.h  | 6 +++---
 .../arch/arm/{dovetail => }/include/asm/xenomai/machine.h | 6 +++---
 .../arch/arm/{dovetail => }/include/asm/xenomai/syscall.h | 6 +++---
 .../arm/{dovetail => }/include/asm/xenomai/syscall32.h    | 0
 .../arch/arm/{dovetail => }/include/asm/xenomai/thread.h  | 8 ++++----
 kernel/cobalt/arch/arm/{dovetail => }/machine.c           | 0
 kernel/cobalt/arch/arm64/{dovetail => }/Makefile          | 0
 .../{dovetail => }/include/asm/xenomai/calibration.h      | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/features.h   | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/fptest.h     | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/machine.h    | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/syscall.h    | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/syscall32.h  | 6 +++---
 .../arm64/{dovetail => }/include/asm/xenomai/thread.h     | 8 ++++----
 kernel/cobalt/arch/arm64/{dovetail => }/machine.c         | 0
 kernel/cobalt/arch/x86/{dovetail => }/Makefile            | 0
 kernel/cobalt/arch/x86/{dovetail => }/c1e.c               | 0
 .../x86/{dovetail => }/include/asm/xenomai/calibration.h  | 0
 .../arch/x86/{dovetail => }/include/asm/xenomai/fptest.h  | 0
 .../arch/x86/{dovetail => }/include/asm/xenomai/machine.h | 0
 .../arch/x86/{dovetail => }/include/asm/xenomai/syscall.h | 0
 .../arch/x86/{dovetail => }/include/asm/xenomai/thread.h  | 2 +-
 kernel/cobalt/arch/x86/{dovetail => }/machine.c           | 0
 kernel/cobalt/arch/x86/{dovetail => }/smi.c               | 0
 .../include/asm-generic/xenomai/{dovetail => }/thread.h   | 6 +++---
 scripts/prepare-kernel.sh                                 | 4 ++--
 29 files changed, 47 insertions(+), 47 deletions(-)
 rename kernel/cobalt/arch/arm/{dovetail => }/Makefile (100%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/calibration.h (90%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/features.h (88%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/fptest.h (91%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/machine.h (92%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/syscall.h (96%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/syscall32.h (100%)
 rename kernel/cobalt/arch/arm/{dovetail => }/include/asm/xenomai/thread.h (86%)
 rename kernel/cobalt/arch/arm/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/Makefile (100%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/calibration.h (79%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/features.h (64%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/fptest.h (79%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/machine.h (82%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/syscall.h (92%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/syscall32.h (52%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/include/asm/xenomai/thread.h (75%)
 rename kernel/cobalt/arch/arm64/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/Makefile (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/c1e.c (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/calibration.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/fptest.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/machine.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/syscall.h (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/include/asm/xenomai/thread.h (96%)
 rename kernel/cobalt/arch/x86/{dovetail => }/machine.c (100%)
 rename kernel/cobalt/arch/x86/{dovetail => }/smi.c (100%)
 rename kernel/cobalt/include/asm-generic/xenomai/{dovetail => }/thread.h (78%)
kernel/cobalt/arch/arm/Makefile renamed from kernel/cobalt/arch/arm/dovetail/Makefile +0 -0
similarity index 100%
rename from kernel/cobalt/arch/arm/dovetail/Makefile
rename to kernel/cobalt/arch/arm/Makefile
kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/calibration.h +3 -3
similarity index 90%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/calibration.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h
index 3cf58259b1..be4267ca35 100644
@@ -19,8 +19,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_CALIBRATION_H
-#define _COBALT_ARM_DOVETAIL_CALIBRATION_H
+#ifndef _COBALT_ARM_CALIBRATION_H
+#define _COBALT_ARM_CALIBRATION_H
 
 static inline void xnarch_get_latencies(struct xnclock_gravity *p)
 {
@@ -37,4 +37,4 @@ static inline void xnarch_get_latencies(struct xnclock_gravity *p)
 	p->irq = xnclock_ns_to_ticks(&nkclock, CONFIG_XENO_OPT_TIMING_IRQLAT);
 }
 
-#endif /* !_COBALT_ARM_DOVETAIL_CALIBRATION_H */
+#endif /* !_COBALT_ARM_CALIBRATION_H */
kernel/cobalt/arch/arm/include/asm/xenomai/features.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/features.h +3 -3
similarity index 88%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/features.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/features.h
index 9c0af20e74..4ed607b625 100644
@@ -19,12 +19,12 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_FEATURES_H
-#define _COBALT_ARM_DOVETAIL_FEATURES_H
+#ifndef _COBALT_ARM_FEATURES_H
+#define _COBALT_ARM_FEATURES_H
 
 struct cobalt_featinfo;
 static inline void collect_arch_features(struct cobalt_featinfo *p) { }
 
 #include <asm/xenomai/uapi/features.h>
 
-#endif /* !_COBALT_ARM_DOVETAIL_FEATURES_H */
+#endif /* !_COBALT_ARM_FEATURES_H */
kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/fptest.h +3 -3
similarity index 91%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/fptest.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h
index ad7814cced..ca1752206f 100644
@@ -16,8 +16,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_FPTEST_H
-#define _COBALT_ARM_DOVETAIL_FPTEST_H
+#ifndef _COBALT_ARM_FPTEST_H
+#define _COBALT_ARM_FPTEST_H
 
 #include <linux/errno.h>
 #include <asm/hwcap.h>
@@ -49,4 +49,4 @@ static inline int fp_detect(void)
 	return have_vfp ? __COBALT_HAVE_VFP : 0;
 }
 
-#endif /* _COBALT_ARM_DOVETAIL_FPTEST_H */
+#endif /* _COBALT_ARM_FPTEST_H */
kernel/cobalt/arch/arm/include/asm/xenomai/machine.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/machine.h +3 -3
similarity index 92%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/machine.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/machine.h
index a694a7891b..56564c7f03 100644
@@ -20,8 +20,8 @@
  *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  *   02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_MACHINE_H
-#define _COBALT_ARM_DOVETAIL_MACHINE_H
+#ifndef _COBALT_ARM_MACHINE_H
+#define _COBALT_ARM_MACHINE_H
 
 #include <linux/version.h>
 #include <asm/byteorder.h>
@@ -69,4 +69,4 @@ static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
 
 #include <asm-generic/xenomai/machine.h>
 
-#endif /* !_COBALT_ARM_DOVETAIL_MACHINE_H */
+#endif /* !_COBALT_ARM_MACHINE_H */
kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/syscall.h +3 -3
similarity index 96%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/syscall.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h
index d41b257681..2490e7fe81 100644
@@ -19,8 +19,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_SYSCALL_H
-#define _COBALT_ARM_DOVETAIL_SYSCALL_H
+#ifndef _COBALT_ARM_SYSCALL_H
+#define _COBALT_ARM_SYSCALL_H
 
 #include <linux/errno.h>
 #include <linux/uaccess.h>
@@ -98,4 +98,4 @@ static inline void pipeline_get_syscall_args(struct task_struct *task,
 	args[4] = regs->ARM_r5;
 }
 
-#endif /* !_COBALT_ARM_DOVETAIL_SYSCALL_H */
+#endif /* !_COBALT_ARM_SYSCALL_H */
kernel/cobalt/arch/arm/include/asm/xenomai/syscall32.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/syscall32.h +0 -0
similarity index 100%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/syscall32.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/syscall32.h
kernel/cobalt/arch/arm/include/asm/xenomai/thread.h renamed from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/thread.h +4 -4
similarity index 86%
rename from kernel/cobalt/arch/arm/dovetail/include/asm/xenomai/thread.h
rename to kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
index 792a3d26c1..d9eed665f9 100644
@@ -16,10 +16,10 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-#ifndef _COBALT_ARM_DOVETAIL_THREAD_H
-#define _COBALT_ARM_DOVETAIL_THREAD_H
+#ifndef _COBALT_ARM_THREAD_H
+#define _COBALT_ARM_THREAD_H
 
-#include <asm-generic/xenomai/dovetail/thread.h>
+#include <asm-generic/xenomai/thread.h>
 #include <asm/traps.h>
 
 #define xnarch_fault_pc(__regs)	((__regs)->ARM_pc - (thumb_mode(__regs) ? 2 : 4))
@@ -29,4 +29,4 @@
 						(__nr) == ARM_TRAP_UNDEFINSTR))
 #define xnarch_fault_notify(__nr) (!xnarch_fault_bp_p(__nr))
 
-#endif /* !_COBALT_ARM_DOVETAIL_THREAD_H */
+#endif /* !_COBALT_ARM_THREAD_H */
kernel/cobalt/arch/arm/machine.c renamed from kernel/cobalt/arch/arm/dovetail/machine.c +0 -0
similarity index 100%
rename from kernel/cobalt/arch/arm/dovetail/machine.c
rename to kernel/cobalt/arch/arm/machine.c
kernel/cobalt/arch/arm64/Makefile renamed from kernel/cobalt/arch/arm64/dovetail/Makefile +0 -0
similarity index 100%
rename from kernel/cobalt/arch/arm64/dovetail/Makefile
rename to kernel/cobalt/arch/arm64/Makefile
kernel/cobalt/arch/arm64/include/asm/xenomai/calibration.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/calibration.h +3 -3
similarity index 79%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/calibration.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/calibration.h
index cd9496b66c..461198c6f0 100644
@@ -4,8 +4,8 @@
  * Copyright (C) 2015 Philippe Gerum  <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_CALIBRATION_H
-#define _COBALT_ARM64_DOVETAIL_CALIBRATION_H
+#ifndef _COBALT_ARM64_CALIBRATION_H
+#define _COBALT_ARM64_CALIBRATION_H
 
 static inline void xnarch_get_latencies(struct xnclock_gravity *p)
 {
@@ -22,4 +22,4 @@ static inline void xnarch_get_latencies(struct xnclock_gravity *p)
 	p->irq = xnclock_ns_to_ticks(&nkclock, CONFIG_XENO_OPT_TIMING_IRQLAT);
 }
 
-#endif /* !_COBALT_ARM64_DOVETAIL_CALIBRATION_H */
+#endif /* !_COBALT_ARM64_CALIBRATION_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/features.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/features.h +3 -3
similarity index 64%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/features.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/features.h
index d5a438bab1..796fc5d825 100644
@@ -4,12 +4,12 @@
  * Copyright (C) 2015 Philippe Gerum  <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_FEATURES_H
-#define _COBALT_ARM64_DOVETAIL_FEATURES_H
+#ifndef _COBALT_ARM64_FEATURES_H
+#define _COBALT_ARM64_FEATURES_H
 
 struct cobalt_featinfo;
 static inline void collect_arch_features(struct cobalt_featinfo *p) { }
 
 #include <asm/xenomai/uapi/features.h>
 
-#endif /* !_COBALT_ARM64_DOVETAIL_FEATURES_H */
+#endif /* !_COBALT_ARM64_FEATURES_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/fptest.h +3 -3
similarity index 79%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/fptest.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
index 5f3630ddae..bc9dc342e2 100644
@@ -4,8 +4,8 @@
  * Copyright (C) 2006 Gilles Chanteperdrix <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_FPTEST_H
-#define _COBALT_ARM64_DOVETAIL_FPTEST_H
+#ifndef _COBALT_ARM64_FPTEST_H
+#define _COBALT_ARM64_FPTEST_H
 
 #include <linux/errno.h>
 #include <asm/xenomai/uapi/fptest.h>
@@ -32,4 +32,4 @@ static inline int fp_detect(void)
 	return have_fp ? __COBALT_HAVE_FPU : 0;
 }
 
-#endif /* !_COBALT_ARM64_DOVETAIL_FPTEST_H */
+#endif /* !_COBALT_ARM64_FPTEST_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/machine.h +3 -3
similarity index 82%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/machine.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h
index e71a5b7e35..c9b515cddb 100644
@@ -4,8 +4,8 @@
  * Copyright (C) 2015 Dmitriy Cherkasov <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_MACHINE_H
-#define _COBALT_ARM64_DOVETAIL_MACHINE_H
+#ifndef _COBALT_ARM64_MACHINE_H
+#define _COBALT_ARM64_MACHINE_H
 
 #include <linux/version.h>
 #include <asm/byteorder.h>
@@ -30,4 +30,4 @@ static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
 
 #include <asm-generic/xenomai/machine.h>
 
-#endif /* !_COBALT_ARM64_DOVETAIL_MACHINE_H */
+#endif /* !_COBALT_ARM64_MACHINE_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/syscall.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/syscall.h +3 -3
similarity index 92%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/syscall.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/syscall.h
index 96871e2473..0f1d1eaf8d 100644
@@ -5,8 +5,8 @@
  * Copyright (C) 2021 Philippe Gerum  <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_SYSCALL_H
-#define _COBALT_ARM64_DOVETAIL_SYSCALL_H
+#ifndef _COBALT_ARM64_SYSCALL_H
+#define _COBALT_ARM64_SYSCALL_H
 
 #include <linux/errno.h>
 #include <linux/uaccess.h>
@@ -60,4 +60,4 @@ int xnarch_local_syscall(unsigned long a1, unsigned long a2,
 	return -ENOSYS;
 }
 
-#endif /* !_COBALT_ARM64_DOVETAIL_SYSCALL_H */
+#endif /* !_COBALT_ARM64_SYSCALL_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/syscall32.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/syscall32.h +3 -3
similarity index 52%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/syscall32.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/syscall32.h
index cd0f392459..13aa8a7610 100644
@@ -4,9 +4,9 @@
  * Copyright (C) 2014 Philippe Gerum  <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_SYSCALL32_H
-#define _COBALT_ARM64_DOVETAIL_SYSCALL32_H
+#ifndef _COBALT_ARM64_SYSCALL32_H
+#define _COBALT_ARM64_SYSCALL32_H
 
 #include <asm-generic/xenomai/syscall32.h>
 
-#endif /* !_COBALT_ARM64_DOVETAIL_SYSCALL32_H */
+#endif /* !_COBALT_ARM64_SYSCALL32_H */
kernel/cobalt/arch/arm64/include/asm/xenomai/thread.h renamed from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/thread.h +4 -4
similarity index 75%
rename from kernel/cobalt/arch/arm64/dovetail/include/asm/xenomai/thread.h
rename to kernel/cobalt/arch/arm64/include/asm/xenomai/thread.h
index 5b60ff34a2..467304b1f6 100644
@@ -5,10 +5,10 @@
  * Copyright (C) 2021 Philippe Gerum  <[email protected]>
  */
 
-#ifndef _COBALT_ARM64_DOVETAIL_THREAD_H
-#define _COBALT_ARM64_DOVETAIL_THREAD_H
+#ifndef _COBALT_ARM64_THREAD_H
+#define _COBALT_ARM64_THREAD_H
 
-#include <asm-generic/xenomai/dovetail/thread.h>
+#include <asm-generic/xenomai/thread.h>
 #include <asm/dovetail.h>
 
 #define xnarch_fault_pc(__regs)	((unsigned long)((__regs)->pc - 4)) /* XXX ? */
@@ -19,4 +19,4 @@
 
 #define xnarch_fault_notify(__nr) (!xnarch_fault_bp_p(__nr))
 
-#endif /* !_COBALT_ARM64_DOVETAIL_THREAD_H */
+#endif /* !_COBALT_ARM64_THREAD_H */
kernel/cobalt/arch/arm64/machine.c renamed from kernel/cobalt/arch/arm64/dovetail/machine.c +0 -0
similarity index 100%
rename from kernel/cobalt/arch/arm64/dovetail/machine.c
rename to kernel/cobalt/arch/arm64/machine.c
kernel/cobalt/arch/x86/Makefile renamed from kernel/cobalt/arch/x86/dovetail/Makefile +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/Makefile
rename to kernel/cobalt/arch/x86/Makefile
kernel/cobalt/arch/x86/c1e.c renamed from kernel/cobalt/arch/x86/dovetail/c1e.c +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/c1e.c
rename to kernel/cobalt/arch/x86/c1e.c
kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h renamed from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/calibration.h +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/calibration.h
rename to kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h
kernel/cobalt/arch/x86/include/asm/xenomai/fptest.h renamed from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/fptest.h +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/fptest.h
rename to kernel/cobalt/arch/x86/include/asm/xenomai/fptest.h
kernel/cobalt/arch/x86/include/asm/xenomai/machine.h renamed from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/machine.h +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/machine.h
rename to kernel/cobalt/arch/x86/include/asm/xenomai/machine.h
kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h renamed from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/syscall.h +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/syscall.h
rename to kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h
kernel/cobalt/arch/x86/include/asm/xenomai/thread.h renamed from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/thread.h +1 -1
similarity index 96%
rename from kernel/cobalt/arch/x86/dovetail/include/asm/xenomai/thread.h
rename to kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
index 6eb71e2a80..745c32467e 100644
@@ -20,7 +20,7 @@
 #ifndef _COBALT_X86_ASM_THREAD_H
 #define _COBALT_X86_ASM_THREAD_H
 
-#include <asm-generic/xenomai/dovetail/thread.h>
+#include <asm-generic/xenomai/thread.h>
 #include <asm/traps.h>
 
 #define xnarch_fault_pc(__regs)		((__regs)->ip)
kernel/cobalt/arch/x86/machine.c renamed from kernel/cobalt/arch/x86/dovetail/machine.c +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/machine.c
rename to kernel/cobalt/arch/x86/machine.c
kernel/cobalt/arch/x86/smi.c renamed from kernel/cobalt/arch/x86/dovetail/smi.c +0 -0
similarity index 100%
rename from kernel/cobalt/arch/x86/dovetail/smi.c
rename to kernel/cobalt/arch/x86/smi.c
kernel/cobalt/include/asm-generic/xenomai/thread.h renamed from kernel/cobalt/include/asm-generic/xenomai/dovetail/thread.h +3 -3
similarity index 78%
rename from kernel/cobalt/include/asm-generic/xenomai/dovetail/thread.h
rename to kernel/cobalt/include/asm-generic/xenomai/thread.h
index 8939e45f30..3881917bd9 100644
@@ -6,8 +6,8 @@
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  */
-#ifndef _COBALT_ASM_GENERIC_DOVETAIL_THREAD_H
-#define _COBALT_ASM_GENERIC_DOVETAIL_THREAD_H
+#ifndef _COBALT_ASM_GENERIC_THREAD_H
+#define _COBALT_ASM_GENERIC_THREAD_H
 
 #include <linux/dovetail.h>
 
@@ -21,4 +21,4 @@ struct task_struct *xnarch_host_task(struct xnarchtcb *tcb)
 	return tcb->altsched.task;
 }
 
-#endif /* !_COBALT_ASM_GENERIC_DOVETAIL_THREAD_H */
+#endif /* !_COBALT_ASM_GENERIC_THREAD_H */
scripts/prepare-kernel.sh +2 -2
index 9a78f0ec4d..c9aeeb4fad 100755
@@ -377,9 +377,9 @@ case $linux_VERSION.$linux_PATCHLEVEL in
 test "x$CONFIG_XENO_REVISION_LEVEL" = "x" && CONFIG_XENO_REVISION_LEVEL=0
 
     if ! grep -q CONFIG_XENOMAI $linux_tree/arch/$linux_arch/Makefile; then
-	p="KBUILD_CFLAGS += -I\$(srctree)/arch/\$(SRCARCH)/xenomai/include -I\$(srctree)/arch/\$(SRCARCH)/xenomai/dovetail/include -I\$(srctree)/include/xenomai"
+	p="KBUILD_CFLAGS += -I\$(srctree)/arch/\$(SRCARCH)/xenomai/include -I\$(srctree)/include/xenomai"
 	(echo; echo $p) | patch_append arch/$linux_arch/Makefile
-	p="core-\$(CONFIG_XENOMAI)	+= arch/$linux_arch/xenomai/dovetail/"
+	p="core-\$(CONFIG_XENOMAI)	+= arch/$linux_arch/xenomai/"
 	echo $p | patch_append arch/$linux_arch/Makefile
     fi
 
Signature · 1 line
2.31.1
#6 lore raw
In reply to Jan Kiszka
Quoted 8 lines · Jan Kiszka via Xenomai

Move forward and cut off the ropes that binds us to I-pipe kernels, thus anything older than 5.10.

This series primarily removes no longer used files and kernel version wrappings. It does not yet fold dovetail code into the pipeline abstractions once established to work with both patches. That can be done later.

Quoted 8 lines

Jan

Jan Kiszka (5):
  ci: Drop builds for kernels older than 5.10
  cobalt: Drop support for I-pipe based kernels
  cobalt: Drop vmalloc_kernel wrapper
  cobalt: Drop wrappings for kernels < 5.10
  cobalt: Fold dovetail directory in arch-specific sections

LGTM. In case we maintain a list of supported architectures (wiki?) we should update that list accordingly.

Florian

#7 lore raw
Quoted 18 lines · Florian via Xenomai
Quoted 8 lines · Jan Kiszka via Xenomai

Move forward and cut off the ropes that binds us to I-pipe kernels, thus anything older than 5.10.

This series primarily removes no longer used files and kernel version wrappings. It does not yet fold dovetail code into the pipeline abstractions once established to work with both patches. That can be done later.

Quoted 8 lines

Jan

Jan Kiszka (5):
  ci: Drop builds for kernels older than 5.10
  cobalt: Drop support for I-pipe based kernels
  cobalt: Drop vmalloc_kernel wrapper
  cobalt: Drop wrappings for kernels < 5.10
  cobalt: Fold dovetail directory in arch-specific sections

Quoted 4 lines

LGTM. In case we maintain a list of supported architectures (wiki?) we should update that list accordingly.

Florian

Replied to the wrong series... Sorry. Ignore it.