From patchwork Fri May 1 07:39:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 186021 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: 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 (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: 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 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 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> 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 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 --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 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 {