get_cyclecount(9) deprecation

2011-03-17 Thread Jung-uk Kim
m the current uses. Please review the patch. Note I didn't really remove get_cyclecount() just because some random third-party module may use it as it is a documented feature while cpu_ticks is an internal KPI. What do you think? Jung-uk Kim Index: sys/kern/

Re: get_cyclecount(9) deprecation

2011-03-18 Thread Jung-uk Kim
/quirks individually per-core. I think > that we assume that all cores have the same stepping and thus > require the same workarounds, if any, as BSP. Also, I think tsc > calibration is done only on BSP, but I may be wrong there. Yeah, it is just sad but that's what we do now. Just for

Re: get_cyclecount(9) deprecation

2011-03-18 Thread Jung-uk Kim
x gives me really wacky TSC frequency sometimes. When it happens, it becomes unusably slow. So, I know something is really wrong there, too. However, Xen seems to do much smarter than that because it has its own concept of virtual TSC, thanks to its para-virtualization architecture. Jung-uk

Re: get_cyclecount(9) deprecation

2011-03-18 Thread Jung-uk Kim
On Friday 18 March 2011 04:11 pm, Kostik Belousov wrote: > On Fri, Mar 18, 2011 at 02:09:58PM -0400, Jung-uk Kim wrote: > > On Friday 18 March 2011 01:05 pm, Bruce Evans wrote: > > > On Sat, 19 Mar 2011, Bruce Evans wrote: > > > > On Fri, 18 Mar 2011, Kostik Belousov

[RFC] Enabling invariant TSC timecounter on SMP

2011-05-24 Thread Jung-uk Kim
heers, Jung-uk Kim Index: sys/x86/x86/tsc.c === --- sys/x86/x86/tsc.c (revision 62) +++ sys/x86/x86/tsc.c (working copy) @@ -79,7 +79,8 @@ static void tsc_freq_changed(void *arg, const stru int status); static

Re: [RFC] Enabling invariant TSC timecounter on SMP

2011-05-31 Thread Jung-uk Kim
On Tuesday 31 May 2011 07:18 am, Andriy Gapon wrote: > on 24/05/2011 20:56 Jung-uk Kim said the following: > > I think it's about time to enable invariant TSC timecounter on > > SMP by default. Please see the attached patch. It is also > > available from here: > &g

Re: [RFC] Enabling invariant TSC timecounter on SMP

2011-06-01 Thread Jung-uk Kim
On Wednesday 01 June 2011 01:40 am, Andriy Gapon wrote: > on 31/05/2011 23:16 Jung-uk Kim said the following: > > On Tuesday 31 May 2011 07:18 am, Andriy Gapon wrote: > >> on 24/05/2011 20:56 Jung-uk Kim said the following: > >>> I think it's about time to

Re: [RFC] Enabling invariant TSC timecounter on SMP

2011-06-03 Thread Jung-uk Kim
On Friday 03 June 2011 02:03 am, Andriy Gapon wrote: > on 01/06/2011 23:55 Jung-uk Kim said the following: > > Yes, it's still a work-in-progress. However, I thought it is > > good enough for 9.0 inclusion. BTW, the latest patch is here: > > > > http://people.free

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Jung-uk Kim
gt; > I would try to add some printfs (or used dtrace - whichever is > easier for you) to see what's going on. Or you can even use > pciconf to directly sneak a peek at what's reported by the > hardware, e.g.: > # pciconf -r pci0:0:24:3 0xa4 > 1c881880 > > You

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Jung-uk Kim
ng is worth noting though. I have used a free gadget that > shows activity/temp for each core. It worked fine with the previous > MB/CPU.That ALSO stopped working with this new MB. Like FBSD, it > shows 0 degrees for any core too, although it correctly displays > each core load. > >

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Jung-uk Kim
On Monday 01 August 2011 03:03 pm, Andriy Gapon wrote: > [cc list trimmed] > > on 01/08/2011 19:23 Jung-uk Kim said the following: > > I gave up the DiodeOffset recently because a lot of BIOSes do not > > set any meaningful values. Instead, I added a tunable for that. > &

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Jung-uk Kim
On Monday 01 August 2011 04:10 pm, Andriy Gapon wrote: > on 01/08/2011 22:48 Jung-uk Kim said the following: > > I have mixed feeling about this because I own a system with such > > CPU/motherboard combo, too. I also believe it works well but > > errata is errata. If vendor

Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Jung-uk Kim
On Monday 01 August 2011 04:07 pm, Andriy Gapon wrote: > on 01/08/2011 22:48 Jung-uk Kim said the following: > > amdtemp(4) attaches under PCI bus but its sibling on function 2 > > isn't easy to address, i.e., hostbN. > > pci_find_bsf() should help with that. I though

Re: Phenom II 975 BE shows 0 celsius

2011-08-22 Thread Jung-uk Kim
On Sunday 21 August 2011 06:13 am, Andriy Gapon wrote: > on 02/08/2011 00:06 Jung-uk Kim said the following: > > On Monday 01 August 2011 04:10 pm, Andriy Gapon wrote: > >> on 01/08/2011 22:48 Jung-uk Kim said the following: > >>> I have mixed feeling about th

Porting PathScale's EKOPath Compiler Suite

2011-09-08 Thread Jung-uk Kim
t was on the WantedPorts list on Wiki for a while. If anyone with more clues want to pick it up from here, please feel free. Cheers, Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hacke

Re: Porting PathScale's EKOPath Compiler Suite

2011-09-09 Thread Jung-uk Kim
On Friday 09 September 2011 11:53 am, arrowdodger wrote: > On Fri, Sep 9, 2011 at 2:11 AM, Jung-uk Kim wrote: > > I have done preliminary porting work of PathScale's open-sourced > > EKOPath Compiler Suite (https://github.com/pathscale). > > > > http://

Re: Porting PathScale's EKOPath Compiler Suite

2011-09-09 Thread Jung-uk Kim
On Friday 09 September 2011 12:49 pm, "C. Bergström" wrote: > On 09/ 9/11 10:53 PM, arrowdodger wrote: > > On Fri, Sep 9, 2011 at 2:11 AM, Jung-uk Kim wrote: > >> I have done preliminary porting work of PathScale's open-sourced > >> EKOPath Co

Re: Porting PathScale's EKOPath Compiler Suite

2011-09-09 Thread Jung-uk Kim
On Thursday 08 September 2011 06:11 pm, Jung-uk Kim wrote: > I have done preliminary porting work of PathScale's open-sourced > EKOPath Compiler Suite (https://github.com/pathscale). > > http://people.freebsd.org/~jkim/ekopath-devel.tar.bz2 I just uploaded a new tarball, ekopa

Re: Porting PathScale's EKOPath Compiler Suite

2011-09-09 Thread Jung-uk Kim
On Friday 09 September 2011 06:38 pm, Jung-uk Kim wrote: > On Thursday 08 September 2011 06:11 pm, Jung-uk Kim wrote: > > I have done preliminary porting work of PathScale's open-sourced > > EKOPath Compiler Suite (https://github.com/pathscale). > > > > http://

[PATCH] makefs from multiple directories

2012-01-04 Thread Jung-uk Kim
/query-pr.cgi?pr=162338 After I reviewed it, I told him it isn't right because it messes up with source directories. Instead, I suggested him to add the new feature. ;-) Please review and let me know what you think. Cheers! Jung-uk Kim PS: Do we care about submitting it back to NetBSD? Act

AMD confirms a CPU bug

2012-03-06 Thread Jung-uk Kim
d.org/dragonfly.git/commit/8e32ecc0a77082f1e232a3e6d12e2f163f9667a4 Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: distinguish between Maxmem, realmem, physmem

2012-06-28 Thread Jung-uk Kim
utils/dmidecode. You don't have to use dmidecode for that. The same information is already available from loader(8) for very long time: % kenv smbios.memory.enabled 4194304 % dmesg | grep 'real memory' real memory = 4294967296 (4096 MB) http://svnweb.freebsd.org/

Re: PCI config space is not restored upon resume (macbook pro)

2010-08-05 Thread Jung-uk Kim
repeats 983070 times. Strings with were very > long, I truncated them for readability. This is odd. > > 1. > http://www.oleg-sharoyko.net/files/freebsd/pci_config.201008/Xorg.v >esa.log Basically, it means the video ROM is not accessible or failed to POST. FYI, Mac's don't

Re: PCI config space is not restored upon resume (macbook pro)

2010-08-05 Thread Jung-uk Kim
iew=revision&revision=210303 > However, NVIDIA suspend/resume is largely untested on FreeBSD. That's very sad news. :-( Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: PCI config space is not restored upon resume (macbook pro)

2010-08-16 Thread Jung-uk Kim
ing. Are you sure the option ROM is actually real mode code but not shadowed again after resume? FYI, you can add a printf() in sys/dev/fb/vesa.c like this to verify, I think: if (x86bios_get_orm(0xc) == NULL) { printf("No option ROM found\n");

Re: PCI config space is not restored upon resume (macbook pro)

2010-08-16 Thread Jung-uk Kim
On Monday 16 August 2010 02:21 pm, Jung-uk Kim wrote: > On Monday 16 August 2010 12:46 pm, Oleg Sharoyko wrote: > > On 6 August 2010 08:15, Oleg Sharoyko wrote: > > >> When using the NVIDIA driver, you will need to make sure that > > >> you're using 256.44, y

Re: PCI config space is not restored upon resume (macbook pro)

2010-08-23 Thread Jung-uk Kim
On Thursday 19 August 2010 12:48 am, Oleg Sharoyko wrote: > On 16 August 2010 22:21, Jung-uk Kim wrote: > > In theory, we can shadow video ROM and execute it in emulation > > *iff* it actually contains x86 real mode code.  It won't be too > > hard but I am not sure

Re: generic_stop_cpus: prevent parallel execution

2010-10-11 Thread Jung-uk Kim
; > Big thanks to Matthew and his employer for the idea and example. > > One note. Use 'cpu_spinwait()' in the inner loop waiting for > 'stopping_cpu' to change. +1. Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: mprotect(2) clears the flag for whole page which causes program crash.

2009-11-18 Thread Jung-uk Kim
mid.cgi?200911181926.nAIJQHOR081471 Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: Spin down HDD after disk sync or before power off

2010-01-29 Thread Jung-uk Kim
DBY_IMMEDIATE, 0, 0, 0); > +return 0; > + > if (atadev->param.support.command2 & ATA_SUPPORT_FLUSHCACHE) > ata_controlcmd(dev, ATA_FLUSHCACHE, 0, 0, 0); > return 0; I am not 100% sure but I think it should be something like the attached patch. Ju

Re: "tar tfv /dev/cd0" speedup patch

2010-02-19 Thread Jung-uk Kim
ive) and /dev/cd0 > (an optical drive). Are you sure it works on Linux? Can you please try ioctl(fd, BLKGETSIZE64, &some_uint64_var) or ioctl(fd, BLKGETSIZE, &some_u_long_var)? Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http://

Re: [patch] extending {amd64|i386} cpu info

2010-03-11 Thread Jung-uk Kim
ated. Just for the record, I added CPUID_TO_* macros and I absolutely agree that we don't need CPUID_TO_STEPPING(). > I do have a version of your patch I plan to commit soon. Thanks! Jung-uk Kim ___ freebsd-hackers@freebsd.org mailing list http

[RFC] Saving the latest errno from syscalls.

2010-03-11 Thread Jung-uk Kim
While I was debugging syscalls, I found a very useful field in struct thread, td_errno. It seems it was added for dtrace but it is only populated on amd64 and i386. Is the attached patch acceptable for maintainers of other platforms? Thanks, Jung-uk Kim Index: sys/arm/arm/trap.c

Re: [RFC] Saving the latest errno from syscalls.

2010-03-11 Thread Jung-uk Kim
On Thursday 11 March 2010 04:55 pm, Marcel Moolenaar wrote: > On Mar 11, 2010, at 1:24 PM, Jung-uk Kim wrote: > > While I was debugging syscalls, I found a very useful field in > > struct thread, td_errno. It seems it was added for dtrace but it > > is only populated on am

Re: [RFC] Saving the latest errno from syscalls.

2010-03-12 Thread Jung-uk Kim
On Friday 12 March 2010 04:29 am, Kostik Belousov wrote: > On Thu, Mar 11, 2010 at 06:15:07PM -0500, Jung-uk Kim wrote: > > On Thursday 11 March 2010 04:55 pm, Marcel Moolenaar wrote: > > > On Mar 11, 2010, at 1:24 PM, Jung-uk Kim wrote: > > > > While I was debu

[RFC] DTrace SYSCALL provider (was Re: [RFC] Saving the latest errno from syscalls.)

2010-03-15 Thread Jung-uk Kim
On Friday 12 March 2010 01:32 pm, Jung-uk Kim wrote: > On Friday 12 March 2010 04:29 am, Kostik Belousov wrote: > > On Thu, Mar 11, 2010 at 06:15:07PM -0500, Jung-uk Kim wrote: > > > On Thursday 11 March 2010 04:55 pm, Marcel Moolenaar wrote: > > > > On Mar 11, 2010,

Re: [RFC] DTrace SYSCALL provider (was Re: [RFC] Saving the latest errno from syscalls.)

2010-03-16 Thread Jung-uk Kim
On Monday 15 March 2010 02:10 pm, Jung-uk Kim wrote: > On Friday 12 March 2010 01:32 pm, Jung-uk Kim wrote: > > On Friday 12 March 2010 04:29 am, Kostik Belousov wrote: > > > On Thu, Mar 11, 2010 at 06:15:07PM -0500, Jung-uk Kim wrote: > > > > On Thursday 11 March 2

[RFC] The official logo for logo_saver?

2010-04-06 Thread Jung-uk Kim
Although I really like logo_saver with Beastie, we have the official FreeBSD logo and I think it is time to say good-bye to the old logo image file. The attached file is a drop-in replacement for sys/dev/syscons/logo/logo.c. What do you think? Jung-uk Kim * PS: I couldn't find a good

Re: [RFC] The official logo for logo_saver?

2010-04-07 Thread Jung-uk Kim
On Wednesday 07 April 2010 05:23 am, Garrett Cooper wrote: > On Wed, Apr 7, 2010 at 2:19 AM, Peter Pentchev wrote: > > On Wed, Apr 07, 2010 at 09:18:09AM +0200, Dag-Erling Sm??rgrav wrote: > >> Jung-uk Kim writes: > >> > Although I really like logo_s

Any plan for AMD x86-64 port?

2000-08-16 Thread Jung-uk Kim
Hi, all. Is there anybody interested in AMD x86-64 architecture? I think we should take a look at this. http://www.x86-64.org/ - Jung-uk Kim To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Update on nVidia/MCP ethernet

2003-07-24 Thread Jung-uk Kim
eal with, however I've been told they will not prevent > me from releasing driver source. AFAIK, CX25870/1 is a video encoder. http://www.conexant.com/products/entry.jsp?id=278 Jung-uk Kim ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.or

Floppy device driver problem (with patch)

2002-04-18 Thread Jung-uk Kim
We've got a brand new Compaq ProLiant DL380 G2 machine but floppy drive wasn't working at all with FreeBSD 4.x. I found that there was a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/21397 I got the following error messages: Apr 16 16:57:48 /kernel: fdc0: direction bit not set Apr 16 1

Re: Floppy device driver problem (with patch)

2002-04-18 Thread Jung-uk Kim
Here is the patch against 5.0-CURRENT. Please note that it wasn't tested. ;-) Thanks, JK --- sys/isa/fd.c.oldTue Apr 2 13:29:43 2002 +++ sys/isa/fd.cThu Apr 18 17:42:03 2002 @@ -563,13 +563,15 @@ return fdc_err(fdc, "Enable FIFO failed\n");

Non-interactive installation (with patch, of course)

2002-04-18 Thread Jung-uk Kim
Can we let sysinstall sanitize geometry while non-interactive installation? This patch can be applied on src/release of 4.5-STABLE or src/usr.sbin of 5.0-CURRENT. Sorry for the whining but recent acquisition of Compaq ProLiant DL380 G2 made me do it. :-( Thanks, JK --- sysinstall/disks.c

Anybody working on FreeBSD BIOS?

2000-06-15 Thread Jung-uk Kim
Hi, I read an article about Linux BIOS project on Slashdot.org. Is there anybody working on FreeBSD BIOS? I really like to see something like 'boot net - install' or serial console. It would be cool to have dignostics routine, too. J

Re: Anybody working on FreeBSD BIOS?

2000-06-15 Thread Jung-uk Kim
boards. Which means I cannot use it since I don't have the NIC and I don't want to buy the hardware for this. I want 'PXE' from BIOS so that I can keep my cards. :) Second, the motherboard I have doesn't support serial console. I couldn't find any BIOS update for the