mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 00:46:55 +07:00
ca2afb6dbe
On some platforms like DM355, the number of EDMA parameter slots available for EDMA_SLOT_ANY usage are few. In such cases, if MMC/SD uses 16 slots for each instance of MMC controller, then the number of slots available for other modules will be very few. By passing the number of EDMA slots to be used in MMC driver from platform data, EDMA slots available for other purposes can be controlled. Most of the platforms will not use this platform data variable. But on DM355, as the number of EDMA resources available is limited, the number of scatter- gather segments used inside the MMC driver can be 8 (passed as platform data) instead of 16. On DM355, when the number of scatter-gather segments was reduced to 8, I saw a performance difference of about 0.25-0.4 Mbytes/sec during write. Read performance variations were negligible. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Acked-by: Kevin Hilman <khilman@deeprootsystems.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
37 lines
708 B
C
37 lines
708 B
C
/*
|
|
* Board-specific MMC configuration
|
|
*/
|
|
|
|
#ifndef _DAVINCI_MMC_H
|
|
#define _DAVINCI_MMC_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/mmc/host.h>
|
|
|
|
struct davinci_mmc_config {
|
|
/* get_cd()/get_wp() may sleep */
|
|
int (*get_cd)(int module);
|
|
int (*get_ro)(int module);
|
|
/* wires == 0 is equivalent to wires == 4 (4-bit parallel) */
|
|
u8 wires;
|
|
|
|
u32 max_freq;
|
|
|
|
/* any additional host capabilities: OR'd in to mmc->f_caps */
|
|
u32 caps;
|
|
|
|
/* Version of the MMC/SD controller */
|
|
u8 version;
|
|
|
|
/* Number of sg segments */
|
|
u8 nr_sg;
|
|
};
|
|
void davinci_setup_mmc(int module, struct davinci_mmc_config *config);
|
|
|
|
enum {
|
|
MMC_CTLR_VERSION_1 = 0, /* DM644x and DM355 */
|
|
MMC_CTLR_VERSION_2, /* DA830 */
|
|
};
|
|
|
|
#endif
|