From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AA3EC54EBF for ; Tue, 3 Jan 2023 20:53:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235694AbjACUxG (ORCPT ); Tue, 3 Jan 2023 15:53:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbjACUw6 (ORCPT ); Tue, 3 Jan 2023 15:52:58 -0500 Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB78EDFFC; Tue, 3 Jan 2023 12:52:57 -0800 (PST) Received: by mail-il1-f171.google.com with SMTP id a9so6321030ilk.6; Tue, 03 Jan 2023 12:52:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TcjxuWhsew0S4JMMZ0LVIr9mYr0ZItiOrBsIyKBjzxA=; b=2NToks0C7J1Ro1UvG/6kt01FVvqSE9HR9qVAMAfaZb06yTAwrVLN65XEVXoYdk2sb/ FMDH86QOTkf1wdMlMR0dleIvp+iKloeh8GdzK1VfMzIR5mKBmjC5nnJFQD8eXF3nkv2c dY7pzjpWv1OB2HULmgz9jZIO8vW435au8tXaxTXsClyEWgoz1g9qzlEG3Rvr13+3bRd2 sVlR2JmEJsANGr6A5u4z8LXD9rOrFNBNl2fwYhTpwN6SRkp5lS/7jyhfQVKayBh/JXLn MlcxThMHg4KRVQgojY41+30qpXSL/0YXGHsHVLY34H6PJw+HYfF8wXBSBQUNQjTOidrU gmMw== X-Gm-Message-State: AFqh2kqZ2tsPOgwVUCwTSoEgDRfiW27l+kCz1xXxrsewl87pch2FncLQ Id3nHQnTweBl/NWr7CvSoQ== X-Google-Smtp-Source: AMrXdXs7CLCkBhA2bAs8+otIJJ87HLmOu2iBxk7dmL/ZdUhdNLgBmJbpCAkIQKJL5QLEGLa5kGxn6A== X-Received: by 2002:a05:6e02:549:b0:306:d1b4:f3c7 with SMTP id i9-20020a056e02054900b00306d1b4f3c7mr25689876ils.20.1672779176867; Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: from robh_at_kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id c24-20020a023b18000000b00388b6508ec8sm9836486jaa.115.2023.01.03.12.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: (nullmailer pid 3961459 invoked by uid 1000); Tue, 03 Jan 2023 20:52:50 -0000 Date: Tue, 3 Jan 2023 14:52:50 -0600 From: Rob Herring To: Yann Sionneau Cc: Arnd Bergmann , 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 , 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 , =?UTF-8?Q?Marc_Poulhi=C3=A8s?= , Marius Gligor , Samuel Jones , Thomas Costis , Vincent Chardon Subject: Re: [RFC PATCH 00/25] Upstream kvx Linux port Message-ID: <20230103205250.GB3942221-robh@kernel.org> References: <20230103164359.24347-1-ysionneau@kalray.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103164359.24347-1-ysionneau@kalray.eu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2023 at 05:43:34PM +0100, Yann Sionneau wrote: > 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 You should strip this series down to just what's needed to boot. You don't need the last 7 patches at least. Rob From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FA49C5479D for ; Tue, 3 Jan 2023 20:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E9z66314SImNJUalrMX85oL/OWgvGKazpSAdJFQFuSw=; b=zUnyKU43r7rBSH w0VM9jBTY1gEJ8ykVZXrYGwlODFwPe8k64QGhmNKW/4HRbSJwneS9s0HJvP++CLjW6wmdeeCPVK7p 9wnn30wzd5hG0pmOfyJWM9ZQn7lCVWF64BBNEzkhDPYSfWtSXagIZtoIw+UwFCpwfM5B8SfIJjWeJ Ulvr5+mMUCrxDoIeOSMQgXb9mpArbmDp86o0TtLxQ97TU3qkk8AEz0COsIqtT8SwtO3MZNnESz3h9 fvz8nFtYhbqITnpvRA5yao5TqRQd2fVihKcJl8rhSDUkNWiV1s+DtyXfcRWRPxIv9JDpiEQItNjHx 4xOE48b9tw34gka2Y4Gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCoLN-004vJT-78; Tue, 03 Jan 2023 20:57:09 +0000 Received: from mail-il1-f170.google.com ([209.85.166.170]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCoHN-004tqo-2p; Tue, 03 Jan 2023 20:53:07 +0000 Received: by mail-il1-f170.google.com with SMTP id u8so11061561ilg.0; Tue, 03 Jan 2023 12:52:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TcjxuWhsew0S4JMMZ0LVIr9mYr0ZItiOrBsIyKBjzxA=; b=z7Cvu0u6TNlvLWjhb1P9Nswzdcd8hk2JQE2NKV2auwmIhgZarrhqjG+iaBrqP6017R 3PW1kVDv5Fe0u658BAI2aTPxRjaxn6AAl/rfr4cADXOfZuicGSmJPI27fbthIfdMGT9V CIxr1gWnMmWaC2A+6p6S/xNcDM+QAHKClhfimLYbB1P7+fWcnVpDbPxtJ5iWLOCL2r8l UJQYsr2yhgkBiy4EfZwW+jc/B6GsnWMCjfOP1OxRyoVQxLQDYraeMvQlt1ypdorBWEi+ AcqBb2zQUgK7NLJU2dvqk/Xt8x1sKwAsUDec+sN2uNsgjFvVab+sY2RRMdmBC9RsWxNj ehKA== X-Gm-Message-State: AFqh2koschwPshpAQKBrcLYyBuq6jZhtcWVIM+EC40BbFlAswo7oiVyG XpPp+OLn6w5e1dEDXYuNYg== X-Google-Smtp-Source: AMrXdXs7CLCkBhA2bAs8+otIJJ87HLmOu2iBxk7dmL/ZdUhdNLgBmJbpCAkIQKJL5QLEGLa5kGxn6A== X-Received: by 2002:a05:6e02:549:b0:306:d1b4:f3c7 with SMTP id i9-20020a056e02054900b00306d1b4f3c7mr25689876ils.20.1672779176867; Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: from robh_at_kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id c24-20020a023b18000000b00388b6508ec8sm9836486jaa.115.2023.01.03.12.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: (nullmailer pid 3961459 invoked by uid 1000); Tue, 03 Jan 2023 20:52:50 -0000 Date: Tue, 3 Jan 2023 14:52:50 -0600 From: Rob Herring To: Yann Sionneau Cc: Arnd Bergmann , 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 , 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 , =?UTF-8?Q?Marc_Poulhi=C3=A8s?= , Marius Gligor , Samuel Jones , Thomas Costis , Vincent Chardon Subject: Re: [RFC PATCH 00/25] Upstream kvx Linux port Message-ID: <20230103205250.GB3942221-robh@kernel.org> References: <20230103164359.24347-1-ysionneau@kalray.eu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230103164359.24347-1-ysionneau@kalray.eu> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230103_125301_254556_769876AF X-CRM114-Status: GOOD ( 28.57 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Tue, Jan 03, 2023 at 05:43:34PM +0100, Yann Sionneau wrote: > 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 You should strip this series down to just what's needed to boot. You don't need the last 7 patches at least. Rob _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE5E9C4708E for ; Wed, 4 Jan 2023 14:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672841249; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WKtiTTo2QRyHD/VzJkf1WWnyBw0haGnNqEfJgciKvbU=; b=UWYFSeW6oh+jwCYYzblinzuOokbQ4k/tn61U3rBeUcBOJyKJNUR7zaWYXuLbVTiKFHEYEj aiGtpj6+gpZvB6LC3qJ9zEqZ3tz8ySu1czHwD756QBTBSENH/nhViKwAsLjmyvVlyinSG0 6s1QGunciNhCH/8E4zBK+2NYY44flwU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-612-Z2-uhj_sOf---IK9WhbDLQ-1; Wed, 04 Jan 2023 09:07:26 -0500 X-MC-Unique: Z2-uhj_sOf---IK9WhbDLQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 476F580D0E8; Wed, 4 Jan 2023 14:07:24 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B709714171B8; Wed, 4 Jan 2023 14:07:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3A8281947063; Wed, 4 Jan 2023 14:07:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 207C71946587 for ; Tue, 3 Jan 2023 20:53:02 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 02F05140EBF6; Tue, 3 Jan 2023 20:53:02 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF966140EBF4 for ; Tue, 3 Jan 2023 20:53:01 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D42062A59550 for ; Tue, 3 Jan 2023 20:53:01 +0000 (UTC) Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-317-DNoAsiRNNX-dYhhDPT_wOw-1; Tue, 03 Jan 2023 15:52:58 -0500 X-MC-Unique: DNoAsiRNNX-dYhhDPT_wOw-1 Received: by mail-il1-f169.google.com with SMTP id d10so18641596ilc.12; Tue, 03 Jan 2023 12:52:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TcjxuWhsew0S4JMMZ0LVIr9mYr0ZItiOrBsIyKBjzxA=; b=i2ODx9/G6XJvRyclQHerQAsYeRmG9TMdBkGwdYA1aE6WdLWMK9ka2oJE4GvQ7iMNR8 X+VEbKFxmJQvgHCIrsylUUVBJyLhgsYjlTs1zVGD9Ba+izTfaBB8/VjLkIuPy/ck7oTn ZQ4Y3xH4XqiFoKJiVUs7hYRpYLZFjWX77ah7zzlX9LjPWimyJ34v3EsOUGrwI1ggr5ze ejqqUj7aqu+6k9BJ7cYKG9vlXJ1E2o39vIwtNpDNolN6SrF9EOZSya7vK5RoZSDqzhCd Ia4wfGOzJRbUaKYm/NY27OClhXj1xZ0WDkgCfS+PMnr0Rsuyqgn+Du2XNOAPp9U6gsjU HBhw== X-Gm-Message-State: AFqh2kqMvpZNpS+BD3q5Ts4qWqIc3u5TbtEUwWdj6lUBz63Zhjt4ectz CyGMiRsRFmpjlsUVHzRIbQ== X-Google-Smtp-Source: AMrXdXs7CLCkBhA2bAs8+otIJJ87HLmOu2iBxk7dmL/ZdUhdNLgBmJbpCAkIQKJL5QLEGLa5kGxn6A== X-Received: by 2002:a05:6e02:549:b0:306:d1b4:f3c7 with SMTP id i9-20020a056e02054900b00306d1b4f3c7mr25689876ils.20.1672779176867; Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: from robh_at_kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id c24-20020a023b18000000b00388b6508ec8sm9836486jaa.115.2023.01.03.12.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 12:52:56 -0800 (PST) Received: (nullmailer pid 3961459 invoked by uid 1000); Tue, 03 Jan 2023 20:52:50 -0000 Date: Tue, 3 Jan 2023 14:52:50 -0600 From: Rob Herring To: Yann Sionneau Subject: Re: [RFC PATCH 00/25] Upstream kvx Linux port Message-ID: <20230103205250.GB3942221-robh@kernel.org> References: <20230103164359.24347-1-ysionneau@kalray.eu> MIME-Version: 1.0 In-Reply-To: <20230103164359.24347-1-ysionneau@kalray.eu> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mailman-Approved-At: Wed, 04 Jan 2023 14:07:19 +0000 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , =?UTF-8?Q?Marc_Poulhi=C3=A8s?= , linux-doc@vger.kernel.org, Alexander Shishkin , Jan Kiszka , Sebastian Reichel , Marius Gligor , Oleg Nesterov , linux-mm@kvack.org, Louis Morhet , Krzysztof Kozlowski , Luc Michel , linux-riscv@lists.infradead.org, Ashley Lesdalons , Will Deacon , Ard Biesheuvel , linux-arch@vger.kernel.org, Marc Zyngier , Thomas Costis , Jonathan Corbet , Jonathan Borne , "Aneesh Kumar K.V" , Peter Zijlstra , Ingo Molnar , Steven Rostedt , Jean-Christophe Pince , Waiman Long , Clement Leger , Masami Hiramatsu , devicetree@vger.kernel.org, Albert Ou , Kees Cook , Arnd Bergmann , linux-pm@vger.kernel.org, Samuel Jones , Boqun Feng , Guillaume Thouvenin , Julian Vetter , Arnaldo Carvalho de Melo , Julien Hascoet , Jason Baron , Nick Piggin , Paul Walmsley , Namhyung Kim , Thomas Gleixner , Josh Poimboeuf , linux-arm-kernel@lists.infradead.org, Julien Villette , Jules Maselbas , Christian Brauner , Andrew Morton , Benjamin Mugnier , Vincent Chardon , Guillaume Missonnier , linux-kernel@vger.kernel.org, Eric Paris , Alex Michon , linux-perf-users@vger.kernel.org, linux-audit@redhat.com, Palmer Dabbelt , Eric Biederman , Jiri Olsa , Kieran Bingham , bpf@vger.kernel.org Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, Jan 03, 2023 at 05:43:34PM +0100, Yann Sionneau wrote: > 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 You should strip this series down to just what's needed to boot. You don't need the last 7 patches at least. Rob -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit