Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
On 11/08/2011 12:40 AM, j.glisse at gmail.com wrote:
> From: Jerome Glisse<jglisse at redhat.com>
>
> Signed-off-by: Jerome Glisse<jglisse at redhat.com>
> Reviewed-by: Konrad Rzeszutek Wilk<konrad.wilk at oracle.com>
> ---
> drivers/gpu/drm/ttm/ttm_tt.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c
> index 2dd45ca..58ea7dc 100644
> --- a/drivers/gpu/drm/ttm/ttm_tt.c
> +++ b/drivers/gpu/drm/ttm/ttm_tt.c
> @@ -298,7 +298,7 @@ struct ttm_tt *ttm_tt_create(struct ttm_bo_device *bdev,
> unsigned long size,
> ttm->dummy_read_page = dummy_read_page;
>
> ttm_tt_alloc_page_directory(ttm);
> - if (!ttm->pages) {
> + if (!ttm->pages || !ttm->dma_address) {
> ttm_tt_destroy(ttm);
> printk(KERN_ERR TTM_PFX "Failed allocating page table\n");
> return NULL;
> - [PATCH 02/12] drm/ttm: remove split btw highmen... Thomas Hellstrom
- [PATCH 02/12] drm/ttm: remove split btw hig... Konrad Rzeszutek Wilk
- [PATCH 03/12] drm/ttm: remove unused backend flags f... [email protected]
- [PATCH 03/12] drm/ttm: remove unused backend fl... Thomas Hellstrom
- [PATCH 04/12] drm/ttm: use ttm put pages function to... [email protected]
- [PATCH 04/12] drm/ttm: use ttm put pages functi... Thomas Hellstrom
- [PATCH 05/12] drm/ttm: convert page allocation to us... [email protected]
- [PATCH 05/12] drm/ttm: convert page allocation ... Thomas Hellstrom
- [PATCH 05/12] drm/ttm: convert page allocat... Jerome Glisse
- [PATCH 06/12] drm/ttm: test for dma_address array al... [email protected]
- [PATCH 06/12] drm/ttm: test for dma_address arr... Thomas Hellstrom
- [PATCH 07/12] drm/ttm: merge ttm_backend and ttm_tt [email protected]
- [PATCH 07/12] drm/ttm: merge ttm_backend and tt... Thomas Hellstrom
- [PATCH 08/12] drm/ttm: introduce callback for ttm_tt... [email protected]
- [PATCH 08/12] drm/ttm: introduce callback for t... Thomas Hellstrom
- [PATCH 09/12] ttm: Provide DMA aware TTM page pool c... [email protected]
- [PATCH 09/12] ttm: Provide DMA aware TTM page p... Thomas Hellstrom
- [PATCH 10/12] swiotlb: Expose swiotlb_nr_tlb functio... [email protected]
- [PATCH 11/12] drm/radeon/kms: Enable the TTM DMA poo... [email protected]
- [PATCH 12/12] nouveau/ttm/dma: Enable the TTM DMA po... [email protected]
- ttm: merge ttm_backend & ttm_tt, introduce ttm d... Konrad Rzeszutek Wilk
