Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp136851lqj; Wed, 10 Apr 2024 06:29:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTFmU0n45Jgc641a6TYi5zlSJFpHeB+6PXpQTMotRZmDbFbzhrP3BI5uHK5fTSQua69Tn5q5dvoyGkZXqCI8GMnsz4gaAZDnduSWRe9w== X-Google-Smtp-Source: AGHT+IEgzze83FJfS8PhuPGaHWqk5rN9XT+6kWYq4m4C7zdo8UtijhLgzQ/yw58IKHldhSBVGbv2 X-Received: by 2002:a05:6a00:1916:b0:6e6:fb9a:fb45 with SMTP id y22-20020a056a00191600b006e6fb9afb45mr3678750pfi.1.1712755769065; Wed, 10 Apr 2024 06:29:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712755769; cv=pass; d=google.com; s=arc-20160816; b=V5o6EZj20/dgHs7pNH9i7Dt96wVG5nLZiKKMNJbcSAH8oAD/F6wSiv8DMaq5yYfhLd mHCDvy1CKUhz5KS1vJip51NOeSZX9SRxNLyV0xsbsGlO/Ie+ZWpT8bgD5wLte68FmiWl m/WPcBqMvH95hMBmOhiurLHrAchyLpVtVidM86ttXYoRcxrTQAwoMxyp275oKABBJDU4 vucnBvrxxEPv7kwaM5/yVLvNvfxnY4e79yULqRkDh4+XEv4L+C3tGHcP9we7DQtzlGfD rFbUVz3wBYJRvcIEvWE/oclTTlUT+onb2BaaNvZec9a2/eSkhGaZlggEshfDiQhNGSKy kgRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=F4XnMvKdqRjwv706YE4mJKciVo85TDNHEInSq0s0ahI=; fh=y7VKX694VLH2eb03/y0ljujQLJGtNdYVa6lu5bfy0Mc=; b=vFdyLN+g6whTU5RvIIUUyx1+t1ex4G/yxWDouEbtavS9aqdwVagOoVFx29e/FDr64K h6GWIF6skogEE8gPL/qwHnnOVbrWjTcLx69TxiDwWjP0CueB/fdVWhrXnO47GM9zE1m9 xDY7SGoFf+ZYsNGArsSDdjzQa2njPnQvVpLPndA+GbaKRoEJBECH+MNBH1hOtMH+OEj5 z7irBVSd+FfIm6MWMpo7pvIsw8ZStnGghGCJ5fSycu3tDRb2Md4KfMWBx5zYsKMhxP6k Tjfyd6n/j2Z7XgEwgljy6e1R5AmGMi0HIPL2WnWXP4KnRtWfMBvUKdPEGdcK3CSstZ/H 5RCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138588-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138588-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y30-20020aa793de000000b006ece3da5268si7368391pff.391.2024.04.10.06.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138588-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138588-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138588-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A86C282AF3 for ; Wed, 10 Apr 2024 13:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D31216D317; Wed, 10 Apr 2024 13:20:32 +0000 (UTC) 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 A5FA6158A0E; Wed, 10 Apr 2024 13:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755231; cv=none; b=slzXO5fOXOss3BJHRoDtNLJ32BG7Ws56ehgMWHmEukI+AMjfPuSlzcKUKNH7Im74CXC1dXGbSFmmLBXIifqPCvHLsDAZQcTzl74/CHdWqzxB6dqpWQ7PhJetexUqef2t4A9K8GH0f7vLx/vGgFX9rMcAIY4MqSirA6dj20BXBZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755231; c=relaxed/simple; bh=frXcCQMlx8RE8Bbo8U+apyurjJdqHMgkpVKzPCvQcCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZEYVVI9j64iotDLPyAmnBJ61X0nWuNkvlBpBosXxho6eO5KTayGy0Lp15ZIKBP5PsN0AGOC6AOs+UgiUtUhDDtPpJHqTxc4O2s8NhmXxv76DAasqwIhYsku/tB+mL0OvwDHvxikchy/UrJDoD0KGLuIdolLf7/GBCuerKF9c4eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6961AC433F1; Wed, 10 Apr 2024 13:20:28 +0000 (UTC) From: Huacai Chen To: Huacai Chen Cc: loongarch@lists.linux.dev, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Huacai Chen Subject: [PATCH 3/4] LoongArch: Update dts for Loongson-2K2000 to support PCI-MSI Date: Wed, 10 Apr 2024 21:18:03 +0800 Message-ID: <20240410131804.2165848-4-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410131804.2165848-1-chenhuacai@loongson.cn> References: <20240410131804.2165848-1-chenhuacai@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Current dts file for Loongson-2K2000 misses the interrupt-controller & interrupt-cells descriptions in the msi-controller node, and misses the msi-parent link in the pci root node. Add them to support PCI-MSI. Signed-off-by: Huacai Chen --- arch/loongarch/boot/dts/loongson-2k2000.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/loongarch/boot/dts/loongson-2k2000.dtsi b/arch/loongarch/boot/dts/loongson-2k2000.dtsi index dcee9f3783fd..481c6c869a8b 100644 --- a/arch/loongarch/boot/dts/loongson-2k2000.dtsi +++ b/arch/loongarch/boot/dts/loongson-2k2000.dtsi @@ -116,6 +116,8 @@ pic: interrupt-controller@10000000 { msi: msi-controller@1fe01140 { compatible = "loongson,pch-msi-1.0"; reg = <0x0 0x1fe01140 0x0 0x8>; + interrupt-controller; + #interrupt-cells = <1>; msi-controller; loongson,msi-base-vec = <64>; loongson,msi-num-vecs = <192>; @@ -147,6 +149,7 @@ pcie@1a000000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; + msi-parent = <&msi>; bus-range = <0x0 0xff>; ranges = <0x01000000 0x0 0x00008000 0x0 0x18408000 0x0 0x00008000>, <0x02000000 0x0 0x60000000 0x0 0x60000000 0x0 0x20000000>; -- 2.43.0