From 88a4498cc9eec58abf4687190a79068d0a0b8fd6 Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Tue, 14 Aug 2012 14:08:29 +0800 Subject: ENGR00220199 Add CPU governor trigger for GPU2D and GPUVG core Add CPU governor trigger for GPU2D and GPUVG core, without these trigger some benchmark show performance drop when enable CPU governor Signed-off-by: Richard Liu Acked-by: Lily Zhang --- include/linux/cpufreq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index a61416fe63f2..a56996226cf3 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -73,7 +73,7 @@ extern struct kobject *cpufreq_global_kobject; * not issue cpu freq change, but the devices' performance will be impacted * significantly, we need to add irq number check to be as one condition of * CPU freq change. */ -#define MAX_CPUFREQ_IRQ_NUMBER 10 +#define MAX_CPUFREQ_IRQ_NUMBER 20 struct irq_tuner { unsigned int irq_number; unsigned int up_threshold; -- cgit v1.2.3 From 4c22c9922e81904410d8f97065a267dee7b99380 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Tue, 14 Aug 2012 15:37:42 +0800 Subject: ENGR00220341-3 usb: add spin_lock at platform data It is used to sync pdata->lowpower between wakeup interrupt and driver API. Signed-off-by: Peter Chen --- include/linux/fsl_devices.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 8c41b237fc83..2a9557307643 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -144,6 +144,7 @@ struct fsl_usb2_platform_data { unsigned irq_delay:1; enum usb_wakeup_event wakeup_event; u32 pmflags; /* PM from otg or system */ + spinlock_t lock; void __iomem *charger_base_addr; /* used for i.mx6 usb charger detect */ -- cgit v1.2.3 From 16f59122554e61c69e8d01f051608f527da27e5a Mon Sep 17 00:00:00 2001 From: Ryan QIAN Date: Tue, 7 Aug 2012 14:21:11 +0800 Subject: ENGR00219601-02: mmc: sdhci: revise pre_req & post_req to improve performance Test Env: 1. MX6DL SabreSD board. 2. On board eMMC (Sandisk: SDIN5C2-8G) running at 8-bit DDR @ 52MHz. 3. Test commands: 3.1 Writing command: # dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=100 conv=fsync 3.2 Reading command: # echo 1 > /proc/sys/vm/drop_caches # echo 1 > /proc/sys/vm/drop_caches # sleep 1 # dd if=/dev/mmcblk0 of=/dev/null bs=1M count=100 Performance result with this patch: ------------------------------------------------------- | CPU freq | SDMA (512KB) | SDMA (64KB) | ADMA | |----------+--------------+-------------+-------------| | 1Ghz | ~11MB/s (w) | ~5MB/s (w) | ~11MB/s (w) | | | ~25MB/s (r) | ~25MB/s (r) | ~23MB/s (r) | |----------+--------------+-------------+-------------| | 200Mhz | ~8MB/s (w) | ~5MB/s (w) | ~9MB/s (w) | | | ~16MB/s (r) | ~20MB/s (r) | ~13MB/s (r) | ------------------------------------------------------- Performance result without this patch: ------------------------------------------------------- | CPU freq | SDMA (512KB) | SDMA (64KB) | ADMA | |----------+--------------+-------------+-------------| | 1Ghz | ~10MB/s (w) | ~5MB/s (w) | ~10MB/s (w) | | | ~22MB/s (r) | ~23MB/s (r) | ~22MB/s (r) | |----------+--------------+-------------+-------------| | 200Mhz | ~8MB/s (w) | ~4MB/s (w) | ~8MB/s (w) | | | ~13MB/s (r) | ~16MB/s (r) | ~11MB/s (r) | ------------------------------------------------------- Signed-off-by: Ryan QIAN --- include/linux/mmc/sdhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h index a477e2e2093c..08fe29cb99fc 100644 --- a/include/linux/mmc/sdhci.h +++ b/include/linux/mmc/sdhci.h @@ -18,7 +18,7 @@ #include struct sdhci_host_next { - unsigned int dma_len; + unsigned int sg_count; s32 cookie; }; -- cgit v1.2.3 From 30a00946a51c5d669dc2c99037f9ca3474a53828 Mon Sep 17 00:00:00 2001 From: Chen Liangjun Date: Tue, 21 Aug 2012 17:25:36 +0800 Subject: ENGR00182456-1 HDMI: Add interface for HDMI audio management In this patch, add support for: 1. Interface for HDMI audio to register PCM into HDMI core driver. 2. Interface for HDMI video driver to stop HDMI audio 3. Interface for HDMI video driver to inform the state of HDMI cable and state of HDMI blank. Signed-off-by: Chen Liangjun --- include/linux/mfd/mxc-hdmi-core.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/linux/mfd/mxc-hdmi-core.h b/include/linux/mfd/mxc-hdmi-core.h index 8ddea5a040cc..f16b11cb5cf4 100644 --- a/include/linux/mfd/mxc-hdmi-core.h +++ b/include/linux/mfd/mxc-hdmi-core.h @@ -21,6 +21,11 @@ #include +#include +#include +#include +#include + #define IRQ_DISABLE_SUCCEED 0 #define IRQ_DISABLE_FAIL 1 @@ -50,5 +55,10 @@ extern int mxc_hdmi_disp_id; void hdmi_set_registered(int registered); int hdmi_get_registered(void); unsigned int hdmi_SDMA_check(void); +int mxc_hdmi_abort_stream(void); +int mxc_hdmi_register_audio(struct snd_pcm_substream *substream); +void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream); +unsigned int hdmi_set_cable_state(unsigned int state); +unsigned int hdmi_set_blank_state(unsigned int state); #endif -- cgit v1.2.3