From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 021B8C433E0 for ; Thu, 21 May 2020 18:36:15 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75E5D207D3 for ; Thu, 21 May 2020 18:36:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.b="ZM0h1GWb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75E5D207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49SdcD39HLzDqt0 for ; Fri, 22 May 2020 04:36:12 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=intel.com (client-ip=2a00:1450:4864:20::644; helo=mail-ej1-x644.google.com; envelope-from=dan.j.williams@intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=ZM0h1GWb; dkim-atps=neutral Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49SdZ75KqbzDqrX for ; Fri, 22 May 2020 04:34:23 +1000 (AEST) Received: by mail-ej1-x644.google.com with SMTP id z5so10084846ejb.3 for ; Thu, 21 May 2020 11:34:23 -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=bZB73trM7JmhHu61hJTv3jHzEz2F1LugfJH/YUnVYqg=; b=ZM0h1GWbWile7S9kQ21W3BI/ip9+OMrHJQM/ajHArCqSOHsyg1dYmKoJFtj44pXod0 pwCSMuGGJZy9M1T+xesSJUXoYT1fHIG2ya7bms8M042L/YvVVLZhdlhMfHiSAJvcVvl5 wBk8KemIgKTFzuU/H/rr1Jwp7heVqhu00V0iZ/DX7nf4nTgs64/gbhC3vRrJzMNA/BRP lN11dlSr7OChTKcZjQ59FQuqVQYGvE1lrPSzErFh6SHR2ZrOcF5Cnh8IsvKvI/mAhbi5 SUvSN1YJNGeE1hPBIiD1+aatRedeMSFeggTjfMlUq27TUEb16fz5ByISYIt9JRWNRtZ1 D8nw== 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=bZB73trM7JmhHu61hJTv3jHzEz2F1LugfJH/YUnVYqg=; b=G1bNlqziE2Dif4qBw6fG66oNC8KmOOwpWqMZZGi/NbytQzKBDxkYTsDnwtuwF/RcLF etOM8T/3953FBq65MtoEsJrP4jTyK8OTAsoMKitMpTKntyf4NmmmlqzmV9GV9B7DKTON pIjtnpQOzwOsEvUM+W8kNjRr8SwUmmQh5v0uRcianG4qcPOzFNxRWtMOPtTBX2DLT4dd EXq5XRspgcPsdwPP/Nps3NFxmRxeZaOEno1CtnExUdmjTOtMs13EW/i1xfUPCKjmN9HC /a05SfpAKcbxZG2lbddyT2ave3wcpfKO9yqwHSvCWOmUzg1MQ6uiCpeHSuu2TqQ0NNrA 12Vw== X-Gm-Message-State: AOAM5306wpyR57DNpC+vQiHAbNYXhRCaoLd0GwUcPj5YGRwA4WdHo8mM t93uekzev5VzRCo+zXMfALyKnL/3AH9rwW3aL/E2TA== X-Google-Smtp-Source: ABdhPJwKsXh+titAh6DgDZ1r89xS/iYOoQMiDoMrFLMmmvU1QitGELpC8ydHrsAa6yiizxbaijdstcJLj1jjRajAA2w= X-Received: by 2002:a17:906:379b:: with SMTP id n27mr4691961ejc.432.1590086059384; Thu, 21 May 2020 11:34:19 -0700 (PDT) MIME-Version: 1.0 References: <20200513034705.172983-1-aneesh.kumar@linux.ibm.com> <20200513034705.172983-3-aneesh.kumar@linux.ibm.com> <87v9kspk3x.fsf@linux.ibm.com> <87d070f2vs.fsf@linux.ibm.com> In-Reply-To: From: Dan Williams Date: Thu, 21 May 2020 11:34:08 -0700 Message-ID: Subject: Re: [PATCH v2 3/5] libnvdimm/nvdimm/flush: Allow architecture to override the flush barrier To: Jeff Moyer Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-nvdimm , "Aneesh Kumar K.V" , Mikulas Patocka , alistair@popple.id.au, linuxppc-dev Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, May 21, 2020 at 7:39 AM Jeff Moyer wrote: > > Dan Williams writes: > > >> But I agree with your concern that if we have older kernel/applications > >> that continue to use `dcbf` on future hardware we will end up > >> having issues w.r.t powerfail consistency. The plan is what you outlined > >> above as tighter ecosystem control. Considering we don't have a pmem > >> device generally available, we get both kernel and userspace upgraded > >> to use these new instructions before such a device is made available. > > I thought power already supported NVDIMM-N, no? So are you saying that > those devices will continue to work with the existing flushing and > fencing mechanisms? > > > Ok, I think a compile time kernel option with a runtime override > > satisfies my concern. Does that work for you? > > The compile time option only helps when running newer kernels. I'm not > sure how you would even begin to audit userspace applications (keep in > mind, not every application is open source, and not every application > uses pmdk). I also question the merits of forcing the administrator to > make the determination of whether all applications on the system will > work properly. Really, you have to rely on the vendor to tell you the > platform is supported, and at that point, why put further hurdles in the > way? I'm thoroughly confused by this. I thought this was exactly the role of a Linux distribution vendor. ISVs qualify their application on a hardware-platform + distribution combination and the distribution owns picking ABI defaults like CONFIG_SYSFS_DEPRECATED regardless of whether they can guarantee that all apps are updated to the new semantics. The administrator is not forced, the administrator if afforded an override in the extreme case that they find an exception to what was qualified and need to override the distribution's compile-time choice. > > The decision to require different instructions on ppc is unfortunate, > but one I'm sure we have no control over. I don't see any merit in the > kernel disallowing MAP_SYNC access on these platforms. Ideally, we'd > have some way of ensuring older kernels don't work with these new > platforms, but I don't think that's possible. I see disabling MAP_SYNC as the more targeted form of "ensursing older kernels don't work. So I guess we agree that something should break when baseline assumptions change, we just don't yet agree on where that break should happen?