Applied the series. Thanks! Alex On Mon, Nov 2, 2020 at 12:44 PM Deepak R Varma <mh12gx2825@xxxxxxxxx> wrote: > > General code indentation and alignment changes such as replace spaces > by tabs or align function arguments as per the coding style > guidelines. The patch covers various .c files for this driver. > Issue reported by checkpatch script. > > Signed-off-by: Deepak R Varma <mh12gx2825@xxxxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/atom.c | 4 ++-- > drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 2 +- > drivers/gpu/drm/amd/amdgpu/df_v1_7.c | 2 +- > drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- > drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 8 ++++---- > drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 4 ++-- > drivers/gpu/drm/amd/amdgpu/si.c | 2 +- > drivers/gpu/drm/amd/amdgpu/si_ih.c | 2 +- > drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- > 9 files changed, 14 insertions(+), 14 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c > index 4cfc786699c7..696e97ab77eb 100644 > --- a/drivers/gpu/drm/amd/amdgpu/atom.c > +++ b/drivers/gpu/drm/amd/amdgpu/atom.c > @@ -71,8 +71,8 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, > int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params); > > static uint32_t atom_arg_mask[8] = > - { 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000, > -0xFF000000 }; > + { 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000, > + 0xFF000000 }; > static int atom_arg_shift[8] = { 0, 0, 8, 16, 0, 8, 16, 24 }; > > static int atom_dst_to_src[8][4] = { > diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c > index 20f108818b2b..52f05d2f5ed9 100644 > --- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c > +++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c > @@ -195,7 +195,7 @@ static void cik_sdma_ring_set_wptr(struct amdgpu_ring *ring) > struct amdgpu_device *adev = ring->adev; > > WREG32(mmSDMA0_GFX_RB_WPTR + sdma_offsets[ring->me], > - (lower_32_bits(ring->wptr) << 2) & 0x3fffc); > + (lower_32_bits(ring->wptr) << 2) & 0x3fffc); > } > > static void cik_sdma_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count) > diff --git a/drivers/gpu/drm/amd/amdgpu/df_v1_7.c b/drivers/gpu/drm/amd/amdgpu/df_v1_7.c > index d6aca1c08068..2d01ac0d4c11 100644 > --- a/drivers/gpu/drm/amd/amdgpu/df_v1_7.c > +++ b/drivers/gpu/drm/amd/amdgpu/df_v1_7.c > @@ -41,7 +41,7 @@ static void df_v1_7_sw_fini(struct amdgpu_device *adev) > } > > static void df_v1_7_enable_broadcast_mode(struct amdgpu_device *adev, > - bool enable) > + bool enable) > { > u32 tmp; > > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > index dbc8b76b9b78..6b04729d8fec 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c > @@ -145,7 +145,7 @@ static const struct amdgpu_irq_src_funcs gmc_v10_0_ecc_funcs = { > .process = amdgpu_umc_process_ecc_irq, > }; > > - static void gmc_v10_0_set_irq_funcs(struct amdgpu_device *adev) > +static void gmc_v10_0_set_irq_funcs(struct amdgpu_device *adev) > { > adev->gmc.vm_fault.num_types = 1; > adev->gmc.vm_fault.funcs = &gmc_v10_0_irq_funcs; > diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c > index 94caf5204c8b..7b1a18cbafc4 100644 > --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c > @@ -32,19 +32,19 @@ > #include "vcn/vcn_2_0_0_sh_mask.h" > #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h" > > -#define mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET 0x1bfff > +#define mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET 0x1bfff > #define mmUVD_JPEG_GPCOM_CMD_INTERNAL_OFFSET 0x4029 > #define mmUVD_JPEG_GPCOM_DATA0_INTERNAL_OFFSET 0x402a > #define mmUVD_JPEG_GPCOM_DATA1_INTERNAL_OFFSET 0x402b > #define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_LOW_INTERNAL_OFFSET 0x40ea > -#define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_HIGH_INTERNAL_OFFSET 0x40eb > +#define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_HIGH_INTERNAL_OFFSET 0x40eb > #define mmUVD_LMI_JRBC_IB_VMID_INTERNAL_OFFSET 0x40cf > #define mmUVD_LMI_JPEG_VMID_INTERNAL_OFFSET 0x40d1 > -#define mmUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET 0x40e8 > +#define mmUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET 0x40e8 > #define mmUVD_LMI_JRBC_IB_64BIT_BAR_HIGH_INTERNAL_OFFSET 0x40e9 > #define mmUVD_JRBC_IB_SIZE_INTERNAL_OFFSET 0x4082 > #define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_LOW_INTERNAL_OFFSET 0x40ec > -#define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH_INTERNAL_OFFSET 0x40ed > +#define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH_INTERNAL_OFFSET 0x40ed > #define mmUVD_JRBC_RB_COND_RD_TIMER_INTERNAL_OFFSET 0x4085 > #define mmUVD_JRBC_RB_REF_DATA_INTERNAL_OFFSET 0x4084 > #define mmUVD_JRBC_STATUS_INTERNAL_OFFSET 0x4089 > diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c > index f84701c562bf..0309d84c887d 100644 > --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c > @@ -409,7 +409,7 @@ static void mmhub_v1_0_set_fault_enable_default(struct amdgpu_device *adev, bool > CRASH_ON_NO_RETRY_FAULT, 1); > tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL, > CRASH_ON_RETRY_FAULT, 1); > - } > + } > > WREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL, tmp); > } > @@ -712,7 +712,7 @@ static int mmhub_v1_0_get_ras_error_count(struct amdgpu_device *adev, > uint32_t sec_cnt, ded_cnt; > > for (i = 0; i < ARRAY_SIZE(mmhub_v1_0_ras_fields); i++) { > - if(mmhub_v1_0_ras_fields[i].reg_offset != reg->reg_offset) > + if (mmhub_v1_0_ras_fields[i].reg_offset != reg->reg_offset) > continue; > > sec_cnt = (value & > diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c > index e5e336fd9e94..3cf0589bfea5 100644 > --- a/drivers/gpu/drm/amd/amdgpu/si.c > +++ b/drivers/gpu/drm/amd/amdgpu/si.c > @@ -1350,7 +1350,7 @@ static void si_vga_set_state(struct amdgpu_device *adev, bool state) > > static u32 si_get_xclk(struct amdgpu_device *adev) > { > - u32 reference_clock = adev->clock.spll.reference_freq; > + u32 reference_clock = adev->clock.spll.reference_freq; > u32 tmp; > > tmp = RREG32(CG_CLKPIN_CNTL_2); > diff --git a/drivers/gpu/drm/amd/amdgpu/si_ih.c b/drivers/gpu/drm/amd/amdgpu/si_ih.c > index 621727d7fd18..51880f6ef634 100644 > --- a/drivers/gpu/drm/amd/amdgpu/si_ih.c > +++ b/drivers/gpu/drm/amd/amdgpu/si_ih.c > @@ -43,7 +43,7 @@ static void si_ih_enable_interrupts(struct amdgpu_device *adev) > WREG32(IH_RB_CNTL, ih_rb_cntl); > adev->irq.ih.enabled = true; > } > - > + > static void si_ih_disable_interrupts(struct amdgpu_device *adev) > { > u32 ih_rb_cntl = RREG32(IH_RB_CNTL); > diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c > index afcccc6c0fc6..b4e6ff78ddd0 100644 > --- a/drivers/gpu/drm/amd/amdgpu/soc15.c > +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c > @@ -822,7 +822,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev) > amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block); > #if defined(CONFIG_DRM_AMD_DC) > else if (amdgpu_device_has_dc_support(adev)) > - amdgpu_device_ip_block_add(adev, &dm_ip_block); > + amdgpu_device_ip_block_add(adev, &dm_ip_block); > #endif > amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block); > amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block); > -- > 2.25.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel