Re: [Heads up] BSD-licensed patch becoming the default RSN.

2013-07-27 Thread Pedro Giffuni

On 26.07.2013 23:11, Jan Beich wrote:

Pedro Giffuni writes:


Now, just some food for thought, but if you are unsure your patch
applies cleanly, why would you choose to use the -s (silent) option?

Because by default patch(1) is overly verbose. At first, I'm only
interested if a patch applies cleanly, then what files fail to apply.
To fix the patch I just repeat over edit a hunk (or two) and confirm
patch(1) no longer rejects it.

With -Cs giving up is easy at any time. One may not care about
a failed hunk in a man page or prefer to edit a patch as the whole
instead of on per-file (.rej file) basis.


I would tend to do -Cs just to see if it applies cleanly or not and
if there is a failure then do -C to see the failure. Actually I always
use -C from the start.

In any case, I find it reasonable to want to preserve the GNU patch
behaviour.  The code is rather simple so I would encourage other
interested people to look at it, or I will look at it at a later time.

Pedro.


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [Heads up] BSD-licensed patch becoming the default RSN.

2013-07-27 Thread Pedro Giffuni

OK;
On further revision ...

On 26.07.2013 20:01, Jan Beich wrote:

bsdpatch doesn't list files of the failed hunks with -C and -s option.
This may be less convenient if you edit a patch directly rather than
regen it after polluting the tree.

$ patch -CEfsp0 -i /path/to/varsym.diff
1 out of 1 hunks failed
1 out of 2 hunks failed
2 out of 2 hunks failed
1 out of 5 hunks failed
1 out of 1 hunks failed
1 out of 1 hunks failed
1 out of 1 hunks failed
zsh: exit 1

$ gnupatch -CEfsp0 -i /path/to/varsym.diff
1 out of 1 hunks failed--saving rejects to contrib/openbsm/etc/audit_event.rej
1 out of 2 hunks failed--saving rejects to lib/libc/sys/Makefile.inc.rej
2 out of 2 hunks failed--saving rejects to 
sys/security/audit/audit_private.h.rej
1 out of 5 hunks failed--saving rejects to sys/security/audit/audit.h.rej
1 out of 1 hunks failed--saving rejects to sys/bsm/audit_kevents.h.rej
1 out of 1 hunks failed--saving rejects to sys/kern/syscalls.master.rej
1 out of 1 hunks failed--saving rejects to sys/sys/priv.h.rej
zsh: exit 8

The change came from OpenBSD, which took it from DragonFlyBSD:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/patch/patch.c.diff?r1=1.49;r2=1.50

It was merged as part of some OpenBSD syncing in patch.c
http://svnweb.freebsd.org/base?view=revisionrevision=246091

Cheers,

Pedro.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: NMI on shutdown

2013-07-27 Thread Sean Bruno
On Sat, 2013-07-27 at 13:06 +0900, Hiroki Sato wrote:
 Hi,
 
  The following log messages are displayed on a box where I am testing
  stable/9.  It occurs only when trying to shutdown the box:
 
  | Waiting (max 60 seconds) for system process `vnlru' to stop...done
  | Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
  | Waiting (max 60 seconds) for system process `syncer' to stop...
  | Syncing disks, vnodes remaining...2 2 0 0 done
  | All buffers synced.
  | Uptime: 8d2h4m58s
  | NMI ISA 30, EISA 0
  | NMI ISA 20, EISA 0
  | NMI ... going to debugger
  | NMI ... going to debugger
  | NMI ISA 20, EISA 0
  | NMI ISA 30, EISA 0
  | NMI ... going to debugger
  | NMI ... going to debugger
  | NMI ISA 20, EISA 0
  ...
  | timeout stopping cpus
  | [ thread pid 11 tid 100016 ]
  | Stopped at  acpi_cpu_c1+0x6:leave
  | db timeout stopping cpus
  | timeout stopping cpus
  | [ thread pid 11 tid 100015 ]
  | Stopped at  acpi_cpu_c1+0x6:leave
  | db timeout stopping cpus
  | timeout stopping cpus
 
  Once these are displayed, a power cycle is required to recover.
  Shutdown sometimes works, and sometimes not.  DDB prompt does not
  work because it does not accept entered characters properly.  And,
  this symptom seems not specific to stable/9.
 
  This may be a hardware specific issue, but where should I start to
  debug this from?
 
 -- Hiroki


:-)  I just spent the week looking at something that looks like this on
my Dell machines.  In my testing the NMI EISA problem seems to be coming
from the fact that IPMI pokes at both the ACPI and ISA interfaces to the
IPMI controller resulting in an attempt to create /dev/ipmi0
and /dev/ipmi1.

Somewhere in the recent past (affects 9 as well) the ACPI and ISA IPMI
device nodes where children of the same parent and
ipmi_isa.c::ipmi_isa_identitfy() would see the ACPI attachment and do
nothing.  Now the two interfaces have different parents in the device
tree.

On bce(4) based systems, even if not using IPMI, this seems to
crash/confuse older version of the management firmware and yield results
similar to what you see.

I've just commited a tested fix from Yahoo on this that Peter and I
worked out.  see svn R 253708

Sean


signature.asc
Description: This is a digitally signed message part


GENERIC: options KDB_TRACE

2013-07-27 Thread Andriy Gapon

What is the reason to have the following option commented out in GENERIC in 
head:
#optionsKDB_TRACE
?

Wouldn't it be more helpful to have it enabled?

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

compilation

2013-07-27 Thread gahn
hi all:

need your experts' opinions, i tried to compile customized kernel for 8.3 but 
failed miserably:

linking kernel.debug
dcons_crom.o(.text+0x388): In function `dcons_crom_post_busreset':
/usr/src/sys/dev/dcons/dcons_crom.c:145: undefined reference to `crom_add_chunk'
dcons_crom.o(.text+0x3a0):/usr/src/sys/dev/dcons/dcons_crom.c:146: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x3be):/usr/src/sys/dev/dcons/dcons_crom.c:147: undefined 
reference to `crom_add_simple_text'
dcons_crom.o(.text+0x3d6):/usr/src/sys/dev/dcons/dcons_crom.c:148: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x3f7):/usr/src/sys/dev/dcons/dcons_crom.c:149: undefined 
reference to `crom_add_simple_text'
dcons_crom.o(.text+0x412):/usr/src/sys/dev/dcons/dcons_crom.c:150: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x430):/usr/src/sys/dev/dcons/dcons_crom.c:151: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x467):/usr/src/sys/dev/dcons/dcons_crom.c:128: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x485):/usr/src/sys/dev/dcons/dcons_crom.c:129: undefined 
reference to `crom_add_entry'
umass.o(.text+0xf9): In function `umass_detach':
/usr/src/sys/dev/usb/storage/umass.c:2180: undefined reference to 
`xpt_bus_deregister'
umass.o(.text+0x120):/usr/src/sys/dev/usb/storage/umass.c:2183: undefined 
reference to `cam_sim_free'
umass.o(.text+0xcfd): In function `umass_std_transform':
/usr/src/sys/dev/usb/storage/umass.c:3018: undefined reference to `xpt_done'
umass.o(.text+0xd1c):/usr/src/sys/dev/usb/storage/umass.c:3022: undefined 
reference to `xpt_done'
umass.o(.text+0xd8a): In function `umass_cam_quirk_cb':
/usr/src/sys/dev/usb/storage/umass.c:2733: undefined reference to `xpt_done'
umass.o(.text+0xe13): In function `umass_command_start':
/usr/src/sys/dev/usb/storage/umass.c:1611: undefined reference to `xpt_done'
umass.o(.text+0xf48): In function `umass_cam_sense_cb':
/usr/src/sys/dev/usb/storage/umass.c:2707: undefined reference to `xpt_done'
umass.o(.text+0xf92):/usr/src/sys/dev/usb/storage/umass.c:2714: more undefined 
references to `xpt_done' follow
umass.o(.text+0x245e): In function `umass_cam_action':
/usr/src/sys/dev/usb/storage/umass.c:2497: undefined reference to 
`cam_calc_geometry'
umass.o(.text+0x2466):/usr/src/sys/dev/usb/storage/umass.c:2498: undefined 
reference to `xpt_done'
umass.o(.text+0x24d2):/usr/src/sys/dev/usb/storage/umass.c:2508: undefined 
reference to `xpt_done'
umass.o(.text+0x2556):/usr/src/sys/dev/usb/storage/umass.c:2518: undefined 
reference to `xpt_done'
umass.o(.text+0x2d86): In function `umass_attach':
/usr/src/sys/dev/usb/storage/umass.c:2115: undefined reference to 
`cam_simq_alloc'
umass.o(.text+0x2dd5):/usr/src/sys/dev/usb/storage/umass.c:2119: undefined 
reference to `cam_sim_alloc'
umass.o(.text+0x2de7):/usr/src/sys/dev/usb/storage/umass.c:2132: undefined 
reference to `cam_simq_free'
umass.o(.text+0x2e4c):/usr/src/sys/dev/usb/storage/umass.c:2141: undefined 
reference to `xpt_bus_register'
*** Error code 1

Stop in /usr/obj/usr/src/sys/giraffe.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.



any help would be greatly appreciated.

_dave
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: compilation

2013-07-27 Thread Freddie Cash
umass requires SCSI support. Bert you removed scbus, da, and similar.
On 2013-07-27 6:00 PM, gahn ipfr...@yahoo.com wrote:

 hi all:

 need your experts' opinions, i tried to compile customized kernel for 8.3
 but failed miserably:

 linking kernel.debug
 dcons_crom.o(.text+0x388): In function `dcons_crom_post_busreset':
 /usr/src/sys/dev/dcons/dcons_crom.c:145: undefined reference to
 `crom_add_chunk'
 dcons_crom.o(.text+0x3a0):/usr/src/sys/dev/dcons/dcons_crom.c:146:
 undefined reference to `crom_add_entry'
 dcons_crom.o(.text+0x3be):/usr/src/sys/dev/dcons/dcons_crom.c:147:
 undefined reference to `crom_add_simple_text'
 dcons_crom.o(.text+0x3d6):/usr/src/sys/dev/dcons/dcons_crom.c:148:
 undefined reference to `crom_add_entry'
 dcons_crom.o(.text+0x3f7):/usr/src/sys/dev/dcons/dcons_crom.c:149:
 undefined reference to `crom_add_simple_text'
 dcons_crom.o(.text+0x412):/usr/src/sys/dev/dcons/dcons_crom.c:150:
 undefined reference to `crom_add_entry'
 dcons_crom.o(.text+0x430):/usr/src/sys/dev/dcons/dcons_crom.c:151:
 undefined reference to `crom_add_entry'
 dcons_crom.o(.text+0x467):/usr/src/sys/dev/dcons/dcons_crom.c:128:
 undefined reference to `crom_add_entry'
 dcons_crom.o(.text+0x485):/usr/src/sys/dev/dcons/dcons_crom.c:129:
 undefined reference to `crom_add_entry'
 umass.o(.text+0xf9): In function `umass_detach':
 /usr/src/sys/dev/usb/storage/umass.c:2180: undefined reference to
 `xpt_bus_deregister'
 umass.o(.text+0x120):/usr/src/sys/dev/usb/storage/umass.c:2183: undefined
 reference to `cam_sim_free'
 umass.o(.text+0xcfd): In function `umass_std_transform':
 /usr/src/sys/dev/usb/storage/umass.c:3018: undefined reference to
 `xpt_done'
 umass.o(.text+0xd1c):/usr/src/sys/dev/usb/storage/umass.c:3022: undefined
 reference to `xpt_done'
 umass.o(.text+0xd8a): In function `umass_cam_quirk_cb':
 /usr/src/sys/dev/usb/storage/umass.c:2733: undefined reference to
 `xpt_done'
 umass.o(.text+0xe13): In function `umass_command_start':
 /usr/src/sys/dev/usb/storage/umass.c:1611: undefined reference to
 `xpt_done'
 umass.o(.text+0xf48): In function `umass_cam_sense_cb':
 /usr/src/sys/dev/usb/storage/umass.c:2707: undefined reference to
 `xpt_done'
 umass.o(.text+0xf92):/usr/src/sys/dev/usb/storage/umass.c:2714: more
 undefined references to `xpt_done' follow
 umass.o(.text+0x245e): In function `umass_cam_action':
 /usr/src/sys/dev/usb/storage/umass.c:2497: undefined reference to
 `cam_calc_geometry'
 umass.o(.text+0x2466):/usr/src/sys/dev/usb/storage/umass.c:2498: undefined
 reference to `xpt_done'
 umass.o(.text+0x24d2):/usr/src/sys/dev/usb/storage/umass.c:2508: undefined
 reference to `xpt_done'
 umass.o(.text+0x2556):/usr/src/sys/dev/usb/storage/umass.c:2518: undefined
 reference to `xpt_done'
 umass.o(.text+0x2d86): In function `umass_attach':
 /usr/src/sys/dev/usb/storage/umass.c:2115: undefined reference to
 `cam_simq_alloc'
 umass.o(.text+0x2dd5):/usr/src/sys/dev/usb/storage/umass.c:2119: undefined
 reference to `cam_sim_alloc'
 umass.o(.text+0x2de7):/usr/src/sys/dev/usb/storage/umass.c:2132: undefined
 reference to `cam_simq_free'
 umass.o(.text+0x2e4c):/usr/src/sys/dev/usb/storage/umass.c:2141: undefined
 reference to `xpt_bus_register'
 *** Error code 1

 Stop in /usr/obj/usr/src/sys/giraffe.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.



 any help would be greatly appreciated.

 _dave
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: compilation

2013-07-27 Thread gahn
thank freddie!





 From: Freddie Cash fjwc...@gmail.com
To: gahn ipfr...@yahoo.com 
Cc: FreeBSD-Current freebsd-current@freebsd.org 
Sent: Saturday, July 27, 2013 9:23 PM
Subject: Re: compilation
 


umass requires SCSI support. Bert you removed scbus, da, and similar.
On 2013-07-27 6:00 PM, gahn ipfr...@yahoo.com wrote:

hi all:

need your experts' opinions, i tried to compile customized kernel for 8.3 but 
failed miserably:

linking kernel.debug
dcons_crom.o(.text+0x388): In function `dcons_crom_post_busreset':
/usr/src/sys/dev/dcons/dcons_crom.c:145: undefined reference to 
`crom_add_chunk'
dcons_crom.o(.text+0x3a0):/usr/src/sys/dev/dcons/dcons_crom.c:146: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x3be):/usr/src/sys/dev/dcons/dcons_crom.c:147: undefined 
reference to `crom_add_simple_text'
dcons_crom.o(.text+0x3d6):/usr/src/sys/dev/dcons/dcons_crom.c:148: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x3f7):/usr/src/sys/dev/dcons/dcons_crom.c:149: undefined 
reference to `crom_add_simple_text'
dcons_crom.o(.text+0x412):/usr/src/sys/dev/dcons/dcons_crom.c:150: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x430):/usr/src/sys/dev/dcons/dcons_crom.c:151: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x467):/usr/src/sys/dev/dcons/dcons_crom.c:128: undefined 
reference to `crom_add_entry'
dcons_crom.o(.text+0x485):/usr/src/sys/dev/dcons/dcons_crom.c:129: undefined 
reference to `crom_add_entry'
umass.o(.text+0xf9): In function `umass_detach':
/usr/src/sys/dev/usb/storage/umass.c:2180: undefined reference to 
`xpt_bus_deregister'
umass.o(.text+0x120):/usr/src/sys/dev/usb/storage/umass.c:2183: undefined 
reference to `cam_sim_free'
umass.o(.text+0xcfd): In function `umass_std_transform':
/usr/src/sys/dev/usb/storage/umass.c:3018: undefined reference to `xpt_done'
umass.o(.text+0xd1c):/usr/src/sys/dev/usb/storage/umass.c:3022: undefined 
reference to `xpt_done'
umass.o(.text+0xd8a): In function `umass_cam_quirk_cb':
/usr/src/sys/dev/usb/storage/umass.c:2733: undefined reference to `xpt_done'
umass.o(.text+0xe13): In function `umass_command_start':
/usr/src/sys/dev/usb/storage/umass.c:1611: undefined reference to `xpt_done'
umass.o(.text+0xf48): In function `umass_cam_sense_cb':
/usr/src/sys/dev/usb/storage/umass.c:2707: undefined reference to `xpt_done'
umass.o(.text+0xf92):/usr/src/sys/dev/usb/storage/umass.c:2714: more undefined 
references to `xpt_done' follow
umass.o(.text+0x245e): In function `umass_cam_action':
/usr/src/sys/dev/usb/storage/umass.c:2497: undefined reference to 
`cam_calc_geometry'
umass.o(.text+0x2466):/usr/src/sys/dev/usb/storage/umass.c:2498: undefined 
reference to `xpt_done'
umass.o(.text+0x24d2):/usr/src/sys/dev/usb/storage/umass.c:2508: undefined 
reference to `xpt_done'
umass.o(.text+0x2556):/usr/src/sys/dev/usb/storage/umass.c:2518: undefined 
reference to `xpt_done'
umass.o(.text+0x2d86): In function `umass_attach':
/usr/src/sys/dev/usb/storage/umass.c:2115: undefined reference to 
`cam_simq_alloc'
umass.o(.text+0x2dd5):/usr/src/sys/dev/usb/storage/umass.c:2119: undefined 
reference to `cam_sim_alloc'
umass.o(.text+0x2de7):/usr/src/sys/dev/usb/storage/umass.c:2132: undefined 
reference to `cam_simq_free'
umass.o(.text+0x2e4c):/usr/src/sys/dev/usb/storage/umass.c:2141: undefined 
reference to `xpt_bus_register'
*** Error code 1

Stop in /usr/obj/usr/src/sys/giraffe.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.



any help would be greatly appreciated.

_dave
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org