usb: ehci: make HC see up-to-date qh/qtd descriptor ASAP

This patch introduces the helper of ehci_sync_mem to flush
qtd/qh into memory immediately on some ARM, so that HC can
see the up-to-date qtd/qh descriptor asap.

This patch fixs one performance bug on ARM Cortex A9 dual core
platform, which has been reported on quite a few ARM machines
(OMAP4, Tegra 2, snowball...), see details from link of
https://bugs.launchpad.net/bugs/709245.

The patch has been tested ok on OMAP4 panda A1 board, and the
performance of 'dd' over usb mass storage can be increased from
4~5MB/sec to 14~16MB/sec after applying this patch.

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
ARM: dtb: add versatile dtb target to common Makefile

Makes 'make dtbs' build the versatile .dtb files when versatile is enabled.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Support kernel cross build with deb-pkg

Signed-off-by: Avik Sil <avik.sil@linaro.org>
Add device tree files to deb package

Signed-off-by: Avik Sil <avik.sil@linaro.org>
Leave the DT blob in the kernel image package, but move to /lib/firmware

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
usb: otg: Fix build errors if USB_MUSB_OMAP2PLUS is selected as module

TWL4030_USB & TWL6030_USB must depend on USB_MUSB_OMAP2PLUS in Kconfig else
we get build errors with

CONFIG_USB_MUSB_HDRC=m
CONFIG_USB_MUSB_OMAP2PLUS=m
CONFIG_TWL4030_USB=y
CONFIG_TWL6030_USB=y

LD      init/built-in.o
drivers/built-in.o: In function `twl4030_usb_irq':
drivers/usb/otg/twl4030-usb.c:518: undefined reference to `omap_musb_mailbox'
drivers/built-in.o: In function `twl4030_usb_phy_init':
drivers/usb/otg/twl4030-usb.c:540: undefined reference to `omap_musb_mailbox'

drivers/built-in.o: In function `twl6030_usb_irq':
drivers/usb/otg/twl6030-usb.c:230: undefined reference to `omap_musb_mailbox'
drivers/usb/otg/twl6030-usb.c:225: undefined reference to `omap_musb_mailbox'
drivers/built-in.o: In function `twl6030_usbotg_irq':
drivers/usb/otg/twl6030-usb.c:259: undefined reference to `omap_musb_mailbox'

CC: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Make omapdrm to compile after UAPI changes

Commit 718dcedd7e87f448a1eeeda4d1a986284c243110
"UAPI: (Scripted) Disintegrate include/drm" moved drm_mode.h into
different directory. Fortunately drm_crtc.h includes drm_mode.h, so
this is enough just to remove one #include line.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Workaround: create origen_defconfig from the config fragments

Atm the jenkins jobs can't package the dtb into thebhwpack and use
the config fragments for the kernel at the same time, but the both
things are required to boot Origen in LAVA. This origen_defconfig
could be removed after the jenkins jobs are updated.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
gator: Version 5.12

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Add config for building the module in-tree

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Default GATOR_MALI_INTERFACE_STYLE to '2'

At the moment, we only have users with the old style interface, so
make our life easier by making it the default.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Revert #error about lack of CONFIG_PERF_EVENTS

Make this a #warning as in version 5.9. This lets Gator build (with
much reduced functionality) on platforms which require
CONFIG_PERF_EVENTS to be disabled for whatever reason.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Get Makefile to work with DKMS

DKMS uses an absolute paths for $(src) and $(obj) whereas these are
relative paths for other kernel building scenarios. So we need to do
some jiggery-pokery to get the rule for gator_events.h to work in all
situations.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: ubuntu: Add packaging

Files and scripts for creating Debian packages for
Gator and ARM DS-5 target.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: ubuntu: Add DKMS package

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: ununtu: Update to Gator version 5.11

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: Stop using VM_EXECUTABLE

In Linux 3.7, commit e9714acf (mm: kill vma flag VM_EXECUTABLE and
mm->num_exe_file_vmas) breaks Gator's get_exec_cookie() as it uses the
removed flag.

Fix this in a similar as commit 2dd8ad81 (mm: use mm->exe_file instead
of first VM_EXECUTABLE vma->vm_file)

Signed-off-by: Jon Medhurst <tixy@linaro.org>
gator: ununtu: Update to Gator version 5.12

Signed-off-by: Jon Medhurst <tixy@linaro.org>
KBuild: Allow scripts/* to be cross compiled

Cross compiling the binaries in scripts/* is not possible
because various makefiles assume that $(obj)/whatever is
executable on the build host.

This patch introduces a new variable called KBUILD_SCRIPTROOT
that points to script/binaries to use while cross compiling.

Usage:

Build scripts for the build host:
	make O=path/to/buildhost/buildscripts \
		silentoldconfig prepare scripts
Then cross build script for target:
	make O=path/to/target/buildscripts \
		HOSTCC=$CROSS_COMPILE \
		KBUILD_SCRIPTROOT=path/to/buildhost/buildscripts
		silentoldconfig prepare scripts

This patch does not use KBUILD_SCRIPTROOT for all script invocations
it only redefines the following if KBUILD_SCRIPTROOT is defined.

scripts/Makefile.build
	scripts/basic/fixdep --> $(KBUILD_SCRIPTROOT)/scripts/basic/fixdep

scripts/kconfig/Makefile
	$(obj)/conf --> $(KBUILD_SCRIPTROOT)/scripts/kconfig/conf

scripts/mod/Makefile
	$(obj)mk_elfconfig --> $(KBUILD_SCRIPTROOT)/scripts/mod/mk_elfconfig

Signed-off-by: John Rigby <john.rigby@linaro.org>
Merge branch 'tracking-core-configs' into merge-linux-linaro-core-tracking