Changeset 69748 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Nov 18, 2017 8:56:56 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r69083 r69748 253 253 void vbox_fbdev_fini(struct drm_device *dev); 254 254 void vbox_fbdev_set_suspend(struct drm_device *dev, int state); 255 void vbox_fbdev_set_base(struct vbox_private *vbox, unsigned long gpu_addr);256 255 257 256 struct vbox_bo { -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r69143 r69748 315 315 info->apertures->ranges[0].base = pci_resource_start(dev->pdev, 0); 316 316 info->apertures->ranges[0].size = pci_resource_len(dev->pdev, 0); 317 info->fix.smem_start = 0; 318 info->fix.smem_len = size; 317 319 318 320 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) … … 452 454 fb_set_suspend(vbox->fbdev->helper.fbdev, state); 453 455 } 454 455 void vbox_fbdev_set_base(struct vbox_private *vbox, unsigned long gpu_addr)456 {457 vbox->fbdev->helper.fbdev->fix.smem_start =458 vbox->fbdev->helper.fbdev->apertures->ranges[0].base + gpu_addr;459 vbox->fbdev->helper.fbdev->fix.smem_len =460 vbox->available_vram_size - gpu_addr;461 } -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r69525 r69748 275 275 276 276 ret = vbox_bo_pin(bo, TTM_PL_FLAG_VRAM, &gpu_addr); 277 if (ret) {278 vbox_bo_unreserve(bo);277 vbox_bo_unreserve(bo); 278 if (ret) 279 279 return ret; 280 } 281 282 if (&vbox->fbdev->afb == vbox_fb) 283 vbox_fbdev_set_base(vbox, gpu_addr); 284 vbox_bo_unreserve(bo); 285 286 /* vbox_set_start_address_crt1(crtc, (u32)gpu_addr); */ 280 287 281 vbox_crtc->fb_offset = gpu_addr; 288 282 if (vbox_set_up_input_mapping(vbox)) {
Note:
See TracChangeset
for help on using the changeset viewer.