Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp579501pxa; Fri, 21 Aug 2020 15:11:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx883ZpEvjd9j7pKpnKyrqorFSAsZFB6mm0kZjeT8wBAmrOY7dNo8HsJgEOY3H09RwlCFZ4 X-Received: by 2002:a17:906:2796:: with SMTP id j22mr5269068ejc.532.1598047876065; Fri, 21 Aug 2020 15:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598047876; cv=none; d=google.com; s=arc-20160816; b=mVh+cDaXLjqFPonRUIk23YPGhIWFXCrkSmQ7xt6zUqXu9t9xdOPmPuPHmlj3+u2e7J 7wKlvCmRclniagRU5j8I7W7BZ288IEE63d2XNg2Fs89z+/+/uqT78qTMDA7p/Y0MfHWc HHE1RqEQDgKMI2f4Vc7o3ZQQsg97VmyJhPeIBtmIGIoipT8Dm8UCXhlcCCBxU5/8eNBQ SrUxOqxXZRnFWdYhVYrQV2NRKx9IFzPfMGHz6Pj3O9fS+sYp1iyeCCtOldVwZVbCH5SH ttOCVVP5N0xWkbxWjUnYPdkz2njWGw10i+n0+0hK7/ANEKZSgZv7dBISYsbQISXmOFA6 86RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=6/wi0Nw+OScWqjXUa7deT7et3gd07Go77zu0NJl9auw=; b=0JOWFWswL6uWOsdJVdyer5OppCaJYCMjqxTI21E65wF2F6ilQIIxa/UW7f/x3H8eFT ig4ki+QsqWkGAunl/LCbb8rxvUVmka0ZZ4eFAJQs04Cn1liLIqukpgr+3V0n2AKx4m1U f2E3OOJ7+qC666QErGjBU58bhwLajhS4eHUjZSk2fQWX2eRJWkklG85ZmBrk8r1ZpNse 3AR3DAbXKd4nxTQsVfkvAOhOFnH39eeYut6uTGOEGYOnZSwYuV11KtkeMfljuRpnF1gc PIne110bRhY775BM1xC4lSw8g40X+4QSyzopw5lA32bTimsNineQ+ArU4wOwtCecwMbQ dIrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MYsbjoCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si1889348edj.290.2020.08.21.15.10.52; Fri, 21 Aug 2020 15:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MYsbjoCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbgHUWHw (ORCPT + 99 others); Fri, 21 Aug 2020 18:07:52 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:56393 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbgHUWHw (ORCPT ); Fri, 21 Aug 2020 18:07:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598047668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6/wi0Nw+OScWqjXUa7deT7et3gd07Go77zu0NJl9auw=; b=MYsbjoCfKxYBrBIEcPdxD/va7d/RYaj+d8dqRP+nWwLbfibxlme1jFrhSEUy+N78oIvECu xoshhUuptQT7npNuMrILO80V2Iao74OQeMYAJZdjZJUCbzjfNZTvwGpcjAlVIYn8gXor3r yq0wPEv6VYjcRMMzDLqgfvPUn3aKWe8= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-13-n3sGfE_4NnK3PcTgLvMa6A-1; Fri, 21 Aug 2020 18:07:47 -0400 X-MC-Unique: n3sGfE_4NnK3PcTgLvMa6A-1 Received: by mail-ej1-f72.google.com with SMTP id n12so1280259ejz.6 for ; Fri, 21 Aug 2020 15:07:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=6/wi0Nw+OScWqjXUa7deT7et3gd07Go77zu0NJl9auw=; b=IO30JZM3MkqLVFxKbiPZ/Htn5+nVlMBY9ANtaIj91wbLn3I35GaLdiongWubO3BLTT Qk3zQv+LU85sAEqkFu7HNWvkWEsk7FRSvIfc4E4l2UsV8Zb7OBQEKlT7TVYSjXMkhYP7 tBOGDHj3mmw06waLn3kWQKbYZ00t0LBQnPQUhU1N0D1mqbwXsiv7T+90DTMU4L4H3Bct 3dM1yFWFIi2NJw0E1nQKpHhFX9eL0yjnelEj8JucfN9ZLaUdSdtYx66ZnIHwW6XW6rUb /dO9Z00b5vzWSTtgXmUpJnv37HvXFze0oO8ZfhfnMUD2MdnUWjw51u2x4SqsQ7sE16cF DiGg== X-Gm-Message-State: AOAM531yXiapHe6tHVfihCp4cTji2ahKIkF9bkLvGIUHtWgNYsZg8Otr JMc4mF84iTF/1R42Wr3pgrmvUH2K0pDqOy1pyUkapDH+PfN+xZJk+PPcl7ar9yNRKSM8/Gwge3m MaeEfjQ56luinNc8gJg8DPdbT X-Received: by 2002:a17:906:6d91:: with SMTP id h17mr4593068ejt.531.1598047665800; Fri, 21 Aug 2020 15:07:45 -0700 (PDT) X-Received: by 2002:a17:906:6d91:: with SMTP id h17mr4593016ejt.531.1598047665540; Fri, 21 Aug 2020 15:07:45 -0700 (PDT) Received: from [192.168.3.122] (p5b0c6231.dip0.t-ipconnect.de. [91.12.98.49]) by smtp.gmail.com with ESMTPSA id n10sm1810467edo.43.2020.08.21.15.07.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 15:07:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v4 00/23] device-dax: Support sub-dividing soft-reserved ranges Date: Fri, 21 Aug 2020 23:42:49 +0200 Message-Id: <1FB395E7-633D-4F3E-82F5-12E2FDAF33EC@redhat.com> References: <646DDE9B-90C2-493A-958C-90EFA1CCA475@redhat.com> Cc: Andrew Morton , Ira Weiny , Ard Biesheuvel , Mike Rapoport , Borislav Petkov , Vishal Verma , David Airlie , Will Deacon , Catalin Marinas , Ard Biesheuvel , Joao Martins , Tom Lendacky , Dave Jiang , "Rafael J. Wysocki" , Jonathan Cameron , Wei Yang , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Greg Kroah-Hartman , Pavel Tatashin , Peter Zijlstra , Ben Skeggs , Benjamin Herrenschmidt , Jason Gunthorpe , Jia He , Ingo Molnar , Dave Hansen , Paul Mackerras , Brice Goglin , Jeff Moyer , Michael Ellerman , "Rafael J. Wysocki" , Daniel Vetter , Andy Lutomirski , "Rafael J. Wysocki" , Linux MM , linux-nvdimm , Linux Kernel Mailing List , Linux ACPI , Maling list - DRI developers In-Reply-To: <646DDE9B-90C2-493A-958C-90EFA1CCA475@redhat.com> To: Dan Williams X-Mailer: iPhone Mail (17G68) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 21.08.2020 um 23:34 schrieb David Hildenbrand : >=20 > =EF=BB=BF >=20 >>> Am 21.08.2020 um 23:17 schrieb Dan Williams : >>>=20 >>> =EF=BB=BFOn Fri, Aug 21, 2020 at 11:30 AM David Hildenbrand wrote: >>>=20 >>>> On 21.08.20 20:27, Dan Williams wrote: >>>> On Fri, Aug 21, 2020 at 3:15 AM David Hildenbrand wr= ote: >>>>>=20 >>>>>>>=20 >>>>>>> 1. On x86-64, e820 indicates "soft-reserved" memory. This memory is n= ot >>>>>>> automatically used in the buddy during boot, but remains untouched >>>>>>> (similar to pmem). But as it involves ACPI as well, it could also be= >>>>>>> used on arm64 (-e820), correct? >>>>>>=20 >>>>>> Correct, arm64 also gets the EFI support for enumerating memory this >>>>>> way. However, I would clarify that whether soft-reserved is given to >>>>>> the buddy allocator by default or not is the kernel's policy choice, >>>>>> "buddy-by-default" is ok and is what will happen anyways with older >>>>>> kernels on platforms that enumerate a memory range this way. >>>>>=20 >>>>> Is "soft-reserved" then the right terminology for that? It sounds very= >>>>> x86-64/e820 specific. Maybe a compressed for of "performance >>>>> differentiated memory" might be a better fit to expose to user space, n= o? >>>>=20 >>>> No. The EFI "Specific Purpose" bit is an attribute independent of >>>> e820, it's x86-Linux that entangles those together. There is no >>>> requirement for platform firmware to use that designation even for >>>> drastic performance differentiation between ranges, and conversely >>>> there is no requirement that memory *with* that designation has any >>>> performance difference compared to the default memory pool. So it >>>> really is a reservation policy about a memory range to keep out of the >>>> buddy allocator by default. >>>=20 >>> Okay, still "soft-reserved" is x86-64 specific, no? >>=20 >> There's nothing preventing other EFI archs, or a similar designation >> in another firmware spec, picking up this policy. >>=20 >>> (AFAIK, >>> "soft-reserved" will be visible in /proc/iomem, or am I confusing >>> stuff?) >>=20 >> No, you're correct. >>=20 >>> IOW, it "performance differentiated" is not universally >>> applicable, maybe "specific purpose memory" is ? >>=20 >> Those bikeshed colors don't seem an improvement to me. >>=20 >> "Soft-reserved" actually tells you something about the kernel policy >> for the memory. The criticism of "specific purpose" that led to >> calling it "soft-reserved" in Linux is the fact that "specific" is >> undefined as far as the firmware knows, and "specific" may have >> different applications based on the platform user. "Soft-reserved" >> like "Reserved" tells you that a driver policy might be in play for >> that memory. >>=20 >> Also note that the current color of the bikeshed has already shipped sinc= e v5.5: >>=20 >> 262b45ae3ab4 x86/efi: EFI soft reservation to E820 enumeration >>=20 >=20 > I was asking because I was struggling to even understand what =E2=80=9Esof= t-reserved=E2=80=9C is and I could bet most people have no clue what that is= supposed to be. >=20 > In contrast =E2=80=9Epersistent memory=E2=80=9C or =E2=80=9Especial purpos= e memory=E2=80=9C in /proc/iomem is something normal (Linux using) human bei= ngs can understand. s/normal/most/ of course :)=