From patchwork Fri Oct 25 22:50:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 177797 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp168731ill; Fri, 25 Oct 2019 15:50:20 -0700 (PDT) X-Received: by 2002:a17:90a:5d85:: with SMTP id t5mr7007910pji.120.1572043820013; Fri, 25 Oct 2019 15:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572043820; cv=none; d=google.com; s=arc-20160816; b=f0BIyzGzCCmW8ETnNACt16hEpMea4kj7fAsz8nXclMNarc/Vrt4AkOXJ0i8tws+1WA XWNeFLYFAuhQSEpG2V3YHg2MlhH3BY81D9gq50CYG/QmHBJd20VWrqXxXDpYtxAfFMXJ AC1yuJQlJrCb0W79JYk50MyCI5tZkjiU6SOChu/DqHAcUUxvHz/XrCixgUnE5RDyaWg3 a+jE7bJM6inLNqzZcNoz4IDGZr+QD/dRJkZ3Wou5VN874fB3Gnb8z11Q3c0NcoYRqa7u XknsIFXGt6mjUUTtu6bcZFL12EzlcvXe7yUHHo2zaEueryU/KHTN25lk9QLXmNCfsyem eGNg== 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=osNStqGe/+pixQ+TIIwo4hgOQ0iCE+khF0tMpALPhbA=; b=vj+1D3shvwuArv26GvcGTxSmBr8FOE+RazBgjdu/DcxKXMjaGiNkXLj9aoIowfpAsQ FdDZRKLzGwUrqZXxrQ6qgx5MdLniKfLpdZAGnBZTGmxtmOERs1Bv+8+53rFskVgZ4LR7 k9OrmE/ymkcuuIOIkzerczWwfTIXx++2xIE8QvsRvpd6emQ3kQWw4iUfaJASJRx9a/sA c/o7WdtFzyTf8gFRA1M3uIjbk7TRZP44e28Qa2PXDFidFVZGKjuME35tPEdI88wLVyIw qn1HUJvRfTgETBdSJn1X74obvoQGDeCIago6wvxd0TBczDQrSWWatHwV5wtnX3BSxUeo h7nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t7oj1A8/"; 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 98sor4848908plc.30.2019.10.25.15.50.19 for (Google Transport Security); Fri, 25 Oct 2019 15:50:19 -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="t7oj1A8/"; 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=osNStqGe/+pixQ+TIIwo4hgOQ0iCE+khF0tMpALPhbA=; b=t7oj1A8/ELwYNKEiPY/Pw18dHmD+od22U+4C5NhOE2wd5jiFHCseOjSRPgNDzrSyKq dPtd5CcVf9iIPtDONddh2eO4eP3j6pOkNRnByhXulltB5XaUZ4VBvTkOfFT3PuuTpbgR fm3I84wjJaEQhBPHt7WSbAUDubIimzLHWBCLSLWX5sMsbyrT3fCHo5F1xVc6KrpAYg6a AgjQBcwoRkdatjyjUVB6aSuWoLUrCrbKujOVSG/5gs8lzDyIeWuQNxGe2iKOkrtKXEpq 1wh9xGKkBGFWOlUKiBuDHcJfU/9wkfMXegJLC9PRvNvTK7V02u/r9lQ0YSfzf7FIX6cd JAlA== 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=osNStqGe/+pixQ+TIIwo4hgOQ0iCE+khF0tMpALPhbA=; b=hGyLe3zvEc4zMNZqdWbQC7MFXEWhwR+UySlGMTOXm7nu//qYZYpbpWxEPt59tWlwm6 Ykmc4jF3JjpwmPstDBP+5o5rDL3QxUut9Dw2iwGbJH7R9P1HfrctWiXxeDuJGgHi2Axv GPf8pEnLvRsd3qBQ5LtfvPJTK9Rdgw0VqSnFwKa/WfCM7zHrYYkfYsJ/ETYdszu8Q+Ai SrcBWba7kqBNvokrQ/sLoCegPJsdOCc/LX50oM7s5lDRZWCNt80D3eG7/Dcial6N5+GD vbcMwQNQgJPftmdwNjW5qyZHUwn3h2MFMvwUdRAvR0zMtxEVea2A6+T28A7cOMWAgbHG F8Lg== X-Gm-Message-State: APjAAAViGlYoLhKZS1VLmtEhhAS2Nbh3MCMElqMOTD9q8T9aQkh/Mxiq GwnwnsA9TrtCFfilErZNOxMf6G6a X-Google-Smtp-Source: APXvYqwEfPgMUzNALdpaZ7hIfRdBK9Sl+x7omJQowf6j1uRY6bjZJnZXHQcn0Yn6ut98Jyy0zAwi0g== X-Received: by 2002:a17:902:8a96:: with SMTP id p22mr6280974plo.272.1572043819516; Fri, 25 Oct 2019 15:50:19 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id o15sm2758018pjs.14.2019.10.25.15.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 15:50:19 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rob Herring , Mark Rutland , Laura Abbott , Benjamin Gaignard , Sumit Semwal , Liam Mark , Pratik Patel , Brian Starkey , "Andrew F . Davis" , Chenbo Feng , Alistair Strachan , Sandeep Patil , Hridya Valsaraju , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [RFC][PATCH 3/3] example: dts: hi3660-hikey960: Add dts entries to test cma heap binding Date: Fri, 25 Oct 2019 22:50:09 +0000 Message-Id: <20191025225009.50305-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025225009.50305-1-john.stultz@linaro.org> References: <20191025225009.50305-1-john.stultz@linaro.org> Adds example test entry to create and expose a camera cma region via the dmabuf heaps interface This isn't a patch I'm submitting to merge, but just an example of how this functionality can be used, which I've used for testing. Cc: Rob Herring Cc: Mark Rutland Cc: Laura Abbott Cc: Benjamin Gaignard Cc: Sumit Semwal Cc: Liam Mark Cc: Pratik Patel Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: Sandeep Patil Cc: Hridya Valsaraju Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 190ac29b9e2f..783c5b2abd2d 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -75,12 +75,23 @@ }; /* global autoconfigured region for contiguous allocations */ - linux,cma { + cma_default: linux,cma { compatible = "shared-dma-pool"; reg = <0x0 0x20C00000 0x0 0x4000000>; reusable; linux,cma-default; }; + + cma_camera: cma-camera { + compatible = "shared-dma-pool"; + reg = <0x0 0x24C00000 0x0 0x4000000>; + reusable; + }; + }; + + cma_heap { + compatible = "dmabuf-heap-cma"; + memory-region = <&cma_camera>; }; reboot-mode-syscon@32100000 {