[PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-05 Thread Anshuman Khandual
This adds tests which will validate architecture page table helpers and other accessors in their compliance with expected generic MM semantics. This will help various architectures in validating changes to existing page table helpers or addition of new ones. This test covers basic page table entry

[PATCH v2 0/4] ARC: handle DSP presence in HW

2020-03-05 Thread Eugeniy Paltsev
Arc processors may have DSP extension which is optional. In this patch series we: * Handle issues caused by DSP extension presence in HW * Add optional support for DSP-enabled applications in userspace (with optional AGU extension support) Changes v1->v2: * use r10:r11 register pair as a scratc

[PATCH v2 1/4] ARC: add helpers to sanitize config options

2020-03-05 Thread Eugeniy Paltsev
We'll use this macro in coming patches extensively. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/asserts.h | 24 arch/arc/kernel/setup.c| 25 - 2 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 arch/arc/incl

[PATCH v2 4/4] ARC: allow userspace DSP applications to use AGU extensions

2020-03-05 Thread Eugeniy Paltsev
To be able to run DSP-enabled userspace applications with AGU (address generation unit) extensions we additionally need to save and restore following registers at context switch: * AGU_AP* * AGU_OS* * AGU_MOD* Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig| 9 +

[PATCH v2 2/4] ARC: handle DSP presence in HW

2020-03-05 Thread Eugeniy Paltsev
In case of DSP extension presence in HW some instructions (related to integer multiply, multiply-accumulate, and divide operation) executes on this DSP execution unit. So their execution will depend on dsp configuration register (DSP_CTRL) As we want these instructions to execute the same way rega

[PATCH v2 3/4] ARC: add support for DSP-enabled userspace applications

2020-03-05 Thread Eugeniy Paltsev
To be able to run DSP-enabled userspace applications we need to save and restore following DSP-related registers: At IRQ/exception entry/exit: * DSP_CTRL (save it and reset to value suitable for kernel) * ACC0_LO, ACC0_HI (we already save them as r58, r59 pair) At context switch: * ACC0_GLO, ACC