Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1213349pxp; Thu, 10 Mar 2022 00:38:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTPFYx89LrFhQbFSwPIj+ZEhpcLCs4rPRo58L4WCp0NsuoKze/EDSO8QKIpHII26sbE1gh X-Received: by 2002:a17:907:7b86:b0:6da:8a95:35bf with SMTP id ne6-20020a1709077b8600b006da8a9535bfmr3134614ejc.652.1646901523438; Thu, 10 Mar 2022 00:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646901523; cv=none; d=google.com; s=arc-20160816; b=nLn+A4MJYTuQaiprLkWiEndkcjaLkfABKfGEGKRxHBTb6nO+8l9X+uJKXuF9V4tBcm xXxQiyKaIKxGJmrgv2aESnK6TNYE9bp2JoXTPO4wGP3Na3DYRxXJTOqL8TK9t2Y2Hydm OUlqozUzJ+2siIDiq8DdmMJFJpJwXS77MyHUh2lKMHCRZpAPjNPpiU++y2qJ+pUqL487 ZRLOdy1iKEPp/KGTuyesrnipTkgWekkJKUr90TyhNyd2K+wpk5w4tczNKVN7z0rxP6gU hwvhBCOGSR3SuTGeGLb7n7snW7ZGzM9g3g6bwKN5nXQkgJb3+3kUWOSehj8omZGiGf6T n5CA== 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=naEqVq2q6x/zZTMp8slHuwdije07VdYebdDPZLPHQVE=; b=dPynJkN7jqkdwKnzT2x4+hWtUDb1WWueFxa60VfkdO1WtoJ6j4coZuszwvIZ291Vaj QkMuFhiz9wLi2qf2SRaLWGztj85HOIW6UVdI80yaJteB2WNBrneplR/l3faGIrASX/SJ mi9hkXRg7rWgOGXxVj651Jhcn/hDlhcSJmTd5cpYfnqrhCURlYTyfALcXrklr2ZKLHAn DmucMHR9KPd1Y8idHnywcKA6SiUXc7a083jpV63Bf36FP8PnRtWXLTeRVJlBPHqQV9a1 ppReBg5M3ti3AQ+7ZK8+ZGMFGy/aDAYGoLOcSn8VzFW9fM0tCaeEEGgU3/qJD8pUVyuL 4OcQ== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b00410dc9daafasi3309667edc.210.2022.03.10.00.38.20; Thu, 10 Mar 2022 00:38:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238320AbiCJHlQ (ORCPT + 99 others); Thu, 10 Mar 2022 02:41:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbiCJHlP (ORCPT ); Thu, 10 Mar 2022 02:41:15 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F29271323E5 for ; Wed, 9 Mar 2022 23:40:14 -0800 (PST) Received: from mail-wr1-f41.google.com ([209.85.221.41]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MS43X-1nZ7140Cwl-00TSmc for ; Thu, 10 Mar 2022 08:40:13 +0100 Received: by mail-wr1-f41.google.com with SMTP id x15so6489311wru.13 for ; Wed, 09 Mar 2022 23:40:12 -0800 (PST) X-Gm-Message-State: AOAM5338kLhmmRgcYHMOl6wlB+p1X/iMWnQtubfhCf5VnWHjVae9xHcf 8wm6ztZEwgFR9LfanR9UKDG1py/6yPnYA0lgXKQ= X-Received: by 2002:adf:f606:0:b0:203:8dff:f4ac with SMTP id t6-20020adff606000000b002038dfff4acmr366050wrp.12.1646898012730; Wed, 09 Mar 2022 23:40:12 -0800 (PST) MIME-Version: 1.0 References: <202203091741.IetDk7a7-lkp@intel.com> <20220309230950.GA89632@bhelgaas> In-Reply-To: From: Arnd Bergmann Date: Thu, 10 Mar 2022 08:39:51 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [lpieralisi-pci:pci/rcar 2/2] drivers/pci/controller/pcie-rcar-host.c:139:3: error: instruction requires: data-barriers To: Nathan Chancellor Cc: Bjorn Helgaas , kernel test robot , Marek Vasut , llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Kernel Mailing List , Lorenzo Pieralisi , Arnd Bergmann , Geert Uytterhoeven , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:6cCqpW4Sfz8ahYlVL8kmVC85/49EFugXZvm//14SL37ShaqUa3o 273sPelj9kP6FoHWsPX+wRIAxA2rPnhb2kl3WalZfvaWIoFkdAwchTavpcUfKYnHoRT7dN1 DuFMmO4ufMeJPlKO08/TdMwspcIknod/LOxjOgA8WXu7+uNIgL+vbCZ+xRabPZuawSKELUr 4rTvg0+Bek2LO6ojEBMrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:v+bUalp2lio=:XAhqgduxD+NGK/+bkfpEa6 T+ev6+7fNA3NZSPC6KvpzyvEKBckpH/NuvnmHb4Z7RgIFwa87oUfhPl+IBup37GUBHQzGYg+X 4VaB1jalQxI2bFb+Xg+J6UnehDaRdWiF14FX7vfmWymVvUxrOgpb4Lu3OvsC6UPQQLzlNcRKX rKpOG+of3qDsZ5NIeUITcSd456BEMIWkynmAoF3xoIchWc+OIzR91jUM7SeKAPzhJ+aQswGyk GqpVJu2qQpJ/p0JI8WGjOnzhBk8V0vLBnIt4qv7VKtSC7aY0cUArzjqFSMz63v+u3MSIhcdOF 5abiLUio4ieWwDkfZ0Deh3eJIrQxiGca2AjYZ1hWasG73dqaF6H3BQJad1q1MT10kIdzKbFJh VhX3G/xYfwhfPw/PLqI6vSUJdhHSnzEZjyZWe12tc0JvtXzPJjAU6ah1OXp0Kv2clVDqoUY2K tJedcXSxMZJNXZ+3LTmhh6S3ICknmEEJUzu7hKS0ppR7xVjq+U63GwzF1UFpCpa9zvdWettXC TmPn6JNKFS2E40DBNAnzQHHuA3dcPQgms24R281uemdU2JEUx9WoCTiHGCzEtKLOoG7t5Yq7l tQE2OuSb/Axf3C0hi77aTdAfqXgyBr411x12b23Jjl0f79X0VS1aj4zfHYDtmUy8LXd4mIQ+Z GI9XHjb4fOZBJzRZNmo/qfSeT15C7CQ9z555hRzOKOyWVz4zbVKhvS//g4pzBNUyoXNk= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Mar 10, 2022 at 1:18 AM Nathan Chancellor wrote: > > To avoid this error, for now I have cherry-picked de6b5097f58b to a > > local pci/host/rcar branch and dropped 9775965dbae5. > > FWIW, this is not clang specific, the same configuration blows up with > GCC 11.2.0 as well: > > $ make -skj"$(nproc)" \ > ARCH=arm \ > CROSS_COMPILE=arm-linux-gnueabi- \ > olddefconfig drivers/pci/controller/pcie-rcar-host.o > /tmp/ccz8ybtm.s: Assembler messages: > /tmp/ccz8ybtm.s:742: Error: selected processor does not support `isb' in ARM mode > /tmp/ccz8ybtm.s:812: Error: selected processor does not support `isb' in ARM mode > make[4]: *** [scripts/Makefile.build:288: drivers/pci/controller/pcie-rcar-host.o] Error 1 > > $ rg CONFIG_CPU_32 .config > 289:CONFIG_CPU_32v4=y > > It does not look like isb can be used with this configuration, at least > if I understand arch/arm/include/asm/barrier.h correctly. My first thought was to amend the #ifdef to #if IS_ENABLED(CONFIG_ARM) && IS_ENABLED(CONFIG_ARCH_RENESAS) However, this is still broken because you can build a kernel that enables the Renesas ARMv7 platform along with early ARMv6 (omap2 and imx3) that do not support "isb" either. What I think we want to do here instead is to add a ".arch armv7-a" in the inline assembly. Arnd