<feed xmlns='http://www.w3.org/2005/Atom'>
<title>phosphor-mboxbridge/vpnor/test/Makefile.am.include, branch master</title>
<subtitle>OpenBMC Phosphor Flash mailbox bridge daemon sources</subtitle>
<id>https://git.raptorcs.com/git/phosphor-mboxbridge/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/phosphor-mboxbridge/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/'/>
<updated>2019-03-19T06:11:19+00:00</updated>
<entry>
<title>Makefiles: Centralise some use of VIRTUAL_PNOR_ENABLED</title>
<updated>2019-03-19T06:11:19+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-03-19T04:23:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=81059e32dfd5e8e629f30bb55f40ade65f2b0953'/>
<id>urn:sha1:81059e32dfd5e8e629f30bb55f40ade65f2b0953</id>
<content type='text'>
Better that we try to keep all the conditional junk near the top of the
tree.

Change-Id: Ic9e8dca892dcf15607bace9f630f4d107e1a4b4e
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Rename pnor_partition_table sources to table</title>
<updated>2019-03-19T06:11:17+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-03-18T02:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=de08ca2d69609f58e7787620f13d3b05c19697e5'/>
<id>urn:sha1:de08ca2d69609f58e7787620f13d3b05c19697e5</id>
<content type='text'>
Change-Id: I95c5129aa81a7b4a4d88ce2f7edf6a10a3c94b98
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Rename pnor_partition sources to partition</title>
<updated>2019-03-19T06:11:16+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-03-18T02:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=fb01e14eb11f7862066e1ef29a9b25504a52b4db'/>
<id>urn:sha1:fb01e14eb11f7862066e1ef29a9b25504a52b4db</id>
<content type='text'>
Change-Id: I7fb3ba5071c94595449c5469625564233cc8d752
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Consolidate backend and mboxd_pnor_partition_table sources</title>
<updated>2019-03-19T06:11:12+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-03-18T02:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=035ad76b8b45a01cc7fcc184e7e72eed69c0ece5'/>
<id>urn:sha1:035ad76b8b45a01cc7fcc184e7e72eed69c0ece5</id>
<content type='text'>
Change-Id: Ibf66c3a86c2a50e2304fb968f8c912ede84cf719
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>mboxd: Add a backend abstraction layer to mboxd.</title>
<updated>2019-03-18T00:16:11+00:00</updated>
<author>
<name>Evan Lojewski</name>
<email>github@meklort.com</email>
</author>
<published>2019-03-14T04:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=f1e547c74563d59f60d918c6fa673bb8cee6e669'/>
<id>urn:sha1:f1e547c74563d59f60d918c6fa673bb8cee6e669</id>
<content type='text'>
Introduce a backend abstraction, enabling multiple implementations to be
compiled in at once. This change formally abstracts the two existing
backends, mtd and vpnor.

With the backend abstraction in place, subsequent backends are easier to
implement.

This change is based of Evan's work and he retains authorship credit. I
(AJ) have reworked the patch to pass the vpnor tests, refactored some
parts to enable broader use of const structures and others to clarify
the initialisation sequences.

Due to the existing lack of abstraction the patch has unfortunately
wide-ranging impacts. I've whittled it down as much as I consider
reasonable.

Change-Id: I29984a36dae4ea86ec00b853d2a756f0b9afb3ec
Signed-off-by: Evan Lojewski &lt;github@meklort.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>flash: Introduce flash_validate()</title>
<updated>2019-03-18T00:16:11+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-03-14T23:24:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=cb93504ed0fefa23186415accca6c0812174f274'/>
<id>urn:sha1:cb93504ed0fefa23186415accca6c0812174f274</id>
<content type='text'>
Clean up the protocol_negotiate_version() mess. The existing approach
came about due to viewing the vpnor implementation as an edge case in
its own right. The code becomes much neater if we consider all backends
as equal and afford them the callbacks necessary for correct behaviour.

Change-Id: Ifaeee9da459818cf22b2f137ddc5b8d0356b9be9
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Enforce a read-only FFS ToC regardless of flags</title>
<updated>2019-01-08T03:11:04+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-11-13T06:45:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=7a85d22a5ffce603fa0e6b3dae41aabc954df10f'/>
<id>urn:sha1:7a85d22a5ffce603fa0e6b3dae41aabc954df10f</id>
<content type='text'>
The virtual PNOR implementation never properly honoured writes to the
FFS ToC, as the ToC's binary representation is generated from the CSV
file shipped in the PNOR squashfs image.

What *did* happen was that opening a write window to the ToC region
succeeded and writes could be flushed, but the flushed writes were never
read, and ToC representation internal to mboxd was never updated to
match the written state. Thus the written values "persisted" until the
ToC's window fell out of the cache (with 64MiB reserved regions,
probably on a host reboot).

Short circuit the insanity of handling FFS more than we have to by
forcefully marking the ToC as read-only, regardless of the flag
configuration shipped in the CSV representation. This prevents the host
from successfully opening a write window and thus the host can have no
expectation of write persistence.

Change-Id: Ib2788c56b245da506cb7d607c0758b17785766cf
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: test: Add force_readonly_toc</title>
<updated>2019-01-08T03:11:04+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-11-13T06:43:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=8a0efd5e9e0f544fc383cd9cd92979b27ccc0a94'/>
<id>urn:sha1:8a0efd5e9e0f544fc383cd9cd92979b27ccc0a94</id>
<content type='text'>
This ensures that the ToC presented to the host indicates that it is not
writable. The virtual PNOR implementation has never properly honoured
writes to the ToC, so lets at least tell the host.

As the code has not yet been fixed to implement the desired behaviour,
add the test to XFAIL_TESTS.

Change-Id: Ia13a0f907f916d6dec3979b17685d54bc578a106
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Add write-to-writable-ToC test</title>
<updated>2019-01-08T03:11:04+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-11-13T04:47:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=899857542e729e57049d1dd88406127626b3902d'/>
<id>urn:sha1:899857542e729e57049d1dd88406127626b3902d</id>
<content type='text'>
Tests if mutations survive re-opening the window. They don't, so add the
test to XFAIL_TESTS.

Change-Id: Ic2f844c30a7da35033bf03012ea452718d2843e4
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>vpnor: Hijack protocol rather than transport</title>
<updated>2018-09-12T05:35:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-08-08T02:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-mboxbridge/commit/?id=c7d1947e88d9cf7c3ab7ac73a1b34b312ce5f361'/>
<id>urn:sha1:c7d1947e88d9cf7c3ab7ac73a1b34b312ce5f361</id>
<content type='text'>
By hijacking the transport the changes in behaviour were limited to the
mailbox interface. Now that we have a DBus interface as well this would
lead to inconsistent behaviour dependent on the transport.

Instead of hooking the transport, push the hook down to the protocol
level where we will achieve consistent behaviour across all transports.

Change-Id: I437866a6dbda107149336c15a00ee1aa058f5875
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
</feed>
