NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52438: radeon related panic



The following reply was made to PR kern/52438; it has been noted by GNATS.

From: coypu%sdf.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/52438: radeon related panic
Date: Sun, 30 Jul 2017 09:20:58 +0000

 Expanded backtrace:
 
 ttm_dma_tt_init
   
 274    error = bus_dmamap_create(ttm->bdev->dmat,
 275        (ttm->num_pages * PAGE_SIZE), ttm->num_pages, PAGE_SIZE, 0,
 276        BUS_DMA_WAITOK, &ttm_dma->dma_address);
 277    if (error)
 278        goto fail1;
 
 ... looks like we failed to bus_dmamap_create? ...
 
 284fail1:  kmem_free(ttm_dma->dma_segs, (ttm->num_pages *
 285        sizeof(ttm_dma->dma_segs[0])));
 286fail0:  KASSERT(error);
 287    ttm_tt_destroy(ttm);
 288    /* XXX errno NetBSD->Linux */
 289    return -error;
 290    }
 
 
 destroy:
 .destroy = &radeon_ttm_backend_destroy,
 
 
 radeon_ttm_backend_destroy:
 572    ttm_dma_tt_fini(&gtt->ttm);
 
 
 ttm_dma_tt_fini:
 312#ifdef __NetBSD__
 313    bus_dmamap_destroy(ttm->bdev->dmat, ttm_dma->dma_address);
 314    kmem_free(ttm_dma->dma_segs, (ttm->num_pages *
 315        sizeof(ttm_dma->dma_segs[0])));
 
 It seems like the error path destroys something not created.
 


Home | Main Index | Thread Index | Old Index