Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1353444rdh; Fri, 27 Oct 2023 11:32:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4JhLHOKftgJtwvXiW9VzKJh7W42roWGqBxNPQpSpeXFrxcjL1eKa4LDbQAipAmOJkCcLd X-Received: by 2002:a05:6830:2693:b0:6c4:9852:a498 with SMTP id l19-20020a056830269300b006c49852a498mr3991622otu.4.1698431525965; Fri, 27 Oct 2023 11:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698431525; cv=none; d=google.com; s=arc-20160816; b=c70OWGIKGEasATI3DbiaII/7M5MwvsLT7qeKIzX94nRg1RNugX4SKr5QYUPwrn1oi9 n0bPaV88fm4efCi+PDn83wyjjwjs1PScrDBvasr/8kM6Bkcr972HW4nkPW9Ys+zcY17m 2RNa/E3Eyh/HCfu9SZk9eIqmPwbVMrpI0+AKN0BXj8dEqALqMcStvC6TPEKJmkA7mjqU aNz/CMSEououxZ3yNXUpRlX7XvAgwMUZ2mQw50OLdav5qPaqED456WdfjV3a2ISf0+YS 3nOTCsgn6cqaAJmRcTWKxmSftAuplBKSSGhEM3EU3NUV7bo3Jx7V55VPtNL+PsVQPOGq IvTg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=SX5fl+EhwuJvuJSgszNvKWpCysGddZbGyxPGegx2anM=; fh=2THP7SIVSTHYjaZ+qoFRou3s/8abGq7E8rX+Q6jzkpQ=; b=z6rsMe2Oq5b3vgrlqlGY7zHca4X3B/WI926Eoc9vd45LBdfCD+/hm40SksQ4mPj/F+ R6k1lpxnGwZmdTYLstDyoc7IiDxRp9vGlhmqnK/mvIIuy+UonY5AFyxDYPNv5EtDOLPV hnS0swZliQm7BHwNkV6HLcfzNIq1Bkx/B0Z3eGpDQ4ZXH700kpIyvTBzw9BAp1DOV70t g5hJJvCch8ZWkMmkNbHWoV1kllghX9hZ+u1tgyHqnrRTQoiGVzWNczb+HLPDQYGCwKsI dijqES0uec2pLAUdsbjHkxjMafLIzuN6VKelc9T3jyG7TAx+61D/Jo/QQiqjf2DBu5Yr xr/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=jFRAXDUu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fwk4pn7W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c126-20020a0df384000000b005a4d521ff80si3261241ywf.569.2023.10.27.11.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 11:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=jFRAXDUu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fwk4pn7W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 005778028B84; Fri, 27 Oct 2023 11:31:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346337AbjJ0SbK (ORCPT + 99 others); Fri, 27 Oct 2023 14:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235142AbjJ0Sa7 (ORCPT ); Fri, 27 Oct 2023 14:30:59 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D503AA9; Fri, 27 Oct 2023 11:30:23 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BDEBA3200A13; Fri, 27 Oct 2023 14:27:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 27 Oct 2023 14:27:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1698431230; x= 1698517630; bh=SX5fl+EhwuJvuJSgszNvKWpCysGddZbGyxPGegx2anM=; b=j FRAXDUuK2CFPQX5/xA0kUTtyU567S0snECMD+OHTNcU8aQCUTpOb9inZjuSuKJvd zGvLRA1OFzH1Y5NZTXse/wulq+xgRyWzBvnmxITUUOlJBAMIhCAlECE/qu6ntzrn F3nY1dvVHx3m+YB6DaLmW5xNJvPmZbMyTTC8fxLv5OOqqgWywO3ANEftOLW22kIm HS+QPnl8cxWrGk5zgI9JYpIk2cy6/Opf/ecV0oQ1otlikweEgKE+esZRqbId3BSW iWdp0imEGPBt+5DXXDOfksjtacbFfWqY3hwRRyEHKUVx1Iej+fBhdFRfjlggETmx F1E86efsjDfbTsD4hvixg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698431230; x= 1698517630; bh=SX5fl+EhwuJvuJSgszNvKWpCysGddZbGyxPGegx2anM=; b=F wk4pn7WFZEFlB6XbJ3pn0TwDefOr50L7wsw59vOtX4b5fWI0awk4sVgWYr4DMKyC +uDiOBSgBZxlPTTMXSvtslyXP+FptDNdGSrS89LvFb5OdfmGZ9boOsiZDskflHSM erxHbOOQaVebV/950eJ0A2jhVhlXce95GQddvpTsNn7F5qkZIsv3W8d0fcqTA1zk R4U35v+iZwkLAqN2fkk3lXnx4dwEyniCY1mEwiq6v+PtMGq1bdsXP2D5CWkNNu3W 0lrbF8+fXDvEc/WT7e+EQQV6QW+QDN1iSZNQXtEO9NkrYQChkVDaWL/ptnExaKM3 hJLNelkDszevOZcTWlBmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeggdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepfeeludefheegvdeuvd dvgeekgfdvtdettdelieeihfegtedugeekhfdvhfejfedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhi hgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Oct 2023 14:27:08 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, gregkh@linuxfoundation.org, jirislaby@kernel.org, Jiaxun Yang Subject: [PATCH 0/3] serial, MIPS: Add MIPS UHI semihosting support Date: Fri, 27 Oct 2023 19:26:47 +0100 Message-Id: <20231027182650.281405-5-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027182650.281405-1-jiaxun.yang@flygoat.com> References: <20231027182650.281405-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 11:31:25 -0700 (PDT) Hi all, This patchset adds support for MIPS UHI semihosting. It has been implemented on many debugers such as MIPS CodeScape debugger and OpenOCD. It is also supported by QEMU's -semihosting option. I didn't add MAINTAINERS entry for this driver because I find other simple earlycon drivers don't have one either. Do let me know if it should be added. Thanks Jiaxun Jiaxun Yang (3): MIPS: Add header for UHI semihosting defines MIPS: zboot: Add UHI semihosting debug print support serial: Add an earlycon driver for MIPS UHI semihosting arch/mips/Kconfig.debug | 11 + arch/mips/boot/compressed/Makefile | 1 + arch/mips/boot/compressed/dbg-uhi.c | 11 + arch/mips/boot/compressed/dbg.c | 4 +- arch/mips/boot/compressed/decompress.c | 4 + arch/mips/include/asm/uhi.h | 309 +++++++++++++++++++++++++ drivers/tty/serial/Kconfig | 13 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/serial/earlycon-mips-uhi.c | 85 +++++++ 9 files changed, 437 insertions(+), 2 deletions(-) create mode 100644 arch/mips/boot/compressed/dbg-uhi.c create mode 100644 arch/mips/include/asm/uhi.h create mode 100644 drivers/tty/serial/earlycon-mips-uhi.c -- 2.34.1