Message ID | bug-191281-2300@https.bugzilla.kernel.org/ (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
https://bugzilla.kernel.org/show_bug.cgi?id=191281 --- Comment #1 from Johannes Hirte <johannes.hirte@datenkhaos.de> --- Created attachment 248741 --> https://bugzilla.kernel.org/attachment.cgi?id=248741&action=edit full dmesg output
https://bugzilla.kernel.org/show_bug.cgi?id=191281 --- Comment #2 from fin4478@hotmail.com --- Created attachment 250711 --> https://bugzilla.kernel.org/attachment.cgi?id=250711&action=edit dmesg output with RX460 I have same errors with Gigabyte RX460 and ~agd5f/linux/log/drivers/gpu/drm/amd?h=drm-next-4.10-wip kernel that I cloned today. Computer seems to work normally, but booting is 3 seconds slower because of this and cpu firmware bug traces.
https://bugzilla.kernel.org/show_bug.cgi?id=191281 --- Comment #3 from Johannes Hirte <johannes.hirte@datenkhaos.de> --- With amdgpu.dpm=0 this doesn't occur. Also tested with amdgpu.powerplay=0, but it didn't help. I don't know about the meaning of the values applied in vce_v3_0_set_vce_sw_clock_gating(), but just inverting the "if (gated)" looks wrong to me.
https://bugzilla.kernel.org/show_bug.cgi?id=191281 --- Comment #4 from Johannes Hirte <johannes.hirte@datenkhaos.de> --- I can confirm that https://lists.freedesktop.org/archives/amd-gfx/2017-January/004537.html fixes boot for me. Tested on top of linux-4.10.0-rc3-00029-gbd5d7428f5e5
https://bugzilla.kernel.org/show_bug.cgi?id=191281 Johannes Hirte (johannes.hirte@datenkhaos.de) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX --- Comment #5 from Johannes Hirte (johannes.hirte@datenkhaos.de) --- fixed -> closing
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index 39f03f137a56..6b3293a1c7b8 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c @@ -134,7 +134,7 @@ static void vce_v3_0_set_vce_sw_clock_gating(struct amdgpu_device *adev, accessible but the firmware will throttle the clocks on the fly as necessary. */ - if (gated) { + if (!gated) { data = RREG32(mmVCE_CLOCK_GATING_B); data |= 0x1ff;