Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp202257imm; Tue, 22 May 2018 17:03:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3z6FXmWI62LNB3ix1CBQKe/dQ/ZHRg/s4F/I3YVcPn1qaY5/ZBv/cQ8kRZoQlWUuCIV54 X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr554011plo.129.1527033815547; Tue, 22 May 2018 17:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527033815; cv=none; d=google.com; s=arc-20160816; b=tlP8c6H1fcgpgCxs/jQRntXcrGqNCmKw+32ffyK2gSJFfkv5dj6OjbkXv/e5ia1vf6 PZyGiwPYCRFfwVz0fB6NQD6n4NDaJgvyf6ixqv/yqLqzN6aqOIShdJciV7oX6zgNYvvd rcWYpj8CA3vYKew5WeNasd8WDRl+wiuQUIHxZxMVpDWBuNMnBlsDhHe+qq+xILqpExyA RMOq30ft0wBkQt2JT2Eok5RrNz9dEWzrE1HaNS1w0OoJ/rFwIogzZBXrTzAYstR/beu3 C+pDT5tV1NIzDyeKYc30tr7FfejGxFaoBVWQZxBwepTcyrrdWv9qjF5G9BVa2A52Fa99 vT7w== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=TQAOTnqemaesXgXseQ574h5Ur1gt3t14ie0QqcgvrrA=; b=EmyGrtNuuI194kDqDYAipI0jsqYgeMmyWXs3imbHuIOm/TUxAxnrjEvqQAXtz8qoBs lLKsU9BICtTShLtXaut4+mSDHFR8TZwZZharjQZzMG7Iv/ZqCbYWLYpkaOb0iwnod03v MV6fgQhEPbd7IEcLBL0N82m4rt+u2hhOxMyO48WuKiHPvqj9h7b4sPA9WJYxFeenMsG8 v3jJKIIZaTxPPIeJSPfDdLCl1VNtVP8ol0sMar2dRCU1k3nvJ2BLpKWrNqmbfwJGXjoR aim2C4up7oy3tzAzPpRBo0+6d48YBikfiVyY/9jLMAIh41DMSzvJkW07VBnA5UbI7aSo q9RQ== ARC-Authentication-Results: i=1; mx.google.com; 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 v16-v6si17054854pfn.77.2018.05.22.17.03.08; Tue, 22 May 2018 17:03:35 -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; 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 S1753408AbeEWAC7 (ORCPT + 99 others); Tue, 22 May 2018 20:02:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34166 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319AbeEWAC6 (ORCPT ); Tue, 22 May 2018 20:02:58 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.71]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 021F711; Wed, 23 May 2018 00:02:57 +0000 (UTC) Date: Tue, 22 May 2018 17:02:57 -0700 From: Andrew Morton To: Joonsoo Kim Cc: Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= , Laura Abbott , Michal Hocko , "Aneesh Kumar K . V" , Tony Lindgren , Vlastimil Babka , Johannes Weiner , Laura Abbott , Marek Szyprowski , Mel Gorman , Michal Nazarewicz , Minchan Kim , Rik van Riel , Russell King , Will Deacon , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE" Message-Id: <20180522170257.ae5387d8717e81def908a53b@linux-foundation.org> In-Reply-To: <20180521061631.GA26882@js1304-desktop> References: <20180517125959.8095-1-ville.syrjala@linux.intel.com> <20180517132109.GU12670@dhcp22.suse.cz> <20180517133629.GH23723@intel.com> <20180517135832.GI23723@intel.com> <20180517164947.GV12670@dhcp22.suse.cz> <20180517170816.GW12670@dhcp22.suse.cz> <20180518040104.GA17433@js1304-desktop> <20180519144632.GE23723@intel.com> <20180521061631.GA26882@js1304-desktop> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 May 2018 15:16:33 +0900 Joonsoo Kim wrote: > > (gdb) list *(dma_direct_alloc+0x22f) > > 0x573fbf is in dma_direct_alloc (../lib/dma-direct.c:104). > > 94 > > 95 if (!page) > > 96 return NULL; > > 97 ret = page_address(page); > > 98 if (force_dma_unencrypted()) { > > 99 set_memory_decrypted((unsigned long)ret, 1 << page_order); > > 100 *dma_handle = __phys_to_dma(dev, page_to_phys(page)); > > 101 } else { > > 102 *dma_handle = phys_to_dma(dev, page_to_phys(page)); > > 103 } > > 104 memset(ret, 0, size); > > 105 return ret; > > 106 } > > > > Okay. I find the reason about this error. It's getting rather late and we don't seem to have a final set of fixes yet. Perhaps the best approach here is to revert and try again for 4.18?