Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc: qcom: llcc: Add configuration data for SDM670

Add system cache table and configs for the SDM670 SoC.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260210021957.13357-3-mailingradian@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Richard Acayan and committed by
Bjorn Andersson
11080cc4 12cf1b5d

+105
+105
drivers/soc/qcom/llcc-qcom.c
··· 1782 1782 }, 1783 1783 }; 1784 1784 1785 + static const struct llcc_slice_config sdm670_data[] = { 1786 + { 1787 + .usecase_id = LLCC_CPUSS, 1788 + .slice_id = 1, 1789 + .max_cap = 512, 1790 + .priority = 1, 1791 + .bonus_ways = 0xf, 1792 + .res_ways = 0x0, 1793 + .cache_mode = 0, 1794 + .dis_cap_alloc = true, 1795 + .retain_on_pc = true, 1796 + .activate_on_init = true, 1797 + }, { 1798 + .usecase_id = LLCC_ROTATOR, 1799 + .slice_id = 4, 1800 + .max_cap = 384, 1801 + .priority = 2, 1802 + .fixed_size = true, 1803 + .bonus_ways = 0x0, 1804 + .res_ways = 0xe, 1805 + .cache_mode = 2, 1806 + .dis_cap_alloc = true, 1807 + .retain_on_pc = true, 1808 + }, { 1809 + .usecase_id = LLCC_VOICE, 1810 + .slice_id = 5, 1811 + .max_cap = 512, 1812 + .priority = 1, 1813 + .bonus_ways = 0xf, 1814 + .res_ways = 0x0, 1815 + .cache_mode = 0, 1816 + .dis_cap_alloc = true, 1817 + .retain_on_pc = true, 1818 + }, { 1819 + .usecase_id = LLCC_AUDIO, 1820 + .slice_id = 6, 1821 + .max_cap = 512, 1822 + .priority = 1, 1823 + .bonus_ways = 0xf, 1824 + .res_ways = 0x0, 1825 + .cache_mode = 0, 1826 + .dis_cap_alloc = true, 1827 + .retain_on_pc = true, 1828 + }, { 1829 + .usecase_id = LLCC_MDM, 1830 + .slice_id = 8, 1831 + .max_cap = 512, 1832 + .priority = 1, 1833 + .bonus_ways = 0xf, 1834 + .res_ways = 0x0, 1835 + .cache_mode = 0, 1836 + .dis_cap_alloc = true, 1837 + .retain_on_pc = true, 1838 + }, { 1839 + .usecase_id = LLCC_GPU, 1840 + .slice_id = 12, 1841 + .max_cap = 384, 1842 + .priority = 1, 1843 + .fixed_size = true, 1844 + .bonus_ways = 0x0, 1845 + .res_ways = 0x0, 1846 + .cache_mode = 0, 1847 + .dis_cap_alloc = true, 1848 + .retain_on_pc = true, 1849 + }, { 1850 + .usecase_id = LLCC_MMUHWT, 1851 + .slice_id = 13, 1852 + .max_cap = 512, 1853 + .priority = 1, 1854 + .bonus_ways = 0xf, 1855 + .res_ways = 0x0, 1856 + .cache_mode = 0, 1857 + .dis_cap_alloc = true, 1858 + .activate_on_init = true, 1859 + }, { 1860 + .usecase_id = LLCC_AUDHW, 1861 + .slice_id = 22, 1862 + .max_cap = 512, 1863 + .priority = 1, 1864 + .fixed_size = true, 1865 + .bonus_ways = 0xf, 1866 + .res_ways = 0x0, 1867 + .cache_mode = 0, 1868 + .dis_cap_alloc = true, 1869 + .retain_on_pc = true, 1870 + }, 1871 + }; 1872 + 1785 1873 static const struct llcc_slice_config sdm845_data[] = {{ 1786 1874 .usecase_id = LLCC_CPUSS, 1787 1875 .slice_id = 1, ··· 4284 4196 }, 4285 4197 }; 4286 4198 4199 + static const struct qcom_llcc_config sdm670_cfg[] = { 4200 + { 4201 + .sct_data = sdm670_data, 4202 + .size = ARRAY_SIZE(sdm670_data), 4203 + .skip_llcc_cfg = true, 4204 + .reg_offset = llcc_v1_reg_offset, 4205 + .edac_reg_offset = &llcc_v1_edac_reg_offset, 4206 + .no_edac = true, 4207 + }, 4208 + }; 4209 + 4287 4210 static const struct qcom_llcc_config sdm845_cfg[] = { 4288 4211 { 4289 4212 .sct_data = sdm845_data, ··· 4461 4362 static const struct qcom_sct_config sc8280xp_cfgs = { 4462 4363 .llcc_config = sc8280xp_cfg, 4463 4364 .num_config = ARRAY_SIZE(sc8280xp_cfg), 4365 + }; 4366 + 4367 + static const struct qcom_sct_config sdm670_cfgs = { 4368 + .llcc_config = sdm670_cfg, 4369 + .num_config = ARRAY_SIZE(sdm670_cfg), 4464 4370 }; 4465 4371 4466 4372 static const struct qcom_sct_config sdm845_cfgs = { ··· 5264 5160 { .compatible = "qcom,sc7280-llcc", .data = &sc7280_cfgs }, 5265 5161 { .compatible = "qcom,sc8180x-llcc", .data = &sc8180x_cfgs }, 5266 5162 { .compatible = "qcom,sc8280xp-llcc", .data = &sc8280xp_cfgs }, 5163 + { .compatible = "qcom,sdm670-llcc", .data = &sdm670_cfgs }, 5267 5164 { .compatible = "qcom,sdm845-llcc", .data = &sdm845_cfgs }, 5268 5165 { .compatible = "qcom,sm6350-llcc", .data = &sm6350_cfgs }, 5269 5166 { .compatible = "qcom,sm7150-llcc", .data = &sm7150_cfgs },