Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12126252rwl; Tue, 3 Jan 2023 09:20:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfdrwfJja91Cv5LrT/KyGFKQM7L+ge6d88gCHn4+aRpPW0KeZ621AGmEDDTLnV3fCcTc1o X-Received: by 2002:a17:902:f30a:b0:192:5d9b:5881 with SMTP id c10-20020a170902f30a00b001925d9b5881mr33301259ple.31.1672766450911; Tue, 03 Jan 2023 09:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672766450; cv=none; d=google.com; s=arc-20160816; b=cQFRuUShbedau8pAbEl/Df7SQ5197GDYIJDhqSyJbv5fy4RTZ+ZrpTqU0AXxq2M7nn S6Gb2bp0Koylob1yDLOgDmQT3TVz98JdV9HgW6S0oe+/JJxZWSiRJcr4yGFdH8mPXGCl e+UYPZtwEqjnIaNsUgiNcN96ChnAypELFpUqPpaX2zegpMVJYu0Lejv8WeKYrwfoxlVs G8wy4k+t8GU3P/CfBfhh+He3fEynlkKyiMtsvJrmpXBlSMl1mSWAYGfCh8zf3ZndzlMY i9nkMacua80lLRZxFt78K74oVk9iwFbC/8nbgtS6laR8ZKO7R0Jwjo18+GSXJB8+4qz0 Yf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :secumail-id:dkim-signature; bh=siPx/qf7cxwCDI/no8AJjEbHzA/qKmZgejaPhAAv3pg=; b=LYvnbwqbx3kALAA4KJLc9wyuAQE9hIlubT6d+cIN7i3n4rjeCvJ8b7Mbk6Isfcjt09 9ahSJD8uUdZdn3aovnpeggrANXQEp6ltHFpFHkIDi/sh2E1ipisnpGl7DfbkcIUZnBbo ttL1cveeWcRk1gMHC8TYPi22mZeWm1FbFH7ePTJJlJQ03nFekteaZluiMwvqxPMILCOv Uuy1EOhX17d/HA6qG1pI41JFwA8QlH4fNh9d0+87HTrmAVxmyYWKeJGhZS+drKP3qzk+ QEGnCBqqnnnoJp4Ni6rQzr6uLNH/FXFlfZaWl+A82pW7y8x9bXcetCCO++g854yLpxwu 7U4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=OqUKEZR2; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=kYLE5ATP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a63790e000000b004a35a73170fsi5019629pgc.386.2023.01.03.09.20.43; Tue, 03 Jan 2023 09:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=OqUKEZR2; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=kYLE5ATP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238339AbjACRAw (ORCPT + 60 others); Tue, 3 Jan 2023 12:00:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238193AbjACRAL (ORCPT ); Tue, 3 Jan 2023 12:00:11 -0500 X-Greylist: delayed 931 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 03 Jan 2023 09:00:05 PST Received: from fx409.security-mail.net (smtpout253.security-mail.net [46.30.205.253]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D673E13CE9 for ; Tue, 3 Jan 2023 09:00:05 -0800 (PST) Received: from localhost (fx409.security-mail.net [127.0.0.1]) by fx409.security-mail.net (Postfix) with ESMTP id DEB5F349884 for ; Tue, 3 Jan 2023 17:44:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1672764272; bh=N+DYnnHr44oo4yKA+FeZjrONfftZtLgtaVIUVljrXaQ=; h=From:To:Cc:Subject:Date; b=OqUKEZR2IYk/ddT+NyiSJukLO95i5ILynXZ7YzwgbIuSHaloG0DBD/meP5GW5FbML xckaIfT89g7tCglo8vuBmX3gfeOL4JPLOJ+1FEpshx2FyiQZiUfHfxaIUHyPr0b5Qc AOCV2VJaNsQ9Btr8BhhBNIeDnRwG90IBAFRwAYpc= Received: from fx409 (fx409.security-mail.net [127.0.0.1]) by fx409.security-mail.net (Postfix) with ESMTP id 38F5A3496CF; Tue, 3 Jan 2023 17:44:32 +0100 (CET) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx409.security-mail.net (Postfix) with ESMTPS id 251F534946B; Tue, 3 Jan 2023 17:44:31 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id D835E27E03FB; Tue, 3 Jan 2023 17:44:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id AEB8627E03F6; Tue, 3 Jan 2023 17:44:30 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id z0U0Q9npD5IP; Tue, 3 Jan 2023 17:44:30 +0100 (CET) Received: from junon.lin.mbt.kalray.eu (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id 573EC27E03F4; Tue, 3 Jan 2023 17:44:30 +0100 (CET) X-Virus-Scanned: E-securemail Secumail-id: <436b.63b45b6f.21544.0> DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu AEB8627E03F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1672764270; bh=2O/awilCjoYxjBxibrGUj8YEGsFd/+lKInplhMwhn6I=; h=From:To:Date:Message-Id:MIME-Version; b=kYLE5ATPZNXxCA8Vuux6JUiW8dz36so+jFkYcH8SaHEK9H+U2g7yhh9Ik6viLepjp N4n9TTBGLXKXn01gTSi1meL3glhU5E+E4xCRqGcrORCkPSeq9Fixw4iHIEHbcyY8d7 WzYtuuFQOx6Yy06EvwJX/ybXJuG963c2BvuaPn5Q= From: Yann Sionneau To: Arnd Bergmann Cc: Yann Sionneau , Albert Ou , Alexander Shishkin , Andrew Morton , "Aneesh Kumar K.V" , Ard Biesheuvel , Arnaldo Carvalho de Melo , Boqun Feng , bpf@vger.kernel.org, Christian Brauner , devicetree@vger.kernel.org, Eric Biederman , Eric Paris , Ingo Molnar , Jan Kiszka , Jason Baron , Jiri Olsa , Jonathan Corbet , Josh Poimboeuf , Kees Cook , Kieran Bingham , Krzysztof Kozlowski , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-audit@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, Marc Zyngier , Mark Rutland , Masami Hiramatsu , Namhyung Kim , Nick Piggin , Oleg Nesterov , Palmer Dabbelt , Paul Moore , Paul Walmsley , Peter Zijlstra , Rob Herring , Sebastian Reichel , Steven Rostedt , Thomas Gleixner , Waiman Long , Will Deacon , Alex Michon , Ashley Lesdalons , Benjamin Mugnier , Clement Leger , Guillaume Missonnier , Guillaume Thouvenin , Jean-Christophe Pince , Jonathan Borne , Jules Maselbas , Julian Vetter , Julien Hascoet , Julien Villette , Louis Morhet , Luc Michel , Marc =?utf-8?b?UG91bGhpw6hz?= , Marius Gligor , Samuel Jones , Thomas Costis , Vincent Chardon Subject: [RFC PATCH 00/25] Upstream kvx Linux port Date: Tue, 3 Jan 2023 17:43:34 +0100 Message-ID: <20230103164359.24347-1-ysionneau@kalray.eu> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds support for the kv3-1 CPU architecture of the kvx family found in the Coolidge (aka MPPA3-80) SoC of Kalray. This is an RFC, since kvx support is not yet upstreamed into gcc/binutils, therefore this patch series cannot be merged into Linux for now. The goal is to have preliminary reviews and to fix problems early. The Kalray VLIW processor family (kvx) has the following features: * 32/64 bits execution mode * 6-issue VLIW architecture * 64 x 64bits general purpose registers * SIMD instructions * little-endian * deep learning co-processor Kalray kv3-1 core which is the third of the kvx family is embedded in Kalray Coolidge SoC currently used on K200 and K200-LP boards. The Coolidge SoC contains 5 clusters each of which is made of: * 4MiB of on-chip memory (SMEM) * 1 dedicated safety/security core (kv3-1 core). * 16 PEs (Processing Elements) (kv3-1 cores). * 16 Co-processors (one per PE) * 2 Crypto accelerators The Coolidge SoC contains the following features: * 5 Clusters * 2 100G Ethernet controllers * 8 PCIe GEN4 controllers (Root Complex and Endpoint capable) * 2 USB 2.0 controllers * 1 Octal SPI-NOR flash controller * 1 eMMC controller * 3 Quad SPI controllers * 6 UART * 5 I2C controllers (3 of which are SMBus capable) * 4 CAN controllers * 1 OTP memory A kvx toolchain can be built using: # install dependencies: texinfo bison flex libgmp-dev libmpc-dev libmpfr-dev $ git clone https://github.com/kalray/build-scripts $ cd build-scripts $ source last.refs $ ./build-kvx-xgcc.sh output The kvx toolchain will be installed in the "output" directory. A buildroot image (kernel+rootfs) and toolchain can be built using: $ git clone -b coolidge-for-upstream https://github.com/kalray/buildroot $ cd buildroot $ make O=build_kvx kvx_defconfig $ make O=build_kvx The vmlinux image can be found in buildroot/build_kvx/images/vmlinux. If you are just interested in building the Linux kernel with no rootfs you can just do this with the kvx-elf- toolchain: $ make ARCH=kvx O=build_kvx CROSS_COMPILE=kvx-elf- default_defconfig $ make ARCH=kvx O=build_kvx CROSS_COMPILE=kvx-elf- -j$(($(nproc) + 1)) The vmlinux ELF can be run with qemu by doing: # install dependencies: ninja pkg-config libglib-2.0-dev cmake libfdt-dev libpixman-1-dev zlib1g-dev $ git clone https://github.com/kalray/qemu-builder $ cd qemu-builder $ git submodule update --init $ make -j$(($(nproc) + 1)) $ ./qemu-system-kvx -m 1024 -nographic -kernel Yann Sionneau (25): Documentation: kvx: Add basic documentation kvx: Add ELF-related definitions kvx: Add build infrastructure kvx: Add CPU definition headers kvx: Add atomic/locking headers kvx: Add other common headers kvx: Add boot and setup routines kvx: Add exception/interrupt handling kvx: irqchip: Add support for irq controllers kvx: Add process management kvx: Add memory management kvx: Add system call support kvx: Add signal handling support kvx: Add ELF relocations and module support kvx: Add misc common routines kvx: Add some library functions kvx: Add multi-processor (SMP) support kvx: Add kvx default config file kvx: power: scall poweroff driver kvx: gdb: add kvx related gdb helpers kvx: Add support for ftrace kvx: Add support for jump labels kvx: Add debugging related support kvx: Add support for CPU Perf Monitors kvx: Add support for cpuinfo .../kalray,kvx-core-intc.txt | 22 + .../devicetree/bindings/perf/kalray-pm.txt | 21 + Documentation/kvx/kvx-exceptions.txt | 246 + Documentation/kvx/kvx-iommu.txt | 183 + Documentation/kvx/kvx-mmu.txt | 272 + Documentation/kvx/kvx-smp.txt | 36 + Documentation/kvx/kvx.txt | 268 + arch/kvx/Kconfig | 249 + arch/kvx/Kconfig.debug | 70 + arch/kvx/Makefile | 52 + arch/kvx/configs/default_defconfig | 130 + arch/kvx/include/asm/Kbuild | 20 + arch/kvx/include/asm/asm-prototypes.h | 14 + arch/kvx/include/asm/atomic.h | 104 + arch/kvx/include/asm/barrier.h | 15 + arch/kvx/include/asm/bitops.h | 207 + arch/kvx/include/asm/bitrev.h | 32 + arch/kvx/include/asm/break_hook.h | 69 + arch/kvx/include/asm/bug.h | 67 + arch/kvx/include/asm/cache.h | 46 + arch/kvx/include/asm/cacheflush.h | 181 + arch/kvx/include/asm/clocksource.h | 17 + arch/kvx/include/asm/cmpxchg.h | 185 + arch/kvx/include/asm/current.h | 22 + arch/kvx/include/asm/dame.h | 31 + arch/kvx/include/asm/debug.h | 35 + arch/kvx/include/asm/elf.h | 155 + arch/kvx/include/asm/fixmap.h | 47 + arch/kvx/include/asm/ftrace.h | 41 + arch/kvx/include/asm/futex.h | 141 + arch/kvx/include/asm/hardirq.h | 14 + arch/kvx/include/asm/hugetlb.h | 36 + arch/kvx/include/asm/hw_breakpoint.h | 72 + arch/kvx/include/asm/hw_irq.h | 14 + arch/kvx/include/asm/insns.h | 16 + arch/kvx/include/asm/insns_defs.h | 197 + arch/kvx/include/asm/io.h | 34 + arch/kvx/include/asm/ipi.h | 16 + arch/kvx/include/asm/irqflags.h | 58 + arch/kvx/include/asm/jump_label.h | 59 + arch/kvx/include/asm/l2_cache.h | 75 + arch/kvx/include/asm/l2_cache_defs.h | 64 + arch/kvx/include/asm/linkage.h | 13 + arch/kvx/include/asm/mem_map.h | 44 + arch/kvx/include/asm/mmu.h | 296 + arch/kvx/include/asm/mmu_context.h | 156 + arch/kvx/include/asm/mmu_stats.h | 38 + arch/kvx/include/asm/page.h | 187 + arch/kvx/include/asm/page_size.h | 29 + arch/kvx/include/asm/pci.h | 36 + arch/kvx/include/asm/perf_event.h | 90 + arch/kvx/include/asm/pgalloc.h | 101 + arch/kvx/include/asm/pgtable-bits.h | 102 + arch/kvx/include/asm/pgtable.h | 451 ++ arch/kvx/include/asm/privilege.h | 211 + arch/kvx/include/asm/processor.h | 176 + arch/kvx/include/asm/ptrace.h | 217 + arch/kvx/include/asm/pwr_ctrl.h | 45 + arch/kvx/include/asm/rm_fw.h | 16 + arch/kvx/include/asm/sections.h | 18 + arch/kvx/include/asm/setup.h | 29 + arch/kvx/include/asm/sfr.h | 107 + arch/kvx/include/asm/sfr_defs.h | 5028 +++++++++++++++++ arch/kvx/include/asm/smp.h | 42 + arch/kvx/include/asm/sparsemem.h | 15 + arch/kvx/include/asm/spinlock.h | 16 + arch/kvx/include/asm/spinlock_types.h | 17 + arch/kvx/include/asm/stackprotector.h | 47 + arch/kvx/include/asm/stacktrace.h | 44 + arch/kvx/include/asm/string.h | 20 + arch/kvx/include/asm/swab.h | 48 + arch/kvx/include/asm/switch_to.h | 21 + arch/kvx/include/asm/symbols.h | 16 + arch/kvx/include/asm/sys_arch.h | 51 + arch/kvx/include/asm/syscall.h | 73 + arch/kvx/include/asm/syscalls.h | 21 + arch/kvx/include/asm/thread_info.h | 78 + arch/kvx/include/asm/timex.h | 20 + arch/kvx/include/asm/tlb.h | 24 + arch/kvx/include/asm/tlb_defs.h | 131 + arch/kvx/include/asm/tlbflush.h | 58 + arch/kvx/include/asm/traps.h | 76 + arch/kvx/include/asm/types.h | 12 + arch/kvx/include/asm/uaccess.h | 324 ++ arch/kvx/include/asm/unistd.h | 11 + arch/kvx/include/asm/vermagic.h | 12 + arch/kvx/include/asm/vmalloc.h | 10 + arch/kvx/include/uapi/asm/Kbuild | 1 + arch/kvx/include/uapi/asm/bitsperlong.h | 14 + arch/kvx/include/uapi/asm/byteorder.h | 12 + arch/kvx/include/uapi/asm/cachectl.h | 25 + arch/kvx/include/uapi/asm/ptrace.h | 114 + arch/kvx/include/uapi/asm/sigcontext.h | 16 + arch/kvx/include/uapi/asm/unistd.h | 16 + arch/kvx/kernel/Makefile | 27 + arch/kvx/kernel/asm-offsets.c | 157 + arch/kvx/kernel/break_hook.c | 77 + arch/kvx/kernel/common.c | 11 + arch/kvx/kernel/cpuinfo.c | 96 + arch/kvx/kernel/dame_handler.c | 113 + arch/kvx/kernel/debug.c | 64 + arch/kvx/kernel/entry.S | 1759 ++++++ arch/kvx/kernel/ftrace.c | 339 ++ arch/kvx/kernel/head.S | 612 ++ arch/kvx/kernel/hw_breakpoint.c | 556 ++ arch/kvx/kernel/insns.c | 146 + arch/kvx/kernel/io.c | 96 + arch/kvx/kernel/irq.c | 78 + arch/kvx/kernel/jump_label.c | 34 + arch/kvx/kernel/kvx_ksyms.c | 29 + arch/kvx/kernel/l2_cache.c | 448 ++ arch/kvx/kernel/mcount.S | 340 ++ arch/kvx/kernel/module.c | 148 + arch/kvx/kernel/perf_event.c | 609 ++ arch/kvx/kernel/process.c | 212 + arch/kvx/kernel/prom.c | 24 + arch/kvx/kernel/ptrace.c | 461 ++ arch/kvx/kernel/reset.c | 37 + arch/kvx/kernel/return_address.c | 55 + arch/kvx/kernel/setup.c | 178 + arch/kvx/kernel/signal.c | 266 + arch/kvx/kernel/smp.c | 110 + arch/kvx/kernel/smpboot.c | 127 + arch/kvx/kernel/stacktrace.c | 173 + arch/kvx/kernel/sys_kvx.c | 58 + arch/kvx/kernel/syscall_table.c | 19 + arch/kvx/kernel/time.c | 242 + arch/kvx/kernel/traps.c | 243 + arch/kvx/kernel/vdso.c | 87 + arch/kvx/kernel/vmlinux.lds.S | 173 + arch/kvx/lib/Makefile | 6 + arch/kvx/lib/clear_page.S | 40 + arch/kvx/lib/copy_page.S | 90 + arch/kvx/lib/delay.c | 39 + arch/kvx/lib/memcpy.c | 70 + arch/kvx/lib/memset.S | 351 ++ arch/kvx/lib/strlen.S | 122 + arch/kvx/lib/usercopy.S | 90 + arch/kvx/mm/Makefile | 10 + arch/kvx/mm/cacheflush.c | 154 + arch/kvx/mm/dma-mapping.c | 95 + arch/kvx/mm/extable.c | 24 + arch/kvx/mm/fault.c | 264 + arch/kvx/mm/hugetlbpage.c | 317 ++ arch/kvx/mm/init.c | 527 ++ arch/kvx/mm/kernel_rwx.c | 228 + arch/kvx/mm/mmap.c | 31 + arch/kvx/mm/mmu.c | 204 + arch/kvx/mm/mmu_stats.c | 94 + arch/kvx/mm/tlb.c | 433 ++ arch/kvx/platform/Makefile | 7 + arch/kvx/platform/ipi.c | 110 + arch/kvx/platform/pwr_ctrl.c | 93 + drivers/irqchip/Kconfig | 27 + drivers/irqchip/Makefile | 4 + drivers/irqchip/irq-kvx-apic-gic.c | 349 ++ drivers/irqchip/irq-kvx-apic-mailbox.c | 465 ++ drivers/irqchip/irq-kvx-core-intc.c | 82 + drivers/irqchip/irq-kvx-itgen.c | 224 + drivers/power/reset/kvx-scall-poweroff.c | 53 + include/linux/cpuhotplug.h | 2 + include/linux/irqchip/irq-kvx-apic-gic.h | 21 + include/linux/irqchip/irq-kvx-apic-mailbox.h | 29 + include/linux/irqchip/irq-kvx-itgen.h | 24 + include/uapi/linux/audit.h | 1 + include/uapi/linux/elf-em.h | 1 + include/uapi/linux/elf.h | 1 + scripts/gdb/arch/Makefile | 11 + scripts/gdb/arch/__init__.py | 1 + scripts/gdb/arch/kvx/Makefile | 25 + scripts/gdb/arch/kvx/__init__.py | 1 + scripts/gdb/arch/kvx/constants.py.in | 74 + scripts/gdb/arch/kvx/mmu.py | 199 + scripts/gdb/arch/kvx/page_table_walk.py | 207 + tools/include/uapi/asm/bitsperlong.h | 2 + 175 files changed, 25814 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/kalray,kvx-core-intc.txt create mode 100644 Documentation/devicetree/bindings/perf/kalray-pm.txt create mode 100644 Documentation/kvx/kvx-exceptions.txt create mode 100644 Documentation/kvx/kvx-iommu.txt create mode 100644 Documentation/kvx/kvx-mmu.txt create mode 100644 Documentation/kvx/kvx-smp.txt create mode 100644 Documentation/kvx/kvx.txt create mode 100644 arch/kvx/Kconfig create mode 100644 arch/kvx/Kconfig.debug create mode 100644 arch/kvx/Makefile create mode 100644 arch/kvx/configs/default_defconfig create mode 100644 arch/kvx/include/asm/Kbuild create mode 100644 arch/kvx/include/asm/asm-prototypes.h create mode 100644 arch/kvx/include/asm/atomic.h create mode 100644 arch/kvx/include/asm/barrier.h create mode 100644 arch/kvx/include/asm/bitops.h create mode 100644 arch/kvx/include/asm/bitrev.h create mode 100644 arch/kvx/include/asm/break_hook.h create mode 100644 arch/kvx/include/asm/bug.h create mode 100644 arch/kvx/include/asm/cache.h create mode 100644 arch/kvx/include/asm/cacheflush.h create mode 100644 arch/kvx/include/asm/clocksource.h create mode 100644 arch/kvx/include/asm/cmpxchg.h create mode 100644 arch/kvx/include/asm/current.h create mode 100644 arch/kvx/include/asm/dame.h create mode 100644 arch/kvx/include/asm/debug.h create mode 100644 arch/kvx/include/asm/elf.h create mode 100644 arch/kvx/include/asm/fixmap.h create mode 100644 arch/kvx/include/asm/ftrace.h create mode 100644 arch/kvx/include/asm/futex.h create mode 100644 arch/kvx/include/asm/hardirq.h create mode 100644 arch/kvx/include/asm/hugetlb.h create mode 100644 arch/kvx/include/asm/hw_breakpoint.h create mode 100644 arch/kvx/include/asm/hw_irq.h create mode 100644 arch/kvx/include/asm/insns.h create mode 100644 arch/kvx/include/asm/insns_defs.h create mode 100644 arch/kvx/include/asm/io.h create mode 100644 arch/kvx/include/asm/ipi.h create mode 100644 arch/kvx/include/asm/irqflags.h create mode 100644 arch/kvx/include/asm/jump_label.h create mode 100644 arch/kvx/include/asm/l2_cache.h create mode 100644 arch/kvx/include/asm/l2_cache_defs.h create mode 100644 arch/kvx/include/asm/linkage.h create mode 100644 arch/kvx/include/asm/mem_map.h create mode 100644 arch/kvx/include/asm/mmu.h create mode 100644 arch/kvx/include/asm/mmu_context.h create mode 100644 arch/kvx/include/asm/mmu_stats.h create mode 100644 arch/kvx/include/asm/page.h create mode 100644 arch/kvx/include/asm/page_size.h create mode 100644 arch/kvx/include/asm/pci.h create mode 100644 arch/kvx/include/asm/perf_event.h create mode 100644 arch/kvx/include/asm/pgalloc.h create mode 100644 arch/kvx/include/asm/pgtable-bits.h create mode 100644 arch/kvx/include/asm/pgtable.h create mode 100644 arch/kvx/include/asm/privilege.h create mode 100644 arch/kvx/include/asm/processor.h create mode 100644 arch/kvx/include/asm/ptrace.h create mode 100644 arch/kvx/include/asm/pwr_ctrl.h create mode 100644 arch/kvx/include/asm/rm_fw.h create mode 100644 arch/kvx/include/asm/sections.h create mode 100644 arch/kvx/include/asm/setup.h create mode 100644 arch/kvx/include/asm/sfr.h create mode 100644 arch/kvx/include/asm/sfr_defs.h create mode 100644 arch/kvx/include/asm/smp.h create mode 100644 arch/kvx/include/asm/sparsemem.h create mode 100644 arch/kvx/include/asm/spinlock.h create mode 100644 arch/kvx/include/asm/spinlock_types.h create mode 100644 arch/kvx/include/asm/stackprotector.h create mode 100644 arch/kvx/include/asm/stacktrace.h create mode 100644 arch/kvx/include/asm/string.h create mode 100644 arch/kvx/include/asm/swab.h create mode 100644 arch/kvx/include/asm/switch_to.h create mode 100644 arch/kvx/include/asm/symbols.h create mode 100644 arch/kvx/include/asm/sys_arch.h create mode 100644 arch/kvx/include/asm/syscall.h create mode 100644 arch/kvx/include/asm/syscalls.h create mode 100644 arch/kvx/include/asm/thread_info.h create mode 100644 arch/kvx/include/asm/timex.h create mode 100644 arch/kvx/include/asm/tlb.h create mode 100644 arch/kvx/include/asm/tlb_defs.h create mode 100644 arch/kvx/include/asm/tlbflush.h create mode 100644 arch/kvx/include/asm/traps.h create mode 100644 arch/kvx/include/asm/types.h create mode 100644 arch/kvx/include/asm/uaccess.h create mode 100644 arch/kvx/include/asm/unistd.h create mode 100644 arch/kvx/include/asm/vermagic.h create mode 100644 arch/kvx/include/asm/vmalloc.h create mode 100644 arch/kvx/include/uapi/asm/Kbuild create mode 100644 arch/kvx/include/uapi/asm/bitsperlong.h create mode 100644 arch/kvx/include/uapi/asm/byteorder.h create mode 100644 arch/kvx/include/uapi/asm/cachectl.h create mode 100644 arch/kvx/include/uapi/asm/ptrace.h create mode 100644 arch/kvx/include/uapi/asm/sigcontext.h create mode 100644 arch/kvx/include/uapi/asm/unistd.h create mode 100644 arch/kvx/kernel/Makefile create mode 100644 arch/kvx/kernel/asm-offsets.c create mode 100644 arch/kvx/kernel/break_hook.c create mode 100644 arch/kvx/kernel/common.c create mode 100644 arch/kvx/kernel/cpuinfo.c create mode 100644 arch/kvx/kernel/dame_handler.c create mode 100644 arch/kvx/kernel/debug.c create mode 100644 arch/kvx/kernel/entry.S create mode 100644 arch/kvx/kernel/ftrace.c create mode 100644 arch/kvx/kernel/head.S create mode 100644 arch/kvx/kernel/hw_breakpoint.c create mode 100644 arch/kvx/kernel/insns.c create mode 100644 arch/kvx/kernel/io.c create mode 100644 arch/kvx/kernel/irq.c create mode 100644 arch/kvx/kernel/jump_label.c create mode 100644 arch/kvx/kernel/kvx_ksyms.c create mode 100644 arch/kvx/kernel/l2_cache.c create mode 100644 arch/kvx/kernel/mcount.S create mode 100644 arch/kvx/kernel/module.c create mode 100644 arch/kvx/kernel/perf_event.c create mode 100644 arch/kvx/kernel/process.c create mode 100644 arch/kvx/kernel/prom.c create mode 100644 arch/kvx/kernel/ptrace.c create mode 100644 arch/kvx/kernel/reset.c create mode 100644 arch/kvx/kernel/return_address.c create mode 100644 arch/kvx/kernel/setup.c create mode 100644 arch/kvx/kernel/signal.c create mode 100644 arch/kvx/kernel/smp.c create mode 100644 arch/kvx/kernel/smpboot.c create mode 100644 arch/kvx/kernel/stacktrace.c create mode 100644 arch/kvx/kernel/sys_kvx.c create mode 100644 arch/kvx/kernel/syscall_table.c create mode 100644 arch/kvx/kernel/time.c create mode 100644 arch/kvx/kernel/traps.c create mode 100644 arch/kvx/kernel/vdso.c create mode 100644 arch/kvx/kernel/vmlinux.lds.S create mode 100644 arch/kvx/lib/Makefile create mode 100644 arch/kvx/lib/clear_page.S create mode 100644 arch/kvx/lib/copy_page.S create mode 100644 arch/kvx/lib/delay.c create mode 100644 arch/kvx/lib/memcpy.c create mode 100644 arch/kvx/lib/memset.S create mode 100644 arch/kvx/lib/strlen.S create mode 100644 arch/kvx/lib/usercopy.S create mode 100644 arch/kvx/mm/Makefile create mode 100644 arch/kvx/mm/cacheflush.c create mode 100644 arch/kvx/mm/dma-mapping.c create mode 100644 arch/kvx/mm/extable.c create mode 100644 arch/kvx/mm/fault.c create mode 100644 arch/kvx/mm/hugetlbpage.c create mode 100644 arch/kvx/mm/init.c create mode 100644 arch/kvx/mm/kernel_rwx.c create mode 100644 arch/kvx/mm/mmap.c create mode 100644 arch/kvx/mm/mmu.c create mode 100644 arch/kvx/mm/mmu_stats.c create mode 100644 arch/kvx/mm/tlb.c create mode 100644 arch/kvx/platform/Makefile create mode 100644 arch/kvx/platform/ipi.c create mode 100644 arch/kvx/platform/pwr_ctrl.c create mode 100644 drivers/irqchip/irq-kvx-apic-gic.c create mode 100644 drivers/irqchip/irq-kvx-apic-mailbox.c create mode 100644 drivers/irqchip/irq-kvx-core-intc.c create mode 100644 drivers/irqchip/irq-kvx-itgen.c create mode 100644 drivers/power/reset/kvx-scall-poweroff.c create mode 100644 include/linux/irqchip/irq-kvx-apic-gic.h create mode 100644 include/linux/irqchip/irq-kvx-apic-mailbox.h create mode 100644 include/linux/irqchip/irq-kvx-itgen.h create mode 100644 scripts/gdb/arch/Makefile create mode 100644 scripts/gdb/arch/__init__.py create mode 100644 scripts/gdb/arch/kvx/Makefile create mode 100644 scripts/gdb/arch/kvx/__init__.py create mode 100644 scripts/gdb/arch/kvx/constants.py.in create mode 100644 scripts/gdb/arch/kvx/mmu.py create mode 100644 scripts/gdb/arch/kvx/page_table_walk.py -- 2.37.2