mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
gpu: Remove unused host1x and tegra-drm drivers
The host1x and tegra-drm drivers located in the linux-nvidia repository are not referenced by any upper level Makefile and so are never compiled. Therefore, remove the unused host1x and tegra-drm drivers from the linux-nvidia repository. Bug 3156385 Change-Id: I770844f1255541628eb4fc962f1c19866cbae31b Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2435652 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
0761c746f9
commit
46b9df5186
@@ -1,13 +0,0 @@
|
||||
ccflags-y += -Idrivers/gpu/drm/tegra
|
||||
ccflags-y += -I$(srctree.nvidia)/drivers/gpu/drm/tegra
|
||||
|
||||
tegra-drm-t186-y = \
|
||||
vic_t186.o \
|
||||
nvenc_t186.o \
|
||||
nvdec_t186.o \
|
||||
nvjpg_t186.o \
|
||||
tsec_t186.o
|
||||
|
||||
ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
|
||||
obj-$(CONFIG_TEGRA_HOST1X) += tegra-drm-t186.o
|
||||
endif
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016-2020 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "drm.h"
|
||||
#include "nvdec_t186.h"
|
||||
|
||||
#include <linux/iommu.h>
|
||||
#include <soc/tegra/kfuse.h>
|
||||
|
||||
static int nvdec_load_streamid_regs(struct tegra_drm_client *client)
|
||||
{
|
||||
struct nvdec *nvdec = to_nvdec(client);
|
||||
int streamid = -EINVAL;
|
||||
|
||||
streamid = iommu_get_hwid(iommu_get_domain_for_dev(nvdec->dev), nvdec->dev, 0);
|
||||
|
||||
if (streamid >= 0) {
|
||||
nvdec_writel(nvdec, streamid, NVDEC_THI_STREAMID0);
|
||||
nvdec_writel(nvdec, streamid, NVDEC_THI_STREAMID1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvdec_finalize_poweron(struct tegra_drm_client *client)
|
||||
{
|
||||
return tegra_kfuse_enable_sensing();
|
||||
}
|
||||
|
||||
static int nvdec_prepare_poweroff(struct tegra_drm_client *client)
|
||||
{
|
||||
tegra_kfuse_disable_sensing();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct tegra_drm_client_ops nvdec_t186_ops = {
|
||||
.open_channel = nvdec_open_channel,
|
||||
.close_channel = nvdec_close_channel,
|
||||
.submit = tegra_drm_submit,
|
||||
.load_regs = nvdec_load_streamid_regs,
|
||||
.finalize_poweron = nvdec_finalize_poweron,
|
||||
.prepare_poweroff = nvdec_prepare_poweroff,
|
||||
};
|
||||
|
||||
const struct nvdec_config nvdec_t186_config = {
|
||||
.ucode_name = "tegra18x/nvhost_nvdec030_ns.fw",
|
||||
.ucode_name_bl = "tegra18x/nvhost_nvdec_bl030_prod.fw",
|
||||
.ucode_name_ls = "tegra18x/nvhost_nvdec030_prod.fw",
|
||||
.drm_client_ops = &nvdec_t186_ops,
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TEGRA_NVDEC_T186_H
|
||||
#define TEGRA_NVDEC_T186_H
|
||||
|
||||
#include "nvdec.h"
|
||||
|
||||
#define NVDEC_THI_STREAMID0 0x30
|
||||
#define NVDEC_THI_STREAMID1 0x34
|
||||
|
||||
extern const struct nvdec_config nvdec_t186_config;
|
||||
|
||||
#endif
|
||||
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016-2020 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "drm.h"
|
||||
#include "nvenc_t186.h"
|
||||
|
||||
#include <linux/iommu.h>
|
||||
|
||||
static int nvenc_load_streamid_regs(struct tegra_drm_client *client)
|
||||
{
|
||||
struct nvenc *nvenc = to_nvenc(client);
|
||||
int streamid = -EINVAL;
|
||||
|
||||
streamid = iommu_get_hwid(iommu_get_domain_for_dev(nvenc->dev), nvenc->dev, 0);
|
||||
|
||||
if (streamid >= 0) {
|
||||
nvenc_writel(nvenc, streamid, NVENC_THI_STREAMID0);
|
||||
nvenc_writel(nvenc, streamid, NVENC_THI_STREAMID1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct tegra_drm_client_ops nvenc_t186_ops = {
|
||||
.open_channel = nvenc_open_channel,
|
||||
.close_channel = nvenc_close_channel,
|
||||
.submit = tegra_drm_submit,
|
||||
.load_regs = nvenc_load_streamid_regs,
|
||||
};
|
||||
|
||||
const struct nvenc_config nvenc_t186_config = {
|
||||
.ucode_name = "tegra18x/nvhost_nvenc061.fw",
|
||||
.drm_client_ops = &nvenc_t186_ops,
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TEGRA_NVENC_T186_H
|
||||
#define TEGRA_NVENC_T186_H
|
||||
|
||||
#include "nvenc.h"
|
||||
|
||||
#define NVENC_THI_STREAMID0 0x30
|
||||
#define NVENC_THI_STREAMID1 0x34
|
||||
|
||||
extern const struct nvenc_config nvenc_t186_config;
|
||||
|
||||
#endif
|
||||
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016-2020 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "drm.h"
|
||||
#include "nvjpg_t186.h"
|
||||
|
||||
#include <linux/iommu.h>
|
||||
|
||||
static int nvjpg_load_streamid_regs(struct tegra_drm_client *client)
|
||||
{
|
||||
struct nvjpg *nvjpg = to_nvjpg(client);
|
||||
int streamid = -EINVAL;
|
||||
|
||||
streamid = iommu_get_hwid(iommu_get_domain_for_dev(nvjpg->dev), nvjpg->dev, 0);
|
||||
|
||||
if (streamid >= 0) {
|
||||
nvjpg_writel(nvjpg, streamid, NVJPG_THI_STREAMID0);
|
||||
nvjpg_writel(nvjpg, streamid, NVJPG_THI_STREAMID1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct tegra_drm_client_ops nvjpg_t186_ops = {
|
||||
.open_channel = nvjpg_open_channel,
|
||||
.close_channel = nvjpg_close_channel,
|
||||
.submit = tegra_drm_submit,
|
||||
.load_regs = nvjpg_load_streamid_regs,
|
||||
};
|
||||
|
||||
const struct nvjpg_config nvjpg_t186_config = {
|
||||
.ucode_name = "tegra18x/nvhost_nvjpg011.fw",
|
||||
.drm_client_ops = &nvjpg_t186_ops,
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TEGRA_NVJPG_T186_H
|
||||
#define TEGRA_NVJPG_T186_H
|
||||
|
||||
#include "nvjpg.h"
|
||||
|
||||
#define NVJPG_THI_STREAMID0 0x30
|
||||
#define NVJPG_THI_STREAMID1 0x34
|
||||
|
||||
extern const struct nvjpg_config nvjpg_t186_config;
|
||||
|
||||
#endif
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016-2020 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "drm.h"
|
||||
#include "tsec_t186.h"
|
||||
|
||||
#include <linux/iommu.h>
|
||||
|
||||
static int tsec_load_streamid_regs(struct tegra_drm_client *client)
|
||||
{
|
||||
struct tsec *tsec = to_tsec(client);
|
||||
int streamid = -EINVAL;
|
||||
|
||||
streamid = iommu_get_hwid(iommu_get_domain_for_dev(tsec->dev), tsec->dev, 0);
|
||||
|
||||
if (streamid >= 0) {
|
||||
tsec_writel(tsec, streamid, TSEC_THI_STREAMID0);
|
||||
tsec_writel(tsec, streamid, TSEC_THI_STREAMID1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct tegra_drm_client_ops tsec_t186_ops = {
|
||||
.open_channel = tsec_open_channel,
|
||||
.close_channel = tsec_close_channel,
|
||||
.submit = tegra_drm_submit,
|
||||
.load_regs = tsec_load_streamid_regs,
|
||||
};
|
||||
|
||||
const struct tsec_config tsec_t186_config = {
|
||||
.ucode_name = "tegra18x/nvhost_tsec.fw",
|
||||
.drm_client_ops = &tsec_t186_ops,
|
||||
.class_id = HOST1X_CLASS_TSEC,
|
||||
};
|
||||
|
||||
const struct tsec_config tsecb_t186_config = {
|
||||
.ucode_name = "tegra18x/nvhost_tsec.fw",
|
||||
.drm_client_ops = &tsec_t186_ops,
|
||||
.class_id = HOST1X_CLASS_TSECB,
|
||||
};
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TEGRA_TSEC_T186_H
|
||||
#define TEGRA_TSEC_T186_H
|
||||
|
||||
#include "tsec.h"
|
||||
|
||||
#define TSEC_THI_STREAMID0 0x30
|
||||
#define TSEC_THI_STREAMID1 0x34
|
||||
|
||||
extern const struct tsec_config tsec_t186_config;
|
||||
extern const struct tsec_config tsecb_t186_config;
|
||||
|
||||
#endif
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016-2020 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "drm.h"
|
||||
#include "vic_t186.h"
|
||||
|
||||
#include <linux/iommu.h>
|
||||
|
||||
static int vic_load_streamid_regs(struct tegra_drm_client *client)
|
||||
{
|
||||
struct vic *vic = to_vic(client);
|
||||
int streamid = -EINVAL;
|
||||
|
||||
streamid = iommu_get_hwid(iommu_get_domain_for_dev(vic->dev), vic->dev, 0);
|
||||
|
||||
if (streamid >= 0) {
|
||||
vic_writel(vic, streamid, VIC_THI_STREAMID0);
|
||||
vic_writel(vic, streamid, VIC_THI_STREAMID1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct tegra_drm_client_ops vic_t186_ops = {
|
||||
.open_channel = vic_open_channel,
|
||||
.close_channel = vic_close_channel,
|
||||
.is_addr_reg = vic_is_addr_reg,
|
||||
.submit = tegra_drm_submit,
|
||||
.load_regs = vic_load_streamid_regs,
|
||||
};
|
||||
|
||||
const struct vic_config vic_t186_config = {
|
||||
.ucode_name = "tegra18x/vic04_ucode.bin",
|
||||
.drm_client_ops = &vic_t186_ops,
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TEGRA_VIC_T186_H
|
||||
#define TEGRA_VIC_T186_H
|
||||
|
||||
#include "vic.h"
|
||||
|
||||
#define VIC_THI_STREAMID0 0x30
|
||||
#define VIC_THI_STREAMID1 0x34
|
||||
|
||||
extern const struct vic_config vic_t186_config;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user