<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/cfi/cfi_dev.c, branch release/11.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2019-11-28T02:15:45Z</updated>
<entry>
<title>MFC r355101, r355104: cfi: check for inter overflow in cfi_devioctl</title>
<updated>2019-11-28T02:15:45Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2019-11-28T02:15:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1b1fd82bcf47b0562f0b32bb3331650998135486'/>
<id>urn:sha1:1b1fd82bcf47b0562f0b32bb3331650998135486</id>
<content type='text'>
Reported by:	Pietro Oliva
Security:	Possible OOB read in root-only ioctl
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Revert r330897:</title>
<updated>2018-03-29T02:50:57Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-03-29T02:50:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4ab2e064d7950be84256d671a7ae93f87cc6aa36'/>
<id>urn:sha1:4ab2e064d7950be84256d671a7ae93f87cc6aa36</id>
<content type='text'>
This was intended to be a non-functional change. It wasn't. The commit
message was thus wrong. In addition it broke arm, and merged crypto
related code.

Revert with prejudice.

This revert skips files touched in r316370 since that commit was since
MFCed. This revert also skips files that require $FreeBSD$ property
changes.

Thank you to those who helped me get out of this mess including but not
limited to gonzo, kevans, rgrimes.

Requested by: gjb (re)
</content>
</entry>
<entry>
<title>Partial merge of the SPDX changes</title>
<updated>2018-03-14T03:19:51Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-03-14T03:19:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=be5d0b9566b13fdf8cabebb63334cbec12bfc409'/>
<id>urn:sha1:be5d0b9566b13fdf8cabebb63334cbec12bfc409</id>
<content type='text'>
These changes are incomplete but are making it difficult
to determine what other changes can/should be merged.

No objections from:	pfg
</content>
</entry>
<entry>
<title>MFP4 217312, 222008, 222052, 222053, 222673, 231484, 231491, 231565, 570643</title>
<updated>2013-09-04T17:19:21Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2013-09-04T17:19:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f43581345bad430bbb7fc164d577edee19aac124'/>
<id>urn:sha1:f43581345bad430bbb7fc164d577edee19aac124</id>
<content type='text'>
Rework the timeout code to use actual time rather than a DELAY() loop and
to use both typical and maximum to allow logging of timeout failures.
Also correct the erase timeout, it is specified in milliseconds not
microseconds like the other timeouts.  Do not invoke DELAY() between
status queries as this adds significant latency which in turn reduced
write performance substantially.

Sanity check timeout values from the hardware.

Implement support for buffered writes (only enabled on Intel/Sharp parts
for now).  This yields an order of magnitude speedup on the 64MB Intel
StrataFlash parts we use.

When making a copy of the block to modify, also keep a clean copy around
until we are ready to commit the block and use it to avoid unnecessary
erases.  In the non-buffer write case, also use it to avoid
unnecessary writes when the block has not been erased.  This yields a
significant speedup when doing things like zeroing a block.

Sponsored by:	DARPA, AFRL
Reviewed by:	imp (previous version)
</content>
</entry>
<entry>
<title>CFI fixes for big endian archs.</title>
<updated>2012-03-27T15:13:12Z</updated>
<author>
<name>Jayachandran C.</name>
<email>jchandra@FreeBSD.org</email>
</author>
<published>2012-03-27T15:13:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9c1f1330d6f9c75129f6cebf7f26882d3d2414c7'/>
<id>urn:sha1:9c1f1330d6f9c75129f6cebf7f26882d3d2414c7</id>
<content type='text'>
The flash commands and responses are little-endian and have to be
byte swapped on big-endian systems.  However the raw read of data
need not be swapped.

Make the cfi_read and cfi_write do the swapping, and provide a
cfi_read_raw which does not byte swap for reading data from
flash.
</content>
</entry>
<entry>
<title>Merge r221614,221696,221737,221840 from largeSMP project branch:</title>
<updated>2011-05-22T20:55:54Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2011-05-22T20:55:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dc6dc1f573171c3921abe1aa900da3d7f0652365'/>
<id>urn:sha1:dc6dc1f573171c3921abe1aa900da3d7f0652365</id>
<content type='text'>
Rewrite atomic operations for powerpc in order to achieve the following:
- Produce a type-clean implementation (in terms of functions arguments
  and returned values) for the primitives.
- Fix errors with _long() atomics where they ended up with the wrong
  arguments to be accepted.
- Follow the sys/type.h specifics that define the numbered types starting
  from standard C types.
- Let _ptr() version to not auto-magically cast arguments, but leave
  the burden on callers, as _ptr() atomic is intended to be used
  relatively rarely.

Fix cfi in order to support the latest point.

In collabouration with:	bde
Tested by:		andreast, nwhitehorn, jceel
MFC after:		2 weeks
</content>
</entry>
<entry>
<title>Add cfid, a disk interface to CFI flash devices; this enables construction</title>
<updated>2009-03-09T23:16:02Z</updated>
<author>
<name>Sam Leffler</name>
<email>sam@FreeBSD.org</email>
</author>
<published>2009-03-09T23:16:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f2c6781bfd0205e45bf03f031c2baddf79c31e32'/>
<id>urn:sha1:f2c6781bfd0205e45bf03f031c2baddf79c31e32</id>
<content type='text'>
of flash-based filesystems.

Note this is not interlocked against the raw CFI device.
</content>
</entry>
<entry>
<title>Add support for frobbing Intel StrataFlash Protection Registers:</title>
<updated>2009-02-05T18:12:07Z</updated>
<author>
<name>Sam Leffler</name>
<email>sam@FreeBSD.org</email>
</author>
<published>2009-02-05T18:12:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=63425a7f25f2d5b32a8a80a1f4bc2d776fe97adc'/>
<id>urn:sha1:63425a7f25f2d5b32a8a80a1f4bc2d776fe97adc</id>
<content type='text'>
o add CFI_SUPPORT_STRATAFLASH compile option to enable support
o add new ioctls to get/set the factory and user/oem segments of the PR
  and to get/set Protection Lock Register that fuses the user segment
o add #defines for bits in the status register
o update cfi_wait_ready to take an offset so it can be used to wait for
  PR write completion and replace constants w/ symbolic names

Note: writing the user segment isn't correct; committing now to get review.

Sponsored by:	Carlson Wireless
Reviewed by:	imp, Chris Anderson
</content>
</entry>
<entry>
<title>reorg ioctl code to simplify adding new requests</title>
<updated>2009-02-03T19:07:41Z</updated>
<author>
<name>Sam Leffler</name>
<email>sam@FreeBSD.org</email>
</author>
<published>2009-02-03T19:07:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3a114d1f9233a14a1b94408c77a02f6633d8e858'/>
<id>urn:sha1:3a114d1f9233a14a1b94408c77a02f6633d8e858</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a driver for flash memory that implements to the Common Flash</title>
<updated>2008-10-25T06:18:12Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2008-10-25T06:18:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e00251b7ed6da56cdf29e75ea681344b5f335621'/>
<id>urn:sha1:e00251b7ed6da56cdf29e75ea681344b5f335621</id>
<content type='text'>
Memory Interface (CFI). The flash memory can be read and written
to through /dev/cfi# and an ioctl() exists so processes can read
the query information.
The driver supports the AMD and Intel command set, though only
the AMD command has been tested.

Obtained from:	Juniper Networks, Inc.
</content>
</entry>
</feed>
