Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1070972pxm; Wed, 23 Feb 2022 17:21:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtDhO6Q7ZkH9x0sj82aAqrKjmfuZyIn5mzuSw8HTA84BDKgCTCqcXy65S75kEf6ZzQ2Zgh X-Received: by 2002:a17:902:8d84:b0:14f:83f2:8c0d with SMTP id v4-20020a1709028d8400b0014f83f28c0dmr372640plo.110.1645665678189; Wed, 23 Feb 2022 17:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645665678; cv=none; d=google.com; s=arc-20160816; b=ktiD/jDMCQ2E4/F6nlEFDNXKka+WmKQ89AoK5JK0bKO3W5jVm0FttWkn/PucCd++0b B6ZPro0cj/62IkNCyeDxC1SzyFPgB5nvmsR8k3b7eq/rwgAjks4RHP6HNUmZmjKnS/Yv Cpa7Xsiy0BB4w9IO01DdQ6+2o6Gxbo4t/tgT64ds4+3uClFuIgUW7+siA5SmUAXlipTt y8SeJe+Q949hlzku/jtmMAxDEbbycB7KQgTpxnO93Pa7Yggl3xC2oJ23z/jiaEiwcCrh TFp1WQ29p4j6wUq+FDqJEF8ZUamJoFBrHFwC4fxPEFgKR65g9m2Y8EFApaMnRw3uaSeb I5YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=c+MlTtkpukoWremAksUoYIOol/rEr8J3SxabhQB6OS0=; b=NPZODDUv65yQRxsUmtvqstg3RKEQyQzPTqDUwVzZCFr8iVXX0PNVMu2nOK6Z42mLIW jvMq2vXWcHwyL5cAGkDAZxmfQF8hxdyIddjvsJs/sfqhzbRngtRM7MI8+0+N5t7KT6DM n6cGjgZ11MBUzVwNX77XzCqH+0Pd+axQHfAOnoMsJLIOveyLcE/Og35lq/BNPqkRsLMm A+Cd05FpYITAX3IdPsauf4XYWPGd5O6h7LBV1RcHAdMsy81jsFY1Dc4SxPJ0zK8jMqk+ JXK9vc5lMGvqF/UB8BPht7LmZGT/tUsokp8KLaqtmYb8RTECjOY51xxGmnOBe0SBdH9u Ravw== 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 bm10si1363843pgb.446.2022.02.23.17.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:21:18 -0800 (PST) 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 94B2E19E724; Wed, 23 Feb 2022 17:05:27 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234127AbiBWQER (ORCPT + 99 others); Wed, 23 Feb 2022 11:04:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235779AbiBWQEM (ORCPT ); Wed, 23 Feb 2022 11:04:12 -0500 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CADC7C1149; Wed, 23 Feb 2022 08:03:44 -0800 (PST) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 21NFM0DW001673; Wed, 23 Feb 2022 09:22:00 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 21NFLvej001668; Wed, 23 Feb 2022 09:21:57 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 23 Feb 2022 09:21:57 -0600 From: Segher Boessenkool To: Anders Roxell Cc: mpe@ellerman.id.au, Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/3] powerpc: fix build errors Message-ID: <20220223152157.GE614@gate.crashing.org> References: <20220223135820.2252470-1-anders.roxell@linaro.org> <20220223135820.2252470-2-anders.roxell@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223135820.2252470-2-anders.roxell@linaro.org> User-Agent: Mutt/1.4.2.3i 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 Hi! On Wed, Feb 23, 2022 at 02:58:19PM +0100, Anders Roxell wrote: > Building tinyconfig with gcc (Debian 11.2.0-16) and assembler (Debian > 2.37.90.20220207) the following build error shows up: > > {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' > ... > > 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. Thanks for doing this. > + __asm__ __volatile__(".machine \"push\"\n" > + ".machine \"power6\"\n" > + "stbcix %0,0,%1\n" > + ".machine \"pop\"\n" Just leave out the quotes completely? Assembler is not C, barewords are normal and expected and better style. Other than that this looks perfect to me :-) Reviewed-by: Segher Boessenkool Segher