Page MenuHomeFreeBSD
Feed Advanced Search

Jan 18 2017

scottl retitled D9238: Rework the MPR/MPS debug print API. from Rework the debug print API. Event printing no longer gets special handling. All of the printing from the tables file now has wrappers so that the handling is cleaner and it's possible to print something out (say, during development) without... to Rework the MPR/MPS debug print API..
Jan 18 2017, 10:55 PM
scottl retitled D9238: Rework the MPR/MPS debug print API. from to Rework the debug print API. Event printing no longer gets special handling. All of the printing from the tables file now has wrappers so that the handling is cleaner and it's possible to print something out (say, during development) without....
Jan 18 2017, 10:53 PM

Jan 16 2017

scottl added a comment to D3687: Implement kernel support for hardware rate limited sockets.

Fixing things post-commit is much better than forcing the work to languish. This review has been plagued by poor participation for far too long, and it's reflecting poorly on the FreeBSD community. I'm ok with giving people until Wednesday, but after that it goes in, love it or hate it.

Jan 16 2017, 7:53 PM
scottl accepted D3687: Implement kernel support for hardware rate limited sockets.

There has been no dissension on this review since early November, and HPS has done a lot to update the code to address the comments from then. Given the lack of new input, I recommend that this code be committed.

Jan 16 2017, 7:37 PM

Jan 12 2017

scottl committed rS311958: Print out the number of queues/MSIx vectors..
Print out the number of queues/MSIx vectors.
Jan 12 2017, 1:13 AM

Nov 26 2016

scottl committed rS309201: Add a missing header.
Add a missing header
Nov 26 2016, 11:15 PM

Nov 8 2016

scottl added inline comments to D8477: cam: Zero bio pointer in user-supplied SCSI CCBs.
Nov 8 2016, 8:29 PM
scottl closed D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab. by committing rS308431: Convert the Q-Pair and PRP list memory allocations to use BUSDMA. Add a.
Nov 8 2016, 12:25 AM
scottl committed rS308431: Convert the Q-Pair and PRP list memory allocations to use BUSDMA. Add a.
Convert the Q-Pair and PRP list memory allocations to use BUSDMA. Add a
Nov 8 2016, 12:25 AM

Nov 7 2016

scottl updated the diff for D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..

Updating D8453: Change the device shared memory allocation routines to use the busdma API.

One side effect is that all memory, including the PRP segments, are now
allocated in a single slab.

Nov 7 2016, 11:46 PM
scottl committed rS308423: Fix the fallout from r308268 (mpt driver causes endless witness warnings in.
Fix the fallout from r308268 (mpt driver causes endless witness warnings in
Nov 7 2016, 5:34 PM

Nov 6 2016

scottl added inline comments to D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..
Nov 6 2016, 5:35 PM
scottl updated the diff for D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..

Add safety belts for page alignment and page crossing.

Nov 6 2016, 5:33 PM
scottl added inline comments to D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..
Nov 6 2016, 4:23 PM
scottl updated the diff for D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..

Address feedback from Jim

Nov 6 2016, 4:21 PM
scottl updated the diff for D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..

Remove a spurious printf

Nov 6 2016, 4:01 PM
scottl retitled D8453: Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab. from to Change the device shared memory allocation routines to use the busdma API. One side effect is that all memory, including the PRP segments, are now allocated in a single slab..
Nov 6 2016, 4:46 AM

Nov 4 2016

scottl committed rS308301: Record the LogInfo field when reporting the IOCStatus. Helps in.
Record the LogInfo field when reporting the IOCStatus. Helps in
Nov 4 2016, 5:26 PM
scottl committed rS308299: If the da periph probe state machine gets an asc=0x44 error, the periph.
If the da periph probe state machine gets an asc=0x44 error, the periph
Nov 4 2016, 5:09 PM
scottl committed rS308296: asc/ascq 44/0 is typically a non-transient, permanent error (at least until.
asc/ascq 44/0 is typically a non-transient, permanent error (at least until
Nov 4 2016, 4:56 PM

Nov 2 2016

scottl committed rS308217: Add a fallback to the device mapper logic. We've seen systems in the field.
Add a fallback to the device mapper logic. We've seen systems in the field
Nov 2 2016, 3:13 PM
scottl added a comment to D8403: mpr/mps device mapper override.

Last comment might have been lost. I've set the default to 1.

Nov 2 2016, 3:02 AM
scottl updated the diff for D8403: mpr/mps device mapper override.

Address string typo and move a structure field around to a more logical spot.

Nov 2 2016, 3:01 AM
scottl added a comment to D8403: mpr/mps device mapper override.

I'll set the default to 1 in the next revision.

Nov 2 2016, 2:58 AM

Oct 31 2016

scottl retitled D8403: mpr/mps device mapper override from to mpr/mps device mapper override.
Oct 31 2016, 8:55 PM

Aug 12 2016

scottl accepted D7393: Update iflib to support more NIC designs.
Aug 12 2016, 8:53 PM

Jul 28 2016

scottl added a comment to D6585: Avoid naming collisions between linuxkpi's struct device and FreeBSD's struct device .

Since the goal here is to take 'struct device' out of the public FreeBSD kernel API, it should be renamed to "_device" instead of "device_"

Jul 28 2016, 6:22 PM

Jul 25 2016

scottl accepted D7289: Switch to linker sets to find the xport callback object..
Jul 25 2016, 4:41 PM

Jul 19 2016

scottl committed rS303042: Remove unused variable from last commit..
Remove unused variable from last commit.
Jul 19 2016, 7:19 PM
scottl committed rS303040: Supporting flushing the dump before returning, and simplify/combine the.
Supporting flushing the dump before returning, and simplify/combine the
Jul 19 2016, 7:09 PM
scottl committed rS303017: Implement crashdump support on NVME.
Implement crashdump support on NVME
Jul 19 2016, 3:14 AM

Jul 5 2016

scottl accepted D7043: Use real values to calculate Max I/O size instead of guessing..
Jul 5 2016, 7:45 PM

Jul 1 2016

scottl added a comment to D7043: Use real values to calculate Max I/O size instead of guessing..

Actually I would set the default user value to 0xffffffff, and then do a min() calculation with that and the calculated value. That way you never go above the calculated value, but you can go lower (maybe clip the lower value to something sensible, not allow absurdly low values like '1').

Jul 1 2016, 8:16 PM
scottl added a comment to D7043: Use real values to calculate Max I/O size instead of guessing..

Sounds good

Jul 1 2016, 7:22 PM
scottl added a comment to D7043: Use real values to calculate Max I/O size instead of guessing..

Smaller than the calculated value is what I meant. It's a convenient backstop against unexpected code, disk, and controller bugs. Just a simple cpi->maxio = min(sc->user_max_io, cpi->maxio);

Jul 1 2016, 7:08 PM
scottl accepted D7043: Use real values to calculate Max I/O size instead of guessing..
Jul 1 2016, 4:07 AM
scottl added a comment to D7043: Use real values to calculate Max I/O size instead of guessing..

Looks good in principle. Would it be possible to have this value be overridable by a user tunable/sysctl?

Jul 1 2016, 4:07 AM

Jun 29 2016

scottl added a reviewer for D7016: Add CK: gallatin.
Jun 29 2016, 3:29 PM
scottl added a reviewer for D7018: use EBR to avoid life time races in callouts: gallatin.
Jun 29 2016, 3:28 PM

May 23 2016

scottl added a comment to D6496: Fix multiple Coverity CWE-119 (Out-of-bounds access) errors in userland CAM code.

Agreed on the MFC proposal.

May 23 2016, 4:57 PM
scottl accepted D6496: Fix multiple Coverity CWE-119 (Out-of-bounds access) errors in userland CAM code.
May 23 2016, 4:16 PM

May 19 2016

scottl committed rS300219: Adjust the creation of tq_name so it can be freed correctly.
Adjust the creation of tq_name so it can be freed correctly
May 19 2016, 5:14 PM
scottl closed D6454: Adjust the creation of tq_name so it can be freed correctly by committing rS300219: Adjust the creation of tq_name so it can be freed correctly.
May 19 2016, 5:14 PM
scottl added a comment to D6454: Adjust the creation of tq_name so it can be freed correctly.

Thanks!

May 19 2016, 5:11 PM
scottl updated the diff for D6454: Adjust the creation of tq_name so it can be freed correctly.

Remove a line that crept in.

May 19 2016, 5:07 PM
scottl retitled D6454: Adjust the creation of tq_name so it can be freed correctly from to Adjust the creation of tq_name so it can be freed correctly.
May 19 2016, 4:57 PM

May 18 2016

scottl committed rS300154: Activate the NO_64BIT_ATOMICS code for mips and powerpc.
Activate the NO_64BIT_ATOMICS code for mips and powerpc
May 18 2016, 3:45 PM
scottl committed rS300153: Remove assertions that don't make sense for the data type..
Remove assertions that don't make sense for the data type.
May 18 2016, 3:45 PM
scottl added a comment to D4112: Import Isilon port of VMWare PV SCSI driver.

Let's break this down into manageable tasks:

  1. Eliminate the use of vtophys, pci_alloc_consistent/pci_map_single, and contigmalloc/contigfree. Everything should be done with busdma. For the sgl and sense buffers, they should be allocated in a block via bus_dmamem_alloc() and then split out to the ctx objects, with their physaddr pre-computed.
  2. Switch linked lists from linux macros to *BSD queue.h macros.
  3. Get rid of the use of the rest of the linux shims, like create_workqueue/destroy_workqueue.
  4. Get rid of the linux typedefs. Is there an intention to share vow_pvscsi.h across OS's? If so then let's see if we can keep the types isolated to that.
  5. Everything else that Ngie said.
May 18 2016, 2:14 PM
scottl added inline comments to D4112: Import Isilon port of VMWare PV SCSI driver.
May 18 2016, 2:01 PM
scottl committed rS300113: Import the 'iflib' API library for network drivers. From the author:.
Import the 'iflib' API library for network drivers. From the author:
May 18 2016, 4:36 AM
scottl closed D5211: import iflib by committing rS300113: Import the 'iflib' API library for network drivers. From the author:.
May 18 2016, 4:36 AM

May 16 2016

scottl added a comment to D4112: Import Isilon port of VMWare PV SCSI driver.

A couple of key things:

  1. Licenses must be clarified. This can't go into the freebsd tree without that.
  2. It looks like this is a mix of linux and freebsd. I get that the original code was linux, and effort was made to shim in convenient places. However, it's a mixed up mess now. Either keep the linux sources as unaltered as possible and put all of the shimming into separate files, or let's work on making this use native APIs. Keeping it in-between makes it hard to maintain and hard to adopt future changes from VMWare. Do you expect this code to stay alive and evolve? The last thing I want is for the code to be tossed in and then abandoned, leaving it hard to maintain and ultimately prone to rot.
  3. Can the ISILON blocks be turned into something more descriptive? Do they encapsulate functionality that is completely unique to Isilon that could never be used by others? If so, then why put such code into FreeBSD? Again, it's hard for someone else to review and maintain this code when there are blocks of mystery functionality.
May 16 2016, 6:52 PM

May 14 2016

scottl accepted D6069: Add an EARLY_AP_STARTUP option to start APs earlier during boot..
May 14 2016, 6:21 PM

May 13 2016

scottl committed rS299590: Don't jam the softc in the device_probe routine. The softc isn't owned by.
Don't jam the softc in the device_probe routine. The softc isn't owned by
May 13 2016, 5:57 AM

May 12 2016

scottl added a comment to D5211: import iflib.

That's not true. device_set_desc and friends are specifically designed to be operated on in device_probe.

May 12 2016, 9:49 PM
scottl added inline comments to D5211: import iflib.
May 12 2016, 8:53 PM
scottl added a comment to D5211: import iflib.

I need the changes to mbuf.h

May 12 2016, 5:48 PM
scottl added a comment to D5211: import iflib.

I've made the changes to if_an and committed that part of the patch to freebsd-head

May 12 2016, 5:48 PM
scottl committed rS299544: Move mutex initialization from PCI probe to PCI attach. Drivers are not.
Move mutex initialization from PCI probe to PCI attach. Drivers are not
May 12 2016, 5:47 PM
scottl updated subscribers of D5211: import iflib.
May 12 2016, 4:55 PM
scottl committed rS299531: MFC r298977: Fix a memory leak introduced with the devctl intergration of.
MFC r298977: Fix a memory leak introduced with the devctl intergration of
May 12 2016, 12:03 PM
scottl added a comment to D5211: import iflib.

Are the changes to if_an, if_bxe, and kern_mbuf.c intentional?

May 12 2016, 10:40 AM

May 3 2016

scottl committed rS298977: Fix a memory leak in the devctl notify code..
Fix a memory leak in the devctl notify code.
May 3 2016, 2:30 PM

Apr 26 2016

scottl added inline comments to D6103: Several style changes and add copyrights for 2016..
Apr 26 2016, 1:47 AM
scottl accepted D6097: IOCSatatus Mask and Endian fixes.
Apr 26 2016, 1:46 AM
scottl added inline comments to D6096: Update MPI headers to version 42..
Apr 26 2016, 1:45 AM

Apr 17 2016

scottl committed rS298135: Merge r298008.
Merge r298008
Apr 17 2016, 1:38 AM
scottl committed rS298134: MFC r298004:.
MFC r298004:
Apr 17 2016, 1:36 AM

Apr 16 2016

scottl committed rS298100: Partial MFC of r297933.
Partial MFC of r297933
Apr 16 2016, 5:15 AM
scottl committed rS298093: MFC r297925, r297926:.
MFC r297925, r297926:
Apr 16 2016, 2:47 AM

Apr 14 2016

scottl committed rS298008: Update the devd.conf man page to describe the new CAM/periph system/subsystem..
Update the devd.conf man page to describe the new CAM/periph system/subsystem.
Apr 14 2016, 10:03 PM
scottl committed rS298004: Add a devctl/devd notification conduit for CAM errors that happen at the.
Add a devctl/devd notification conduit for CAM errors that happen at the
Apr 14 2016, 9:56 PM
scottl closed D5943: Add a devd notification system to cam_periph_error by committing rS298004: Add a devctl/devd notification conduit for CAM errors that happen at the.
Apr 14 2016, 9:56 PM
scottl updated the diff for D5943: Add a devd notification system to cam_periph_error.

Fix a compile error from the previous revision.

Apr 14 2016, 9:20 PM
scottl updated the diff for D5943: Add a devd notification system to cam_periph_error.

A few naming tweaks, and add a CAM_SMP_STATUS_ERROR to the list of handled
errors.

Apr 14 2016, 9:03 PM
scottl added a comment to D5943: Add a devd notification system to cam_periph_error.

I like the spirit of this change. My main worry is that a poorly behaved device could generate so many messages that it would slow the system and DOS devd clients. But eliminating that risk might require a whole new replacement for devctl(4).

Apr 14 2016, 8:49 PM
scottl added a comment to D5943: Add a devd notification system to cam_periph_error.
In D5943#126839, @ken wrote:

See the comment on using the zone allocator.

The question remains, what operations are we looking to track, and why? And what operations are we not looking to track, and why? How do we accomplish filtering?

Apr 14 2016, 8:31 PM
scottl updated the diff for D5943: Add a devd notification system to cam_periph_error.

Switch to use static allocations for sbuf to avoid locking issues. Also
refactor the handling of each error case, and add a few cases that had been
lost along the way.

Apr 14 2016, 5:31 PM
scottl added inline comments to D5943: Add a devd notification system to cam_periph_error.
Apr 14 2016, 3:27 PM

Apr 13 2016

scottl retitled D5943: Add a devd notification system to cam_periph_error from to Add a devd notification system to cam_periph_error.
Apr 13 2016, 8:19 PM
scottl committed rS297933: Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf(), and reimplement the.
Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf(), and reimplement the
Apr 13 2016, 8:10 PM
scottl closed D5940: Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf() by committing rS297933: Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf(), and reimplement the.
Apr 13 2016, 8:10 PM
scottl updated the diff for D5940: Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf().

Lost a small piece of printf formatting in the last revision, restore it.

Apr 13 2016, 7:53 PM
scottl retitled D5940: Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf() from to Add sbuf variants ata_cmd_sbuf() and ata_res_sbuf().
Apr 13 2016, 6:36 PM
scottl committed rS297926: Use scsi_cdb_sbuf() inside of scsi_command_string now that the temporary.
Use scsi_cdb_sbuf() inside of scsi_command_string now that the temporary
Apr 13 2016, 3:57 PM
scottl committed rS297925: Add scsi_cdb_sbuf() for handling CDB strings. Reimplement scsi_cdb_string().
Add scsi_cdb_sbuf() for handling CDB strings. Reimplement scsi_cdb_string()
Apr 13 2016, 3:43 PM
scottl closed D5934: Add scsi_cdb_sbuf() by committing rS297925: Add scsi_cdb_sbuf() for handling CDB strings. Reimplement scsi_cdb_string().
Apr 13 2016, 3:43 PM
scottl updated the diff for D5934: Add scsi_cdb_sbuf().

Removed some extraneous debugging. Made scsi_cdb_string() use on-stack
storage for the sbuf in order to improve reliability.

Apr 13 2016, 3:36 PM
scottl added inline comments to D5934: Add scsi_cdb_sbuf().
Apr 13 2016, 3:01 PM
scottl added a comment to D5934: Add scsi_cdb_sbuf().

I agree with the worry over the use of mutexes and allocation failures. I thing I considered was having scsi_cdb_string() take an option for whether to allocate the sbuf off the stack or dynamically. What do you think?

Apr 13 2016, 6:24 AM
scottl added inline comments to D5934: Add scsi_cdb_sbuf().
Apr 13 2016, 5:23 AM
scottl added a comment to D5934: Add scsi_cdb_sbuf().

Note that I intend to switch a few consumers of scsi_cdb_string(), notably scsi_command_string() to use this variant in order to streamline the use of sbufs and eliminate the need for stack storage.

Apr 13 2016, 3:27 AM
scottl retitled D5934: Add scsi_cdb_sbuf() from to Add scsi_cdb_sbuf().
Apr 13 2016, 3:25 AM

Mar 30 2016

scottl accepted D5784: Bump bio_cmd and bio_*flags from 8 bits to 16..
Mar 30 2016, 8:27 PM

Mar 23 2016

scottl added a comment to D5704: Add a wrapper API for static DMA allocations to bus_dma(9)..

I like the general idea a lot. I'd like to improve it further, though. You're basically hiding the tag away from the new API, which is good IMHO, but you don't quite go far enough. For your example:

Mar 23 2016, 10:17 PM

Mar 9 2016

scottl added inline comments to D5598: Implement AUXILIARY REGISTER.
Mar 9 2016, 10:10 PM
scottl added a comment to D5598: Implement AUXILIARY REGISTER.

If the PIM_ATA_EXT flag is getting set by the SIM and checked by the periph, it would be a programming error for the periph to set the ATA_FLAG_AUX flag if PIM_ATA_EXT was not set. Therefore, maybe make the check for ATA_FLAG_AUX be a KASSERT instead of a mandatory runtime check?

Mar 9 2016, 10:08 PM
scottl added a comment to D5596: Move to new value for XPT_GET_SIM_KNOB to avoid clash with XPT_ATA_IO..

My thought was to retire the existing XPT_ATA_IO value and move to XPT_ATA_IO_EXT. I don't disagree with your approach, need to think on it.

Mar 9 2016, 5:19 PM

Mar 8 2016

scottl added inline comments to D5585: Make sure we check for CAM_CDB_POINTER for all drivers. Also, for the drivers I've touched, filter out CAM_CDB_PHYS..
Mar 8 2016, 10:32 PM