Re: [Intel-gfx] [PATCH 4/8] drm/i915/gen9: fix the WaWmMemoryReadLatency implementation

2016-09-13 Thread Maarten Lankhorst
Op 07-09-16 om 02:52 schreef Paulo Zanoni: > Bspec says: > "The mailbox response data may not account for memory read latency. >If the mailbox response data for level 0 is 0us, add 2 microseconds >to the result for each valid level." > > This means we should only do the +2 in case wm[0]

[Intel-gfx] [PATCH 4/8] drm/i915/gen9: fix the WaWmMemoryReadLatency implementation

2016-09-06 Thread Paulo Zanoni
Bspec says: "The mailbox response data may not account for memory read latency. If the mailbox response data for level 0 is 0us, add 2 microseconds to the result for each valid level." This means we should only do the +2 in case wm[0] == 0, not always. So split the sanitizing