From patchwork Wed Aug 14 08:47:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 171245 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp533315ily; Wed, 14 Aug 2019 01:47:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlcyVoU6La69uskYUipgrbDEbshKRkUDY2YPNUWORN7HIlXlFJSidZHGpbzylQnuMNxATZ X-Received: by 2002:a17:902:f46:: with SMTP id 64mr41951348ply.235.1565772451589; Wed, 14 Aug 2019 01:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565772451; cv=none; d=google.com; s=arc-20160816; b=v95i+A/XFI1Wr7LRZqiAjc0RL0JMe4ipNIrDV/PZb9Ny2smCJYDWXcWBU0XuWJcD5f iNAXBI0urAdDPHwMU5n2Y+JVx2c08QxpxOKYZ0TFpD0xSg4kNFR7IqPanNhUnOHOJTOc klNqRAKKgRb6rM0AwFzSP73Po94qhbQ5rWS7vlZAMD5kb1+0j59Zq2T9Ct+Fvkj7bHPa LwiaHjZ7DVu8sXbWNOwYzBtIHFwywsF2iVBLi7aPjBSHrruh3d2UffjbZ8vSfvSLOnPK GmwN+Oq/Bw3wvddIctT47nUekeb0gnfhGmsF12AmaJBlMmf8XOqCca9v/BOgfJ1rfKaJ BA+Q== 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=nhBTzPiAh76rFSqD3RgV5Fc/Rc/js7/1NHg4vASXBMw=; b=pt4QHyrGr9xPdEynwB0i1Tex9wwk3sVK9MricTwsN5aXIvw3UofDQmfPIP3WUwl93O Orb76RjCIaAHqAnQW0/qAEQHhtJXZDV6FGDvP1ND8p2pkSUNQJZgc4NIHNz9rRy5DCiX Aooc2eRL9+qVLy5nRBPY/O+aRKRHxmjYnWCbbIRm3R3Ru5TPWXq7XA7fG4GKJB5GRAz3 NJcGFY0dBnMKVd2dn1sofmFjbd1etZszkaaV0IZTpbOy0bzvkUn5DfSt+jgkm5cP4pfs fY/y+4J1oG6x+CNFqspOAE8kn2DIzfU3ZdM7LTLU9ZXKsBOsBCDElzmxHD5wr/FWt9An 1I3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZG6kJJ5; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id e17si33132850pgt.192.2019.08.14.01.47.31; Wed, 14 Aug 2019 01:47:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZG6kJJ5; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726500AbfHNIra (ORCPT + 16 others); Wed, 14 Aug 2019 04:47:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42583 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfHNIr3 (ORCPT ); Wed, 14 Aug 2019 04:47:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id b16so13590001wrq.9 for ; Wed, 14 Aug 2019 01:47:28 -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=nhBTzPiAh76rFSqD3RgV5Fc/Rc/js7/1NHg4vASXBMw=; b=vZG6kJJ57lN/wuH9pOAVOXk04wI6MnyqYfsOWZjtX01M20m3Pt7sQFUq73ecyR9Ze6 EalGx44GFSlcYL1VritONa3K38M7p+vNRMSHgdb1qZGJ5nF20L8VpBGwMTBep20Buxqr ruNDytF+bHPXedIrJA8X7LDb2aVRZn7EHeuCenZkjETpIWEMtekULk8VWAZn7BuvCdRw OiPHd2itYiP/NstLtIdG3E5g0Kd4S+IMUyJXzqCYCeiJPOkdPWaHFgY9ePXL+uhpyqqd MOfWzCs0NvGaH+Qj6lSet8GdemyThteinc/u3hmiecjoe6oQWIG2uEV+njXEwElA2bq0 W/+A== 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=nhBTzPiAh76rFSqD3RgV5Fc/Rc/js7/1NHg4vASXBMw=; b=TfiC4QZUpxyLGSAW2jPQfv2EQloK2tzQ4KklLJrOtOMitfeutZtkTX+wn33Mfk0wCE 1LvMzAvJoewrefFUjvdQiC068gnsc2hUe6hZOA9sT9CRC3rOh0soGvuTaSuYoi/5cTFT O3yn1HvPHx2kKGYv0L73JF3NzSOoeCgSzXepMHbWSkSICUb+Z2dYy5SiHcvJQtT0UhRE kFofN+ZsgvhEQJ6FxJLzRvJabGRME1f+p1bNgHQ3QJk5DLTyEAcISgGBL0Trqof817HL ICFKjXLDWC/2vb7VDXX+mGp9AtAN6dKX6+FyKki2IOYNUazzGe+Glw2sgqB1asQhGWPW pFag== X-Gm-Message-State: APjAAAW1YZWrjNOXi4b0ZBM/iMssU/yVwBCzA3ID48GtUjvSqFekmh9P XuBEpOlbbtQzbsa9wFUsXGM9SQ== X-Received: by 2002:adf:e4c3:: with SMTP id v3mr50762638wrm.107.1565772447225; Wed, 14 Aug 2019 01:47:27 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id u186sm7176141wmu.26.2019.08.14.01.47.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 01:47:26 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , Andy Gross , Aniket Masule , Stanimir Varbanov Subject: [PATCH 1/2] venus: use on-chip interconnect API Date: Wed, 14 Aug 2019 11:47:00 +0300 Message-Id: <20190814084701.25455-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190814084701.25455-1-stanimir.varbanov@linaro.org> References: <20190814084701.25455-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This aims to add a requests for bandwidth scaling depending on the resolution and framerate (macroblocks per second). The exact value ff the requested bandwidth is get from a pre-calculated tables for encoder and decoder. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 34 +++++++++++ drivers/media/platform/qcom/venus/core.h | 14 +++++ drivers/media/platform/qcom/venus/helpers.c | 67 ++++++++++++++++++++- 3 files changed, 114 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 0acc7576cc58..19cbe9d5d028 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -5,6 +5,7 @@ */ #include #include +#include #include #include #include @@ -239,6 +240,14 @@ static int venus_probe(struct platform_device *pdev) if (IS_ERR(core->base)) return PTR_ERR(core->base); + core->video_path = of_icc_get(dev, "video-mem"); + if (IS_ERR(core->video_path)) + return PTR_ERR(core->video_path); + + core->cpucfg_path = of_icc_get(dev, "cpu-cfg"); + if (IS_ERR(core->cpucfg_path)) + return PTR_ERR(core->cpucfg_path); + core->irq = platform_get_irq(pdev, 0); if (core->irq < 0) return core->irq; @@ -273,6 +282,10 @@ static int venus_probe(struct platform_device *pdev) if (ret) return ret; + ret = icc_set_bw(core->cpucfg_path, 0, kbps_to_icc(1000)); + if (ret) + return ret; + ret = hfi_create(core, &venus_core_ops); if (ret) return ret; @@ -355,6 +368,9 @@ static int venus_remove(struct platform_device *pdev) pm_runtime_put_sync(dev); pm_runtime_disable(dev); + icc_put(core->video_path); + icc_put(core->cpucfg_path); + v4l2_device_unregister(&core->v4l2_dev); return ret; @@ -464,9 +480,27 @@ static const struct freq_tbl sdm845_freq_table[] = { { 244800, 100000000 }, /* 1920x1080@30 */ }; +static const struct bw_tbl sdm845_bw_table_enc[] = { + { 1944000, 1612000, 0, 2416000, 0 }, /* 3840x2160@60 */ + { 972000, 951000, 0, 1434000, 0 }, /* 3840x2160@30 */ + { 489600, 723000, 0, 973000, 0 }, /* 1920x1080@60 */ + { 244800, 370000, 0, 495000, 0 }, /* 1920x1080@30 */ +}; + +static const struct bw_tbl sdm845_bw_table_dec[] = { + { 2073600, 3929000, 0, 5551000, 0 }, /* 4096x2160@60 */ + { 1036800, 1987000, 0, 2797000, 0 }, /* 4096x2160@30 */ + { 489600, 1040000, 0, 1298000, 0 }, /* 1920x1080@60 */ + { 244800, 530000, 0, 659000, 0 }, /* 1920x1080@30 */ +}; + static const struct venus_resources sdm845_res = { .freq_tbl = sdm845_freq_table, .freq_tbl_size = ARRAY_SIZE(sdm845_freq_table), + .bw_tbl_enc = sdm845_bw_table_enc, + .bw_tbl_enc_size = ARRAY_SIZE(sdm845_bw_table_enc), + .bw_tbl_dec = sdm845_bw_table_dec, + .bw_tbl_dec_size = ARRAY_SIZE(sdm845_bw_table_dec), .clks = {"core", "iface", "bus" }, .clks_num = 3, .max_load = 3110400, /* 4096x2160@90 */ diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index 959eaa550f4e..4b0eb4627ba0 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -26,10 +26,22 @@ struct reg_val { u32 value; }; +struct bw_tbl { + u32 mbs_per_sec; + u32 avg; + u32 peak; + u32 avg_10bit; + u32 peak_10bit; +}; + struct venus_resources { u64 dma_mask; const struct freq_tbl *freq_tbl; unsigned int freq_tbl_size; + const struct bw_tbl *bw_tbl_enc; + unsigned int bw_tbl_enc_size; + const struct bw_tbl *bw_tbl_dec; + unsigned int bw_tbl_dec_size; const struct reg_val *reg_tbl; unsigned int reg_tbl_size; const char * const clks[VIDC_CLKS_NUM_MAX]; @@ -114,6 +126,8 @@ struct venus_core { struct clk *core1_clk; struct clk *core0_bus_clk; struct clk *core1_bus_clk; + struct icc_path *video_path; + struct icc_path *cpucfg_path; struct video_device *vdev_dec; struct video_device *vdev_enc; struct v4l2_device v4l2_dev; diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index 1ad96c25ab09..f18458921f5d 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -5,6 +5,7 @@ */ #include #include +#include #include #include #include @@ -388,6 +389,65 @@ static u32 load_per_type(struct venus_core *core, u32 session_type) return mbs_per_sec; } +static void mbs_to_bw(struct venus_inst *inst, u32 mbs, u32 *avg, u32 *peak) +{ + const struct venus_resources *res = inst->core->res; + const struct bw_tbl *bw_tbl; + unsigned int num_rows, i; + + *avg = 0; + *peak = 0; + + if (mbs == 0) + return; + + if (inst->session_type == VIDC_SESSION_TYPE_ENC) { + num_rows = res->bw_tbl_enc_size; + bw_tbl = res->bw_tbl_enc; + } else if (inst->session_type == VIDC_SESSION_TYPE_DEC) { + num_rows = res->bw_tbl_dec_size; + bw_tbl = res->bw_tbl_dec; + } else { + return; + } + + if (!bw_tbl || num_rows == 0) + return; + + for (i = 0; i < num_rows; i++) { + if (mbs > bw_tbl[i].mbs_per_sec) + break; + + if (inst->dpb_fmt & HFI_COLOR_FORMAT_10_BIT_BASE) { + *avg = bw_tbl[i].avg_10bit; + *peak = bw_tbl[i].peak_10bit; + } else { + *avg = bw_tbl[i].avg; + *peak = bw_tbl[i].peak; + } + } +} + +static int load_scale_bw(struct venus_core *core) +{ + struct venus_inst *inst = NULL; + u32 mbs_per_sec, avg, peak, total_avg = 0, total_peak = 0; + + mutex_lock(&core->lock); + list_for_each_entry(inst, &core->instances, list) { + mbs_per_sec = load_per_instance(inst); + mbs_to_bw(inst, mbs_per_sec, &avg, &peak); + total_avg += avg; + total_peak += peak; + } + mutex_unlock(&core->lock); + + dev_dbg(core->dev, "total: avg_bw: %u, peak_bw: %u\n", + total_avg, total_peak); + + return icc_set_bw(core->video_path, total_avg, total_peak); +} + int venus_helper_load_scale_clocks(struct venus_core *core) { const struct freq_tbl *table = core->res->freq_tbl; @@ -431,10 +491,15 @@ int venus_helper_load_scale_clocks(struct venus_core *core) if (ret) goto err; + ret = load_scale_bw(core); + if (ret) + goto err; + return 0; err: - dev_err(dev, "failed to set clock rate %lu (%d)\n", freq, ret); + dev_err(dev, "failed to set clock rate %lu or bandwidth (%d)\n", + freq, ret); return ret; } EXPORT_SYMBOL_GPL(venus_helper_load_scale_clocks); From patchwork Wed Aug 14 08:47:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 171244 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp533326ily; Wed, 14 Aug 2019 01:47:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMrPFY/EKqxMpBN4NmeOlI8e5QvDi0hlC+pJYnLEK1sgpY/sm5RRfkJh9cSbRg2cM2X5KW X-Received: by 2002:a17:90a:a897:: with SMTP id h23mr6190431pjq.44.1565772451938; Wed, 14 Aug 2019 01:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565772451; cv=none; d=google.com; s=arc-20160816; b=FnjtDbrebzCd9bYMKaU/q7LwDGg5RCuvpnSGNlnL7wS8bqY6n3U4CvjBNHir35qlC6 U2WA2DfoZDOyOVNQY5axLvfr177W26yVERYWggzpqkHcyoQgS4cOJmigqcWkWf2Tn5Dk eevPFh20fbHuY7yWP8sFzULdwNITcstoICH6gtHEulfzn3r3DaVreqtzTtabCf2jw8AY lOAsMPNz52n79U7IyiKsgR6HdeA+XGu6VcJNO51cKOnS9HejF22i6N0+tSsN0auEsrzs Ckhp/QmOiYkJ4DVUakyn5Z+iGFAdxgropcnpL7b/nkzQUaRb+70Thw6R8L+f5FJF1pj3 yMtw== 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=G0a6gblQbbIzUwDe3eeqwGYgG4v78FyPDrriBQXOIMg=; b=StF0Ys29eI99J6i5wHx3zMKVm1plz9cE67sM3y8EHPeRoz8FLjZbY/WW24AsfWq5+4 XvhnaRx9rfzUwg4+urtLJgP+8HtsGKcA/54q0sc6F1bZFEqB5nVTL7w57gjQ7EovRnw+ CCynQc9CGy3A0URsI8mKjJRMjh67fsZpvdFzRZKf2hr9jyuvXViQW3BmrksTFxyJUzhP ULjC8WHsNxdLVe4PxBg+88wVYgegqKu2iCyk/6JC+P2tVQulsFdgMZDr01/FtbZKGauM GhdmvIOTIjwM1TAaLzjcOpEMlVrO2y+W6uxn+vmOD0t7/BD4CGXhWr3GoIoB8G1w3Qsa RwXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvAJi7R+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id e17si33132850pgt.192.2019.08.14.01.47.31; Wed, 14 Aug 2019 01:47:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvAJi7R+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726373AbfHNIra (ORCPT + 16 others); Wed, 14 Aug 2019 04:47:30 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40540 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfHNIra (ORCPT ); Wed, 14 Aug 2019 04:47:30 -0400 Received: by mail-wr1-f65.google.com with SMTP id c3so2033917wrd.7 for ; Wed, 14 Aug 2019 01:47:29 -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=G0a6gblQbbIzUwDe3eeqwGYgG4v78FyPDrriBQXOIMg=; b=XvAJi7R+VJgktQ0Y82Eu13fxn0IhgnzTdR1XAVRk0J8aHkA3iRirsKSBrJswDtvYeR rp9rzEDjOTd52FqmXnDCmfSGxQSywri/wVFzQ0uORjEmQ54etjzyfIvNZ90oFTznREbd Zd2126UNTD0kqADU9JNleOQewo6FgmVzphll1AwAV8KzdNrHWhGxAFZPBpi5netMnRKl KjLUwGWrstW/0S8BsnFwOuaLU+rrs6eMhu81X04wwcFzxizG+GFBB5Zqb01i2giQkjSJ yJ05Zz5CNY2Hi2d6nqLvIuupt+twnnXDRN78kn8fP09GQJGiwns770ChGFo0dRVK9unw nBQA== 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=G0a6gblQbbIzUwDe3eeqwGYgG4v78FyPDrriBQXOIMg=; b=P+3FGagaBWaibdnzKtYUVZSV2eyOvfa5GsK6vJFqQJTS4wtHgDFyIRdGHR7+GeSEg0 X4NrgM7tOPin5UwLE5vc0bURPl4fJ7S9pDGCFkv2VyrWYEt37CHksBz+zhm74NuUPbXW kUjv3ESKlFDee27UsZI1VuXmWRDWD4/64XaZN0QWMxG1QtboyytE6/G6/X7O0zUzR5Yq ct+9fJ9h8E0yEAu4cRNyEI66lums8ib4REu/4iRPUZqsenqbc48pN2Ee5LeY54Iza4Df cF8zMmRxE+5x554HJ09CPvMkP9LQlR1AqkaXOBsCPa7QDMTPTx2jfTser7uBepLVDXcT hpjw== X-Gm-Message-State: APjAAAXDglIetNppeeVzKhwtOlU6ZSK/lLdywlajvONAz/zzfMU30o7p 9uRIAz2qk9gNeA/VRfeMvPZfmA== X-Received: by 2002:a5d:4206:: with SMTP id n6mr51359543wrq.110.1565772449309; Wed, 14 Aug 2019 01:47:29 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id u186sm7176141wmu.26.2019.08.14.01.47.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 01:47:28 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , Andy Gross , Aniket Masule , Stanimir Varbanov Subject: [PATCH 2/2] arm64: dts: sdm845: Add interconnect properties for Venus Date: Wed, 14 Aug 2019 11:47:01 +0300 Message-Id: <20190814084701.25455-3-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190814084701.25455-1-stanimir.varbanov@linaro.org> References: <20190814084701.25455-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Populate Venus DT node with interconnect properties. Signed-off-by: Stanimir Varbanov --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0323e3da190a..567bfc89bd77 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2039,6 +2039,9 @@ iommus = <&apps_smmu 0x10a0 0x8>, <&apps_smmu 0x10b0 0x0>; memory-region = <&venus_mem>; + interconnects = <&rsc_hlos MASTER_VIDEO_P0 &rsc_hlos SLAVE_EBI1>, + <&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_VENUS_CFG>; + interconnect-names = "video-mem", "cpu-cfg"; video-core0 { compatible = "venus-decoder";