]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
isomgr: remove vi client
authorKrishna Sitaraman <ksitaraman@nvidia.com>
Thu, 26 Jan 2017 01:43:18 +0000 (17:43 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 16 Feb 2017 13:17:54 +0000 (05:17 -0800)
All ISO bandwidth required by camera is reserved through the
TEGRA_ISO_CLIENT_TEGRA_CAMERA. VI client is not used by camera
software. This patch removes TEGRA_ISO_CLIENT_TEGRA_VI for t18x
and moves ISO bandwidth restriction on vi hardware to camera client.

Bug 200239357
Bug 1755923
Bug 200267652

Change-Id: I165bafee38e747db220ba8e33868481a487602e5
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/1294782
(cherry picked from commit af92b528061e728493a61237c0b65e768356120b)
Reviewed-on: http://git-master/r/1300487
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Tested-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
drivers/platform/tegra/mc/isomgr.c

index df102cd8c03571befefabe8285d985451eb2876f..8bc1e18e6204599daeae5a4bffe950b240bb6f46 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/isomgr.c
  *
- * Copyright (c) 2012-2016, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2012-2017, NVIDIA CORPORATION. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -294,11 +294,6 @@ static struct isoclient_info tegra18x_isoclients[] = {
                .name = "disp_2",
                .bwmgr_id = TEGRA_BWMGR_CLIENT_DISP2,
        },
-       {
-               .client = TEGRA_ISO_CLIENT_VI_0,
-               .name = "vi_0",
-               .bwmgr_id = TEGRA_BWMGR_CLIENT_VI,
-       },
        {
                .client = TEGRA_ISO_CLIENT_ISP_A,
                .name = "isp_a",
@@ -438,8 +433,7 @@ static struct isoclient_info *get_iso_client_info(int *length)
                cinfo = tegra18x_isoclients;
                len = ARRAY_SIZE(tegra18x_isoclients);
                for (i = 0; i < TEGRA_ISO_CLIENT_COUNT; i++) {
-                       if ((i == TEGRA_ISO_CLIENT_VI_0) ||
-                                       (i == TEGRA_ISO_CLIENT_VI_1))
+                       if (i == TEGRA_ISO_CLIENT_TEGRA_CAMERA)
                                isomgr_clients[i].limit_bw_percentage = 10;
                        else
                                isomgr_clients[i].limit_bw_percentage = 100;