From patchwork Fri May 1 07:39:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 186018 Delivered-To: patches@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp284791ilf; Fri, 1 May 2020 00:40:03 -0700 (PDT) X-Received: by 2002:a17:90a:1743:: with SMTP id 3mr3223688pjm.106.1588318803856; Fri, 01 May 2020 00:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588318803; cv=none; d=google.com; s=arc-20160816; b=y7Utd1Kps2VcyNR0azVAWNCEMNkh6sRK3pxGZgvtJay1bgzTDGzgVqDbHAVM3Bz1aV UnCIx0FdNsmRL69G9hr0EGJnkzF7pGMQ+Z3dvWxJRQlMrePA0TjyNmwzhONJEHIjC7+Q FR+VIQlirDxC9y7YXpgHAEkiHlQHnrFC2vg5SteVgoGq9r+YedO7BseNC4jbe5ALGyVo VzNSTf8jEbSuy9EfC7hBCvQmsboAjxzXvWFUgteJ3HidCCO2pnPdIIVd1GI7gqsKpEnq adPtj+XtTdl93JL5a2vrKSzGWyrRJMwIY8ac9veJ2ewzYSnjwmXGgFEP7V70rzBMu1ic PRiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NSH9BerjJoV88xjF7QVK1SklBZqxZKa42SGy8GT/SY0=; b=GNUyWDYdi4BvUs5q4wcM/2xUwqCprJlI0CQiKnpyEDzzR9G3jQqDLmutoeL3tE0O75 jIZrnHEmWXBTYNZFF+IwX00wg63Xx28emAc0r1SmCNna0QJwmS4me5tEI9xutVoWw+gI yT/8bHdez9ztqSuW2bdmjShpKXxCiBWLUd8dmC6GbWsds6cGBjLtvjOGxFJSZhzYgs8o vNZ24BL2eyI0u1ZLXzJxO1RizAfA4hvHyUcNyXvgDF/BhfL41w1JypiFtYl/dvvkt23q d2F0o6jeWjXB/cDScK5SpDYmb3XZzTRJdqqeLF3ylll3suOtSO+oVJujZNeAUN4enuKy CiVg== 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 john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d3sor2635522pjl.15.2020.05.01.00.40.03 for (Google Transport Security); Fri, 01 May 2020 00:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gMfRkU6y; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=L2xwFVFgIwVVqavcNqxK0RMpyZaYE3Q0dwtGrApUXUbuz5wojTTnUGng5gDDIlobXd FT6e53gyMIaXNWgnoBURoSPit0jGAbzynEJHZfCW27JtEJGUlPC6f5JHmkf+l7xUKz/x bbKVU00Knc7o99XxYblx/toXT46U5uXjPTD6yvW0X3aENkeBmyFvjfTfVezTfDaOAQfP EvZ6KIRpjtj3F/YBGZve9kalh0FVulL4Q9nUDe8TBEg/LhCruNu2neSIohSLg77f5uo6 5wnUQ99I2jG9pQZGAk/GzUNJuHQd49pf5fJhl+udr533/c0cbblQIWJZN87tewUeLf89 wtvg== X-Gm-Message-State: AGi0PuaIJWMTduHCMeDEHagT0d6c9AJDPRRXfp6/fmouNwpLsBB1ZFYb O/MwWXaW0y9BBqeQqzEI6D5MKzCb X-Google-Smtp-Source: APiQypJx7E4+GSzc/77OGnxoI4XuIbUstaIsftZ+TRzVjzHs+hgtNb6KovPmKD4Pj3wjrWGJONPmuw== X-Received: by 2002:a17:90a:734b:: with SMTP id j11mr3082377pjs.108.1588318803469; Fri, 01 May 2020 00:40:03 -0700 (PDT) Return-Path: 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> 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(+) -- 2.17.1 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.