fix typos in rtsx.c comments: freqency and wichSigned-off-by: Felipe Matarazzo <felipemps@protonmail.com>Reviewed-by: ngiePull-Request: https://github.com/freebsd/freebsd-src/pull/2174
mmc: Use bus_topo_lock and taskqueue_bus while adding/removing child devicesSome drivers held regular mutexes across some new-bus calls; insteaddepend on bus_topo_lock to protect the relevant soft
mmc: Use bus_topo_lock and taskqueue_bus while adding/removing child devicesSome drivers held regular mutexes across some new-bus calls; insteaddepend on bus_topo_lock to protect the relevant softc members. Thisalso fixes the bus_topo_lock to be explicit in these drivers ratherthan relying on the implicit Giant from taskqueue_swi_giant. Itavoids calling sleepable routines like device_probe_and_attach from answi context.Differential Revision: https://reviews.freebsd.org/D49270
show more ...
Use bus_generic_detach instead of device_delete_children in detachWhile here, check for errors from bus_generic_detach and move it tothe start of detach if necessary.Differential Revision: https
Use bus_generic_detach instead of device_delete_children in detachWhile here, check for errors from bus_generic_detach and move it tothe start of detach if necessary.Differential Revision: https://reviews.freebsd.org/D47969
rtsw: Break out as soon as we find we're doing the inversion workaroundOnce we set that we're doing the inversion workaround, there's no sensecontinuing to search for the inversion workaround.Sp
rtsw: Break out as soon as we find we're doing the inversion workaroundOnce we set that we're doing the inversion workaround, there's no sensecontinuing to search for the inversion workaround.Sponsored by: NetflixReviewed by: adrianDifferential Revision: https://reviews.freebsd.org/D47686
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYSponsored by: Netflix
Fix new users of MAXPHYS and hide it from the kernel namespaceIn cd8537910406, kib made maxphys a load-time tunable. This madethe #define MAXPHYS in sys/param.h almost entirely obsolete, asit c
Fix new users of MAXPHYS and hide it from the kernel namespaceIn cd8537910406, kib made maxphys a load-time tunable. This madethe #define MAXPHYS in sys/param.h almost entirely obsolete, asit could now be overridden by kern.maxphys at boot time, or byopt_maxphys.h.However, decades of tradition have led to several new, incorrect, usesof MAXPHYS in other parts of the kernel, mostly by seasoneddevelopers. I've corrected those uses here in a mechanical fashion,and verified that it fixes a bug in the md driver that I wasexperiencing.Since using MAXPHYS is such an easy mistake to make, it is best tohide it from the kernel namespace. So I've moved its definition to_maxphys.h, which is now included in param.h only for userspace.That brings up the fact that lots of userspace programs use MAXPHYSfor different reasons, most of them probably wrong. Userspace consumersthat really need to know the value of maxphys should probably bechanged to use the kern.maxphys sysctl. But that's outside the scopeof this change.Reviewed by: imp, jkim, kib, markjFixes: 30038a8b4efc ("md: Get rid of the pbuf zone")Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D44986
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
rtsx: Add plug-and-play infoAdd MODULE_PNP_INFO() to the driver to make it autoload if not linkedstatically into the kernel. Remove the device from amd64/i386 GENERIC.Reviewed by: impDifferenti
rtsx: Add plug-and-play infoAdd MODULE_PNP_INFO() to the driver to make it autoload if not linkedstatically into the kernel. Remove the device from amd64/i386 GENERIC.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D35074
rtsx: purge EOL release compatibilityRemove support for FreeBSD 11 and earlierReviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/603Differential Revision: https://reviews
rtsx: purge EOL release compatibilityRemove support for FreeBSD 11 and earlierReviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/603Differential Revision: https://reviews.freebsd.org/D35560
rtsx: Remove unused devclass argument to DRIVER_MODULE.
rtsx: Number of tweaks for RTS5260.MFC after: 2 weeks
rtsx: Remove update of softc during probe and some var rename.MFC after: 1 week
rtsx: Display error if rtsx_read()/rtsx_write() fail.MFC after: 1 week
rtsx: Don't detach during shutdownMFC after: 1 week
rtsx: Call rtsx_init() on resume.MFC after: 3 days
rtsx: Add RTS5260 support and replace bootverbose with sysctl.Tested by: mavMFC after: 4 daysDifferential Revision: https://reviews.freebsd.org/D34246
rtsx: Update driver version number to 2.1cDifferential Revision: https://reviews.freebsd.org/D32154
rtsx: Do not display pci_read_config() errors during rtsx_init()Differential Revision: https://reviews.freebsd.org/D32154
rtsx: Add CTLFLAG_STATS flag for read and write countersDifferential Revision: https://reviews.freebsd.org/D32154
rtsx: Prefer __FreeBSD_version over __FreeBSD__No functional change.Differential Revision: https://reviews.freebsd.org/D32154
rtsx: Convert driver to use the mmc_sim interfaceA lot more generic cam related things were done in mmc_sim so thissimplifies the driver a lot.Differential Revision: https://reviews.freebsd.org/
rtsx: Convert driver to use the mmc_sim interfaceA lot more generic cam related things were done in mmc_sim so thissimplifies the driver a lot.Differential Revision: https://reviews.freebsd.org/D32154Reviewed by: imp
rtsx: Call taskqueue sooner, adjust DELAY(9) calls, add an inversion heuristic- Some configurations, e.g. HP EliteBook 840 G3, come with a dummy cardin the card slot which is detected as a valid S
rtsx: Call taskqueue sooner, adjust DELAY(9) calls, add an inversion heuristic- Some configurations, e.g. HP EliteBook 840 G3, come with a dummy cardin the card slot which is detected as a valid SD card. This added longtimeout at boot time. To alleviate the problem, the default timeout isreduced to one second during the setup phase. [1]- Some configurations crash at boot if rtsx(4) is defined in the kernelconfig. At boot time, without a card inserted, the driver found thata card is present and just after that a "spontaneous" interrupt isgenerated showing that no card is present. To solve this problem,DELAY(9) is set to one quarter of a second before checking card presenceduring driver attach.- As advised by adrian, taskqueue and DMA are set up sooner duringthe driver attach. A heuristic to try to detect configuration needinginversion was added.PR: 255130 [1]MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D30499
12