Page MenuHomeFreeBSD

mav (Alexander Motin)
User

Projects

User Details

User Since
Jun 3 2014, 6:27 PM (543 w, 21 h)

Recent Activity

Sat, Oct 26

mav added a comment to D47287: cam: Don't log invalid cdb errors.

I've never used it myself, so don't have a strong opinion, but as next step somebody will want to block reservation conflicts, then something else, and again and again...

Sat, Oct 26, 2:11 PM

Wed, Oct 23

mav accepted D47224: bhyve ahci: Improve robustness of TRIM handling.

Looks good to me. Thanks.

Wed, Oct 23, 2:20 PM

Mon, Oct 21

mav added inline comments to D47224: bhyve ahci: Improve robustness of TRIM handling.
Mon, Oct 21, 5:52 PM
mav added inline comments to D47224: bhyve ahci: Improve robustness of TRIM handling.
Mon, Oct 21, 4:43 PM

Mon, Oct 14

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

The xpt_done_td queues are used only for the non-MP safe things as well as I think for the error path, both of which are relatively rare.

Mon, Oct 14, 3:19 PM

Wed, Oct 2

mav accepted D46530: openzfs: Reduce local diffs.
Wed, Oct 2, 7:26 PM

Sep 26 2024

mav committed rGd89090334a32: ure(4): Add ID for LAN port in Thinkpad OneLink+ dock (authored by mav).
ure(4): Add ID for LAN port in Thinkpad OneLink+ dock
Sep 26 2024, 12:51 AM
mav committed rG8748daf670ee: ure(4): Add ID for LAN port in Thinkpad OneLink+ dock (authored by mav).
ure(4): Add ID for LAN port in Thinkpad OneLink+ dock
Sep 26 2024, 12:50 AM

Sep 19 2024

mav committed rGa1bb5bdb0ab6: ure(4): Add ID for LAN port in Thinkpad OneLink+ dock (authored by mav).
ure(4): Add ID for LAN port in Thinkpad OneLink+ dock
Sep 19 2024, 2:00 AM

Sep 11 2024

mav accepted D46247: Fix the ZFS sharenfs property for DNS names with '-'s in them.
Sep 11 2024, 2:48 PM

Aug 30 2024

mav accepted D46470: geom_disk: Print attachment in boot log like newbus.
Aug 30 2024, 5:27 PM
mav added a comment to D46469: virtio_blk: Populate d_attachment.

What do you both think of https://reviews.freebsd.org/P646 as a more systematic way of addressing this?

Aug 30 2024, 5:25 PM

Aug 29 2024

mav added a comment to D46470: geom_disk: Print attachment in boot log like newbus.

I suppose 3 printf's may cause garbled output if other printf's are used by something.

Aug 29 2024, 1:28 AM
mav accepted D46469: virtio_blk: Populate d_attachment.
Aug 29 2024, 1:24 AM
mav accepted D46468: geom_disk: Export attachment if present in XML config.

It seems BIO_GETATTR allows GEOM::attachment override. Though I am not saying it is very useful.

Aug 29 2024, 1:20 AM

Jul 21 2024

mav committed rG9746cb2197a1: nvmecontrol: Fix "Workloadd" typo (authored by mav).
nvmecontrol: Fix "Workloadd" typo
Jul 21 2024, 5:47 PM
mav committed rG908777f1c258: nvmecontrol: Fix "Workloadd" typo (authored by mav).
nvmecontrol: Fix "Workloadd" typo
Jul 21 2024, 5:47 PM

Jul 12 2024

mav committed rG6ac0f711ad9e: nvmecontrol: Fix "Workloadd" typo (authored by mav).
nvmecontrol: Fix "Workloadd" typo
Jul 12 2024, 3:38 PM

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 (authored by mav).
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 (authored by mav).
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).
Add some AMD device IDs.
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 (authored by mav).
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 (authored by mav).
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 (authored by mav).
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 (authored by mav).
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 (authored by mav).
libpmc: Import AMD Zen 4 PMU events
Apr 27 2024, 3:04 AM
mav committed rG75f1323c15cb: libpmc: Import AMD Zen 4 PMU events (authored by mav).
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 (authored by mav).
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 (authored by mav).
ahc/ahd: Fix target mode operation
Apr 17 2024, 1:40 PM
mav committed rGe48f7ff6a12c: ahc/ahd: Fix target mode operation (authored by mav).
ahc/ahd: Fix target mode operation
Apr 17 2024, 1:40 PM

Apr 10 2024

mav committed rGf1e4c095777d: ahc/ahd: Fix target mode operation (authored by mav).
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 (authored by mav).
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 (authored by mav).
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 (authored by mav).
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 (authored by mav).
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).
mpi3mr: Minor tweak to task queue pausing
Jan 19 2024, 5:19 PM
mav committed rG344cdef0ccd7: mpi3mr: Assume dma_hiaddr is BUS_SPACE_MAXADDR (authored by imp).
mpi3mr: Assume dma_hiaddr is BUS_SPACE_MAXADDR
Jan 19 2024, 5:19 PM
mav committed rGac7d9eaf066b: mpi3mr: Replace can't happen DataLength == 0 with an assert (authored by imp).
mpi3mr: Replace can't happen DataLength == 0 with an assert
Jan 19 2024, 5:19 PM
mav committed rG835db4182391: mpi3mr: Add firmware version (authored by imp).
mpi3mr: Add firmware version
Jan 19 2024, 5:19 PM
mav committed rG3b4d16889be5: mpi3mr: Trivial trailing white space reduction (authored by imp).
mpi3mr: Trivial trailing white space reduction
Jan 19 2024, 5:18 PM
mav committed rGc3b67deaf514: mpi3mr: Honor the dma mask from IOCFacts (authored by imp).
mpi3mr: Honor the dma mask from IOCFacts
Jan 19 2024, 5:18 PM
mav committed rGfda7cc79aaf6: mpi3mr: Fix EINPROGRESS errors hanging the card (authored by imp).
mpi3mr: Fix EINPROGRESS errors hanging the card
Jan 19 2024, 5:18 PM
mav committed rGac4f33d2cd37: mpi3mr: Cleaup setting of status in processing scsiio requests (authored by imp).
mpi3mr: Cleaup setting of status in processing scsiio requests
Jan 19 2024, 5:18 PM
mav committed rG23a5782dc0c0: mpi3mr: Use template for main busdma tag. (authored by mav).
mpi3mr: Use template for main busdma tag.
Jan 19 2024, 5:18 PM
mav committed rG2d84c6e89435: mpi3mr: Make these bus_dmamap_load calls synchronous (authored by mav).
mpi3mr: Make these bus_dmamap_load calls synchronous
Jan 19 2024, 5:18 PM
mav committed rGc8afd30bdb6b: mpi3mr: Fix MAXPHYS usage (authored by mav).
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).
mpi3mr: Only set callout_owned when we create a timeout
Jan 19 2024, 5:18 PM
mav committed rG3c12997a1c76: mpi3mr: Minor style fix (authored by imp).
mpi3mr: Minor style fix
Jan 19 2024, 5:18 PM
mav committed rG54fa0d10f68c: mpi3mr: Reduce the scope of the reset_mutext (authored by imp).
mpi3mr: Reduce the scope of the reset_mutext
Jan 19 2024, 5:18 PM
mav committed rGe82c6e941e6a: mpi3mr: Remove unused fields in struct mpi3mr_cmd (authored by imp).
mpi3mr: Remove unused fields in struct mpi3mr_cmd
Jan 19 2024, 5:18 PM
mav committed rG0d2cce768cbc: mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain (authored by imp).
mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain
Jan 19 2024, 5:18 PM
mav committed rG0e58c237cb32: iichid(4): Switch taskqueue to "fast" (authored by mav).
iichid(4): Switch taskqueue to "fast"
Jan 19 2024, 5:10 PM
mav committed rG870bcb954ee3: iichid(4): Unify two taskqueue tasks (authored by mav).
iichid(4): Unify two taskqueue tasks
Jan 19 2024, 5:10 PM
mav committed rGd6e6c02c29b1: iichid(4): Restore/increase sampling rate (authored by mav).
iichid(4): Restore/increase sampling rate
Jan 19 2024, 5:10 PM
mav committed rG4061a0e5b273: iicbb: Fix pause_sbt() arguments order (authored by mav).
iicbb: Fix pause_sbt() arguments order
Jan 19 2024, 5:10 PM