Changeset 79025 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Jun 6, 2019 2:33:47 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131177
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r77850 r79025 323 323 .master_drop = vbox_master_drop, 324 324 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73) 325 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) 325 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) \ 326 && !defined(OPENSUSE_151) 326 327 .set_busid = drm_pci_set_busid, 327 328 # endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r77850 r79025 71 71 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 0 72 72 # define RHEL_70 73 # endif 74 #endif 75 76 #if defined(CONFIG_SUSE_VERSION) 77 # if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 1 78 # define OPENSUSE_151 73 79 # endif 74 80 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r77957 r79025 606 606 #endif 607 607 608 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) 608 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && !defined(OPENSUSE_151) 609 609 static void ttm_bo_put(struct ttm_buffer_object *bo) 610 610 { -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r78067 r79025 501 501 sum += edid[i]; 502 502 edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF; 503 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) 503 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) 504 504 drm_connector_update_edid_property(connector, (struct edid *)edid); 505 505 #else … … 676 676 #endif 677 677 678 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) 678 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) 679 679 drm_connector_attach_encoder(connector, encoder); 680 680 #else -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r77850 r79025 211 211 }; 212 212 213 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) 213 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) \ 214 && !defined(OPENSUSE_151) 214 215 static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev, 215 216 unsigned long size, … … 228 229 229 230 tt->func = &vbox_tt_backend_func; 230 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) 231 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) \ 232 && !defined(OPENSUSE_151) 231 233 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { 232 234 #else … … 241 243 242 244 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0) 243 # if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) 245 # if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \ 246 && !defined(OPENSUSE_151) 244 247 static int vbox_ttm_tt_populate(struct ttm_tt *ttm) 245 248 { … … 275 278 .io_mem_free = &vbox_ttm_io_mem_free, 276 279 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) || defined(RHEL_75) 277 # if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) 280 # if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \ 281 && !defined(OPENSUSE_151) 278 282 .io_mem_pfn = ttm_bo_default_io_mem_pfn, 279 283 # endif … … 299 303 return ret; 300 304 #endif 301 302 305 ret = ttm_bo_device_init(&vbox->ttm.bdev, 303 306 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) … … 421 424 ret = ttm_bo_init(&vbox->ttm.bdev, &vboxbo->bo, size, 422 425 ttm_bo_type_device, &vboxbo->placement, 423 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0) && !defined(RHEL_76) 426 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0) && !defined(RHEL_76) \ 427 && !defined(OPENSUSE_151) 424 428 align >> PAGE_SHIFT, false, NULL, acc_size, 425 429 #else … … 450 454 int vbox_bo_pin(struct vbox_bo *bo, u32 pl_flag, u64 *gpu_addr) 451 455 { 452 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) 456 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \ 457 || defined(OPENSUSE_151) 453 458 struct ttm_operation_ctx ctx = { false, false }; 454 459 #endif … … 468 473 PLACEMENT_FLAGS(bo->placements[i]) |= TTM_PL_FLAG_NO_EVICT; 469 474 470 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) 475 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \ 476 && !defined(OPENSUSE_151) 471 477 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); 472 478 #else … … 486 492 int vbox_bo_unpin(struct vbox_bo *bo) 487 493 { 488 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) 494 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \ 495 || defined(OPENSUSE_151) 489 496 struct ttm_operation_ctx ctx = { false, false }; 490 497 #endif … … 502 509 PLACEMENT_FLAGS(bo->placements[i]) &= ~TTM_PL_FLAG_NO_EVICT; 503 510 504 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) 511 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \ 512 && !defined(OPENSUSE_151) 505 513 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); 506 514 #else … … 520 528 int vbox_bo_push_sysram(struct vbox_bo *bo) 521 529 { 522 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) 530 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \ 531 || defined(OPENSUSE_151) 523 532 struct ttm_operation_ctx ctx = { false, false }; 524 533 #endif … … 541 550 PLACEMENT_FLAGS(bo->placements[i]) |= TTM_PL_FLAG_NO_EVICT; 542 551 543 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) 552 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \ 553 && !defined(OPENSUSE_151) 544 554 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); 545 555 #else
Note:
See TracChangeset
for help on using the changeset viewer.