Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp338378lqp; Wed, 12 Jun 2024 03:09:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUR8P9t+RoLAgMGbxRZh5M7J+Uv5jPnlRCv9gwtQpAri4o+AwX1+sAR9FNPMcBBTQhpToFEu6eKIJUIJWXHE0gkjaiOqRDai5uWIogHUg== X-Google-Smtp-Source: AGHT+IFaHRmv8Rr1vdT3lILjVdhI7lKp9glwiOfdaWYauWiowwnvcOfZ21f7LUiYebjr78zGY3eN X-Received: by 2002:a50:9308:0:b0:57c:947c:f9cf with SMTP id 4fb4d7f45d1cf-57ca975348cmr830368a12.11.1718186961164; Wed, 12 Jun 2024 03:09:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718186961; cv=pass; d=google.com; s=arc-20160816; b=JPodqhBUco6ST6fyHN22CDOVFT+eqaHa0KNJZSeOTqZ/SEFhfdwGQVBp4qYCtYAhPc LOJIDsbzNnVrt2MnoWESUk8vUnvTz6AJ9n2pieygfcig+gWJW8qagJ/Ioj+DxmchtyKU /0G27mrvpkm5y8wH/s2tcVar05/XQsU2EMy/FnPcFAJUbY/wPtt+k62Jsnn8J08soGFi mZuELEw1blXnpY2jiQ+KIbtIhegnJlf06zWAQhIdrEyGYMwFYh8pg1aEbuBhRcvRN15F HTib/9uMg1D63c7AioW3/j+LooShi3G+TFYRD4EPMbrFJwxBJVyl4aYuCQpzXpmgl/vo 4x+w== 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=4NV1RUD3ve28x6fczxn0+RvtHY141lPA7ObponZntjo=; fh=qiNtu2cWk68hYivofTHRibE3jmi7UziuUm6soyA9tIU=; b=DvffMba5IfNKeaIg16D46WMLRRxjJhrDDYumKA7r1e7h56PeihQy4NGGNDFpjjdKND SKEVVGwRjeJmvCXuA6XNCzkvo3E2x2lorrCf22tEO3FIj+B9KUevQ9Vc/MFll5Ogrw+k FO1+fWAf1VJJfTpmXTWyWWUW9VXQ7u7Q7JkMv/5ULj2WWTwnCXvgHtu1MhwYIIlQgluM kKXQecEqfhiMthBugoXxWF6Y+B1lyZW3w7r8kYVshTfrs9WMS+++w3jtf9OgKFZFQQZI HoLPoHRFKlNA0fQStn8HE79V5gjlep+ROIWPZiEAuo4kgh0ac832fBATBqXYc+QIvjnZ 7FoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=vzMRfhY8; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jTlIT4pC; 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-211328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c9c2473d7si1465270a12.256.2024.06.12.03.09.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:09:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=vzMRfhY8; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jTlIT4pC; 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-211328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211328-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A58881F219C2 for ; Wed, 12 Jun 2024 10:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4694C16EBF2; Wed, 12 Jun 2024 10:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="vzMRfhY8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jTlIT4pC" Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 9052316E881; Wed, 12 Jun 2024 10:08:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186938; cv=none; b=tERVmUqTp9lFbJBMnv+Pa5yMA7nTRgePhYy5oZ0sbYNbAsaHGujeT3IxXx10ozDwXVjRAHWUHvXqt+mqfdRW7sib+wt9SWKe+9PexTp75mKQ84HEeALO2VK/iIdJoviS764C1eaY8mQH+deBidDSxIlyld8a7YIPyhMTbUSVwkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186938; c=relaxed/simple; bh=kDKnbPN2HdEb0ASZjrHmYSVseFvVUKnuH39mFiiBr68=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=jS+v95moMPOJbQRv4Yck7aDN3x76VEs5bR0A5QO2J8dEjgPGo3Swj9jk4dfzvY/QpTFSuVV3ZpBylz//2GxWXmoQtHXdLU69lR8OsGAaGeSIYUFI2m5FXnoWirhUEJ2Rq1XNVLyL5dL7jaMSnPcOKGA4C5fxoyABWwsxlwF/kbY= 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=vzMRfhY8; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jTlIT4pC; arc=none smtp.client-ip=103.168.172.155 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 compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B3A6411401D4; Wed, 12 Jun 2024 06:08:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 12 Jun 2024 06:08:55 -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=fm2; t=1718186935; x=1718273335; bh=4N V1RUD3ve28x6fczxn0+RvtHY141lPA7ObponZntjo=; b=vzMRfhY8ZbaxC34eaW OUJ/XJKXR12u8+fg8LlsvPD89szTORzdYXxim8Xx4HkSMwjsmAVLONaZb+SzrXLr Z40suefOzJupm5FfgydmPRj69XHsMfQ9P8KsHhB8enuy7NwNFIoovOZ1wBfHS9p9 hcYrjZ6A/P/OUr5phyStjefg6GB+phrwd2xGAKixVXekWupF71nMQvsVKxD4bHDJ khKFzoKNrc4k0Fj39nZk9OcZG68P3DOZPD3RhRF2Mcf41ljUfz0v3w39lHSFKsC9 vL141PErK4HgIFnNNvuhQk99RRH3q6zGb3LqWMfwl9I52it414MapvyB1MWhfFGd PHKA== 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=fm1; t=1718186935; x=1718273335; bh=4NV1RUD3ve28x 6fczxn0+RvtHY141lPA7ObponZntjo=; b=jTlIT4pCXhfMLcMJ/OvH8p+etmINn 9djp5coQBWDgWcjqlhJKm5ceG0LH6fKwYPjCDE4U2s4hfT5DwMs5vwrLmXvYCf2G fLCP+rs7eh1F8CxoG032p96MHZWTHW1jBTHTi2r2emxf9GWiLMncRD5f60Wmncjt ZFDKPPSAkncMhuOcYuSv1gJ65IQMbR/iLUb0refiQ2RYLSUwq9XeMKI6UE7AwLFt 7TmVTHIyWBj07gpaDWq6ECk1zc/+VOjucKoe4YdMbG/IkafiMi3d8EJP2Ji7N9VE lbWYc/lSPX5rEBQKDRPbsAWrG9GY3sFr4knCYBFYPn7mHTC+VyOx3DOnA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeugfegvdeuueejkeejteek kedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 06:08:54 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH v2 0/6] MIPS: cm: Probe GCR address from devicetree Date: Wed, 12 Jun 2024 11:08:52 +0100 Message-Id: <20240612-cm_probe-v2-0-a5b55440563c@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=H4sIALRzaWYC/0XM0QqCMBTG8VeRc91imzmtq94jJNw80wPpZJORy N69JUSX/4+P3w4BPWGAW7GDx0iB3JxDngowYzcPyKjPDZLLC6+4YmZ6Lt5pZNwoVZtGq1JbyPf Fo6X3QT3a3COF1fntkKP4rj+k/iNRMM6E6LXtq2tjS3O3r21w3Xo2boI2pfQBMi8ZqqIAAAA= To: Paul Burton , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Serge Semin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1491; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=kDKnbPN2HdEb0ASZjrHmYSVseFvVUKnuH39mFiiBr68=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTM4m0saiFHVm7n7Naeo7y895vme2eH6VPOrt0gumNS0 owr53fd6ihlYRDjYpAVU2QJEVDq29B4ccH1B1l/YOawMoEMYeDiFICJZF1i+B9yYt/+aV7rzoaX /dpe1b/t2FnznxvnrHm4VWGTxnPx+bN4GBnumFtOFVDedOrm1I0CS0xlrjn8z+pbOY/v63nJuo2 3ergZAQ== X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This series enabled mips-cm code to probe GCR address from devicetree. This feature has been implemented in MIPS's out-of-tree kernel for a while, and MIPS's u-boot fork on boston will generate required "mti,mips-cm" node as well. Please review. Thanks Signed-off-by: Jiaxun Yang --- Changes in v2: - Fix probe order on malta (Serge) - dt binding improvements (Conor) - Build warning fix - Link to v1: https://lore.kernel.org/r/20240507-cm_probe-v1-0-11dbfd598f3c@flygoat.com --- Jiaxun Yang (6): MIPS: generic: Do __dt_setup_arch in prom_init MIPS: malta: Move SMP initialisation to device_tree_init MIPS: cm: Prefix probe functions with __init MIPS: Move mips_cm_probe after prom_init dt-bindings: mips: Document mti,mips-cm MIPS: cm: Probe GCR address from DeviceTree .../devicetree/bindings/mips/mti,mips-cm.yaml | 38 ++++++++++++ arch/mips/generic/init.c | 9 ++- arch/mips/include/asm/mips-cm.h | 4 +- arch/mips/kernel/mips-cm.c | 69 ++++++++++++++++++---- arch/mips/kernel/setup.c | 2 +- arch/mips/mti-malta/malta-init.c | 8 ++- 6 files changed, 111 insertions(+), 19 deletions(-) --- base-commit: 2b84edefcad14934796fad37b16512b6a2ca467e change-id: 20240506-cm_probe-0c667c8b63bf Best regards, -- Jiaxun Yang