diff options
author | Marius Strobl <marius@FreeBSD.org> | 2018-12-30 23:08:06 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2018-12-30 23:08:06 +0000 |
commit | ab00a509eef1df398fa3bf759f15b4086b8e8d46 (patch) | |
tree | 79a970064323d19c7b79c51f2ed86555d6d3feef /share/msgdef | |
parent | 55d621a104bfae28508303a1d769842382b47122 (diff) | |
download | src-ab00a509eef1df398fa3bf759f15b4086b8e8d46.tar.gz src-ab00a509eef1df398fa3bf759f15b4086b8e8d46.zip |
o Don't allocate resources for SDMA in sdhci(4) if the controller or the
front-end doesn't support SDMA or the latter implements a platform-
specific transfer method instead. While at it, factor out allocation
and freeing of SDMA resources to sdhci_dma_{alloc,free}() in order to
keep the code more readable when adding support for ADMA variants.
o Base the size of the SDMA bounce buffer on MAXPHYS up to the maximum
of 512 KiB instead of using a fixed 4-KiB-buffer. With the default
MAXPHYS of 128 KiB and depending on the controller and medium, this
reduces the number of SDHCI interrupts by a factor of ~16 to ~32 on
sequential reads while an increase of throughput of up to ~84 % was
seen.
Front-ends for broken controllers that only support an SDMA buffer
boundary of a specific size may set SDHCI_QUIRK_BROKEN_SDMA_BOUNDARY
and supply a size via struct sdhci_slot. According to Linux, only
Qualcomm MSM-type SDHCI controllers are affected by this, though.
Requested by: Shreyank Amartya (unconditional bump to 512 KiB)
o Introduce a SDHCI_DEPEND macro for specifying the dependency of the
front-end modules on the sdhci(4) one and bump the module version
of sdhci(4) to 2 via an also newly introduced SDHCI_VERSION in order
to ensure that all components are in sync WRT struct sdhci_slot.
o In sdhci(4):
- Make pointers const were applicable,
- replace a few device_printf(9) calls with slot_printf() for
consistency, and
- sync some local functions with their prototypes WRT static.
Notes
Notes:
svn path=/head/; revision=342634
Diffstat (limited to 'share/msgdef')
0 files changed, 0 insertions, 0 deletions