Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3512465pxb; Mon, 4 Apr 2022 19:24:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2cgQq6mA/wZ3x2UjREDhszPDmX3dSoA6Oz2+ZAhBCsS6Uojh8q3SDtUqkB+4KcpLB1BIy X-Received: by 2002:a05:6a00:3486:b0:4fa:bb7e:b4c7 with SMTP id cp6-20020a056a00348600b004fabb7eb4c7mr1148003pfb.4.1649125446690; Mon, 04 Apr 2022 19:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125446; cv=none; d=google.com; s=arc-20160816; b=B8Zt3coU0hJcIiw22uIZHlmUYPFa8LWujENtVIcbAQQPH+BVzohdQNnA8zks67peT6 cjges8WKg0W6ykYlPCuTnHK6blB/85ExwKe3re9fFyw7sY8hOndcewT1o7Q4S8Y/6129 XQ/6k2v98X4fd0QTOvlQHiqbeH3HjcV+RcJc6yIm5ov/uKNB+MJfBbWZuwXN/1gBvhL0 tau7ZFrTe05Dqgv+SjRn8KgGGteY0iP+DEfATrQVRGncZ3IlDARN+w8JfpDsmIWyomCi oeDiPl489LqMoGLXjAejoIOphbE2G9WW0dsDYOlQ+meqfs/ArZVzUlcluKG/quxdjTxk OywQ== 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:dkim-signature; bh=Hwk8wNBo32OmqYHy/lorDp6jxAIWbUvyfxVID6NQWMs=; b=odWzPGzwkhwXO+lKNxlmfHtytk0ENoh81T1iDKQsIszPpfIXOhn157hmlmpIiwsIi+ mIausSzYUmaY50thlY9PmppwQ4BhmmT0JmRJJbruwpcyCZ52oi8kkEvzZLOUwMGmtioa Mal/AMde4LCLgC25nTEzDnhvHJa2vNqE0sg/Y723Q+/om7YbM4yr1TDqp4+B3RPJSKa3 tsFs5YTGh1szzQNbsrUCpbPHfJ/MGeFlWp4gdfUehjJKJ/vXsHd8N8FS/Pv1Fmz0i9JB aOB++1xtowfxWqZsnwBwIUhyaaKRIMumfsa2x7VzQOIvK1xZ1xVtZCYf+FtoNkSA2kms Ek8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MgQmlEUX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ng16-20020a17090b1a9000b001ca62bbd690si1095329pjb.114.2022.04.04.19.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:24:06 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MgQmlEUX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D57072B9A34; Mon, 4 Apr 2022 17:45:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381839AbiDDVYJ (ORCPT + 99 others); Mon, 4 Apr 2022 17:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380649AbiDDUu2 (ORCPT ); Mon, 4 Apr 2022 16:50:28 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14723D6C; Mon, 4 Apr 2022 13:48:29 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id g22so12596083edz.2; Mon, 04 Apr 2022 13:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hwk8wNBo32OmqYHy/lorDp6jxAIWbUvyfxVID6NQWMs=; b=MgQmlEUX2awo9FGSPrgoUcYWe7XJZtfBcbV29fxnVVbjc3fXXrfVTWrbf2FEFcWonc f0aKsGNt8xLswvAf+ZPhMd5j5QzbyREtH5EG01bJE669ZjjMFoCvsLGPKRLoJVuom9dZ kYDVGColrzu6iRkzxv5ZReRUd9ML2sggd3BMjTtGMEkH1295xZhX2QGenYIfKlQxetMx wEl7pjgvYdNikY+mO/2Nm0tMPt7LhohPkX3Rwa6Aslkud3EOtvKb96eSd5wNJblieh0R 40OeE78e2N7TGKbSRYTN0wXN/vb0WgldQS9luj+/MJkrgEZ2kqq3FNMc4ahhO48f2+pr C7Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hwk8wNBo32OmqYHy/lorDp6jxAIWbUvyfxVID6NQWMs=; b=tgSn6xXMmJndzz8y2ABHME8eE9nPr4OoFw8S+8G6N9tud4cz4XWzadHTph1YUnzFJn 6BFWJOV64kp1WdZzDwH21tRKFMmBoaCYo4db0wjGAfrTxNib8Vco9s/JQYTxa7srlUXg fljeO/QgQEpZlJprcQCoBHHXvEcClr37nXYAxOGW0ihCA5z9PIGUG/XKGk3MLS6xcprc GDtBnWY2YHpr1M03w+i+11wVqa5sblTlVlTej4gl5UzARJoHaeIK66wXHPVlHNzVR2Ix DbPUkh8DdYYUyX5WHF2HTXgtFXkL76BkE0gIRFhOt5JnVYgZOLcI7yJDFNxVC7XjeEYU JKbQ== X-Gm-Message-State: AOAM533TKMyKCSPhAzUJgsAb098ZYK4RTJ5N/NEzTiBR5vDMv3KLqdzA 53jqPW57DANxFJMhOi7x+MkFz1mWrKO+fLexqNiseJO/ X-Received: by 2002:a05:6402:27d0:b0:419:5184:58ae with SMTP id c16-20020a05640227d000b00419518458aemr4939ede.314.1649105307534; Mon, 04 Apr 2022 13:48:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Max Filippov Date: Mon, 4 Apr 2022 13:48:15 -0700 Message-ID: Subject: Re: [RFC PULL] remove arch/h8300 To: Arnd Bergmann Cc: 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-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, 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 12:36 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. It's not just the defaults. The binary instruction encoding is configurable on the xtensa architecture, configuration overlay replaces parts of the toolchain that do that. The additional CPU state is configurable and the kernel gets customized with the code that loads and stores this state when someone builds it for a specific xtensa core. These customizations are done by the users of the xtensa architecture and there are hundreds of configurations in existence. The toolchain has never been supposed to support all of them at once. -- Thanks. -- Max