Author: kib
Date: Thu Nov 26 07:30:29 2020
New Revision: 368050
URL: https://svnweb.freebsd.org/changeset/base/368050

Log:
  MFC r367607:
  bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 
MB.

Modified:
  stable/12/usr.sbin/bhyve/pci_emul.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- stable/12/usr.sbin/bhyve/pci_emul.c Thu Nov 26 07:29:28 2020        
(r368049)
+++ stable/12/usr.sbin/bhyve/pci_emul.c Thu Nov 26 07:30:29 2020        
(r368050)
@@ -624,9 +624,9 @@ pci_emul_alloc_pbar(struct pci_devinst *pdi, int idx, 
                 * Some drivers do not work well if the 64-bit BAR is allocated
                 * above 4GB. Allow for this by allocating small requests under
                 * 4GB unless then allocation size is larger than some arbitrary
-                * number (32MB currently).
+                * number (128MB currently).
                 */
-               if (size > 32 * 1024 * 1024) {
+               if (size > 128 * 1024 * 1024) {
                        /*
                         * XXX special case for device requiring peer-peer DMA
                         */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to