From patchwork Mon Mar 1 07:38:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12108861 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A5AFC433DB for ; Mon, 1 Mar 2021 07:40:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA7CF64E38 for ; Mon, 1 Mar 2021 07:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbhCAHjW (ORCPT ); Mon, 1 Mar 2021 02:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232555AbhCAHjS (ORCPT ); Mon, 1 Mar 2021 02:39:18 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92383C061786 for ; Sun, 28 Feb 2021 23:38:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=pTg7XeV4HygMYuhkzRp456cK9V+Vvbulc9It/FI5o2M=; b=NJcHmb34FR5ZCfn/tiwkLSR82S AxXVYuAelz7cTk9/otfDEgRl64RKjpphqwXm3OCybWLRqbqUR+1IKx3w99Gj1pkPs7bNOjd1zZ4ys +8VdT9cKh7QaWzCkkHW58//sAst3gadBdD0XH7ZhMg8hG/nH5o6NCt5mWENKo0QHqMQccVGSUOfSa 7Ipb+mug1swpCnx1NufU3m4lt4T2mX8eCAQkWTmfSoZ8XCGTP6tglPdLXv5XPKBMPFNGsWOUcxzil k4n+QBeIyREz9bBEZpntWtPdn6VitZPKER/83i8hg63Cyr3GFVKLD7VHPGZCmuLalbJuMin9DfKTo sozBibHw==; Received: from [2001:4bb8:19b:e4b7:cdf9:733f:4874:8eb4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lGd8c-00FQlZ-Cd; Mon, 01 Mar 2021 07:38:43 +0000 From: Christoph Hellwig To: Thomas Bogendoerfer Cc: Florian Fainelli , linux-mips@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 1/3] MIPS: pci-ar2315: include for phys_to_dma Date: Mon, 1 Mar 2021 08:38:30 +0100 Message-Id: <20210301073832.919371-2-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210301073832.919371-1-hch@lst.de> References: <20210301073832.919371-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Ensure this file has a prototype for phys_to_dma and dma_to_phys. Signed-off-by: Christoph Hellwig --- arch/mips/pci/pci-ar2315.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/pci/pci-ar2315.c b/arch/mips/pci/pci-ar2315.c index f741b8c528e480..c1a655aee599a1 100644 --- a/arch/mips/pci/pci-ar2315.c +++ b/arch/mips/pci/pci-ar2315.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include From patchwork Mon Mar 1 07:38:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12108865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AE03C433DB for ; Mon, 1 Mar 2021 07:41:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5007F64D8F for ; Mon, 1 Mar 2021 07:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232480AbhCAHjc (ORCPT ); Mon, 1 Mar 2021 02:39:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232535AbhCAHj1 (ORCPT ); Mon, 1 Mar 2021 02:39:27 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16BDDC061788 for ; Sun, 28 Feb 2021 23:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=36CRP/Z+u8BUXJwpr8iveFF2D+TuQY1y+AhUpLyGfvo=; b=JPmt16IfrWjCcABnyVFQkA4+CQ G7CpiRHXwB4/FzB3sZXSmxIxFPFQ9zBN8sGp3umRSCE+oNOci+FmGVn+rCaZgqzxSpegT0btguQVu x5mPKK5N8KzApN/RSsyoRrdu6sH23bB5IB1L8ZgzfN6/EJlT/6RhToC/PMOx2F86FUo/mbK+n+He3 ExL+sUX+LbjWg2bma4jVylqeti1CeA/2TUQB1VI/7O9HdMioMjUTvmzOm2SjxHhPb7IiBM9UibNJw IfyzNYmWvT1ozLGwRFI7PtJ74Nrfd5vFZ7K7SIC0jPTZOU82eADyB4kJJtLgXU53nArVSPb2gGdwO In0AYOjw==; Received: from [2001:4bb8:19b:e4b7:cdf9:733f:4874:8eb4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lGd8l-00FQlm-7n; Mon, 01 Mar 2021 07:38:55 +0000 From: Christoph Hellwig To: Thomas Bogendoerfer Cc: Florian Fainelli , linux-mips@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 2/3] MIPS: bmips: include for phys_to_dma Date: Mon, 1 Mar 2021 08:38:31 +0100 Message-Id: <20210301073832.919371-3-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210301073832.919371-1-hch@lst.de> References: <20210301073832.919371-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Ensure this file has a prototype for phys_to_dma and dma_to_phys. Signed-off-by: Christoph Hellwig Acked-by: Florian Fainelli Reviewed-by: Philippe Mathieu-Daudé --- arch/mips/bmips/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/bmips/dma.c b/arch/mips/bmips/dma.c index 49061b870680b9..915ce4b189c15b 100644 --- a/arch/mips/bmips/dma.c +++ b/arch/mips/bmips/dma.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include From patchwork Mon Mar 1 07:38:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12108863 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D090C433E0 for ; Mon, 1 Mar 2021 07:40:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3210B64E38 for ; Mon, 1 Mar 2021 07:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232496AbhCAHja (ORCPT ); Mon, 1 Mar 2021 02:39:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232536AbhCAHj1 (ORCPT ); Mon, 1 Mar 2021 02:39:27 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCAC2C06178A for ; Sun, 28 Feb 2021 23:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description; bh=TIlQScCirKLzWtGrSlnd+vSkhgPzbDqx+0oHlZOJRBs=; b=dbbntP2CiuV9lLXAW8Ss14wwgq UlXYZclZ4e7lsUeWMJV1ybOmK8rXGjKcFA9tJ4RtgtYvctSYKb/OopKpOlcsM3q1pMSGeT7pozKp4 3FlLJJNfwAzeewJczEco5eh5m4Hyy524r9FgeYHtkO9MkugAIQP1HrzQnzcNDBVt2U4cEl8NvRYqO plvzXEM/nYEjrKwea0xhHhXFb5jFyOyWV3HeBXf5ZmyVzoVVJ81ZiBQFORK0Q8UNRV+pKRsuktfRz 4HOfO9dt9Z0GpWCK/KslR1ouC/XYutUf7bDqRq7JkpcnAN8lDYdVFn8uJG4n/MKRLmNwjTvuxX6rK +/Lghifw==; Received: from [2001:4bb8:19b:e4b7:cdf9:733f:4874:8eb4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lGd8z-00FQm0-FD; Mon, 01 Mar 2021 07:39:11 +0000 From: Christoph Hellwig To: Thomas Bogendoerfer Cc: Florian Fainelli , linux-mips@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 3/3] MIPS: force CONFIG_PCI to on for IP27 and IP30 Date: Mon, 1 Mar 2021 08:38:32 +0100 Message-Id: <20210301073832.919371-4-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210301073832.919371-1-hch@lst.de> References: <20210301073832.919371-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org These are PCI based systems, so not enabling the support is rather pointless. Additionally the random configѕ generated by the build bot for IP27 and IP30 builds without PCI fail to buіld. Signed-off-by: Christoph Hellwig --- arch/mips/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d89efba3d8a44a..cc7494e988e2fa 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -712,6 +712,7 @@ config SGI_IP27 select ARC_CMDLINE_ONLY select BOOT_ELF64 select DEFAULT_SGI_PARTITION + select FORCE_PCI select SYS_HAS_EARLY_PRINTK select HAVE_PCI select IRQ_MIPS_CPU @@ -774,6 +775,7 @@ config SGI_IP30 select BOOT_ELF64 select CEVT_R4K select CSRC_R4K + select FORCE_PCI select SYNC_R4K if SMP select ZONE_DMA32 select HAVE_PCI