Page MenuHomeFreeBSD
Feed Search

Jul 3 2024

mav added inline comments to D45814: Allow ZFS sharenfs to generate multiple export(5) lines.
Jul 3 2024, 3:36 PM
mav accepted D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

Looks fine to me, just couple nits.

Jul 3 2024, 3:33 PM

Jul 2 2024

mav added a comment to D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

Have you looked on similar Linux code? It would be good to be consistent or at least similar. I haven't looked deep, but foreach_nfs_host_cb() seems to support multiple hosts.

Jul 2 2024, 3:28 PM

Jun 27 2024

mav committed rG87085c12ba8f: Fix SATA NCQ error recovery after 25375b1415.
Jun 27 2024, 1:38 PM

Jun 24 2024

mav accepted D45688: Add isp(4) fwload_only loader tunable.
Jun 24 2024, 7:40 PM · cam
mav accepted D45660: Fix isp(4) device probing with 9.x firmware.

Looks odd to me, but OK.

Jun 24 2024, 6:17 PM · cam
mav added a comment to D45660: Fix isp(4) device probing with 9.x firmware.
In D45660#1042742, @ken wrote:

So here is what the debugging log message in isp_getpdb() shows. isp0 and isp1 are connected to LTO-6 tape drives via an 8Gb switch. isp2 is directly connected to an LTO-6 in loop mode:

isp0: Chan 0 handle 0x0 Port 0xfffc01 flags 0x0 curstate 77 laststate 77
isp0: Chan 0 handle 0x1 Port 0x011b26 flags 0x40a0 curstate 46 laststate 46
isp0: Chan 0 handle 0x7fe Port 0xfffffe flags 0x0 curstate 44 laststate 44
isp0: Chan 0 handle 0x7fe Port 0xfffffe flags 0x0 curstate 44 laststate 44
isp1: Chan 0 handle 0x0 Port 0xfffc01 flags 0x0 curstate 77 laststate 77
isp1: Chan 0 handle 0x1 Port 0x011a26 flags 0x40a0 curstate 46 laststate 46
isp1: Chan 0 handle 0x7fe Port 0xfffffe flags 0x0 curstate 44 laststate 44
isp1: Chan 0 handle 0x7fe Port 0xfffffe flags 0x0 curstate 44 laststate 44
isp2: Chan 0 handle 0x0 Port 0x000026 flags 0x40a0 curstate 46 laststate 46

Jun 24 2024, 5:49 PM · cam
mav accepted D45718: isp: don't run ISPCTL_FCLINK_TEST on failed ISPCTL_ABORT_CMD.
Jun 24 2024, 3:29 PM
mav added a comment to D45688: Add isp(4) fwload_only loader tunable.

It seems a good tunable, except I am not getting the meaning of "only" there. Why not "always", "force" or something like that?

Jun 24 2024, 3:25 PM · cam
mav added a comment to D45660: Fix isp(4) device probing with 9.x firmware.

None of QLogic documents I have know nothing about NVMe, and this state field is declared is byte there. I have no objections for this patch, but a bit curios what NVMe status do we see there for non-NVMe devices.

Jun 24 2024, 3:17 PM · cam

Jun 14 2024

mav committed rG80b42329248a: nvme: Fix panic on detach after ce75bfcac9cfe.
Jun 14 2024, 7:34 PM

Jun 7 2024

mav committed rG4cc4b5e2b5f8: Add some AMD device IDs. (authored by dmitryluhtionov_gmail.com).
Jun 7 2024, 5:04 PM

Jun 6 2024

mav accepted D45522: ctladm: deprecate the undocumented "port -l" option.
Jun 6 2024, 9:38 PM

May 29 2024

mav added a comment to D45390: runq/sched: Switch to 256 distinct levels.

Differences of less than 4 (RQ_PPQ) are insignificant and are simply removed. No functional change (intended).

May 29 2024, 11:20 PM
mav added a comment to D45388: sched_ule: Re-implement stealing on top of runq common-code.

I suspect that first thread was skipped to avoid stealing a thread that was just scheduled to a CPU, but was unable to run yet.

May 29 2024, 6:34 PM
mav added a comment to D45380: kern/dev/nvme: Use the per-namespace uma(9) zone for the bio..

I am not fully sure about the motivation of this change, but It feels wrong to me to have per-namespace zones. On a big system under heavy load UMA does a lot of work for per-CPU and per-domain caching, and doing it also per-namespace would multiply resource waste. Also last time I touched it, I remember it was difficult for UMA to operate in severely constrained environments, since eviction of per-CPU caches is quite expensive. I don't remember how reservation works in that context, but I suppose that having dozens of small zones with small reservations, but huge per-CPU caches is not a very viable configuration.

May 29 2024, 1:57 PM

May 23 2024

mav accepted D45311: nvme: Count number of alginment splits.
May 23 2024, 9:37 PM
mav added inline comments to D45311: nvme: Count number of alginment splits.
May 23 2024, 6:28 PM
mav committed rG856d35337225: Fix scn_queue races on very old pools.
May 23 2024, 6:12 PM
mav committed rG9898f936aa69: Fix scn_queue races on very old pools.
May 23 2024, 5:46 PM
mav committed rG455ce1729353: Fix scn_queue races on very old pools.
May 23 2024, 5:42 PM
mav committed rG49086aa35d98: Fix scn_queue races on very old pools.
May 23 2024, 4:22 PM

May 14 2024

mav accepted D45192: nvme: Improve timeout action.

I see no problems, but I have difficulties to believe that timeout handlers 1-2 times per second per queue pair may have any visible effects. Also I am not happy to see second place where timeouts are calculated. And 99/100 also looks quite arbitrary.

May 14 2024, 12:44 AM
mav accepted D45190: ctl: use socket buffer mutexes in struct socket directly.

Mechanically it seems to have sense. I've missed when than original transition happened, but if you say it is right, so be it.

May 14 2024, 12:22 AM

May 7 2024

mav added a comment to D45072: mca: Allow for passing ECC error record to memory controller driver..

I wonder if there is any real architecture where pointer load/store is non-atomic. For things that are going to be executed between once and never it feels like you are over-engineering it. :)

May 7 2024, 6:34 PM
mav accepted D45072: mca: Allow for passing ECC error record to memory controller driver..

I have no objections, if it is useful.

May 7 2024, 5:24 PM

May 3 2024

mav added inline comments to D45072: mca: Allow for passing ECC error record to memory controller driver..
May 3 2024, 1:35 AM

Apr 27 2024

mav committed rGa36b9f244287: libpmc: Import AMD Zen 4 PMU events.
Apr 27 2024, 3:04 AM
mav committed rG75f1323c15cb: libpmc: Import AMD Zen 4 PMU events.
Apr 27 2024, 3:04 AM

Apr 26 2024

mav added a comment to D44961: rate limit ctl_process_done warning messages.

What is an "OOA queue"?

Apr 26 2024, 3:24 PM
mav added a comment to D44961: rate limit ctl_process_done warning messages.

I wonder what is your queue depth, so that one message per request per 90 seconds would cause a noticeable storm. Also per-system limiting makes output not very useful, since it does not say much useful about LUNs, ports, commands, etc due to selecting first message out of many, only that something is wrong. Thinking even wider, I find those messages printed on actual completion not very useful, since if there are not a delays, but something is really wrong, the commands many never complete and so the messages may never get printed. I wonder if instead removing all this and once per second checking OOA queues for stuck requests and printing some digests would be more useful.

Apr 26 2024, 3:03 PM

Apr 20 2024

mav committed rG278d6950943a: libpmc: Import AMD Zen 4 PMU events.
Apr 20 2024, 3:55 PM
mav accepted D44860: ahc(4)/ahd(4): fix target mode on ARM.

Looks good to me, but if you wish, couple cosmetic thoughts.

Apr 20 2024, 3:30 PM
mav accepted D44859: ahc(4): resolve some minor nits.

Looks good to me, though seems only cosmetic.

Apr 20 2024, 3:23 PM

Apr 17 2024

mav committed rG4bb54e8ec3d0: ahc/ahd: Fix target mode operation.
Apr 17 2024, 1:40 PM
mav committed rGe48f7ff6a12c: ahc/ahd: Fix target mode operation.
Apr 17 2024, 1:40 PM

Apr 10 2024

mav committed rGf1e4c095777d: ahc/ahd: Fix target mode operation.
Apr 10 2024, 8:51 PM

Mar 25 2024

mav accepted D44494: mpi3r: Track IO per target counter during queue poll with local var.
Mar 25 2024, 12:58 PM

Mar 21 2024

mav accepted D44430: mpi3mr: Update driver version to 8.10.0.1.0.
Mar 21 2024, 2:30 PM
mav accepted D44429: mpi3mr: Update copyright year to 2024.
Mar 21 2024, 2:30 PM
mav accepted D44428: mpi3mr: Update mpi header to latest version.
Mar 21 2024, 2:29 PM
mav added inline comments to D44427: mpi3mr: Adding FreeBSD OS Type to Fault/Reset Reason Code.
Mar 21 2024, 2:24 PM
mav added a comment to D44426: mpi3mr: Consider Diagnostic Fault Reset Success Beyond 0xF000 fault Code.

I don't have any chip documentation to know what is right here, so just wonder if unconditional printing a bunch of raw hex numbers is expected here. It feels mpi3mr_print_fault_info() is another candidate for mpi3mr_dprint().

Mar 21 2024, 2:15 PM
mav added inline comments to D44425: mpi3mr: Update consumerindex of admin and op reply queues after every 100 replies.
Mar 21 2024, 2:05 PM
mav accepted D44424: mpi3mr: Decrement per controller and per target IO counter post controller reset.
Mar 21 2024, 1:55 PM
mav added inline comments to D44423: mpi3mr: poll reply queue and add MPI3MR_DEV_REMOVE_HS_COMPLETED flag.
Mar 21 2024, 1:55 PM
mav added inline comments to D44423: mpi3mr: poll reply queue and add MPI3MR_DEV_REMOVE_HS_COMPLETED flag.
Mar 21 2024, 1:52 PM
mav added a comment to D44422: mpi3mr: Add controller state check before enabling PEL.

I am not a big fan of kernel printing something in response to arbitrary user requests, it makes logs messy. Is the error reporting to user is not enough here?

Mar 21 2024, 1:13 PM
mav accepted D44421: mpi3mr: Block devices persist despite being offlined during reset.
Mar 21 2024, 1:01 PM

Mar 18 2024

mav added a comment to D44404: [stable/14] zfs: fix assertion in dbuf.c.

Why not backport 506fe78c48 instead?

Mar 18 2024, 1:46 PM · ZFS

Mar 15 2024

mav added a comment to D44367: cam: Move temporary queue from stack to softc.

My only complaint is that it puts the queue into the same cache line as the main queue, that may be modified by writers. But if you really need it for debugging, it could be understood.

Mar 15 2024, 2:36 PM

Mar 6 2024

mav accepted D44210: nvme: Change devctl events for the controller.
Mar 6 2024, 2:16 PM

Mar 5 2024

mav added a comment to D44180: nvme: Give reset a chance to undo failure.

On failure we've already notified consumers that controller has failed. What will report it is back? And is there even a device to sent request IOCTL?

Mar 5 2024, 6:40 PM
mav added a comment to D44181: nvme_sim: Allow administrative commands when we're marked as failed.

If you say it helps I have no objections, but I see nvme_sim_controller_fail() destroying SIM, so I am not sure you actually get here.

Mar 5 2024, 6:34 PM
mav accepted D44213: nvme: Add SMART WARNING for persistent memory region.

I wonder if there are any namespace-specific events? I remember NVMe specs allow per-namespace SMART, but I don't remember much details now.

Mar 5 2024, 6:21 PM
mav added inline comments to D44210: nvme: Change devctl events for the controller.
Mar 5 2024, 6:17 PM
mav accepted D44209: nvme: split devctl out to its own function.
Mar 5 2024, 5:52 PM
mav added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

stable/13 has this patch
releng/13.2 doesn't have this patch (yet).

I'm not very familiar with FreeBSD's branching system... I see FreeBSD 13.3-RELEASE was released today, is this bug fix included?

Mar 5 2024, 5:32 PM · bhyve

Feb 27 2024

mav committed rG7c667affb7b0: CTL: Drop Format Device and Rigid Disk Geometry mode pages.
Feb 27 2024, 6:53 PM

Feb 5 2024

mav committed rG7393d37b1224: ntb_hw_plx: Workaround read-only scratchpad registers.
Feb 5 2024, 8:41 PM
mav committed rG825b7c222a6b: ntb_hw_plx: Workaround read-only scratchpad registers.
Feb 5 2024, 8:40 PM

Jan 27 2024

mav committed rG3883c6fbf232: ntb_hw_plx: Workaround read-only scratchpad registers.
Jan 27 2024, 10:29 PM

Jan 19 2024

mav committed rGe2b71e1490a3: mpi3mr: Minor tweak to task queue pausing (authored by imp).
Jan 19 2024, 5:19 PM
mav committed rG344cdef0ccd7: mpi3mr: Assume dma_hiaddr is BUS_SPACE_MAXADDR (authored by imp).
Jan 19 2024, 5:19 PM
mav committed rGac7d9eaf066b: mpi3mr: Replace can't happen DataLength == 0 with an assert (authored by imp).
Jan 19 2024, 5:19 PM
mav committed rG835db4182391: mpi3mr: Add firmware version (authored by imp).
Jan 19 2024, 5:19 PM
mav committed rG3b4d16889be5: mpi3mr: Trivial trailing white space reduction (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rGc3b67deaf514: mpi3mr: Honor the dma mask from IOCFacts (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rGfda7cc79aaf6: mpi3mr: Fix EINPROGRESS errors hanging the card (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rGac4f33d2cd37: mpi3mr: Cleaup setting of status in processing scsiio requests (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rG23a5782dc0c0: mpi3mr: Use template for main busdma tag..
Jan 19 2024, 5:18 PM
mav committed rG2d84c6e89435: mpi3mr: Make these bus_dmamap_load calls synchronous.
Jan 19 2024, 5:18 PM
mav committed rGc8afd30bdb6b: mpi3mr: Fix MAXPHYS usage.
Jan 19 2024, 5:18 PM
mav committed rGc351a6ec918e: mpi3mr: Only set callout_owned when we create a timeout (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rG3c12997a1c76: mpi3mr: Minor style fix (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rG54fa0d10f68c: mpi3mr: Reduce the scope of the reset_mutext (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rGe82c6e941e6a: mpi3mr: Remove unused fields in struct mpi3mr_cmd (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rG0d2cce768cbc: mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain (authored by imp).
Jan 19 2024, 5:18 PM
mav committed rG0e58c237cb32: iichid(4): Switch taskqueue to "fast".
Jan 19 2024, 5:10 PM
mav committed rG870bcb954ee3: iichid(4): Unify two taskqueue tasks.
Jan 19 2024, 5:10 PM
mav committed rGd6e6c02c29b1: iichid(4): Restore/increase sampling rate.
Jan 19 2024, 5:10 PM
mav committed rG4061a0e5b273: iicbb: Fix pause_sbt() arguments order.
Jan 19 2024, 5:10 PM
mav committed rG9f558e9f7dee: iichid(4): Improve idle sampling hysteresis.
Jan 19 2024, 5:10 PM
mav committed rG8d8f348c8fe7: ig4: Actively use FIFO thresholds.
Jan 19 2024, 5:10 PM
mav committed rG396e8e987adf: ig4: Fix FIFO depths detection.
Jan 19 2024, 5:10 PM
mav committed rG44fac9c0be90: ispfw(4): Update and add firmware (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 5:00 PM
mav committed rG4f30677080c3: ispfw(4): Update and add firmware (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:59 PM
mav committed rGbdc2003fc517: isp: Fix endianness conversion in isp_read_flash_data() (authored by markj).
Jan 19 2024, 4:57 PM
mav committed rG84f8cfcbe493: isp(4): Rework firmware handling/loading (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:57 PM
mav committed rG07dd91cb046b: isp(4): Style changes (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:57 PM
mav committed rG0a38059e24d4: isp(4): Remove redundant functions for reading data from FLT and flash (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:57 PM
mav committed rGde4c073977c9: isp(4): Use the FLT on all supported controllers (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:56 PM
mav committed rGa922b89834ef: isp(4): Add support to read contents of the FLT (flash layout table) (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:56 PM
mav committed rGf0275240dc3d: isp(4): Fix reading NVRAM contents for 28xx based devices (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:55 PM
mav committed rG6fdabe9b8df4: isp(4): Add support for QLogic 28xx devices (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:55 PM
mav committed rG8404f3e36bc5: isp: Remove unused variable. (authored by jhb).
Jan 19 2024, 4:54 PM
mav committed rG16f4d8fc14b6: isp: Fix endianness conversion in isp_read_flash_data() (authored by markj).
Jan 19 2024, 4:49 PM
mav committed rGd095e86f0517: isp(4): Rework firmware handling/loading (authored by Joerg.Pulz_frm2.tum.de).
Jan 19 2024, 4:49 PM
mav committed rG265a52fe6cd2: acpi_lid: Remove duplicate events.
Jan 19 2024, 4:40 PM
mav committed rG17a6b07e0839: iichid(4): Switch taskqueue to "fast".
Jan 19 2024, 4:40 PM