Received: by 2002:ac2:5a04:0:0:0:0:0 with SMTP id q4csp1088142lfn; Wed, 23 Feb 2022 18:55:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyos7dKbrSLPvXfzn7BAP2YEd8XCLPhExK7PxYeuJ4m3PaOxQq3lZzBmrcoOE7UXZm7RWKB X-Received: by 2002:a17:902:ec88:b0:14f:de5b:2fbe with SMTP id x8-20020a170902ec8800b0014fde5b2fbemr517166plg.123.1645671306369; Wed, 23 Feb 2022 18:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645671306; cv=none; d=google.com; s=arc-20160816; b=UF5XMsu7xAJSJSirfbS3gbhPSR/4Jhb90PhYEveVArkGwckZVfKJsS9Wkw1hXJMJk+ PCo+SrB15pdW4axIDaHKREsdxk+Ek4f/tOO+SHFuW6ShUEgv859JKAnoeHBEh0r2WCDu ZK6F2QpP7Sto0Vw4Mzc1/XJr4KFgELihVB19Cs3J6DpIgNuHAfe45ON7PGCKME9jGy6I 6GZ5rV2ybb+MqQ4W7+b6oH9QxTTcofiYZsxcA0m4UA7DJT6xCnhfPuBFcBHrUNXFVa8f EY1QJV3635uega4fd9SXtSB7EF7V0TeK4B3GC+J58j6nFizoyR+gd1qnVp20PcGmR6Dd ZX/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=FxQHatlTrRq7n3gKv7MI+frHpxxNsIq5DRZG8efWFS4=; b=GLQvEm+TES8oeAiIwYaZAvlMF32w4Tje2J2q5PpzllWGxaDDwXZhE+IEkxYRn7WB6n o5cWNCTyuOyAiu/bFx414aW45Q0/B9V+KGyIIIm7hqdsvF0e+1/OPSKemXtmnX6QEKfe wwhlQcsqI9PZpl+ea2j/JlAV46KdMMtm+V8BjmrsAbX2sQAx9ab1y+LTWAhv25yde8q5 1EL3nTAm9cEBGJnGCIK7cL2BziDbDED7jYl0AWoWPUHvwmHF5qctzzSqj4RDZ1AK4qd3 Fvbi1l+9X00VoyiKLa8GtiSALLkf521z01EGz9PX3CCsiBkgYNxY9e38KlEfAWzuxxtq mGKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b518rUrD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id g3si1245456plp.140.2022.02.23.18.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:55:06 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b518rUrD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 CD3C3246348; Wed, 23 Feb 2022 18:55:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbiBXCz3 (ORCPT + 99 others); Wed, 23 Feb 2022 21:55:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiBXCz2 (ORCPT ); Wed, 23 Feb 2022 21:55:28 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C7E23A1B6; Wed, 23 Feb 2022 18:54:59 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id i6so647131pfc.9; Wed, 23 Feb 2022 18:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=FxQHatlTrRq7n3gKv7MI+frHpxxNsIq5DRZG8efWFS4=; b=b518rUrDU5aRRQEoulnpVrkWEE0YPug819IuLWcpCyw32P6K+H9akNr8b0UtmTFe/U KWQYZ7ciC7LMs1CnnACaZjAewODXu/w7X5GEv4ryE0UcfgzVl7er9Aygco8Vg1eahP+t dx1+mgnszHtWeJ2ychRMEh5WrE4KI6f+UvskHoGNnCRD9EDYXfOU06jGhf8+67aZbrJ2 QypI3Zdy2GqCWAptTEM2iFnb8mAa5VYIMZEkK7DgoWbDIcJJPqCunk8x5VVSGb2Tp5m2 Rt2D4tJL903ktJ68WxQo8qUL1SajUJi9yOAN738rWLH3Q03YPeRNQ33HsIVB2MONKUQ0 VS5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=FxQHatlTrRq7n3gKv7MI+frHpxxNsIq5DRZG8efWFS4=; b=Z/C6+kkZdDbKKylWmAz9pBLDMQkS97cP3XN5Yo8YC5HN/a8QutNx3x9nxqu+3iUdv3 SqygTc+tWc8kxE0u2u4ElrR7bZ4Ns93KQYVWFyvTJRvXDk12VG9873DpQgBqJo+vI1HN 0Y0mnJnGoUMoQ3vo70p7oLGP9kBRcwBUcW2ZnUAJo8AyHlQTM3CDVjkAHIb78GFvA4vC rpQJ9BFVw7KOxqIh3ykj/kIkylP2kdynnL15Nb14ZeO7BJa/IhhVETQyVhxyhguh8OTA 1aKOIEFz7ZQXkKn3UXLiMmNKbWrqKTjWfA69LlajGl2i7DkPTXBe+IgCbgmRXj4mcft/ Aegw== X-Gm-Message-State: AOAM533hRJhA05IUCuzImwOIJW3sxh26PyCikEo81i4IWKs6q/b5oBnA v5GFlvH9fD7R40pCsjwQV2yRhwkDEDQ= X-Received: by 2002:a63:375b:0:b0:374:915e:d893 with SMTP id g27-20020a63375b000000b00374915ed893mr674932pgn.494.1645671299350; Wed, 23 Feb 2022 18:54:59 -0800 (PST) Received: from localhost (115-64-212-59.static.tpgi.com.au. [115.64.212.59]) by smtp.gmail.com with ESMTPSA id s6sm949926pfk.86.2022.02.23.18.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:54:58 -0800 (PST) Date: Thu, 24 Feb 2022 12:54:54 +1000 From: Nicholas Piggin Subject: Re: [PATCH 2/3] powerpc: fix build errors To: Anders Roxell , mpe@ellerman.id.au Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, stable@vger.kernel.org References: <20220223135820.2252470-1-anders.roxell@linaro.org> <20220223135820.2252470-2-anders.roxell@linaro.org> In-Reply-To: <20220223135820.2252470-2-anders.roxell@linaro.org> MIME-Version: 1.0 Message-Id: <1645670923.t0z533n7uu.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Excerpts from Anders Roxell's message of February 23, 2022 11:58 pm: > Building tinyconfig with gcc (Debian 11.2.0-16) and assembler (Debian > 2.37.90.20220207) the following build error shows up: >=20 > {standard input}: Assembler messages: > {standard input}:1190: Error: unrecognized opcode: `stbcix' > {standard input}:1433: Error: unrecognized opcode: `lwzcix' > {standard input}:1453: Error: unrecognized opcode: `stbcix' > {standard input}:1460: Error: unrecognized opcode: `stwcix' > {standard input}:1596: Error: unrecognized opcode: `stbcix' > ... >=20 > Rework to add assembler directives [1] around the instruction. Going > through the them one by one shows that the changes should be safe. Like > __get_user_atomic_128_aligned() is only called in p9_hmi_special_emu(), > which according to the name is specific to power9. And __raw_rm_read*() > are only called in things that are powernv or book3s_hv specific. >=20 > [1] https://sourceware.org/binutils/docs/as/PowerPC_002dPseudo.html#Power= PC_002dPseudo Thanks for doing this. There is a recent patch committed to binutils to wor= k around this compiler bug. https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Dcebc89b9328 Not sure on the outlook for GCC fix. Either way unfortunately we have=20 toolchains in the wild now that will explode, so we might have to take=20 your patches for the time being. Thanks, Nick