Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2542932imu; Wed, 21 Nov 2018 13:21:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VS2hTJWXl1RakH58rwFEz68euTZ+zAB37GA0oHescPblwmYMBqH3aNQXETbnbwFbDnvrct X-Received: by 2002:a17:902:bc83:: with SMTP id bb3-v6mr8269922plb.223.1542835307821; Wed, 21 Nov 2018 13:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542835307; cv=none; d=google.com; s=arc-20160816; b=DxExlSAsijUh68CR/3/kbMbfZpjYo+kXafFjvFeZD9SAlXR1X5jI9lU9oq6eNPslmA KkGyj6/Fqz5MfmILe6uyuQ73PVtSuK7gCMzSJNvBPw52A03hT30e7+GVFa7MzNW/nxYo IBIoWfnnPqeY35EbHN1MyOfwfZJ9OaL26grGjQij9mGFP4i8/CNuIrJViUvUVl3YHVyq hg1EaBVus/+Hlvg2iyIoM2LdStBKhOFWY15pK1iz1QjoFDp+ofkOnrbplnYsuDLBSkFM nyXw4tLRllEXnfNw4EVoHdoLgVYhe1ordAfRnBkPVZk46xiauthVdouObMeV2jMNpcd+ JGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=qevYqaOTkazccg/ikOR5g8n2jLP0JZJxdm01tmFo5YE=; b=ynxfF39pAsJOF1Dwl1JbxkCANrb0RAFu+3HuMN9U4eViGpSDSwgXD89ZvRnrf1VJzg UxKh01cXCoWqhPvSW1Yb17bkYxdT84zMrcTQgSKf7XK/E1/gU6rFHfb6ld/vnhZ62EB3 GFuicyI8geBeJqSZ4PQ+YxFBXg7Y4TV9DmqVXw1VXs17/uymc94nTNSAX4W8lPGw5hE1 4ExZ5+eWY70kErJDVNd8RXK1eZjhz34wedvhTt1qliQwhYcEgj/GMNPSqMeBjbQuYy5/ CPhZzxdQxzf1QZTtLSPPJXKhGG7tJt+vGC1r8HBM+LbRxVQIY8bYA25ozbgzTQWuslsd tRIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=TizU6YKr; 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 w189si6818786pfb.151.2018.11.21.13.21.30; Wed, 21 Nov 2018 13:21:47 -0800 (PST) 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=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=TizU6YKr; 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 S2387507AbeKVFI0 (ORCPT + 99 others); Thu, 22 Nov 2018 00:08:26 -0500 Received: from a9-32.smtp-out.amazonses.com ([54.240.9.32]:33188 "EHLO a9-32.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733171AbeKVFIZ (ORCPT ); Thu, 22 Nov 2018 00:08:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1542825178; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=qevYqaOTkazccg/ikOR5g8n2jLP0JZJxdm01tmFo5YE=; b=TizU6YKrbyt/J4fpF5bC5dh22gtU0cHHV29TKGhr46HTdExmEaxWNJ0Zq2XR9mD3 xDkIjADCWl64sUODtTiuuD+eiC7YCODywsOFHM/zanZSOJGKvPZH74i8iH8fXK1Ya+m 47oPaEYsjfnDdIUyEHGplSmYIg/2m6uD+SB5w42o= Date: Wed, 21 Nov 2018 18:32:58 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Nicolas Boichat cc: Robin Murphy , Will Deacon , Joerg Roedel , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Michal Hocko , Mel Gorman , Levin Alexander , Huaisheng Ye , Mike Rapoport , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Yong Wu , Matthias Brugger , Tomasz Figa , yingjoe.chen@mediatek.com Subject: Re: [PATCH v2 2/3] mm: Add support for SLAB_CACHE_DMA32 In-Reply-To: <20181111090341.120786-3-drinkcat@chromium.org> Message-ID: <01000167378bf31a-a639b46c-4d1d-43de-9bed-9cdd9c07fa94-000000@email.amazonses.com> References: <20181111090341.120786-1-drinkcat@chromium.org> <20181111090341.120786-3-drinkcat@chromium.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.11.21-54.240.9.32 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Nov 2018, Nicolas Boichat wrote: > SLAB_CACHE_DMA32 is only available after explicit kmem_cache_create calls, > no default cache is created for kmalloc. Add a test in check_slab_flags > for this. This does not define the dma32 kmalloc array. Is that intentional? In that case you need to fail any request for GFP_DMA32 coming in via kmalloc.