projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deca1d1
)
drm/amd/amdgpu: Simplify mask creation in gfx6
author
Tom St Denis
<tom.stdenis@amd.com>
Thu, 1 Sep 2016 17:31:35 +0000
(13:31 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 2 Sep 2016 15:32:35 +0000
(11:32 -0400)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
index
1f1b619
..
6569554
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
@@
-911,13
+911,7
@@
static void gfx_v6_0_select_se_sh(struct amdgpu_device *adev, u32 se_num,
static u32 gfx_v6_0_create_bitmask(u32 bit_width)
{
- u32 i, mask = 0;
-
- for (i = 0; i < bit_width; i++) {
- mask <<= 1;
- mask |= 1;
- }
- return mask;
+ return (u32)(((u64)1 << bit_width) - 1);
}
static u32 gfx_v6_0_get_rb_disabled(struct amdgpu_device *adev,