drm/amdgpu: remove trailing whitespace from soc15ip.h
Subsystems (2)
PATCH 1/3 drm/amdgpu: remove trailing whitespace from soc15ip.h
no intended functional change.
--- drivers/gpu/drm/amd/include/vega10_ip_offset.h | 286 ++++++++++++------------- 1 file changed, 143 insertions(+), 143 deletions(-)
drivers/gpu/drm/amd/include/vega10_ip_offset.h +143 -143
@@ -24,191 +24,191 @@#define MAX_INSTANCE 5#define MAX_SEGMENT 5 -struct IP_BASE_INSTANCE +struct IP_BASE_INSTANCE {unsigned int segment[MAX_SEGMENT ]; }; - -struct IP_BASE + +struct IP_BASE {struct IP_BASE_INSTANCE instance[MAX_INSTANCE ]; }; -static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };//note: GLN does not use the first segment -static const struct IP_BASE VCN_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE VCN_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };//note: GLN does not use the first segment -static const struct IP_BASE DBGU_BASE = { { { {0x00000180 ,0x000001A0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_BASE = { { { {0x00000180 ,0x000001A0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DBGU_NBIO_BASE = { { { {0x000001C0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_NBIO_BASE = { { { {0x000001C0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DBGU_IO_BASE = { { { {0x000001E0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_IO_BASE = { { { {0x000001E0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DFX_DAP_BASE = { { { {0x000005A0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DFX_DAP_BASE = { { { {0x000005A0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DFX_BASE = { { { {0x00000580 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DFX_BASE = { { { {0x00000580 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// this file does not contain registers -static const struct IP_BASE ISP_BASE = { { { {0x00018000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE ISP_BASE = { { { {0x00018000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE SYSTEMHUB_BASE = { { { {0x00000EA0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SYSTEMHUB_BASE = { { { {0x00000EA0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE L2IMU_BASE = { { { {0x00007DC0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE L2IMU_BASE = { { { {0x00007DC0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE IOHC_BASE = { { { {0x00010000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE IOHC_BASE = { { { {0x00010000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE ATHUB_BASE = { { { {0x00000C20 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE ATHUB_BASE = { { { {0x00000C20 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE VCE_BASE = { { { {0x00007E00 ,0x00048800 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE VCE_BASE = { { { {0x00007E00 ,0x00048800 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE GC_BASE = { { { {0x00002000 ,0x0000A000 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE GC_BASE = { { { {0x00002000 ,0x0000A000 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MMHUB_BASE = { { { {0x0001A000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MMHUB_BASE = { { { {0x0001A000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE RSMU_BASE = { { { {0x00012000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE RSMU_BASE = { { { {0x00012000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE HDP_BASE = { { { {0x00000F20 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE HDP_BASE = { { { {0x00000F20 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE OSSSYS_BASE = { { { {0x000010A0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE OSSSYS_BASE = { { { {0x000010A0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SDMA0_BASE = { { { {0x00001260 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SDMA0_BASE = { { { {0x00001260 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SDMA1_BASE = { { { {0x00001460 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SDMA1_BASE = { { { {0x00001460 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE XDMA_BASE = { { { {0x00003400 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE XDMA_BASE = { { { {0x00003400 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UMC_BASE = { { { {0x00014000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE UMC_BASE = { { { {0x00014000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE THM_BASE = { { { {0x00016600 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE THM_BASE = { { { {0x00016600 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SMUIO_BASE = { { { {0x00016800 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SMUIO_BASE = { { { {0x00016800 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE PWR_BASE = { { { {0x00016A00 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE PWR_BASE = { { { {0x00016A00 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };static const struct IP_BASE CLK_BASE = { { { {0x00016C00 ,0 ,0 ,0 ,0 } }, - { {0x00016E00 ,0 ,0 ,0 ,0 } }, - { {0x00017000 ,0 ,0 ,0 ,0 } }, - { {0x00017200 ,0 ,0 ,0 ,0 } }, - { {0x00017E00 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE FUSE_BASE = { { { {0x00017400 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, + { {0x00016E00 ,0 ,0 ,0 ,0 } }, + { {0x00017000 ,0 ,0 ,0 ,0 } }, + { {0x00017200 ,0 ,0 ,0 ,0 } }, + { {0x00017E00 ,0 ,0 ,0 ,0 } } } }; +static const struct IP_BASE FUSE_BASE = { { { {0x00017400 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180314012223.16665-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/3 drm/amdgpu/sdma4: use num_instances for clock/powergating config
Rather then relying on the asic type for the second instance. Makes it more consistent with the rest of the code.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +4 -4
@@ -1399,7 +1399,7 @@ static void sdma_v4_0_update_medium_grain_clock_gating(if (def != data)WREG32 (SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_CLK_CTRL), data); -if (adev->asic_type ==CHIP_VEGA10 ) { +if (adev->sdma.num_instances >1 ) { def = data =RREG32 (SOC15_REG_OFFSET (SDMA1 ,0 , mmSDMA1_CLK_CTRL)); data &= ~(SDMA1_CLK_CTRL__SOFT_OVERRIDE7_MASK | SDMA1_CLK_CTRL__SOFT_OVERRIDE6_MASK |
@@ -1427,7 +1427,7 @@ static void sdma_v4_0_update_medium_grain_clock_gating(if (def != data)WREG32 (SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_CLK_CTRL), data); -if (adev->asic_type ==CHIP_VEGA10 ) { +if (adev->sdma.num_instances >1 ) { def = data =RREG32 (SOC15_REG_OFFSET (SDMA1 ,0 , mmSDMA1_CLK_CTRL)); data |= (SDMA1_CLK_CTRL__SOFT_OVERRIDE7_MASK | SDMA1_CLK_CTRL__SOFT_OVERRIDE6_MASK |
@@ -1458,7 +1458,7 @@ static void sdma_v4_0_update_medium_grain_light_sleep(WREG32 (SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_POWER_CNTL), data);/* 1-not override: enable sdma1 mem light sleep */ -if (adev->asic_type ==CHIP_VEGA10 ) { +if (adev->sdma.num_instances >1 ) { def = data =RREG32 (SOC15_REG_OFFSET (SDMA1 ,0 , mmSDMA1_POWER_CNTL)); data |=SDMA1_POWER_CNTL__MEM_POWER_OVERRIDE_MASK ;if (def != data)
@@ -1472,7 +1472,7 @@ static void sdma_v4_0_update_medium_grain_light_sleep(WREG32 (SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_POWER_CNTL), data);/* 0-override:disable sdma1 mem light sleep */ -if (adev->asic_type ==CHIP_VEGA10 ) { +if (adev->sdma.num_instances >1 ) { def = data =RREG32 (SOC15_REG_OFFSET (SDMA1 ,0 , mmSDMA1_POWER_CNTL)); data &= ~SDMA1_POWER_CNTL__MEM_POWER_OVERRIDE_MASK ;if (def != data)
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 drm/amdgpu/sdma4: Remove unused header file from sdma_v4_0.c
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
Remove mmhub header files inclusion which not used.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0 -2
@@ -31,8 +31,6 @@#include "sdma0/sdma0_4_0_sh_mask.h" #include "sdma1/sdma1_4_0_offset.h" #include "sdma1/sdma1_4_0_sh_mask.h" -#include "mmhub/mmhub_1_0_offset.h" -#include "mmhub/mmhub_1_0_sh_mask.h" #include "hdp/hdp_4_0_offset.h" #include "sdma0/sdma0_4_1_default.h"
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Reviewed-byAm 14.03.2018 um 02:22 schrieb Alex Deucher:
Quoted 3 lines
no intended functional change.
Signed-off-by Alex Deucher <[email protected]>
Quoted 333 lines
--- drivers/gpu/drm/amd/include/vega10_ip_offset.h | 286 ++++++++++++------------- 1 file changed, 143 insertions(+), 143 deletions(-)drivers/gpu/drm/amd/include/vega10_ip_offset.h +136
-143@@ -24,191 +24,191 @@#define MAX_INSTANCE 5#define MAX_SEGMENT 5 -struct IP_BASE_INSTANCE +struct IP_BASE_INSTANCE {unsigned int segment[MAX_SEGMENT ]; }; - -struct IP_BASE + +struct IP_BASE {struct IP_BASE_INSTANCE instance[MAX_INSTANCE ]; }; -static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };//note: GLN does not use the first segment -static const struct IP_BASE VCN_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE VCN_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };//note: GLN does not use the first segment -static const struct IP_BASE DBGU_BASE = { { { {0x00000180 ,0x000001A0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_BASE = { { { {0x00000180 ,0x000001A0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DBGU_NBIO_BASE = { { { {0x000001C0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_NBIO_BASE = { { { {0x000001C0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DBGU_IO_BASE = { { { {0x000001E0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DBGU_IO_BASE = { { { {0x000001E0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DFX_DAP_BASE = { { { {0x000005A0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DFX_DAP_BASE = { { { {0x000005A0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE DFX_BASE = { { { {0x00000580 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE DFX_BASE = { { { {0x00000580 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// this file does not contain registers -static const struct IP_BASE ISP_BASE = { { { {0x00018000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE ISP_BASE = { { { {0x00018000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE SYSTEMHUB_BASE = { { { {0x00000EA0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SYSTEMHUB_BASE = { { { {0x00000EA0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };// not exist -static const struct IP_BASE L2IMU_BASE = { { { {0x00007DC0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE L2IMU_BASE = { { { {0x00007DC0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE IOHC_BASE = { { { {0x00010000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE IOHC_BASE = { { { {0x00010000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE ATHUB_BASE = { { { {0x00000C20 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE ATHUB_BASE = { { { {0x00000C20 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE VCE_BASE = { { { {0x00007E00 ,0x00048800 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE VCE_BASE = { { { {0x00007E00 ,0x00048800 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE GC_BASE = { { { {0x00002000 ,0x0000A000 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE GC_BASE = { { { {0x00002000 ,0x0000A000 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MMHUB_BASE = { { { {0x0001A000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE MMHUB_BASE = { { { {0x0001A000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE RSMU_BASE = { { { {0x00012000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE RSMU_BASE = { { { {0x00012000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE HDP_BASE = { { { {0x00000F20 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE HDP_BASE = { { { {0x00000F20 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE OSSSYS_BASE = { { { {0x000010A0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE OSSSYS_BASE = { { { {0x000010A0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SDMA0_BASE = { { { {0x00001260 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SDMA0_BASE = { { { {0x00001260 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SDMA1_BASE = { { { {0x00001460 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SDMA1_BASE = { { { {0x00001460 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE XDMA_BASE = { { { {0x00003400 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE XDMA_BASE = { { { {0x00003400 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UMC_BASE = { { { {0x00014000 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE UMC_BASE = { { { {0x00014000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE THM_BASE = { { { {0x00016600 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE THM_BASE = { { { {0x00016600 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE SMUIO_BASE = { { { {0x00016800 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE SMUIO_BASE = { { { {0x00016800 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE PWR_BASE = { { { {0x00016A00 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE PWR_BASE = { { { {0x00016A00 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };static const struct IP_BASE CLK_BASE = { { { {0x00016C00 ,0 ,0 ,0 ,0 } }, - { {0x00016E00 ,0 ,0 ,0 ,0 } }, - { {0x00017000 ,0 ,0 ,0 ,0 } }, - { {0x00017200 ,0 ,0 ,0 ,0 } }, - { {0x00017E00 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE FUSE_BASE = { { { {0x00017400 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, + { {0x00016E00 ,0 ,0 ,0 ,0 } },
drivers/gpu/drm/amd/include/vega10_ip_offset.h line 214
Quoted 10 lines
drivers/gpu/drm/amd/include/vega10_ip_offset.h +7
-0+ { { 0x00017000, 0, 0, 0, 0 } }, + { { 0x00017200, 0, 0, 0, 0 } }, + { { 0x00017E00, 0, 0, 0, 0 } } } }; +static const struct IP_BASE FUSE_BASE = { { { {0x00017400 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 2d0ecb4b-3138-f987-3c75-57e004d212c2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 8 lines · Christian König
Am 14.03.2018 um 02:22 schrieb Alex Deucher:
Quoted 4 lines
no intended functional change.
Signed-off-by Alex Deucher <[email protected]>Reviewed-by Christian König <[email protected]>
Is this for the series or just this patch?
Alex
Quoted 656 lines
Quoted 656 lines
--- drivers/gpu/drm/amd/include/vega10_ip_offset.h | 286 ++++++++++++------------- 1 file changed, 143 insertions(+), 143 deletions(-)drivers/gpu/drm/amd/include/vega10_ip_offset.h +39
-37@@ -24,191 +24,191 @@#define MAX_INSTANCE 5#define MAX_SEGMENT 5 -struct IP_BASE_INSTANCE +struct IP_BASE_INSTANCE {unsigned int segment[MAX_SEGMENT ]; }; - -struct IP_BASE + +struct IP_BASE {struct IP_BASE_INSTANCE instance[MAX_INSTANCE ]; }; -static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { { 0, 0, 0, 0, 0 } } } }; -static const struct IP_BASE NBIO_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCE_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP1_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP2_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DF_BASE = { { { { 0x00007000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UVD_BASE = { { { { 0x00007800, 0x00007E00, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } },{ { 0, 0, 0, 0, 0 } } } }; //note: GLN does not use the first segment
-static const structIP_BASEVCN_BASE= { { { {0x00007800,0x00007E00, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEVCN_BASE= { { { {0x00007800,0x00007E00, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; //note: GLN does not use the first segment
-static const structIP_BASEDBGU_BASE= { { { {0x00000180,0x000001A0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_BASE= { { { {0x00000180,0x000001A0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDBGU_NBIO_BASE= { { { {0x000001C0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_NBIO_BASE= { { { {0x000001C0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDBGU_IO_BASE= { { { {0x000001E0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_IO_BASE= { { { {0x000001E0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDFX_DAP_BASE= { { { {0x000005A0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDFX_DAP_BASE= { { { {0x000005A0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDFX_BASE= { { { {0x00000580, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDFX_BASE= { { { {0x00000580, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // this file does not contain registers
-static const structIP_BASEISP_BASE= { { { {0x00018000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEISP_BASE= { { { {0x00018000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASESYSTEMHUB_BASE= { { { {0x00000EA0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESYSTEMHUB_BASE= { { { {0x00000EA0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEL2IMU_BASE= { { { {0x00007DC0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEL2IMU_BASE= { { { {0x00007DC0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEIOHC_BASE= { { { {0x00010000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEIOHC_BASE= { { { {0x00010000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEATHUB_BASE= { { { {0x00000C20, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEATHUB_BASE= { { { {0x00000C20, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEVCE_BASE= { { { {0x00007E00,0x00048800, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEVCE_BASE= { { { {0x00007E00,0x00048800, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEGC_BASE= { { { {0x00002000,0x0000A000, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEGC_BASE= { { { {0x00002000,0x0000A000, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEMMHUB_BASE= { { { {0x0001A000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEMMHUB_BASE= { { { {0x0001A000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASERSMU_BASE= { { { {0x00012000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASERSMU_BASE= { { { {0x00012000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEHDP_BASE= { { { {0x00000F20, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEHDP_BASE= { { { {0x00000F20, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEOSSSYS_BASE= { { { {0x000010A0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEOSSSYS_BASE= { { { {0x000010A0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESDMA0_BASE= { { { {0x00001260, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESDMA0_BASE= { { { {0x00001260, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESDMA1_BASE= { { { {0x00001460, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESDMA1_BASE= { { { {0x00001460, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEXDMA_BASE= { { { {0x00003400, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEXDMA_BASE= { { { {0x00003400, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEUMC_BASE= { { { {0x00014000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEUMC_BASE= { { { {0x00014000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASETHM_BASE= { { { {0x00016600, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASETHM_BASE= { { { {0x00016600, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESMUIO_BASE= { { { {0x00016800, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESMUIO_BASE= { { { {0x00016800, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEPWR_BASE= { { { {0x00016A00, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEPWR_BASE= { { { {0x00016A00, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
static const structIP_BASECLK_BASE= { { { {0x00016C00, 0, 0, 0, 0 } },
-
{ {0x00016E00, 0, 0, 0, 0 } },
-
{ {0x00017000, 0, 0, 0, 0 } },
- { {0x00017200, 0, 0, 0, 0 }
},
- { {0x00017E00, 0, 0, 0, 0 } } } };
-static const structIP_BASEFUSE_BASE= { { { {0x00017400, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+
{ {0x00016E00, 0, 0, 0, 0 } },
+
{ {0x00017000, 0, 0, 0, 0 } },
+ { {0x00017200, 0, 0, 0, 0 }
},
+ { {0x00017E00, 0, 0, 0, 0 } } } };
+static const structIP_BASEFUSE_BASE= { { { {0x00017400, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
Quoted 4 lines
Quoted 2 lines
{ { 0, 0, 0, 0, 0 } } } };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_NBpUxWK0P1HiSUGjNLEtHC39buWM1E2M=ZtcrvccT_oQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Am 14.03.2018 um 14:42 schrieb Alex Deucher:
Quoted 9 lines
Quoted 6 lines · Christian König
Am 14.03.2018 um 02:22 schrieb Alex Deucher:
Quoted 3 lines
no intended functional change.
Signed-off-by Alex Deucher <[email protected]>Reviewed-by Christian König <[email protected]>Is this for the series or just this patch?
For the series. Well actually for patch #1 and #2, #3 already had my rb.
Christian.
Quoted 661 lines
Alex
Quoted 658 lines
Quoted 657 lines
--- drivers/gpu/drm/amd/include/vega10_ip_offset.h | 286 ++++++++++++------------- 1 file changed, 143 insertions(+), 143 deletions(-)drivers/gpu/drm/amd/include/vega10_ip_offset.h +39
-37@@ -24,191 +24,191 @@#define MAX_INSTANCE 5#define MAX_SEGMENT 5 -struct IP_BASE_INSTANCE +struct IP_BASE_INSTANCE {unsigned int segment[MAX_SEGMENT ]; }; - -struct IP_BASE + +struct IP_BASE {struct IP_BASE_INSTANCE instance[MAX_INSTANCE ]; }; -static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, - { {0 ,0 ,0 ,0 ,0 } }, +static const struct IP_BASE NBIF_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { { 0, 0, 0, 0, 0 } } } }; -static const struct IP_BASE NBIO_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE NBIO_BASE = { { { {0x00000000 ,0x00000014 ,0x00000D20 ,0x00010400 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCE_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DCE_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DCN_BASE = { { { {0x00000012 ,0x000000C0 ,0x000034C0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP0_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP1_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP1_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE MP2_BASE = { { { { 0x00016000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE MP2_BASE = { { { {0x00016000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE DF_BASE = { { { { 0x00007000, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE DF_BASE = { { { {0x00007000 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, { {0 ,0 ,0 ,0 ,0 } } } }; -static const struct IP_BASE UVD_BASE = { { { { 0x00007800, 0x00007E00, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0 } }, +static const struct IP_BASE UVD_BASE = { { { {0x00007800 ,0x00007E00 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } }, + { {0 ,0 ,0 ,0 ,0 } },{ { 0, 0, 0, 0, 0 } } } }; //note: GLN does not use the first segment
-static const structIP_BASEVCN_BASE= { { { {0x00007800,0x00007E00, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEVCN_BASE= { { { {0x00007800,0x00007E00, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; //note: GLN does not use the first segment
-static const structIP_BASEDBGU_BASE= { { { {0x00000180,0x000001A0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_BASE= { { { {0x00000180,0x000001A0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDBGU_NBIO_BASE= { { { {0x000001C0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_NBIO_BASE= { { { {0x000001C0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDBGU_IO_BASE= { { { {0x000001E0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDBGU_IO_BASE= { { { {0x000001E0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDFX_DAP_BASE= { { { {0x000005A0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDFX_DAP_BASE= { { { {0x000005A0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEDFX_BASE= { { { {0x00000580, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEDFX_BASE= { { { {0x00000580, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // this file does not contain registers
-static const structIP_BASEISP_BASE= { { { {0x00018000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEISP_BASE= { { { {0x00018000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASESYSTEMHUB_BASE= { { { {0x00000EA0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESYSTEMHUB_BASE= { { { {0x00000EA0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; // not exist
-static const structIP_BASEL2IMU_BASE= { { { {0x00007DC0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEL2IMU_BASE= { { { {0x00007DC0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEIOHC_BASE= { { { {0x00010000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEIOHC_BASE= { { { {0x00010000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEATHUB_BASE= { { { {0x00000C20, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEATHUB_BASE= { { { {0x00000C20, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEVCE_BASE= { { { {0x00007E00,0x00048800, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEVCE_BASE= { { { {0x00007E00,0x00048800, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEGC_BASE= { { { {0x00002000,0x0000A000, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEGC_BASE= { { { {0x00002000,0x0000A000, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEMMHUB_BASE= { { { {0x0001A000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEMMHUB_BASE= { { { {0x0001A000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASERSMU_BASE= { { { {0x00012000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASERSMU_BASE= { { { {0x00012000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEHDP_BASE= { { { {0x00000F20, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEHDP_BASE= { { { {0x00000F20, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEOSSSYS_BASE= { { { {0x000010A0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEOSSSYS_BASE= { { { {0x000010A0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESDMA0_BASE= { { { {0x00001260, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESDMA0_BASE= { { { {0x00001260, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESDMA1_BASE= { { { {0x00001460, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESDMA1_BASE= { { { {0x00001460, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEXDMA_BASE= { { { {0x00003400, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEXDMA_BASE= { { { {0x00003400, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEUMC_BASE= { { { {0x00014000, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEUMC_BASE= { { { {0x00014000, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASETHM_BASE= { { { {0x00016600, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASETHM_BASE= { { { {0x00016600, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASESMUIO_BASE= { { { {0x00016800, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASESMUIO_BASE= { { { {0x00016800, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
-static const structIP_BASEPWR_BASE= { { { {0x00016A00, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+static const structIP_BASEPWR_BASE= { { { {0x00016A00, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } }; static const struct IP_BASE CLK_BASE = { { { {
0x00016C00, 0, 0, 0, 0 } },
-
{ {0x00016E00, 0, 0, 0, 0 } },
-
{ {0x00017000, 0, 0, 0, 0 } },
- { {0x00017200, 0, 0, 0, 0 }
},
- { {0x00017E00, 0, 0, 0, 0 } } } };
-static const structIP_BASEFUSE_BASE= { { { {0x00017400, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
-
{ { 0, 0, 0, 0, 0 } },
+
{ {0x00016E00, 0, 0, 0, 0 } },
+
{ {0x00017000, 0, 0, 0, 0 } },
+ { {0x00017200, 0, 0, 0, 0 }
},
+ { {0x00017E00, 0, 0, 0, 0 } } } };
+static const structIP_BASEFUSE_BASE= { { { {0x00017400, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },
+
{ { 0, 0, 0, 0, 0 } },{ { 0, 0, 0, 0, 0 } } } };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx