mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
684 lines
29 KiB
Diff
684 lines
29 KiB
Diff
From cd99d3bbdb16899a425716e672485e0cdc283245 Mon Sep 17 00:00:00 2001
|
|
From: Abhijit Kulkarni <kabhijit@codeaurora.org>
|
|
Date: Wed, 15 Jun 2016 10:30:50 -0700
|
|
Subject: msm: mdss: hide kernel addresses from unprevileged users
|
|
|
|
for printing kernel pointers which should be hidden from unprivileged
|
|
users, use %pK which evaluates whether kptr_restrict is set.
|
|
|
|
CRs-Fixed: 987021
|
|
Change-Id: Ie49eee9478f4657cfb2a994ba60da1ec4c356339
|
|
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
|
|
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
|
|
---
|
|
drivers/video/msm/mdss/mdp3.c | 16 ++++++++--------
|
|
drivers/video/msm/mdss/mdp3_ppp_hwio.c | 8 +++++---
|
|
drivers/video/msm/mdss/mdss_debug.c | 8 ++++----
|
|
drivers/video/msm/mdss/mdss_dsi.c | 14 +++++++-------
|
|
drivers/video/msm/mdss/mdss_dsi_host.c | 2 +-
|
|
drivers/video/msm/mdss/mdss_dsi_panel.c | 12 ++++++------
|
|
drivers/video/msm/mdss/mdss_fb.c | 6 +++---
|
|
drivers/video/msm/mdss/mdss_hdmi_tx.c | 6 +++---
|
|
drivers/video/msm/mdss/mdss_hdmi_util.c | 4 ++--
|
|
drivers/video/msm/mdss/mdss_mdp.c | 4 ++--
|
|
drivers/video/msm/mdss/mdss_mdp_debug.c | 6 +++---
|
|
drivers/video/msm/mdss/mdss_mdp_intf_cmd.c | 6 +++---
|
|
drivers/video/msm/mdss/mdss_mdp_intf_video.c | 6 +++---
|
|
drivers/video/msm/mdss/mdss_mdp_pipe.c | 2 +-
|
|
drivers/video/msm/mdss/mdss_mdp_pp.c | 14 +++++++-------
|
|
drivers/video/msm/mdss/mdss_mdp_util.c | 8 ++++----
|
|
drivers/video/msm/mdss/mdss_mdp_wb.c | 10 +++++-----
|
|
drivers/video/msm/mdss/mdss_util.c | 5 ++---
|
|
18 files changed, 69 insertions(+), 68 deletions(-)
|
|
|
|
diff --git a/drivers/video/msm/mdss/mdp3.c b/drivers/video/msm/mdss/mdp3.c
|
|
index 2a9c915..521eb7e 100644
|
|
--- a/drivers/video/msm/mdss/mdp3.c
|
|
+++ b/drivers/video/msm/mdss/mdp3.c
|
|
@@ -1096,7 +1096,7 @@ static int mdp3_res_init(void)
|
|
|
|
mdp3_res->ion_client = msm_ion_client_create(mdp3_res->pdev->name);
|
|
if (IS_ERR_OR_NULL(mdp3_res->ion_client)) {
|
|
- pr_err("msm_ion_client_create() return error (%p)\n",
|
|
+ pr_err("msm_ion_client_create() return error (%pK)\n",
|
|
mdp3_res->ion_client);
|
|
mdp3_res->ion_client = NULL;
|
|
return -EINVAL;
|
|
@@ -1528,7 +1528,7 @@ void mdp3_unmap_iommu(struct ion_client *client, struct ion_handle *handle)
|
|
mutex_lock(&mdp3_res->iommu_lock);
|
|
meta = mdp3_iommu_meta_lookup(table);
|
|
if (!meta) {
|
|
- WARN(1, "%s: buffer was never mapped for %p\n", __func__,
|
|
+ WARN(1, "%s: buffer was never mapped for %pK\n", __func__,
|
|
handle);
|
|
mutex_unlock(&mdp3_res->iommu_lock);
|
|
goto out;
|
|
@@ -1556,7 +1556,7 @@ static void mdp3_iommu_meta_add(struct mdp3_iommu_meta *meta)
|
|
} else if (meta->table > entry->table) {
|
|
p = &(*p)->rb_right;
|
|
} else {
|
|
- pr_err("%s: handle %p already exists\n", __func__,
|
|
+ pr_err("%s: handle %pK already exists\n", __func__,
|
|
entry->handle);
|
|
BUG();
|
|
}
|
|
@@ -1618,7 +1618,7 @@ static int mdp3_iommu_map_iommu(struct mdp3_iommu_meta *meta,
|
|
ret = iommu_map_range(domain, meta->iova_addr + padding,
|
|
table->sgl, size, prot);
|
|
if (ret) {
|
|
- pr_err("%s: could not map %pa in domain %p\n",
|
|
+ pr_err("%s: could not map %pa in domain %pK\n",
|
|
__func__, &meta->iova_addr, domain);
|
|
unmap_size = padding;
|
|
goto out2;
|
|
@@ -1741,12 +1741,12 @@ int mdp3_self_map_iommu(struct ion_client *client, struct ion_handle *handle,
|
|
}
|
|
} else {
|
|
if (iommu_meta->flags != iommu_flags) {
|
|
- pr_err("%s: handle %p is already mapped with diff flag\n",
|
|
+ pr_err("%s: handle %pK is already mapped with diff flag\n",
|
|
__func__, handle);
|
|
ret = -EINVAL;
|
|
goto out_unlock;
|
|
} else if (iommu_meta->mapped_size != iova_length) {
|
|
- pr_err("%s: handle %p is already mapped with diff len\n",
|
|
+ pr_err("%s: handle %pK is already mapped with diff len\n",
|
|
__func__, handle);
|
|
ret = -EINVAL;
|
|
goto out_unlock;
|
|
@@ -1868,7 +1868,7 @@ done:
|
|
data->addr += img->offset;
|
|
data->len -= img->offset;
|
|
|
|
- pr_debug("mem=%d ihdl=%p buf=0x%pa len=0x%x\n", img->memory_id,
|
|
+ pr_debug("mem=%d ihdl=%pK buf=0x%pa len=0x%x\n", img->memory_id,
|
|
data->srcp_ihdl, &data->addr, data->len);
|
|
} else {
|
|
mdp3_put_img(data, client);
|
|
@@ -2101,7 +2101,7 @@ static int mdp3_alloc(struct msm_fb_data_type *mfd)
|
|
return ret;
|
|
}
|
|
|
|
- pr_info("allocating %u bytes at %p (%lx phys) for fb %d\n",
|
|
+ pr_info("allocating %u bytes at %pK (%lx phys) for fb %d\n",
|
|
size, virt, phys, mfd->index);
|
|
|
|
mfd->fbi->screen_base = virt;
|
|
diff --git a/drivers/video/msm/mdss/mdp3_ppp_hwio.c b/drivers/video/msm/mdss/mdp3_ppp_hwio.c
|
|
index d8c4168..4317726 100644
|
|
--- a/drivers/video/msm/mdss/mdp3_ppp_hwio.c
|
|
+++ b/drivers/video/msm/mdss/mdp3_ppp_hwio.c
|
|
@@ -1291,7 +1291,8 @@ int config_ppp_op_mode(struct ppp_blit_op *blit_op)
|
|
bg_mdp_ops = 0;
|
|
}
|
|
pr_debug("BLIT FG Param Fmt %d (x %d,y %d,w %d,h %d), ROI(x %d,y %d, w\
|
|
- %d, h %d) Addr_P0 %p, Stride S0 %d Addr_P1 %p, Stride S1 %d\n",
|
|
+ %d, h %d) Addr_P0 %pK, Stride S0 %d Addr_P1 %pK,\
|
|
+ Stride S1 %d\n",
|
|
blit_op->src.color_fmt, blit_op->src.prop.x, blit_op->src.prop.y,
|
|
blit_op->src.prop.width, blit_op->src.prop.height,
|
|
blit_op->src.roi.x, blit_op->src.roi.y, blit_op->src.roi.width,
|
|
@@ -1299,14 +1300,15 @@ int config_ppp_op_mode(struct ppp_blit_op *blit_op)
|
|
blit_op->src.p1, blit_op->src.stride1);
|
|
if (blit_op->bg.p0 != blit_op->dst.p0)
|
|
pr_debug("BLIT BG Param Fmt %d (x %d,y %d,w %d,h %d), ROI(x %d,y %d, w\
|
|
- %d, h %d) Addr %p, Stride S0 %d Addr_P1 %p, Stride S1 %d\n",
|
|
+ %d, h %d) Addr %pK, Stride S0 %d Addr_P1 %pK,\
|
|
+ Stride S1 %d\n",
|
|
blit_op->bg.color_fmt, blit_op->bg.prop.x, blit_op->bg.prop.y,
|
|
blit_op->bg.prop.width, blit_op->bg.prop.height,
|
|
blit_op->bg.roi.x, blit_op->bg.roi.y, blit_op->bg.roi.width,
|
|
blit_op->bg.roi.height, blit_op->bg.p0, blit_op->bg.stride0,
|
|
blit_op->bg.p1, blit_op->bg.stride1);
|
|
pr_debug("BLIT FB Param Fmt %d (x %d,y %d,w %d,h %d), ROI(x %d,y %d, w\
|
|
- %d, h %d) Addr %p, Stride S0 %d Addr_P1 %p, Stride S1 %d\n",
|
|
+ %d, h %d) Addr %pK, Stride S0 %d Addr_P1 %pK, Stride S1 %d\n",
|
|
blit_op->dst.color_fmt, blit_op->dst.prop.x, blit_op->dst.prop.y,
|
|
blit_op->dst.prop.width, blit_op->dst.prop.height,
|
|
blit_op->dst.roi.x, blit_op->dst.roi.y, blit_op->dst.roi.width,
|
|
diff --git a/drivers/video/msm/mdss/mdss_debug.c b/drivers/video/msm/mdss/mdss_debug.c
|
|
index 3513540..15d7dea 100644
|
|
--- a/drivers/video/msm/mdss/mdss_debug.c
|
|
+++ b/drivers/video/msm/mdss/mdss_debug.c
|
|
@@ -178,7 +178,7 @@ static ssize_t panel_debug_base_reg_write(struct file *file,
|
|
for (i = 0; i < len; i++) {
|
|
p = buf + i * 3;
|
|
p[2] = 0;
|
|
- pr_debug("p[%d] = %p:%s\n", i, p, p);
|
|
+ pr_debug("p[%d] = %pK:%s\n", i, p, p);
|
|
cnt = sscanf(p, "%x", &tmp);
|
|
reg[i] = tmp;
|
|
pr_debug("reg[%d] = %x\n", i, (int)reg[i]);
|
|
@@ -1072,7 +1072,7 @@ void mdss_dump_reg(char __iomem *base, int len)
|
|
x4 = readl_relaxed(addr+0x4);
|
|
x8 = readl_relaxed(addr+0x8);
|
|
xc = readl_relaxed(addr+0xc);
|
|
- pr_info("%p : %08x %08x %08x %08x\n", addr, x0, x4, x8, xc);
|
|
+ pr_info("%pK : %08x %08x %08x %08x\n", addr, x0, x4, x8, xc);
|
|
addr += 16;
|
|
}
|
|
mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF);
|
|
@@ -1192,7 +1192,7 @@ static inline struct mdss_mdp_misr_map *mdss_misr_get_map(u32 block_id,
|
|
return NULL;
|
|
}
|
|
|
|
- pr_debug("MISR Module(%d) CTRL(0x%x) SIG(0x%x) intf_base(0x%p)\n",
|
|
+ pr_debug("MISR Module(%d) CTRL(0x%x) SIG(0x%x) intf_base(0x%pK)\n",
|
|
block_id, map->ctrl_reg, map->value_reg, intf_base);
|
|
return map;
|
|
}
|
|
@@ -1235,7 +1235,7 @@ int mdss_misr_set(struct mdss_data_type *mdata,
|
|
bool use_mdp_up_misr = false;
|
|
|
|
if (!mdata || !req || !ctl) {
|
|
- pr_err("Invalid input params: mdata = %p req = %p ctl = %p",
|
|
+ pr_err("Invalid input params: mdata = %pK req = %pK ctl = %pK",
|
|
mdata, req, ctl);
|
|
return -EINVAL;
|
|
}
|
|
diff --git a/drivers/video/msm/mdss/mdss_dsi.c b/drivers/video/msm/mdss/mdss_dsi.c
|
|
index 9d12dfb..62c6f12 100644
|
|
--- a/drivers/video/msm/mdss/mdss_dsi.c
|
|
+++ b/drivers/video/msm/mdss/mdss_dsi.c
|
|
@@ -471,7 +471,7 @@ static int mdss_dsi_off(struct mdss_panel_data *pdata, int power_state)
|
|
|
|
panel_info = &ctrl_pdata->panel_data.panel_info;
|
|
|
|
- pr_debug("%s+: ctrl=%p ndx=%d power_state=%d\n",
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d power_state=%d\n",
|
|
__func__, ctrl_pdata, ctrl_pdata->ndx, power_state);
|
|
|
|
if (power_state == panel_info->panel_power_state) {
|
|
@@ -559,7 +559,7 @@ int mdss_dsi_on(struct mdss_panel_data *pdata)
|
|
panel_data);
|
|
|
|
cur_power_state = pdata->panel_info.panel_power_state;
|
|
- pr_debug("%s+: ctrl=%p ndx=%d cur_power_state=%d\n", __func__,
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d cur_power_state=%d\n", __func__,
|
|
ctrl_pdata, ctrl_pdata->ndx, cur_power_state);
|
|
|
|
pinfo = &pdata->panel_info;
|
|
@@ -703,7 +703,7 @@ static int mdss_dsi_unblank(struct mdss_panel_data *pdata)
|
|
panel_data);
|
|
mipi = &pdata->panel_info.mipi;
|
|
|
|
- pr_debug("%s+: ctrl=%p ndx=%d cur_blank_state=%d\n", __func__,
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d cur_blank_state=%d\n", __func__,
|
|
ctrl_pdata, ctrl_pdata->ndx, pdata->panel_info.blank_state);
|
|
|
|
mdss_dsi_clk_ctrl(ctrl_pdata, DSI_ALL_CLKS, 1);
|
|
@@ -756,7 +756,7 @@ static int mdss_dsi_blank(struct mdss_panel_data *pdata, int power_state)
|
|
panel_data);
|
|
mipi = &pdata->panel_info.mipi;
|
|
|
|
- pr_debug("%s+: ctrl=%p ndx=%d power_state=%d\n",
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d power_state=%d\n",
|
|
__func__, ctrl_pdata, ctrl_pdata->ndx, power_state);
|
|
|
|
mdss_dsi_clk_ctrl(ctrl_pdata, DSI_ALL_CLKS, 1);
|
|
@@ -826,7 +826,7 @@ static int mdss_dsi_post_panel_on(struct mdss_panel_data *pdata)
|
|
ctrl_pdata = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s+: ctrl=%p ndx=%d\n", __func__,
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d\n", __func__,
|
|
ctrl_pdata, ctrl_pdata->ndx);
|
|
|
|
mdss_dsi_clk_ctrl(ctrl_pdata, DSI_ALL_CLKS, 1);
|
|
@@ -858,7 +858,7 @@ int mdss_dsi_cont_splash_on(struct mdss_panel_data *pdata)
|
|
ctrl_pdata = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s+: ctrl=%p ndx=%d\n", __func__,
|
|
+ pr_debug("%s+: ctrl=%pK ndx=%d\n", __func__,
|
|
ctrl_pdata, ctrl_pdata->ndx);
|
|
|
|
WARN((ctrl_pdata->ctrl_state & CTRL_STATE_PANEL_INIT),
|
|
@@ -1700,7 +1700,7 @@ int mdss_dsi_retrieve_ctrl_resources(struct platform_device *pdev, int mode,
|
|
return rc;
|
|
}
|
|
|
|
- pr_info("%s: ctrl_base=%p ctrl_size=%x phy_base=%p phy_size=%x\n",
|
|
+ pr_info("%s: ctrl_base=%pK ctrl_size=%x phy_base=%pK phy_size=%x\n",
|
|
__func__, ctrl->ctrl_base, ctrl->reg_size, ctrl->phy_io.base,
|
|
ctrl->phy_io.len);
|
|
|
|
diff --git a/drivers/video/msm/mdss/mdss_dsi_host.c b/drivers/video/msm/mdss/mdss_dsi_host.c
|
|
index ace2895..762cb55 100644
|
|
--- a/drivers/video/msm/mdss/mdss_dsi_host.c
|
|
+++ b/drivers/video/msm/mdss/mdss_dsi_host.c
|
|
@@ -97,7 +97,7 @@ void mdss_dsi_ctrl_init(struct device *ctrl_dev,
|
|
if (ctrl->mdss_util->register_irq(ctrl->dsi_hw))
|
|
pr_err("%s: mdss_register_irq failed.\n", __func__);
|
|
|
|
- pr_debug("%s: ndx=%d base=%p\n", __func__, ctrl->ndx, ctrl->ctrl_base);
|
|
+ pr_debug("%s: ndx=%d base=%pK\n", __func__, ctrl->ndx, ctrl->ctrl_base);
|
|
|
|
init_completion(&ctrl->dma_comp);
|
|
init_completion(&ctrl->mdp_comp);
|
|
diff --git a/drivers/video/msm/mdss/mdss_dsi_panel.c b/drivers/video/msm/mdss/mdss_dsi_panel.c
|
|
index 8c57c9b..b168769 100644
|
|
--- a/drivers/video/msm/mdss/mdss_dsi_panel.c
|
|
+++ b/drivers/video/msm/mdss/mdss_dsi_panel.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. 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 and
|
|
@@ -611,7 +611,7 @@ static int mdss_dsi_panel_on(struct mdss_panel_data *pdata)
|
|
ctrl = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s: ctrl=%p ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
+ pr_debug("%s: ctrl=%pK ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
|
|
if (pinfo->dcs_cmd_by_left) {
|
|
if (ctrl->ndx != DSI_CTRL_LEFT)
|
|
@@ -641,7 +641,7 @@ static int mdss_dsi_post_panel_on(struct mdss_panel_data *pdata)
|
|
ctrl = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s: ctrl=%p ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
+ pr_debug("%s: ctrl=%pK ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
|
|
pinfo = &pdata->panel_info;
|
|
if (pinfo->dcs_cmd_by_left) {
|
|
@@ -651,7 +651,7 @@ static int mdss_dsi_post_panel_on(struct mdss_panel_data *pdata)
|
|
|
|
on_cmds = &ctrl->post_panel_on_cmds;
|
|
|
|
- pr_debug("%s: ctrl=%p cmd_cnt=%d\n", __func__, ctrl, on_cmds->cmd_cnt);
|
|
+ pr_debug("%s: ctrl=%pK cmd_cnt=%d\n", __func__, ctrl, on_cmds->cmd_cnt);
|
|
|
|
if (on_cmds->cmd_cnt) {
|
|
msleep(50); /* wait for 3 vsync passed */
|
|
@@ -677,7 +677,7 @@ static int mdss_dsi_panel_off(struct mdss_panel_data *pdata)
|
|
ctrl = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s: ctrl=%p ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
+ pr_debug("%s: ctrl=%pK ndx=%d\n", __func__, ctrl, ctrl->ndx);
|
|
|
|
if (pinfo->dcs_cmd_by_left) {
|
|
if (ctrl->ndx != DSI_CTRL_LEFT)
|
|
@@ -708,7 +708,7 @@ static int mdss_dsi_panel_low_power_config(struct mdss_panel_data *pdata,
|
|
ctrl = container_of(pdata, struct mdss_dsi_ctrl_pdata,
|
|
panel_data);
|
|
|
|
- pr_debug("%s: ctrl=%p ndx=%d enable=%d\n", __func__, ctrl, ctrl->ndx,
|
|
+ pr_debug("%s: ctrl=%pK ndx=%d enable=%d\n", __func__, ctrl, ctrl->ndx,
|
|
enable);
|
|
|
|
/* Any panel specific low power commands/config */
|
|
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
|
|
index c06abd3..6f09747 100644
|
|
--- a/drivers/video/msm/mdss/mdss_fb.c
|
|
+++ b/drivers/video/msm/mdss/mdss_fb.c
|
|
@@ -1642,7 +1642,7 @@ int mdss_fb_alloc_fb_ion_memory(struct msm_fb_data_type *mfd, size_t fb_size)
|
|
goto fb_mmap_failed;
|
|
}
|
|
|
|
- pr_debug("alloc 0x%zuB vaddr = %p (%pa iova) for fb%d\n", fb_size,
|
|
+ pr_debug("alloc 0x%zuB vaddr = %pK (%pa iova) for fb%d\n", fb_size,
|
|
vaddr, &mfd->iova, mfd->index);
|
|
|
|
mfd->fbi->screen_base = (char *) vaddr;
|
|
@@ -1735,7 +1735,7 @@ static int mdss_fb_fbmem_ion_mmap(struct fb_info *info,
|
|
vma->vm_page_prot =
|
|
pgprot_writecombine(vma->vm_page_prot);
|
|
|
|
- pr_debug("vma=%p, addr=%x len=%ld\n",
|
|
+ pr_debug("vma=%pK, addr=%x len=%ld\n",
|
|
vma, (unsigned int)addr, len);
|
|
pr_debug("vm_start=%x vm_end=%x vm_page_prot=%ld\n",
|
|
(unsigned int)vma->vm_start,
|
|
@@ -1905,7 +1905,7 @@ static int mdss_fb_alloc_fbmem_iommu(struct msm_fb_data_type *mfd, int dom)
|
|
if (rc)
|
|
pr_warn("Cannot map fb_mem %pa to IOMMU. rc=%d\n", &phys, rc);
|
|
|
|
- pr_debug("alloc 0x%zxB @ (%pa phys) (0x%p virt) (%pa iova) for fb%d\n",
|
|
+ pr_debug("alloc 0x%zxB @ (%pa phys) (0x%pK virt) (%pa iova) for fb%d\n",
|
|
size, &phys, virt, &mfd->iova, mfd->index);
|
|
|
|
mfd->fbi->screen_base = virt;
|
|
diff --git a/drivers/video/msm/mdss/mdss_hdmi_tx.c b/drivers/video/msm/mdss/mdss_hdmi_tx.c
|
|
index 90f9267..140a460 100644
|
|
--- a/drivers/video/msm/mdss/mdss_hdmi_tx.c
|
|
+++ b/drivers/video/msm/mdss/mdss_hdmi_tx.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2010-2014,2016 The Linux Foundation. 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 and
|
|
@@ -1035,7 +1035,7 @@ static int hdmi_tx_sysfs_create(struct hdmi_tx_ctrl *hdmi_ctrl,
|
|
return rc;
|
|
}
|
|
hdmi_ctrl->kobj = &fbi->dev->kobj;
|
|
- DEV_DBG("%s: sysfs group %p\n", __func__, hdmi_ctrl->kobj);
|
|
+ DEV_DBG("%s: sysfs group %pK\n", __func__, hdmi_ctrl->kobj);
|
|
|
|
return 0;
|
|
} /* hdmi_tx_sysfs_create */
|
|
@@ -3556,7 +3556,7 @@ static int hdmi_tx_init_resource(struct hdmi_tx_ctrl *hdmi_ctrl)
|
|
DEV_DBG("%s: '%s' remap failed or not available\n",
|
|
__func__, hdmi_tx_io_name(i));
|
|
}
|
|
- DEV_INFO("%s: '%s': start = 0x%p, len=0x%x\n", __func__,
|
|
+ DEV_INFO("%s: '%s': start = 0x%pK, len=0x%x\n", __func__,
|
|
hdmi_tx_io_name(i), pdata->io[i].base,
|
|
pdata->io[i].len);
|
|
}
|
|
diff --git a/drivers/video/msm/mdss/mdss_hdmi_util.c b/drivers/video/msm/mdss/mdss_hdmi_util.c
|
|
index b40ff28..b50aee3 100644
|
|
--- a/drivers/video/msm/mdss/mdss_hdmi_util.c
|
|
+++ b/drivers/video/msm/mdss/mdss_hdmi_util.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2010-2014,2016 The Linux Foundation. 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 and
|
|
@@ -178,7 +178,7 @@ static void hdmi_ddc_print_data(struct hdmi_tx_ddc_data *ddc_data,
|
|
return;
|
|
}
|
|
|
|
- DEV_DBG("%s: buf=%p, d_len=0x%x, d_addr=0x%x, no_align=%d\n",
|
|
+ DEV_DBG("%s: buf=%pK, d_len=0x%x, d_addr=0x%x, no_align=%d\n",
|
|
caller, ddc_data->data_buf, ddc_data->data_len,
|
|
ddc_data->dev_addr, ddc_data->no_align);
|
|
DEV_DBG("%s: offset=0x%x, req_len=0x%x, retry=%d, what=%s\n",
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp.c b/drivers/video/msm/mdss/mdss_mdp.c
|
|
index 14514f3..3a53359 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp.c
|
|
@@ -1207,7 +1207,7 @@ static u32 mdss_mdp_res_init(struct mdss_data_type *mdata)
|
|
|
|
mdata->iclient = msm_ion_client_create(mdata->pdev->name);
|
|
if (IS_ERR_OR_NULL(mdata->iclient)) {
|
|
- pr_err("msm_ion_client_create() return error (%p)\n",
|
|
+ pr_err("msm_ion_client_create() return error (%pK)\n",
|
|
mdata->iclient);
|
|
mdata->iclient = NULL;
|
|
}
|
|
@@ -1526,7 +1526,7 @@ static int mdss_mdp_probe(struct platform_device *pdev)
|
|
if (rc)
|
|
pr_debug("unable to map MDSS VBIF non-realtime base\n");
|
|
else
|
|
- pr_debug("MDSS VBIF NRT HW Base addr=%p len=0x%x\n",
|
|
+ pr_debug("MDSS VBIF NRT HW Base addr=%pK len=0x%x\n",
|
|
mdata->vbif_nrt_io.base, mdata->vbif_nrt_io.len);
|
|
|
|
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_debug.c b/drivers/video/msm/mdss/mdss_mdp_debug.c
|
|
index 39230d1..9b1ab8d 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_debug.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_debug.c
|
|
@@ -1,5 +1,5 @@
|
|
/*
|
|
- * Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
|
+ * Copyright (c) 2014,2016 The Linux Foundation. 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 and
|
|
@@ -57,13 +57,13 @@ static void __dump_pipe(struct seq_file *s, struct mdss_mdp_pipe *pipe)
|
|
seq_puts(s, "Data:\n");
|
|
if (pipe->front_buf.num_planes) {
|
|
buf = pipe->front_buf.p;
|
|
- seq_printf(s, "\tfront_buf ihdl=0x%p addr=%pa size=%lu\n",
|
|
+ seq_printf(s, "\tfront_buf ihdl=0x%pK addr=%pa size=%lu\n",
|
|
buf->srcp_ihdl, &buf->addr, buf->len);
|
|
}
|
|
|
|
if (pipe->back_buf.num_planes) {
|
|
buf = pipe->back_buf.p;
|
|
- seq_printf(s, "\tback_buf ihdl=0x%p addr=%pa size=%lu\n",
|
|
+ seq_printf(s, "\tback_buf ihdl=0x%pK addr=%pa size=%lu\n",
|
|
buf->srcp_ihdl, &buf->addr, buf->len);
|
|
}
|
|
}
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_intf_cmd.c b/drivers/video/msm/mdss/mdss_mdp_intf_cmd.c
|
|
index 6f6fc91..b07b3c5 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_intf_cmd.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_intf_cmd.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2013-2016, The Linux Foundation. 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 and
|
|
@@ -581,7 +581,7 @@ static int mdss_mdp_cmd_wait4pingpong(struct mdss_mdp_ctl *ctl, void *arg)
|
|
ctx->rdptr_enabled, ctl->roi_bkup.w,
|
|
ctl->roi_bkup.h);
|
|
|
|
- pr_debug("%s: intf_num=%d ctx=%p koff_cnt=%d\n", __func__,
|
|
+ pr_debug("%s: intf_num=%d ctx=%pK koff_cnt=%d\n", __func__,
|
|
ctl->intf_num, ctx, atomic_read(&ctx->koff_cnt));
|
|
|
|
rc = wait_event_timeout(ctx->pp_waitq,
|
|
@@ -1164,7 +1164,7 @@ static int mdss_mdp_cmd_intfs_setup(struct mdss_mdp_ctl *ctl,
|
|
|
|
ctx->intf_stopped = 0;
|
|
|
|
- pr_debug("%s: ctx=%p num=%d mixer=%d\n", __func__,
|
|
+ pr_debug("%s: ctx=%pK num=%d mixer=%d\n", __func__,
|
|
ctx, ctx->pp_num, mixer->num);
|
|
MDSS_XLOG(ctl->num, atomic_read(&ctx->koff_cnt), ctx->clk_enabled,
|
|
ctx->rdptr_enabled);
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_intf_video.c b/drivers/video/msm/mdss/mdss_mdp_intf_video.c
|
|
index 2bc8a1d..9ce6885 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_intf_video.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_intf_video.c
|
|
@@ -116,7 +116,7 @@ int mdss_mdp_video_addr_setup(struct mdss_data_type *mdata,
|
|
|
|
for (i = 0; i < count; i++) {
|
|
head[i].base = mdata->mdss_io.base + offsets[i];
|
|
- pr_debug("adding Video Intf #%d offset=0x%x virt=%p\n", i,
|
|
+ pr_debug("adding Video Intf #%d offset=0x%x virt=%pK\n", i,
|
|
offsets[i], head[i].base);
|
|
head[i].ref_cnt = 0;
|
|
head[i].intf_num = i + MDSS_MDP_INTF0;
|
|
@@ -442,7 +442,7 @@ static int mdss_mdp_video_intfs_stop(struct mdss_mdp_ctl *ctl,
|
|
pr_err("Intf %d not in use\n", (inum + MDSS_MDP_INTF0));
|
|
return -ENODEV;
|
|
}
|
|
- pr_debug("stop ctl=%d video Intf #%d base=%p", ctl->num,
|
|
+ pr_debug("stop ctl=%d video Intf #%d base=%pK", ctl->num,
|
|
ctx->intf_num, ctx->base);
|
|
} else {
|
|
pr_err("Invalid intf number: %d\n", (inum + MDSS_MDP_INTF0));
|
|
@@ -1158,7 +1158,7 @@ static int mdss_mdp_video_intfs_setup(struct mdss_mdp_ctl *ctl,
|
|
(inum + MDSS_MDP_INTF0));
|
|
return -EBUSY;
|
|
}
|
|
- pr_debug("video Intf #%d base=%p", ctx->intf_num, ctx->base);
|
|
+ pr_debug("video Intf #%d base=%pK", ctx->intf_num, ctx->base);
|
|
ctx->ref_cnt++;
|
|
} else {
|
|
pr_err("Invalid intf number: %d\n", (inum + MDSS_MDP_INTF0));
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_pipe.c b/drivers/video/msm/mdss/mdss_mdp_pipe.c
|
|
index b747670..d8d01af 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_pipe.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_pipe.c
|
|
@@ -1739,7 +1739,7 @@ int mdss_mdp_pipe_queue_data(struct mdss_mdp_pipe *pipe,
|
|
}
|
|
|
|
if (src_data == NULL) {
|
|
- pr_debug("src_data=%p pipe num=%dx\n",
|
|
+ pr_debug("src_data=%pK pipe num=%dx\n",
|
|
src_data, pipe->num);
|
|
goto update_nobuf;
|
|
}
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_pp.c b/drivers/video/msm/mdss/mdss_mdp_pp.c
|
|
index 3cfa926..5065bc8 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_pp.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_pp.c
|
|
@@ -1,5 +1,5 @@
|
|
/*
|
|
- * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+ * Copyright (c) 2012-2016, The Linux Foundation. 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 and
|
|
@@ -2224,7 +2224,7 @@ static int pp_ad_calc_bl(struct msm_fb_data_type *mfd, int bl_in, int *bl_out,
|
|
pr_debug("AD not supported on device.\n");
|
|
return ret;
|
|
} else if (ret || !ad) {
|
|
- pr_err("Failed to get ad info: ret = %d, ad = 0x%p.\n",
|
|
+ pr_err("Failed to get ad info: ret = %d, ad = 0x%pK.\n",
|
|
ret, ad);
|
|
return ret;
|
|
}
|
|
@@ -2240,7 +2240,7 @@ static int pp_ad_calc_bl(struct msm_fb_data_type *mfd, int bl_in, int *bl_out,
|
|
|
|
if (!ad->bl_mfd || !ad->bl_mfd->panel_info ||
|
|
!ad->bl_att_lut) {
|
|
- pr_err("Invalid ad info: bl_mfd = 0x%p, ad->bl_mfd->panel_info = 0x%p, bl_att_lut = 0x%p\n",
|
|
+ pr_err("Invalid ad info: bl_mfd = 0x%pK, ad->bl_mfd->panel_info = 0x%pK, bl_att_lut = 0x%pK\n",
|
|
ad->bl_mfd,
|
|
(!ad->bl_mfd) ? NULL : ad->bl_mfd->panel_info,
|
|
ad->bl_att_lut);
|
|
@@ -3507,7 +3507,7 @@ static int pp_hist_enable(struct pp_hist_col_info *hist_info,
|
|
spin_lock_irqsave(&hist_info->hist_lock, flag);
|
|
if (hist_info->col_en) {
|
|
spin_unlock_irqrestore(&hist_info->hist_lock, flag);
|
|
- pr_info("%s Hist collection has already been enabled %p\n",
|
|
+ pr_info("%s Hist collection has already been enabled %pK\n",
|
|
__func__, hist_info->base);
|
|
goto exit;
|
|
}
|
|
@@ -3644,7 +3644,7 @@ static int pp_hist_disable(struct pp_hist_col_info *hist_info)
|
|
spin_lock_irqsave(&hist_info->hist_lock, flag);
|
|
if (hist_info->col_en == false) {
|
|
spin_unlock_irqrestore(&hist_info->hist_lock, flag);
|
|
- pr_debug("Histogram already disabled (%p)\n", hist_info->base);
|
|
+ pr_debug("Histogram already disabled (%pK)\n", hist_info->base);
|
|
ret = -EINVAL;
|
|
goto exit;
|
|
}
|
|
@@ -3758,7 +3758,7 @@ int mdss_mdp_hist_intr_req(struct mdss_intr *intr, u32 bits, bool en)
|
|
unsigned long flag;
|
|
int ret = 0;
|
|
if (!intr) {
|
|
- pr_err("NULL addr passed, %p\n", intr);
|
|
+ pr_err("NULL addr passed, %pK\n", intr);
|
|
return -EINVAL;
|
|
}
|
|
|
|
@@ -4512,7 +4512,7 @@ static int pp_ad_invalidate_input(struct msm_fb_data_type *mfd)
|
|
|
|
ret = mdss_mdp_get_ad(mfd, &ad);
|
|
if (ret || !ad) {
|
|
- pr_err("Fail to get ad: ret = %d, ad = 0x%p\n", ret, ad);
|
|
+ pr_err("Fail to get ad: ret = %d, ad = 0x%pK\n", ret, ad);
|
|
return -EINVAL;
|
|
}
|
|
pr_debug("AD backlight level changed (%d), trigger update to AD\n",
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_util.c b/drivers/video/msm/mdss/mdss_mdp_util.c
|
|
index c62acf3..926dfde 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_util.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_util.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. 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 and
|
|
@@ -507,7 +507,7 @@ static int mdss_mdp_put_img(struct mdss_mdp_img_data *data)
|
|
pr_debug("pmem buf=0x%pa\n", &data->addr);
|
|
data->srcp_file = NULL;
|
|
} else if (!IS_ERR_OR_NULL(data->srcp_ihdl)) {
|
|
- pr_debug("ion hdl=%p buf=0x%pa\n", data->srcp_ihdl,
|
|
+ pr_debug("ion hdl=%pK buf=0x%pa\n", data->srcp_ihdl,
|
|
&data->addr);
|
|
if (!iclient) {
|
|
pr_err("invalid ion client\n");
|
|
@@ -599,7 +599,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,
|
|
data->addr += data->offset;
|
|
data->len -= data->offset;
|
|
|
|
- pr_debug("mem=%d ihdl=%p buf=0x%pa len=0x%lu\n", img->memory_id,
|
|
+ pr_debug("mem=%d ihdl=%pK buf=0x%pa len=0x%lu\n", img->memory_id,
|
|
data->srcp_ihdl, &data->addr, data->len);
|
|
} else {
|
|
mdss_mdp_put_img(data);
|
|
@@ -653,7 +653,7 @@ static int mdss_mdp_map_buffer(struct mdss_mdp_img_data *data)
|
|
data->addr += data->offset;
|
|
data->len -= data->offset;
|
|
|
|
- pr_debug("ihdl=%p buf=0x%pa len=0x%lu\n",
|
|
+ pr_debug("ihdl=%pK buf=0x%pa len=0x%lu\n",
|
|
data->srcp_ihdl, &data->addr, data->len);
|
|
} else {
|
|
mdss_mdp_put_img(data);
|
|
diff --git a/drivers/video/msm/mdss/mdss_mdp_wb.c b/drivers/video/msm/mdss/mdss_mdp_wb.c
|
|
index def90eb..da6587e 100644
|
|
--- a/drivers/video/msm/mdss/mdss_mdp_wb.c
|
|
+++ b/drivers/video/msm/mdss/mdss_mdp_wb.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. 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 and
|
|
@@ -95,7 +95,7 @@ struct mdss_mdp_data *mdss_mdp_wb_debug_buffer(struct msm_fb_data_type *mfd)
|
|
ihdl = ion_alloc(iclient, img_size, SZ_4K,
|
|
ION_HEAP(ION_SF_HEAP_ID), 0);
|
|
if (IS_ERR_OR_NULL(ihdl)) {
|
|
- pr_err("unable to alloc fbmem from ion (%p)\n", ihdl);
|
|
+ pr_err("unable to alloc fbmem from ion (%pK)\n", ihdl);
|
|
return NULL;
|
|
}
|
|
|
|
@@ -122,7 +122,7 @@ struct mdss_mdp_data *mdss_mdp_wb_debug_buffer(struct msm_fb_data_type *mfd)
|
|
img->len = img_size;
|
|
}
|
|
|
|
- pr_debug("ihdl=%p virt=%p phys=0x%pa iova=0x%pa size=%u\n",
|
|
+ pr_debug("ihdl=%pK virt=%pK phys=0x%pa iova=0x%pa size=%u\n",
|
|
ihdl, videomemory, &mdss_wb_mem, &img->addr, img_size);
|
|
}
|
|
return &mdss_wb_buffer;
|
|
@@ -435,7 +435,7 @@ static struct mdss_mdp_wb_data *get_user_node(struct msm_fb_data_type *mfd,
|
|
list_for_each_entry(node, &wb->register_queue, registered_entry)
|
|
if ((node->buf_data.p[0].srcp_ihdl == ihdl) &&
|
|
(node->buf_info.offset == data->offset)) {
|
|
- pr_debug("found fd=%d hdl=%p off=%x addr=%pa\n",
|
|
+ pr_debug("found fd=%d hdl=%pK off=%x addr=%pa\n",
|
|
data->memory_id, ihdl,
|
|
data->offset,
|
|
&node->buf_data.p[0].addr);
|
|
@@ -501,7 +501,7 @@ static void mdss_mdp_wb_free_node(struct mdss_mdp_wb_data *node)
|
|
if (node->user_alloc) {
|
|
buf = &node->buf_data.p[0];
|
|
|
|
- pr_debug("free user mem_id=%d ihdl=%p, offset=%u addr=0x%pa\n",
|
|
+ pr_debug("free user mem_id=%d ihdl=%pK, offset=%u addr=0x%pa\n",
|
|
node->buf_info.memory_id,
|
|
buf->srcp_ihdl,
|
|
node->buf_info.offset,
|
|
diff --git a/drivers/video/msm/mdss/mdss_util.c b/drivers/video/msm/mdss/mdss_util.c
|
|
index 587db41..345b0927 100644
|
|
--- a/drivers/video/msm/mdss/mdss_util.c
|
|
+++ b/drivers/video/msm/mdss/mdss_util.c
|
|
@@ -1,5 +1,4 @@
|
|
-
|
|
-/* Copyright (c) 2007-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2007-2014,2016 The Linux Foundation. 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 and
|
|
@@ -33,7 +32,7 @@ int mdss_register_irq(struct mdss_hw *hw)
|
|
if (!mdss_irq_handlers[hw->hw_ndx])
|
|
mdss_irq_handlers[hw->hw_ndx] = hw;
|
|
else
|
|
- pr_err("panel %d's irq at %p is already registered\n",
|
|
+ pr_err("panel %d's irq at %pK is already registered\n",
|
|
hw->hw_ndx, hw->irq_handler);
|
|
spin_unlock_irqrestore(&mdss_lock, irq_flags);
|
|
|
|
--
|
|
cgit v1.1
|
|
|