32bb0764b7
Discarding blocks for reallocation on IPC export for better memory performance trigger memory violations with DMA BUF exports so bypass this for now as application performance drops haven't been observed with the bypass. The raw fragment should be passed to the DMA Buf export call as well since offsets will be implicitly applied in the Thunk/KFD for export/import calls. Also, use the agent information directly from the pointer information so that the export call doesn't have to scan memory to find this. Pass the node ID in the handle so that the import call doesn't have to make two thunk imports to fetch the node ID for GPU memory imports. Finally, allow the user to use DMA Buf IPC via HSA_ENABLE_IPC_MODE_LEGACY=0 for developer testing as legacy mode will be applied by default. Change-Id: Ie8fe267f8768fa5df37126078406f7065f69ff4e