History log of /fuchsia/zircon/system/dev/nand/ram-nand/test/ram-nand.cpp
Revision Date Author Comments
# 989ee4e8 13-Jun-2018 David Moore <davemoore@google.com>

[syscalls] Change vmar_... calls

- Create zx_vm_option_t type
- Change ZX_VM_FLAG_... to ZX_VM_... and make them new type.
- Change int32_t flags parameters to zx_vm_option_t options
- Make the options parameter be second.

- Modify vmar_..._old functions to keep other repos working.
Once they've all been updated these functions will go away.

ZX-2264
Test:CQ

Change-Id: I1faf4cc4e1e4dabf3d8ef680e398d83a545b0f09


# 78826b76 31-Jul-2018 Suraj Malhotra <surajmalhotra@google.com>

[dev][ram-nand] Add ioctl to create ram-nand based on VMO.

The new IOCTL allows for pre-filling data in NAND prior to binding. This
allows us to create a fake bad-block table which we can use for testing
nandpart's bad-block functionality.

Change-Id: I0e24037bf2c06b93bf50d4a2230b9640978e1701
Tested: ram-nand-test


# 62e2d2d8 09-Jul-2018 Suraj Malhotra <surajmalhotra@google.com>

[dev][ram-nand] Add support for attaching metadata to spawned device.

This enables spawning of devices which the nandpart and skip-block
drivers can attach to.

Change-Id: I84a346c44580f4e313655dc3f680592e04077d75
Tested: Ran `runtests -t ram-nand-test`


# 8659df27 01-Aug-2018 rvargas <rvargas@google.com>

[ram-nand] Fix unit test to avoid double initialization.

ZX-2443 #done
Test: ram-nand-test

Change-Id: I5d61bf788d4e4da6534738f585306822c80637b7


# babe1cf5 25-Jul-2018 Adam Barth <abarth@chromium.org>

[sync] Apply C API rubric to libsync

Test: No behavior change
Change-Id: I30a413f7fb5d3f4e741e5204532b82e73595c086


# f6e5e055 17-Jul-2018 rvargas <rvargas@google.com>

[ram-nand] Add faked ddk for unit tests.

This CL removes a wrapper around the DDKTL device implementation and
replaces that with a trivial fake of the ddk for the unit test.

Test: ram-nand-test
Change-Id: I33ee28cfb6fa759fdd6433dfb64030906482e3a5


# e94a5c3a 09-Jul-2018 Suraj Malhotra <surajmalhotra@google.com>

[ddk][nand] Change get_bad_block_list to get_factory_bad_block_list

This is to differentiate it from the get_bad_block_list API in the
bad-block protocol.

Change-Id: I42882cdfddf50306fc3c432988d3d27aa90d8791
Tested: It compiles.


# 9c32a1d0 07-Jun-2018 rvargas <rvargas@google.com>

[nand] Update the nand protocol to operate on data and oob.

- READ/WRITE_DATA is now called simply READ/WRITE, and can be used to
operate on page data, page OOB or both.

- Removed ram_nand implementation of READ/WRITE_OOB.

- Deprecated READ/WRITE_DATA and READ/WRITE_OOB (The symbols are still
present to allow other implementations to work)

Change-Id: Ia8c6e23b1dff999e8df00780bcb1111ea947b537


# 05f9ec70 06-Jun-2018 rvargas <rvargas@google.com>

[ram-nand] Initialize the new device with 0xff.

This behaves like a clean nand chip, with no bad blocks.

Change-Id: Ib3031d606c12cc5686953ee48e6abf756a993fa9


# 3bbbf5dc 20-Apr-2018 rvargas <rvargas@google.com>

[storage] Use ddktl for ram nand devices.

This CL introduces a ddktl version of the nand protocol.

This CL also moves the functionality exposed by the ddktl from
the device implementation into a new class.

ZX-1987

Change-Id: Ic763dbcc202e5979a80239fc7b2046b4860fb507


# cc0dfea8 19-Apr-2018 rvargas <rvargas@google.com>

[storage] Fix name of ram nand Ioctl handler.

I missed updating these when working on the original CL.

ZX-1987

Change-Id: I0d2ff38f11c8ef15d4d5edd13b3d06f100679e23


# 055ab276 13-Apr-2018 rvargas <rvargas@google.com>

[storage] Add out of band operations to ram nand device.

ZX-1987 #done

Change-Id: Ie94ce95af14505941ad5f4604f5b3b74b19a1879


# a4d18953 18-Apr-2018 rvargas <rvargas@google.com>

[storage] Implement erase command for ram-nand.

This is also an async command, but it takes the same time as Read/Write.

ZX-1987

Change-Id: I07b761aeb7efa1937d5fd9b65c1fdb7b6db544f0


# f932403d 12-Apr-2018 rvargas <rvargas@google.com>

[storage] First version of a ram-backed nand controller driver.

This introduces a new protocol: nand, which closely resembles the block
protocol, and the first iteration of a driver that implements that
protocol.

The new driver is analogous to what a ram disk does for a block device.

ZX-1987

Change-Id: I47d6db7408122ac7296f139da4296f189c11eb69