Commit 997149b8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

Merge tag 'tag-venus-for-v6.2' of git://linuxtv.org/svarbanov/media_tree into media_stage

Venus updates for v6.2

* tag 'tag-venus-for-v6.2' of git://linuxtv.org/svarbanov/media_tree:
  venus: pm_helpers: Fix error check in vcodec_domains_get()
  venus: firmware: Correct assertion of reset bit on remote processor
  venus: firmware: Correct non-pix start and end addresses
  venus: firmware: Correct reset bit
  MAINTAINERS: Change email for Venus driver
  MAINTAINERS: Add Vikash as VENUS video driver co-maintainer
parents 1e284ea9 0f6e8d8c
...@@ -17175,7 +17175,8 @@ F: Documentation/devicetree/bindings/thermal/qcom-tsens.yaml ...@@ -17175,7 +17175,8 @@ F: Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
F: drivers/thermal/qcom/ F: drivers/thermal/qcom/
QUALCOMM VENUS VIDEO ACCELERATOR DRIVER QUALCOMM VENUS VIDEO ACCELERATOR DRIVER
M: Stanimir Varbanov <stanimir.varbanov@linaro.org> M: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
M: Vikash Garodia <quic_vgarodia@quicinc.com>
L: linux-media@vger.kernel.org L: linux-media@vger.kernel.org
L: linux-arm-msm@vger.kernel.org L: linux-arm-msm@vger.kernel.org
S: Maintained S: Maintained
......
...@@ -38,8 +38,8 @@ static void venus_reset_cpu(struct venus_core *core) ...@@ -38,8 +38,8 @@ static void venus_reset_cpu(struct venus_core *core)
writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR); writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR);
writel(0, wrapper_base + WRAPPER_CPA_START_ADDR); writel(0, wrapper_base + WRAPPER_CPA_START_ADDR);
writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR); writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR);
writel(fw_size, wrapper_base + WRAPPER_NONPIX_START_ADDR); writel(0, wrapper_base + WRAPPER_NONPIX_START_ADDR);
writel(fw_size, wrapper_base + WRAPPER_NONPIX_END_ADDR); writel(0, wrapper_base + WRAPPER_NONPIX_END_ADDR);
if (IS_V6(core)) { if (IS_V6(core)) {
/* Bring XTSS out of reset */ /* Bring XTSS out of reset */
...@@ -68,9 +68,11 @@ int venus_set_hw_state(struct venus_core *core, bool resume) ...@@ -68,9 +68,11 @@ int venus_set_hw_state(struct venus_core *core, bool resume)
venus_reset_cpu(core); venus_reset_cpu(core);
} else { } else {
if (IS_V6(core)) if (IS_V6(core))
writel(1, core->wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET); writel(WRAPPER_XTSS_SW_RESET_BIT,
core->wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET);
else else
writel(1, core->wrapper_base + WRAPPER_A9SS_SW_RESET); writel(WRAPPER_A9SS_SW_RESET_BIT,
core->wrapper_base + WRAPPER_A9SS_SW_RESET);
} }
return 0; return 0;
...@@ -179,17 +181,15 @@ static int venus_shutdown_no_tz(struct venus_core *core) ...@@ -179,17 +181,15 @@ static int venus_shutdown_no_tz(struct venus_core *core)
if (IS_V6(core)) { if (IS_V6(core)) {
/* Assert the reset to XTSS */ /* Assert the reset to XTSS */
reg = readl_relaxed(wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET); reg = readl(wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET);
reg |= WRAPPER_XTSS_SW_RESET_BIT; reg |= WRAPPER_XTSS_SW_RESET_BIT;
writel_relaxed(reg, wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET); writel(reg, wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET);
} else { } else {
/* Assert the reset to ARM9 */ /* Assert the reset to ARM9 */
reg = readl_relaxed(wrapper_base + WRAPPER_A9SS_SW_RESET); reg = readl(wrapper_base + WRAPPER_A9SS_SW_RESET);
reg |= WRAPPER_A9SS_SW_RESET_BIT; reg |= WRAPPER_A9SS_SW_RESET_BIT;
writel_relaxed(reg, wrapper_base + WRAPPER_A9SS_SW_RESET); writel(reg, wrapper_base + WRAPPER_A9SS_SW_RESET);
} }
/* Make sure reset is asserted before the mapping is removed */
mb();
iommu = core->fw.iommu_domain; iommu = core->fw.iommu_domain;
......
...@@ -869,8 +869,8 @@ static int vcodec_domains_get(struct venus_core *core) ...@@ -869,8 +869,8 @@ static int vcodec_domains_get(struct venus_core *core)
for (i = 0; i < res->vcodec_pmdomains_num; i++) { for (i = 0; i < res->vcodec_pmdomains_num; i++) {
pd = dev_pm_domain_attach_by_name(dev, pd = dev_pm_domain_attach_by_name(dev,
res->vcodec_pmdomains[i]); res->vcodec_pmdomains[i]);
if (IS_ERR(pd)) if (IS_ERR_OR_NULL(pd))
return PTR_ERR(pd); return PTR_ERR(pd) ? : -ENODATA;
core->pmdomains[i] = pd; core->pmdomains[i] = pd;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment