Page MenuHomeFreeBSD

ken (Ken Merry)
User

Projects

User Details

User Since
Jan 23 2015, 10:35 PM (514 w, 1 d)

Recent Activity

Tue, Nov 5

ken committed rG4c0c82355692: isp(4): Document support for new devices (authored by Joerg.Pulz_frm2.tum.de).
isp(4): Document support for new devices
Tue, Nov 5, 1:02 PM

Jan 3 2024

ken committed rG789a2b4e5c7d: camcontrol: add support for Toshiba drive firmware update (authored by ken).
camcontrol: add support for Toshiba drive firmware update
Jan 3 2024, 3:36 PM
ken committed rGce6c84abe6c2: camcontrol: add support for Toshiba drive firmware update (authored by ken).
camcontrol: add support for Toshiba drive firmware update
Jan 3 2024, 3:34 PM
ken committed rG658a9820b0bf: camcontrol: Add a sense subcommand (authored by ken).
camcontrol: Add a sense subcommand
Jan 3 2024, 3:32 PM
ken committed rG31a363933e9a: camcontrol: Add a sense subcommand (authored by ken).
camcontrol: Add a sense subcommand
Jan 3 2024, 2:49 PM

Dec 29 2023

ken committed rGcd95f18c477c: camcontrol: add support for Toshiba drive firmware update (authored by ken).
camcontrol: add support for Toshiba drive firmware update
Dec 29 2023, 7:26 PM

Dec 28 2023

ken committed rG40a492d38ee1: camcontrol: Add a sense subcommand (authored by ken).
camcontrol: Add a sense subcommand
Dec 28 2023, 9:24 PM
ken closed D43225: Add a sense subcommand to camcontrol(8).
Dec 28 2023, 9:24 PM
ken updated the diff for D43225: Add a sense subcommand to camcontrol(8).
Dec 28 2023, 9:00 PM
ken added inline comments to D43225: Add a sense subcommand to camcontrol(8).
Dec 28 2023, 8:59 PM
ken requested review of D43225: Add a sense subcommand to camcontrol(8).
Dec 28 2023, 8:20 PM

Dec 27 2023

ken accepted D43204: sa: Make sa_param_table[] const and static.

This should be fine, thanks!

Dec 27 2023, 7:55 PM
ken accepted D43203: sa: Check for errors from copyout().

Looks fine to me, thanks!

Dec 27 2023, 7:47 PM

Dec 20 2023

ken committed rG5ffcdc96ac71: mpr, mps: Establish busdma boundaries for memory pools (authored by ken).
mpr, mps: Establish busdma boundaries for memory pools
Dec 20 2023, 3:45 PM
ken committed rG504e85ade103: mpr, mps: Establish busdma boundaries for memory pools (authored by ken).
mpr, mps: Establish busdma boundaries for memory pools
Dec 20 2023, 3:44 PM

Dec 14 2023

ken committed rG9e6e28bb8ea8: Add IBM TS1170 density codes and specs. (authored by ken).
Add IBM TS1170 density codes and specs.
Dec 14 2023, 9:02 PM
ken committed rGa9262d053b63: Add IBM TS1170 density codes and specs. (authored by ken).
Add IBM TS1170 density codes and specs.
Dec 14 2023, 9:00 PM
ken committed rG264610a86e14: mpr, mps: Establish busdma boundaries for memory pools (authored by ken).
mpr, mps: Establish busdma boundaries for memory pools
Dec 14 2023, 8:17 PM

Dec 13 2023

ken added inline comments to D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.
Dec 13 2023, 7:21 PM
ken updated the diff for D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.

Use BUS_SPACE_MAXSIZE_32BIT+1 to represent the 4GB boundary instead of 0x100000000.

Dec 13 2023, 7:20 PM

Dec 12 2023

ken updated the summary of D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.
Dec 12 2023, 8:56 PM
ken updated the summary of D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.
Dec 12 2023, 8:55 PM
ken updated the summary of D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.
Dec 12 2023, 8:52 PM
ken requested review of D43008: Establish 4GB boundaries for busdma in the mpr(4) and mps(4) driver.
Dec 12 2023, 8:52 PM
ken committed rG70547544ce93: ocs_fc: IO timeout handling and error reporting fix. (authored by Ram Kishore Vegesna <ram@FreeBSD.org>).
ocs_fc: IO timeout handling and error reporting fix.
Dec 12 2023, 3:32 PM

Oct 31 2023

ken committed rG83823d063ab5: Add IBM TS1170 density codes and specs. (authored by ken).
Add IBM TS1170 density codes and specs.
Oct 31 2023, 7:30 PM
ken accepted D42411: cam: Make cam_debug macros atomic.

Good idea. Sbuf didn't exist back when the debug macros were written, this is an improvement.

Oct 31 2023, 1:36 PM
ken accepted D42402: cam/ata: Postpone removal of two compat sysctl until 15.

Looks good, thank you!

Oct 31 2023, 1:24 PM

Oct 30 2023

ken requested changes to D42402: cam/ata: Postpone removal of two compat sysctl until 15.

This makes it sound like unmapped I/O and rotating media support will be removed in FreeBSD 15.

Oct 30 2023, 3:25 PM

Oct 14 2023

ken accepted D42210: ctl: Use ctl_io_sbuf in ctl_process_done.
Oct 14 2023, 1:14 AM
ken accepted D42209: ctl: Make ctl_private.h more self-contained.
Oct 14 2023, 1:11 AM
ken accepted D42208: ctl: Make ctl_ha.h more self-contained.

Looks ok to me.

Oct 14 2023, 1:11 AM
ken accepted D42207: ctl: Make ctl_io.h more self-contained.
Oct 14 2023, 1:10 AM
ken accepted D42205: cam: Make <cam/scsi/scsi_all.h> more self-contained.

Looks good to me.

Oct 14 2023, 1:09 AM
ken accepted D42206: ctl: Make ctl.h more self-contained.

Looks fine to me.

Oct 14 2023, 1:08 AM

Jul 25 2023

ken added a comment to D41167: cam: Log errors from passthru commands.
In D41167#937442, @mav wrote:

My position traditionally was that user-space should handle and report its own errors by itself, but kernel should handle some system-wide. I agree that there may be some merits in this. Aside of reporting to devctl this should also properly re-broadcast Unit Attentions, which do not belong to specific command and so periph. As I can see, devctl should already receive device name to differentiate pass-through requests. I wonder it is could report some process identification too?

Jul 25 2023, 7:37 PM
ken accepted D41167: cam: Log errors from passthru commands.

I think this will be ok. It will give at least some avenue to report errors that go up via the pass(4) driver without additional console spamming.

Jul 25 2023, 7:33 PM

Jun 20 2023

ken accepted D40655: camdd: Remove set but unused variables..

Looks fine, thanks.

Jun 20 2023, 4:37 PM
ken accepted D40653: mt: Remove a set but unused variable..

Looks good to me, thanks.

Jun 20 2023, 4:35 PM

Apr 14 2023

ken accepted D39572: cam: Properly mask out the status bits to get completion code.

Looks ok to me.

Apr 14 2023, 2:24 PM

Dec 1 2022

ken accepted D37589: Allow any user to read the NFS stats, for example with nfsstat(1)..

This looks good to me.

Dec 1 2022, 9:35 PM

Oct 20 2022

ken committed rG2edc70060d1e: Fix mpr(4) panic during a firmware update. (authored by ken).
Fix mpr(4) panic during a firmware update.
Oct 20 2022, 3:03 PM
ken committed rG956f15e74d66: Fix mpr(4) panic during a firmware update. (authored by ken).
Fix mpr(4) panic during a firmware update.
Oct 20 2022, 3:00 PM

Oct 17 2022

ken committed rG11778fca4a83: Fix mpr(4) panic during a firmware update. (authored by ken).
Fix mpr(4) panic during a firmware update.
Oct 17 2022, 4:54 PM

Feb 25 2022

ken committed rG7c79905f67fd: Fix non-printable characters in NVMe model and serial numbers. (authored by ken).
Fix non-printable characters in NVMe model and serial numbers.
Feb 25 2022, 10:20 PM

Feb 18 2022

ken committed rG58df94091a3e: Fix non-printable characters in NVMe model and serial numbers. (authored by ken).
Fix non-printable characters in NVMe model and serial numbers.
Feb 18 2022, 9:34 PM
ken committed rGacbae1011ed2: Switch to using drive-supplied timeouts for the sa(4) driver. (authored by ken).
Switch to using drive-supplied timeouts for the sa(4) driver.
Feb 18 2022, 9:28 PM

Feb 10 2022

ken committed rG75900d1eb898: Switch to using drive-supplied timeouts for the sa(4) driver. (authored by ken).
Switch to using drive-supplied timeouts for the sa(4) driver.
Feb 10 2022, 1:42 PM

Feb 9 2022

ken committed rG3090d5045a1e: Fix non-printable characters in NVMe model and serial numbers. (authored by ken).
Fix non-printable characters in NVMe model and serial numbers.
Feb 9 2022, 10:13 PM
ken closed D33973: Fix non-printable characters in NVMe model and serial numbers..
Feb 9 2022, 10:13 PM

Jan 24 2022

ken updated the summary of D33973: Fix non-printable characters in NVMe model and serial numbers..
Jan 24 2022, 9:36 PM
ken updated the diff for D33973: Fix non-printable characters in NVMe model and serial numbers..

Create a cam_strvis_flag() function and use it in the NVMe code.

Jan 24 2022, 9:34 PM

Jan 20 2022

ken requested review of D33973: Fix non-printable characters in NVMe model and serial numbers..
Jan 20 2022, 8:18 PM
ken committed rG6d1a563281a9: Free UMA zones when a pass(4) instance goes away. (authored by ken).
Free UMA zones when a pass(4) instance goes away.
Jan 20 2022, 8:09 PM
ken committed rG2077f85a63f2: Free UMA zones when a pass(4) instance goes away. (authored by ken).
Free UMA zones when a pass(4) instance goes away.
Jan 20 2022, 8:07 PM

Jan 19 2022

ken added inline comments to D31809: Add tests for ses(4).
Jan 19 2022, 9:22 PM
ken accepted D31809: Add tests for ses(4).

I'm assuming this will need to run on a system with a SES device.

Jan 19 2022, 6:33 PM
ken accepted D31686: ses: minor cleanup.
Jan 19 2022, 6:29 PM

Jan 18 2022

ken committed rG6e8a2f040017: Update sa(4) comments and man page after review. (authored by ken).
Update sa(4) comments and man page after review.
Jan 18 2022, 6:59 PM
ken committed rGbcff64c54a74: Clarify loader tunable usage when tape drives arrive after boot. (authored by ken).
Clarify loader tunable usage when tape drives arrive after boot.
Jan 18 2022, 6:59 PM
ken closed D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 18 2022, 6:58 PM
ken committed rG5719b5a1bb64: Switch to using drive-supplied timeouts for the sa(4) driver. (authored by ken).
Switch to using drive-supplied timeouts for the sa(4) driver.
Jan 18 2022, 6:58 PM
ken accepted D33925: mpr/mps: Remove write-only flag and callout.
Jan 18 2022, 4:09 PM
ken accepted D33925: mpr/mps: Remove write-only flag and callout.

Hmm, I guess that was removed somewhere along the way. I haven't seen discovery hangs lately, so this should be ok.

Jan 18 2022, 4:00 PM
ken updated the diff for D33883: Switch to using drive-supplied timeouts for the sa(4) driver..

Update sa(4) comments and man page after review.

Jan 18 2022, 3:50 PM

Jan 17 2022

ken added inline comments to D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 17 2022, 5:53 PM

Jan 14 2022

ken added inline comments to D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 14 2022, 9:52 PM
ken added inline comments to D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 14 2022, 4:13 PM
ken updated the diff for D33883: Switch to using drive-supplied timeouts for the sa(4) driver..

Address documentation feedback, clarify that loader tunables will still be
used for tape drives that arrive after boot.

Jan 14 2022, 4:11 PM

Jan 13 2022

ken added inline comments to D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 13 2022, 10:15 PM
ken requested review of D33883: Switch to using drive-supplied timeouts for the sa(4) driver..
Jan 13 2022, 9:17 PM
ken committed rGca2a7262df5e: Free UMA zones when a pass(4) instance goes away. (authored by ken).
Free UMA zones when a pass(4) instance goes away.
Jan 13 2022, 3:57 PM

Jan 7 2022

ken added a comment to D33783: cam: Include more statuses as errors for CAM_IO_STATS.
In D33783#764114, @imp wrote:
In D33783#764113, @rew wrote:

Does it make sense to include any of these additional errors for the CAM_IO_STATS in sys/cam/nvme/nvme_da.c and sys/cam/ata/ata_da.c?

nvme_da doesn't have these errors. ata_da already lists CAM_ATA_STATUS_ERROR. I needed to add it to SCSI because we do a lot with ATA passthrough commands that might result in this. I'm on the fence about adding CAM_SMP_STATUS_ERROR to ata_da.c, like I was in adding it here. It's more of a management thing and I've not audited all the commands both send to see if it's possible... CAM_SEL_TIMEOUT is generated by the ata SIMs, so maybe it should be on the list there (nvme_sim doesn't generate this).

Jan 7 2022, 7:23 PM
ken added a comment to D33783: cam: Include more statuses as errors for CAM_IO_STATS.

What's the difference between CAM_CMD_TIMEOUT and CAM_SEL_TIMEOUT ?

Jan 7 2022, 6:28 PM

Nov 3 2021

ken accepted D32803: scsi_cd: Improve TOC access validation.
Nov 3 2021, 6:46 PM

May 6 2021

ken added a comment to D29941: gmultipath: make physpath distinct from the underlying providers'.

Yep. That's wrong. In 14.0-CURRENT, the function that sets physpath is ses_set_physpath, in cam/scsi/scsi_enc_ses.c.

May 6 2021, 9:34 PM
ken added a comment to D29941: gmultipath: make physpath distinct from the underlying providers'.
In D29941#676901, @mav wrote:

Excuse me if I am wrong, I don't have any multipath environment now to make sure, but I remember that SES on different expanders of dual-port backplane report different IDs.

Hm. I thought that CAM used the Enclosure Logical Identifier to generate the physpath. It *should* do that. But now that I double-check; you're right. CAM is using the Addressed Logical Unit SAS ID instead. Maybe it was a Spectra-specific patch to use the ELI that never got upstreamed. @ken could you please check how SpectraBSD generates the physical path? You can use commands like

sudo diskinfo -p /dev/da0
sudo sg_ses -p1 /dev/ses0 | grep -i 'enclosure.*logical'
sudo sg_inq -p di /dev/ses0
May 6 2021, 9:04 PM

Mar 4 2021

ken added a comment to D29017: libcam: Define depop structures and introduce scsi_wrap.

One minor comment.

Mar 4 2021, 5:02 PM

Mar 2 2021

ken added a comment to D29017: libcam: Define depop structures and introduce scsi_wrap.

The CDBs and filling functions look good. We should figure out what our user interface idiom is going to be for the scsi_wrap_* functions. Do we assume we have stdout/stderr, or do we provide those strings for the user to print in a way that works for the calling application?

Mar 2 2021, 8:52 PM
ken added a comment to D29018: camcontrol: depop command.

A couple of small nits but overall this looks good.

Mar 2 2021, 8:45 PM

Dec 15 2020

ken committed rS368675: MFC r368525:.
MFC r368525:
Dec 15 2020, 8:02 PM
ken committed rS368674: MFC r368525:.
MFC r368525:
Dec 15 2020, 7:59 PM

Dec 13 2020

ken committed R9:e1f4cd6febc6: *** empty log message *** (authored by ken).
*** empty log message ***
Dec 13 2020, 8:02 PM
ken committed R9:a99230f7e176: Yeah, pass the pointy cap for my first commit. I added myself to (authored by ken).
Yeah, pass the pointy cap for my first commit. I added myself to
Dec 13 2020, 8:02 PM
ken committed R9:c3b0329b2362: Add Hans Huebner <hans@artcom.de> for his modifcations to the CAM changer (authored by ken).
Add Hans Huebner <hans@artcom.de> for his modifcations to the CAM changer
Dec 13 2020, 8:02 PM
ken committed R9:f3af8f2c5e40: Update the list of currently supported SCSI controllers to reflect reality. (authored by ken).
Update the list of currently supported SCSI controllers to reflect reality.
Dec 13 2020, 7:55 PM
ken committed R9:5d7e4ea3613d: Add my key. (authored by ken).
Add my key.
Dec 13 2020, 7:27 PM
ken committed R9:f516817614fa: Document __FreeBSD_version number 900026. (The addition of the (authored by ken).
Document __FreeBSD_version number 900026. (The addition of the
Dec 13 2020, 5:26 PM

Dec 10 2020

ken committed rS368525: Add the LTO-9 density code to libmt and the mt(1) man page..
Add the LTO-9 density code to libmt and the mt(1) man page.
Dec 10 2020, 9:06 PM

Jul 16 2020

ken committed rS363260: Hold the mutex when releasing a callout..
Hold the mutex when releasing a callout.
Jul 16 2020, 8:43 PM

Jun 26 2020

ken requested review of D25476: Fix use after free panic and state transitions in mps(4) and mpr(4).
Jun 26 2020, 8:53 PM · cam

Apr 21 2020

ken added a comment to D24489: Don't pass a user buffer pointer as the data pointer in a CCB..

The problem isn't the existence of bi-directional commands, it's that DIR_BOTH == 0, not an OR'ing of DIR_IN and DIR_OUT, as would be expected.

Apr 21 2020, 6:14 PM
ken added inline comments to D24489: Don't pass a user buffer pointer as the data pointer in a CCB..
Apr 21 2020, 6:06 PM

Mar 10 2020

ken accepted D24008: Various cleanups: remove unused / under-used stuff..

I think this is ok. Do we need to do anything for compatibility?

Mar 10 2020, 9:16 PM

Feb 28 2020

ken added a comment to D23852: scsi_scan_bus: ignore Initiator ID for SAS transport in.
In D23852#524939, @mav wrote:

I am OK with that, but I think it can be too easy to forget, same as wrong value is set without understanding now. I am thinking whether introduction of some special constant value for initiator_id equal to UINT_MAX or something could be more explicit?

Feb 28 2020, 3:50 PM
ken added a comment to D23852: scsi_scan_bus: ignore Initiator ID for SAS transport in.
In D23852#524775, @mav wrote:
In D23852#524734, @avg wrote:

I would expect that if an initiator can also be a target then its target ID -- which, if I understand correctly, you suggest to be treated as an initiator ID -- would be from a different namespace than IDs of its targets.

Why? Think about it as parallel SCSI or loop FC, where each port can be both initiator and target, and have ID from some namespace. That is how initiator_id originally appeared in CAM, as I understand. We actually had some parallel SCSI target support in base, it just died with the hardware.

That is, I think that for a SAS initiator it is impossible to see itself as a target (where a target ID is typically also some made up number derived from the actual SAS topology).

I would not call it impossible. It is just not very useful. For QLogic FC IIRC it partially even works, but I prefer it not to rather then try and fail.

Also, about your other point, it's not hard to fake an initiator ID in every SAS SIM and all of them (have to) do it already.
But I do not see a reason to keep doing that when it does not have any real use except for introducing occasional bugs.

As I have told it works reasonably for FC, it was reasonable for SPI, and I see no reason why it can not for other protocols, that would justify protocol specifics into the shared code.

@ken , you've been around the target code for longer time, what do you think?

Feb 28 2020, 3:20 PM

Dec 17 2019

ken committed rS355863: MFC r355299:.
MFC r355299:
Dec 17 2019, 8:30 PM
ken committed rS355862: MFC r355299:.
MFC r355299:
Dec 17 2019, 8:30 PM

Dec 2 2019

ken committed rS355299: Fix a hang introduced in r351599..
Fix a hang introduced in r351599.
Dec 2 2019, 7:57 PM

Nov 11 2019

ken accepted D22295: Fix panic message to indicate right action that was improper..

Good catch, thank you!

Nov 11 2019, 3:44 PM