Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp347164ybd; Tue, 25 Jun 2019 22:46:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK/6+uv9bctTYfAmICwOYCupIWMp8agqsLxDrGXdKqG/DJBRW6Q20HWZNno2utxNHss0ZP X-Received: by 2002:a63:1462:: with SMTP id 34mr1080205pgu.417.1561527977036; Tue, 25 Jun 2019 22:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561527977; cv=none; d=google.com; s=arc-20160816; b=oWW5UsuCGIKDxaTQafIZe0N645JUx5J2iAW7RXCfS12qChIUW9JIIymTt+KwwwGd+Y WuW/jelYXZQEvOWMfeq6wcqfkYRKy7EGH2r+9LXRSFHug3OOk41lNts/CnvUGBudrTER WusVCLS+ZasUGmlMDJARsxanFRTMzLZl2pFRmmaI/4G814zy7jmk0MZ47vv4+I5WfxnY nB+MDLdf0VM/Zo8wQyCRGmzDFw5KR5toMncmedtGT6/th9n93ElWsxTmn/UA9Qn8AdgU /BoXbcfnL1ivhvE+O3fbl7eGz4cAt4czsNA3o5FErWOjKyf5z7qRLAt2bQnh+diE6cqA fL9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aydUDGa5+QAYmpZPtYMkWwUUvB1zVRCSCYE+QEV0K9Y=; b=0L1feo8seD+rbAPA5nsaqvpL1xjCQr/ajK5GCJdLGAulXSVwnYXh+R2KQnb/gean4N FyEZIWUas/4js99fXFrQRa0b09m7WQM1S7zvEtkDSqybdXjKcW3tYio6MwDKhiAiN0PF ohBq6JCezutHIkmMb/mVN/0IQYAka3SEwkzttYUKlf9Cecg4g4IKCA0db7i+qJ3yJotA 4aO7cEldI/y5q9cu5VIoe4mynsZqLevNUYVb0tNIBxVDq90VOWcIHSIZcQCxwrkI5Fmj itidpifGMoLhO0gZAUm0PHdEY1LHUJuN9KY6X4TsNgcBpDbYKdWfwEJ0DjDDTEEUm2tc 5xkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si14263559pgs.290.2019.06.25.22.46.00; Tue, 25 Jun 2019 22:46:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726042AbfFZFp6 (ORCPT + 99 others); Wed, 26 Jun 2019 01:45:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:51594 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725379AbfFZFp6 (ORCPT ); Wed, 26 Jun 2019 01:45:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A851EAF25; Wed, 26 Jun 2019 05:45:55 +0000 (UTC) Date: Wed, 26 Jun 2019 07:45:54 +0200 From: Michal Hocko To: John Hubbard Cc: Jason Gunthorpe , Ira Weiny , Ralph Campbell , "linux-nvdimm@lists.01.org" , "nouveau@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-mm@kvack.org" , =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs , "linux-pci@vger.kernel.org" , Christoph Hellwig Subject: Re: [PATCH 18/22] mm: mark DEVICE_PUBLIC as broken Message-ID: <20190626054554.GA17798@dhcp22.suse.cz> References: <20190613094326.24093-1-hch@lst.de> <20190613094326.24093-19-hch@lst.de> <20190613194430.GY22062@mellanox.com> <20190613195819.GA22062@mellanox.com> <20190614004314.GD783@iweiny-DESK2.sc.intel.com> <20190619192719.GO9374@mellanox.com> <29f43c79-b454-0477-a799-7850e6571bd3@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29f43c79-b454-0477-a799-7850e6571bd3@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 25-06-19 20:15:28, John Hubbard wrote: > On 6/19/19 12:27 PM, Jason Gunthorpe wrote: > > On Thu, Jun 13, 2019 at 06:23:04PM -0700, John Hubbard wrote: > >> On 6/13/19 5:43 PM, Ira Weiny wrote: > >>> On Thu, Jun 13, 2019 at 07:58:29PM +0000, Jason Gunthorpe wrote: > >>>> On Thu, Jun 13, 2019 at 12:53:02PM -0700, Ralph Campbell wrote: > >>>>> > >> ... > >>> So I think it is ok. Frankly I was wondering if we should remove the public > >>> type altogether but conceptually it seems ok. But I don't see any users of it > >>> so... should we get rid of it in the code rather than turning the config off? > >>> > >>> Ira > >> > >> That seems reasonable. I recall that the hope was for those IBM Power 9 > >> systems to use _PUBLIC, as they have hardware-based coherent device (GPU) > >> memory, and so the memory really is visible to the CPU. And the IBM team > >> was thinking of taking advantage of it. But I haven't seen anything on > >> that front for a while. > > > > Does anyone know who those people are and can we encourage them to > > send some patches? :) > > > > I asked about this, and it seems that the idea was: DEVICE_PUBLIC was there > in order to provide an alternative way to do things (such as migrate memory > to and from a device), in case the combination of existing and near-future > NUMA APIs was insufficient. This probably came as a follow-up to the early > 2017-ish conversations about NUMA, in which the linux-mm recommendation was > "try using HMM mechanisms, and if those are inadequate, then maybe we can > look at enhancing NUMA so that it has better handling of advanced (GPU-like) > devices". Yes that was the original idea. It sounds so much better to use a common framework rather than awkward special cased cpuless NUMA nodes with a weird semantic. User of the neither of the two has shown up so I guess that the envisioned HW just didn't materialized. Or has there been a completely different approach chosen? > In the end, however, _PUBLIC was never used, nor does anyone in the local > (NVIDIA + IBM) kernel vicinity seem to have plans to use it. So it really > does seem safe to remove, although of course it's good to start with > BROKEN and see if anyone pops up and complains. Well, I do not really see much of a difference. Preserving an unused code which doesn't have any user in sight just adds a maintenance burden whether the code depends on BROKEN or not. We can always revert patches which remove the code once a real user shows up. -- Michal Hocko SUSE Labs