From: Qiang Yu <yuq825@gmail.com>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
dri-devel <dri-devel@lists.freedesktop.org>,
lima@lists.freedesktop.org
Subject: Re: [PATCH] drm/lima: Remove unused lima_vm_print()
Date: Mon, 23 Aug 2021 09:05:37 +0800 [thread overview]
Message-ID: <CAKGbVbvsN84rvMMb-i=RLJB7uoLy49vL7-mXfpSe+GSq7r+V8Q@mail.gmail.com> (raw)
In-Reply-To: <20210820021911.95-1-caihuoqing@baidu.com>
This function is kept for debug usage.
On Fri, Aug 20, 2021 at 10:19 AM Cai Huoqing <caihuoqing@baidu.com> wrote:
>
> lima_vm_print() isn't used, so remove it
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
> drivers/gpu/drm/lima/lima_vm.c | 29 -----------------------------
> drivers/gpu/drm/lima/lima_vm.h | 1 -
> 2 files changed, 30 deletions(-)
>
> diff --git a/drivers/gpu/drm/lima/lima_vm.c b/drivers/gpu/drm/lima/lima_vm.c
> index 2b2739adc7f5..b3426c5c987f 100644
> --- a/drivers/gpu/drm/lima/lima_vm.c
> +++ b/drivers/gpu/drm/lima/lima_vm.c
> @@ -251,35 +251,6 @@ void lima_vm_release(struct kref *kref)
> kfree(vm);
> }
>
> -void lima_vm_print(struct lima_vm *vm)
> -{
> - int i, j, k;
> - u32 *pd, *pt;
> -
> - if (!vm->pd.cpu)
> - return;
> -
> - pd = vm->pd.cpu;
> - for (i = 0; i < LIMA_VM_NUM_BT; i++) {
> - if (!vm->bts[i].cpu)
> - continue;
> -
> - pt = vm->bts[i].cpu;
> - for (j = 0; j < LIMA_VM_NUM_PT_PER_BT; j++) {
> - int idx = (i << LIMA_VM_NUM_PT_PER_BT_SHIFT) + j;
> -
> - printk(KERN_INFO "lima vm pd %03x:%08x\n", idx, pd[idx]);
> -
> - for (k = 0; k < LIMA_PAGE_ENT_NUM; k++) {
> - u32 pte = *pt++;
> -
> - if (pte)
> - printk(KERN_INFO " pt %03x:%08x\n", k, pte);
> - }
> - }
> - }
> -}
> -
> int lima_vm_map_bo(struct lima_vm *vm, struct lima_bo *bo, int pageoff)
> {
> struct lima_bo_va *bo_va;
> diff --git a/drivers/gpu/drm/lima/lima_vm.h b/drivers/gpu/drm/lima/lima_vm.h
> index 3a7c74822d8b..291ec9a0a1c4 100644
> --- a/drivers/gpu/drm/lima/lima_vm.h
> +++ b/drivers/gpu/drm/lima/lima_vm.h
> @@ -58,7 +58,6 @@ static inline void lima_vm_put(struct lima_vm *vm)
> kref_put(&vm->refcount, lima_vm_release);
> }
>
> -void lima_vm_print(struct lima_vm *vm);
> int lima_vm_map_bo(struct lima_vm *vm, struct lima_bo *bo, int pageoff);
>
> #endif
> --
> 2.25.1
>
prev parent reply other threads:[~2021-08-23 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-20 2:19 [PATCH] drm/lima: Remove unused lima_vm_print() Cai Huoqing
2021-08-23 1:05 ` Qiang Yu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKGbVbvsN84rvMMb-i=RLJB7uoLy49vL7-mXfpSe+GSq7r+V8Q@mail.gmail.com' \
--to=yuq825@gmail.com \
--cc=airlied@linux.ie \
--cc=caihuoqing@baidu.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=lima@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.