Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6041522ybc; Wed, 27 Nov 2019 13:58:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxNcEgCw33nw2d3ZOeDNbbAakPVDVO5k+TSbL/cRDPpkvrHLSo9MWR0VflVgDCPKieSmMpo X-Received: by 2002:a50:da4b:: with SMTP id a11mr34286369edk.17.1574891890791; Wed, 27 Nov 2019 13:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574891890; cv=none; d=google.com; s=arc-20160816; b=f1uq1MpR6YsZQ71DXwqqp41oBkX9TTboOBRyiCs2Ilqyxweke1OPp+3+sa2aL653Cl oo1vllTcJ++tLg1ss9s50iB+1sdNvueICYhJacq719pvJ/+zxzNYdLbYwuSRcHSZYZHQ kzHClzBKDxef7RyH6vFYXTpPJq+8sJNdEtwY43sA9ojXKEf37dAgktcjX3YjO+MvJlEs SRHEz7l/sU15eBpPlQNOEpkXp9WkrzhoOGaKRTrX4GAPZcIkWaTvXPQNaz/CjOtKWp03 Fje6Doj+amqyQ8TufPLVsaP2+B7sxUkrEf+27EmKXc9Fvu9C6P9iuWMACYcep6reb+tE dgMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qUHXbhgHGvfxgAVtWWXDSeeFWorJKjbHxw3GD0crHKw=; b=SAwNCBEpk6Hf1SuBC0ETD+4va7dxD98tvv0yOnFBcqW6GfR6Q45OMTb4iX/L5kM1I4 Gk8aiE12jVTEJxMhhe0UtKbRP4Tm2JRziMmRkJvsYCkvBpqTfoVXghIBBAuVBj0Ag8Ds Cy379YOiSuE3BnfQ4ndaxDFyDjXkPjR5R5xLv5fVS4wgd/n+BSnZBW88IQyqIDS5nKqx 0Edu5/8PMHDPlZ/hlUcoh50W19pdwJP38gxt50uao1/f8USmNPIGPdMJ1LIUL3Kftjwo VYKeGoOus5tN6bX3ABQ93gMbVUK2HkwIJN7MdU9+6PTYKgvLwTlmzNE3I0UJXwAOEnEB jEdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k0J5jtBV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si11792234eds.33.2019.11.27.13.57.47; Wed, 27 Nov 2019 13:58:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k0J5jtBV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732744AbfK0VYK (ORCPT + 99 others); Wed, 27 Nov 2019 16:24:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:56976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732066AbfK0VDm (ORCPT ); Wed, 27 Nov 2019 16:03:42 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B12A21771; Wed, 27 Nov 2019 21:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888621; bh=QiUo4hDo6X9EO6O8FE6TbEIZnyPD3uwyPo97cTDFrBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k0J5jtBVVd8EMz4EvcZMxYuL83WaNn1iScTXloH3q+yt1nOeDNogBQxlXOtHcgAIy +7gl83itFHBwNmk332PePYiAgCnJldgdLXHIvyteN8LpNrEpZiRi/0X0pAKKEQiyG0 1za9Me2iisDXT2Z7NrWjBKla6I9kz0Xu1oWXiFVU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Sasha Levin Subject: [PATCH 4.19 206/306] soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL Date: Wed, 27 Nov 2019 21:30:56 +0100 Message-Id: <20191127203130.187488359@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Fainelli [ Upstream commit fb14ada11d62fb849fc357a25ef8016ba438ba10 ] When the kernel is built with CONFIG_THUMB2_KERNEL we would set the kernel's resume entry point to be a function that is already built as Thumb-2 code while the boot agent doing the resume is in ARM mode, so this does not work. There is a header label defined: cpu_resume_arm which we can use to do the switching for us. Fixes: 0b741b8234c8 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)") Signed-off-by: Florian Fainelli Signed-off-by: Sasha Levin --- drivers/soc/bcm/brcmstb/pm/pm-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/bcm/brcmstb/pm/pm-arm.c b/drivers/soc/bcm/brcmstb/pm/pm-arm.c index a5577dd5eb087..8ee06347447c0 100644 --- a/drivers/soc/bcm/brcmstb/pm/pm-arm.c +++ b/drivers/soc/bcm/brcmstb/pm/pm-arm.c @@ -404,7 +404,7 @@ noinline int brcmstb_pm_s3_finish(void) { struct brcmstb_s3_params *params = ctrl.s3_params; dma_addr_t params_pa = ctrl.s3_params_pa; - phys_addr_t reentry = virt_to_phys(&cpu_resume); + phys_addr_t reentry = virt_to_phys(&cpu_resume_arm); enum bsp_initiate_command cmd; u32 flags; -- 2.20.1