Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-14 Thread Dmitry Osipenko
On 14.05.2017 15:27, Mikko Perttunen wrote: > On 05/12/2017 10:29 PM, Dmitry Osipenko wrote: >> If command buffer claims a number of words that is higher than its BO can >> fit and a relocation lays past the BO, a kernel OOPS will be fired on that >> relocation address patching. This was triggered

Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-14 Thread Mikko Perttunen
On 05/12/2017 10:29 PM, Dmitry Osipenko wrote: If command buffer claims a number of words that is higher than its BO can fit and a relocation lays past the BO, a kernel OOPS will be fired on that relocation address patching. This was triggered by an opentegra Xorg driver that erroneously pushed t

Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-14 Thread Dmitry Osipenko
On 12.05.2017 22:29, Dmitry Osipenko wrote: > If command buffer claims a number of words that is higher than its BO can > fit and a relocation lays past the BO, a kernel OOPS will be fired on that > relocation address patching. This was triggered by an opentegra Xorg driver > that erroneously pushe

Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-14 Thread Mikko Perttunen
On 05/14/2017 03:45 PM, Dmitry Osipenko wrote: On 14.05.2017 15:27, Mikko Perttunen wrote: On 05/12/2017 10:29 PM, Dmitry Osipenko wrote: If command buffer claims a number of words that is higher than its BO can fit and a relocation lays past the BO, a kernel OOPS will be fired on that reloca

Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-14 Thread Dmitry Osipenko
On 14.05.2017 15:56, Mikko Perttunen wrote: > > > On 05/14/2017 03:45 PM, Dmitry Osipenko wrote: >> On 14.05.2017 15:27, Mikko Perttunen wrote: >>> On 05/12/2017 10:29 PM, Dmitry Osipenko wrote: If command buffer claims a number of words that is higher than its BO can fit and a relocati

Re: [PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-12 Thread Erik Faye-Lund
On Fri, May 12, 2017 at 9:29 PM, Dmitry Osipenko wrote: > If command buffer claims a number of words that is higher than its BO can > fit and a relocation lays past the BO, a kernel OOPS will be fired on that > relocation address patching. This was triggered by an opentegra Xorg driver > that erro

[PATCH v2] drm/tegra: Check size of a submitted command buffer

2017-05-12 Thread Dmitry Osipenko
If command buffer claims a number of words that is higher than its BO can fit and a relocation lays past the BO, a kernel OOPS will be fired on that relocation address patching. This was triggered by an opentegra Xorg driver that erroneously pushed too many commands to the pushbuf. [ 46.829393]