Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2019 19:06:32 +0100
From:      <driesm.michiels@gmail.com>
To:        "'Julian Elischer'" <julian@freebsd.org>, "'Andriy Gapon'" <avg@FreeBSD.org>, <freebsd-hackers@freebsd.org>
Subject:   RE: Getting jedec_dimm to work
Message-ID:  <000501d59596$169e16f0$43da44d0$@gmail.com>
In-Reply-To: <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org>
References:  <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart message in MIME format.

------=_NextPart_000_0006_01D5959E.7862CD10
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

> On 11/6/19 3:24 PM, Andriy Gapon wrote:
> > On 06/11/2019 20:32, driesm.michiels@gmail.com wrote:
> >> Hi hackers mailing list,
> >>
> >>
> >>
> >> I'm playing around with jedec_dimm to pick up my memory modules so =
I
> >> can monitor temperature and read information from the SPD.
> >>
> >> Although I'm kind of stuck at the point where I am as there really
> >> should not be anything more to it.
> > Are you sure that your DIMMs have the temperature sensor?

No but they do have an SPD so that=E2=80=99s the minimal information I =
would expect to see.

> > Are you sure that the DIMMs are connected to smbus0?
> > Do you have an smbus driver attached at all?
> >
> > A bit more information about your hardware and kernel configuration
> would help.

Dmesg attached, see below for a summarized answer.

> > It is typical to share a dmesg at least.
>=20
> Expanding on what Andriy said, a "hint" is information from the =
configuration
> files TO a driver as to where to look for something, and not a =
confirmation
> that it found it.

Honestly, I kinda *assumed* it was a common interface used on every =
motherboard.
This seems a *very* wrong assumption, as I just went through my dmesg =
and I didn't see any smbus getting detected..
I guess the driver won't work without one? Or is it possible to get the =
driver attached over another bus/interface that my system has?
=20
> >> ATM I load the module through kld_list in rc.conf and have the
> >> following in my device.hints as suggested in the man pages:
> >>
> >>
> >>
> >> hint.jedec_dimm.0.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.0.addr=3D"0xa0"
> >>
> >> hint.jedec_dimm.1.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.1.addr=3D"0xa2"
> >>
> >> hint.jedec_dimm.2.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.2.addr=3D"0xa4"
> >>
> >> hint.jedec_dimm.3.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.3.addr=3D"0xa6"
> >>
> >> hint.jedec_dimm.4.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.4.addr=3D"0xa8"
> >>
> >> hint.jedec_dimm.5.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.5.addr=3D"0xaA"
> >>
> >> hint.jedec_dimm.6.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.6.addr=3D"0xaC"
> >>
> >> hint.jedec_dimm.7.at=3D"smbus0"
> >>
> >> hint.jedec_dimm.7.addr=3D"0xaE"
> >>
> >>
> >>
> >> Although when rebooting nothing gets detected/reported or printed =
on
> >> the console.
> >>
> >> Is it possible that it does not work through kld_list or should it
> >> not matter, if so why is that? Just curious =3D)
> >>
> >
> >


------=_NextPart_000_0006_01D5959E.7862CD10
Content-Type: application/octet-stream;
	name="dmesg.today"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="dmesg.today"

---<<BOOT>>---
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-STABLE r354128 VADOS amd64
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on =
LLVM 8.0.1)
VT(efifb): resolution 1024x768
Skipping TSC calibration since no legacy devices reported by FADT and =
CPUID works
CPU: Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz (3500.00-MHz K8-class =
CPU)
  Origin=3D"GenuineIntel"  Id=3D0x506e3  Family=3D0x6  Model=3D0x5e  =
Stepping=3D3
  =
Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  =
Features2=3D0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,S=
SSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDL=
T,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=3D0x121<LAHF,ABM,Prefetch>
  Structured Extended =
Features=3D0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INV=
PCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  Structured Extended Features3=3D0x9c000000<IBPB,STIBP,L1DFL,SSBD>
  XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  =3D 68719476736 (65536 MB)
avail memory =3D 66755768320 (63663 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119 on motherboard
Launching APs: 1 3 4 6 2 5 7
Timecounter "TSC-low" frequency 1750000000 Hz quality 1000
random: entropy device external interface
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
kbd0 at kbdmux0
000.000041 [4336] netmap_init               netmap: loaded module
nexus0
efirtc0: <EFI Realtime Clock> on motherboard
efirtc0: registered as a time-of-day clock, resolution 1.000000s
cryptosoft0: <software crypto> on motherboard
acpi0: <ALASKA A M I > on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 24000000 Hz quality 950
Event timer "HPET" frequency 24000000 Hz quality 550
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
mpr0: <Avago Technologies (LSI) SAS3008> port 0xe000-0xe0ff mem =
0xdf440000-0xdf44ffff,0xdf400000-0xdf43ffff irq 16 at device 0.0 on pci1
mpr0: Firmware: 14.00.00.00, Driver: 23.00.00.00-fbsd
mpr0: IOCCapabilities: =
7a85c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,MSIXInde=
x,HostDisc,FastPath,RDPQArray>
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem =
0xde000000-0xdeffffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
xhci0: <Intel Sunrise Point USB 3.0 controller> mem =
0xdf720000-0xdf72ffff irq 16 at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
pci0: <mass storage, SATA> at device 23.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xdf600000-0xdf607fff irq =
16 at device 0.0 on pci2
xhci1: 32 bytes context size, 64-bit DMA
xhci1: Unable to map MSI-X table=20
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci3: <ACPI PCI bus> on pcib3
igb0: <Intel(R) PRO/1000 PCI-Express Network Driver> mem =
0xdf100000-0xdf1fffff,0xdf200000-0xdf203fff irq 18 at device 0.0 on pci3
igb0: Using 1024 TX descriptors and 1024 RX descriptors
igb0: Using 4 RX queues 4 TX queues
igb0: Using MSI-X interrupts with 5 vectors
igb0: Ethernet address: a0:36:9f:cd:7d:e7
igb0: netmap queues/slots: TX 4/1024, RX 4/1024
pcib4: <ACPI PCI-PCI bridge> irq 16 at device 29.0 on pci0
pci4: <ACPI PCI bus> on pcib4
nvme0: <Generic NVMe Device> mem 0xdf500000-0xdf503fff irq 16 at device =
0.0 on pci4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
pci0: <memory> at device 31.2 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection> mem 0xdf700000-0xdf71ffff =
irq 16 at device 31.6 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Using an MSI interrupt
em0: Ethernet address: 4c:cc:6a:28:3e:a3
em0: netmap queues/slots: TX 1/1024, RX 1/1024
acpi_button0: <Sleep Button> on acpi0
acpi_button1: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
ugen1.1: <0x1b21 XHCI root HUB> at usbus1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
uhub0: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on =
usbus1
uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on =
usbus0
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x0009> enclosureHandle<0x0001> slot 3
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000a> enclosureHandle<0x0001> slot 2
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000b> enclosureHandle<0x0001> slot 0
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000c> enclosureHandle<0x0001> slot 1
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000d> enclosureHandle<0x0001> slot 7
mpr0: At enclosure level 0 and connector name (    )
nvd0: <Samsung SSD 960 PRO 512GB> NVMe namespace
nvd0: 488386MB (1000215216 512 byte sectors)
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000e> enclosureHandle<0x0001> slot 6
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x000f> enclosureHandle<0x0001> slot 4
mpr0: At enclosure level 0 and connector name (    )
mpr0: Found device <881<SataDev,Direct>,End Device> <6.0Gbps> =
handle<0x0010> enclosureHandle<0x0001> slot 5
mpr0: At enclosure level 0 and connector name (    )
Trying to mount root from zfs:zroot/ROOT/default []...
da1 at mpr0 bus 0 scbus0 target 1 lun 0
da1: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da1: Serial Number W6A1WL8Y
da1: 600.000MB/s transfers
da1: Command Queueing enabled
da1: 2861588MB (5860533168 512 byte sectors)
da0 at mpr0 bus 0 scbus0 target 0 lun 0
da0: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number W6A1XYMY
da0: 600.000MB/s transfers
da0: Command Queueing enabled
da0: 2861588MB (5860533168 512 byte sectors)
da5 at mpr0 bus 0 scbus0 target 5 lun 0
da5: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da5: Serial Number W6A1XZ7B
da5: 600.000MB/s transfers
da5: Command Queueing enabled
da5: 2861588MB (5860533168 512 byte sectors)
da6 at mpr0 bus 0 scbus0 target 6 lun 0
da6: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da6: Serial Number W6A1M7A2
da6: 600.000MB/s transfers
da6: Command Queueing enabled
da6: 2861588MB (5860533168 512 byte sectors)
da2 at mpr0 bus 0 scbus0 target 2 lun 0
da2: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da2: Serial Number W6A1XDXW
da2: 600.000MB/s transfers
da2: Command Queueing enabled
da2: 2861588MB (5860533168 512 byte sectors)
da3 at mpr0 bus 0 scbus0 target 3 lun 0
da3: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da3: Serial Number W6A1XB8T
da3: 600.000MB/s transfers
da3: Command Queueing enabled
da3: 2861588MB (5860533168 512 byte sectors)
da7 at mpr0 bus 0 scbus0 target 7 lun 0
da7: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da7: Serial Number W6A1M7ET
da7: 600.000MB/s transfers
da7: Command Queueing enabled
da7: 2861588MB (5860533168 512 byte sectors)
da4 at mpr0 bus 0 scbus0 target 4 lun 0
da4: <ATA ST3000VN000-1HJ1 SC60> Fixed Direct Access SPC-4 SCSI device
da4: Serial Number W6A1XBHT
da4: 600.000MB/s transfers
da4: Command Queueing enabled
da4: 2861588MB (5860533168 512 byte sectors)
uhub0: 4 ports with 4 removable, self powered
uhub1: 26 ports with 26 removable, self powered
ugen0.2: <Dell Dell USB Entry Keyboard> at usbus0
ukbd0 on uhub1
ukbd0: <Dell Dell USB Entry Keyboard, class 0/0, rev 1.10/1.78, addr 1> =
on usbus0
kbd1 at ukbd0
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS> on motherboard
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] Unable to create a private tmpfs mount, hugepage support will be =
disabled(-19).
Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may =
suffer
[drm] Got stolen memory base 0x8c000000, size 0x4000000
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Connector HDMI-A-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector HDMI-A-2: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-2
[drm]   - kern.vt.fb.default_mode
[drm] Connector DP-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector HDMI-A-3: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-3
[drm]   - kern.vt.fb.default_mode
[drm] Initialized i915 1.6.0 20171222 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "fb".
start FB_INFO:
type=3D11 height=3D1024 width=3D1280 depth=3D32
cmsize=3D16 size=3D5242880
pbase=3D0xc0040000 vbase=3D0xfffff800c0040000
name=3Ddrmn0 flags=3D0x0 stride=3D5120 bpp=3D32
cmap[0]=3D0 cmap[1]=3D7f0000 cmap[2]=3D7f00 cmap[3]=3Dc4a000
end FB_INFO
drmn0: fb0: inteldrmfb frame buffer device
drmn0: successfully loaded firmware image with name: =
i915/skl_dmc_ver1_27.bin
[drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
lo0: link state changed to UP
igb0: link state changed to UP
em0: link state changed to UP
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to =
accept, logging disabled
Security policy loaded: MAC/ntpd (mac_ntpd)
tun0: link state changed to UP
<snip>
------=_NextPart_000_0006_01D5959E.7862CD10--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501d59596$169e16f0$43da44d0$>