Message ID | 20200501073949.120396-5-john.stultz@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patches@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp284909ilf; Fri, 1 May 2020 00:40:13 -0700 (PDT) X-Received: by 2002:a17:90a:343:: with SMTP id 3mr3203613pjf.178.1588318813570; Fri, 01 May 2020 00:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588318813; cv=none; d=google.com; s=arc-20160816; b=CJLTfFuvDyf01JE/UF9NGcz+P+GbzC0yjbmVJF95oK24Ja2sbcRPMVFgu/hYgQKSY6 T6PVS5Z8942of+9/GHJU4xxJi+Y02i2nQC9oEYxtpyDw8wOzc0/a0xY+ZrGpq9Ujrf0z auhccX6JR/V7dm7gYCjsxWC4wPnL5ctMsSLo+Haw39sBlccMDdty3t15XD93GulzCpjM W5cOlw1W/2JWxZjUb2B/2vruhqofiTwBvYsqgqy5zBZWCleD+cdTIVFhI8iLP1rjoaZ2 AnuahuP/B1v+3xXocIaTpsFeCfKw9P+9VmIY+eXPIZBVDIR1cOkqqK8SohptOeiC4vSA 5JLA== 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=QD+OM/IPa9x7hJvHclwxEGNJ9gIn9LRrmuc2cMqM+jk=; b=Jb2wfzdzke7eTUIvECjEdiiZjsFoug6wCjoGEUBJqPmKrp1EEHn4pD60AwPDmT/HPS Jym6xvCuD2cRlrx6f4Uu8hwNo3CL0OOoYtedbSlqsfQOV4AAYqTvzSW6xFSyqEfe16Jm J1+xFaFmSFCc7Q+zR+3/nWh/xgSAwdb2r/X5OiyW80Fo2CPQS5hTK3V6mu8sezFBunlH NQuOx4ydHMUiPM+aUJPOlwPBbzDMKUB9mI354q1EFkMMuXuedm8uz3SO1YzDbmr7Bweq i1kOaofU/3JHtF/p/XpJhqa2/vfGXkyof7T+gWgJ5H/HyFfbx5OXKAACwBk4iNoMfM1g qa+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uHgfP9cW; 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: <john.stultz@linaro.org> Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w185sor3113061pfb.43.2020.05.01.00.40.13 for <patches@linaro.org> (Google Transport Security); Fri, 01 May 2020 00:40:13 -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=uHgfP9cW; 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=QD+OM/IPa9x7hJvHclwxEGNJ9gIn9LRrmuc2cMqM+jk=; b=uHgfP9cWbKjgsICCn22DXY5E8YVkK4lR5mSH38oijVyLq+WDsYAckO411+fCRx4fSG 92T98KiXWYh/Veuu9k4mILrjo6zo4M8S4hPIn1pjXH4afDJRgMkF3HIHomYHPtbJ2CIT oHO3AozrS69KPbj/CTUAtS0sIYMkdKaiEqIvnSOR5NCG1ZOjYGvWsRTbWlGF2X+swrpU pF1SZxSAvCiYlvGEZHBmQuMPgM/YMkwvPoLMwh2SWAo7qUkc5ifkQoPpgJfJmVVL5VBG jEdBB2/STxwoSAR6Dj/ZZDJ0PZXyVaXxiFVJoKoWWEDCYQLst2EN08W0fE9yARqfug+f NI7w== 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=QD+OM/IPa9x7hJvHclwxEGNJ9gIn9LRrmuc2cMqM+jk=; b=fqJ2E5A7m47pCvX4hyRkWDIy2bUDH1ZfmWham9/9W0oGkFvEBuDKFon0mJrgtFffck n1ZwsGdXeqv8jWjGnwvBMb16R5kLRtQPo7XNEKutrM8Fg534ZFfMAA20rrTUkD2RBw8U x/pGIEf3qjq3vuVMWbr0HOl33u6HQK9y5fSpJ71waRAuCPz4Xdz8685pQIim6XqVVcPk 3othdAWXOm1cqZOBIXANJGi1rMnBcOF/fi+WInqiG+plixMZvvZpeyV6XqAuko2pgeyl 7+uSR9sMPrTYM3REbDlaD8RItq95VbuOtCJiSU1tx8h+QLAGJ1cmIUU+SBUdcw9mnV4Q 91JA== X-Gm-Message-State: AGi0PuZmGyOrsS7QGHPEl0k3D97X6kMmVZrOL2ioNExsiI+M1tDKdw7d 4tiRVfCknXh2JqMDne5cKO4WJUjS X-Google-Smtp-Source: APiQypIe0OyaYrak6ULk6jy1juCWPHfm+627JYy+N9jmFW5Ppc7wa4zxgW6OTSiIq3XBtubeLxsMWQ== X-Received: by 2002:a62:e113:: with SMTP id q19mr2839382pfh.107.1588318813249; Fri, 01 May 2020 00:40:13 -0700 (PDT) Return-Path: <john.stultz@linaro.org> 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.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 00:40:12 -0700 (PDT) From: John Stultz <john.stultz@linaro.org> To: lkml <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Rob Herring <robh+dt@kernel.org>, Sumit Semwal <sumit.semwal@linaro.org>, "Andrew F. Davis" <afd@ti.com>, Benjamin Gaignard <benjamin.gaignard@linaro.org>, Liam Mark <lmark@codeaurora.org>, Pratik Patel <pratikp@codeaurora.org>, Laura Abbott <labbott@redhat.com>, Brian Starkey <Brian.Starkey@arm.com>, Chenbo Feng <fengc@google.com>, Alistair Strachan <astrachan@google.com>, Sandeep Patil <sspatil@google.com>, Hridya Valsaraju <hridya@google.com>, Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Robin Murphy <robin.murphy@arm.com>, Andrew Morton <akpm@linux-foundation.org>, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org Subject: [RFC][PATCH 4/4] example: dts: hi3660-hikey960: Add dts entries to test cma heap binding Date: Fri, 1 May 2020 07:39:49 +0000 Message-Id: <20200501073949.120396-5-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> |
Series |
Support non-default CMA regions to the dmabuf heaps interface
|
expand
|
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index c0a6aad9593f..5eef1a76d51a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -81,6 +81,13 @@ reusable; linux,cma-default; }; + + cma_camera: cma-camera { + compatible = "shared-dma-pool"; + reg = <0x0 0x24C00000 0x0 0x4000000>; + reusable; + linux,cma-heap; + }; }; reboot-mode-syscon@32100000 {
Adds example test entry to create and expose a dummy "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 <robh+dt@kernel.org> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: "Andrew F. Davis" <afd@ti.com> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Liam Mark <lmark@codeaurora.org> Cc: Pratik Patel <pratikp@codeaurora.org> Cc: Laura Abbott <labbott@redhat.com> Cc: Brian Starkey <Brian.Starkey@arm.com> Cc: Chenbo Feng <fengc@google.com> Cc: Alistair Strachan <astrachan@google.com> Cc: Sandeep Patil <sspatil@google.com> Cc: Hridya Valsaraju <hridya@google.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-mm@kvack.org Signed-off-by: John Stultz <john.stultz@linaro.org> --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1