From patchwork Wed Nov 22 18:24:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13465351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B68B8C61D9B for ; Wed, 22 Nov 2023 18:24:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 491E16B062F; Wed, 22 Nov 2023 13:24:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 442126B0630; Wed, 22 Nov 2023 13:24:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E3006B0631; Wed, 22 Nov 2023 13:24:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 199DA6B062F for ; Wed, 22 Nov 2023 13:24:41 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id CEB83C135A for ; Wed, 22 Nov 2023 18:24:40 +0000 (UTC) X-FDA: 81486415920.15.C21DA82 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by imf29.hostedemail.com (Postfix) with ESMTP id DC5D812000C for ; Wed, 22 Nov 2023 18:24:38 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=W7pp+KmD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf29.hostedemail.com: domain of fancer.lancer@gmail.com designates 209.85.208.173 as permitted sender) smtp.mailfrom=fancer.lancer@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1700677479; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ygdtXD6vQmhTkyIIFbEZLW4cEgmK3nTQybwd/aOy/dw=; b=LdqptRNkCSiupHnjaKGnjLH8IxIwRa600/qL1aC524tALLC87SS6HJqjNjW8j6B5kVxKt4 x+ymUTOwk9Vyz1xMBsGlOX3oKMX0aJG+QtimXlU44NeD882Ab8COL4aElIYlYGkLeKACu/ FgduPejF8fyvf5YVCXFLA+vUvKYCHtg= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=W7pp+KmD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf29.hostedemail.com: domain of fancer.lancer@gmail.com designates 209.85.208.173 as permitted sender) smtp.mailfrom=fancer.lancer@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700677479; a=rsa-sha256; cv=none; b=sVnLVCuXTOdxbXi57FWrjJYvDKULmSXRWOE6Ui2X/BNY5Vwh3zxO57+JkmFqPP2N+nDA+g gYeI4IMRosfrorM/HmCiO7d25IuUvrQgLLj2JqgOgpiwjo01aoyHMqZUmm9avGGZEtwtB+ 66OHZvwBtGT2aQS/eRnUGXDkoAXQl3g= Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2c5056059e0so893181fa.3 for ; Wed, 22 Nov 2023 10:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700677477; x=1701282277; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ygdtXD6vQmhTkyIIFbEZLW4cEgmK3nTQybwd/aOy/dw=; b=W7pp+KmDIwoEqKEGa/Gdn7drKnjUu5458Cw9eSUIOSyaDM5geo+fajZW1mb72+zObd QHmgBkyrnMocIa9pGHdWAOsRKYS3Hq4e1d13dkRqTTgOa1oLQ0qt2hNyq3wfkUrxEPKA nS736UStVmolPJ6UbDIN6UizKu0yR5hwsi5KxjJyLcYjT+SnexC3CGHl2bGn9qS7AScY HqLfpIHRf/dxySHs2G51ICw1fDwT/Mg2PcP+9mNHO9duPC8KP70hY78sZpmx2IReEixd Ousp7K7QaR2LbfJs65cwNGg5/+NKh35g2B+Xf7Gql8ncemh3gEOlhppoWPeVq9y+e9qw rF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700677477; x=1701282277; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ygdtXD6vQmhTkyIIFbEZLW4cEgmK3nTQybwd/aOy/dw=; b=Evxw3gUjOlDeUGt5AipOvb6V6/FzhkB1IC3pmgunRIvheHMpac7+3+SUBis98jztP3 IGmFUX6T2NTAWTpD4S+DOYCiK46haZ9pwlcA9JtdJl1AD4VnUZHafPsgI+0MQuPjySIk StPSy8eF0fxNHencjbIoSs2bqcb7TvZzBow4CJVrWbZjDCIUy8FwVJRNlA5Vjbv2AvjH 7pW2fneGx7nB29+QfT0Bp0BFSr35RnBXrAxv/7/HKgW/axwfFWFW/xS8l5Svc51ldrtY iB4Y5uUfH2N34FHljyaZ0nfZtz6PTrFjNqD8uVJOKgCs1EHzXWnO4XRgQm/kDKch8V2y wjaQ== X-Gm-Message-State: AOJu0YxyRZO7xc3Vke/PJzrJvs3H2ZTOfclcZwFWyM5zdLnR+GCE7ojJ iZVFoGP7813fwIjV58qT/No= X-Google-Smtp-Source: AGHT+IGOQXheOS+Gt4rJnqKjpbv7GijHFeJguvjzbMNW2BiOOY31AXGILBqTgE/H996cdvS6H0FlrA== X-Received: by 2002:a2e:9d54:0:b0:2c5:15dc:ba99 with SMTP id y20-20020a2e9d54000000b002c515dcba99mr2236124ljj.51.1700677477316; Wed, 22 Nov 2023 10:24:37 -0800 (PST) Received: from localhost ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id w5-20020a2ea3c5000000b002b9e5fe86dasm11422lje.81.2023.11.22.10.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:24:36 -0800 (PST) From: Serge Semin To: Thomas Bogendoerfer , Andrew Morton , Mike Rapoport , Matthew Wilcox Cc: Serge Semin , Alexey Malahov , Arnd Bergmann , Aleksandar Rikalo , Aleksandar Rikalo , Dragan Mladjenovic , Chao-ying Fu , Jiaxun Yang , Yinglu Yang , Tiezhu Yang , Marc Zyngier , linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] mips: Set dump-stack arch description Date: Wed, 22 Nov 2023 21:24:05 +0300 Message-ID: <20231122182419.30633-8-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231122182419.30633-1-fancer.lancer@gmail.com> References: <20231122182419.30633-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: DC5D812000C X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: jgzz7uz5racf4ssct5zj546uxhswzuhg X-HE-Tag: 1700677478-277459 X-HE-Meta: U2FsdGVkX18Qu/cd87CvYtrDg0wIuOjC7/f+WQBinbJE2WH1faUhLqpQnVxJPq4dk1+5hpt9pEMrGu53mBpGPAEDOtWNL3Yp0eXDhB4NdUSwKQgasBD8FHlYtEVdAt4pVikw9BpY7//ZfKWAD2WXv5OeXOjt8Lh1+/cVJIH2R+ZuW8hCMVm5WfcPMowBd9LIfS1yp/CpbhBVJMR3aH1XHRAyqomSpIRhMefcveS7FVn4+3DlvQ9O9WiwePX7YtmtFV3kvc82CBvdlxaEO7rLKmWvSop81U1ikvG+sff7CQes7YoEgJsrylSfiLkb286COQNQ4Ue6cJL2MGSjlXNG+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JzAIbeQePSnkoK5YN10UegDHpQwfs2SajhDhtk1lZ9gQS1bvU6FPjkj9N5u7e81lpElmalsmGm2SemIpLNQCYS48h5T66BGvwP59tKU4N6myiL7t+5yh3UNIcThR7Qdvbn9DmwC20N5/q3ns3+IJWwedMRq+ILAj0qdnatvKt6h0Y X-Bogosity: Ham, tests=bogofilter, spamicity=0.000014, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: In the framework of the MIPS architecture the mips_set_machine_name() method is defined to set the machine name. The name currently is only used in the /proc/cpuinfo file content generation. Let's have it utilized to mach-personalize the dump-stack data too in a way it's done on ARM, ARM64, RISC-V, etc. Signed-off-by: Serge Semin --- arch/mips/kernel/prom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index f88ce78e13e3..6062e6fa589a 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c @@ -28,6 +28,8 @@ __init void mips_set_machine_name(const char *name) strscpy(mips_machine_name, name, sizeof(mips_machine_name)); pr_info("MIPS: machine is %s\n", mips_get_machine_name()); + + dump_stack_set_arch_desc(name); } char *mips_get_machine_name(void)