Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1788198pxb; Sun, 17 Jan 2021 23:05:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFTPJg8lcJ+TMCGia896UOCRORw0LyeU0OPJ65kep+gD5JzHgE9XAhI5hklPW4QuZG1eSj X-Received: by 2002:a50:d685:: with SMTP id r5mr18810969edi.248.1610953557251; Sun, 17 Jan 2021 23:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610953557; cv=none; d=google.com; s=arc-20160816; b=zom88WWzgeFZVEJFxfO0HWid1YS8cCwtfMge1w/yilIQJyVWDwMbi2jclavpU+9YJD pmPvQ0WueJKYz6+bwmj4T6jUP4D2Ym9M9ProckbGcCptnQwpK2ipJxRBsyGuosZWj9mp KZNyGglTxI9aZWVhpzETB9fCXvBYuRVOv4VUxF/VgPPIHkVUoP6SRVKqeuIYQdxjz6dj nI+HZf9r2/cUD5ylQz1TgmFQE08YkbG2RszbFDyllly68YyBPTm8B7s6lRy6yWXZJnAE OencG3qy5vMmoVU21YLZMD1RRczazrH5+yS3asS24548jNZDxBiKmPew6/QnqUlojYJG 17TQ== 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 :dkim-signature; bh=30xSGtffpmXe5sLYFiA5Z3Q1J5g69MidmNBNgqJRS7w=; b=t/XNnNeVBHtkT47ZTbpVz2BQix0TEjwg11YI5tjdnuUybPHQujxW8OdSQlYK4MsXYt TDy6p3mPwxs+fOEAkbLyGKv5CSDAZe1cKud6Wv2QztUPdN+/L6xcdQSGSGPdUQPZONKK 79y/TmKifpD89WpU0dgxqYmIWVU8uXdY84yqcANo3nwE4GuauddxR7+HnyRlTmdP5kz4 C9NMjNvXS2NsHniAzy5oiqHrco60LzluuYFvKbADvvGgGxJVIXtEdq5v1nAAdBwRl0Bb RoIi/4rP+XDFInGPO/kL7zetwSsbE3W36s4dblOh3gZB0DCjVo1QeU/M+ubUpKfs2O+h Phjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qc0rbu5x; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc20si3451180ejc.546.2021.01.17.23.05.33; Sun, 17 Jan 2021 23:05:57 -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=@kernel.org header.s=k20201202 header.b=qc0rbu5x; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731672AbhARGqC (ORCPT + 99 others); Mon, 18 Jan 2021 01:46:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:38648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbhARGqA (ORCPT ); Mon, 18 Jan 2021 01:46:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EF21229C4; Mon, 18 Jan 2021 06:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610952320; bh=e2CwknkP5NekTSXTF/l/DZ4TRNU3wjDFJ3Y0S399E/Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qc0rbu5xpn0EJ6RO51eVoTq+WbllSP+2LtQE2RIYxGKhj5b/MbSejWjOhrw0dXctQ 7gwgV7Cccqv6uT4chqmcNXokjJRuJBq5G5pwqJbhwolYMJoyOj6UXOX2nxwAX9i7RA viZQzv2za7nW9ckLdzszW136/CAzNC6DZ+4nWHFJenBZwf5Dz7QKgnrEa9M79e8Lzb O+iHIPC550pu0BRRzR5lQe0r6punn+RNFA8Lk0JOKxD7c4hwqWYSMsLMNFZseXbNpq o/GQmXYJajmQpceaiqwEnf2Zw7/SEQzE2X3J1B1DQNY67syP6WHt7H9XU3mWBwqEX2 sNHqQkEum/0OQ== Date: Mon, 18 Jan 2021 14:45:13 +0800 From: Shawn Guo 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 , NXP Linux Team Subject: Re: [PATCH 1/1] ARM: imx: build suspend-imx6.S with arm instruction set Message-ID: <20210118064512.GK28365@dragon> References: <20210111151704.26296-1-max.krummenacher@toradex.com> <20210111151704.26296-2-max.krummenacher@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111151704.26296-2-max.krummenacher@toradex.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 04:17:04PM +0100, 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 Applied, thanks.