Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2415771iob; Sun, 15 May 2022 18:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcP9DNHzYeLTFP5b8YRWPyzm839UGb147lz6DK2hgwY5OGj7gURzOZWhzUjLVpdqUVhmeC X-Received: by 2002:adf:fe44:0:b0:20d:412:9775 with SMTP id m4-20020adffe44000000b0020d04129775mr4432524wrs.626.1652665844125; Sun, 15 May 2022 18:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652665844; cv=none; d=google.com; s=arc-20160816; b=ZNrlq12jIB4MYpif37RPBv6vaKkh0U0o31b9+zB9QK9bnlZ91e36tEx5jQMIWbHdza qH9U8mnlkg6ZUSCr0DBR0wJnupeioHflX0FsaE6e1yYjNE9Z3YsnGIwJ9eyGbU+15t8y 3zP/RdE4rU6DXMLsrF7FiOHrKM/HBFF4GOAy7G6Xb1uKzyTTn+0S+tAFVdLtLyQxwhcn jgjt+vSTEUbCu3P2mpwfHAXGQAvTcCVTG45jR4hU6KhLPFTSfOqMyseRc7t1r53i0mVo JLt2wyeDc2SEPtzm26q1BKleg2ZyQ+JXDddoWEUdwbjJtHjJKwFJ2uLn1laZqBzW6yJs K5TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SoSVqrmvn2LTvpErY37d/oYpaiKVTE0WCluZ3+lQIsg=; b=0YbNqx0SXUiC+Hs+oq8DGdExXDa7IKiZta5w8c90sUrYnQCmBhNob86mpFTYNWheQZ NapbqB4GikvGznwIPLL+6ncHhh9jPAN7ib5Om5T5HwQ1Jk9KRs4uF6AeC70stRsJH2Ue oubJMe7UuwjC5v/foYo55nEmsnVZ8BKNuF+0L4mcKZs26betmb8nZKoTgEc7gJZOqQzT EuAXP1ANIUYbtrPxbW8eZjJ0ULuWbLEHRZeP6+uHMH8MVXGTdtIMH73ercJkQynzg6TD m7krzdwOccDj+F9UyC9Y6L04GqiJYWFVCk1vXc8Yw3tfODOV6dot0XeIfVl/5oUuqMUb 26vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=xKnEcxew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a05600c4f5400b00396fee62511si3548545wmq.139.2022.05.15.18.50.18; Sun, 15 May 2022 18:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=xKnEcxew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235526AbiEONfy (ORCPT + 99 others); Sun, 15 May 2022 09:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiEONfx (ORCPT ); Sun, 15 May 2022 09:35:53 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1DCF2726; Sun, 15 May 2022 06:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1652621746; bh=Hev/2LN/s86tH2jvoSI5c8Y1OZeqme4qP1VdhTqd2/Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xKnEcxewoRBdKZc2HJt8887GvdDDvi+ddtwVnfIPSp3sx3FL9+wfbSwhhRnDWyXi5 CKl0RnT93rk7CK+mOmKl8Zl8OLbYDL8N2y84YWhblmPt8AftlCPqx56mePym5sF1Ew uerh7Jb4hfWoVa+qnBiTe8/oZvCFez1ZL9oDraZc= Received: from [192.168.9.172] (unknown [101.88.28.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id A81D7600B5; Sun, 15 May 2022 21:35:45 +0800 (CST) Message-ID: <8bf80bfd-7d49-a82e-22af-6b67ac80d0fd@xen0n.name> Date: Sun, 15 May 2022 21:35:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0a1 Subject: Re: [PATCH V10 18/22] LoongArch: Add PCI controller support Content-Language: en-US To: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds Cc: linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell , Jianmin Lv References: <20220514080402.2650181-1-chenhuacai@loongson.cn> <20220514080402.2650181-19-chenhuacai@loongson.cn> From: WANG Xuerui In-Reply-To: <20220514080402.2650181-19-chenhuacai@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 5/14/22 16:03, Huacai Chen wrote: > Loongson64 based systems are PC-like systems which use PCI/PCIe as its > I/O bus, This patch adds the PCI host controller support for LoongArch. > > Signed-off-by: Jianmin Lv > Signed-off-by: Huacai Chen > --- > arch/loongarch/include/asm/dma.h | 13 +++ > arch/loongarch/include/asm/pci.h | 40 +++++++ > arch/loongarch/pci/acpi.c | 172 +++++++++++++++++++++++++++++++ > arch/loongarch/pci/pci.c | 98 ++++++++++++++++++ > 4 files changed, 323 insertions(+) > create mode 100644 arch/loongarch/include/asm/dma.h > create mode 100644 arch/loongarch/include/asm/pci.h > create mode 100644 arch/loongarch/pci/acpi.c > create mode 100644 arch/loongarch/pci/pci.c Admittedly I'm also not familiar with the PCI code in general, but from what little my knowledge currently is, the changes look okay. (At least the code style and naming of things are reasonable.) So, albeit a rather weak one: Reviewed-by: WANG Xuerui