RE: [PATCH 07/12] PCI: tegra: Disable AFI dynamic clock gating

David Laight
2017-10-30T15:58:36Z

From: Manikanta Maddireddy
> Sent: 27 October 2017 20:29
> When there are 32 outstanding writes from AFI to memory, the outstanding
> write counter overflows and indicates that there are "0" outstanding write
> transactions. This outstanding write counter is used to generate IDLE
> signal to dynamically gate the AFI clock.
>
> When memory controller is under heavy load, its possible that write
> completions will come back to AFI after long delay and AFI write counter
> overflows. AFI clock gets gated even when there are outstanding
> transactions towards memory controller resutling in system hang.
>
> Disable dynamic clock gating of AFI clock to avoid system hang.

At least some of the above really ought to be comments in the code.
(and with the earlier fix for limiting the number of writes.)

David