Re: Revision 312827 fatal error: 'opt_printf.h' file not found

2017-01-26 Thread Scott Long
> On Jan 26, 2017, at 5:22 PM, Jung-uk Kim wrote: > > On 01/26/2017 19:17, Alex Deiter wrote: >> Hello, >> >> patch: >> >> Index: sys/cam/cam_xpt.h >> === >> --- sys/cam/cam_xpt.h (revision 312851) >> +++

Re: New warnings from WITNESS

2016-11-06 Thread Scott Long
> On Nov 6, 2016, at 11:01 AM, Michael Tuexen wrote: > >> On 6 Nov 2016, at 15:39, Konstantin Belousov wrote: >> >> On Sun, Nov 06, 2016 at 02:17:45PM +0100, Michael Tuexen wrote: On 6 Nov 2016, at 13:28, Konstantin Belousov

Re: wired memory leak at r298785

2016-05-09 Thread Scott Long
> On May 9, 2016, at 4:30 PM, Wolfgang Zenker <wolfg...@lyxys.ka.sub.org> wrote: > > * Scott Long <scott4l...@yahoo.com> [160503 16:27]: >>> On May 3, 2016, at 12:20 AM, Mark Johnston <ma...@freebsd.org> wrote: >>> [..] >>> This wa

Re: wired memory leak at r298785

2016-05-03 Thread Scott Long
> On May 3, 2016, at 12:20 AM, Mark Johnston wrote: > > On Mon, May 02, 2016 at 08:55:58PM -0400, Steve Wills wrote: >> Hi, >> >> On 05/ 2/16 09:32 AM, Steve Wills wrote: >>> Hi, >>> >>> Just did my monthly update and r298785 seems to be leaking wired memory >>> rather

Re: CAM Shingled Disk support patches available

2016-03-02 Thread Scott Long
> On Mar 2, 2016, at 2:25 PM, Kenneth D. Merry wrote: > >> >> >> void scsi_ata_pass(struct ccb_scsiio *csio, u_int32_t retries, >> void (*cbfcnp)(struct cam_periph *, union ccb *), >> u_int32_t flags, u_int8_t tag_action, >>

Re: CAM Shingled Disk support patches available

2016-03-01 Thread Scott Long
Hi Ken, I’m against changing the function signature of scsi_ata_pass_16(). Even if you manage to get things right with symbol versioning, it still leads to problems of code compatibility. Maybe pre-existing binaries will work, but source code will forever have to include an #if

Re: Panic on reloading a driver with same DEVICE_PROBE() return value

2016-02-09 Thread Scott Long
> On Feb 9, 2016, at 3:00 PM, John Baldwin wrote: > > On Tuesday, February 09, 2016 05:45:38 PM Sreekanth Reddy wrote: >> Hi, >> >> While debugging more, I got one more clue, >> >>

Re: CAM Shingled Disk support patches available

2016-01-19 Thread Scott Long
> On Jan 19, 2016, at 8:25 AM, Kenneth D. Merry wrote: > > >>> In the ada(4) case, we need to add the register to struct ccb_ataio and >>> add support in one or more of the underlying SATA drivers, e.g. ahci(4). >> >> I believe that changes the size of the CCB, so I tried to

Re: freebsd-head: suddenly NMI panics lead to ddb being unable to stop CPUs?

2015-08-21 Thread Scott Long
is exactly right. There was a thread a while ago, with a proposed patch from Kostik: https://lists.freebsd.org/pipermail/freebsd-arch/2014-July/015584.html As I recall, Scott Long also ran into this a few months ago. It happens for any NMI: entering the debugger, a PCI Parity or System

Re: asr(4) error with new clang/llvm

2015-01-01 Thread Scott Long
On Jan 2, 2015, at 12:00 AM, Ed Maste ema...@freebsd.org wrote: On 1 January 2015 at 23:13, Steven Hartland kill...@multiplay.co.uk wrote: On 02/01/2015 01:23, Bjoern A. Zeeb wrote: Hi, you need the next line of source to see that while the union only defines Simple[1], the

Re: Shuttle DS47 - Realtek RT 8111G

2013-10-29 Thread Scott Long
On Oct 29, 2013, at 12:14 AM, Yonghyeon PYUN pyu...@gmail.com wrote: I tested the 0x4c0 on real hardware. an MSI Z87I motherboard. The rest came from looking at the linux driver. That driver is structured very differently (and better, IMHO) than the FreeBSD one, so there's a lot that

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-28 Thread Scott Long
On Sep 27, 2013, at 9:07 AM, O. Hartmann ohart...@zedat.fu-berlin.de wrote: reverting those two commits solved the issue. In my case just rebuilding and restarting of sysutils/hal helped. Interesting. I didn't test hal, probably should have. The compat shims I put in place should

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-28 Thread Scott Long
On Sep 28, 2013, at 1:34 AM, O. Hartmann ohart...@zedat.fu-berlin.de wrote: On Sat, 28 Sep 2013 01:10:08 -0600 Scott Long sco...@samsco.org wrote: On Sep 27, 2013, at 9:07 AM, O. Hartmann ohart...@zedat.fu-berlin.de wrote: reverting those two commits solved the issue. In my case

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-27 Thread Scott Long
On Sep 27, 2013, at 5:52 AM, Sergey V. Dyatko sergey.dya...@gmail.com wrote: yes, these messages disappeared after revert 255870 and r255871 Hi, Nothing that I changes should have affected the ahci driver. In fact, I tested this driver specifically during my development. Can you

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-27 Thread Scott Long
On Sep 26, 2013, at 11:36 PM, Sergey V. Dyatko sergey.dya...@gmail.com wrote: On Thu, 26 Sep 2013 16:07:18 +0300 Konstantin Belousov kostik...@gmail.com wrote: On Thu, Sep 26, 2013 at 03:40:26PM +0300, Sergey V. Dyatko wrote: On Thu, 26 Sep 2013 08:53:26 +0200 O. Hartmann

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-27 Thread Scott Long
On Sep 27, 2013, at 6:13 AM, Sergey V. Dyatko sergey.dya...@gmail.com wrote: On Fri, 27 Sep 2013 05:57:01 -0600 Scott Long sco...@samsco.org wrote: On Sep 27, 2013, at 5:52 AM, Sergey V. Dyatko sergey.dya...@gmail.com wrote: yes, these messages disappeared after revert 255870

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-27 Thread Scott Long
On Sep 27, 2013, at 7:38 AM, Boris Samorodov b...@passap.ru wrote: 27.09.2013 16:59, Pietro Cerutti пишет: On 2013-Sep-27, 05:57, Scott Long wrote: On Sep 27, 2013, at 5:52 AM, Sergey V. Dyatko sergey.dya...@gmail.com wrote: yes, these messages disappeared after revert 255870

Re: Shuttle DS47 - Realtek RT 8111G

2013-09-15 Thread Scott Long
Hi Thomas, I recommend getting ahold of the pfsense guys with this question. Scott On Sep 15, 2013, at 2:35 AM, Thomas Guldener tgulde...@bluewin.ch wrote: Is it also possible to get a working kernel in FreeBSD 8.3 for PFSense support? g. Thomas On 15 Sep 2013, at 04:47, Scott Long

Re: Shuttle DS47 - Realtek RT 8111G

2013-09-15 Thread Scott Long
On Sep 15, 2013, at 8:17 PM, Yonghyeon PYUN pyu...@gmail.com wrote: On Sat, Sep 14, 2013 at 08:47:06PM -0600, Scott Long wrote: Index: sys/dev/re/if_re.c === --- sys/dev/re/if_re.c (revision 255582) +++ sys/dev/re/if_re.c

Re: Shuttle DS47 - Realtek RT 8111G

2013-09-14 Thread Scott Long
Index: sys/dev/re/if_re.c === --- sys/dev/re/if_re.c (revision 255582) +++ sys/dev/re/if_re.c (working copy) @@ -234,6 +234,10 @@ { RL_HWREV_8168E_VL, RL_8169, 8168E/8111E-VL, RL_JUMBO_MTU_6K}, { RL_HWREV_8168F,

Re: [rfc] migrate lagg to an rmlock

2013-08-29 Thread Scott Long
On Aug 29, 2013, at 7:42 AM, John Baldwin j...@freebsd.org wrote: On Saturday, August 24, 2013 10:16:33 am Robert Watson wrote: There are a number of other places in the kernel where migration to an rmlock makes sense -- however, some care must be taken for four reasons: (1) while read

Re: [rfc] migrate lagg to an rmlock

2013-08-24 Thread Scott Long
On Aug 24, 2013, at 12:14 PM, Alfred Perlstein bri...@mu.org wrote: On 8/24/13 10:47 AM, Robert N. M. Watson wrote: On 24 Aug 2013, at 17:36, Alfred Perlstein wrote: We should distinguish lock contention from line contention. When acquiring a rwlock on multiple CPUs concurrently, the

Re: i386 panic

2013-08-12 Thread Scott Long
On Aug 12, 2013, at 1:43 PM, Sean Bruno sean_br...@yahoo.com wrote: http://people.freebsd.org/~sbruno/10_i386_vmfault.txt I can never tell if stuff like this is because I'm not nerfing the system RAM correctly or if this is i386 bit-rot. I set hw.physmem=2g in loader.conf to try and

CFT: PCI Command Register fixups

2013-08-09 Thread Scott Long
All, Subversion rev 250418 affected approximately 63 drivers by making them vulnerable to resource allocation failures on motherboards with buggy BIOSes. The revision itself is good, but it needs to address these drivers and bring them up to what is, in effect, a modified way for drivers to

Re: [net] protecting interfaces from races between control and data ?

2013-08-08 Thread Scott Long
On Aug 7, 2013, at 10:16 PM, Warner Losh i...@bsdimp.com wrote: On Aug 5, 2013, at 11:20 AM, Adrian Chadd wrote: .. and I bet it's not a design pattern, and this is total conjecture on my part: * the original drivers weren't SMP safe; * noone really sat down and figured out how to

Re: [net] protecting interfaces from races between control and data ?

2013-08-08 Thread Scott Long
Yup, it's an incredibly unsafe pattern. It also leads to the pattern where auxiliary processing is handed off to a taskqueue, which then interleaves the lock ownership with the ithread and produces out-of-order packet reception. Scott On Aug 8, 2013, at 5:18 PM, Adrian Chadd adr...@freebsd.org

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Scott Long
On Aug 5, 2013, at 2:23 AM, Luigi Rizzo ri...@iet.unipi.it wrote: i am slightly unclear of what mechanisms we use to prevent races between interface being reconfigured (up/down/multicast setting, etc, all causing reinitialization of the rx and tx rings) and i) packets from the host stack

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Scott Long
On Aug 5, 2013, at 11:20 AM, Adrian Chadd adr...@freebsd.org wrote: .. and I bet it's not a design pattern, and this is total conjecture on my part: * the original drivers weren't SMP safe; * noone really sat down and figured out how to correctly synchronise all of this stuff; * people

Re: hacking - aio_sendfile()

2013-07-11 Thread Scott Long
On Jul 10, 2013, at 11:17 PM, Konstantin Belousov kostik...@gmail.com wrote: On Wed, Jul 10, 2013 at 04:36:23PM -0700, Adrian Chadd wrote: Hiya, I've started writing an aio_sendfile() syscall. http://people.freebsd.org/~adrian/ath/20130710-aio-sendfile-3.diff Yes, the diff is against

Re: hacking - aio_sendfile()

2013-07-11 Thread Scott Long
On Jul 11, 2013, at 2:56 AM, Konstantin Belousov kostik...@gmail.com wrote: On Thu, Jul 11, 2013 at 02:39:00AM -0700, Adrian Chadd wrote: On 11 July 2013 02:36, Konstantin Belousov kostik...@gmail.com wrote: No, it is not disk I/O which is problematic there. It is socket I/O e.g. wait for

Re: hacking - aio_sendfile()

2013-07-11 Thread Scott Long
On Jul 11, 2013, at 11:48 AM, Konstantin Belousov kostik...@gmail.com wrote: On Thu, Jul 11, 2013 at 11:44:32AM -0700, Scott Long wrote: On Jul 10, 2013, at 11:17 PM, Konstantin Belousov kostik...@gmail.com wrote: On Wed, Jul 10, 2013 at 04:36:23PM -0700, Adrian Chadd wrote: Hiya

Re: ipfilter(4) needs maintainer

2013-04-15 Thread Scott Long
The desire to remove it stems from the inability to give it adequate engineering service as the network stack evolves. Simply taking it out of a kernel config file doesn't address that problem at all. If it's going to stay in FreeBSD at all, it needs to be maintained. This could be set

Re: ipfilter(4) needs maintainer

2013-04-15 Thread Scott Long
On Apr 15, 2013, at 11:48 AM, Cy Schubert cy.schub...@komquats.com wrote: In message 18df99b0-6e66-4906-a233-7778451b8...@felyko.com, Rui Paulo writes: 2013/04/15 9:55$B!(BCy Schubert cy.schub...@komquats.com $B$N%a%C%;!%8(B: I've been planning on taking on IP Filter for quite some

Re: ipfilter(4) needs maintainer

2013-04-15 Thread Scott Long
On Apr 15, 2013, at 1:27 PM, Cy Schubert cy.schub...@komquats.com wrote: In message a2450361-d9e9-498f-ad44-846563ef0...@yahoo.com, Scott Long writes: On Apr 15, 2013, at 11:48 AM, Cy Schubert cy.schub...@komquats.com wrote: In message 18df99b0-6e66-4906-a233-7778451b8...@felyko.com

Re: ipfilter(4) needs maintainer

2013-04-14 Thread Scott Long
On Apr 14, 2013, at 7:20 AM, Joe fb...@a1poweruser.com wrote: Rui Paulo wrote: On 2013/04/12, at 22:31, Scott Long sco...@samsco.org wrote: On Apr 12, 2013, at 7:43 PM, Rui Paulo rpa...@freebsd.org wrote: On 2013/04/11, at 13:18, Gleb Smirnoff gleb...@freebsd.org wrote: Lack

Re: ipfilter(4) needs maintainer

2013-04-13 Thread Scott Long
On Apr 13, 2013, at 12:33 AM, Rui Paulo rpa...@freebsd.org wrote: On 2013/04/12, at 22:31, Scott Long sco...@samsco.org wrote: On Apr 12, 2013, at 7:43 PM, Rui Paulo rpa...@freebsd.org wrote: On 2013/04/11, at 13:18, Gleb Smirnoff gleb...@freebsd.org wrote: Lack of maintainer in a near

Re: ipfilter(4) needs maintainer

2013-04-13 Thread Scott Long
On Apr 13, 2013, at 11:43 AM, Rui Paulo rpa...@freebsd.org wrote: On 2013/04/13, at 5:03, Scott Long sco...@samsco.org wrote: You target audience for this isn't people who track CURRENT, it's people who are on 7, 8, or 9 and looking to update to 10.x sometime in the future. Yes, I'm

Re: ipfilter(4) needs maintainer

2013-04-12 Thread Scott Long
On Apr 12, 2013, at 7:43 PM, Rui Paulo rpa...@freebsd.org wrote: On 2013/04/11, at 13:18, Gleb Smirnoff gleb...@freebsd.org wrote: Lack of maintainer in a near future would lead to bitrot due to changes in other areas of network stack, kernel APIs, etc. This already happens, many changes

Re: Any objections/comments on axing out old ATA stack?

2013-03-31 Thread Scott Long
On Mar 31, 2013, at 7:04 AM, Victor Balada Diaz vic...@bsdes.net wrote: On Wed, Mar 27, 2013 at 11:22:14PM +0200, Alexander Motin wrote: Hi. Since FreeBSD 9.0 we are successfully running on the new CAM-based ATA stack, using only some controller drivers of old ata(4) by having `options

Re: [RFC] vfs.read_min proposal

2013-03-30 Thread Scott Long
On Mar 29, 2013, at 2:58 PM, Konstantin Belousov kostik...@gmail.com wrote: I think this is definitely a feature that should be set by a flag to either file descriptor used for aio_read, or aio_read call itself. Adding a flag to aio_read() might be cumbersome from the ABI perspective.

Re: Any objections/comments on axing out old ATA stack?

2013-03-28 Thread Scott Long
On Mar 27, 2013, at 6:43 PM, Adrian Chadd adr...@freebsd.org wrote: My main concern with the new stuff is that it requires CAM and that's reasonably big compared to the standalone ATA code. From a code execution standpoint? No, it's not. It'd be nice if we could slim down the CAM stack a

Re: Any objections/comments on axing out old ATA stack?

2013-03-28 Thread Scott Long
On Mar 28, 2013, at 8:00 AM, Ian Lepore i...@freebsd.org wrote: On Thu, 2013-03-28 at 09:17 +0200, Alexander Motin wrote: On 28.03.2013 02:43, Adrian Chadd wrote: My main concern with the new stuff is that it requires CAM and that's reasonably big compared to the standalone ATA code. It'd

Re: Any objections/comments on axing out old ATA stack?

2013-03-28 Thread Scott Long
On Mar 27, 2013, at 4:13 PM, Matthew Jacob mja...@freebsd.org wrote: On 3/27/2013 2:22 PM, Alexander Motin wrote: Hi. Since FreeBSD 9.0 we are successfully running on the new CAM-based ATA stack, using only some controller drivers of old ata(4) by having `options ATA_CAM` enabled in all

Re: sys/dev/amr build error with Clang

2012-08-31 Thread Scott Long
On Aug 31, 2012, at 2:43 AM, Dimitry Andric dimi...@andric.com wrote: On 2012-08-31 09:34, deeptec...@gmail.com wrote: /usr/src/sys/modules/amr/../../dev/amr/amr.c:970:1: error: function 'amr_periodic' is not needed and will not be emitted

Re: BUFSIZ = 1024, still ?

2012-08-20 Thread Scott Long
On Aug 18, 2012, at 3:43 PM, Matthew Jacob m...@feral.com wrote: On 8/18/2012 2:36 PM, Poul-Henning Kamp wrote: In message 50300540.9060...@feral.com, Matthew Jacob writes: [...] that there might be a measurable difference for having to copy 4K (unaligned) than 1K (unaligned) to kernel

Re: geom mirror now rebuilding on every reboot?

2012-08-06 Thread Scott Long
On Aug 6, 2012, at 12:06 PM, Gleb Smirnoff gleb...@freebsd.org wrote: Michael, On Sat, Aug 04, 2012 at 12:49:49PM -0400, Michael Butler wrote: M Something in -current and recently MFC'd to -stable is causing all of my M gmirror drives to rebuild on reboot :-( M M Being remote and these

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

2012-08-02 Thread Scott Long
On Aug 2, 2012, at 12:23 AM, Kevin Oberman kob6...@gmail.com wrote: Doug makes some good points. No, he doesn't. He and Arnould being argumentative and accusatory where none of that is warranted. I used to run the devsummits, and we did tele-conference lines for remote people to

Re: PCIe hotplug

2012-07-22 Thread Scott Long
On Jul 20, 2012, at 8:04 PM, Julian Elischer wrote: Is anyone looking at PCIe hotplug support? I'm especially interested if anyone has a strategy for device re-insertion and reassociating the reinserted device with its old device_t so that it gets the same unit number.. (assumes access

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread Scott Long
- Original Message - From: John Baldwin j...@freebsd.org To: curr...@freebsd.org Cc: sco...@freebsd.org; Peter Jeremy pe...@rulingia.com Sent: Thursday, July 12, 2012 7:40 AM Subject: Adding support for WC (write-combining) memory to bus_dma I have a need to allocate static DMA

Re: Intel XEON Phi: Linux only?

2012-06-19 Thread Scott Long
On Jun 19, 2012, at 4:31 PM, Adrian Chadd wrote: I bet the answer is something like Get FreeBSD up on it or work with someone who can help you do that. It's a catch-22 just like GPU - unless ${COMPANY} has customers using it, they're not likely to dedicate resources, and no users will use

Re: revisiting tunables under Safe Mode menu option

2012-03-01 Thread Scott Long
On Mar 1, 2012, at 9:52 AM, Devin Teske wrote: -Original Message- From: Andriy Gapon [mailto:a...@freebsd.org] Sent: Thursday, March 01, 2012 12:39 AM To: Devin Teske Cc: John Baldwin; freebsd-current@FreeBSD.org; Scott Long; Devin Teske Subject: Re: revisiting tunables under

Re: revisiting tunables under Safe Mode menu option

2012-03-01 Thread Scott Long
On Mar 1, 2012, at 2:39 PM, Devin Teske wrote: I'm interested in which path you would choose amongst what I've seen mentioned thus far: a. Modifying the boot menu to offer fine-grain control over each aspect of Safe Mode (wherein perhaps the Safe Mode option becomes a hook for a

Re: revisiting tunables under Safe Mode menu option

2012-02-28 Thread Scott Long
On Feb 28, 2012, at 6:44 AM, John Baldwin wrote: On Monday, February 27, 2012 2:03:21 pm Scott Long wrote: On Feb 27, 2012, at 3:45 AM, Andriy Gapon wrote: on 30/01/2012 18:59 Andriy Gapon said the following: First, I think that this proposal/discussion could have been more useful

Re: revisiting tunables under Safe Mode menu option

2012-02-28 Thread Scott Long
On Feb 28, 2012, at 6:46 AM, John Baldwin wrote: On Tuesday, February 28, 2012 1:23:11 am Scott Long wrote: I still think that it's useful to be able to disable ACPI. Just because ACPI works well on modern hardware doesn't mean that everything crummy from 2000-2007 suddenly disappeared

Re: revisiting tunables under Safe Mode menu option

2012-02-27 Thread Scott Long
On Feb 27, 2012, at 3:45 AM, Andriy Gapon wrote: on 30/01/2012 18:59 Andriy Gapon said the following: First, I think that this proposal/discussion could have been more useful before the 9.0. Maybe the RE would be interested in adding another item to their pre-release checklist: ask

Re: revisiting tunables under Safe Mode menu option

2012-02-27 Thread Scott Long
On Feb 27, 2012, at 3:38 PM, Andriy Gapon wrote: Turning off the APIC turns off SMP in a very efficient, clean manner. I added this not to isolate the APIC code, but to turn off SMP. That's why it's there, and I'd like the ability to turn off SMP to stay there in some form. I think

Re: NICs not in GENERIC

2012-02-22 Thread Scott Long
On Feb 22, 2012, at 1:22 AM, Alexander Leidinger wrote: Quoting Scott Long sco...@samsco.org (from Tue, 21 Feb 2012 17:45:04 -0700): On Feb 21, 2012, at 7:56 AM, Alexander Leidinger wrote: Hi, is there a specific reason that the following NICs are not (or shall not be) in GENERIC

Re: NICs not in GENERIC

2012-02-21 Thread Scott Long
On Feb 21, 2012, at 7:56 AM, Alexander Leidinger wrote: Hi, is there a specific reason that the following NICs are not (or shall not be) in GENERIC (at least on i386)? - if_cas: is compiled as a module, Sun hardware, non-x86 only? - if_gem: is compiled as a module, Apple/Sun, non-x86

Re: NICs not in GENERIC

2012-02-21 Thread Scott Long
On Feb 21, 2012, at 10:51 AM, Navdeep Parhar wrote: On Tue, Feb 21, 2012 at 03:56:56PM +0100, Alexander Leidinger wrote: Hi, is there a specific reason that the following NICs are not (or shall not be) in GENERIC (at least on i386)? No specific reason for these two: - if_cxgb -

Re: Smartmontools

2012-02-01 Thread Scott Long
On Feb 1, 2012, at 9:49 PM, Cy Schubert wrote: Other than nooptions ATA_CAM, is there a fix or circumvention to allow smartmontools to work correctly under 9.0 and -CURRENT? slippy# smartctl -a /dev/ad0 smartctl 5.41 2011-06-09 r3365 [FreeBSD 9.0-STABLE i386] (local build) Copyright (C)

Re: memory barriers in bus_dmamap_sync() ?

2012-01-11 Thread Scott Long
On Jan 10, 2012, at 2:37 PM, Luigi Rizzo wrote: I was glancing through manpages and implementations of bus_dma(9) and i am a bit unclear on what this API (in particular, bus_dmamap_sync() ) does in terms of memory barriers. I see that the x86/amd64 and ia64 code only does the bounce

Re: bus dma: a flag/quirk for page zero

2012-01-11 Thread Scott Long
An old controller in the aac driver family had a variation of this problem back when the FreeBSD contigmalloc algorithm started from the bottom of memory instead of the top. I worked around it at driver init time by basically assuring that page 0 (and page 1) were allocated and thrown away; it

Re: memory barriers in bus_dmamap_sync() ?

2012-01-11 Thread Scott Long
On Jan 11, 2012, at 9:29 AM, Luigi Rizzo wrote: On Wed, Jan 11, 2012 at 10:05:28AM -0500, John Baldwin wrote: On Tuesday, January 10, 2012 5:41:00 pm Luigi Rizzo wrote: On Tue, Jan 10, 2012 at 01:52:49PM -0800, Adrian Chadd wrote: On 10 January 2012 13:37, Luigi Rizzo ri...@iet.unipi.it

Re: memory barriers in bus_dmamap_sync() ?

2012-01-11 Thread Scott Long
On Jan 11, 2012, at 10:00 AM, Ian Lepore wrote: I've wished (in the ARM world) for the ability to sync a portion of a map. I've even kicked around the idea of proposing an API extension to do so, but I guess if FreeBSD went out of its way to remove that functionality that idea probably

Re: memory barriers in bus_dmamap_sync() ?

2012-01-11 Thread Scott Long
On Jan 11, 2012, at 10:10 AM, Ian Lepore wrote: On Wed, 2012-01-11 at 09:59 -0700, Scott Long wrote: Where barriers _are_ needed is in interrupt handlers, and I can discuss that if you're interested. Scott I'd be interested in hearing about that (and in general I'm loving

Re: SU+J systems do not fsck themselves

2011-12-29 Thread Scott Long
On Dec 29, 2011, at 4:02 PM, David Thiel wrote: On Wed, Dec 28, 2011 at 12:57:31AM -0700, Scott Long wrote: So, there's an assumption with SUJ+fsck that SU is keeping the filesystem consistent. Maybe that's a bad assumption, and I'm not trying to discredit your report. But the intention

Re: SU+J systems do not fsck themselves

2011-12-27 Thread Scott Long
On Dec 27, 2011, at 10:14 PM, David Thiel wrote: On Tue, Dec 27, 2011 at 02:48:22PM -0800, Xin Li wrote: - use journalled fsck; - use normal fsck to check if the journalled fsck did the right thing. Ok, here is the log of fsck with and without journal.

Re: SU+J systems do not fsck themselves

2011-12-27 Thread Scott Long
On Dec 28, 2011, at 12:34 AM, David Thiel wrote: On Tue, Dec 27, 2011 at 11:54:20PM -0700, Scott Long wrote: The first run of fsck, using the journal, gives results that I would expect. The second run seems to imply that the fixes made on the first run didn't actually get written to disk

Re: /sys/amd64/conf/DEFAULTS

2011-11-08 Thread Scott Long
On Nov 8, 2011, at 7:52 AM, O. Hartmann wrote: Am 11/08/11 14:31, schrieb Chuck Burns: On Tuesday, November 08, 2011 02:12:58 PM Niclas Zeising wrote: From my understanding of things, the DEFAULTS kernel configuration file is automatically included into the build by config(8). There is no

Re: Trying to install current from a memory stick and then a DVD and got a new and strange installer.

2011-07-25 Thread Scott Long
On Jul 25, 2011, at 11:36 AM, Freddie Cash wrote: On Sun, Jul 24, 2011 at 11:51 PM, Bruce Cran br...@cran.org.uk wrote: On 25/07/2011 06:01, Freddie Cash wrote: Thank goodness. The worst thing about sysinstall was that it tried to be a Swiss Army knife doing everything, yet not doing any

Re: Exactly that commit (was Re: Latest -current 100% hang at the late boot stage)

2011-06-24 Thread Scott Long
On Jun 23, 2011, at 11:18 PM, Scott Long wrote: On Jun 23, 2011, at 9:01 PM, Justin T. Gibbs wrote: On 6/22/11 4:09 PM, Kenneth D. Merry wrote: On Wed, Jun 22, 2011 at 08:13:25 +0400, Andrey Chernov wrote: On Tue, Jun 21, 2011 at 09:54:04PM -0600, Kenneth D. Merry wrote: These two

Re: Exactly that commit (was Re: Latest -current 100% hang at the late boot stage)

2011-06-23 Thread Scott Long
On Jun 23, 2011, at 9:01 PM, Justin T. Gibbs wrote: On 6/22/11 4:09 PM, Kenneth D. Merry wrote: On Wed, Jun 22, 2011 at 08:13:25 +0400, Andrey Chernov wrote: On Tue, Jun 21, 2011 at 09:54:04PM -0600, Kenneth D. Merry wrote: These two are interesting:

Re: xpt_action_default: CCB type 0xe not supported

2011-06-21 Thread Scott Long
On Jun 21, 2011, at 1:13 PM, Garrett Cooper wrote: On Tue, Jun 21, 2011 at 11:22 AM, Andrey Chernov a...@freebsd.org wrote: On Tue, Jun 21, 2011 at 08:51:02PM +0300, George Kontostanos wrote: Fresh installation and after world kernel update I get these messages during boot:

Re: fast/syscall-free gettimeofday ?

2011-06-15 Thread Scott Long
If this was to be extended with cached global syscall information like gettimeofday, would we want that to be in a separate page that is marked non-executable? Is there any way to trick the kernel into leaking arbitrary (and thus executable) code? Also, would it matter for jails? Per-process

Re: fast/syscall-free gettimeofday ?

2011-06-15 Thread Scott Long
On Jun 15, 2011, at 6:44 PM, Julian Elischer wrote: If this was to be extended with cached global syscall information like gettimeofday, would we want that to be in a separate page that is marked non-executable? Is there any way to trick the kernel into leaking arbitrary (and thus

Re: Switch from legacy ata(4) to CAM-based ATA

2011-04-24 Thread Scott Long
On Apr 23, 2011, at 10:36 AM, sth...@nethelp.no wrote: In other words, ada isn't the problem here, it's that we all still think in terms of the 1980's when systems didn't autoconfigure and device names were important hints to system functionality. That time has thankfully passed, and it's

Re: Switch from legacy ata(4) to CAM-based ATA

2011-04-20 Thread Scott Long
On Apr 20, 2011, at 2:50 PM, Alexander Motin wrote: Ulrich Spörlein wrote: Can we then please get the ad device prefix back? I seem to remember that when they were introduced they were thought to be a temporary thing ... Unless both stacks can run in parallel, I don't see a problem with

Re: HEADS UP: Removal of libobjc from the base system

2011-04-18 Thread Scott Long
On Apr 17, 2011, at 12:33 PM, Pedro F. Giffuni wrote: Yeah it's too outdated to be of any use. IMHO, you can axe libf2c too... Honest question here, is there a newer version of libf2c that lives in ports and is adopted by people who use fortran? The one that I find in the base system

Re: HEADS UP: Removal of libobjc from the base system

2011-04-18 Thread Scott Long
On Apr 18, 2011, at 9:47 AM, Alexander Kabaev wrote: On Mon, 18 Apr 2011 06:37:10 -0700 (PDT) Pedro F. Giffuni giffu...@tutopia.com wrote: --- On Mon, 4/18/11, Scott Long sco...@samsco.org wrote: ... Yeah it's too outdated to be of any use. IMHO, you can axe libf2c too... Honest

Re: Only display ACPI bootmenu key if ACPI is present

2010-11-10 Thread Scott Long
If the loader can't detect acpi, the kernel can't either. Scott On Nov 10, 2010, at 9:01 AM, David Rhodus wrote: What are the chances the detection fails and one still needs to disable ACPI and can't because it's not showing as a option ? Thanks, David Rhodus On Nov 8, 2010, at 5:14

Re: mfiutil reports PSTATE 0x0020 new drive state

2010-10-19 Thread Scott Long
On Oct 18, 2010, at 11:25 AM, Garrett Cooper wrote: On Mon, Oct 18, 2010 at 9:55 AM, Sergey Kandaurov pluk...@gmail.com wrote: On 16 October 2010 02:18, Sergey Kandaurov pluk...@gmail.com wrote: Check with LSI before you commit that; you might not understand the overall nuances of that

Re: MAXCPU preparations

2010-09-27 Thread Scott Long
There's no reason not to include sys/param.h. I'm a little reluctant to have it depend on the static MAXCPU definition, though. What happens when you mix-and match userland and kernel and they no longer agree on the definition of MAXCPU? I suggest creating a sysctl that exports the kernel's

Re: mfi and Dell PERC 6/i

2010-08-24 Thread Scott Long
On Aug 24, 2010, at 8:57 PM, Danilo Baio wrote: Hi guys, I have a DELL PERC 6/i controller and I can't find the problem. The system was running and lost disk access with this messages on console: mfi0: COMMAND 0xff80005d1770 TIMEOUT AFTER 6178 SECONDS ...

Re: What to learn from the BSD grep case [Was: why GNU grep is fast]

2010-08-23 Thread Scott Long
On Aug 23, 2010, at 9:04 AM, Gabor Kovesdan wrote: Hi all, there are some consequences that we can see from the grep case. Here I'd like to add a summary, which raises some questions. All comments are welcome. 1, When grep entered -CURRENT and bugs were found I immediately got kind bug

Re: Dell Perc 5/i Performance issues

2010-06-30 Thread Scott Long
On Jun 19, 2010, at 10:31 PM, Garrett Cooper wrote: On Sat, Jun 19, 2010 at 7:56 PM, Scott Long sco...@samsco.org wrote: On Jun 19, 2010, at 5:32 AM, Garrett Cooper wrote: On Sat, Jun 19, 2010 at 4:24 AM, Garrett Cooper yanef...@gmail.com wrote: On Sat, Jun 19, 2010 at 4:21 AM, oizs o

Re: Dell Perc 5/i Performance issues

2010-06-20 Thread Scott Long
, Steven Hartland wrote: Does anyone know of a nice how to guide for achieving this? - Original Message - From: Scott Long sco...@samsco.org 2. Partition alignment. If you're using classic MBR slices, everything gets misaligned by 63 sectors, making it impossible for the controller

Re: Dell Perc 5/i Performance issues

2010-06-20 Thread Scott Long
. -zsozso On 2010.06.20. 4:53, Scott Long wrote: Two big things can affect RAID-5 performance: 1. Battery backup. If you don't have a working battery attached to the card, it will turn off the write-back cache, no matter what you do. Check this. If you're unsure, use the mfiutil tool that I

Re: Dell Perc 5/i Performance issues

2010-06-19 Thread Scott Long
Two big things can affect RAID-5 performance: 1. Battery backup. If you don't have a working battery attached to the card, it will turn off the write-back cache, no matter what you do. Check this. If you're unsure, use the mfiutil tool that I added to FreeBSD a few months ago and send me

Re: Dell Perc 5/i Performance issues

2010-06-19 Thread Scott Long
On Jun 19, 2010, at 5:32 AM, Garrett Cooper wrote: On Sat, Jun 19, 2010 at 4:24 AM, Garrett Cooper yanef...@gmail.com wrote: On Sat, Jun 19, 2010 at 4:21 AM, oizs o...@freemail.hu wrote: Since I tested it on different kind of os's, and with at least 5 testing applications, I don't think that

Re: strange scsi/CAM related dmesg output

2010-06-18 Thread Scott Long
On Jun 18, 2010, at 9:11 AM, Alexander Best alexbes...@uni- muenster.de wrote: On Mon, Jun 7, 2010 at 3:57 PM, John Baldwin j...@freebsd.org wrote: On Saturday 05 June 2010 2:54:15 pm Jille Timmermans wrote: Scott Long schreef: On Jun 4, 2010, at 4:35 PM, Alexander Best wrote: hi

Re: strange scsi/CAM related dmesg output

2010-06-05 Thread Scott Long
On Jun 4, 2010, at 4:35 PM, Alexander Best wrote: hi there. running HEAD, amd64 and r208806 i get this dmesg output which doesn't look right: ada0 at ahcich2 bus 0 scbus3 target 0 lun 0 ada0: SAMSUNG SP2504C VT100-50 ATA-7 SATA 2.x device ada0: 300.000MB/s transferscd0 at ata2 bus 0 scbus2

Re: strange scsi/CAM related dmesg output

2010-06-05 Thread Scott Long
On Jun 5, 2010, at 1:12 PM, Alexander Best wrote: sure. sorry. the output ada0 at ahcich2 bus 0 scbus3 target 0 lun 0 ada0: SAMSUNG SP2504C VT100-50 ATA-7 SATA 2.x device ada0: 300.000MB/s transferscd0 at ata2 bus 0 scbus2 target 0 lun 0 cd0: HL-DT-ST DVDRAM GSA-H10N JL12 Removable

Re: [TESTING]: ClangBSD branch needs testing before the import to HEAD

2010-05-31 Thread Scott Long
On May 30, 2010, at 7:58 AM, Kostik Belousov wrote: On Sat, May 29, 2010 at 03:02:40PM +0200, Roman Divacky wrote: hi, ClangBSD was updated to LLVM/clang revision 104832 which is what we aim to import into HEAD in roughly a week. We would like the initial It was promised that before the

Re: [TESTING]: ClangBSD branch needs testing before the import to HEAD

2010-05-31 Thread Scott Long
On May 31, 2010, at 3:56 AM, Kostik Belousov wrote: My personal opinion is that pushing the import now at the present state of clang makes a disservice to FreeBSD, and possible clang. Why not keep the glue on the branch as it is ? Motivated testers willing to help definitely can checkout

Re: SUJ and mount reporting

2010-05-31 Thread Scott Long
On May 31, 2010, at 3:08 AM, Ivan Voras wrote: On 05/31/10 02:25, Bjoern A. Zeeb wrote: On Mon, 31 May 2010, Ivan Voras wrote: Shouldn't SU+J be visible in the output of mount somehow? I've just enabled it on a root file system of a machine and while tunefs and dumpfs report both

Re: kmem_map too small: 3832475648 total allocated

2010-04-29 Thread Scott Long
On Apr 29, 2010, at 9:44 AM, Tom Evans wrote: On Thu, Apr 29, 2010 at 3:53 PM, Ollivier Robert robe...@keltia.freenix.fr wrote: According to James R. Van Artsdalen: system is a Core i7 975 (3.33 GHz x 4 cores 3x threads per core) with 12 GB of RAM, a 2x2TB ZFS boot pool and a second (idle)

Re: Switchover to CAM ATA?

2010-04-27 Thread Scott Long
On Apr 27, 2010, at 7:34 AM, Dag-Erling Smørgrav wrote: Maxim Sobolev sobo...@freebsd.org writes: Richard Tector richardtec...@thekeelecentre.com writes: Could I also add that the removal of ataraid would affect those users who dual-boot with Windows and rely on the psuedo-raid provided by

Re: Switchover to CAM ATA?

2010-04-27 Thread Scott Long
On Apr 26, 2010, at 11:39 PM, Luke Dean wrote: On Thu, 22 Apr 2010, Alexander Motin wrote: So what is the public opinion: Is the lack of ataraid(4) fatal or we can live without it? Hardware mirroring is very important to me. It's the only solution I'm aware of for realtime

Re: Switchover to CAM ATA?

2010-04-27 Thread Scott Long
On Apr 27, 2010, at 5:33 AM, Gavin Atkinson wrote: On Mon, 2010-04-26 at 10:33 -0600, M. Warner Losh wrote: My opinion for the path forward: (1) Send a big heads up about the future of ataraid(5). It will be shot in the head soon, to be replaced be a bunch of geom classes for each

Re: Switchover to CAM ATA?

2010-04-26 Thread Scott Long
On Apr 26, 2010, at 6:51 AM, Alexander Motin wrote: Marius Strobl wrote: As noted earlier, pc98 and sparc64 need ada(4)/CAM ATA to perform geometry translation as done by ad_firmware_geom_adjust() for ad(4), which the following patch hooks up to both:

  1   2   3   4   >