linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>,
	Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Mauro Carvalho Chehab
	<m.chehab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Rui Wang <ruiv.wang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
Subject: [PATCH v6 0/4] iMC SMBUS driver and DIMM bus probing
Date: Fri, 20 Dec 2013 17:45:09 -0800	[thread overview]
Message-ID: <cover.1387588711.git.luto@amacapital.net> (raw)

Intel LGA2011 machines have dedicated SMBUS controllers for DIMM
sockets.  Because they're dedicated, they can be safely and accurately
probed, since all devices on them are known to be attached to DIMMs.
The devices found are:
 - SPD EEPROMs
 - TSODs (Temperature Sensor on DIMMs)
 - Other interesting things, with drivers hopefully to follow...

This patch series adds a simple generic layer for probing for DIMMs over
SMBUS and an i2c bus driver for the iMC controller found on Intel
LGA2011 chips.

It now uses only modern infrastructure -- new-style I2C probing and the
at24 (instead of eeprom) driver.

I've tested this on a Core i7 Extreme and on a Xeon E5 server.  I haven't
tested it on an LGA2011 Ivy Bridge box, since I don't have one.

Patches 1-3 are useful even without patch 4.  I'm still hoping for feedback
on patch 4.

Changes from v5:
 - Rebase to a6ddeee32dad (i.e. -linus from today) and re-test

Changes from v4:
 - Added the sb_edac changes -- i2c_imc and sb_edac can now coexist
 - Added some paranoid race detection.
 - The driver now confirms its ability to claim software control of the SMBUS
   master.  This prevents unpleasant problems on systems that enable CLTT
   (closed loop thermal throttling).
 - Reordered the patches so that the DIMM bus code is last.

Changes from v3:
 - Dropped redundant "tsod" driver
 - Dropped eeprom modalias
 - Switched to probing for the "eeprom" and "jc42"

Andy Lutomirski (4):
  Move Intel SNB device ids from sb_edac to pci_ids.h
  sb_edac: Claim a different PCI device
  i2c_imc: New driver for Intel's iMC, found on LGA2011 chips
  i2c, i2c_imc: Add DIMM bus code

 drivers/edac/sb_edac.c        |  32 +--
 drivers/i2c/busses/Kconfig    |  19 ++
 drivers/i2c/busses/Makefile   |   5 +
 drivers/i2c/busses/dimm-bus.c |  97 ++++++++
 drivers/i2c/busses/i2c-imc.c  | 562 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/dimm-bus.h  |  24 ++
 include/linux/pci_ids.h       |  15 ++
 7 files changed, 723 insertions(+), 31 deletions(-)
 create mode 100644 drivers/i2c/busses/dimm-bus.c
 create mode 100644 drivers/i2c/busses/i2c-imc.c
 create mode 100644 include/linux/i2c/dimm-bus.h

-- 
1.8.3.1

             reply	other threads:[~2013-12-21  1:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-21  1:45 Andy Lutomirski [this message]
     [not found] ` <cover.1387588711.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2013-12-21  1:45   ` [PATCH v6 1/4] Move Intel SNB device ids from sb_edac to pci_ids.h Andy Lutomirski
2013-12-21  1:45 ` [PATCH v6 2/4] sb_edac: Claim a different PCI device Andy Lutomirski
2013-12-21  1:45 ` [PATCH v6 3/4] i2c_imc: New driver for Intel's iMC, found on LGA2011 chips Andy Lutomirski
     [not found]   ` <5508fef38f88601de1973d4252bc7aa98b54ea53.1387588711.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2014-02-19 15:38     ` Wolfram Sang
2014-02-19 17:10       ` Andy Lutomirski
2013-12-21  1:45 ` [PATCH v6 4/4] i2c, i2c_imc: Add DIMM bus code Andy Lutomirski
     [not found]   ` <15eccfa508fd0f55230c4274e3e968f91a123b73.1387588711.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2014-02-19 15:16     ` Wolfram Sang
2014-02-19 17:30       ` Andy Lutomirski
     [not found]         ` <CALCETrVBPzGqaXbZVgUZMw7D5U5YnUMJOEsw1r=TceLYjJ39JA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-19 18:51           ` Mauro Carvalho Chehab
     [not found]             ` <20140220035128.14da0f79.m.chehab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-02-19 19:03               ` Luck, Tony
     [not found]                 ` <3908561D78D1C84285E8C5FCA982C28F31DCC6F8-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-20  1:39                   ` Andy Lutomirski
     [not found]                     ` <CALCETrVwSj3KGcPqQD2Kd9W5FCHyPWLukCVr0BZLdQc_Fgz4qA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-20 16:42                       ` Luck, Tony
     [not found]                         ` <3908561D78D1C84285E8C5FCA982C28F31DCD1E1-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-20 23:43                           ` Andy Lutomirski
2014-02-28 19:15                       ` Mauro Carvalho Chehab
2014-02-28 20:14                         ` Andy Lutomirski
2014-02-19 19:26           ` One Thousand Gnomes
     [not found]             ` <20140219192646.1a62521d-mUKnrFFms3BCCTY1wZZT65JpZx93mCW/@public.gmane.org>
2014-02-20  1:30               ` Andy Lutomirski
2014-02-21 15:32                 ` One Thousand Gnomes
2014-02-25 19:54                   ` Andy Lutomirski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1387588711.git.luto@amacapital.net \
    --to=luto-klttt9wpgjjwatoyat5jvq@public.gmane.org \
    --cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
    --cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=m.chehab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=ruiv.wang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).