From owner-freebsd-hackers@freebsd.org Thu Nov 7 18:06:37 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C9F21BB6B2 for ; Thu, 7 Nov 2019 18:06:37 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478BDX3JZwz43CN; Thu, 7 Nov 2019 18:06:36 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wm1-x342.google.com with SMTP id 8so3507062wmo.0; Thu, 07 Nov 2019 10:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-language:thread-index; bh=f6HzcpfT0RMiPEy1xVS0/RYUOXG2KhUMmf6xATCe4xU=; b=Y/44TgLSoPrBgBlqmCQYThMd5dfaSx0dmG9AufnZzEZOloC2vcIzRl2pha9A1zZBrI S0hKIItK8LEdQknfgrmZ9E+t+l68CTvW8NnwCcUFZLk0OYD3IpNOil1UCv92HGKl4keZ BuyvVwzJGOTaGmSw5khmvTH6gK1xVTJVEFKvW7U+YAu/c1br43hRzcWwtwpgvx/74T4L QZu7icD6hNglo+Tb0pqqeMESM7lUTo7WwFcsIdCaOh7HURi3qJ4sKUujl2pwLX8pW8EB EYFyYUd2uJnqrSAmHFxeQkAgqhabQygzSH+DZYCqj8c4t0Bz4dyutewdJC/NDXge3BH3 hihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-language:thread-index; bh=f6HzcpfT0RMiPEy1xVS0/RYUOXG2KhUMmf6xATCe4xU=; b=MCB52yR9xogS1MYF1aTem2+Nq43ch6B/5KLi6dquntj7bb41gYRpkDL/7Jw9r+AaC3 5kYkHRVJOEbnNytSuxA59FXr9Ew3r32i/Svs9NurTkr0bOAzq6lRWXWpKJ4EBXX6OPbc 0R0TCBjVuZSwbqbaBzdDKgUgAdj1gDB/WZWctIQXRvhTtQVxCoDHTBaBwty9lzsIdrg0 Wajzo3HZPlSjF9jUcgTJp0wMRjIdlEzvpD1KJYwRUYgrtk2JXHgp4W8J6j6Y4UlygMTp /RVEjCAVW6MPCiV9O/lx2he2FruHXGdFgvdGqeGk5kLsWl4QqEw+ITnhFsuvUFWSMqCK kGdw== X-Gm-Message-State: APjAAAV0cY7+T8jZD7hlzeS/9QEJ+csoc8G9vN7IVHQ5f0IX6IPN0mLW Wo2ZPI93hNkOHAZVzRayCAkDMk7ZbMk= X-Google-Smtp-Source: APXvYqxdfQt5bYDpyMGoPupRH+4W3s5BhNmNn/fNrn/1RfR/dmxkfISNVUMmRjWEJIXjFseN+nfFYg== X-Received: by 2002:a1c:3d08:: with SMTP id k8mr3924625wma.119.1573149993243; Thu, 07 Nov 2019 10:06:33 -0800 (PST) Received: from DRIESPC (ptr-8shtsnup5aq9glbwplp.18120a2.ip6.access.telenet.be. [2a02:1811:2500:6b00:bd62:64de:8233:e89d]) by smtp.gmail.com with ESMTPSA id t12sm2767372wrx.93.2019.11.07.10.06.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 10:06:31 -0800 (PST) From: To: "'Julian Elischer'" , "'Andriy Gapon'" , References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> In-Reply-To: <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> Subject: RE: Getting jedec_dimm to work Date: Thu, 7 Nov 2019 19:06:32 +0100 Message-ID: <000501d59596$169e16f0$43da44d0$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0006_01D5959E.7862CD10" X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AQF2WESrVRmi+sh1idMRkXBCK0j6VAHYMPjWAaTFcv6oIpF7kA== X-Rspamd-Queue-Id: 478BDX3JZwz43CN X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y/44TgLS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of driesmmichiels@gmail.com designates 2a00:1450:4864:20::342 as permitted sender) smtp.mailfrom=driesmmichiels@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; HAS_ATTACHMENT(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.76), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_NO_DN(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 18:06:37 -0000 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" ---<>--- 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 = Features2=3D0x7ffafbff AMD Features=3D0x2c100800 AMD Features2=3D0x121 Structured Extended = Features=3D0x29c6fbf Structured Extended Features3=3D0x9c000000 XSAVE Features=3D0xf 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: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads random: unblocking device. ioapic0 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: on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 24000000 Hz quality 950 Event timer "HPET" frequency 24000000 Hz quality 550 atrtc0: 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: 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: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 mpr0: 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 vgapci0: port 0xf000-0xf03f mem = 0xde000000-0xdeffffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device xhci0: 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: at device 22.0 (no driver attached) pci0: at device 23.0 (no driver attached) pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 xhci1: 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: irq 18 at device 28.2 on pci0 pci3: on pcib3 igb0: 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: irq 16 at device 29.0 on pci0 pci4: on pcib4 nvme0: mem 0xdf500000-0xdf503fff irq 16 at device = 0.0 on pci4 isab0: at device 31.0 on pci0 isa0: on isab0 pci0: at device 31.2 (no driver attached) em0: 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: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 est0: 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,End Device> <6.0Gbps> = handle<0x0009> enclosureHandle<0x0001> slot 3 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000a> enclosureHandle<0x0001> slot 2 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000b> enclosureHandle<0x0001> slot 0 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000c> enclosureHandle<0x0001> slot 1 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000d> enclosureHandle<0x0001> slot 7 mpr0: At enclosure level 0 and connector name ( ) nvd0: NVMe namespace nvd0: 488386MB (1000215216 512 byte sectors) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000e> enclosureHandle<0x0001> slot 6 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000f> enclosureHandle<0x0001> slot 4 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,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: 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: 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: 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: 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: 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: 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: 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: 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: at usbus0 ukbd0 on uhub1 ukbd0: = on usbus0 kbd1 at ukbd0 aesni0: on motherboard coretemp0: on cpu0 drmn0: 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 ------=_NextPart_000_0006_01D5959E.7862CD10--