Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp51122lqf; Tue, 26 Mar 2024 14:05:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvHc8bajOsppqUZM+URkRx0Co1O4b3MEwVypd2VkykYFL4S8Foc+oftMNfi5yropxbptvhTLB+gZfXwUUiS0wLay2nQ0Uv8ISh8l9bOA== X-Google-Smtp-Source: AGHT+IHM7yj6y5lsN2G1e/PIA5Zye4sxWcHKblpmpJyeT8hCEDklhGv5tp1mUePs+xR6/zQUYXH6 X-Received: by 2002:a17:90a:a403:b0:29b:d748:fae5 with SMTP id y3-20020a17090aa40300b0029bd748fae5mr2110435pjp.32.1711487107487; Tue, 26 Mar 2024 14:05:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711487107; cv=pass; d=google.com; s=arc-20160816; b=O98R1rtxIwOIG+iC8iCxHwsR6059ICY/zm7AnHEx5/ruOKFlg3uWvHcAB9gnwAwSjm DKLZLcYbxJwAMuEK0ZfKwbr2z6iA/nzArfDTl8c9cKCnhTKYtHHepZCrv0fe2HRVo/ez PaCi7K8Rf3aoYDx3sRPscSxPxcRQU82OHlJEM2Jc6RYSFBwa9my8OmpZ0tL+9JWcE9P4 w9STdEMEMAy5n1j2glvIZsISLpk+eHOjAVCAUkShAMqbYxewP4dEd7DP5Sb9Vy1ERM23 N2wGs63/4XaZQ4myEwoivjoqMaoDVvXpaXeWcgl7kiHWLHOivgpKuok9MRlbGxf9R+LF BrIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :feedback-id:dkim-signature:dkim-signature; bh=HssF6jxDOo9gWplv7ETpFdcCAQiZ2CJEi3RcbG0EW2w=; fh=Dii/wXcZb/mJUCmsdlZbBl/o0XRcaQ9S/xOY9NGTLc4=; b=bowBo4ZRyoQMTTaVqRKvstj6DEZCs5DDtBalVHsZouUzD0maGHrLhyRJYlwShrVh0g 5r96btl+w7DOMOEhHcX3PQ4ihbgJu8lOGXw3bXlM8uBA5ptSRNTC5aE3wQ4Wm0wMYe6r G9WSed4qWo4NyvKLc2DB/CxXz4tivukh1em8kyvAUcm679NqTcmxwsV9oNcUEbEkf9nD IEapzsQvP7EF4IeqWGYs3M+iW+bBmzZUFaUx/LOs4l6T36KtclTuEG0yKbon11T3/bT8 +Gs+w40ljpnt7HBK8+o7DXF2kXYiH05FvJv+2yOEi0dU+fGQLiJnLSL9Y83tQf5pBYVD XGrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b=RKedk3Wo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=PwuWUQx8; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-119931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bt4-20020a17090af00400b002a07c1d4551si37136pjb.184.2024.03.26.14.05.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 14:05:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b=RKedk3Wo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=PwuWUQx8; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-119931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C3764B233F4 for ; Tue, 26 Mar 2024 20:39:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D9C013DDB6; Tue, 26 Mar 2024 20:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="RKedk3Wo"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="PwuWUQx8" Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 AE70113DDA1; Tue, 26 Mar 2024 20:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485338; cv=none; b=RQQn5uOg7Q62x32tahC0TUtQpOttevfvkOfuaVsEhWkWtOAeToyCn3nSGb37eC+8lm6dC5eaxddCrA9XuDTiqfaA2ph1+zTsWWSDx/tdUIOcuIkOUIGILtnQTucbMfG+WO1YTQD6dyDHUpTI0te5qPLgYLqL/uCWp4kGjsgyeoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485338; c=relaxed/simple; bh=PtOUXMjzXjX7s5GqUQPaos1/0Du7txixWN+eg4H2I80=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=spgkE2FGOzKnU0cMZEs9BhuQJEi3bPGFILmNWooy8Xbapm+h7cCaCJoJq+JgfIo502wHB0Bsxug7gaPyDUbrupd04d8SjD16QoDyX1lEoI+8ucmbUXKaJLtSNgqTsRUnF7F+OxQHTXJXKq+GH1itCsDchpgHv/vSp9rop5bo6/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=RKedk3Wo; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=PwuWUQx8; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B9415114013D; Tue, 26 Mar 2024 16:35:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 26 Mar 2024 16:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1711485335; x=1711571735; bh=Hs sF6jxDOo9gWplv7ETpFdcCAQiZ2CJEi3RcbG0EW2w=; b=RKedk3WoMHjqBfj7/p vBUjbsxhHGGfFv4DoyvH3VfZh/UBpLEGJiu+58c9TYtRpFX6Bb1m7j0Ne1dcbZQn KqFNiYowDx+XFwrIxu9KtBfKPWTpbeKONw51w3vEVdZtVlgs0i3ix7zxcCDQJzjE tLIm5yYmaC0VWYnJEON/w7LccNVi5qbbFD1TOUFkt8ZXcVSiEAWW6DGsWnbRpDW4 30CkhG+i1JlfS2u+rY2t1NweZc8v4bZmymotYut83y7A0w53zFoKL20N8FUz+D8s nMS8C9QEC8TaNndQY+RUeGbzwkaVviL1BOC58aZrgVJaZRpV4hp/iRjVaGTCBRgg Ks8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1711485335; x=1711571735; bh=HssF6jxDOo9gW plv7ETpFdcCAQiZ2CJEi3RcbG0EW2w=; b=PwuWUQx8ZXqWZwtbF5DUnYgDsCO3b WPWaKvr++6CGXgSugR6+HNCZdknJBjA09SVCaH5oWTub0cwHyz69hA+gAYiAdNH4 DWpEeGTmsuxm5TnVoS2YQGTVixSVh9Bg7tP7IzspUvIffxu2gii6HMgOwEwWIHeC RQs1q1IvPsBeTCfa2Nx5xxrRymqxRL+XIqnhJ3umUfN3bbVEzWYloxTOJ4f7Mt0G Ug0WKS6RT6Y5v+BTfVeFpxVXMPU6rbw5litS/50UrEd+rNtX2BhS/kOE1lXV0Qie NInPllQ3MDjGUul4Oo8gIqx9pDkzDyW2EdnkRyz/Dpdj7WJ374hv2+4gw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddufedgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhufffkfggtgfgvfevofesthejredtredtjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpedufffffffhueehvefhgfelveekueegteefgeeiieejheefkeeh keevudevieegueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Mar 2024 16:35:34 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH v2 0/9] MIPS: Unify low-level debugging functionalities Date: Tue, 26 Mar 2024 20:35:32 +0000 Message-Id: <20240326-mips_debug_ll-v2-0-b64abc76f2a1@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJQxA2YC/3XMQQqDMBCF4avIrJsSx6JtV96jiMRkogNqJLGhI t69qfsu/wfv2yGQZwrwzHbwFDmwm1PgJQM9qLknwSY1oMSbLLAUEy+hNdS9+3YchaYKLVHelQo hfRZPlj+n92pSDxxW57eTj/hb/0kRhRRVIcu7QmVM/qjtuPVOrVftJmiO4/gCcNktv6wAAAA= To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2517; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=PtOUXMjzXjX7s5GqUQPaos1/0Du7txixWN+eg4H2I80=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjRmw5nOudsX1oSIXk5LP6czIaUnbNLivG9Rk2P1Ep+Lf N1rlpzTUcrCIMbBICumyBIioNS3ofHigusPsv7AzGFlAhnCwMUpABOp4mRkeLF1heDPgjrb44JP eP5cOjJJZ6bv3rNLD+8qeXYmwXXJheuMDH8UFxnt5tl35z2HxrZL7wNPCnNt+B3j0+d4zzviyuo NXAwA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This is a attempt to bring all low-level debugging print functions together and provide a arm-like low-level debugging interface and a further capability to debug early exceptions. This patch elimiate platform specific early_printk, zboot printing functions and cps-vec-ns16550 by newly introduced debug_ll. Hope you'll find them handy :-) Happy hacking! Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (9): MIPS: asm: Move strings to .rodata.str section MIPS: debug: Implement low-level debugging functions MIPS: debug: Hook up DEBUG_LL with early printk MIPS: debug: Provide an early exception vector for low-level debugging MIPS: debug_ll: Add Kconfig symbols for some 8250 uarts MIPS: debug_ll: Implement support for Alchemy uarts MIPS: debug_ll: Implement support for AR933X uarts MIPS: zboot: Convert to use debug_ll facilities MIPS: CPS: Convert to use debug_ll facilities arch/mips/Kconfig | 12 +- arch/mips/Kconfig.debug | 240 +++++++++++++++++++++++-------- arch/mips/boot/compressed/Makefile | 9 +- arch/mips/boot/compressed/dbg.c | 39 ----- arch/mips/boot/compressed/debug-vec.S | 3 + arch/mips/boot/compressed/debug.S | 3 + arch/mips/boot/compressed/decompress.h | 8 +- arch/mips/boot/compressed/head.S | 6 + arch/mips/boot/compressed/uart-16550.c | 49 ------- arch/mips/boot/compressed/uart-alchemy.c | 9 -- arch/mips/boot/compressed/uart-ath79.c | 2 - arch/mips/boot/compressed/uart-prom.c | 9 -- arch/mips/include/asm/asm.h | 2 +- arch/mips/include/debug/8250.S | 60 ++++++++ arch/mips/include/debug/alchemy.S | 46 ++++++ arch/mips/include/debug/ar933x.S | 41 ++++++ arch/mips/include/debug/uhi.S | 48 +++++++ arch/mips/kernel/Makefile | 4 +- arch/mips/kernel/cps-vec.S | 16 +-- arch/mips/kernel/debug-vec.S | 194 +++++++++++++++++++++++++ arch/mips/kernel/debug.S | 130 +++++++++++++++++ arch/mips/kernel/early_printk.c | 19 +++ arch/mips/kernel/head.S | 4 + 23 files changed, 756 insertions(+), 197 deletions(-) --- base-commit: 084c8e315db34b59d38d06e684b1a0dd07d30287 change-id: 20240326-mips_debug_ll-ce72fee1b6a2 Best regards, -- Jiaxun Yang