Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6
@ 2020-04-02 15:31 toluschr
  2020-04-02 16:20 ` [ISSUE] [CLOSED] " toluschr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: toluschr @ 2020-04-02 15:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2254 bytes --]

New issue by toluschr on void-packages repository

https://github.com/void-linux/void-packages/issues/20576

Description:
### System

* xuname:  
  Void 5.6.2_1 x86_64 AuthenticAMD notuptodate rrrmFFFFFFFFFFFFFFFFF
* package:  
  virtualbox-ose-dkms-6.1.4_1

### Expected behavior
Building works

### Actual behavior
Building doesn't work

### Steps to reproduce the behavior
Use kernel 5.6

It works fine with this patch: https://www.virtualbox.org/attachment/ticket/19312/fixes_for_5.6.patch
``` patch
--- src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
+++ src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
@@ -1461,9 +1461,13 @@ DECLHIDDEN(int) rtR0MemObjNativeMapKerne
              * MMIO / physical memory.
              */
             Assert(pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS && !pMemLnxToMap->Core.u.Phys.fAllocated);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
+            pMemLnx->Core.pv = ioremap(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub);
+#else
             pMemLnx->Core.pv = pMemLnxToMap->Core.u.Phys.uCachePolicy == RTMEM_CACHE_POLICY_MMIO
                              ? ioremap_nocache(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub)
                              : ioremap(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub);
+#endif
             if (pMemLnx->Core.pv)
             {
                 /** @todo fix protection. */

--- src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
+++ src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
@@ -843,9 +843,13 @@ DECLHIDDEN(int) vboxPciOsDevMapRegion(PV
         if (!rcLnx)
         {
             /* For now no caching, try to optimize later. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
+            RTR0PTR R0PtrMapping = ioremap(pci_resource_start(pPciDev, iRegion),
+                                           pci_resource_len(pPciDev, iRegion));
+#else
             RTR0PTR R0PtrMapping = ioremap_nocache(pci_resource_start(pPciDev, iRegion),
                                                    pci_resource_len(pPciDev, iRegion));
-
+#endif
             if (R0PtrMapping != NIL_RTR0PTR)
                 pIns->aRegionR0Mapping[iRegion] = R0PtrMapping;
             else
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] virtualbox-ose-dkms: Build fails using linux5.6
  2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
@ 2020-04-02 16:20 ` toluschr
  2020-04-02 16:21 ` toluschr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: toluschr @ 2020-04-02 16:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2257 bytes --]

Closed issue by toluschr on void-packages repository

https://github.com/void-linux/void-packages/issues/20576

Description:
### System

* xuname:  
  Void 5.6.2_1 x86_64 AuthenticAMD notuptodate rrrmFFFFFFFFFFFFFFFFF
* package:  
  virtualbox-ose-dkms-6.1.4_1

### Expected behavior
Building works

### Actual behavior
Building doesn't work

### Steps to reproduce the behavior
Use kernel 5.6

It works fine with this patch: https://www.virtualbox.org/attachment/ticket/19312/fixes_for_5.6.patch
``` patch
--- src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
+++ src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
@@ -1461,9 +1461,13 @@ DECLHIDDEN(int) rtR0MemObjNativeMapKerne
              * MMIO / physical memory.
              */
             Assert(pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS && !pMemLnxToMap->Core.u.Phys.fAllocated);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
+            pMemLnx->Core.pv = ioremap(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub);
+#else
             pMemLnx->Core.pv = pMemLnxToMap->Core.u.Phys.uCachePolicy == RTMEM_CACHE_POLICY_MMIO
                              ? ioremap_nocache(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub)
                              : ioremap(pMemLnxToMap->Core.u.Phys.PhysBase + offSub, cbSub);
+#endif
             if (pMemLnx->Core.pv)
             {
                 /** @todo fix protection. */

--- src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
+++ src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
@@ -843,9 +843,13 @@ DECLHIDDEN(int) vboxPciOsDevMapRegion(PV
         if (!rcLnx)
         {
             /* For now no caching, try to optimize later. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
+            RTR0PTR R0PtrMapping = ioremap(pci_resource_start(pPciDev, iRegion),
+                                           pci_resource_len(pPciDev, iRegion));
+#else
             RTR0PTR R0PtrMapping = ioremap_nocache(pci_resource_start(pPciDev, iRegion),
                                                    pci_resource_len(pPciDev, iRegion));
-
+#endif
             if (R0PtrMapping != NIL_RTR0PTR)
                 pIns->aRegionR0Mapping[iRegion] = R0PtrMapping;
             else
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtualbox-ose-dkms: Build fails using linux5.6
  2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
  2020-04-02 16:20 ` [ISSUE] [CLOSED] " toluschr
@ 2020-04-02 16:21 ` toluschr
  2020-04-02 16:27 ` xtraeme
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: toluschr @ 2020-04-02 16:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by toluschr on void-packages repository

https://github.com/void-linux/void-packages/issues/20576#issuecomment-607947589

Comment:
I will just build experimental version from https://www.virtualbox.org/wiki/Testbuilds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtualbox-ose-dkms: Build fails using linux5.6
  2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
  2020-04-02 16:20 ` [ISSUE] [CLOSED] " toluschr
  2020-04-02 16:21 ` toluschr
@ 2020-04-02 16:27 ` xtraeme
  2020-04-02 16:33 ` toluschr
  2020-05-07 19:17 ` [ISSUE] [CLOSED] " toluschr
  4 siblings, 0 replies; 6+ messages in thread
From: xtraeme @ 2020-04-02 16:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/20576#issuecomment-607951015

Comment:
This is still valid. 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtualbox-ose-dkms: Build fails using linux5.6
  2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
                   ` (2 preceding siblings ...)
  2020-04-02 16:27 ` xtraeme
@ 2020-04-02 16:33 ` toluschr
  2020-05-07 19:17 ` [ISSUE] [CLOSED] " toluschr
  4 siblings, 0 replies; 6+ messages in thread
From: toluschr @ 2020-04-02 16:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by toluschr on void-packages repository

https://github.com/void-linux/void-packages/issues/20576#issuecomment-607947589

Comment:
I will just use the experimental version from https://www.virtualbox.org/wiki/Testbuilds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] virtualbox-ose-dkms: Build fails using linux5.6
  2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
                   ` (3 preceding siblings ...)
  2020-04-02 16:33 ` toluschr
@ 2020-05-07 19:17 ` toluschr
  4 siblings, 0 replies; 6+ messages in thread
From: toluschr @ 2020-05-07 19:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Closed issue by toluschr on void-packages repository

https://github.com/void-linux/void-packages/issues/20576

Description:
### System

* xuname:  
  Void 5.6.2_1 x86_64 AuthenticAMD notuptodate rrrmFFFFFFFFFFFFFFFFF
* package:  
  virtualbox-ose-dkms-6.1.4_1

### Expected behavior
Building works

### Actual behavior
Building doesn't work

### Steps to reproduce the behavior
Use kernel 5.6

It works fine with the following patches:
https://www.virtualbox.org/changeset/83471/vbox
https://www.virtualbox.org/changeset/83473/vbox
https://www.virtualbox.org/changeset/83484/vbox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-07 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 15:31 [ISSUE] virtualbox-ose-dkms: Build fails using linux5.6 toluschr
2020-04-02 16:20 ` [ISSUE] [CLOSED] " toluschr
2020-04-02 16:21 ` toluschr
2020-04-02 16:27 ` xtraeme
2020-04-02 16:33 ` toluschr
2020-05-07 19:17 ` [ISSUE] [CLOSED] " toluschr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).