From: Oded Gabbay Date: Mon, 17 Nov 2014 11:18:32 +0000 (+0200) Subject: amdkfd: use schedule() in sync_with_hw X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~22^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a5634a72934a566b3e5fdb0e8f345846162f7d3;p=pandora-kernel.git amdkfd: use schedule() in sync_with_hw amdkfd uses cpu_relax() in its sync_with_hw() function. Because cpu_relax() is defined as 'REP; NOP' on x86_64, it will block the CPU from servicing IOMMU PPR requests. This may cause a deadlock, because sync_with_hw() won't be completed until the PPR request has been served. Therefore, we need to use schedule() instead of cpu_relax() as it is the minimum requirement to allow other threads to execute. Reviewed-by: Alex Deucher Signed-off-by: Oded Gabbay --- Reading git-diff-tree failed