Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1183601pxb; Wed, 10 Feb 2021 02:05:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRX9NmvqTDkR1dcrwGZoqbqvbT37jxXDIiCf9aB4cMEBnnKyQ6EhVVdjNgC07qI1nwFYwT X-Received: by 2002:a17:906:2747:: with SMTP id a7mr2285428ejd.250.1612951546865; Wed, 10 Feb 2021 02:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612951546; cv=none; d=google.com; s=arc-20160816; b=usfDRPW8qJhMAz78JzyWs8KD2MsfSo/cTX3CqTKRi5XDviNmyNOEpP0mohmitQjz+l /gBrEs9QTyRJ4APwTcY7l5DNkWdNd1cgSdQuVpMZYUlJ0SEb3tKwa48eQXYEPnM1hrEq i5qiXC3bG0a4Lk5/rV/tBBHuL6rt7fjqVHlV2uAXgn+1w7ePIY14ifN2/G+1otWu0cc7 J1WDJ9P6tw2UmFJCZ4PkqAtPCMt+sJZlQK5KEfl+p7s8+s+sbKD1cEszkfyQaujNIBYU mwlmi3hmZz5NBPSkkxmRV3otHp/ly/kEu5PzQ1d4ijhalYghskyhGK0BDlywcVO49L90 uyFA== 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 :dkim-signature; bh=u5NbTnnrhnYrB2dx6qOY6zq3bhU0+0dqdS2E83sSAIs=; b=sBfmP91Dt9FPMngyH+lWvn7rNIWINd7eB0eWPFnBKIH2m6hk8VLS8Vq57JvdasKkLl ywcBZ3nbE6laliscZ8tp8Uz3FSvMBog30LokUBltKIhDE6av4txbR232uo0IW0LfgGUg w53bjd/NfC407raZOZmz+rX6Y0Eokflf2uJAt7jn53rAHeBouZ14Jn5ozZ9xZfx4Qz34 yVzqZ0zVvuEONVeAGHfv3nR+KcPqeEQF4h9kkBDWzCP7NsmAnyQzxLdsFQABg5GsfTFp r9VCOcw+EB6F+YzdNA9NfzJPcPiH0hc+VVPZpK1TJYOvBU/nGD0w9Rvs8XqgT/F2YHWf 3Bxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="p6Am/N5c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kj18si1006841ejc.94.2021.02.10.02.05.20; Wed, 10 Feb 2021 02:05:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="p6Am/N5c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbhBJKEV (ORCPT + 99 others); Wed, 10 Feb 2021 05:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbhBJKAT (ORCPT ); Wed, 10 Feb 2021 05:00:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A65A1C06178A; Wed, 10 Feb 2021 01:57:12 -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=u5NbTnnrhnYrB2dx6qOY6zq3bhU0+0dqdS2E83sSAIs=; b=p6Am/N5cpFrcuiblrl9z12UUVY LaiYLnWoy8KJpcRBRfAFpSS3mFvDuszHTIXNjLk4B4Ou06akDjwcIUzoTI8Lk8fuI7M5iIa+5DGRV QIltYK9P2Ge5r6T+jwumoHWnnrxWRlCCHaXQOXBhenzOaMBuRnNa5zzOhkSzgycbs+DFv7wG135M2 a3jXw9mDEpnUOecRbg7eDJgSGXwYsOW89RpgbeiXhljN59Jf64JDnEOUkgW4+1PDIq051TzcENMO2 SnK1akdm5bJb7JYJ1dvzIzxO8VXpyfy0GON387EO7R0xPprQ77T7dBhINiIGfqrAymVwcuSEbtOgy AiiGZejw==; Received: from [2001:4bb8:184:7d04:5e70:671e:7b3:191] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l9mF2-008g56-UN; Wed, 10 Feb 2021 09:57:02 +0000 From: Christoph Hellwig To: Thomas Bogendoerfer , Greg Kroah-Hartman Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: [PATCH 5/6] MIPS: remove CONFIG_DMA_MAYBE_COHERENT Date: Wed, 10 Feb 2021 10:56:40 +0100 Message-Id: <20210210095641.23856-6-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210210095641.23856-1-hch@lst.de> References: <20210210095641.23856-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-kernel@vger.kernel.org CONFIG_DMA_MAYBE_COHERENT just guards two early init options now. Just enable them unconditionally for CONFIG_DMA_NONCOHERENT. Signed-off-by: Christoph Hellwig --- arch/mips/Kconfig | 8 ++------ arch/mips/kernel/setup.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 0e86162df65541..1f1603a08a6d2d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -181,7 +181,7 @@ config MIPS_ALCHEMY select CEVT_R4K select CSRC_R4K select IRQ_MIPS_CPU - select DMA_MAYBE_COHERENT # Au1000,1500,1100 aren't, rest is + select DMA_NONCOHERENT # Au1000,1500,1100 aren't, rest is select MIPS_FIXUP_BIGPHYS_ADDR if PCI select SYS_HAS_CPU_MIPS32_R1 select SYS_SUPPORTS_32BIT_KERNEL @@ -546,7 +546,7 @@ config MIPS_MALTA select CLKSRC_MIPS_GIC select COMMON_CLK select CSRC_R4K - select DMA_MAYBE_COHERENT + select DMA_NONCOHERENT select GENERIC_ISA_DMA select HAVE_PCSPKR_PLATFORM select HAVE_PCI @@ -1127,10 +1127,6 @@ config FW_CFE config ARCH_SUPPORTS_UPROBES bool -config DMA_MAYBE_COHERENT - select DMA_NONCOHERENT - bool - config DMA_PERDEV_COHERENT bool select ARCH_HAS_SETUP_DMA_OPS diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index d6b2ba527f5b81..b25d07675b1ee1 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -805,7 +805,7 @@ static int __init debugfs_mips(void) arch_initcall(debugfs_mips); #endif -#ifdef CONFIG_DMA_MAYBE_COHERENT +#ifdef CONFIG_DMA_NONCOHERENT static int __init setcoherentio(char *str) { dma_default_coherent = true; -- 2.29.2