Context |
Check |
Description |
bjorn/pre-ci_am |
success
|
Success
|
bjorn/build-rv32-defconfig |
success
|
build-rv32-defconfig
|
bjorn/build-rv64-clang-allmodconfig |
success
|
build-rv64-clang-allmodconfig
|
bjorn/build-rv64-gcc-allmodconfig |
success
|
build-rv64-gcc-allmodconfig
|
bjorn/build-rv64-nommu-k210-defconfig |
success
|
build-rv64-nommu-k210-defconfig
|
bjorn/build-rv64-nommu-k210-virt |
success
|
build-rv64-nommu-k210-virt
|
bjorn/checkpatch |
warning
|
checkpatch
|
bjorn/dtb-warn-rv64 |
success
|
dtb-warn-rv64
|
bjorn/header-inline |
success
|
header-inline
|
bjorn/kdoc |
success
|
kdoc
|
bjorn/module-param |
success
|
module-param
|
bjorn/verify-fixes |
success
|
verify-fixes
|
bjorn/verify-signedoff |
success
|
verify-signedoff
|
@@ -9,5 +9,6 @@
#define MICROCHIP_VENDOR_ID 0x029
#define SIFIVE_VENDOR_ID 0x489
#define THEAD_VENDOR_ID 0x5b7
+#define VENTANA_VENDOR_ID 0x61f
#endif
@@ -14,6 +14,7 @@
#include <asm/hwprobe.h>
#include <asm/sbi.h>
#include <asm/vector.h>
+#include <asm/vendorid_list.h>
#include "copy-unaligned.h"
@@ -251,6 +252,7 @@ struct unaligned_access_table_entry {
};
static struct unaligned_access_table_entry unaligned_access_table_entries[] = {
+ { LEVEL_VENDOR, VENTANA_VENDOR_ID, 0, 0, RISCV_HWPROBE_MISALIGNED_SCALAR_FAST },
};
/*
@@ -460,6 +462,7 @@ static int __init vec_check_unaligned_access_speed_all_cpus(void *unused __alway
#endif
static struct unaligned_access_table_entry vec_unaligned_access_table_entries[] = {
+ { LEVEL_VENDOR, VENTANA_VENDOR_ID, 0, 0, RISCV_HWPROBE_MISALIGNED_VECTOR_FAST },
};
static bool check_vector_unaligned_access_table(void)
Ventana harts always have fast unaligned access speeds, so skip the unnecessary probing. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> --- arch/riscv/include/asm/vendorid_list.h | 1 + arch/riscv/kernel/unaligned_access_speed.c | 3 +++ 2 files changed, 4 insertions(+)