Commit Graph

38263 Commits

Author SHA1 Message Date
Matt Sealey
d80494af5b config: remove iscsi handlers 2012-12-06 15:30:09 -06:00
Matt Sealey
d2cf5450c2 config: disable wimax module 2012-12-06 15:27:47 -06:00
Matt Sealey
8b88d1c35d font: getting bored of the vga font, so put the new one in (not gpu related :) 2012-12-06 13:06:29 -06:00
Matt Sealey
b65d0151d6 config: updated config, remove wimax and some other unused drivers 2012-12-05 15:26:03 -06:00
Matt Sealey
e879208842 amd-gpu: mxc_gpu put back for Xorg autoloading support
Sigh.. they actually search for the platform device name..
2012-12-03 15:49:14 -06:00
Matt Sealey
ea8899e3ab amd-gpu: correct platform device name for probe and init 2012-12-03 11:01:43 -06:00
Matt Sealey
ad604e630a amd-gpu: rename module from "gpu" to "kgsl" partially to prevent loading
Some of our userspace scripts autoload gpu on boot and rather than mess
with those, it seems prudent to rename the module to kgsl instead.

This will go awry if we get too close to Qualcomm's code, since they
have a kgsl.c which compiles to kgsl.o which may conflict with the
intermediate module object. Be warned :)

Also makes several changes to the GPU config names to match those in
Qualcomm's driver and remove such config options from gsl_buildconfig.h
which is an obtuse way to configure the driver in the Linux kernel..

Logging is disabled until it can be tested.

Please don't enable per process page tables or mmu page fault stuff since
it will go absolutely batshit.
2012-11-26 17:22:44 -06:00
Matt Sealey
d5eebcd215 config: re-enable PREEMPT, disable bzip2 ramdisks (waste of space) 2012-11-20 12:18:14 -06:00
Matt Sealey
db910a3b9b Back out BFS v376, step 2
Such an old version of BFS is not maintained and while it gave us some
noticable benefits, it is not worth dealing with the problems it could
cause.

This reverts commit 469d88e87d.
2012-11-20 12:09:28 -06:00
Matt Sealey
467b7151ad efikamx: more config cutdowns, this time for TV tuners and related audio devices
May be some more cleanups with this, it is not clear which tuners and devices
relate to each other so some drivers may be being built without dependent
tuners - V4L2 is such a mess. Either way this cuts down build time and install
footprint and affects practically nobody.
2012-11-19 18:08:36 +00:00
Matt Sealey
a00ae67a63 config: drop OSS as nobody uses it 2012-11-16 21:48:16 +00:00
Matt Sealey
ca15b03176 efikamx: remove drivers that are ancient and mostly clutter
This includes most DVB/USB stuff and JFS and XFS which nobody is using.
2012-11-09 11:13:52 -06:00
Matt Sealey
7229f8fd17 efikamx: update config to build in ext4 since it makes it easier to boot ramdisk-less systems 2012-11-09 09:20:53 -06:00
Matt Sealey
89813bb753 gpu: fix the weird gpummu/nogpummu memory reservation/allocation mess, and disable the gpummu again for maximum stability 2012-05-16 07:09:18 -05:00
Matt Sealey
6be1fd20cc efikamx: correct IPU revision again (it should be 2 for IPUv3EX however unintuitive that is, and 3 for IPUv3M on MX53). This fixes the IPU driver getting the correct base address. 2012-04-20 11:15:22 -05:00
Matt Sealey
89e13e660a efikamx: correct IPU version and don't want 600ms for SIIHDMI reset (it doesn't take that long) 2012-04-19 13:23:30 -05:00
Zeng Zhaoming
4fdaa5078c ENGR00144281 SDMA: System hangs in bootup when kernel_preempt not enable
When kernel_preempt not enable in configure, system bootup hangs
in sdma initialization.

This is caused by sdma initialization waiting for channel0 complete loading
script in queue, and arch_idle happens with action to disable some clocks,
if DDR clock disabled, script loading will failed and SoC hangs.

Solve it by make sure DDR clock is enabled during sdma initialization.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2012-03-10 11:29:35 -06:00
Matt Sealey
3337202afe efikamx: fix post-build-test and pre-commit accidental typo 2012-03-08 15:28:36 -06:00
Matt Sealey
4fa3f18a58 ipu: add platform data method to determine pixel clock accuracy (external or internal).
If the internal clock is deadly accurate for the desired mode, that will be used instead
(the accuracy is set to within 1/200th which is well within VESA standards of 1/50th) to
save power.

efikamx changes: for HDMI, try external clock when necessary. For LVDS, don't since there
is some weird clock mess with the binary blob for the LCD panels in the mtl017 driver
which we think is derived from the lack of external clock support in more ancient kernels.
It is fudging the values to both correct some kind of panel EDID bug and also to fix the
potential deviation in clock, but since it's a binary blob it's kind of hard to change.
2012-03-08 15:22:33 -06:00
Matt Sealey
38e736cbad cleanup 2011-12-15 13:36:34 -06:00
Matt Sealey
e2740bfd48 Revert "audio: keep SGTL5000 clock on as the same clock is used for SPDIF 48Khz capability"
This actually didn't help anything as somehow the SPDIF and SGTL5000 just stopped working..

This reverts commit 2e1c46fb5c.
2011-12-02 20:29:01 -06:00
Matt Sealey
2e1c46fb5c audio: keep SGTL5000 clock on as the same clock is used for SPDIF 48Khz capability 2011-11-10 11:34:57 -06:00
Matt Sealey
0522664753 pmic,mmc: make VGEN2 and VSD regulators always pump 3.15V (3.3V is not possible apparently). VSD doesn't seem to be connected to anything on any EfikaMX board so it is debatable whether it needs to be turned on at all.. 2011-11-03 12:50:45 -05:00
Matt Sealey
b763d6b7a3 pmic,mmc: sacrifice a little battery life for improved SD card compatibility
* bump regulator to 3.3V
* this is safe for all SD cards up to standard
* unfortunately letting it drop to 1.8V is not a workable solution on systems with multiple SD card slots unless they all agree on a low voltage (and currently there is no way for them to communicate this requirement)
2011-10-25 13:51:39 -05:00
Matt Sealey
84401a30c1 pmic,mmc: bump regulator voltage to 3.3V for quirky SD cards
3.0V may let most work but in using two cards together it seems that's not enough voltage for
some. Since the regulator can be dropped to 1.8V this won't bode well for two cards with
different capabilities but the regulator probably won't be changed by the current driver in
use. All SD cards regardless of type absolutely must be able to run at 3.3V so this is not a
dangerous change and can only improve the situation, although mileage as always can vary..
2011-10-24 09:30:23 -05:00
Sammy He
df8868e307 ENGR00151762 vpu: Fix system hang due to long time video playback on mx51
Fix system hang due to long time video playback. This issue is only
on i.MX51 platfrom due to changing vpu clock parent in vpu_enable/
disable. Set vpu clock parent to axi_a forever to fix it.

Signed-off-by: Sammy He <r62914@freescale.com>
2011-09-21 10:38:44 -05:00
Troy Kisky
6a1c89a3c6 SPI fixes from BoundaryDevices. Re-enable MTD! 2011-09-12 11:26:33 -05:00
Matt Sealey
469d88e87d BFS scheduler v376 - does a great deal for audio stuttering 2011-09-12 09:31:15 -05:00
Matt Sealey
f7218b7896 Disable preemption and CPU frequency governors other than performance, solves some stability problems probably down to staging and GPU driver. Update HZ value to be closer to the minimum i.MX timer tick for a little better responsiveness. 2011-09-12 08:57:48 -05:00
Matt Sealey
c84310addb cpufreq: allow building without cpu frequency drivers 2011-09-09 16:49:21 -05:00
Matt Sealey
c9f5504a1a gpu: enable HAL debug
gpu: pull in some command stream differences from Qualcomm's MSM kernel (might fix some intermittent GPU hangs)
display: enable quick testing of non-mmu operation (hangs X right now)
2011-08-30 12:38:48 -05:00
Matt Sealey
d82a8f4074 bump reserved memory for all platforms to 16MB - reduction of 16MB from 'top, increase of 8MB from 'book. 16MB is enough to hold a double buffered 1080p
screen at 32bit. We will simply drop from 3*yres to 2*yres if we're pushing the limit in the framebuffer driver.
2011-08-25 10:37:01 -05:00
Matt Sealey
a940a406a3 Reinstate the 32MB reserved area for GPU since DMA allocations of large sizes just don't work.
Correct EMEM2 and PHYS area sizes for GPU to 16MB each (may need refinement)
Bump max zone order anyway
2011-08-02 17:08:32 -05:00
Matt Sealey
ca17b53a2d fb: re-enable second framebuffer 2011-08-01 08:22:02 -05:00
Kirill A. Shutemov
eca801dcf0 ARM: 5701/1: ARM: copy_page.S: take into account the size of the cache line
Optimized version of copy_page() was written with assumption that cache
line size is 32 bytes. On Cortex-A8 cache line size is 64 bytes.

This patch tries to generalize copy_page() to work with any cache line
size if cache line size is multiple of 16 and page size is multiple of
two cache line size.

After this optimization we've got ~25% speedup on OMAP3(tested in
userspace).

There is test for kernelspace which trigger copy-on-write after fork():

 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>

 #define BUF_SIZE (10000*4096)
 #define NFORK 200

 int main(int argc, char **argv)
 {
         char *buf = malloc(BUF_SIZE);
         int i;

         memset(buf, 0, BUF_SIZE);

         for(i = 0; i < NFORK; i++) {
                 if (fork()) {
                         wait(NULL);
                 } else {
                         int j;

                         for(j = 0; j < BUF_SIZE; j+= 4096)
                                 buf[j] = (j & 0xFF) + 1;
                         break;
                 }
         }

         free(buf);
         return 0;
 }

Before optimization this test takes ~66 seconds, after optimization
takes ~56 seconds.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@nokia.com>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-07-28 19:36:56 -05:00
Laura Abbott
721fc6f779 ARM: 6945/1: Add unwinding support for division functions
The software division functions never had unwinding annotations
added. Currently, when a division by zero occurs the backtrace shown
will stop at Ldiv0 or some completely unrelated function. Add
unwinding annotations in hopes of getting a more useful backtrace
when a division by zero occurs.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Acked-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-07-28 19:28:06 -05:00
Matt Sealey
4ffd877f1b display: go back to reserving a framebuffer so the base address doesn't move around on boot and make X go crazy.
8MB on Smartbook, 32MB on Smarttop. Dynamically allocating the framebuffer for 1920x1080-32 didn't work with the
dynamic method anyway (sigh) due to memory fragmentation.
Also, align framebuffer stride to 32 bytes to fix Z430 acceleration in X
2011-07-28 17:59:54 -05:00
Matt Sealey
1f11661da3 Move modedb file to drivers/video with the other modedbs 2011-07-12 11:24:56 -05:00
Matt Sealey
901989541c Put IRAM audio back in as a config option, make imx-pcm a module.. 2011-07-11 12:59:01 -05:00
Matt Sealey
b14bbcf8d3 config update: stop using IRAM for audio buffers 2011-07-04 17:59:42 -05:00
Danny Nold
612a7d0058 ENGR00140737-1 - ARM: plat-mxc: Disable child clocks before parent clocks
- Reversed ordering in which clocks are disabled.  Child clocks should
be disabled before parent (root) clocks.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2011-07-04 17:55:50 -05:00
Matt Sealey
1f0c20d638 siihdmi: backport 2.6.35 driver to .31 - hotplug is the biggest major feature 2011-07-04 14:26:27 -05:00
Matt Sealey
5c480f9bf8 remove unused audio data 2011-07-04 13:14:26 -05:00
Matt Sealey
cbd383b002 display: register a dummy framebuffer as fb1 so that the overlay is fb2.
This fixes some braindead bug in gst_mfw_v4lsink or libipu or some other
userspace code (or maybe a hidden kernel thing) where it cannot work out
what it's doing unless the overlay is /dev/fb2.

Ahmed Ammar originally wrote this for our .35 port but we're backporting it
now in lieu of .35 actually being production ready. Thanks Ahmed!
2011-07-03 14:09:11 -05:00
Lily Zhang
9dd0f3b99a ENGR00144309 do nothing if the core frequency is not changed
When the system enters low bus frequency mode by executing the
following operations, the system enters dead loop to check
arm_podf_busy bit:

1. Store the rootfs on SD card.
2. type "echo 8 > /proc/sys/kernel/printk"
3. type "echo 1 > /sys/devices/platform/mxc_dvfs_core.0/enable"
4. type "ifconfig eth0 down"
5. type "echo 1 > /sys/class/graphics/fb0/blank"
6. The system enters low bus frequency mode. And it keeps

to print "ARM_PODF still in busy!!!!"
2011-06-28 16:51:16 -05:00
Matt Sealey
6059f7ef57 Reorder PATA pins to match docs (S 4-90, Table 4-2) even though it looks less logical 2011-06-28 16:35:57 -05:00
Matt Sealey
26ede7274e audio: refine clock for SGTL5000 2011-06-28 15:51:21 -05:00
Matt Sealey
2811c4a4ef Remove preallocation of framebuffer and GPU memory in favor of being nice and dynamic. Note that GPU memory reserved is entirely down to the MMU now, and framebuffer memory is "size of framebuffer" rounded up to 1MB block.
Everything still works.

Includes a Wild mashup of Freescale ENGR00143019 which concludes GPU MMU support for the platform.
2011-06-28 15:08:08 -05:00
Steev Klimaszewski
a84fac75f3 [ARM] wire up sys_accept4() on ARM
sys_accept4() was added in kernel 2.6.28, but ARM was not updated
to include it.  The number and types of parameters is such that
no ARM-specific processing is needed, so wiring up sys_accept4()
just requires defining __NR_accept4 and adding a direct call in
the syscall entry table.
2011-06-09 19:28:48 -05:00
Matt Sealey
d4c0146318 modify config to build-in PATA and MMC subsystems. Doesn't make a lot of sense
to modularize these in the grand scheme of things even if this is what Ubuntu
tends to do (it is not as if we have PCI slots and potential for multiple
different options).
2011-06-08 09:49:48 -05:00