linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mpt2sas: BUG? corrupted nvram after using linkrate in sysfs
@ 2012-03-18 18:29 Ayman El-Khashab
  2012-03-20  9:50 ` Nandigama, Nagalakshmi
  0 siblings, 1 reply; 5+ messages in thread
From: Ayman El-Khashab @ 2012-03-18 18:29 UTC (permalink / raw)
  To: linux-scsi

We have the SAS2008 on our board but we don't have the NVRAM
populated.  We do have a flash on the board that holds the
firmware and so on.  What we found (by experimentation) is
that the firmware detects or knows there isn't an NVRAM and
stores some of the NVRAM settings somewhere in the flash
(we've dumped the flash and confirmed there are things in
it).  

We've seen a problem where we use the max/min linkrate in
sysfs -- it looks like the linkrates get set correctly in
page1, we also copy the port/port flags/phy flags per some
errata.  The problem shows up when it updates pg1.  At that
point, the following code is executed ... I guess this would
be ok, except what we see happen is that whatever gets
written to the NVRAM fails to make anything work and since
it is in the NVRAM, even rebooting doesn't help.  We have
figured out that using restore defaults in lsiutil fixes the
problem, but we would rather figure out why the linkrate
doesn't work.  

 mpt2sas_config_set_sas_iounit_pg1(struct MPT2SAS_ADAPTER
*ioc, Mpi2ConfigReply_t
     *mpi_reply, Mpi2SasIOUnitPage1_t *config_page, u16
...
MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM;
         r = _config_request(ioc, &mpi_request, mpi_reply,
            MPT2_CONFIG_PAGE_DEFAULT_TIMEOUT,
config_page, sz);


What it looks like is that Pg1 has the autoconfig set, but
rather than having "0" in the dynamic port group, it how has
many phy numbers so it seems that on the next reboot, the
dynamic setup doesn't work -- however, I don't know that for
sure since I don't really know what the f/w does with it.

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-22 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-18 18:29 mpt2sas: BUG? corrupted nvram after using linkrate in sysfs Ayman El-Khashab
2012-03-20  9:50 ` Nandigama, Nagalakshmi
2012-03-20 13:57   ` Ayman El-Khashab
2012-03-22  7:15     ` Nandigama, Nagalakshmi
2012-03-22 14:44       ` Ayman El-Khashab

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).