Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3472738pxb; Mon, 4 Apr 2022 18:04:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1jUlfBuNpoDTNzTXDlIMdXMPM3GApK0CwcnfV3JZCrK1/VHPiTul+HGmKL/75VUAju58F X-Received: by 2002:a17:90b:4a46:b0:1c7:3b81:fc6 with SMTP id lb6-20020a17090b4a4600b001c73b810fc6mr1039072pjb.243.1649120657907; Mon, 04 Apr 2022 18:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120657; cv=none; d=google.com; s=arc-20160816; b=ZsqG8WKIRLR4CtSQzxaI1uW21yHsT6FSCYu8jRNN3/kSTOu4hXBioqpThBksSzp+B1 uyzV1j5CkVahC8z6S3EJ0DJF6dMsNTk19WuVsmVBoxiEOgacykz8phVeR7ANVedaENqF sTpcweCQqSrwUcDAdsn7Bu3ynxNeXyfCyMAPnsoVD0qbd5b1u3BefeLSktiahdhZXN62 CoNaRZrapRxTL/OKAuqKA0VC4zV+Lc7k5kfem6MIInjRcKqwTXltC22vJZ+CW0z7oSB5 lVNd72Zkh+dufsDcj/GzkB6+aT2i/E0GZfzjz5OjVY3mGSAkvUpdR3UK7cEiSyfdE1se uTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=iEiWF6W5eGf3o+pFLyypDpZtZ34NxqjsFLY3USTiA3E=; b=mnZMwRQtywAzmKK+bEBqrVVYgxpUn6xJMNrJ3kAniE6WbdV6u/iWKBC66XGf7VyZ+9 aBLYCNZmRfz27t+CqkyWeDcANuaeuNIJP00IC/Zr++91/u8KpLBDJFtZvhvX47kSWaXR YUJoe0nLDKyqR7p8nyQ8kc9y3bs5J9w6Hkq282iMfBdfpUGoh9huq5rwQM+j45jgyy8w qQulEZuqnSWp2kbCVvyaJxUliaay3jHBy07WGmH8hEtmQMHUNgo0Xg2DA6Xtyih9883f frt38lYTPzoTGBfYnFcLTz93RIf7aMAZX91Uc5RerUjIKRwefCnIALia3X9XaxAgKUP2 rLWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v7-20020a63b647000000b003816043ef60si11399348pgt.341.2022.04.04.18.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6C4C130C10; Mon, 4 Apr 2022 17:03:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347344AbiDDVyP (ORCPT + 99 others); Mon, 4 Apr 2022 17:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380361AbiDDTqo (ORCPT ); Mon, 4 Apr 2022 15:46:44 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BB5C31225; Mon, 4 Apr 2022 12:44:47 -0700 (PDT) Received: from mail-wr1-f43.google.com ([209.85.221.43]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N17cq-1nzCXH2wKw-012bHf; Mon, 04 Apr 2022 21:44:45 +0200 Received: by mail-wr1-f43.google.com with SMTP id w4so16093476wrg.12; Mon, 04 Apr 2022 12:44:45 -0700 (PDT) X-Gm-Message-State: AOAM531bPpPiXsyBuu1Yr8dOuiJWOEbyTNC5wCcidziOUplTMbkUXomW wRILfUd3mFBk2LOwTW6lxnZEaQTZU7t70MvZnAk= X-Received: by 2002:a05:6000:10c7:b0:206:135e:c84e with SMTP id b7-20020a05600010c700b00206135ec84emr984244wrx.12.1649101485314; Mon, 04 Apr 2022 12:44:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Mon, 4 Apr 2022 21:44:29 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PULL] remove arch/h8300 To: Arnd Bergmann Cc: Max Filippov , Christoph Hellwig , Linus Torvalds , Yoshinori Sato , Linux Kernel Mailing List , linux-arch , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT (xtensa)" , Linux-sh list , linux-m68k , Greg Ungerer , Damien Le Moal , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Qw+lTynQ9FdEIf/dV0Hp8dxBMWgXsLK2Hu91jlgCSXci/9G/4Qc LhhlwV8BuRehAQq6IqnNWf8tdRoO1iPeJrjM21R41fRtfu83xVpvU2pqw5CdITVmh8XS0Lk 3XNIJxiYBwAGyXKzZWz0mIOxTUV7ApES9AyWxPi+JQCvTVxx4xxA2YAu9KCgIyADBkf8RPP 15kIpgfD1xMa9hbZDD3KA== X-UI-Out-Filterresults: notjunk:1;V03:K0:8B+XYFobVuQ=:9dNh0l+zhbsBsyfsmjDetF t09Tnj6ird7kCuEKoLpCBUo6Sl+7KzqmNJ4Fb4YmFJevUKFBA9NKFYIrSnGRMnauCp40cULvm Diw38BGNYWCiKoAhXJbz0RKPtHdq+zqx58oWsFwIZ/Lbgh4UiOY0g0V925e8eQWaj/4iVajN8 9sUo4HkUcRFFYS0ax+5bwB6CO87e06MRTmYFzS9f+3VlRcqKDxejmGvelEuDASJ0bfSLgDDR3 mKvnax+e/VNeWOlp2yBPwLztUTEXo81O+oeh6UTiVJemBAduOef3K7oUTfrjoNyrmvlKsDXb5 v6kS8Kxm/TITqpnCsk4QpIp/GHF86SYKemT9E5gslt3Jom7Ii9rgFYoMqQXFnVgPRe8kDkxfN Om5DxEjB9KrDYBJSlFw+vCtsxj+GNK4RUToFDC6nR9bXRVu02Kljr30xaQCMbo7sor6+q2PMh aas5WrGIjG8nFxN7Z/hIA+kq4vDggcfEFoFwUQ6Njg1JGHlSxig3mep/yGI414qOMetQ55Q+u Pb+C5yFR6sMBsVt8nwV4KQKxHId8/MYTVIcsHq2KuwGFud/CeFPqmUMWewDZoB0Fe8VjhZFhx Ih2QrOtLgE4w1p62yki7mhccVS5LTWPCU5FKuu6lEuD8eMU7I7DSVjm8bjdkxfNYduU72ZTkB LbULHP7j1Ox/UCi9AHHW10IXpLthI1elT++Kev+3GlaQyu7y2DriiMAwF2LqHj+o9+9CT2UAn TgX3/N46OXL/SnWHuY00AV62H3sBOSblleHiMTwEPwWkv3IEuAHGYMUn5tn0ouDUpLkOIwkH4 /kgor7hwSb5nKlOgx6S8Ht5+fpC6oARD8C8QLTR/JvkZZtDxoA= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Mon, Apr 4, 2022 at 9:35 PM Arnd Bergmann wrote: > > On Mon, Apr 4, 2022 at 9:14 PM Max Filippov wrote: > > On Mon, Apr 4, 2022 at 12:01 PM Arnd Bergmann wrote: > > > On Mon, Apr 4, 2022 at 7:57 PM Max Filippov wrote: > > > > Please let me know if you observe any specific build/runtime issues. > > > xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED= > > ... > > > /git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages: > > > /git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register > > > 'atomctl' for 'wsr' instruction > > > > Sure, one cannot use an arbitrary xtensa compiler for the kernel > > build, the compiler configuration must match the core variant selected > > in the linux configuration. Specifically, for the nommu_kc705_defconfig > > the following compiler can be used: > > > > https://github.com/foss-xtensa/toolchain/releases/download/2020.07/x86_64-2020.07-xtensa-de212-elf.tar.gz > > > > If you build the toolchain yourself using crosstool-ng or buildroot they > > accept the 'configuration overlay' parameter that does the compiler > > customization. > > > > Perhaps the documentation for this part is what needs to be improved. > > It sounds like a bug in the kernel Makefile. On all other architectures, > you can generally just pick any (recent) compiler and build any kernel, > as the compiler arguments set the exact target machine type based > on the kernel config. You can't normally rely on the compiler defaults > for kernel builds. FWIW, the compiler I used is the one I built for kernel.org [1] using unmodified upstream sources The config I used for this is ${SRCTREE}/configure ../log-gcc-configure /home/arnd/git/gcc/configure --target=xtensa-linux --enable-targets=all --prefix=/home/arnd/cross/x86_64/gcc-11.1.0-nolibc/xtensa-linux --enable-languages=c --without-headers --disable-bootstrap --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=release Let me know if I need to enable additional options to get a compiler that works for all xtensa targets. Usually the --enable-targets=all is meant to be sufficient. Arnd [1] https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/