Received: by 10.192.165.148 with SMTP id m20csp685082imm; Wed, 9 May 2018 21:41:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqywbw+n7U39m7HVfbe5bqoEPq712A/jFV0YoR5gbf0tbj2fVan2CW5ZV3/cdRwvk8JMvk X-Received: by 2002:a65:55ca:: with SMTP id k10-v6mr38736819pgs.422.1525927274907; Wed, 09 May 2018 21:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525927274; cv=none; d=google.com; s=arc-20160816; b=WVqAVyh3ZksLepHYlR4/+0RtgjlXbJ/Bmt8Z/5diCx3w9+6pIqx/pClNFsJi+6zWE3 Jj58VQiuYNwNC1E/gT6/OanxRDYh2xeUdvHGqzDatJjYv83z2iH91TWfowp3fvmtOmkO 0FY4H9yl0Z5YlMpTASq7e+yWoL9+6EpF121v5TfwH7XlEZDs84e9LikzOQKJ4I8gPmue pZoMAU2vOBGz8B+fg9+TOb+ZefZs66q+4cr+pwoc2IsD1BAv9qT/hfaDyQVA7QGwvZ5o jk7gwwv0sed+z2LNTM96y4a2kX80iEkvOXhytmun+yawJfBp68pfBDV2QwsUCjzYT2mK vzeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=eb1PqxjNpebu3KZF42VOkCdpWkNqTBEzdkdHqtuYi94=; b=CzmFLVdLkYjUoP62wBpoD47lVXtFjRJNrHa+LATvyk+oBk+sg4wxwqhrn1Y6maiqn9 OywHGtAXuKPegXSyZ2lpwNINaoRR58DIcguW/kM1TAa1dMo1fG6vnlz59cgqdHxmtrxu jb4fBolvHbSeKppw+5ZkfDGhugB8qf4PC9hQO4gRiJtsEL3EN1Od3vmhHBV0ScmHDAjT Zpcq2xTqLAYaJb1MuyW/jfWO22tVVdabIDAaasFhLL+QO2E6krfZ5BmZbROPrMlKP1wg GCuoSJ5MgZLkS9KjB3jkv4MxU4RHpmOOVYaPCdP7UENS4x9oGGlnzG3ojxOV2/MiW+nT xB0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Sony.onmicrosoft.com header.s=selector1-Sony-onmicrosoft-com header.b=AGeGMhqY; 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 j10si18028417pfn.87.2018.05.09.21.41.00; Wed, 09 May 2018 21:41:14 -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=pass header.i=@Sony.onmicrosoft.com header.s=selector1-Sony-onmicrosoft-com header.b=AGeGMhqY; 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 S1756451AbeEJEkU (ORCPT + 99 others); Thu, 10 May 2018 00:40:20 -0400 Received: from mail-sn1nam02on0108.outbound.protection.outlook.com ([104.47.36.108]:38806 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750854AbeEJEkR (ORCPT ); Thu, 10 May 2018 00:40:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Sony.onmicrosoft.com; s=selector1-Sony-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eb1PqxjNpebu3KZF42VOkCdpWkNqTBEzdkdHqtuYi94=; b=AGeGMhqY5g9GPEMkQpgdMmgZTxEr7ClZZcQnsGL6SdYEsBaU0F0H/FjVfB1C/aRxVQCzISaAsHvOcQP1ncDO+MQdWGB03PPHW5+OHO3RQfQgF2+7ZTO8Zyz4+Y4Hj67oNwRvlYkeKH1+skv4mxpoBuMwGBB3wNfvQ8/Z+HeB31U= Received: from CY4PR13CA0036.namprd13.prod.outlook.com (2603:10b6:903:99::22) by CY4PR13MB1416.namprd13.prod.outlook.com (2603:10b6:903:137::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.15; Thu, 10 May 2018 04:40:15 +0000 Received: from CY1NAM02FT015.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::209) by CY4PR13CA0036.outlook.office365.com (2603:10b6:903:99::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.776.4 via Frontend Transport; Thu, 10 May 2018 04:40:14 +0000 Authentication-Results: spf=pass (sender IP is 117.103.190.41) smtp.mailfrom=sony.com; kvack.org; dkim=none (message not signed) header.d=none;kvack.org; dmarc=bestguesspass action=none header.from=sony.com; Received-SPF: Pass (protection.outlook.com: domain of sony.com designates 117.103.190.41 as permitted sender) receiver=protection.outlook.com; client-ip=117.103.190.41; helo=jp.sony.com; Received: from jp.sony.com (117.103.190.41) by CY1NAM02FT015.mail.protection.outlook.com (10.152.75.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16 via Frontend Transport; Thu, 10 May 2018 04:40:11 +0000 Received: from JPYOKXHT102.jp.sony.com (117.103.191.49) by JPYOKXEG101.jp.sony.com (117.103.190.41) with Microsoft SMTP Server (TLS) id 14.3.382.0; Thu, 10 May 2018 04:39:59 +0000 Received: from JPYOKXMS113.jp.sony.com ([169.254.3.95]) by JPYOKXHT102.jp.sony.com ([117.103.191.49]) with mapi id 14.03.0382.000; Thu, 10 May 2018 04:39:59 +0000 From: To: , , , , CC: , , , , Subject: RE: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Thread-Topic: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Thread-Index: AQHT5ItRb0y5QFw5Gk+kOQy+y2CJ9KQoXEaA Date: Thu, 10 May 2018 04:39:58 +0000 Message-ID: <02699364973B424C83A42A84B04FDA854A3893@JPYOKXMS113.jp.sony.com> References: <20180426215406.GB27853@wotan.suse.de> <20180505130815.53a26955@vento.lan> In-Reply-To: <20180505130815.53a26955@vento.lan> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:cf8:1:aec:0:dddd:260a:38bf] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:117.103.190.41;IPV:NLI;CTRY:JP;EFV:NLI;SFV:NSPM;SFS:(10019020)(376002)(396003)(39380400002)(39860400002)(346002)(2980300002)(438002)(189003)(199004)(13464003)(2920100001)(2201001)(426003)(336012)(305945005)(476003)(86362001)(102836004)(446003)(2900100001)(11346002)(23726003)(7696005)(106002)(486006)(76176011)(2876002)(126002)(2906002)(97756001)(106466001)(26005)(6116002)(316002)(5660300001)(356003)(55846006)(54906003)(107886003)(77096007)(246002)(478600001)(7636002)(186003)(7736002)(33656002)(8676002)(110136005)(46406003)(72206003)(6246003)(4326008)(8936002)(16586007)(86152003)(47776003)(229853002)(55016002)(50466002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR13MB1416;H:jp.sony.com;FPR:;SPF:Pass;LANG:en;PTR:jpyokxeg101.jp.sony.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT015;1:BtU+p+jGP98TJTPCni6+SL453SxAOcIJ2bArjnQOVX8Fuw7W/sBakGLoW8iXEKD5PYQRclKkH2W5OgEhIwHnjAWK1StHxTHFOln21+h5nvepXY2avTZOBJLLUnFexgWx X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4608076)(2017052603328)(7193020);SRVR:CY4PR13MB1416; X-Microsoft-Exchange-Diagnostics: 1;CY4PR13MB1416;3:lTX2RwXEKYkgXrV0wKkN+lHlUffhIekGfklKvpKDmqgHTh5L/XPRiDBxDLYiQRjEq1g3/3Qf9mHce0ZGyoT/cwEtvuJkJm3oxbBBpKG88ojGCF3bWm1sL839bmSCQeZaup2/64k3B0UP2ArzJeQBdYCzlJnHhOOl3rtMtBpWMtlQUY+kCpJZWUic7SEH3snl3hap8XlcEE9tTAYbjrSOblKOpYlMvdaqQpCg2010ADUQeQLuRVdI9o//6pEoM50EjLwXXkeog0N+3mjpdFOziocpmdQUqRzMpJioqTKMDtdM85hkz9LQ40Gpb2R3BZM0zvMim3qChN6QjEbW+zpM4vKTKIak66K2fr831LGeZWg=;25:tqPUrbNC8DyAjXo52eXZaHeYZx4Nf44TJ7agrhHe2+/uIqbtih7FyUWqKCRR5c9m9cqj5g/xqlBic3MjSY49BYHcWBZT4UtBxHwhI8qvuKNY2Lp7XgO0fUDwFdjo7YXCZdWuQiUohcu3cJ0jOfPYnIjGzWzDIjHlR0Nq+D+ukE69QJUOYtVlNrggUXiW5FhGpal+afLCihORLP7PzZhMJR95H4l9Axli/5H0ZoHmZZ614rs/Faa5HXx/y+sEiu5IFTuKYsDYuM94P4wmzkduaSwxmRJZWSuzdgU2vm9JD77bOYD4c/1r8m7YU4OI0kOSTAExIFwbnQfJo5CTN2808w== X-MS-TrafficTypeDiagnostic: CY4PR13MB1416: X-Microsoft-Exchange-Diagnostics: 1;CY4PR13MB1416;31:J+r3KafUFWnhxSJNvKAYrn0PJOi02i5Vy6N8/Bk4rl+ympw4tSM2ZmFVrszv+GtBVlTivBDlEs8CIZBxjDLVtpCmsbd/FGK8IXx+j2yj45RtOd09ygo/z0M/YmAglyKG9Uet27vom26ogylmt94dgRU8gYS7Laptf5iAcvRRfl6QEer8YOGiGu+8i+gRegHYyZpeJYvj7FKwwBdKe1P5HugN9P+RDPqY/onu4rpfNso=;20:FPaC42jkCfnboIvmMaUjbeMwvKyZRnmr7h7WB3+Rv7Lb+IbyOTHt9COQBIwbY2RL2OxJ3uDN6bSgdx3y6HaksmmFkhEVY/lcJZW5+gHnbq0EaiaBGH4oKY5zaO+/+wrnis3EtxLtAWLvRFfw7vCXvB6jxkM3bRB71/d70tQIOslABWFxc3TiuyHavPUcLOlqj3jXTOxdS5ZnSke7NCp48oizDkMx3am2j3PB58MAK/P716nmFpVsPECjEdLL4fnC8bDmhWjTg6F6jHZjMGg4Fh1jJfWZ17df0SQch2uyMld8yv2iKuHaAPKZvg6KrUxP69d8IMzArHQ5880EOfl3r1T2rsu7reBozkrSw5ujgVOFKPnKk+mzVMd9bu2cOAoiPJ0PGlz1/QJ9pvx+I+3JT0xNOHNDK24CVUjgZ1ZCR93Y2FwGEySoMRieNzGdSkVJA404nqa8VQabOmkUBaHXSQ3PZ3PSBo8sCU6L+SQ54MnwToTUWmBGPowFkYdg/5jo X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(11241501184)(944501410)(52105095)(93006095)(93004095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CY4PR13MB1416;BCL:0;PCL:0;RULEID:;SRVR:CY4PR13MB1416; X-Microsoft-Exchange-Diagnostics: 1;CY4PR13MB1416;4:InmU+pUUG7Lk4irLvVJOZl+QWXAtusw4lh+vKvBFPR3OubLuNAMgt8Z1GuA4jglnFx52G8oEwDmRi7VjeV/l80XlrOLpGxjtdTgNiXqHtA2LFRPrc2F2mOReHyql5sFQWaiTkcyvficGKze1zTPTO7mcjDRPEKJqqUS5gheh+vPC9m2vvTqYD+lzeePN+O7BKbSw9QK9f1Ln7u3Hz1DlYjO6dBnP8bNkWywnP6iL1Gx+VmUmSL7D/xcDYpQ3z1SblkClhXsHozJdYxGRF5mf5Q== X-Forefront-PRVS: 066898046A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR13MB1416;23:kJp7xmDzim7OvPD6wCmfvSuUKBanDiV3MbgbIXoHD?= =?us-ascii?Q?GbQm7EGgt2MLs6O0UZzpg1BHNBt4Tzx3Xcbc/rUjTqy9Jv9ORDMV/U5wB7cU?= =?us-ascii?Q?rJPPT04LBGwXne4CLIFW4DbFasWt+/2e+XckpuqpftargGoqe+5fU9Tp47kj?= =?us-ascii?Q?BhE0hALm9HkL1xAXQsk0VNuY2xvtRfBx6hl53znruTzU1tdaWcKATpZgzY2W?= =?us-ascii?Q?HNpWhm71lLNIT/x7gcAARid+agsM5tG1Y+0bakKUPpd+SVJoWEPNvIgZXqAB?= =?us-ascii?Q?B8p/I7aKW5gFwGZWft713JYb/2awvr3E/8JkVWxFDO2VAz8iYKFBAQ2evq/R?= =?us-ascii?Q?xSRp1hiRXlkq1UJuJGz2euY9DoSQYfmWstmefaJVuC5/Qv8J5H034S0FkEDc?= =?us-ascii?Q?T0DfglrgXSfl2L39vYyoQjWF12FXu+/agH1MpAAr5YaXkpItc3GJSv0KN8M3?= =?us-ascii?Q?BIKivjqfduT/4ScioTMXFnhnxpmlIPN9Uw15SVMenIi6lmXflP5EJ0G1cnam?= =?us-ascii?Q?hUrVW73BOcQKcQBAoyGxKjdsZ7UniQhA7fgyVBxUY5fI/+4NWOQmm25gzBUd?= =?us-ascii?Q?uaDLEHULCj24ndp1QYGX/xVr8wEWzNkFjkNarkjLvYfXZtVksgUZ5AOkxciA?= =?us-ascii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M5zrY X-MS-Office365-Filtering-Correlation-Id: f445123e-e10b-45dc-3f79-08d5b6301f99 X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 04:40:11.3708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f445123e-e10b-45dc-3f79-08d5b6301f99 X-MS-Exchange-CrossTenant-Id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=66c65d8a-9158-4521-a2d8-664963db48e4;Ip=[117.103.190.41];Helo=[jp.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR13MB1416 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Mauro > -----Original Message----- > > There was a recent discussion about the use/abuse of GFP_DMA flag when > allocating memories at LSF/MM 2018 (see Luis notes enclosed). > > The idea seems to be to remove it, using CMA instead. Before doing that, > better to check if what we have on media is are valid use cases for it, > or > if it is there just due to some misunderstanding (or because it was > copied from some other code). > > Hans de Goede sent us today a patch stopping abuse at gspca, and I'm > also posting today two other patches meant to stop abuse of it on USB > drivers. Still, there are 4 platform drivers using it: > > $ git grep -l -E "GFP_DMA\\b" drivers/media/ > drivers/media/platform/omap3isp/ispstat.c > drivers/media/platform/sti/bdisp/bdisp-hw.c > drivers/media/platform/sti/hva/hva-mem.c > drivers/media/spi/cxd2880-spi.c > > Could you please check if GFP_DMA is really needed there, or if it is > just because of some cut-and-paste from some other place? About drivers/media/spi/cxd2880-spi.c, we referred to kmalloc of driver/spi/spi.c spi_write_then_read() function and made this code. Regards, Takiguchi