Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2442169pxb; Mon, 11 Jan 2021 09:42:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl6pHyHpDULOzPV2S0cUHcW4exuRH59PynmvGNGoVcank+kp7WCjWjI6SIlgcR96egdK5q X-Received: by 2002:a17:906:a283:: with SMTP id i3mr405844ejz.496.1610386933938; Mon, 11 Jan 2021 09:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610386933; cv=none; d=google.com; s=arc-20160816; b=fZnB4b+2zVsltW3UX1LRqyrSDhl8ySr/9ntsROuvRHjaWx187atNYCRPnMefyjHAkb 9NlnxSZahHUCO0LUBcgjB1FKSsef9O4EtPpr5M2s57MMNy1tZVf4K0Rx0VUXjA9gIg8G aE5nKxnyrxoJk0qIx7Xm+yZxcKctvmal9gMye+IxhkZst7dvsOAqe46LB0Hz135CyoUq lCOvZAYguIbkgVW5lluBUT/ezxGpe2zir/+hS4AEDJ61XHHWfozTfPx1P+WWMP5VGMwR KJKq+kVkjA5C0odhDcg/bXV5r2vOVrYJ63ORjPaTRLDUQspL8b8xgWj7QxF9pAXCfVpO Y4oA== 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=qdlutJZbWxlBsMMj13bYddyD43bGm9GpxW+8aixAX/Q=; b=l4lOLMryImfEi/nYVhZIVx4ayhIeoudp5gSA2uf7ZQzOO/0+JfeUbyW927/e/GKqqD m6TJ0z58XeaIDkYADBlpOJamapx/yVe+Vnn1xfDPrLkjaTWtowlFd14zyLwMqdQyi7MT bcdk2vbynIyvO7SJSIBUFKYgvLviTAs9WjqiF2kdoyCglexRI2LYkDfAZYQQyt7RVIr4 zGzuB+kUV5p0srSoGX/UeOHbS7nUGXx7S5rhcFUA3NxKsqe2V01mdlV2ryGCZisYrFYj XbJ9rZSqzMuEXMYBuU+N+Gt3cvwKA3LfIA3FxLGtR4qAGdR7hDcgewlqrMHJWHQo6Q8e AuqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nn6G0HH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si178887edy.108.2021.01.11.09.41.50; Mon, 11 Jan 2021 09:42:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nn6G0HH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389817AbhAKRjL (ORCPT + 99 others); Mon, 11 Jan 2021 12:39:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389806AbhAKRjI (ORCPT ); Mon, 11 Jan 2021 12:39:08 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992C5C061795 for ; Mon, 11 Jan 2021 09:38:27 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id r5so555710eda.12 for ; Mon, 11 Jan 2021 09:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qdlutJZbWxlBsMMj13bYddyD43bGm9GpxW+8aixAX/Q=; b=nn6G0HH5J1UNcJsb8UCHCcPUQmWYOXwydCTN7d6GmJdLeCR7/PAJ6+bJBDhzussWhH Z0NiU5kRzoSrXjqdKBp6iyJeFH9ikCmXo5yT81TOY6rgHCbXM4cRMon5sDbrY6l+aaNr XKK94IB1QxrwY4yQXhLfn1ZT5pV5a3em1JyfWedKficuMpsC/WWdCenErmPGwHrPTy/3 RCC1swH9PBG1c7ZYVoD2iB15OS2vuGS/b49irYg92voNmAWp+t8U/zmBaXZiQXZnJSa4 Uh5FoTOiuiKX9BQRxCip5c6zEyawHgOslIAwCQJFGoiFajcIYEmNfADNygxcM5QmIenM VA4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qdlutJZbWxlBsMMj13bYddyD43bGm9GpxW+8aixAX/Q=; b=sTDXA/RH/qlROlx+kbChSH3KfPIK4XEnoGcRCHUC09M6cSaNZz1WMgCmuXQSWGrhdG 7oTRf49GpwTQwX0raDDUWfn508P4RTZ83ePkS9ADLykhW73U5k0fWbgQDPClF3I1PECZ QnYdVncufN1IEiUuTrmKl4lgwIz8f+65wJeePO4y4DeRhT9h8RHxYj8mKM8lgW6vay37 axC3uNq/oWR2GGa07F9LFFMukg53jXB42NDywYpRU42ko5AiKEz8wfmwFJK97WWwvUqF Lq6tQvEOVwbU1DZ28QfOMWBNcsrRypiIfaSZjQr+TN/meoYfg1LfGvSkpozb2MfWuHII tqhA== X-Gm-Message-State: AOAM531Cb/goI/6q6gX9aliPR1zrcnydgbABCFHIGfB411DONyS9pp3Q yb07VYES9j7DLuln58MoZlyfUg1auWtF3PnC54c= X-Received: by 2002:aa7:c64e:: with SMTP id z14mr358526edr.69.1610386706256; Mon, 11 Jan 2021 09:38:26 -0800 (PST) MIME-Version: 1.0 References: <20210111151704.26296-1-max.krummenacher@toradex.com> <20210111151704.26296-2-max.krummenacher@toradex.com> In-Reply-To: <20210111151704.26296-2-max.krummenacher@toradex.com> From: Oleksandr Suvorov Date: Mon, 11 Jan 2021 19:38:15 +0200 Message-ID: Subject: Re: [PATCH 1/1] ARM: imx: build suspend-imx6.S with arm instruction set To: Max Krummenacher Cc: Max Krummenacher , Lucas Stach , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Rouven Czerwinski , linux-kernel@vger.kernel.org, Ahmad Fatoum , Pengutronix Kernel Team , Sascha Hauer , Russell King , Shawn Guo , NXP Linux Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 5:20 PM Max Krummenacher wrote: > > When the kernel is configured to use the Thumb-2 instruction set > "suspend-to-memory" fails to resume. Observed on a Colibri iMX6ULL > (i.MX 6ULL) and Apalis iMX6 (i.MX 6Q). > > It looks like the CPU resumes unconditionally in ARM instruction mode > and then chokes on the presented Thumb-2 code it should execute. > > Fix this by using the arm instruction set for all code in > suspend-imx6.S. > > Signed-off-by: Max Krummenacher Acked-by: Oleksandr Suvorov > > --- > > arch/arm/mach-imx/suspend-imx6.S | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/mach-imx/suspend-imx6.S b/arch/arm/mach-imx/suspend-imx6.S > index 1eabf2d2834be..e06f946b75b96 100644 > --- a/arch/arm/mach-imx/suspend-imx6.S > +++ b/arch/arm/mach-imx/suspend-imx6.S > @@ -67,6 +67,7 @@ > #define MX6Q_CCM_CCR 0x0 > > .align 3 > + .arm > > .macro sync_l2_cache > > -- > 2.26.2 > -- Best regards Oleksandr Suvorov cryosay@gmail.com