-
jclulow
huh
-
jclulow
I have never seen that before haha
-
jclulow
I think that all makes sense though
-
jclulow
it's sd, a SCSI disk, etc
-
jclulow
Did you find where in the code we emit the "is unformatted" message you got?
-
jclulow
How do we decide to print that out
-
neirac
jclulow is a pointer to a function 1 int (*op_ck_format)(); /* check format - mandatory */ ~/smartos-live/projects/illumos/usr/src/cmd/format/hardware_structs.h I'm checking where it points to
-
jclulow
Ah, that seems like a member of "struct ctlr_ops" in "cmd/format/hardware_structs.h"
-
neirac
-
jclulow
It's SCSI right
-
jclulow
-
jclulow
You could try something like:
-
jclulow
dtrace -x switchrate=1000hz -q -n 'pid$target::*_ck_format:return { printf("\nRETURN: %s() -> %d\n", probefunc, arg1); }' -c format
-
jclulow
to know for sure
-
alanc
mm.icann.org/pipermail/tz-announce/2023-March/000077.html - fyi for those with users who care about timezones in Egypt, Morocco, & Palestine as we hit the fun period where DST intersects with Ramadan
-
rmustacc
Thanks alanc, just saw that myself a little bit back.
-
jbk
unfortunately i don't have an NVMe device that supports namespaces, but IIUC, if multiple namespaces exist on an NVMe device, each namespace would show up as a separate disk in the os, right?
-
jbk
(assuming yes), is there an easy way to map the /dev/[r]dsk device back to the specific nvme device?
-
Woodstock
yes
-
Woodstock
you mean getting the instance number of the nvme device?
-
jbk
yeah -- basically if you have a /dev/[r]dsk name of an nvme device and need to do an nvme admin ioctl on it
-
jbk
since I can't experiment.. does each ns show up in /dev/[r]dsk with the same target, but different lun (d) values?
-
Woodstock
yes, thats the idea
-
jbk
ahh ok
-
Woodstock
but only usable namespaces will show up as /dev/[r]dsk
-
andyf
and, `nvmeadm -v list` shows unallocated namespaces, which I found useful for something recently
-
andyf
-
yuripv
hmmm, not different luns, but different targets, right?
-
Woodstock
hm
-
yuripv
jbk: also, if you have vmware hypervisor, "disks" attached to the same emulated nvme controller will show up as namespaces (not that you can manage them)
-
Woodstock
yes, maybe you're right. same controller number, different targets
-
sommerfeld
jbk:
code.illumos.org/c/illumos-gate/+/2624 patchset 3 is working for me even with -d sat,12. Thanks for fixing this!
-
fenix
→ CODE REVIEW 2624: 15366 ATA PASS-THROUGH (16) is broken (NEW) |
illumos.org/issues/15366
-
jclulow
jbk: to map to instances, look at: nvmeadm list -p -o instance,disk
-
jclulow
I believe
-
jclulow
We finally got a parseable mode recently
-
yuripv
likely -o namespace,disk, otherwise it lists e.g. nvme0:c2t1d0, nvme0:c2t2d0
-
jbk
sommerfeld: cool.. sorry about the initial goof up.. i thought I had retested that already.. but man between the SATL spec and the ATA spec.. soooo confusing (though hopefully the new code is a bit clearer with how things map)
-
jbk
(it doesn't help that ATA does stuff like 'well if the moon is waxing, then the value is in this field, but when it's waning the same semantic value is in this other field instead)
-
sommerfeld
I still think someone with real scsi and/or ATA experience should look at it, but, well, it's working..
-
jbk
yeah, I can wait (if we can find someone)... I'm running it on my home server
-
richlowe
possibly trisk?
-
richlowe
who I think might be at racktop still?
-
sommerfeld
jbk: the encoding reminds me a bit of PA-RISC immediate constant encoding. a 21-bit immediate value isn't just pasted into the instruction as is; it's instead sliced into 5 bitfields which are then shuffled around and pasted back together.
-
richlowe
ARM does this at times too
-
richlowe
but sparc also had unthinkably large immediates that.
-
richlowe
ARM also has bitfield magic that andyf had fun with in the disassembler, where they're sort of RLEd?
-
nbjoerg
ARM prefers constant islands
-
gitomat
[illumos-gate] 15495 sun_fc: void operator delete(void*) called -- Toomas Soome <tsoome⊙mc>
-
jbk
i never got to look at PA-RISC assembly.. just used to maintain some HP-UX systems
-
jbk
my recollection was despite them having heat sinks that'd make the biggest overclocker jealous, you breathed on them wrong and they'd fail due to heat damage