Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1061903ybi; Wed, 19 Jun 2019 12:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdVDY0dB6LcCi9O9I7P4j2FdvBY9QCLI9tt8z+WFAQgVD2kc7fvNfNDJC+GTYVM6DNKGor X-Received: by 2002:a63:f510:: with SMTP id w16mr9391928pgh.0.1560973594409; Wed, 19 Jun 2019 12:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560973594; cv=none; d=google.com; s=arc-20160816; b=iU2fAezH+bt1sNvP20hii5tyu2rUGogSoYMkJQ8pw4rxHRrHhaXhjFaXjrY6b1eyLO 6tfd+ApxxBqn8a+fnsowS/Xk7s9me1VAQg0g53/d3p3krufPArrJdYb0qZltNX9wJCJH QWbLqw5iGQY3eyn58lgv497dyeV0j2bjKMsEfUs002Vs4KedWwqU+kq0/c2hNkxghE7A lDtWfy1yJE24JMqZmdxTvsyEyeBnQG2e4wXcgWdEVprTNFNhFXXEksJ2Ko8xg0YvVIqd 09xXjjvq1+PuJbn9S0q4wjc54S+YYRQOeBGyAKK53djDoswWgYKGRZm5ks+ROQxlC35V V7GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AppOhepgnEe0jjnJnZQBJyzyqCwLm69rPfFkLY+t1bc=; b=MmZeIRAHRu7CLYTF8FO5ASC3aXgQL5zpBtUl4EE/dPItmPxEKBXOmjpvCVR657G69U bMrEPMjL2OMk4ldNeDZ6J2LR6yycs8vyhUmnD5uDCI/SfZ21j9UZSca1P+sscg5dakgH CPhctLNWxCGZPxgMQIoadQhKm+6HdvD2xXkvQP8KT8+qcq042RsMPlqV6StbbSSqtEAm IBdunBhcgDwXxnU0cHxYtdVg0gFNHSN9EW/IHwMRz2crICEW0PTqJMy7T0HJDH5TLl+2 N9NVv4jpT3RTYbIFCmqjqjk5I64+nMxW7UVBOkUIBPz4k9Lix/wDgG3EH4OoKgJve4OJ JNaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=L+LW3co1; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si3773991pgh.177.2019.06.19.12.46.18; Wed, 19 Jun 2019 12:46:34 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=L+LW3co1; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726447AbfFSTqO (ORCPT + 99 others); Wed, 19 Jun 2019 15:46:14 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41666 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfFSTqO (ORCPT ); Wed, 19 Jun 2019 15:46:14 -0400 Received: by mail-ot1-f66.google.com with SMTP id 43so239982otf.8 for ; Wed, 19 Jun 2019 12:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AppOhepgnEe0jjnJnZQBJyzyqCwLm69rPfFkLY+t1bc=; b=L+LW3co1OBHWplV01UpK1fvt6NIcRF2qR2+gyrISeEZDbLPi91YZXqNIJExJQhxjVL 7NO7u5O4wqUQFCjZA8X/xN5IC6nTONNL0PLEmadz1t01bknVW+LPFjhIpUDlZICWj1OK Gog3pb+AQtERVqv6j7fTaoTVYFpk5W1Hfef0DgmAjMPes0MNZ9hclPMHOd3R6z/1niZy xhltfPQTbipOo4AOyWvfdtdcgObLiRuElMk7blxcxcA8+NrVrohUYIrXM1xWntr04dh1 fdyvcy8a9IUZO0qDkJUM7+nBLab/Ub+ZVWPgR39zFgOFrotnlWhaK61bEldeFuweA1TX hgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AppOhepgnEe0jjnJnZQBJyzyqCwLm69rPfFkLY+t1bc=; b=BCQNgE/rnKCjNCV1sEx1csKakFfpMPF/f6oAfKoio3It7vOYTtzTrGZ+yUQkGI1Cac jRW2wHdtnAkQP8+W+/eGQ0m75zDoDIUWGTTStAyvPeeqbkc8LDQYR+v4sWJhuzfvShUH ivslrb9zUhbSHcS0/MiTTmvNyMGwoO+/s8GDCCBCKf4mwvNHw5MIQCA/nLjUu6NfV3OI BnTYPqIqun96FFah8u1dc7n5DQcnDLMQxGAQ7V6zsp7se/g1fXVHolmqx1HMyiY1UU81 Vfx+GynS93Ypy+qtjKUBJEUlXy5GUSVU6nBhB0LP1uzhCIUcWT06LYyU3zPQ37ZI8gma C8uA== X-Gm-Message-State: APjAAAVMemv9ahshCLDtW4OuaGcwI8c+cCrtAFyQuWltoGHsiHAAXoje Ps9YtG5fPuBIATPSh3L54LEP0bs36oAQUoWECKPfKA== X-Received: by 2002:a9d:470d:: with SMTP id a13mr36193657otf.126.1560973572970; Wed, 19 Jun 2019 12:46:12 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20190619192719.GO9374@mellanox.com> From: Dan Williams Date: Wed, 19 Jun 2019 12:46:01 -0700 Message-ID: Subject: Re: [PATCH 18/22] mm: mark DEVICE_PUBLIC as broken To: Jason Gunthorpe Cc: John Hubbard , 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" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Ben Skeggs , "linux-pci@vger.kernel.org" , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 12:42 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: > > >>> > > ... > > >> Hum, so the only thing this config does is short circuit here: > > >> > > >> static inline bool is_device_public_page(const struct page *page) > > >> { > > >> return IS_ENABLED(CONFIG_DEV_PAGEMAP_OPS) && > > >> IS_ENABLED(CONFIG_DEVICE_PUBLIC) && > > >> is_zone_device_page(page) && > > >> page->pgmap->type == MEMORY_DEVICE_PUBLIC; > > >> } > > >> > > >> Which is called all over the place.. > > > > > > yes but the earlier patch: > > > > > > [PATCH 03/22] mm: remove hmm_devmem_add_resource > > > > > > Removes the only place type is set to MEMORY_DEVICE_PUBLIC. > > > > > > 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 expect marking it CONFIG_BROKEN with the threat of deleting it if no patches show up *is* the encouragement.