Remove kernel support for armebRemove all the big-endian arm architectures (ixp425 and ixp435)support in the kernel and associated drivers.Differential Revision: https://reviews.freebsd.org/D16
Remove kernel support for armebRemove all the big-endian arm architectures (ixp425 and ixp435)support in the kernel and associated drivers.Differential Revision: https://reviews.freebsd.org/D16257
show more ...
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
[cfi] fix CFI flash reset command for MX29LV320T/B.MX flash MX29LV320T/B datasheet say reset is 0xf0.Submitted by: Hiroki Mori <[email protected]>Approved by: mizhkaDifferential Revision: h
[cfi] fix CFI flash reset command for MX29LV320T/B.MX flash MX29LV320T/B datasheet say reset is 0xf0.Submitted by: Hiroki Mori <[email protected]>Approved by: mizhkaDifferential Revision: https://reviews.freebsd.org/D10177
Provide a workaround for setting the correct endianness when doing CFI ona mips big-endian board.This is (hopefully! ish!) a temporary change until a slightly better waycan be found to express th
Provide a workaround for setting the correct endianness when doing CFI ona mips big-endian board.This is (hopefully! ish!) a temporary change until a slightly better waycan be found to express this without a config option.Tested:* BUFFALO WZR-HP-G300NH 1stGen (by submitter)Submitted by: Mori Hiroki <[email protected]>
Follow up to r225617. In order to maximize the re-usability of kernel codein userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv().This fixes a namespace collision with libc sy
Follow up to r225617. In order to maximize the re-usability of kernel codein userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv().This fixes a namespace collision with libc symbols.Submitted by: kmacyTested by: make universe
Follow r261352 by updating all drivers which are children of simplebusto check the status property in their probe routines.Simplebus used to only instantiate its children whose status="okay"but t
Follow r261352 by updating all drivers which are children of simplebusto check the status property in their probe routines.Simplebus used to only instantiate its children whose status="okay"but that was improper behavior, fixed in r261352. Now that it doesn'tcheck anymore and probes all its children; the children all have todo the check because really only the children know how to properlyinterpret their status property strings.Right now all existing drivers only understand "okay" versus something-that's-not-okay, so they all use the new ofw_bus_status_okay() helper.
Set BUS_PROBE_NOWILDCARD on this attachment as a stopgap. Unconditionallypoking at registers in unknown devices is not the best probe mechanism.This should be reverted and a better solution found l
Set BUS_PROBE_NOWILDCARD on this attachment as a stopgap. Unconditionallypoking at registers in unknown devices is not the best probe mechanism.This should be reverted and a better solution found later.
MFP4: 1136252Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to havetheir address range allocated sharable so that atse(4) can find it'sEthernet address in the expected location.
MFP4: 1136252Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to havetheir address range allocated sharable so that atse(4) can find it'sEthernet address in the expected location.We intend to remove this hack once the BERI platform has a loader.
MFP4 217312, 222008, 222052, 222053, 222673, 231484, 231491, 231565, 570643Rework the timeout code to use actual time rather than a DELAY() loop andto use both typical and maximum to allow logging
MFP4 217312, 222008, 222052, 222053, 222673, 231484, 231491, 231565, 570643Rework the timeout code to use actual time rather than a DELAY() loop andto use both typical and maximum to allow logging of timeout failures.Also correct the erase timeout, it is specified in milliseconds notmicroseconds like the other timeouts. Do not invoke DELAY() betweenstatus queries as this adds significant latency which in turn reducedwrite performance substantially.Sanity check timeout values from the hardware.Implement support for buffered writes (only enabled on Intel/Sharp partsfor now). This yields an order of magnitude speedup on the 64MB IntelStrataFlash parts we use.When making a copy of the block to modify, also keep a clean copy arounduntil we are ready to commit the block and use it to avoid unnecessaryerases. In the non-buffer write case, also use it to avoidunnecessary writes when the block has not been erased. This yields asignificant speedup when doing things like zeroing a block.Sponsored by: DARPA, AFRLReviewed by: imp (previous version)
Use direct custom implementations instead of g_handleattr() for CFI and NANDd_getattr(). Since these drivers use disk(9) KPI and not directly GEOM, useof that function means KPI layering violation
Use direct custom implementations instead of g_handleattr() for CFI and NANDd_getattr(). Since these drivers use disk(9) KPI and not directly GEOM, useof that function means KPI layering violation, causing extra g_io_deliver()call for the request.
MFP4 @217311Intel and Sharp flash power on with their blocks in a "locked" state.Unlocked them before attempting to perform an erase or write action andrelock when the action is complete.
MFP4 @222836Add support for partitioning CFI disks from FDT using geom_flashmap.Sponsored by: DARPA, AFRL
MFP4 change 222060:On Intel devices, put the Factory PPR in kenv. On some FPGA boards it maybe the only software accessable unique ID.Sponsored by: DARPA, AFRL
MFP4 changes 222065 and 222068:Add a simplebus attachment for cfi(4)'s FDT support and movecfi_bus_fdt.c to sys/conf/files so non-ppc architectures are supported.Sponsored by: DARPA, AFRL
MFP4 change 217313 and part of 222068:Add a simple nexus attachment for cfi(4).
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arraysReviewed by: cognetApproved by: cognet
CFI fixes for big endian archs.The flash commands and responses are little-endian and have to bebyte swapped on big-endian systems. However the raw read of dataneed not be swapped.Make the cfi
CFI fixes for big endian archs.The flash commands and responses are little-endian and have to bebyte swapped on big-endian systems. However the raw read of dataneed not be swapped.Make the cfi_read and cfi_write do the swapping, and provide acfi_read_raw which does not byte swap for reading data fromflash.
Merge r221614,221696,221737,221840 from largeSMP project branch:Rewrite atomic operations for powerpc in order to achieve the following:- Produce a type-clean implementation (in terms of functions
Merge r221614,221696,221737,221840 from largeSMP project branch: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: bdeTested by: andreast, nwhitehorn, jceelMFC after: 2 weeks
Convert Freescale PowerPC platforms to FDT convention.The following systems are affected: - MPC8555CDS - MPC8572DSThis overhaul covers the following major changes: - All integrated periph
Convert Freescale PowerPC platforms to FDT convention.The following systems are affected: - MPC8555CDS - MPC8572DSThis overhaul covers the following major changes: - All integrated peripherals drivers for Freescale MPC85XX SoC, which are currently in the FreeBSD source tree are reworked and adjusted so they derive config data out of the device tree blob (instead of hard coded / tabelarized values). - This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC, QUICC, UART, CFI. - Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire ocpbus(4) driver, which was based on hard-coded config data.Note that world for these platforms has to be built WITH_FDT.Reviewed by: impSponsored by: The FreeBSD Foundation
Move from using devclass_find_free_unit(cfi_diskclass, 0) to -1, sincethey have the same basic behavior.
choose the size of the last region for d_stripsize instead of the first;this fixes geom_redboot on boards that have multiple parts/regions as ituses the value to locate the FIS directory which is i
choose the size of the last region for d_stripsize instead of the first;this fixes geom_redboot on boards that have multiple parts/regions as ituses the value to locate the FIS directory which is in the last eraseregion of flash
Add cfid, a disk interface to CFI flash devices; this enables constructionof flash-based filesystems.Note this is not interlocked against the raw CFI device.
fix whitespace
fix typoSubmitted by: Christoph Mallon <[email protected]>
12