diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2024-01-24 03:59:47 +0100 |
---|---|---|
committer | Qiang Yu <yuq825@gmail.com> | 2024-02-12 16:27:48 +0800 |
commit | 423af970da74db7eed1b14f2b7f115714a67aeb8 (patch) | |
tree | e07cb64e161ab44bcd14a3b836610d1aeb7e2b29 /drivers/gpu/drm/lima/lima_l2_cache.c | |
parent | 9e5690a16fc26b17eeb8d7e07865b69a78e81e57 (diff) | |
download | linux-423af970da74db7eed1b14f2b7f115714a67aeb8.tar.gz linux-423af970da74db7eed1b14f2b7f115714a67aeb8.tar.bz2 linux-423af970da74db7eed1b14f2b7f115714a67aeb8.zip |
drm/lima: standardize debug messages by ip name
Some debug messages carried the ip name, or included "lima", or
included both the ip name and then the numbered ip name again.
Make the messages more consistent by always looking up and showing
the ip name first.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124025947.2110659-9-nunes.erico@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_l2_cache.c')
-rw-r--r-- | drivers/gpu/drm/lima/lima_l2_cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/lima/lima_l2_cache.c b/drivers/gpu/drm/lima/lima_l2_cache.c index c4080a02957b..184106ce55f8 100644 --- a/drivers/gpu/drm/lima/lima_l2_cache.c +++ b/drivers/gpu/drm/lima/lima_l2_cache.c @@ -21,7 +21,8 @@ static int lima_l2_cache_wait_idle(struct lima_ip *ip) !(v & LIMA_L2_CACHE_STATUS_COMMAND_BUSY), 0, 1000); if (err) { - dev_err(dev->dev, "l2 cache wait command timeout\n"); + dev_err(dev->dev, "%s wait command timeout\n", + lima_ip_name(ip)); return err; } return 0; @@ -83,7 +84,8 @@ int lima_l2_cache_init(struct lima_ip *ip) spin_lock_init(&ip->data.lock); size = l2_cache_read(LIMA_L2_CACHE_SIZE); - dev_info(dev->dev, "l2 cache %uK, %u-way, %ubyte cache line, %ubit external bus\n", + dev_info(dev->dev, "%s %uK, %u-way, %ubyte cache line, %ubit external bus\n", + lima_ip_name(ip), 1 << (((size >> 16) & 0xff) - 10), 1 << ((size >> 8) & 0xff), 1 << (size & 0xff), |