Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp770891ybc; Sat, 16 Nov 2019 08:23:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyx+fstg5OfzEF96Gd5RHLfBDFvR3GC2fcLezKQJ2KbmubIuHn1A3hvQ4Hj3bEs2p7ewm7a X-Received: by 2002:a17:906:742:: with SMTP id z2mr11174243ejb.32.1573921429202; Sat, 16 Nov 2019 08:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921429; cv=none; d=google.com; s=arc-20160816; b=PpmBPUHCuOhBMMatc2uloniblNBh2vuV7XHL8LGPdKONm1bJeLlotvdG+fokf6GWBs eu/+Pvzc6RmAruSnL9dHI0PQwms0IujluJQuQPxjb5RcBqxejkFV6PxpLPpoODJ9lL0w vS54+S2vzS9wpvGX9e/kI7YhPT5kWyEdSJnABt8SX87vMo5yoU6Zr3i7X8HwjgNyEJHR za5b5Gck1pn/NE1JJJSl9pUNTeAX0mKfShFg4rv2Cts2BElO2QFKxH5UzxLPpLKNJT0L v3iDGoC84MxHWkNMBnx4TmeMIRZKFoWLj26AojRV0nODWFh3wPzcwGluQolORSMeAnW1 nJag== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qUHXbhgHGvfxgAVtWWXDSeeFWorJKjbHxw3GD0crHKw=; b=RPLrnebsE6DU+JPgM54ocPwuBMpp8honZKFuC85bmRmhR2OOV+sLO+NB+LDZVRHbsm 9f5g7m1dJZu2cqzRnol2SCcTY7R9wAOM7mfls3SGKjkh+gj8wQSP6Ob1sUpPnNiVNSFn ECbEOqUEx5Lrm67TLlIeU9VtSVjRAeaBf3uZ//4J7uCCxIefmkl1AZ8xlMMh6pZsvnSm T0e7u33m6vJy6ekiby8iQv2/jfQcDr8ugCqc4qrC1X9/M4QTwQtChntWPhCHlrpF7x9D fjxBq2HQxrlDwsqN+wZEH5ysiJY6XKAvvqJv6Ye+cMrdn9l9gG46p/04bG+8SyWiiSdy SjNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vC6VTyyG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o19si9029411edz.393.2019.11.16.08.23.23; Sat, 16 Nov 2019 08:23:49 -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=vC6VTyyG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731764AbfKPQTA (ORCPT + 99 others); Sat, 16 Nov 2019 11:19:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:52682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728709AbfKPPqV (ORCPT ); Sat, 16 Nov 2019 10:46:21 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B326B2077B; Sat, 16 Nov 2019 15:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919180; bh=QiUo4hDo6X9EO6O8FE6TbEIZnyPD3uwyPo97cTDFrBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vC6VTyyG2Qw+2GoDa17D6gdw12GtBRfinrLHL/mrxRS2RSRQjfyU3TZj+woOjnL1w K28K67FFx22nq+/u6xusIMzLAFdyxAFev5iYc7tIm3FKU0URfRV+1k0kGVqvfX0kRJ +xwa3CksimpfX0xlz0m+IlRqBFrtAiBwb1DMyagA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Florian Fainelli , Sasha Levin Subject: [PATCH AUTOSEL 4.19 189/237] soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL Date: Sat, 16 Nov 2019 10:40:24 -0500 Message-Id: <20191116154113.7417-189-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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