From: Jay Cornwall Date: Mon, 19 Jan 2015 17:47:34 +0000 (-0600) Subject: drm/amdkfd: Preserve CP_MQD_IQ_RPTR internal state X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~75^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d752f95e55ed36648fc2bcbca348f5113920c357;p=pandora-kernel.git drm/amdkfd: Preserve CP_MQD_IQ_RPTR internal state CP microcode uses undocumented bits in this register to record queue state information. The KFD zeroes these bits in update_mqd, when invoked through the UPDATE_QUEUE ioctl, causing incoherent state when the ioctl is used to successively unmap and map a queue. Since the queue type cannot be changed in this path, move the MQD write to init_mqd. Signed-off-by: Jay Cornwall Reviewed-by: Ben Goz Signed-off-by: Oded Gabbay --- Reading git-diff-tree failed