diff options
| author | Arthur Huillet <arthur.huillet@free.fr> | 2007-07-11 14:56:27 +0200 | 
|---|---|---|
| committer | Arthur Huillet <arthur.huillet@free.fr> | 2007-07-11 14:56:27 +0200 | 
| commit | d26ae22c2b17e0f193334cefec7d141befcfa1ee (patch) | |
| tree | 5dfe58b9dddbf18414276203335d5efdef78bbb5 /shared-core/nouveau_state.c | |
| parent | 5ccadac9e3b1beb8ac0177c7a39862094fe3b6de (diff) | |
fixed bug that prevented PCIE cards from actually using PCIGART - NV50 will probably still have a problem
Diffstat (limited to 'shared-core/nouveau_state.c')
| -rw-r--r-- | shared-core/nouveau_state.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c index 14b33a4a..fe3db168 100644 --- a/shared-core/nouveau_state.c +++ b/shared-core/nouveau_state.c @@ -445,11 +445,11 @@ int nouveau_ioctl_getparam(DRM_IOCTL_ARGS)  		break;  	case NOUVEAU_GETPARAM_PCI_PHYSICAL:  		if ( dev -> sg ) -			getparam.value=dev->sg->virtual; +			getparam.value=(uint64_t) dev->sg->virtual;  		else   		     {  		     DRM_ERROR("Requested PCIGART address, while no PCIGART was created\n"); -		     DRM_ERR(EINVAL); +		     return DRM_ERR(EINVAL);  		     }  		break;  	case NOUVEAU_GETPARAM_FB_SIZE:  | 
