[Nouveau] [Bug 33165] [NVA3, NVA8] gpu lockup during driver probe

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 9 09:34:36 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=33165

--- Comment #30 from Oleg Bulatov <oleg at bulatov.mobi> ---
Comment on attachment 95408
  --> https://bugs.freedesktop.org/attachment.cgi?id=95408
initialize stuff for gddr5 ram

Review of attachment 95408:
-----------------------------------------------------------------

::: drivers/gpu/drm/nouveau/core/subdev/fb/ramnva3.c
@@ +365,5 @@
> +		/* XXX this algorithm is insane, find some sanity to it. */
> +		/* [1] MMIO32 R 0x100268 0x30030200 PFB.SUBPART_CONFIG => { SELECT_MASK = 0x2 | UNK16 = 0x3 | ENABLE_MASK = 0x3 } */
> +		nv_wr32(pfb, 0x10fcac, 0x00001f01);
> +		for (o = 0; o < 4; o++) {
> +			int off = offsets[i];

maybe int off = offsets[o]; ?

@@ +387,5 @@
> +			for (i = 0x20, idx = 0; i < 0x30; i++, idx++) {
> +				int pat = pattern[2 + (idx % 2)];
> +				if (i == 0x26)
> +					pat = 0;
> +				if (i == 0x1f)

looks like this condition is always false in this for-loop

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20140309/cfa5aabd/attachment.html>


More information about the Nouveau mailing list