Re: incorrect usage of callout_reset in vbox 4.2.4 ?

2012-12-20 Thread Bernhard Fröhlich
On Thu, Dec 13, 2012 at 2:08 PM, Andriy Gapon a...@freebsd.org wrote:

 It looks like in timer-r0drv-freebsd.c the code tries to pass absolute time 
 as a
 timeout parameter to callout_reset while that function actually expects 
 relative
 time (period).

 I am testing the following patch, but I am sure that the code can be made more
 efficient.

 --- timer-r0drv-freebsd.c.orig  2012-12-12 20:13:27.623202784 +0200
 +++ timer-r0drv-freebsd.c   2012-12-12 20:19:43.368202795 +0200
 @@ -172,15 +172,16 @@
  /*
   * Calc when it should start firing.
   */
 -u64First += RTTimeNanoTS();
 +const uint64_t u64Now = RTTimeNanoTS();
 +u64First += u64Now;

  pTimer-fSuspended = false;
  pTimer-iTick = 0;
  pTimer-u64StartTS = u64First;
  pTimer-u64NextTS = u64First;

 -tv.tv_sec  =  u64First / 10;
 -tv.tv_usec = (u64First % 10) / 1000;
 +tv.tv_sec  =  (u64First - u64Now) / 10;
 +tv.tv_usec = ((u64First - u64Now) % 10) / 1000;
  callout_reset(pTimer-Callout, tvtohz(tv), rtTimerFreeBSDCallback, 
 pTimer);

  return VINF_SUCCESS;
 @@ -247,8 +248,8 @@
  if (pTimer-u64NextTS  u64NanoTS)
  pTimer-u64NextTS = u64NanoTS + RTTimerGetSystemGranularity() / 
 2;

 -tv.tv_sec = pTimer-u64NextTS / 10;
 -tv.tv_usec = (pTimer-u64NextTS % 10) / 1000;
 +tv.tv_sec = (pTimer-u64NextTS - u64NanoTS) / 10;
 +tv.tv_usec = ((pTimer-u64NextTS - u64NanoTS) % 10) / 1000;
  callout_reset(pTimer-Callout, tvtohz(tv), rtTimerFreeBSDCallback, 
 pTimer);
  }

What is your results from that tests? Is the patch correct so should we include
it into the port?

-- 
Bernhard Fröhlich
http://www.bluelife.at/
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [Call for Testers] VirtualBox 4.2.0

2012-12-20 Thread Bernhard Fröhlich
On Fri, Sep 21, 2012 at 4:43 PM, Daniel Braniss da...@cs.huji.ac.il wrote:
 I install vboxdrv.ko in /usr/local/modules via:
 cd virtualbox-ose-kmod
 make KMODDIR=/usr/local/modules install
 but when installing in virtualbox-ose
 there is no KMODDIR, and hence make install fails

Sorry for that very long response time. I have made a patch that should fix that
issue but haven't yet tested it so if you can please give that a try.

https://github.com/decke/freebsd-vbox/commit/cd1a793d24fb27525830275bea5cce2cfb4eb3fd

-- 
Bernhard Froehlich
http://www.bluelife.at/
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Sound lag in Wine

2012-12-20 Thread Ross
Hello.

I installed David Naylor's wine-fbsd64-1.5.18.
Installed Steam, bought Counter-Strike 1.6 and CS: CZ.

However, when I run these games I experience a sound lag (maybe a
half-second — second).

I googled the topic, the soultion is to switch to Alsa, which is not
supported in wine-fbsd64-1.5.18…

Is there anything I can do to get rid of the lag?
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org