Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3083205imm; Sun, 14 Oct 2018 11:13:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV62REwWac/AKHnDUAKdAgawtVWCV+hQO9bWR30OMnVrjognxyyRIC6ssMMMRYkoTB11zywjn X-Received: by 2002:a62:6643:: with SMTP id a64-v6mr14318007pfc.202.1539540823658; Sun, 14 Oct 2018 11:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539540823; cv=none; d=google.com; s=arc-20160816; b=J97j6u5SmXQeLxp8pIzcITR0SivU4THfv/ocpkP8qjN+2Jp/PFfnOPWt+FFdOA37Yj /YqmPSAj375rYm27FuSAacEtGb2gYKUyT1ZCLBWuPpX7eExNYd1btYChKpfy35VwwDvO LWfABC6B280IMx1EN7CTPb1+bDY+0AL5bmrIwFSvuBukW88I8DHpSIV/NLEjeVLRb5vj rN2QzsrWdShwwOqRIXbwWFYRnzTB6bhDZLrVdW8pA3DWAIzcJIWnFNnKo0gjYVNPnMkW R4ApLPe0c4JLg5XqdmpukW6SLwbQJPDVbNeoiuuDN6AUG2cKuKu7jAPmTxYthZ+rQekG kjNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1GZ8paWiez3LUjyT/8nFcRlnjJoYXL51jei/BBmqubw=; b=f5EmJYqqpl/pE5vr6T8uxYvn1UquKYDvWDlLuSc0uxQ2zI+x+5q3uanneXH9WRgbmJ n6/Y60DLgja7nH7jv1LqADjyS6MuDjrGEwV0TP57TcigqqCvCsWQUjZ2wBAYcBBWZU+I /KFFkPy5Ilnkj661mIMcgiLOttewkdvmlLb6o31G2qF5ghm6pub5xXbBc96Os+k6Q8C0 0m7WWyUKkTtA/4tzpC5WqVbn8BWsEvTCSih439hj8Vms8fVJSDRTKrNjdnXywphUStxY ypq+lLbCN8N4NJmPNr2oBBp4GhLHcaei9wMZsAHOH+L1rCiYrW6GoD+65/J6oKKhg8Wj Zkwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="RV/rcYO9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si6818515pgv.445.2018.10.14.11.13.28; Sun, 14 Oct 2018 11:13:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="RV/rcYO9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726770AbeJOBy7 (ORCPT + 99 others); Sun, 14 Oct 2018 21:54:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53924 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeJOBy7 (ORCPT ); Sun, 14 Oct 2018 21:54:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1GZ8paWiez3LUjyT/8nFcRlnjJoYXL51jei/BBmqubw=; b=RV/rcYO9sA1ii0G8GO0hIxlJr YGfPshxWt/jZB01BX+7zwckuTEYPAZHGFj9q/IBzuiHOZjdhAOZMwdOvCowQC8zUA0ZJIMgzZUMIv OdV3aeVmuVc6RAAgpeal6lNstW7PpDYvjPgw8esnF87Pa3644FbW5Adi5NWRpW2DvjQgk0p3UMSFK WbVDRjuOJ7CI+C4ZkrqAI72j7IMCRihoyvDOZdwhTOeu+CMVpneIC3iAiOCex4tXaqn6/lQrw+FCC nAiKBuMlpf9HXJU1KSJ7eZgG00DeY6XAs03yiqYPRby1Pn3nlVaK5eczy5r9+TpMKT8fV+uS9yZLk H+9gJsrzg==; Received: from 089144199123.atnat0008.highway.a1.net ([89.144.199.123] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBkt0-0006Sh-IY; Sun, 14 Oct 2018 18:13:06 +0000 From: Christoph Hellwig To: chris@zankel.net, jcmvbkbc@gmail.com Cc: linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: [PATCH] xtensa: remove ZONE_DMA Date: Sun, 14 Oct 2018 20:13:04 +0200 Message-Id: <20181014181304.22250-1-hch@lst.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ZONE_DMA is intended for magic < 32-bit pools (usually ISA DMA), which isn't required on xtensa. Move all the non-highmem memory into ZONE_NORMAL instead to match other architectures. Signed-off-by: Christoph Hellwig --- arch/xtensa/Kconfig | 3 --- arch/xtensa/mm/init.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 516694937b7a..9a7c654a7654 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -config ZONE_DMA - def_bool y - config XTENSA def_bool y select ARCH_HAS_SYNC_DMA_FOR_CPU diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index 34aead7dcb48..b385e6b73065 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c @@ -71,7 +71,7 @@ void __init zones_init(void) { /* All pages are DMA-able, so we put them all in the DMA zone. */ unsigned long zones_size[MAX_NR_ZONES] = { - [ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET, + [ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET, #ifdef CONFIG_HIGHMEM [ZONE_HIGHMEM] = max_pfn - max_low_pfn, #endif -- 2.19.1