Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6939024pxb; Wed, 17 Feb 2021 18:49:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeEs9ZrfvORJd8JDN6wojBuFfO9HeOU9FcMeXSdZ1mZSuYFi3WFXhCoudrLQTP67wmUVJm X-Received: by 2002:a17:906:7d4f:: with SMTP id l15mr1816212ejp.95.1613616576655; Wed, 17 Feb 2021 18:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613616576; cv=none; d=google.com; s=arc-20160816; b=C9bwory3bbdjxe6XVVL9P0RymVxE4aIK5IQXddfQAGT18CHySoAeV5Kgw/ZQpViYyf 86K9G8wu9qpoKniaEoH2WPe+pufcHVL8ge97zLj+vrlD2OAFzdqmAOsW4DQnnKZhH3Rf MAS3Sswm/ikEVuGC1vrlS+ETNoP52e4vChg9onbfAUh6Yf74dptsVTaAUG2iF9uuq1oq uT15I86NsrwscM3BDXEsyQgCJl27Y8TEAgyBKAms9Mgeh3hqJ7iookfQ5AsrOR5J3z0v l6FHR+TGvBORVYfNh1lUzbiLyynMwRRCq35udAYJleXeQNcyZT4CFrhQm5+zTGXHeuhv /zxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/4aexB+RvrEHDWS42HrgJVk9z4qSeNb83kMgvJSsYtc=; b=NAb8SkdQCIoGsf6aLw+eaNp3lXkDtK40VPmrzKIVJdBEZtONZo8+Pi8MnxO6Li7KvL InHJxIofEusCSR9ZWlIhabcSfPdUPFelf2Bqzs5RTNMUIrf5prgBG6KASC8HkdeQQftF gg+wBJxuVcYN6N91q37Ni976GxSG0mDQvR+0wZVxVjGOo4G8PuqnQuwpU9+w1nIPniPz Rae19OxCezdE8jZzcjIug05GNGu5T1Hq53hn0b3OyjgyNUN8EIfelsaqSjmYMU5gm6UF nJxWmShdHgMuI3j4IAFMfsq/gfiM25NFEjsSYOrg0/Q3URrferDkHoGxOFxqH2NO1xZA L/+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="g/Kr2Fzy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si2665732ejc.551.2021.02.17.18.48.56; Wed, 17 Feb 2021 18:49:36 -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=@kernel.org header.s=k20201202 header.b="g/Kr2Fzy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbhBRCo6 (ORCPT + 99 others); Wed, 17 Feb 2021 21:44:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:36144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhBRCo4 (ORCPT ); Wed, 17 Feb 2021 21:44:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2261564DE0; Thu, 18 Feb 2021 02:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613616255; bh=sy8iwMXSGDS2c4e5QxmwRLlBenOB+zXEq/e8dETRyzg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=g/Kr2Fzyuee3+iP5ggZmEmwlj4ttvKXK1fyFZYXDb5BUHpEp7V9zY+MKwJ9mq2WHw a90PJDKAmMjp13RidKhhvX8AHwoBlRpGp17QhsSFWXtW5KzwQ384P80M36mIHqR1dp w8tp+fI0/W+O22CWWyxaPNTF9hoZDW7kxGRn61xAmE5MdMdDVf5M02CGjy/hs1mQs/ +vsq1ePu13m7NJbv1lAEYVzRnEsB8aOds+aqvpH5Njwm3JuiqTK8cj1B+kGGce+tmd weNXoaKjUmbw2Pun1O20kDsF8RwruJZbnsBfbP3POkBhHRBcHcvPvEbEIdaqFiZf1M HHUi33L0wpsvg== Received: by mail-io1-f42.google.com with SMTP id u8so503087ior.13; Wed, 17 Feb 2021 18:44:15 -0800 (PST) X-Gm-Message-State: AOAM531agjwAP6P5BLHV4S3VYdxgIeffI47YdsPWkudPG/xsKmA03zGl a7f0qkIslP0w+XE2Q0dofIl5KAS54VyupfTzzb8= X-Received: by 2002:a5e:9612:: with SMTP id a18mr1808999ioq.13.1613616254599; Wed, 17 Feb 2021 18:44:14 -0800 (PST) MIME-Version: 1.0 References: <20210210095641.23856-1-hch@lst.de> <20210210095641.23856-6-hch@lst.de> In-Reply-To: <20210210095641.23856-6-hch@lst.de> From: Huacai Chen Date: Thu, 18 Feb 2021 10:44:02 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/6] MIPS: remove CONFIG_DMA_MAYBE_COHERENT To: Christoph Hellwig Cc: Thomas Bogendoerfer , Greg Kroah-Hartman , "open list:MIPS" , LKML , iommu@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Huacai Chen On Wed, Feb 10, 2021 at 6:04 PM Christoph Hellwig wrote: > > 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 >