summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_regs_history_debugfs.c
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2021-01-29 14:51:21 +0000
committerSidath Senanayake <sidaths@google.com>2021-01-29 14:51:21 +0000
commit201c8bfb4637601363b6e9283f3bdc510711a226 (patch)
treeafa8b543c81e78e5b82156be5d5266060c71e069 /mali_kbase/mali_kbase_regs_history_debugfs.c
parent72f2457ff7355ff0389efe5bc9cec3365362d8c4 (diff)
downloadgpu-201c8bfb4637601363b6e9283f3bdc510711a226.tar.gz
Mali Valhall DDK r28p0 KMD
Provenance: f61f43e2c (collaborate/EAC/v_r28p0) VX504X08X-BU-00000-r28p0-01eac0 - Android DDK VX504X08X-SW-99006-r28p0-01eac0 - Android Renderscript AOSP parts VX504X08X-BU-60000-r28p0-01eac0 - Android Document Bundle VX504X08X-DC-11001-r28p0-01eac0 - Valhall Android DDK Software Errata Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Iafabf59869cc06a23d69668f6ae1a152cb86b7f3
Diffstat (limited to 'mali_kbase/mali_kbase_regs_history_debugfs.c')
-rw-r--r--mali_kbase/mali_kbase_regs_history_debugfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mali_kbase/mali_kbase_regs_history_debugfs.c b/mali_kbase/mali_kbase_regs_history_debugfs.c
index 1980da8..640db95 100644
--- a/mali_kbase/mali_kbase_regs_history_debugfs.c
+++ b/mali_kbase/mali_kbase_regs_history_debugfs.c
@@ -118,7 +118,7 @@ void kbase_io_history_add(struct kbase_io_history *h,
void kbase_io_history_dump(struct kbase_device *kbdev)
{
struct kbase_io_history *const h = &kbdev->io_history;
- u16 i;
+ size_t i;
size_t iters;
unsigned long flags;
@@ -136,7 +136,7 @@ void kbase_io_history_dump(struct kbase_device *kbdev)
&h->buf[(h->count - iters + i) % h->size];
char const access = (io->addr & 1) ? 'w' : 'r';
- dev_err(kbdev->dev, "%6i: %c: reg 0x%016lx val %08x\n", i,
+ dev_err(kbdev->dev, "%6zu: %c: reg 0x%016lx val %08x\n", i,
access, (unsigned long)(io->addr & ~0x1), io->value);
}
@@ -180,7 +180,7 @@ DEFINE_SIMPLE_ATTRIBUTE(regs_history_size_fops,
static int regs_history_show(struct seq_file *sfile, void *data)
{
struct kbase_io_history *const h = sfile->private;
- u16 i;
+ size_t i;
size_t iters;
unsigned long flags;
@@ -199,8 +199,8 @@ static int regs_history_show(struct seq_file *sfile, void *data)
&h->buf[(h->count - iters + i) % h->size];
char const access = (io->addr & 1) ? 'w' : 'r';
- seq_printf(sfile, "%6i: %c: reg 0x%016lx val %08x\n", i, access,
- (unsigned long)(io->addr & ~0x1), io->value);
+ seq_printf(sfile, "%6zu: %c: reg 0x%016lx val %08x\n", i,
+ access, (unsigned long)(io->addr & ~0x1), io->value);
}
spin_unlock_irqrestore(&h->lock, flags);