Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6227765rwb; Wed, 18 Jan 2023 02:46:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXtyCAO82tlrCBbGF7p7FkDtJj5DtRbRnnDFUFBsiRNxVDr48vbO89X4TLyaGEKhz+3hAPpY X-Received: by 2002:a17:907:d10:b0:86e:df17:df94 with SMTP id gn16-20020a1709070d1000b0086edf17df94mr8901381ejc.14.1674038808472; Wed, 18 Jan 2023 02:46:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674038808; cv=none; d=google.com; s=arc-20160816; b=acHfWkcHV1WgAndODySkfu6d+cTuK2CxllBG04yknSWaHq0K0oGybTa019uXePWl1p vJZUADhcDCmAopYsZdbUT8EnmaZoRFCY/QKR4EuUyrEhCryXLZY4515lxehLrd5Jm30u yG0IjGSgxNZRVMDOJS2PcKHTCgtokzHuYNzbox9HCNeTHPCbmeIf9I3Wp75cD7FHMlT5 4yF4rwtkRe5j0azVy41Ov8BDGK+6BzzmzT35J1QvdfpANzkmRa+xisBwDCUorndNT0y5 7FCmwvJrCF1SBmQLAl6rudl+lFgK0sMCGM/uKNiRDPcqF+M2ddyDdL3avqqOU54bH9dE ZARA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wJn/scRICnY3mRbbqgiExh0MozaWUrlHBGybkAoy+2k=; b=bpmYI2kUXGzgpLHre+N7XaPJb6MxibepoeFMEWUHWuGnpMyrCm3Bl2EZXq/nQ4zEBL XrwfFkkn10epIuHzI2Xvmp/z3dAzOuGUSXs84XPgPprfIEJP8g4M6DdrBYtCe+E+Q4ST oHJssd3a3GquBH9noZuTRmhFciIN6ZzPk8G80DBTfpw+iZlzaHNWpLyUpbs195uTygtk UUQ6JuKDtziFnaRNCfIDSS1ZfpAz4+jcsfWiBnqmp8lwqo/8hBLOJMlJcBJ+ShylVkD9 nGJI64WdJeWVGT0cpuYXn2+sUsjB5WMYY5WhE34ph0y51U41Xp5q40fYdU4AsSExoMS7 cbCg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd22-20020a1709072a1600b00871160a1e90si6391654ejc.999.2023.01.18.02.46.37; Wed, 18 Jan 2023 02:46:48 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbjARKWh (ORCPT + 45 others); Wed, 18 Jan 2023 05:22:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbjARKV5 (ORCPT ); Wed, 18 Jan 2023 05:21:57 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27D3442DD; Wed, 18 Jan 2023 01:27:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EAC0FB81C0F; Wed, 18 Jan 2023 09:27:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F6FC433D2; Wed, 18 Jan 2023 09:26:58 +0000 (UTC) From: Huacai Chen To: Linus Torvalds , Arnd Bergmann , Huacai Chen Cc: loongarch@lists.linux.dev, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Ren , Xuerui Wang , Jiaxun Yang , Huacai Chen Subject: [GIT PULL] LoongArch fixes for v6.2-rc5 Date: Wed, 18 Jan 2023 17:26:51 +0800 Message-Id: <20230118092651.2452402-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 The following changes since commit 5dc4c995db9eb45f6373a956eb1f69460e69e6d4: Linux 6.2-rc4 (2023-01-15 09:22:43 -0600) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-fixes-6.2-1 for you to fetch changes up to dc74a9e8a8c57966a563ab078ba91c8b2c0d0a72: LoongArch: Add generic ex-handler unwind in prologue unwinder (2023-01-17 11:42:16 +0800) ---------------------------------------------------------------- LoongArch fixes for v6.2-rc5 Fix a missing elf_hwcap, fix some stack unwinder bugs and two trivial cleanups. ---------------------------------------------------------------- Huacai Chen (1): LoongArch: Add HWCAP_LOONGARCH_CPUCFG to elf_hwcap Jinyang He (5): LoongArch: Adjust PC value when unwind next frame in unwinder LoongArch: Get frame info in unwind_start() when regs is not available LoongArch: Use correct sp value to get graph addr in stack unwinders LoongArch: Strip guess unwinder out from prologue unwinder LoongArch: Add generic ex-handler unwind in prologue unwinder Tiezhu Yang (1): LoongArch: Use common function sign_extend64() Youling Tang (1): LoongArch: Simplify larch_insn_gen_xxx implementation arch/loongarch/include/asm/ftrace.h | 2 - arch/loongarch/include/asm/inst.h | 9 +- arch/loongarch/include/asm/unwind.h | 41 +++++- arch/loongarch/kernel/Makefile | 2 +- arch/loongarch/kernel/alternative.c | 6 +- arch/loongarch/kernel/cpu-probe.c | 2 +- arch/loongarch/kernel/genex.S | 3 + arch/loongarch/kernel/inst.c | 45 +----- arch/loongarch/kernel/process.c | 12 +- arch/loongarch/kernel/traps.c | 3 - arch/loongarch/kernel/unwind.c | 32 ++++ arch/loongarch/kernel/unwind_guess.c | 49 +------ arch/loongarch/kernel/unwind_prologue.c | 252 +++++++++++++++++++------------- arch/loongarch/mm/tlb.c | 2 +- 14 files changed, 247 insertions(+), 213 deletions(-) create mode 100644 arch/loongarch/kernel/unwind.c