All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds4@verizon.net (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: some interesting twist...
Date: Thu, 19 May 2005 06:25:18 +0000	[thread overview]
Message-ID: <416B2901.8070707@verizon.net> (raw)
In-Reply-To: <20041011003213.92993.qmail@web20427.mail.yahoo.com>

#1 unimplemented
	a) if the GEM424 is waiting a while, then is a master on the bus, and needs the ICH5 to be a slave,
	   then you need "master-as-slave" functionality, which is unimplemented in the i2c layer or in any driver
	b) perhaps the GEM424 is using SMBus 2.0 "block write/block read process call" (a block write followed by
	   a block read in one transacction)? If so, it is implemented in the i2c layer but is not supported by
	   any driver (or any chip AFAIK).

#2 not from our package
	you may wish to use the aardvark development tool from www.totalphase.com but that won't help you
	in your real system.

linda wang wrote:
> Hi,
> 
> I was wondering if anyone ca help w.r.t. how to 
> get some 
> i2c chips to do what I want them to do on a 
> motherboard.  It isn't easy, because I
> spend about a month playing with various different
> drivers: i801.c, lm93, and my own (gem424.c) to 
> get it to work; but so far no total success. sigh.
> 
> I am hoping with your collective expert knowlege base,
> someone will have an idea how to achieve what I am
> about to describe.
> 
> To make long story short, GEM424 is a qlogic chip
> that controlls backplan of a chasis.  It only talks
> SAFTE through i2c.  Normally it suppose connected
> directly to a SATA2 controller, and through
> SCSI/sg, end user can communicate to this chip.
> However, the SATA2 controller that it needs to
> communicated to isn't ready yet. :( source of 
> the engineering chanllenge).
> 
> So, the trick is to get any chip on the motherboard
> to communicate to gem424, and read back what gem424
> sends back.  These are what is available on
> the i2c bus:
> 
> 
> pc87427    lm93      |
>     |        |       |
> ----------------------------- gem424
>         |         |  |
>        ICH5      IPMI|
>                      |
> 
> So far, I was able to use ICH5[MA 0x88/SA 0x89] 
> (since it has a master block write interface) to 
> write out a fake SAFTE command to GEM424 [SA 0x6E].
> 
> GEM424 will respond to the command, and in turn,
> responds by asserting itself as the Master and
> respond back a block response to the specified
> slave address. 
> 
> However, ICH5 only has a slave interface that
> read in byte-mode.  Is there a way for it
> to read in byte by byte of what GEM424 writes back?
> (question #1)
> 
> Since I didn't know how to make ICH5 read in 
> block mode,
> I then found another chip on the motherboard, LM93,
> which allow block read/write.  I then program
> ICH5 to send out the command with LM93's slave
> address, and have it respond back to LM93.
> However, LM93's blocks are pre-programmed to 
> read sense temp, voltage on the chip. Therefore,
> any attemps to write to bytes beyond normal
> address space are acknowledged by the LM93 but
> the data are ignored.
> 
> With the i2c-monitor/analyser, I was able to see
> GEM424 responds to the command send by ICH5 to
> LM93.  Is there a device driver/program that i can 
> use/modify to snoop the bus and capture the responds?
> (question #2)
> 
> It is all I have so far, please please don't make
> fun of me if what I am doing doesn't make any sense.
> I am hoping someone can help me... If not, please
> also let me know.
> 
> many many thanks in advance,
> -linda
> 
>  
> 
> 
> 		
> 
> 

  reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 some interesting twist linda wang
2005-05-19  6:25 ` Mark Studebaker [this message]
2005-05-19  6:25 ` Mark Studebaker

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=416B2901.8070707@verizon.net \
    --to=mds4@verizon.net \
    --cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.