Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-13 Thread Lucas Stach
Am Dienstag, den 12.08.2014, 22:17 -0400 schrieb Jerome Glisse: [...] > > I haven't tested the patch yet. For the original bug it won't help directly, > > because the super-slow allocations which cause the desktop stall are > > tt_cached allocations, so they go through the if (is_cached) code path

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-13 Thread Lucas Stach
Am Dienstag, den 12.08.2014, 22:17 -0400 schrieb Jerome Glisse: [...] I haven't tested the patch yet. For the original bug it won't help directly, because the super-slow allocations which cause the desktop stall are tt_cached allocations, so they go through the if (is_cached) code path which

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Jerome Glisse
On Wed, Aug 13, 2014 at 04:04:15AM +0200, Mario Kleiner wrote: > On 08/13/2014 03:50 AM, Michel Dänzer wrote: > >On 12.08.2014 00:17, Jerome Glisse wrote: > >>On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: > >>>On 08/10/2014 08:02 PM, Mario Kleiner wrote: > On 08/10/2014

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Mario Kleiner
On 08/13/2014 03:50 AM, Michel Dänzer wrote: On 12.08.2014 00:17, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote:

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Jerome Glisse
On Wed, Aug 13, 2014 at 10:50:25AM +0900, Michel Dänzer wrote: > On 12.08.2014 00:17, Jerome Glisse wrote: > > On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: > >> On 08/10/2014 08:02 PM, Mario Kleiner wrote: > >>> On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: > On

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Michel Dänzer
On 12.08.2014 00:17, Jerome Glisse wrote: > On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: >> On 08/10/2014 08:02 PM, Mario Kleiner wrote: >>> On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: > > The other problem is that

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Konrad Rzeszutek Wilk
On Tue, Aug 12, 2014 at 02:12:07PM +0200, Mario Kleiner wrote: > On 08/11/2014 05:17 PM, Jerome Glisse wrote: > >On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: > >>On 08/10/2014 08:02 PM, Mario Kleiner wrote: > >>>On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: > On

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Mario Kleiner
On 08/11/2014 05:17 PM, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Mario Kleiner
On 08/11/2014 05:17 PM, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Konrad Rzeszutek Wilk
On Tue, Aug 12, 2014 at 02:12:07PM +0200, Mario Kleiner wrote: On 08/11/2014 05:17 PM, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM,

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Michel Dänzer
On 12.08.2014 00:17, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: The other problem is that probably TTM does

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Jerome Glisse
On Wed, Aug 13, 2014 at 10:50:25AM +0900, Michel Dänzer wrote: On 12.08.2014 00:17, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM,

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Mario Kleiner
On 08/13/2014 03:50 AM, Michel Dänzer wrote: On 12.08.2014 00:17, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote:

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-12 Thread Jerome Glisse
On Wed, Aug 13, 2014 at 04:04:15AM +0200, Mario Kleiner wrote: On 08/13/2014 03:50 AM, Michel Dänzer wrote: On 12.08.2014 00:17, Jerome Glisse wrote: On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-11 Thread Jerome Glisse
On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: > On 08/10/2014 08:02 PM, Mario Kleiner wrote: > > On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: > >> On 08/10/2014 05:11 AM, Mario Kleiner wrote: > >>> Resent this time without HTML formatting which lkml doesn't like. > >>>

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-11 Thread Thomas Hellstrom
On 08/10/2014 08:02 PM, Mario Kleiner wrote: > On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: >> On 08/10/2014 05:11 AM, Mario Kleiner wrote: >>> Resent this time without HTML formatting which lkml doesn't like. >>> Sorry. >>> >>> On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-11 Thread Thomas Hellstrom
On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-11 Thread Jerome Glisse
On Mon, Aug 11, 2014 at 12:11:21PM +0200, Thomas Hellstrom wrote: On 08/10/2014 08:02 PM, Mario Kleiner wrote: On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting which lkml doesn't like. Sorry. On

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-10 Thread Mario Kleiner
On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-10 Thread Thomas Hellstrom
On 08/10/2014 05:11 AM, Mario Kleiner wrote: > Resent this time without HTML formatting which lkml doesn't like. Sorry. > > On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: >> On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: >>> On August 9, 2014 1:39:39 AM EDT, Thomas >>> Hellstrom wrote:

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-10 Thread Thomas Hellstrom
On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39 AM EDT, Thomas Hellstromthellst...@vmware.com

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-10 Thread Mario Kleiner
On 08/10/2014 01:03 PM, Thomas Hellstrom wrote: On 08/10/2014 05:11 AM, Mario Kleiner wrote: Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Mario Kleiner
Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39 AM EDT, Thomas Hellstrom wrote: Hi. Hey Thomas! IIRC I don't think the TTM DMA pool

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Thomas Hellstrom
On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: > On August 9, 2014 1:39:39 AM EDT, Thomas Hellstrom > wrote: >> Hi. >> > Hey Thomas! > >> IIRC I don't think the TTM DMA pool allocates coherent pages more than >> one page at a time, and _if that's true_ it's pretty unnecessary for >> the

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Konrad Rzeszutek Wilk
On August 9, 2014 1:39:39 AM EDT, Thomas Hellstrom wrote: >Hi. > Hey Thomas! >IIRC I don't think the TTM DMA pool allocates coherent pages more than >one page at a time, and _if that's true_ it's pretty unnecessary for >the >dma subsystem to route those allocations to CMA. Maybe Konrad could

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Konrad Rzeszutek Wilk
On August 9, 2014 1:39:39 AM EDT, Thomas Hellstrom thellst...@vmware.com wrote: Hi. Hey Thomas! IIRC I don't think the TTM DMA pool allocates coherent pages more than one page at a time, and _if that's true_ it's pretty unnecessary for the dma subsystem to route those allocations to CMA. Maybe

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Thomas Hellstrom
On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39 AM EDT, Thomas Hellstrom thellst...@vmware.com wrote: Hi. Hey Thomas! IIRC I don't think the TTM DMA pool allocates coherent pages more than one page at a time, and _if that's true_ it's pretty unnecessary

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-09 Thread Mario Kleiner
Resent this time without HTML formatting which lkml doesn't like. Sorry. On 08/09/2014 03:58 PM, Thomas Hellstrom wrote: On 08/09/2014 03:33 PM, Konrad Rzeszutek Wilk wrote: On August 9, 2014 1:39:39 AM EDT, Thomas Hellstromthellst...@vmware.com wrote: Hi. Hey Thomas! IIRC I don't think

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-08 Thread Thomas Hellstrom
Hi. IIRC I don't think the TTM DMA pool allocates coherent pages more than one page at a time, and _if that's true_ it's pretty unnecessary for the dma subsystem to route those allocations to CMA. Maybe Konrad could shed some light over this? /Thomas On 08/08/2014 07:42 PM, Mario Kleiner

CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-08 Thread Mario Kleiner
Hi all, there is a rather severe performance problem i accidentally found when trying to give Linux 3.16.0 a final test on a x86_64 MacBookPro under Ubuntu 14.04 LTS with nouveau as graphics driver. I was lazy and just installed the Ubuntu precompiled mainline kernel. That kernel happens to

CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-08 Thread Mario Kleiner
Hi all, there is a rather severe performance problem i accidentally found when trying to give Linux 3.16.0 a final test on a x86_64 MacBookPro under Ubuntu 14.04 LTS with nouveau as graphics driver. I was lazy and just installed the Ubuntu precompiled mainline kernel. That kernel happens to

Re: CONFIG_DMA_CMA causes ttm performance problems/hangs.

2014-08-08 Thread Thomas Hellstrom
Hi. IIRC I don't think the TTM DMA pool allocates coherent pages more than one page at a time, and _if that's true_ it's pretty unnecessary for the dma subsystem to route those allocations to CMA. Maybe Konrad could shed some light over this? /Thomas On 08/08/2014 07:42 PM, Mario Kleiner