From patchwork Tue Apr 19 16:38:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 563376 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3467126map; Tue, 19 Apr 2022 10:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3ta8/6c5oQC3IifJLSkEGhSxwbin5dPGJ7vAiEoSKrdih90Ob1tEQZut8Be6CAObiPXO2 X-Received: by 2002:a17:902:f68b:b0:159:48f:1185 with SMTP id l11-20020a170902f68b00b00159048f1185mr9442841plg.83.1650389461047; Tue, 19 Apr 2022 10:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650389461; cv=none; d=google.com; s=arc-20160816; b=D8IRzD23Mf2VX6XjeqfGlXQDHcsewTGLElNhIMkkGfPBKHLBtmIB5EBDpwmcUuq14t vfjVmpx7ChVYiqU4b3cRH6POIBDHImkbX7I4ABItGEsutetwK7wFcfrxqL+4ZONxsDnp ihQQ53czUlcb8I+tQgzqADrsqU/3BAy8W36Z+Kta15HhpRuanl3I4n6m5TleyoW9v+Vh ew1rFNw2BrqEUAaVtb8Mr5qFUKm9T9TgSMichRqcaYW7QDguLhvDqk6U2PHzp759X0Uk RYS3z1D9F/1jAb9Gn6INvwW/YkCKuaYHIE2216923kEzb2rOauG5YtKJjWDjVJR5mkkF 1CVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=+JOa3WlP7ujPy5w4C8p61HwZ7AyCUN/w1sHSK9Lz3aw=; b=TgA+o6BmUTgrrGkYH9MscV1We9Fr9jItakU3byaM1Ufivy+w0yjwkjbJ0lykee9Aa+ hmXRdpJcTm4nmnoKhAQOE2n3y58JMK5mbNOHRxnLW7rBrMKuMcdMoPU4hltRdsf4YavQ uyDXCFCEhLwd9OLDMelmHLDXt3HP+xBQqERf62AUeHzVTihD/KxnTA0A0ixU417IoWnQ z/OUF9VvfyMVI4NXKiskz+4HEwYOj6QtYance9eeYek5a6qNKUc0AyD6dstkghQgnIeC TqD1SBcTPbvp4jy0ZRR1/eMwXORTbfI4dX2sRoSNKO7/2YISwAs8GtMIty+6CbKsO8tz pgbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=Bfcbgs3D; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=YXQtUJB7; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id y32-20020a631820000000b003a22e971192si12614295pgl.103.2022.04.19.10.31.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 10:31:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=Bfcbgs3D; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=YXQtUJB7; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+JOa3WlP7ujPy5w4C8p61HwZ7AyCUN/w1sHSK9Lz3aw=; b=Bfcbgs3DXobjtW y1jzI9ChHYOgGZOsx+rfwgDPvHQ3+v38nEjJY4wUZ1VtfmUMoF440jPyqdH5JiFbt1wQFa6MStcdC GA/uBPNMKuGhbelDjdJL6n3/ydUdqr5G4ihG/wJ48gEbGBmhrQRSgzfd9xbBIk2PbKV+5HNPrJROC rqmlOR5mjBJUb5Ay9BVRrjjr9JXKUcJFz743/d7DZvXc5WfTxHhe83YXjtJS7Fu8Xl4/XtPniW4De IgES+55DNqS6PX91VJ78Cl6k6c0y4cCxE4ZXD01oPwlQnoITRyAlVUgO68ohlJcH9tnJwbDrMHGBy neNWaC3K3aRTBZbRl5nA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngrgj-005KIl-4p; Tue, 19 Apr 2022 17:30:53 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngqy4-004yuo-LA; Tue, 19 Apr 2022 16:44:50 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC19861879; Tue, 19 Apr 2022 16:44:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6062FC385A5; Tue, 19 Apr 2022 16:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650386683; bh=XdueS6o3x8Genbrjo7SphR5bJ8o+YLBkmS/22/Y/tzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YXQtUJB7B4bM52daStJxTBrA8/zErvRHpHn2okco8xXiPRjGGTcMxZ34F9ihe2zZF 1BoMvocNKdvX/A7Mn4lmcao9QbvEfofhr0515a2QLJ4e/1ti5g/eDZCmDNi5sdZR/I 9XNG+Otrayi6yRijGpRrnLzixoTgFiEZlFFL/2ise5K7ONOzh9kv641LscK+chNQJ7 Q9EFuzcxnFtDUtDisGrueMKhbPDgR4AstoPr4QwJ7WiTnp9E3XeIFc84uL5FnW7uoT 5DjaGzrz2kHiXzQHJSz/k+R25fFOoMSH+WeElYMHF7zCHXx8w3wvu8Yx03jMnZvboF gxYGbk6+OLuAg== From: Arnd Bergmann To: robert.jarzmik@free.fr, linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Tomas Cech , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linus Walleij , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-ide@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-rtc@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, alsa-devel@alsa-project.org Subject: [PATCH 45/48] ARM: PXA: fix multi-cpu build of xsc3 Date: Tue, 19 Apr 2022 18:38:07 +0200 Message-Id: <20220419163810.2118169-46-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20220419163810.2118169-1-arnd@kernel.org> References: <20220419163810.2118169-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_094444_874835_D4B625A0 X-CRM114-Status: GOOD ( 15.64 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Arnd Bergmann On a kernel that includes both ARMv4 and XScale support, the copypage function fails to build with invalid instructions. Since these are only called on an actual XScale processor, annotate the assembly with the correct .arch directive. Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [2604:1380:4641:c500:0:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org From: Arnd Bergmann On a kernel that includes both ARMv4 and XScale support, the copypage function fails to build with invalid instructions. Since these are only called on an actual XScale processor, annotate the assembly with the correct .arch directive. Signed-off-by: Arnd Bergmann --- arch/arm/mm/copypage-xsc3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mm/copypage-xsc3.c b/arch/arm/mm/copypage-xsc3.c index 6f0909dda2f9..c86e79677ff9 100644 --- a/arch/arm/mm/copypage-xsc3.c +++ b/arch/arm/mm/copypage-xsc3.c @@ -29,6 +29,7 @@ static void xsc3_mc_copy_user_page(void *kto, const void *kfrom) int tmp; asm volatile ("\ +.arch xscale \n\ pld [%1, #0] \n\ pld [%1, #32] \n\ 1: pld [%1, #64] \n\ @@ -80,6 +81,7 @@ void xsc3_mc_clear_user_highpage(struct page *page, unsigned long vaddr) { void *ptr, *kaddr = kmap_atomic(page); asm volatile ("\ +.arch xscale \n\ mov r1, %2 \n\ mov r2, #0 \n\ mov r3, #0 \n\