commit | b100fb8efd0baca49996b4340c31a3c7b7fe2de9 | [log] [tgz] |
---|---|---|
author | Deepak Kodihalli <dkodihal@in.ibm.com> | Wed Jul 12 04:44:41 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Jul 19 23:00:24 2017 +0000 |
tree | 63293b61f9d344de88c6b65487abf758cd3e7716 | |
parent | 7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb [diff] |
vpnor copy_flash: remove incorrect size check Remove a read window size check, which essentially mandated that a pnor partition is at least as large as the window size. To elaborate, the current mbox implementation assumes a read window size of 1M. This is as per protocol; a host can even send a read size of 0, the BMC implementation is responsible for reading what's valid and fits in the window, and inform host about the size read. There was a check which would see that a read size of 1M past the requested flash offset is larger than an actual partition file size (for partitions < 1M), and would fail the read request. Instead, in such a case, read the entire partition and inform host about the size read. Change-Id: I07d4b24d7eb31c5473c4142e96743d8f8d0e08a2 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Copyright 2017 IBM
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This repo contains the protocol definition for the host to BMC mailbox communication specification which can be found in Documentation/mbox_procotol.md.
There is also a reference implementation of a BMC mailbox daemon, the details of which can be found in Documentation/mboxd.md.
Finally there is also an implementation of a mailbox daemon control program, the details of which can be found in Documentation/mboxctl.md.