mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-07 04:09:01 +02:00
Port remaining NV4 RAMIN access from the ddx into the drm.
Should fix lockups seen on NV4 cards.
This commit is contained in:
parent
30acb90a60
commit
1a40f3318c
1 changed files with 12 additions and 1 deletions
|
|
@ -434,13 +434,24 @@ static int nouveau_fifo_alloc(drm_device_t* dev,drm_nouveau_fifo_alloc_t* init,
|
|||
dev_priv->cmdbuf_alloc->size,
|
||||
NV_DMA_ACCESS_RO,
|
||||
NV_DMA_TARGET_AGP);
|
||||
} else {
|
||||
|
||||
} else if (dev_priv->card_type != NV_04) {
|
||||
cb_obj = nouveau_dma_object_create(dev,
|
||||
dev_priv->cmdbuf_alloc->start -
|
||||
drm_get_resource_start(dev, 1),
|
||||
dev_priv->cmdbuf_alloc->size,
|
||||
NV_DMA_ACCESS_RO,
|
||||
NV_DMA_TARGET_VIDMEM);
|
||||
} else {
|
||||
/* NV04 cmdbuf hack, from original ddx.. not sure of it's
|
||||
* exact reason for existing :) PCI access to cmdbuf in
|
||||
* VRAM.
|
||||
*/
|
||||
cb_obj = nouveau_dma_object_create(dev,
|
||||
dev_priv->cmdbuf_alloc->start,
|
||||
dev_priv->cmdbuf_alloc->size,
|
||||
NV_DMA_ACCESS_RO,
|
||||
NV_DMA_TARGET_PCI);
|
||||
}
|
||||
if (!cb_obj) {
|
||||
DRM_ERROR("unable to alloc object for command buffer\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue