Lines Matching refs:asid
353 static int gaudi_mmu_update_asid_hop0_addr(struct hl_device *hdev, u32 asid,
364 static void gaudi_mmu_prepare(struct hl_device *hdev, u32 asid);
4496 static int gaudi_context_switch(struct hl_device *hdev, u32 asid) in gaudi_context_switch() argument
4511 gaudi_mmu_prepare(hdev, asid); in gaudi_context_switch()
4753 void gaudi_mmu_prepare_reg(struct hl_device *hdev, u64 reg, u32 asid) in gaudi_mmu_prepare_reg() argument
4757 WREG32_OR(reg, asid); in gaudi_mmu_prepare_reg()
4760 static void gaudi_mmu_prepare(struct hl_device *hdev, u32 asid) in gaudi_mmu_prepare() argument
4767 if (asid & ~DMA0_QM_GLBL_NON_SECURE_PROPS_0_ASID_MASK) { in gaudi_mmu_prepare()
4768 WARN(1, "asid %u is too big\n", asid); in gaudi_mmu_prepare()
4776 gaudi_mmu_prepare_reg(hdev, mmDMA0_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4777 gaudi_mmu_prepare_reg(hdev, mmDMA0_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4778 gaudi_mmu_prepare_reg(hdev, mmDMA0_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4779 gaudi_mmu_prepare_reg(hdev, mmDMA0_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4780 gaudi_mmu_prepare_reg(hdev, mmDMA0_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4782 gaudi_mmu_prepare_reg(hdev, mmDMA1_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4783 gaudi_mmu_prepare_reg(hdev, mmDMA1_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4784 gaudi_mmu_prepare_reg(hdev, mmDMA1_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4785 gaudi_mmu_prepare_reg(hdev, mmDMA1_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4786 gaudi_mmu_prepare_reg(hdev, mmDMA1_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4788 gaudi_mmu_prepare_reg(hdev, mmDMA2_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4789 gaudi_mmu_prepare_reg(hdev, mmDMA2_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4790 gaudi_mmu_prepare_reg(hdev, mmDMA2_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4791 gaudi_mmu_prepare_reg(hdev, mmDMA2_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4792 gaudi_mmu_prepare_reg(hdev, mmDMA2_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4794 gaudi_mmu_prepare_reg(hdev, mmDMA3_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4795 gaudi_mmu_prepare_reg(hdev, mmDMA3_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4796 gaudi_mmu_prepare_reg(hdev, mmDMA3_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4797 gaudi_mmu_prepare_reg(hdev, mmDMA3_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4798 gaudi_mmu_prepare_reg(hdev, mmDMA3_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4800 gaudi_mmu_prepare_reg(hdev, mmDMA4_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4801 gaudi_mmu_prepare_reg(hdev, mmDMA4_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4802 gaudi_mmu_prepare_reg(hdev, mmDMA4_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4803 gaudi_mmu_prepare_reg(hdev, mmDMA4_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4804 gaudi_mmu_prepare_reg(hdev, mmDMA4_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4806 gaudi_mmu_prepare_reg(hdev, mmDMA5_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4807 gaudi_mmu_prepare_reg(hdev, mmDMA5_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4808 gaudi_mmu_prepare_reg(hdev, mmDMA5_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4809 gaudi_mmu_prepare_reg(hdev, mmDMA5_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4810 gaudi_mmu_prepare_reg(hdev, mmDMA5_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4812 gaudi_mmu_prepare_reg(hdev, mmDMA6_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4813 gaudi_mmu_prepare_reg(hdev, mmDMA6_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4814 gaudi_mmu_prepare_reg(hdev, mmDMA6_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4815 gaudi_mmu_prepare_reg(hdev, mmDMA6_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4816 gaudi_mmu_prepare_reg(hdev, mmDMA6_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4818 gaudi_mmu_prepare_reg(hdev, mmDMA7_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4819 gaudi_mmu_prepare_reg(hdev, mmDMA7_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4820 gaudi_mmu_prepare_reg(hdev, mmDMA7_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4821 gaudi_mmu_prepare_reg(hdev, mmDMA7_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4822 gaudi_mmu_prepare_reg(hdev, mmDMA7_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4824 gaudi_mmu_prepare_reg(hdev, mmDMA0_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4825 gaudi_mmu_prepare_reg(hdev, mmDMA1_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4826 gaudi_mmu_prepare_reg(hdev, mmDMA2_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4827 gaudi_mmu_prepare_reg(hdev, mmDMA3_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4828 gaudi_mmu_prepare_reg(hdev, mmDMA4_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4829 gaudi_mmu_prepare_reg(hdev, mmDMA5_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4830 gaudi_mmu_prepare_reg(hdev, mmDMA6_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4831 gaudi_mmu_prepare_reg(hdev, mmDMA7_CORE_NON_SECURE_PROPS, asid); in gaudi_mmu_prepare()
4833 gaudi_mmu_prepare_reg(hdev, mmTPC0_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4834 gaudi_mmu_prepare_reg(hdev, mmTPC0_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4835 gaudi_mmu_prepare_reg(hdev, mmTPC0_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4836 gaudi_mmu_prepare_reg(hdev, mmTPC0_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4837 gaudi_mmu_prepare_reg(hdev, mmTPC0_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4838 gaudi_mmu_prepare_reg(hdev, mmTPC0_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4839 gaudi_mmu_prepare_reg(hdev, mmTPC0_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4841 gaudi_mmu_prepare_reg(hdev, mmTPC1_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4842 gaudi_mmu_prepare_reg(hdev, mmTPC1_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4843 gaudi_mmu_prepare_reg(hdev, mmTPC1_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4844 gaudi_mmu_prepare_reg(hdev, mmTPC1_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4845 gaudi_mmu_prepare_reg(hdev, mmTPC1_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4846 gaudi_mmu_prepare_reg(hdev, mmTPC1_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4847 gaudi_mmu_prepare_reg(hdev, mmTPC1_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4849 gaudi_mmu_prepare_reg(hdev, mmTPC2_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4850 gaudi_mmu_prepare_reg(hdev, mmTPC2_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4851 gaudi_mmu_prepare_reg(hdev, mmTPC2_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4852 gaudi_mmu_prepare_reg(hdev, mmTPC2_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4853 gaudi_mmu_prepare_reg(hdev, mmTPC2_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4854 gaudi_mmu_prepare_reg(hdev, mmTPC2_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4855 gaudi_mmu_prepare_reg(hdev, mmTPC2_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4857 gaudi_mmu_prepare_reg(hdev, mmTPC3_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4858 gaudi_mmu_prepare_reg(hdev, mmTPC3_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4859 gaudi_mmu_prepare_reg(hdev, mmTPC3_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4860 gaudi_mmu_prepare_reg(hdev, mmTPC3_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4861 gaudi_mmu_prepare_reg(hdev, mmTPC3_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4862 gaudi_mmu_prepare_reg(hdev, mmTPC3_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4863 gaudi_mmu_prepare_reg(hdev, mmTPC3_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4865 gaudi_mmu_prepare_reg(hdev, mmTPC4_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4866 gaudi_mmu_prepare_reg(hdev, mmTPC4_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4867 gaudi_mmu_prepare_reg(hdev, mmTPC4_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4868 gaudi_mmu_prepare_reg(hdev, mmTPC4_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4869 gaudi_mmu_prepare_reg(hdev, mmTPC4_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4870 gaudi_mmu_prepare_reg(hdev, mmTPC4_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4871 gaudi_mmu_prepare_reg(hdev, mmTPC4_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4873 gaudi_mmu_prepare_reg(hdev, mmTPC5_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4874 gaudi_mmu_prepare_reg(hdev, mmTPC5_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4875 gaudi_mmu_prepare_reg(hdev, mmTPC5_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4876 gaudi_mmu_prepare_reg(hdev, mmTPC5_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4877 gaudi_mmu_prepare_reg(hdev, mmTPC5_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4878 gaudi_mmu_prepare_reg(hdev, mmTPC5_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4879 gaudi_mmu_prepare_reg(hdev, mmTPC5_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4881 gaudi_mmu_prepare_reg(hdev, mmTPC6_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4882 gaudi_mmu_prepare_reg(hdev, mmTPC6_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4883 gaudi_mmu_prepare_reg(hdev, mmTPC6_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4884 gaudi_mmu_prepare_reg(hdev, mmTPC6_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4885 gaudi_mmu_prepare_reg(hdev, mmTPC6_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4886 gaudi_mmu_prepare_reg(hdev, mmTPC6_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4887 gaudi_mmu_prepare_reg(hdev, mmTPC6_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4889 gaudi_mmu_prepare_reg(hdev, mmTPC7_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4890 gaudi_mmu_prepare_reg(hdev, mmTPC7_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4891 gaudi_mmu_prepare_reg(hdev, mmTPC7_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4892 gaudi_mmu_prepare_reg(hdev, mmTPC7_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4893 gaudi_mmu_prepare_reg(hdev, mmTPC7_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4894 gaudi_mmu_prepare_reg(hdev, mmTPC7_CFG_ARUSER_LO, asid); in gaudi_mmu_prepare()
4895 gaudi_mmu_prepare_reg(hdev, mmTPC7_CFG_AWUSER_LO, asid); in gaudi_mmu_prepare()
4897 gaudi_mmu_prepare_reg(hdev, mmMME0_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4898 gaudi_mmu_prepare_reg(hdev, mmMME0_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4899 gaudi_mmu_prepare_reg(hdev, mmMME0_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4900 gaudi_mmu_prepare_reg(hdev, mmMME0_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4901 gaudi_mmu_prepare_reg(hdev, mmMME0_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4902 gaudi_mmu_prepare_reg(hdev, mmMME2_QM_GLBL_NON_SECURE_PROPS_0, asid); in gaudi_mmu_prepare()
4903 gaudi_mmu_prepare_reg(hdev, mmMME2_QM_GLBL_NON_SECURE_PROPS_1, asid); in gaudi_mmu_prepare()
4904 gaudi_mmu_prepare_reg(hdev, mmMME2_QM_GLBL_NON_SECURE_PROPS_2, asid); in gaudi_mmu_prepare()
4905 gaudi_mmu_prepare_reg(hdev, mmMME2_QM_GLBL_NON_SECURE_PROPS_3, asid); in gaudi_mmu_prepare()
4906 gaudi_mmu_prepare_reg(hdev, mmMME2_QM_GLBL_NON_SECURE_PROPS_4, asid); in gaudi_mmu_prepare()
4908 gaudi_mmu_prepare_reg(hdev, mmMME0_SBAB_ARUSER0, asid); in gaudi_mmu_prepare()
4909 gaudi_mmu_prepare_reg(hdev, mmMME0_SBAB_ARUSER1, asid); in gaudi_mmu_prepare()
4910 gaudi_mmu_prepare_reg(hdev, mmMME1_SBAB_ARUSER0, asid); in gaudi_mmu_prepare()
4911 gaudi_mmu_prepare_reg(hdev, mmMME1_SBAB_ARUSER1, asid); in gaudi_mmu_prepare()
4912 gaudi_mmu_prepare_reg(hdev, mmMME2_SBAB_ARUSER0, asid); in gaudi_mmu_prepare()
4913 gaudi_mmu_prepare_reg(hdev, mmMME2_SBAB_ARUSER1, asid); in gaudi_mmu_prepare()
4914 gaudi_mmu_prepare_reg(hdev, mmMME3_SBAB_ARUSER0, asid); in gaudi_mmu_prepare()
4915 gaudi_mmu_prepare_reg(hdev, mmMME3_SBAB_ARUSER1, asid); in gaudi_mmu_prepare()
4916 gaudi_mmu_prepare_reg(hdev, mmMME0_ACC_WBC, asid); in gaudi_mmu_prepare()
4917 gaudi_mmu_prepare_reg(hdev, mmMME1_ACC_WBC, asid); in gaudi_mmu_prepare()
4918 gaudi_mmu_prepare_reg(hdev, mmMME2_ACC_WBC, asid); in gaudi_mmu_prepare()
4919 gaudi_mmu_prepare_reg(hdev, mmMME3_ACC_WBC, asid); in gaudi_mmu_prepare()
5986 bool is_hard, u32 asid, u64 va, u64 size) in gaudi_mmu_invalidate_cache_range() argument
6039 u32 asid, u64 phys_addr) in gaudi_mmu_update_asid_hop0_addr() argument
6049 WREG32(MMU_ASID, asid); in gaudi_mmu_update_asid_hop0_addr()
6064 "Timeout during MMU hop0 config of asid %d\n", asid); in gaudi_mmu_update_asid_hop0_addr()