Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5379474iog; Wed, 22 Jun 2022 18:55:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCQ3M98Mp8mBZKtsrhjqiEmM8PJub/Mz4tgUKMrzig9yw5bvEkmSd7tBZglaEzWkQ4c+m/ X-Received: by 2002:a63:3717:0:b0:40c:99d7:f6ff with SMTP id e23-20020a633717000000b0040c99d7f6ffmr5481301pga.143.1655949358290; Wed, 22 Jun 2022 18:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655949358; cv=none; d=google.com; s=arc-20160816; b=N4Y9B2Gaf9IXqUM1k13udV2KeNoGRt0kOLvJ15+VPNzE5KQkchvD8m2uNEhHlIMSf7 x30hF8YQj7yt9j3AQwt+KelWAgWT/8ZCuQ6Mc9ykzKLtg5GhmItHuN2Zn6eRSvEY9SNq rAJ3e2HTZJz25R5WkOz9BhL2du2fsPAZCRH/DLtyJb/pxFIn9gcTQHstptOP+kbvEmkj dC/p3LV9L/9gDcuL/OOATBb91wVkwIN5AqBNlqswf2qcHUS3Xdz05jVwwN7sEpkDhv7A cmVyA7c0g3rApCzBsXk4zKIN07qGRFyQtwyDcyQhWKxdqEDqair3HgzSBFh0Rmg4fqU+ fIMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=AK9flfstLgknwdbuA53jNUaCYiVn6sFcwsKQDyYFJ9g=; b=EoV6h1s7wjN7H8/MznJJasszcD9BGqR2haKLJJHJexnGJlBQywZPXO5hkc/xpz35qv 5P7+BG34aDh5+lc8tfFZu2oPzO4MbiD+n3KxnyfOEBTOTRN3uSacWcMMN1W6xZDxwnyo uO0pdECMbHD/L82jk0L9nL+8xolGoKO9Hz2VUSrbKQOlAifGqjkmG6zjN2x7QTG0mKbT DwIQ1zB4FRJ0bVUn9z85knrVBE2b0XnFgfU4AVATaRgg2q454Gc7VXAUhOhSoH5AFA4J Cx0YFz9dYBzwDkttl27pXYcDFZQMnmuKL2Xq9BeA97J+QYCP+KHpm08AFP3R2BWRhNXm m7Bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a056a001a4900b0051b5d39f016si23995338pfv.56.2022.06.22.18.55.46; Wed, 22 Jun 2022 18:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377760AbiFWByD (ORCPT + 99 others); Wed, 22 Jun 2022 21:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377632AbiFWBw2 (ORCPT ); Wed, 22 Jun 2022 21:52:28 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5644143AF8; Wed, 22 Jun 2022 18:51:53 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LT38l4zSQz1KC95; Thu, 23 Jun 2022 09:49:43 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:51 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:51 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 28/33] arm64: sleep: Properly set frame pointer before call Date: Thu, 23 Jun 2022 09:49:12 +0800 Message-ID: <20220623014917.199563-29-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623014917.199563-1-chenzhongjin@huawei.com> References: <20220623014917.199563-1-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In __cpu_suspend_enter, the FP and LR are properly saved on the stack to form a stack frame, but the frame pointer is not set afterwards. Have the frame pointer point to the new frame. Signed-off-by: Julien Thierry Signed-off-by: Chen Zhongjin --- arch/arm64/kernel/sleep.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/sleep.S b/arch/arm64/kernel/sleep.S index 799ec01b0649..7fd276f3c532 100644 --- a/arch/arm64/kernel/sleep.S +++ b/arch/arm64/kernel/sleep.S @@ -92,6 +92,7 @@ SYM_FUNC_START(__cpu_suspend_enter) str x0, [x1] add x0, x0, #SLEEP_STACK_DATA_SYSTEM_REGS stp x29, lr, [sp, #-16]! + mov x29, sp bl cpu_do_suspend ldp x29, lr, [sp], #16 mov x0, #1 -- 2.17.1