From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FC3E481BD for ; Mon, 18 Dec 2023 18:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ynC7Wc1C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D389EC433C9; Mon, 18 Dec 2023 18:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1702924687; bh=UwH7s0354QPlLK10QxpTBQyZVzJpGaWpf2/ySkvOVz0=; h=Date:To:From:Subject:From; b=ynC7Wc1CCWe/yPDvOPMH0EM8EJXTPbNIdOy+c8lMp73MUlZEN6ku8XWB7DBpXu6Eu NowxM07Qv5NnST1MXaHen3EtBV+f/jBmpNzsKDI8arqreEfChTRmwAzwFJ6CiQPbPf xBuGxVtXNQYK+klXObUQRJllxfxB/8AFo17cQTwc= Date: Mon, 18 Dec 2023 10:38:07 -0800 To: mm-commits@vger.kernel.org,glaubitz@physik.fu-berlin.de,chenhuacai@loongson.cn,tangyouling@kylinos.cn,akpm@linux-foundation.org From: Andrew Morton Subject: + checkstack-add-loongarch-support-for-scripts-checkstackpl.patch added to mm-nonmm-unstable branch Message-Id: <20231218183807.D389EC433C9@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: checkstack: add loongarch support for scripts/checkstack.pl has been added to the -mm mm-nonmm-unstable branch. Its filename is checkstack-add-loongarch-support-for-scripts-checkstackpl.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/checkstack-add-loongarch-support-for-scripts-checkstackpl.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Youling Tang Subject: checkstack: add loongarch support for scripts/checkstack.pl Date: Sat, 16 Dec 2023 14:40:54 +0800 scripts/checkstack.pl lacks support for the loongarch architecture. Add support to detect "addi.{w,d} $sp, $sp, -FRAME_SIZE" stack frame generation instruction. Link: https://lkml.kernel.org/r/MW4PR84MB314514273F0B7DBCC5E35A978192A@MW4PR84MB3145.NAMPRD84.PROD.OUTLOOK.COM Signed-off-by: Youling Tang Acked-by: Huacai Chen Cc: John Paul Adrian Glaubitz Signed-off-by: Andrew Morton --- scripts/checkstack.pl | 4 ++++ 1 file changed, 4 insertions(+) --- a/scripts/checkstack.pl~checkstack-add-loongarch-support-for-scripts-checkstackpl +++ a/scripts/checkstack.pl @@ -16,6 +16,7 @@ # sparc port by Martin Habets # ppc64le port by Breno Leitao # riscv port by Wadim Mueller +# loongarch port by Youling Tang # # Usage: # objdump -d vmlinux | scripts/checkstack.pl [arch] @@ -104,6 +105,9 @@ my (@stack, $re, $dre, $sub, $x, $xs, $f } elsif ($arch =~ /^riscv(64)?$/) { #ffffffff8036e868: c2010113 addi sp,sp,-992 $re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; + } elsif ($arch =~ /^loongarch(32|64)?$/) { + #9000000000224708: 02ff4063 addi.d $sp, $sp, -48(0xfd0) + $re = qr/.*addi\..*sp, .*sp, -([0-9]{1,8}).*/o; } else { print("wrong or unknown architecture \"$arch\"\n"); exit _ Patches currently in -mm which might be from tangyouling@kylinos.cn are scripts-decodecode-add-support-for-loongarch.patch checkstack-add-loongarch-support-for-scripts-checkstackpl.patch