Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp397662ybz; Fri, 1 May 2020 00:41:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJ3mG4RpNs7VJr9QJPTh6SzOVtKT1qHR+3cSoRjaE/XUXv1FrgWMS1DGsQ6g+hX03w2rFRB X-Received: by 2002:a05:6402:286:: with SMTP id l6mr2467943edv.134.1588318906264; Fri, 01 May 2020 00:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588318906; cv=none; d=google.com; s=arc-20160816; b=M1M5J5O4lieix4gpBHegjcO9BQoMdt8B7vakFVGJsjpVLxFLOTTOppgQ0QCwaSlvPF SnIjNpgXhN8eHMm6btstf6kIEpWO+K0vfOJ4cF6WwOEwLYIKYbAQxkqsAkuWWjHqsooQ Jsj+/O9fGSsBZt2H7lCVtjAmo8FGeLOKHLh+ZA5xZQJ1vZeja43+V8DRvQ0ny1hZKy3s AFISZfAUjmdtrW62IHmEPs7ruQ24OZzAzgfgYzKUrepdOznUiJc/T+Zgc+cH5m4Ep+4Q lNUMe68EozJIvSKQuyps2zlJ1NiqkKhVNZ0PbV75AY2KfQHdrUxKYJpDqfK05HEySE5q XfNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=NSH9BerjJoV88xjF7QVK1SklBZqxZKa42SGy8GT/SY0=; b=n2FiveyjejkRne8Svgc+jmjo1ew8wD6WNudXUx++uaVhjM3FebeMrp1U3c+dk4kuTZ /7z7/405Im6qYeSdgp9f0yqvW0yEQsI70551s2AjmRD7/g3/6KQxgubKtnhs1Rg49wn8 o/gppeIggQD4vb/lMxCl2iSbMFIEqyPJzYnWCmXfmEFZLvT5u1//aP8OVNdpLpnRCBJ3 2D0CrhVsZikGXcmAJSeGMiov13sKfs7IrCc1YzRDwSjvSJvqhnHgljBXvAVhHD1YlLNO ieT+u5Bmea1QMJUqu0YArpBrMvvJFXngRjA0YXWWJhT3uQrv8FdyIkBxEHuJsIoSUnjA xV2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gMfRkU6y; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq20si1314057ejb.419.2020.05.01.00.41.23; Fri, 01 May 2020 00:41:46 -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=@linaro.org header.s=google header.b=gMfRkU6y; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728344AbgEAHkF (ORCPT + 99 others); Fri, 1 May 2020 03:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728332AbgEAHkE (ORCPT ); Fri, 1 May 2020 03:40:04 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 258C4C035495 for ; Fri, 1 May 2020 00:40:04 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id f15so3413970plr.3 for ; Fri, 01 May 2020 00:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NSH9BerjJoV88xjF7QVK1SklBZqxZKa42SGy8GT/SY0=; b=gMfRkU6y7H6ig9SB1voFB4Yprbz40Y65m2Mu8m2ApDv+jlMCQ2E6B9PMumov1+nGbF 45e9GP/a2A50GpZUNhd4HGTouy7LlSl5VzwQlUCMs1AXhJXwuMJcLarUGrUkRjxNS0+s CyzTAHjlmacCveMfha1bTwwkBCOPfUE7uuSPucD0Z+vxu1J/f4pWD34fBtGcMp6CN5j0 WMzgYCWeYRnk5hwW12qNNwjCMvrO4G4QzAW5V1SgWMWdDrFL1f6Szn68URsUfcJpdrLj vJQtM0xsiQq2qKPoVohGRHexTuBl0Itj2tNgGnXC3UD9PZdIeoJ518WZvDOK9dLvUKuk HzRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NSH9BerjJoV88xjF7QVK1SklBZqxZKa42SGy8GT/SY0=; b=CowKScXVq68EVKfZNYVqhKPpwhtKnNYF8YUBK8rTEr35LFf1g8hnDi/tEatSbG9Vr1 H+6SYFvww93IABfr/F0+D4D6jI+HWcNCcIz+HqHwFTV0RF/9ZNkGt059UlyvfECVBCAP CJrAbUIwqzGdkBeb8YbM/ZO0IGhK8/vae+9gBYX1bE163l4VX6HAdkl/qMobZl+HuLDx 3kUsH0M0U9IItBZ24Yj2xhW5+MEzFK2SIH3CB3B2brGdDMBf058sudTlsBVeqvWFhgM0 RDT7mm+uOfe2+TlLseUra2h6/NXXFTOszjcfK5v/hGjVVXk/IzaPOfFIS5en2S8NV81c LmmQ== X-Gm-Message-State: AGi0Pub6rwEUOjTr75ty60dKn16QlEp6AfsFZm9kWEAFFxlQONIh2DEz UZlmUmxvXpln/P7I+OdpTAADDw9Ll7Y= X-Received: by 2002:a17:90a:734b:: with SMTP id j11mr3082377pjs.108.1588318803469; Fri, 01 May 2020 00:40:03 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id w12sm1557841pfq.133.2020.05.01.00.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 00:40:03 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rob Herring , Sumit Semwal , "Andrew F. Davis" , Benjamin Gaignard , Liam Mark , Pratik Patel , Laura Abbott , Brian Starkey , Chenbo Feng , Alistair Strachan , Sandeep Patil , Hridya Valsaraju , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Andrew Morton , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org Subject: [RFC][PATCH 1/4] devicetree: bindings: Add linux,cma-heap tag for reserved memory Date: Fri, 1 May 2020 07:39:46 +0000 Message-Id: <20200501073949.120396-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200501073949.120396-1-john.stultz@linaro.org> References: <20200501073949.120396-1-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a linux,cma-heap property for CMA reserved memory regions, which will be used to allow the region to be exposed via the DMA-BUF Heaps interface Cc: Rob Herring Cc: Sumit Semwal Cc: "Andrew F. Davis" Cc: Benjamin Gaignard Cc: Liam Mark Cc: Pratik Patel Cc: Laura Abbott Cc: Brian Starkey Cc: Chenbo Feng Cc: Alistair Strachan Cc: Sandeep Patil Cc: Hridya Valsaraju Cc: Christoph Hellwig Cc: Marek Szyprowski Cc: Robin Murphy Cc: Andrew Morton Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-mm@kvack.org Signed-off-by: John Stultz --- .../devicetree/bindings/reserved-memory/reserved-memory.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt b/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt index bac4afa3b197..e97b6a4c3bc0 100644 --- a/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt +++ b/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt @@ -68,6 +68,9 @@ Linux implementation note: - If a "linux,cma-default" property is present, then Linux will use the region for the default pool of the contiguous memory allocator. +- If a "linux,cma-heap" property is present, then Linux will expose the + the CMA region via the DMA-BUF Heaps interface. + - If a "linux,dma-default" property is present, then Linux will use the region for the default pool of the consistent DMA allocator. -- 2.17.1