Re: CPU selection for ithreads on 8.3

2012-05-04 Thread John Baldwin
(td->td_priority <= PRI_MAX_ITHD && THREAD_CAN_SCHED(td, self) && curthread->td_intr_nesting_level && ts->ts_cpu != self) { SCHED_STAT_INC(pickcpu_intrbind); ts->ts_cpu = self; } } -- John Baldwin ___

Re: [review request] zfsboot/zfsloader: support accessing filesystems within a pool

2012-05-04 Thread John Baldwin
riate comment in the new header that you use to replace the 0x1000 in btx.S and in the definition of ARGADJ. Hope that isn't too much, but I do think this will help make things even more understandable. -- John Baldwin ___ freebsd-hackers@fre

Re: [review request] zfsboot/zfsloader: support accessing filesystems within a pool

2012-05-07 Thread John Baldwin
On Saturday, May 05, 2012 5:53:07 am Andriy Gapon wrote: > on 05/05/2012 12:31 Andriy Gapon said the following: > > on 04/05/2012 18:25 John Baldwin said the following: > >> On Thursday, May 03, 2012 11:23:51 am Andriy Gapon wrote: > >>> on 03/05/2012 18:02 A

Re: How does loader(8) decide where to load the kernel?

2012-05-07 Thread John Baldwin
e the equivalent of subtracting KERNBASE from the load address. On both i386 and amd64, there is a direct mapping of the kernel text such that KERNBASE maps address 0, etc. By default on i386 KERNBASE is 0xc000. -- John Baldwin ___ freebsd-hackers@

Re: [review request] zfsboot/zfsloader: support accessing filesystems within a pool

2012-05-07 Thread John Baldwin
On Monday, May 07, 2012 10:47:05 am Andriy Gapon wrote: > on 07/05/2012 16:53 John Baldwin said the following: > > On Saturday, May 05, 2012 5:53:07 am Andriy Gapon wrote: > [snip] > >> The new patchset: http://people.freebsd.org/~avg/zfsboot.patches.7.diff > > >

Re: [review request] zfsboot/zfsloader: support accessing filesystems within a pool

2012-05-07 Thread John Baldwin
On Monday, May 07, 2012 11:15:53 am Andriy Gapon wrote: > on 07/05/2012 17:47 Andriy Gapon said the following: > > on 07/05/2012 16:53 John Baldwin said the following: > >> Ok. Maybe add one comment to the bootargs.h head to explain that the > >> 'bootargs'

Re: [review request] zfsboot/zfsloader: support accessing filesystems within a pool

2012-05-08 Thread John Baldwin
On 5/8/12 3:14 AM, Andriy Gapon wrote: > on 07/05/2012 20:43 John Baldwin said the following: >> On Monday, May 07, 2012 10:47:05 am Andriy Gapon wrote: >>> on 07/05/2012 16:53 John Baldwin said the following: > [snip] >>> What do you think about the -LOCORE- change

Re: bootargs.h [Was: [review request] zfsboot/zfsloader: support accessing filesystems within a pool]

2012-05-09 Thread John Baldwin
MFi386 of BTX changes for support of KARGS_FLAGS_EXTARG is pending. > Do you think that it should be done? You mean to pc98's btxldr? I think so, in general we should keep the pc98 BTX bits as close to i386 as possible. -- John Baldwin ___ freebs

Re: bootargs.h

2012-05-10 Thread John Baldwin
On 5/10/12 5:41 AM, Andriy Gapon wrote: > on 09/05/2012 14:28 John Baldwin said the following: >> On 5/9/12 5:32 AM, Andriy Gapon wrote: >>> >>> Here is a subversion diff to make use of the new bootargs.h header in pc98 >>> cdboot and loader,

Re: Calling tsleep(9) with interrupts disabled

2012-05-15 Thread John Baldwin
round wakeup to prevent lost wakeups. Note that in a kernel without the SMP option, spin locks just devolve to spinlock_enter/exit anyway. -- John Baldwin ___ 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: GSoC Project: EFI on amd64/i386

2012-05-15 Thread John Baldwin
me on X32 and AMD64. > The kernel seems to switch to long mode in /sys/amd64/amd64/mpboot.S No. That is only for AP startup. The loader switches to long mode for an amd64 kernel before it starts the kernel. For i386, boot2 and the loader both start the kernel while running in f

Re: GSoC Project: EFI on amd64/i386

2012-05-15 Thread John Baldwin
port VM86). The only thing I am aware of is the VESA bits but those use an emulator, they don't let the CPU natively run BIOS routines. i386 could be adopted to do the same, but it also doesn't make BIOS calls on modern systems outside of the

Re: GSoC Project: EFI on amd64/i386

2012-05-17 Thread John Baldwin
On Wednesday, May 16, 2012 9:24:54 am Eric McCorkle wrote: > On 05/15/12 11:44, John Baldwin wrote: > > The i386 kernel assumes it starts out with a flat 32-bit mode with > > the kernel loaded into a contiguous memory region at a fixed > > physical address. If we need a r

Re: GSoC Project: Automated Kernel Crash Reporting System - Discussion

2012-05-17 Thread John Baldwin
hell instead of traditional > programming language for this kind of job is more straightforward and > natural. Do you have a different opinion? Have you looked at /usr/sbin/crashinfo? -- John Baldwin ___ freebsd-hackers@freebsd.org mailin

Re: GSoC Project: Automated Kernel Crash Reporting System - Discussion

2012-05-17 Thread John Baldwin
7;t know what to ask for until looking at the general information. There simply isn't a way to grab all the possible information up front in textdumps. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/list

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-30 Thread John Baldwin
(all consistent with your hang). (And that is from your Ctrl-Alt-Esc) Do you only have one CPU in this VM? If not, do you know which threads the other CPUs were running (e.g. do you have ps7.png, etc.)? -- John Baldwin ___ freebsd-hackers@freebs

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-30 Thread John Baldwin
;s going on. I'd like a hand trying to > figure out why the schedgraph output is the way it is. > > Thanks! As mentioned on IRC, you need to disable powerd and set machdep.idle=spin and get new traces. Right now your traces show multiple things executing on a single CPU. -- John Bal

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-30 Thread John Baldwin
On Wednesday, May 30, 2012 12:07:50 pm Mark Felder wrote: > On Wed, 30 May 2012 10:06:13 -0500, John Baldwin wrote: > > > > > Do you only have one CPU in this VM? If not, do you know which threads > > the other CPUs were running (e.g. do you have ps7.png, etc.)? >

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
On Wednesday, May 30, 2012 3:56:02 pm Mark Felder wrote: > On Wed, 30 May 2012 12:17:07 -0500, John Baldwin wrote: > > > > > Humm, can you test it with 2 CPUs? > > > > We primarily only run with 1 CPU. We have seen it crash on multiple CPU > VMs. Also, Dane F

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread John Baldwin
rupt. So, on this box (a Core i5), it can take 93 us after an interrupt occurs during C3 before the CPU will get around to executing the first instruction. It might be worse on your machine. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing lis

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
0 > irq14: ata0 34 0 > irq18: em0 mpt0 1189748491218 > cpu0: timer 2174263198400 > Total 3364012124619 > > > I'm doing my best to ge

Re: bus device/ivars

2012-05-31 Thread John Baldwin
_ADD_CHILD() calls device_add_child, which is perhaps wrong.) For now I would change your child code to call a wrapper foo_delete_child() function from your child drivers directly rather than calling device_delete_child(). foo_delete_child() can do its cleanup and then call device_delete_chi

Re: bus device/ivars

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 12:15:48 pm Warner Losh wrote: > > On May 31, 2012, at 9:54 AM, John Baldwin wrote: > > > On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: > >> Hello, > >> > >> I have written a bus device driver > >> w

Re: CD bootcode

2012-06-07 Thread John Baldwin
n't look at Rock-Ridge extensions and only uses the base ISO-9660 directory entries. That was enough fun to write in assembly. OTOH, CD sectors are 2k, so you do have that much room to work with and can probably fit a more advanced directory lookup into cdboot. I'm happy to review

Re: CD bootcode

2012-06-07 Thread John Baldwin
On Thursday, June 07, 2012 9:58:25 am rank1see...@gmail.com wrote: > - Original Message - > From: John Baldwin > To: freebsd-hackers@freebsd.org > Cc: rank1see...@gmail.com > Date: Thu, 7 Jun 2012 08:21:39 -0400 > Subject: Re: CD bootcode > > > On Wednesday

Re: CD bootcode

2012-06-08 Thread John Baldwin
On Friday, June 08, 2012 10:33:00 am rank1see...@gmail.com wrote: > - Original Message - > From: John Baldwin > To: rank1see...@gmail.com > Cc: hack...@freebsd.org > Date: Thu, 7 Jun 2012 11:16:33 -0400 > Subject: Re: CD bootcode > > > On Thursday, June 0

Re: Upcoming release schedule - 8.4 ?

2012-06-13 Thread John Baldwin
able branches requires either increasing resources to support exising releases longer, or slowing the pace of X.0 releases (but more aggressively merging things from HEAD back). The latter case, especially, is part of the culture and would be a choice we as a Proje

Re: Upcoming release schedule - 8.4 ?

2012-06-13 Thread John Baldwin
On Wednesday, June 13, 2012 11:52:28 am Adrian Chadd wrote: > On 13 June 2012 05:53, John Baldwin wrote: > > >> You don't need to change the FreeBSD culture. We'd love to do an 8.4 > >> release. And an 8.5 release, and 8.6 release, etc. The problem is one

Re: Upcoming release schedule - 8.4 ?

2012-06-14 Thread John Baldwin
0 releases farther apart then developers will still MFC things, the issue is that they don't want to MFC to 2 stable branches. -- John Baldwin ___ 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: EFI development tools

2012-06-21 Thread John Baldwin
think this is not nearly as complicated as you are making it out to be. > The header unification has been "in progress" for years. Actually, jilles@ has only been working on that for x86 in the last year or so. -- John Baldwin ___ 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: Fast syscalls via sysenter

2012-06-21 Thread John Baldwin
people.freebsd.org/~davidxu/sysenter/kernel/sysenter.s > movl PCPU(CURPCB),%esi > call syscall > > Why do we movl PCPU(CURPCB),%esi before calling syscall? syscall is just c- > function. No clue on this one, looks like it is not needed. -- John Baldwin __

Re: newbus / snd_hdspe(4) trouble

2012-06-21 Thread John Baldwin
her modules in its kld are registered with new-bus before it tries to attach to devices. -- John Baldwin ___ 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: newbus / snd_hdspe(4) trouble

2012-06-22 Thread John Baldwin
On Friday, June 22, 2012 5:11:46 am Ruslan Bukin wrote: > On Thu, Jun 21, 2012 at 08:12:41AM -0400, John Baldwin wrote: > > On Wednesday, June 20, 2012 4:44:41 pm Ruslan Bukin wrote: > > > Hi. > > > > > > I have the problem with different behavior of s

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-26 Thread John Baldwin
the MBR if needed while doing so. > 6. I have changed userboot interface. I guess there is none consumers except > the one test program. But if it isn't that, i can make it compatible. One other consumer is in the bhyve branch. I think the 'kload' patches also use it. However,

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-27 Thread John Baldwin
On Wednesday, June 27, 2012 12:50:20 am Andrey V. Elsukov wrote: > On 26.06.2012 21:37, John Baldwin wrote: > >> 4. The gptboot now searches the backup GPT header in the previous sectors, > >> when it finds the "GEOM::" signature in the last sector. PMBR code

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-27 Thread John Baldwin
On Tuesday, June 26, 2012 5:23:08 pm Pawel Jakub Dawidek wrote: > On Tue, Jun 26, 2012 at 01:37:11PM -0400, John Baldwin wrote: > > > 4. The gptboot now searches the backup GPT header in the previous sectors, > > > when it finds the "GEOM::" signature in the last sec

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-27 Thread John Baldwin
On Wednesday, June 27, 2012 10:08:17 am Pawel Jakub Dawidek wrote: > On Wed, Jun 27, 2012 at 08:22:25AM -0400, John Baldwin wrote: > > > I don't think so. Most common case is to configure partitions on top of > > > a mirror. Mirroring partitions is less common. Mostly

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-27 Thread John Baldwin
On Wednesday, June 27, 2012 8:45:45 am Andrey V. Elsukov wrote: > On 27.06.2012 16:07, John Baldwin wrote: > >> • Check the Signature > >> • Check the Header CRC > >> • Check that the MyLBA entry points to the LBA that contains the GUID > >> Partition

Re: [CFC/CFT] large changes in the loader(8) code

2012-06-27 Thread John Baldwin
format is enforced by the vendor, so it is reasonable to assume that metadata format will work across other OS's. Anyway, I've said my piece and will let the matter drop from my end at this point. -- John Baldwin ___ freebsd-hackers@freebs

Re: distinguish between Maxmem, realmem, physmem

2012-06-28 Thread John Baldwin
. Note that the firmware can also take up part of RAM as well (e.g. to hold ACPI tables). -- John Baldwin ___ 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: How does bootinfo64.c find read_eflags() and write_eflags() on amd64?

2012-07-02 Thread John Baldwin
include/machine/cpufunc.h, but that is > /usr/src/sys/amd64/include/cpufunc.h on amd64, which does not contain > either of them. The boot utilities on amd64 are built as 32-bit binaries using -m32 and with 'machine' pointing to 'i386&

Re: Interfacing devices with multiple parents within newbus

2012-07-09 Thread John Baldwin
Generally there is some sideband way for interrupt controllers to register their available interrupt pins with the platform's nexus driver (often the actual PIC is not managed via new-bus). You then need something else to let a given device know which interrupt pin it wants (e.g. P

Re: newbus' ivar's limitation..

2012-07-09 Thread John Baldwin
fferent terms; there is no way to currently specify multiple > > independent (/overlapping) ivars in a child... > > There's no way to support overlapping IVAR keys, yes. However, if you are designing the ivars for multiple inheritance, then you'll need to make them non-ov

Re: nvidia-driver-295.49 is highly unstable

2012-07-12 Thread John Baldwin
es takes a few days for them to respond, but I've always had them respond. -- John Baldwin ___ 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: newbus' ivar's limitation..

2012-07-12 Thread John Baldwin
get_handle(dev) == NULL) return (ENXIO); if (pci_cfgregopen() == 0) return (ENXIO); device_set_desc(dev, "ACPI PCI-PCI bridge"); return (-1000); } New-bus is certainly not the only way to organize a device hierarchy and is not perfect, but in your case I suggest you tone

Re: contigmalloc() breaking Xorg

2012-07-12 Thread John Baldwin
it would be best to just call kmem_alloc_attr() directly instead. > BTW(2): Whilst studying busdma_machdep.c for arm and mips, I've > noticed they appear to potentially allocate substantial kernel stack > under some conditions as several bus_dma(9) functions include: > bus_dma_se

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
ER installs a periodic callout that executes KNOTE() and then resets itself (via callout_reset()) each time it runs. This should generally be closer to regulary spaced intervals than something that does: for (;;) { usleep(20 * 1000); } Which shou

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
On Thursday, July 12, 2012 9:57:16 am Ian Lepore wrote: > On Thu, 2012-07-12 at 08:34 -0400, John Baldwin wrote: > > On Wednesday, July 11, 2012 5:00:47 pm Ian Lepore wrote: > > > On Wed, 2012-07-11 at 14:52 -0500, Paul Albrecht wrote: > > > > Hi, > > > >

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
On Thursday, July 12, 2012 11:08:47 am Davide Italiano wrote: > On Thu, Jul 12, 2012 at 4:26 PM, John Baldwin wrote: > > On Thursday, July 12, 2012 9:57:16 am Ian Lepore wrote: > >> On Thu, 2012-07-12 at 08:34 -0400, John Baldwin wrote: > >> > On Wednesday, July

Re: CVE-2012-0217 Intel's sysret Kernel Privilege Escalation and FreeBSD 6.2/6.3

2012-07-13 Thread John Baldwin
nion is that Intel screwed up their implementation of that instruction whereas AMD got it right, and we are merely working around Intel's CPU bug. :( -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/li

Re: kqueue periodic timer confusion

2012-07-13 Thread John Baldwin
On Friday, July 13, 2012 8:22:13 am Davide Italiano wrote: > On Thu, Jul 12, 2012 at 5:25 PM, John Baldwin wrote: > > On Thursday, July 12, 2012 11:08:47 am Davide Italiano wrote: > >> On Thu, Jul 12, 2012 at 4:26 PM, John Baldwin wrote: > >> > On Thursday, July

Re: CVE-2012-0217 Intel's sysret Kernel Privilege Escalation and FreeBSD 6.2/6.3

2012-07-13 Thread John Baldwin
On Friday, July 13, 2012 10:42:04 am Poul-Henning Kamp wrote: > In message <201207130831.59211@freebsd.org>, John Baldwin writes: > > >Every FreeBSD/amd64 kernel in existent is vulnerable. In truth, my personal > >opinion is that Intel screwed up their implementa

Re: newbus' ivar's limitation..

2012-07-30 Thread John Baldwin
example: static void ipmi_isa_identify(driver_t *driver, device_t parent) { struct ipmi_get_info info; uint32_t devid; if (ipmi_smbios_identify(&info) && info.iface_type != SSIF_MODE && device_find_child(parent, "ipmi", -1) == NULL) {

Re: CVE-2012-0217 Intel's sysret Kernel Privilege Escalation and FreeBSD 6.2/6.3

2012-07-31 Thread John Baldwin
HTH! This looks correct. A cosmetic nit would be to move the new changes up above the "Traced system call" comment. -- John Baldwin ___ 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: Using mcelog

2012-07-31 Thread John Baldwin
ing it as a daemon provide anything running it via cron can't ? Are there any options to stay away from , Linux only options etc ? Also does anyone know what options there are for FreeBSD on sparc ? I don't think I ported daemon mode for it. You will have to run it from cron for now.

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-02 Thread John Baldwin
I do know that having a bunch of people skype in would not be feasible (not enough bandwidth to send video out in multiple streams). The video would need to go out in a single stream to a distributor of some sort. And, quite frankly, despite Doug's "haves" vs "have-nots" i

Re: contigmalloc() breaking Xorg

2012-08-06 Thread John Baldwin
On Thursday, July 12, 2012 8:26:05 am John Baldwin wrote: > However, rather add a wiredmalloc(), I think you should just have > bus_dmamem_alloc() call kmem_alloc_attr() directly in this case. One of the > things I've been meaning to add to bus_dma is a way to allocate other m

Re: How to Expose Chip-level Ethernet Statistics?

2012-08-06 Thread John Baldwin
ueries the register. In some cases they read the registers via a timer and cache the results and the sysctl handlers returned the cached results. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: NUMA support in FreeBSD 9.0 / 9.1

2012-08-13 Thread John Baldwin
can give gains if you are careful to pin your threads to packages. -- John Baldwin ___ 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: Disabling ethernet link on an Intel nic?

2012-08-13 Thread John Baldwin
s modifying the driver or some other code, I am willing to try. Just need a little direction. Hmm, does 'ifconfig foo down' not do this? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/li

Re: GPT boot from 2nd. disk fails

2012-08-15 Thread John Baldwin
ing, that should work. Another option would be to break into gptboot's prompt (similar to breaking into boot2) aud typing in 'ad1p2:/boot/loader' or some such. If that works you should even be able to write that to /boot.config on ada0p2's filesystem. -- John Baldw

Re: Replace bcopy() to update ether_addr

2012-08-21 Thread John Baldwin
t; I propose this solution. > > In file /usr/src/include/net/ethernet.h add this lines: > > static inline void ether_addr_copy(ether_addr* src, ether_addr* dst) { > #if defined(__i386__) || defined(__amd64__) > *dst = *src; > #else > bcopy(src, dst, ETHER_ADDR_LEN);

Re: Build 32 bit binaries on amd64

2012-08-21 Thread John Baldwin
Also, parts of the critically important headers do not live in machine/ > at all, e.g. the headers from libm. > > The work seems to be stale, do you want to cooperate with Tijl or continue ? I think we should probably follow Tijl's model since we are on that path. I originally preferre

Re: Replace bcopy() to update ether_addr

2012-08-22 Thread John Baldwin
> to/from headers. > > Thanks, I'm glad someone noticed this. I doubt we even _need_ the ugliness. We should just use *dst = *src unless there is a compelling reason not to. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list

Re: Replace bcopy() to update ether_addr

2012-08-22 Thread John Baldwin
On Wednesday, August 22, 2012 2:54:07 pm Adrian Chadd wrote: > On 22 August 2012 05:02, John Baldwin wrote: > > On Tuesday, August 21, 2012 12:34:42 pm Adrian Chadd wrote: > >> Hi, > >> > >> What about just creating an ETHER_ADDR_COPY(dst, src) and putting

Re: availability of interrupts during bootup process

2012-09-04 Thread John Baldwin
hat interrupts are available during > bootup for some time. No, interrupts do not work during bootup. If you can poll your hardware you could use polling until interrupts are enabled (using 'if (cold)' to check for the boot time before interrupts are enabled). -- John Baldwin ___

Re: What happened to my /proc/curproc/file?

2012-09-04 Thread John Baldwin
ged, the only approach are left with is a brute-force crawl of the filesystem looking for a file whose stat() results match your executable. -- John Baldwin ___ 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: availability of interrupts during bootup process

2012-09-05 Thread John Baldwin
On Tuesday, September 04, 2012 9:30:08 pm Warner Losh wrote: > > On Sep 4, 2012, at 10:05 AM, John Baldwin wrote: > > > On Sunday, September 02, 2012 5:31:21 pm Aleksander Dutkowski wrote: > >> hello! > >> > >> I have PMIC (TWL4030) module connected t

Re: Order in which a driver attaches to devices

2012-09-07 Thread John Baldwin
e walks the 'pciX' bus devices in numerical order (rather than walking the tree). I suspect your BIOS is doing something weird and assigning bus numbers in a non-depth first ordering so that the two orderings are not consisent as they are on other

Re: analysing ia64 core dumps

2012-09-07 Thread John Baldwin
don't need -O0, probably just -g. You should probably do this for libc as well I think. That might help your backtrace. What I tend to do for these btw is build debug shared libraries and use LD_LIBRARY_PATH to run my test program with those libraries rather than overwriting the main l

Re: What happened to my /proc/curproc/file?

2012-09-07 Thread John Baldwin
On Tuesday, September 04, 2012 7:46:23 pm Sam Varshavchik wrote: > John Baldwin writes: > > > On Tuesday, September 04, 2012 7:10:42 am Sam Varshavchik wrote: > > > Konstantin Belousov writes: > > > > > > > The procfs links, as well as any other user of

Re: What happened to my /proc/curproc/file?

2012-09-07 Thread John Baldwin
On Friday, September 07, 2012 11:59:36 am Konstantin Belousov wrote: > On Fri, Sep 07, 2012 at 10:33:52AM -0400, John Baldwin wrote: > > On Tuesday, September 04, 2012 7:46:23 pm Sam Varshavchik wrote: > > > Is the dev+ino of what was exec()ed known, for another process?

Re: What happened to my /proc/curproc/file?

2012-09-07 Thread John Baldwin
On Friday, September 07, 2012 12:39:50 pm Konstantin Belousov wrote: > On Fri, Sep 07, 2012 at 12:23:54PM -0400, John Baldwin wrote: > > On Friday, September 07, 2012 11:59:36 am Konstantin Belousov wrote: > > > On Fri, Sep 07, 2012 at 10:33:52AM -0400, John Baldwin wrote:

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-09-12 Thread John Baldwin
toms nearly perfectly. > > http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2004-02/0250.html > > Hopefully this gets us closer to a fix... Sorry, I just now saw this. :( Are you still seeing this, and if so can you get a crashdump? Also, I'm curious if you

Re: Order in which a driver attaches to devices

2012-09-13 Thread John Baldwin
On Friday, September 07, 2012 10:48:39 am John Baldwin wrote: > On Thursday, September 06, 2012 5:08:27 pm Navdeep Parhar wrote: > > I have a system with multiple cards supported by cxgbe(4). When I build > > a kernel with the driver compiled in, it attaches to the cards in a

Re: vm info from a hung system

2012-09-17 Thread John Baldwin
ystem was unable to make forward progress, possibly it had to malloc() something (GEOM is terrible for doing this) while trying to page out something to free up space. I would look at the state of the pagedaemon kthread to see why it isn't able to run. -- John Baldwin

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-09-19 Thread John Baldwin
sanitize process names if you need to). However, a crashdump that you can use kgdb on will make debugging this significantly easier. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hack

Re: serial console "detection" during boot

2012-09-25 Thread John Baldwin
e. This looks ok to me. Did it pass a 'make universe'? -- John Baldwin ___ 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: vendor import questions

2012-09-25 Thread John Baldwin
st 'contrib/libc' is that it is ambiguous. OTOH, the contrib/NetBSD/libc path isn't too pretty either. One option would be to merge directly from the vendor area into src/lib/libc. One other option might be to just do src/contrib/vis if it is only for 'vis' files. -- Joh

Re: Fwd: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-10-02 Thread John Baldwin
ogether to avoid stomping on each other's toes. It seems there are some differences in the two approaches that merit working out to avoid a lot of wasted effort on both sides. Do we already have a freebsd-atf@ mailing list? If not, perhaps we should create one and start these discussions there?

Re: Fwd: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-10-02 Thread John Baldwin
On Tuesday, October 02, 2012 10:29:49 am Garrett Cooper wrote: > On Tue, Oct 2, 2012 at 4:50 AM, John Baldwin wrote: > > ... > > > This sounds like a superior approach. It doesn't break any current use > > cases while giving the ability to build multiple progra

Re: kvm_proclist: gnore processes in PRS_NEW

2012-10-03 Thread John Baldwin
gt; Author: Andriy Gapon > Date: Sun Sep 23 22:49:26 2012 +0300 > > kvm_proc: ignore processes in larvae state I think this is fine. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/fre

Re: vendor import questions

2012-10-05 Thread John Baldwin
On Thursday, October 04, 2012 8:31:36 pm Brooks Davis wrote: > On Tue, Sep 25, 2012 at 08:41:34AM -0400, John Baldwin wrote: > > On Monday, September 24, 2012 5:31:37 pm Brooks Davis wrote: > > > As part of switching to NetBSD's mtree I plan to import their versions > &

Re: No bus_space_read_8 on x86 ?

2012-10-05 Thread John Baldwin
and submit it. I think cxgb* already have an implementation. For amd64 we should certainly have bus_space_*_8(), at least for SYS_RES_MEMORY. I think they should fail for SYS_RES_IOPORT. I don't think we can force a compile-time error though, would just have to return -1 on reads or some su

Re: No bus_space_read_8 on x86 ?

2012-10-09 Thread John Baldwin
On Monday, October 08, 2012 4:59:24 pm Warner Losh wrote: > > On Oct 5, 2012, at 10:08 AM, John Baldwin wrote: > > > On Thursday, October 04, 2012 1:20:52 pm Carl Delsey wrote: > >> I noticed that the bus_space_*_8 functions are unimplemented for x86. > >> Look

Re: No bus_space_read_8 on x86 ?

2012-10-12 Thread John Baldwin
On Wednesday, October 10, 2012 5:44:09 pm Carl Delsey wrote: > Sorry for the slow response. I was dealing with a bit of a family > emergency. Responses inline below. > > On 10/09/12 08:54, John Baldwin wrote: > > On Monday, October 08, 2012 4:59:24 pm Warner Losh wrote: >

Re: NFS server bottlenecks

2012-10-15 Thread John Baldwin
and sleep queue hash tables. -- John Baldwin ___ 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: _mtx_lock_spin: obsolete historic handling of kdb_active and panicstr?

2012-10-17 Thread John Baldwin
y in the debugger or writing out a crashdump should probably bust all locks (code executed in debugger backends should generally avoid all locking at all, and depend on things like try locks where it gracefully fails if it must use locking. That would make the kdb_active case here irrelevant, an

Re: syncing large mmaped files

2012-10-18 Thread John Baldwin
you have enough RAM and no pressure to hold all the file pages resident. > The syncer will do a writeback periodically regardless of the application > calling msync(2) or not, with the interval of approximately 30 seconds. You can mmap with MAP_NOSYNC to prevent the syncer from writing the file out

Re: syncing large mmaped files

2012-10-18 Thread John Baldwin
On Thursday, October 18, 2012 12:42:18 pm Konstantin Belousov wrote: > On Thu, Oct 18, 2012 at 09:39:34AM -0400, John Baldwin wrote: > > On Thursday, October 18, 2012 4:35:37 am Konstantin Belousov wrote: > > > On Thu, Oct 18, 2012 at 10:08:22AM +1000, Tristan Verniquet wrote:

Re: kernel module parallel build?

2012-10-22 Thread John Baldwin
On Sunday, October 21, 2012 7:11:10 am Andre Oppermann wrote: > What's keeping kernel modules from building in parallel with > "make -j8"? They don't for you? They do for me either via 'make buildkernel' or the old method. -- John Baldwin ___

Re: Loader-kernel interaction

2012-10-22 Thread John Baldwin
der passes it's variables as a set of environment variables. They are stored in a contiguous block of memory after the last kernel module. Look at sys/boot/i386/libi386/bootinfo{32,64}.c. Specifically look at the bi_load*() routines. -- John Baldwin ___

Re: kernel module parallel build?

2012-12-04 Thread John Baldwin
On Sunday, November 04, 2012 2:53:02 pm Andre Oppermann wrote: > On 22.10.2012 15:28, John Baldwin wrote: > > On Sunday, October 21, 2012 7:11:10 am Andre Oppermann wrote: > >> What's keeping kernel modules from building in parallel with > >> "make -j8"? &

Re: kernel module parallel build?

2012-12-05 Thread John Baldwin
On Tuesday, December 04, 2012 2:41:32 pm Ryan Stone wrote: > On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin wrote: > > > Hmm, I certainly see the module directories being built in parallel. Some > > of > > the make jobs may not be as obvious since links are silent (no out

Re: kernel module parallel build?

2012-12-06 Thread John Baldwin
On Wednesday, December 05, 2012 6:51:17 pm Damien Fleuriot wrote: > > On 5 Dec 2012, at 18:39, Warner Losh wrote: > > > > > On Dec 5, 2012, at 9:42 AM, John Baldwin wrote: > > > >> On Tuesday, December 04, 2012 2:41:32 pm Ryan Stone wrote: > >>&g

Re: kldstat / kernel linker deadlock

2013-01-12 Thread John Baldwin
0.1 3324 1244 13 D+7:52PM 0:00.01 > > procstat -ka > > [... 69 more removed ...] > > I had 2 minutely cron entries that were running kldstat(1)/netstat(1). > > Guessing the kldstat(1) and netstat(1) deadlocked initially. Next time get a dump if at all po

Re: [RFC] support -b when starting gdb

2013-01-16 Thread John Baldwin
ial port.) I think adding -b is fine. -- John Baldwin ___ 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: Failsafe on kernel panic

2013-01-16 Thread John Baldwin
afe script to load the old kernel in case of > psnic. man nextboot (if you are using UFS) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to &quo

Re: disadvantages of running 8.3 kernel on freebsd 8.2 system

2013-01-17 Thread John Baldwin
complained about procsize since the 4.x days as 5.0 introduced a new kinfo_proc structure that the kernel exports and it hasn't changed in size since 5.0. The mfiutil issue dhw@ mentioned is real and is due to an mfi(4) driver change. I merged a fix for the panics to 8-stable, but it just

Re: Failsafe on kernel panic

2013-01-17 Thread John Baldwin
onfigs also include the unattended option so that even with the debugger present they reboot by default on a panic. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

<    1   2   3   4   5   6   7   8   9   10   >