Page MenuHomeFreeBSD
Feed Advanced Search

Dec 23 2023

mav committed rGa74df3f96e3e: iicbb: Fix pause_sbt() arguments order (authored by mav).
iicbb: Fix pause_sbt() arguments order
Dec 23 2023, 11:59 PM
mav committed rG129c3aa4b231: Use xpt_path_sbuf() in few drivers (authored by mav).
Use xpt_path_sbuf() in few drivers
Dec 23 2023, 4:38 AM
mav committed rG473dc8e1ba2f: vmstat: Rely on libxo for numbers humanization (authored by mav).
vmstat: Rely on libxo for numbers humanization
Dec 23 2023, 4:34 AM
mav committed rGbf5635d594cb: vmstat: Let libxo properly humanize -m numbers (authored by mav).
vmstat: Let libxo properly humanize -m numbers
Dec 23 2023, 4:34 AM
mav committed rGb65b88dc3af4: vmstat: Make disks reporting some more reasonable (authored by mav).
vmstat: Make disks reporting some more reasonable
Dec 23 2023, 4:34 AM
mav committed rGb0b4dedfa163: vmstat: Improve -z formatting for large names/values (authored by mav).
vmstat: Improve -z formatting for large names/values
Dec 23 2023, 4:34 AM
mav committed rG8c86b9812403: iichid(4): Improve idle sampling hysteresis (authored by mav).
iichid(4): Improve idle sampling hysteresis
Dec 23 2023, 4:11 AM

Dec 22 2023

mav resigned from D43167: virtio-network: no bail-out on CWR even without host support.
Dec 22 2023, 2:44 PM

Dec 21 2023

mav accepted D43146: geom: Report copyout() errors in g_ctl_ioctl_ctl().
Dec 21 2023, 2:51 PM

Dec 20 2023

mav accepted D43130: ses: Add error checking for copyout() calls.
Dec 20 2023, 3:43 PM

Dec 18 2023

mav accepted D43090: nvme: Initialize HMB entries before loading them into the controller.
Dec 18 2023, 10:44 PM

Dec 9 2023

mav committed rGb1d30a83af2b: uma: Micro-optimize memory trashing (authored by mav).
uma: Micro-optimize memory trashing
Dec 9 2023, 2:34 AM
mav committed rG58f5c260a2e6: uma: Micro-optimize memory trashing (authored by mav).
uma: Micro-optimize memory trashing
Dec 9 2023, 2:34 AM

Dec 8 2023

mav committed rG1f36ca5de596: vmstat: Rely on libxo for numbers humanization (authored by mav).
vmstat: Rely on libxo for numbers humanization
Dec 8 2023, 2:25 AM

Dec 7 2023

mav committed rG598d1ac85e87: vmstat: Let libxo properly humanize -m numbers (authored by mav).
vmstat: Let libxo properly humanize -m numbers
Dec 7 2023, 4:13 AM

Dec 6 2023

mav committed rG6f048e713043: vmstat: Improve -z formatting for large names/values (authored by mav).
vmstat: Improve -z formatting for large names/values
Dec 6 2023, 8:02 PM
mav committed rGf035d56e711d: CAM: Use sbuf_new_for_sysctl() in more places (authored by mav).
CAM: Use sbuf_new_for_sysctl() in more places
Dec 6 2023, 3:37 PM
mav committed rG3a8271dc1d77: CAM: Remove return value from xpt_path_sbuf() (authored by mav).
CAM: Remove return value from xpt_path_sbuf()
Dec 6 2023, 3:37 PM

Nov 30 2023

mav accepted D42832: EN for OpenZFS data corruption issue.
Nov 30 2023, 3:48 PM

Nov 29 2023

mav accepted D42832: EN for OpenZFS data corruption issue.
Nov 29 2023, 6:10 PM
mav added inline comments to D42832: EN for OpenZFS data corruption issue.
Nov 29 2023, 3:05 PM

Nov 27 2023

mav added a comment to D42781: zfs: default zfs_dmu_offset_next_sync to 0 to avoid data corruption.

It may reduce probability, but it does not fix the problem, plus it makes lseek() to lie, that may or may not be good, depending on situation. I don't think this worth extra activity right now if https://github.com/openzfs/zfs/pull/15571, hopefully fixing the issue, land next days.

Nov 27 2023, 5:52 PM

Nov 25 2023

mav committed rGc3d7d7798218: iostat: Restore lost spaces after tout (authored by mav).
iostat: Restore lost spaces after tout
Nov 25 2023, 12:35 AM
mav committed rG7826693aa546: iostat: Tune formatting for higher disk speeds (authored by mav).
iostat: Tune formatting for higher disk speeds
Nov 25 2023, 12:35 AM

Nov 23 2023

mav committed rG8c4ee0b22c98: Use xpt_path_sbuf() in few drivers (authored by mav).
Use xpt_path_sbuf() in few drivers
Nov 23 2023, 4:30 PM
mav committed rGa2bb07585b56: ktls: Remove unneeded vm/uma_dbg.h include (authored by mav).
ktls: Remove unneeded vm/uma_dbg.h include
Nov 23 2023, 3:49 PM

Nov 22 2023

mav committed rG519b24f02968: CAM: Replace random sbuf_printf() with cheaper cat/putc. (authored by mav).
CAM: Replace random sbuf_printf() with cheaper cat/putc.
Nov 22 2023, 11:05 PM
mav committed rG0a7139485ccb: Replace random sbuf_printf() with cheaper cat/putc. (authored by mav).
Replace random sbuf_printf() with cheaper cat/putc.
Nov 22 2023, 10:28 PM
mav committed rG1b44079584dc: CAM: Use sbuf_new_for_sysctl() in more places (authored by mav).
CAM: Use sbuf_new_for_sysctl() in more places
Nov 22 2023, 8:34 PM
mav committed rG6332e0f1a4b3: CAM: Remove return value from xpt_path_sbuf() (authored by mav).
CAM: Remove return value from xpt_path_sbuf()
Nov 22 2023, 8:17 PM

Nov 20 2023

mav added a comment to D42672: Fix ZFS so that it sets mnt_exjail for snapshot automounts.

@rmacklem Yes, you should open PR in OpenZFS git. We are trying to keep FreeBSD ZFS code in sync with upstream, allowing out of the base builds. But considering you also extend FreeBSD KPI, I guess the process should include first extending the KPI and bumping FreeBSD version, and then opening upstream PR ifdef'ing that version, since the same upstream ZFS sources are expected to work on any FreeBSD version starting from 12.2 and up.

Nov 20 2023, 1:10 AM

Nov 17 2023

mav committed rG2ac9cecac6ad: Fix typo in previous d282baddb0b02, breaking DTrace. (authored by mav).
Fix typo in previous d282baddb0b02, breaking DTrace.
Nov 17 2023, 5:43 PM

Nov 16 2023

mav committed rG3aebcb9ecba7: iostat: Restore lost spaces after tout (authored by mav).
iostat: Restore lost spaces after tout
Nov 16 2023, 4:47 AM
mav committed rGd282baddb0b0: Add interface NVME to devstat (authored by mav).
Add interface NVME to devstat
Nov 16 2023, 4:14 AM
mav committed rG7b21c447fb7b: vmstat: Make disks reporting some more reasonable (authored by mav).
vmstat: Make disks reporting some more reasonable
Nov 16 2023, 4:00 AM

Nov 15 2023

mav accepted D42539: mpi3mr: Reduce the scope of the reset_mutext.
Nov 15 2023, 10:26 PM
mav added inline comments to D42543: mpi3mr: Fix EINPROGRESS errors hanging the card.
Nov 15 2023, 10:19 PM
mav accepted D42543: mpi3mr: Fix EINPROGRESS errors hanging the card.

But I am still not getting sense of remaining scsiio_req->DataLength == 0 check.

Nov 15 2023, 9:47 PM
mav accepted D42588: mpi3mr: Add firmware version.

Was I looking grumpy? I didn't mean to, sorry if so.

Nov 15 2023, 9:44 PM
mav added a comment to D42539: mpi3mr: Reduce the scope of the reset_mutext.

This version still may go to sleep with MPI3MR_FLAGS_SHUTDOWN flag set, that is suboptimal.

Nov 15 2023, 8:17 PM
mav added a comment to D42537: mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain.

@jhb Won't the block before drain cause deadlock? At least that is how I read the man page.

Nov 15 2023, 4:37 PM
mav added inline comments to D42543: mpi3mr: Fix EINPROGRESS errors hanging the card.
Nov 15 2023, 4:29 PM
mav added inline comments to D42588: mpi3mr: Add firmware version.
Nov 15 2023, 2:56 PM
mav accepted D42541: mpi3mr: Only set callout_owned when we create a timeout.

This patch looks OK to me, but I generally have difficulties to understand why we need this callout_owner flag. callout_stop() should not be a reason. I am just not sure about semantics of mpi3mr_flush_io().

Nov 15 2023, 2:51 PM
mav added inline comments to D42539: mpi3mr: Reduce the scope of the reset_mutext.
Nov 15 2023, 2:41 PM
mav accepted D42537: mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain.

I guess the idea could be not try to handle events while resetting. I wonder if we could block new events before calling mpi3mr_cleanup_event_taskq(), unless we do it already.

Nov 15 2023, 2:38 PM
mav abandoned D42604: mpi3mr: Fix major DMA handling bugs.

Abandoning this review in favor of @imp ones.

Nov 15 2023, 12:28 AM
mav accepted D42588: mpi3mr: Add firmware version.
Nov 15 2023, 12:23 AM
mav accepted D42559: mpi3mr: Honor the dma mask from IOCFacts.
Nov 15 2023, 12:20 AM
mav added inline comments to D42543: mpi3mr: Fix EINPROGRESS errors hanging the card.
Nov 15 2023, 12:14 AM
mav accepted D42542: mpi3mr: Cleaup setting of status in processing scsiio requests.
Nov 15 2023, 12:01 AM

Nov 14 2023

mav accepted D42541: mpi3mr: Only set callout_owned when we create a timeout.

Makes sense, but while there I wonder what is the SBT_1S * 90 timeout? Why not the value in CCB received from CAM? Is it something else?

Nov 14 2023, 11:59 PM
mav added a comment to D42539: mpi3mr: Reduce the scope of the reset_mutext.

The lock seems should protect not only msleep(), that is indeed pointless, but also both MPI3MR_FLAGS_SHUTDOWN accesses and also wakeup(&sc->watchdog_chan) in mpi3mr_pci_detach(). Otherwise the thread may not exit until the timeout expiration, that is a waste of time.

Nov 14 2023, 11:53 PM
mav accepted D42540: mpi3mr: Minor style fix.
Nov 14 2023, 11:53 PM
mav accepted D42538: mpi3mr: Remove unused fields in struct mpi3mr_cmd.

I have no clue where are they are coming from, it if not needed -- sure, axe them out.

Nov 14 2023, 11:46 PM
mav added a comment to D42537: mpi3mr: Don't hold fwevt_lock over call to taskqueue_drain.

Mutex is definitely wrong there, and I think I actually hit the panic on it on one of just several reboots, but I wonder if something needs to protect from task addition between the drain and block, if it is important.

Nov 14 2023, 11:44 PM
mav added a comment to D42607: mpi3mr: Use template for main busdma tag..

Would be nice to change all tags that way, but this was just required the change any way.

Nov 14 2023, 11:22 PM
mav accepted D42607: mpi3mr: Use template for main busdma tag..
Nov 14 2023, 11:21 PM
mav accepted D42606: mpi3mr: Make these bus_dmamap_load calls synchronous.
Nov 14 2023, 11:19 PM
mav accepted D42605: mpi3mr: Fix MAXPHYS usage.
Nov 14 2023, 11:18 PM
mav added a comment to D42604: mpi3mr: Fix major DMA handling bugs.

I also suspect that most of bus_dmamem_alloc() calls could use BUS_DMA_WAITOK, but I haven't looked on the driver locking yet.

Nov 14 2023, 9:28 PM
mav updated the diff for D42604: mpi3mr: Fix major DMA handling bugs.

Add BUS_DMA_NOWAIT to bus_dmamap_load() with mpi3mr_memaddr_cb() callback. They by definition must be synchronous.

Nov 14 2023, 9:25 PM
mav requested review of D42604: mpi3mr: Fix major DMA handling bugs.
Nov 14 2023, 8:57 PM
mav committed rG35372e305863: nvme: Introduce longer timeouts for admin queue (authored by mav).
nvme: Introduce longer timeouts for admin queue
Nov 14 2023, 12:59 PM
mav committed rG7ab9e36fc544: nvme: Introduce longer timeouts for admin queue (authored by mav).
nvme: Introduce longer timeouts for admin queue
Nov 14 2023, 12:58 PM

Nov 12 2023

mav accepted D42550: busdma: On systmes that use subr_busdma_bounce, measure deferred time.

It looks OK to me, except getsbinuptime() by default gives a millisecond precision, not microsecond. Not a huge deal probably. Should average over time if it happen often.

Nov 12 2023, 2:12 AM

Nov 10 2023

mav committed rG105c7c4b8dce: iostat: Tune formatting for higher disk speeds (authored by mav).
iostat: Tune formatting for higher disk speeds
Nov 10 2023, 11:41 PM
mav committed rGf0fa40867d1d: Fix build on powerpc after previous commit. (authored by mav).
Fix build on powerpc after previous commit.
Nov 10 2023, 2:23 AM
mav committed rG88770f0c6971: mpsutil: Add higher PCIe speeds. (authored by mav).
mpsutil: Add higher PCIe speeds.
Nov 10 2023, 12:58 AM
mav committed rG68c2e57d0043: mpsutil: Add higher PCIe speeds. (authored by mav).
mpsutil: Add higher PCIe speeds.
Nov 10 2023, 12:58 AM
mav committed rGa03c23931eec: uma: Improve memory modified after free panic messages (authored by mav).
uma: Improve memory modified after free panic messages
Nov 10 2023, 12:57 AM

Nov 9 2023

mav committed rG1f8a5187ffdd: ktls: Remove unneeded vm/uma_dbg.h include (authored by mav).
ktls: Remove unneeded vm/uma_dbg.h include
Nov 9 2023, 6:55 PM
mav committed rG7c566d6cfc7b: uma: Micro-optimize memory trashing (authored by mav).
uma: Micro-optimize memory trashing
Nov 9 2023, 6:22 PM

Nov 6 2023

mav closed D42454: nvme: Introduce longer timeouts for admin queue.
Nov 6 2023, 4:12 PM
mav committed rG8d6c0743e36e: nvme: Introduce longer timeouts for admin queue (authored by mav).
nvme: Introduce longer timeouts for admin queue
Nov 6 2023, 4:12 PM
mav added a comment to D42454: nvme: Introduce longer timeouts for admin queue.

After more experiments I found that my problem is really caused by false timeout, just 60 seconds may still be not enough. It seems that first 1.5 minutes after hot-plug the SSD is doing some sort of internal initialization and can not process the namespace delete command, postponing it, that causes the timeout. Timeout increase to couple minutes seems to fix the issue. Increase to 60 seconds at least reduces the time frame after hot-plug when the issue is reproducible.

Nov 6 2023, 4:00 PM

Nov 5 2023

mav added a comment to D42454: nvme: Introduce longer timeouts for admin queue.

I've found that increased timeout does not really help the CD8 SSDs, so I'll continue looking. Though I still think that coherency with Linux should be good.

Nov 5 2023, 10:46 PM

Nov 4 2023

mav committed rGc2588f5e066b: stand/zfs: Remove one more read-compatible feature (authored by mav).
stand/zfs: Remove one more read-compatible feature
Nov 4 2023, 5:08 PM
mav committed rG939a62d673e6: stand/zfs: Remove read-compatible features (authored by mav).
stand/zfs: Remove read-compatible features
Nov 4 2023, 4:40 PM

Nov 3 2023

mav committed rG7bca09e2bb7f: mpsutil: Add higher PCIe speeds. (authored by mav).
mpsutil: Add higher PCIe speeds.
Nov 3 2023, 3:52 PM
mav requested review of D42454: nvme: Introduce longer timeouts for admin queue.
Nov 3 2023, 2:57 PM

Oct 31 2023

mav accepted D42411: cam: Make cam_debug macros atomic.
Oct 31 2023, 6:18 PM
mav added inline comments to D42411: cam: Make cam_debug macros atomic.
Oct 31 2023, 2:31 PM
mav added inline comments to D42411: cam: Make cam_debug macros atomic.
Oct 31 2023, 2:22 PM

Oct 30 2023

mav committed rGf969fb53d873: Add some Intel ICH10 PCI IDs. (authored by dmitryluhtionov_gmail.com).
Add some Intel ICH10 PCI IDs.
Oct 30 2023, 2:40 PM
mav committed rG05d1c205383b: Add IDs for Intel BayTrail SATA. (authored by dmitryluhtionov_gmail.com).
Add IDs for Intel BayTrail SATA.
Oct 30 2023, 1:59 PM

Oct 19 2023

mav accepted D42211: ZFS: Set spa_ccw_fail_time=0 when expanding vdev..

I have no objections to commit this directly for the release. But to upstream I would commit a bigger patch.

Oct 19 2023, 1:33 PM

Oct 14 2023

mav added a comment to D42211: ZFS: Set spa_ccw_fail_time=0 when expanding vdev..

@cperciva Please open PR on the OpenZFS github first, so that more people could review it. After being merged there it will be merged into FreeBSD.

Oct 14 2023, 5:26 PM

Oct 10 2023

mav accepted D41991: Enable block cloning by default.
Oct 10 2023, 1:51 PM · ZFS

Oct 3 2023

mav committed rG2ed56a7bfe8d: Untie strchrnul() from gdb. (authored by mav).
Untie strchrnul() from gdb.
Oct 3 2023, 2:08 PM
mav committed rG31b1ceddb1d3: Untie strchrnul() from gdb. (authored by mav).
Untie strchrnul() from gdb.
Oct 3 2023, 2:08 PM

Sep 27 2023

mav added inline comments to D41991: Enable block cloning by default.
Sep 27 2023, 2:25 PM · ZFS
mav added a comment to D41991: Enable block cloning by default.
In D41991#957622, @mjg wrote:

for example there was panic under load when running poudriere, i don't know if that is fixed

Sep 27 2023, 2:20 PM · ZFS
mav added a comment to D41991: Enable block cloning by default.

@mjg Does any specific bug come to your mind?

Sep 27 2023, 2:05 PM · ZFS

Sep 24 2023

mav committed rG2373e704aa1a: Untie strchrnul() from gdb. (authored by mav).
Untie strchrnul() from gdb.
Sep 24 2023, 3:19 AM

Sep 23 2023

mav committed rGf80babf906b7: kern_sysctl: Make name2oid() non-destructive to the name (authored by mav).
kern_sysctl: Make name2oid() non-destructive to the name
Sep 23 2023, 4:24 PM

Sep 12 2023

mav accepted D41818: Fix zfsd with the device_removal pool feature..
Sep 12 2023, 1:39 PM
mav added a comment to D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.

The patch I'm working on also does the latter. With a reduced buffer size, I'm confident that we can have less latency at a 4ms interval than currently at 2ms. I think that would make 4ms an acceptable default for everybody.

Sep 12 2023, 12:42 AM · multimedia

Sep 4 2023

mav added a comment to D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.

I didn't promise it to be easy, but I think USB transfer size should be as close to sound(4) fragment size, if it can't be equal, as for other sound cards.

Sep 4 2023, 12:12 AM · multimedia

Sep 3 2023

mav added a comment to D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.

As I can see, uaudio_buffer_ms is primarily used to set intr_frames variable. I haven't dug deep, but looks like it controls the size of individual USB transfer, which I suppose affects USB controller interrupt rate, or at very least the rate of its DMA transfers. Frequent DMA transfers may prevent deep sleeps on CPU package-level. Frequent interrupts in addition wake up at least one CPU core. It all burns a lot of power, that may be critical for laptops and embedded systems, while not every application require so low latency. I generally don't like tunables, and I would be happy to remove this one, but I don't like the idea of getting 1KHz of USB interrupts for every sound application. Sound subsystem already has its own concept of buffer sizes and latency control. Can't those values be reused here without additional knobs to only have level of overhead required by specific application?

Sep 3 2023, 1:58 PM · multimedia