kernel/kernel-mfld-blackbay.git
12 years agogfx: pvr: refactor fw state dumping code
Imre Deak [Thu, 10 Nov 2011 16:22:50 +0000 (18:22 +0200)]
gfx: pvr: refactor fw state dumping code

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add Kconfig option to dump fw trace to console
Imre Deak [Thu, 10 Nov 2011 16:22:49 +0000 (18:22 +0200)]
gfx: pvr: add Kconfig option to dump fw trace to console

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: fix display backlight PWM duty cycle setting
Jani Nikula [Fri, 11 Nov 2011 13:43:10 +0000 (15:43 +0200)]
gfx: drv: fix display backlight PWM duty cycle setting

Fix broken PWM calculation. The PWM register accepts values between
0x00...0x63, corresponding to pulse duty cycles of 0...99%.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: reduce verbosity of debug messages
Imre Deak [Tue, 8 Nov 2011 16:18:59 +0000 (18:18 +0200)]
gfx: pvr: reduce verbosity of debug messages

Not much use in these messages, removing them reduces trashing on the
console.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: remove warning on gaps in the IOCTL ID range
Imre Deak [Tue, 8 Nov 2011 16:18:58 +0000 (18:18 +0200)]
gfx: pvr: remove warning on gaps in the IOCTL ID range

There is no reason to warn for gaps only bigger than 5, while allowing
gaps less than 5. Also in the future we will have a gap as we want to
move the PDUMP IDs to the end of the range. Undefined IOCTLs will be
caught anyway by the IOCTL dispatcher, so remove this check.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add header to track the ABI version
Imre Deak [Tue, 8 Nov 2011 16:18:57 +0000 (18:18 +0200)]
gfx: pvr: add header to track the ABI version

This includes the IOCTL and the firmware ABI version. The following
build and runtime check between the PVR kernel driver and the PVR user
space libraries will be made based on this:

kernel major = user space major
kernel minor >= user space minor

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: remove ABI dependency on firmware tracing feature
Imre Deak [Wed, 9 Nov 2011 11:48:16 +0000 (13:48 +0200)]
gfx: pvr: remove ABI dependency on firmware tracing feature

There is no reason to have the IOCTL/firmware ABI dependent on this
option. Revmoing the dependency will also enable us to toggle tracing
on/off dynamically in the future.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: clarify Kconfig terms wrt. ABI version vs. simple debug
Imre Deak [Mon, 7 Nov 2011 16:51:11 +0000 (18:51 +0200)]
gfx: pvr: clarify Kconfig terms wrt. ABI version vs. simple debug

Give a better name for the Kconfig option selecting the ABI version
(release or debug) and add a new option for simple debug messages and
asserts.

Disable debugging in bridged_pvr_bridge.c, the following patch will
enable debugging/asserts through Kconfig everywhere in the driver.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: tc35876x: don't oops if functions are called before probe
Jani Nikula [Fri, 4 Nov 2011 13:32:39 +0000 (15:32 +0200)]
gfx: drv: tc35876x: don't oops if functions are called before probe

The whole driver has serious design issues due to the rest of the display
controller code calling the driver's functions directly. In some (typically
failure) circumstances the calls might come in before the driver has
probed. Don't oops in such cases, but emit a warning. The proper fix will
require some redesign and rework later on.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: tc35876x: fix bridge and panel GPIO numbers and usage
Jani Nikula [Fri, 4 Nov 2011 13:32:38 +0000 (15:32 +0200)]
gfx: drv: tc35876x: fix bridge and panel GPIO numbers and usage

Get the GPIO numbers from platform data. Clean up old #defined GPIO numbers
from the code. New ones will be easy to add through platform data as
needed.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: indicate presence of cache op in misc info
Imre Deak [Fri, 4 Nov 2011 12:28:08 +0000 (14:28 +0200)]
gfx: pvr: indicate presence of cache op in misc info

This is expected by the 1.7 user space libraries.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Update error return codes to match 1.7
Pauli Nieminen [Fri, 4 Nov 2011 12:28:07 +0000 (14:28 +0200)]
gfx: pvr: Update error return codes to match 1.7

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add force cleanup param
Imre Deak [Fri, 4 Nov 2011 12:28:06 +0000 (14:28 +0200)]
gfx: pvr: add force cleanup param

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Remove unused variable from uKernel struct
Pauli Nieminen [Fri, 4 Nov 2011 12:28:05 +0000 (14:28 +0200)]
gfx: pvr: Remove unused variable from uKernel struct

1.7 doesn't have backward compatible destination variables any more for
uKernel. They have to be removed to allow 2D blit operations work.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Add host control variable to match uKernel
Pauli Nieminen [Fri, 4 Nov 2011 12:28:04 +0000 (14:28 +0200)]
gfx: pvr: Add host control variable to match uKernel

uKernel gets extra variable in 1.7 to avoid hardware recovery whe there
is long running OpenCL task. But OpenCL isn't required yet so
implementation of timeout extension is postboned.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Implement uKernel assert fail status variable
Pauli Nieminen [Fri, 4 Nov 2011 12:28:03 +0000 (14:28 +0200)]
gfx: pvr: Implement uKernel assert fail status variable

New uKernel has assert fail variable to check if micro kernel hit any
assertions. That needs to be adapted in out control structure.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Update add shared parameter buffer ioctl
Pauli Nieminen [Fri, 4 Nov 2011 12:28:02 +0000 (14:28 +0200)]
gfx: pvr: Update add shared parameter buffer ioctl

1.7 changed sgx add shared paramter buffer ioctl structure and
implementation. Adapt changes to our kernel.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Implement ioctl return for devinitpart2
Pauli Nieminen [Fri, 4 Nov 2011 12:28:01 +0000 (14:28 +0200)]
gfx: pvr: Implement ioctl return for devinitpart2

1.7 DDK adds build options to sgx device init part2 ioctl.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add PVRSRVSyncOps{TakeToken, FlushToToken}
Imre Deak [Fri, 4 Nov 2011 12:27:59 +0000 (14:27 +0200)]
gfx: pvr: add PVRSRVSyncOps{TakeToken, FlushToToken}

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: make DoQuerySyncOpsSatisfied accept counter snaphots
Imre Deak [Fri, 4 Nov 2011 12:27:58 +0000 (14:27 +0200)]
gfx: pvr: make DoQuerySyncOpsSatisfied accept counter snaphots

This is needed by the upcoming patch, adding IOCTLs for sync counter
manipulations.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: annotate IOCTL IDs
Imre Deak [Fri, 4 Nov 2011 12:27:57 +0000 (14:27 +0200)]
gfx: pvr: annotate IOCTL IDs

The actual ID helps in debugging.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix sgx transfer kick IOCTLs
Imre Deak [Fri, 4 Nov 2011 12:27:55 +0000 (14:27 +0200)]
gfx: pvr: fix sgx transfer kick IOCTLs

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: change map/export_devmem to map/export_devmem_2
Imre Deak [Fri, 4 Nov 2011 12:27:53 +0000 (14:27 +0200)]
gfx: pvr: change map/export_devmem to map/export_devmem_2

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: enable workqueues
Imre Deak [Fri, 4 Nov 2011 12:27:52 +0000 (14:27 +0200)]
gfx: pvr: enable workqueues

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Keep required drm pos close function
Imre Deak [Fri, 4 Nov 2011 12:27:51 +0000 (14:27 +0200)]
gfx: pvr: Keep required drm pos close function

Post close function is correct implementation variant for psb drm
implementation. We have to use that independ of workqueue settings.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add missing IOCTLs
Imre Deak [Fri, 4 Nov 2011 12:27:50 +0000 (14:27 +0200)]
gfx: pvr: add missing IOCTLs

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix SGX KICK IOCTL param struct
Imre Deak [Fri, 4 Nov 2011 12:27:49 +0000 (14:27 +0200)]
gfx: pvr: fix SGX KICK IOCTL param struct

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix typo in PVRSRV_BRIDGE_CHG_DEV_MEM_ATTRIBS name
Imre Deak [Fri, 4 Nov 2011 12:27:48 +0000 (14:27 +0200)]
gfx: pvr: fix typo in PVRSRV_BRIDGE_CHG_DEV_MEM_ATTRIBS name

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Update heap address to match 1.7 DDK
Imre Deak [Fri, 4 Nov 2011 12:27:47 +0000 (14:27 +0200)]
gfx: pvr: Update heap address to match 1.7 DDK

Heap bases and sizes were updated in 1.7 DDK. Adapt changes to the
driver.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: Split 3D paramter heap to shared and per context
Imre Deak [Fri, 4 Nov 2011 12:27:46 +0000 (14:27 +0200)]
gfx: pvr: Split 3D paramter heap to shared and per context

1.7 user space assumes that 3D paramter heap is split to shared and per
context heaps. We have to add that to kernel heap setup to support the
new DDK.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix SGX get misc info ABI
Imre Deak [Wed, 2 Nov 2011 18:41:58 +0000 (20:41 +0200)]
gfx: pvr: fix SGX get misc info ABI

This wasn't caught by the IOCTL size checking, since the structure is
accessed through an extra redirecation. This redirection should be
removed at some point, since it's pointless.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix clock enabling per 1.7
Imre Deak [Wed, 2 Nov 2011 17:41:40 +0000 (19:41 +0200)]
gfx: pvr: fix clock enabling per 1.7

This is expected by the 1.7 user space and fixes a hard lockup problem
during SGX initialization.

Thanks for Pauli for spotting the difference between the two DDK versions.

Spotted-by: Pauli Nieminen <pauli.nieminen@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: rename DEBUG to PVR_DEBUG_EXT
Imre Deak [Wed, 2 Nov 2011 17:41:39 +0000 (19:41 +0200)]
gfx: pvr: rename DEBUG to PVR_DEBUG_EXT

DEBUG is used for generic debugging in the kernel, but for PVR it
changes the IOCTL ABI. Since we don't want this do the above rename and
keep DEBUG for debug prints.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: tc35876x: fix input muxing for dv1
Jani Nikula [Wed, 2 Nov 2011 16:46:53 +0000 (18:46 +0200)]
gfx: drv: tc35876x: fix input muxing for dv1

The LVDS pin configuration has changed for dv1. Set the LVDS-TX transmitter
input muxing accordingly.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agoRemove the reference to the moorestown directory.
Charles Johnson [Tue, 1 Nov 2011 23:23:39 +0000 (16:23 -0700)]
Remove the reference to the moorestown directory.

Signed-off-by: Charles Johnson <charles.f.johnson@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: make page flip work on fb's with pvrBO null
Ander Conselvan de Oliveira [Wed, 26 Oct 2011 13:29:14 +0000 (16:29 +0300)]
gfx: drv: make page flip work on fb's with pvrBO null

The fb created in psbfb_create for stolen memory has a null
pvrBO. Make it possible to page flip a way from it.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: drv: add missing mdfld_gl3 header
Imre Deak [Tue, 1 Nov 2011 09:31:30 +0000 (11:31 +0200)]
gfx: drv: add missing mdfld_gl3 header

Fix compilation when CONFIG_MDFD_GL3 is on.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: fix MDFD_GL3 makefile logic
Imre Deak [Tue, 1 Nov 2011 09:30:58 +0000 (11:30 +0200)]
gfx: fix MDFD_GL3 makefile logic

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: display: force panel type
Imre Deak [Mon, 31 Oct 2011 17:04:20 +0000 (19:04 +0200)]
gfx: display: force panel type

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: fix SGX_BRIDGE_INIT_INFO per 1.7
Imre Deak [Fri, 28 Oct 2011 13:42:39 +0000 (16:42 +0300)]
gfx: pvr: fix SGX_BRIDGE_INIT_INFO per 1.7

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: increase SGX_MAX_INIT_MEM_HANDLES per 1.7
Imre Deak [Fri, 28 Oct 2011 13:34:59 +0000 (16:34 +0300)]
gfx: pvr: increase SGX_MAX_INIT_MEM_HANDLES per 1.7

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add missing 1.7 ukernel commands
Imre Deak [Fri, 28 Oct 2011 13:29:44 +0000 (16:29 +0300)]
gfx: pvr: add missing 1.7 ukernel commands

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: keep around IOCTL names even for release build
Imre Deak [Fri, 28 Oct 2011 13:10:57 +0000 (16:10 +0300)]
gfx: pvr: keep around IOCTL names even for release build

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: tc35876x: don't register the device, ufi does it already
Imre Deak [Fri, 28 Oct 2011 13:09:36 +0000 (16:09 +0300)]
gfx: tc35876x: don't register the device, ufi does it already

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: tc35876x: fix i2c driver/device name mismatch
Imre Deak [Fri, 28 Oct 2011 13:08:17 +0000 (16:08 +0300)]
gfx: tc35876x: fix i2c driver/device name mismatch

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agogfx: pvr: add missing 1.7 IOCTL IDs
Imre Deak [Fri, 28 Oct 2011 13:03:51 +0000 (16:03 +0300)]
gfx: pvr: add missing 1.7 IOCTL IDs

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
12 years agoPVR driver
Justin Dou [Thu, 3 Mar 2011 12:15:22 +0000 (20:15 +0800)]
PVR driver

commit f0caf5295ff37b0f4ecb39b6b12f9f61b83f5eec
Author: Charles Johnson <charles.f.johnson@intel.com>
Date:   Tue Oct 11 14:01:37 2011 +0300

    GFX: Fix display init by moving mdfld_dsi_pkg_sender_init() earlier

    The DSI-LVDS bridge driver code moved the mdfld_dsi_pkg_sender_init() call
    later in mdfld_dsi_output_init(). This breaks display init for command mode
    panels, so move it back.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 23bb3b4c739813c0e461d0c00143b8ccb0bdfd12
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Oct 18 11:06:37 2011 +0300

    gfx: pvr: drop Moorestown specific files

    Remove unused Moorestown specific files in PVR.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 989d469cf7e30d79933c46ac981e8eaea159d9e3
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Oct 18 10:49:23 2011 +0300

    gfx: display: drop support for Medfield A0

    Remove hacky workarounds for an old board revision.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 895910f95ab83852ad7b9ea48e73d5abd151ec11
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Oct 18 10:29:28 2011 +0300

    gfx: pvr: drop #ifdef CONFIG_X86_MRST

    Moorestown is not supported. Remove code paths depending on
    CONFIG_X86_MRST=y.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5412b558670e148323100475a466d54f2968718e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Oct 18 10:28:03 2011 +0300

    gfx: display: drop #ifdefs on CONFIG_X86_MRST

    Moorestown is not supported. Remove code paths depending on
    CONFIG_X86_MRST=y.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 1654d116601bc06ee8c0576b0ebcc6aa3e5430d3
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Oct 18 10:13:19 2011 +0300

    gfx: display: drop IS_FW_UPDATED macro

    Yes, let's assume we really have updated the firmware. Remove IS_FW_UPDATED
    macro, unconditionally defined as 1, and regard it as 1.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit eeb911cf7a55c36df4c1f3acb7cdf17d703217e7
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 17:53:18 2011 +0300

    gfx: display: fix a number of compiler warnings

    Fix some compiler warnings.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit b204c62730c2ddb8a89f231928476a598b1b8121
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 17:33:48 2011 +0300

    gfx: imgv: drop Lincroft topaz support

    Lincroft is not relevant for Medfield. Remove Lincroft topaz support.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit c6b25a0bc70b5627f03ba335797c04412dbd5662
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 17:02:11 2011 +0300

    gfx: display: clean up psb_drv.h a bit

    The psb_drv.h has accumulated excess cruft. Tidy it up a bit, removing
    unused code.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 8e7642d52cfbf2e0a25c4088dc80aa7783a909f3
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 16:46:09 2011 +0300

    gfx: display: drop unused i2c module

    Remove unused code left behind in earlier cleanups.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 39de15266755794e0defa94d3639478bc5d98114
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 16:37:47 2011 +0300

    gfx: display: drop unused modes support

    Remove unused code left behind in earlier cleanups.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit a7c57928751bcaf932d0d56dc19701c651d5ad54
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:33:49 2011 +0300

    gfx: display: drop unused Pyrenees panel support

    Remove unused and bitrotting panel driver.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5e1855228771a00d5cc44f850720c16f57456a69
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:23:14 2011 +0300

    gfx: display: drop unused BIOS support files

    These BIOS routines are not used in Medfield. Remove them.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 46b2bed9b7e628763751f2d19e871ab5dad9b96d
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:20:36 2011 +0300

    gfx: display: drop the rest of the unused LVDS code

    Keep purging LVDS related code not relevant in Medfield.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 676b6125308e5cee924a124a81b796b73f0a0526
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:12:12 2011 +0300

    gfx: display: drop unused SDVO support

    SDVO is not supported in Medfield. Remove the code.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f32caf1bb703c5bd2f769dad960626f2deb4f62c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:08:59 2011 +0300

    gfx: display: drop unused Aava DSI display driver

    Remove unused and bitrotting display driver.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit e45e1c13d1de3ff7542bf4725154a834af4c0b78
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 14:06:29 2011 +0300

    gfx: display: drop unused Moorestown DSI files

    Remove Moorestown specific DSI support code.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 34903fb8888caec18249d1c38660676d34f42fbb
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 13:59:20 2011 +0300

    gfx: display: clean up unused backlight functionality

    Remove backlight related code not relevant in Medfield.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 193157347041dbc678b4875d15c80b0b624152b5
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Oct 14 14:46:54 2011 +0300

    gfx: display: remove unused watchdog functionality

    Remove watchdog related functionality that is not used on Medfield.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 6cce56805947da0bcd6e9a4d585e3b55b6c7cacc
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Oct 14 14:39:10 2011 +0300

    gfx: display: remove unused Poulsbo lid related functionality

    Drop Poulsbo specific code related to lid.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 14e00f79b5ba7f94628dfefa26bc0f6396f0e302
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 13:53:36 2011 +0300

    gfx: display: clean up display and LVDS support, dropping unused code

    Focusing on Medfield support only allows us to drop unused and bitrotting
    code.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 40c24db86884cc1804ca4d30f8b57515e33d50c4
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 12:31:23 2011 +0300

    gfx: topaz and msvdx are always enabled in Medfield

    Topaz and msvdx are present in Medfield. Remove IS_TOPAZ() and IS_MSVDX()
    macros and consider them always true.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 7b2b1ae58b2ce07ea2f43fc0f25ef822b52cbb69
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 12:27:43 2011 +0300

    gfx: drop non-Medfield support

    Drop support for anything other than Medfield. Remove IS_MDFLD() macro and
    consider it always true.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 00d0cfba8f7fafc2f9f901896eb8d928698f14ce
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 12:06:25 2011 +0300

    gfx: drop Moorestown support

    Drop Moorestown support. Remove IS_MRST() macro and consider it always
    false.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5be8a9e6524f5eb9caf9aacb2010fca52280f1bb
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 11:34:44 2011 +0300

    gfx: display: drop Moorestown MM support

    Drop Moorestown MM support. Remove IS_MRST_MM() macro and consider it
    always false.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit ec418c2d3342dce4c66cbbc14bbe08f1338dddd0
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 11:32:30 2011 +0300

    gfx: display: drop Oaktrail support

    Drop Oaktrail support. Remove IS_OAKTRAIL() macro and consider it always
    false.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit d3b4ea082fdc2d9a6c27f9457a0e09d8dad6b9fe
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 17 11:30:55 2011 +0300

    gfx: display: drop non-MID support

    Drop non-MID support. Remove IS_MID() macro and consider it always true.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 2d12c777b382a51c9273b79ebe48d586299085de
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Oct 14 14:08:32 2011 +0300

    gfx: display: drop Poulsbo support

    Drop Poulsbo support. Remove IS_POULSBO() macro and consider it always
    false.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 8ac4007de566b708e1daed763c1b703bb28de1e9
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Oct 14 12:29:57 2011 +0300

    gfx: display: Initialize DSI-LVDS bridge chip only when it's used

    Fix modular build, but does not allow the module to be unloaded.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 74a69ce53506de2d7970b497f89440553bfbe3ba
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Oct 13 17:43:00 2011 +0300

    Revert "graphics: Fix build as module"

    This reverts commit "graphics: Fix build as module", which oopses on
    graphics driver probe.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit ede699dc31f726bc06d65f09d17e485e0e39cabc
Author: Alan Cox <alan@linux.intel.com>
Date:   Thu Oct 13 10:41:23 2011 +0100

    gfx: drop Moorestown support

    First step at dropping Moorestown support: don't build it. This is part of
    a larger commit in AC tree filtered to drivers/staging/mrst.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 379b9b51688ed33cd2385954cfd61350ad7d6756
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Oct 13 14:36:19 2011 +0100

    gfx: pvr: change SECURE_FD_EXPORT compile option into a run-time check

    At the moment we need to support user space libraries compiled both with
    and without this option on. Check which library is in use and change the
    functionality accordingly.

    Note that this option is only a poor workaround for a problem in user
    space. Once we have a proper fix there, we can remove the corresponding
    code here.

    Also move -DSUPPORT_MEMINFO_IDS to where similar defines are specified
    and remove -DPVR_SECURE_HANDLES which is already specified elsewhere.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 8cfeef14fa2f72e68ba7c87f67ced2ad8776a918
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Oct 13 14:36:18 2011 +0100

    gfx: pvr: prepare for build options that can mismatch

    Needed by the next patch.

    We need a place for options bits that user space can pass to the driver.
    These bits - unlike the current compile option bits - will not be
    compared to the driver's compile option bits, the same driver binary will
    support user space libraries both with these bits on or off.

    Also sanitize some of the debug/error prints.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 4862da2e2dcf43226b7b66d8eee4c7e840144ae4
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Oct 13 14:36:18 2011 +0100

    gfx: pvr: add pvr_get_sgx_dev_info

    Factor out this functionality to its own function and use it in the
    spot where it was inlined earlier.

    Needed by the next patch.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit c2db37c90938424be4b9493f2b2615d17f37a140
Author: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Date:   Thu Oct 13 14:36:18 2011 +0100

    gfx: pvr: Add dummy ioctl entry for a new UMG ioctl

    To have same ABI with HC userspace we need stub ioctl entry for a new
    UMG ioctl. The ioctl is to query current buffer index from swapchain.
    But we have depracated swapchain support in kernel so no point
    implementing the ioctl.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 62fd2f750283b44a0ec529ec6d32889ed0e9fab6
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Oct 13 14:36:17 2011 +0100

    gfx: pvr: check also the PVR specific retval of IOCTLs

    In addition to the standard IOCTL error return, the PVR driver can
    return a custom error code in it's IOCTL out structure. Check for this
    too.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 16a1c431f86110e8d3d19bcc1b57ecb9afb7b708
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 12 19:22:47 2011 +0100

    gfx: pvr: add white list based firmware version check

    Do this to support multiple SGX firmware versions. Until now there had
    to be an exact match between firmware and kernel driver versions, which
    made maintenance of the kernel driver difficult. This change is the
    beginning of a series of changes that relaxes the user
    space/kernel/firmware dependency as much as possible and allows us to
    have a single kernel driver for all supported configurations.

    Also do some error/debug printing sanitizing on the way.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 39897129184c47ea32ef87917c88a7d7bb3165cd
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 12 19:22:46 2011 +0100

    gfx: pvr: check sizes of IOCTL parameter structures

    This sanity check can be done easier using the IOC_* macros for
    well-written IOCTLs. In case of PVR IOCTLs we have to do them manually,
    since each input/output IOCTL parameter is accessed through an extra
    redirection from a fixed IOCTL structure that is the same for every PVR
    IOCTL.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 50ee3670f22df7525b83dfe163c3586afcbf79b5
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 12 19:22:46 2011 +0100

    gfx: pvr: add convenience variable

    Needed by the upcoming patch.

    Also sanitize a debug printing on the way.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 96b148ad595dd104c7a2f0d06d0fae6cd0e090c3
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 12 19:22:45 2011 +0100

    gfx: pvr: fix IOCTL ABI w.r.t SGX kick IOCTL

    Recent PVR user space library versions extended the parameter structure
    of this IOCTL effectively changing the ABI. Fix the structure
    accordingly.

    bLastInScene is supposed to optimize on some of the cache flushes before
    starting a rendering operation. It's still under investigation whether
    it's safe to do this though. Until we figure this out, ignore this
    parameter and perform cache flushes as before.

    SGX_MAX_SRC_SYNCS is the maximum number of source buffers per render
    operation for which buffers we can do a dependency check.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 30fee8cb6bd1ef947c80aa927a8b4bdfffa674d5
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 12 19:22:45 2011 +0100

    gfx: pvr: fix IOCTL ABI w.r.t MEMINFO_IDS, SECURE_FD_EXPORT, SECURE_HANDLES

    Recent PVR user space library versions extended some of the IOCTL
    parameter structures, effectively changing the ABI. These extensions
    are optionally built based on the above Kconfig options. They are
    in fact only workarounds for problems in those library versions, so
    after we fixed those problems in the libraries properly we shoud remove
    the support for them in the driver.

    For other library versions not depending on these features, enabling
    them won't have any functional difference. The net result is that we
    remove the ABI dependency and can use both types of library versions
    with the same driver binary.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 5e809df345a679f2d99bf79cfbba041ab33bed99
Author: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Date:   Fri Oct 7 15:36:19 2011 +0300

    gfx: Use drm mode page flipping also in medfield

    The page flip was originally developed and tested using mrst prototype
    but same code works correctly in medfield too. To enable flip support
    driver has to add the flip function to medfield crtc function pointers.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
commit dd97cf8808b283727a0b7114268559db43536c16
Author: Alan Cox <alan@linux.intel.com>
Date:   Mon Oct 3 12:46:53 2011 +0100

    graphics: Fix build as module

    One module_init only

Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 122715042e4127e8fa27fb745ae0ae405e9a9fef
Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Date:   Fri Sep 30 12:52:44 2011 +0100

    pvr: drv: implement drm page flip ioctl

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit d6171d71d2839559253d9bf0c33bcba4271f73f8
Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Date:   Fri Sep 30 12:52:43 2011 +0100

    pvr: srvkm: add a callback based sync mechanism

    Users of this mechanism can register a callback that will be called
    when the specified sync object's completed ops turn to be greater or
    equal to the current pending values. If the specified object is already
    in sync, the callback will be called immediately. The flags control
    whether read, write or both types of operations should be considered.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit a881d79a4ef3d994de797e6910cd3f24e3b06b28
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 20 16:54:00 2011 +0300

    GFX: Add tc358764xbg/65xbg MIPI DSI-LVDS bridge chip support

    Add preliminary support for Toshiba tc358764xbg/65xbg MIPI DSI-LVDS bridge
    chip. Set panelid=TC35876X on the kernel command line to enable support.

    ISSUES/TODO:

    * The I2C device and GPIO line numbers should be defined in firmware,
      rather than hard coded in the driver. Consequently, this implementation
      only works on dv0.9.

    * The driver exposes functions that are called from here and there in the
      display controller driver, even before the driver has been initialized.

    * The implementation touches DSI clock registers, among other things,
      directly without locking. It seems to usually work by accident.

    * Many of the problems in the implementation (like the above) come from the
      fact that the whole display controller driver lacks proper infrastructure
      for pretty much everything, including easily adding new display
      drivers. It's not trivial to fix this when adding a new driver.

    * Fix checkpatch/sparse errors.

    This patch is based on earlier work by (at least) Srinivas Pandruvada, Paul
    Drews, Ke Ai, and Michael Demeter.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 6e9f8dd97fc07f19c47f3d4160ce442aecbac830
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Sep 23 17:16:28 2011 +0300

    GFX: Redefine register addresses with pipe parameter

    Replace MIPIA_SOME_REG + reg_offset constructs with MIPI_SOME_REG(pipe)
    macros to simplify error prone code and to improve readability.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 7e5a33bdbd3297c75b69bfd2a802a8da582f3629
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Sep 23 10:40:15 2011 +0300

    GFX: Remove duplicate DSI controller init code

    DSI controller init functions dsi_controller_init(),
    dsi_controller_dpi_init(), and dsi_controller_dbi_init() are mostly just
    duplicates of the corresponding functions with mdfld_ prefix. Handle the
    minor differences, and remove code duplication.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 2fa11c603a4c95edcedc6333310e5184cba8da9c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 16:39:53 2011 +0300

    GFX: Remove redundant and unused ioctl definitions

    Remove redundant, unused, and commented out ioctl definitions.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f24b654d4a226490a9ba753ae722014da78acae6
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 14:45:33 2011 +0300

    GFX: Remove another useless DSI command send wrapper

    Use mdfld_dsi_send_mcs_short() directly rather than through a wrapper.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit b901ccfe425f89686f8b1149cdf21f2912c39c21
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 13:07:13 2011 +0300

    GFX: Replace the BIT<N> macros with the generic BIT(N) from bitops.h

    Replace BIT<N> macros with generic BIT(N) macros from bitops.h. The bulk of
    the change was done using sed:

    sed -i 's/\([^A-Za-z0-9_]*\)\(BIT\)\([0-9][0-9]*\)\([^A-Za-z_]*\)/\1\2(\3)\4/g' *.c *.h

    Then manually dropped the #defines from psb_intel_reg.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 4088df73c3ca8d050db82b19c20e6733ec34cd74
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 12:28:12 2011 +0300

    GFX: Make display config mode getter functions static

    The display config mode getter functions are used through function pointers
    within struct panel_funcs, so they can be static.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 1bfa41a52df2f3e7540afd8bab26c6dce3aa5a43
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 12:26:10 2011 +0300

    DRV: Remove unused display header files pyr_vid.h and tmd_cmd.h

    The display header files pyr_vid.h and tmd_cmd.h contain only declarations
    for functions that don't even exist. Remove the files.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5eb3e79030f0b0e528af5c46848cbd69a49da7ec
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 12:12:45 2011 +0300

    GFX: Remove useless unreachable BIT macros

    Remove useless #defines within #if 0.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit b7ab02155911f5fd8221282a30301ad802bf37f4
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 12:01:37 2011 +0300

    PVR: Drop support for kernel versions 2.6.34 and older

    There is absolutely no guarantee that the driver would work with kernel
    versions 2.6.34 or older, even with the conditional compilation in place,
    and the further modifications that will be made to the driver won't take
    older kernels into account anyway. Thus explicitly drop support for 2.6.34
    and earlier instead of pretending.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit ed996159001324249dc71a12e7bd60202e21014d
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 11:50:09 2011 +0300

    GFX: Drop support for kernel versions 2.6.34 and older

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 3cc85dd6288c5b7bd4a8f6e05ab99c346850a330
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 11:41:18 2011 +0300

    GFX: Drop support for kernel versions 2.6.34 and older

    There is absolutely no guarantee that the driver would work with kernel
    versions 2.6.34 or older, even with the conditional compilation in place,
    and the further modifications that will be made to the driver won't take
    older kernels into account anyway. Thus explicitly drop support for 2.6.34
    and earlier instead of pretending.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 018d062de792c070e2d0bea469421ae8b6a4dd78
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Sep 6 10:56:18 2011 +0300

    GFX: Remove unused dsi pkg structs

    The mdfld_dsi_{gen_short_pkg,gen_long_pkg,dcs_pkg,pkg} structs are no
    longer used and can be removed.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit fad1f6978e0138126e41fe183ba25c02a806fb90
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Wed Sep 7 18:00:27 2011 +0300

    pvr: Free export handle only after memory is freed

    Export handles are currently freed when the exporter frees it local
    mapping of the memory. Next export may (is very likely) to reuse the
    handle for different memory.

    While process that received the export handle wants to avoid expensive
    memory mapping when it already has mapped a matching handle. If the
    memory behind a handle changes suddenly process receiving process will
    continue use old memory.

    Problem can be seen in screen that random client would lose content
    because it renders to old memory while display server shows the new
    memory in screen.

    The fix is to delay the free of the handle until the memory is freed.

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
commit c3c6c7df9ac604855c99a9d05a7b8bef8495e264
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:28 2011 +0300

    mrst: pvr: add debugfs support

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit bc6de1ede5c35870d1113fe0ef6c90b0f1e8f473
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:27 2011 +0300

    mrst: pvr: add tracing for flip command

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 193f1a94f45e820085bc3402b2c72f6ee103b57e
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:26 2011 +0300

    mrst: pvr: add tracing to SGX queryblits command

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit eea730158b268d0df9a3d96e3c95887b6393a9c0
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:25 2011 +0300

    mrst: pvr: add tracing to the SGX kick and transfer commands

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit ea703813ba51bedf059ff4a182a845f2235d6b55
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:24 2011 +0300

    mrst: pvr: pass proc info to various IOCTL handlers

    Needed by the next patch adding tracing to these commands.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 71249e1b27c430b522cd4919af413bc136356d91
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:23 2011 +0300

    mrst: pvr: add command tracing support

    Add a lightweight tracer to track commands submitted by clients. This
    can help for example to debug dead-lock situations where command
    synchronization counters form a circular dependency.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 447184e302d7efc0577fc16b181203bbb2f6e7f8
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:22 2011 +0300

    mrst: pvr: include missing header files

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 129c16270bb4c2190d2a15c77fb61aec984a5454
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Sep 1 18:01:21 2011 +0300

    mrst: pvr: get proc name during process attach time

    This will be needed by the upcoming patches where we need a cheap way
    to get to the current process name.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 77bf123bd4a87cb6355133037c25601200b2fc60
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Aug 26 14:56:27 2011 +0300

    GFX: Replace out-of-range udelay() with mdelay()

    Fix build error:

    ERROR: "__bad_udelay" [drivers/staging/mrst/medfield/medfield_gfx.ko] undefined!

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f7fdba671596913b63fd4f11f1b88c71425c50ae
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Wed Aug 24 12:49:53 2011 +0300

    GFX/PVR: Clean up function and variable declarations

    Make more functions and variables static, and remove a few unused
    variables. Move most extern declarations scattered around inline in .c
    files to .h files, and add proper #includes. This helps tracking the
    dependencies between modules, and also fixes a number of sparse warnings.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit ae6010f7d2694bde629955de56c74e8c4287e1ce
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 23 16:08:18 2011 +0300

    PVR: Delete unused header file sysirq.h

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f7d2693a454cc6d393d1e0691fce060d84b065b0
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 23 16:07:20 2011 +0300

    GFX: Remove duplicate declarations for psb_irq.c functions

    Declare functions in psb_irq.c only in psb_irq.h, not also psb_drv.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 38051b54f4093d0fac3f188770feb1006203cd85
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 23 15:21:37 2011 +0300

    GFX: Delete unused files psb_intel_dsi2.c and psb_setup.c

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 2c8cfd18094037e23698e20d2059de14f4b55cc0
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 23 10:12:42 2011 +0300

    GFX: Reserve mdfld_dsi_send_dcs() for mem write command only

    mdfld_dsi_send_dcs() is mostly about handling mem write as a special case,
    passing other commands to other functions. Only use the function for mem
    write.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 7f2e39a3b86a73bc7b0125a891d360658da41d10
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 23 09:37:17 2011 +0300

    GFX: Pass DSI command data as data and length instead of struct

    Pass DSI command data as data and length, and go on with the mdfld_dsi_pkg
    struct removal.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f57208f9d8094b1cc6fd248588d8a9fbad4e0288
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Aug 22 18:06:20 2011 +0300

    GFX: Clean up the low level DSI sender functions send_{short,long}_pkg()

    Also keep removing the mdfld_dsi_pkg struct from DSI sending.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 84e21960c8fa8d3ba499f0394c8df754db4ee0c2
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Aug 22 17:04:09 2011 +0300

    GFX: pkg_type is really the MIPI DSI data_type, rename it accordingly

    The data_type is used in registers, but the definitions come directly from
    MIPI DSI specs. Rename the enums accordingly. Also drop the unused and
    non-existent DCS packet type.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 2f95aa967f0a96ce54943d6bdffc73acb9ebd128
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Aug 22 11:52:14 2011 +0300

    GFX: Make transmission mode a bool parameter to simplify code

    Make transmission mode a bool parameter to simplify code. This is also in
    preparation for further simplifications later.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f0d40649f1e595ee6017e8b38aa36b15d057e107
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Aug 19 13:55:58 2011 +0300

    GFX: Remove queued DSI command sending

    The queued DSI command sending was overly complex, buggy (for example
    keeping pointers to past stack frames or deallocated data), limited (number
    of commands in queue, data size in command), and it was only used in a
    couple of places. Simply remove it, and send all DSI commands immediately.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit a4b4942508f634fd8bd13165d46d4d6db142ad4a
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Aug 19 12:43:22 2011 +0300

    GFX: Hide dsi_pkg_sender internal structs and enums

    Move some structs and enums from .h to .c. This makes later refactoring of
    mdfld_dsi_pkg_sender.c easier.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5c44bbec1a1768791a740c7733b3e4689c2bff7e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Aug 18 14:25:52 2011 +0300

    GFX: Remove a useless abstraction layer in DSI command sending

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit e666aef44b106bae04fb65f7e068665bb3079882
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Aug 18 12:58:03 2011 +0300

    GFX: Remove an abstraction layer for some DSI commands

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit ef071cdccaafeed42229af9e6265c7867e84ffe2
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Aug 18 12:38:32 2011 +0300

    GFX: Refactor: Make DSI HS/LP a parameter rather than an abstraction layer

    This is a start towards a more sensible DSI command interface.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit affbb07de18e381824e722c1794e07c7acb3c8cf
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Wed Aug 17 16:27:19 2011 +0300

    GFX: Fix a number of sparse warnings

    Fix issues found by sparse: Make functions and variables static where
    possible. Use NULL rather than 0 for pointers. Use __iomem to reduce
    address space warnings. Remove some unused variables and functions. Fix
    locking imbalance. Use unsigned types for 1-bit bitfields.

    Note: Only sparse warnings are fixed in the changed code, which means this
    will produce checkpatch warnings.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 2d70898399fbf8cf515a2a93bd46c69265a5ff84
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Wed Aug 17 16:30:41 2011 +0300

    GFX: Do not include .c file from another

    Simply append psb_intel_display2.c to psb_intel_display.c rather than
    include it.

    Note: This patch generates lots of checkpatch warnings, because the
    included file is inserted as-is, without modification.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit f1c8ab0bfbeff46fe6a1cea3c5afb7f25265d8db
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 16 13:07:41 2011 +0300

    GFX: Quick fix to silence build warnings about unused procfs functions

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 9e82f9fcbf6f9fb508c2c090c5a49813da5a015e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 16 13:04:06 2011 +0300

    GFX: Quick fix to silence build warnings about unused variables

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5408ea71f8a7bdae8d03089d48986746dd57b272
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 16 13:01:21 2011 +0300

    GFX: Fix build warning about unused backlight related function and variables

    Add #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE around the function and variables.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit abfe9e60cf2acc0cde07dcbe9229219c90f6113a
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Aug 16 12:55:25 2011 +0300

    GFX: Fix printk format warnings

    Reduce build noise by fixing printk format warnings.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 6906b5a242fe460827f0b43f0e270d8461ac02dd
Author: Jani Nikula <jani@nikula.org>
Date:   Tue Aug 16 10:56:18 2011 +0300

    PVR: Fix PVR build so that it doesn't get rebuilt every time

    Use symlinks instead of copies of the source files, and preserve them using
    .PRECIOUS to 1) build the driver so that it doesn't get rebuilt every time,
    and 2) produce useful paths in the build log that point to the actual
    source files through the symlinks. Add the intermediate symlinks to
    .gitignore.

    This is a slight improvement to the original hack of building more than one
    kernel module from the same sources with different config options and
    defines. It should be fixed later, but this makes life easier now.

    Also make the Medfield and Moorestown Makefiles as similar to each other as
    possible, to make later unification easier.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit bb926aae8fbb0cfb98f387e504337ac3c01147d0
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Tue Aug 16 14:02:40 2011 +0300

    pvr: Remove timer hack from vblank handler

    The timer hack isn't required after userspace fixes to flip
    implementation.

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 6ccfe7bacbffc1900add826fb1f4efa0bc40702a
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Thu Aug 11 09:31:21 2011 +0300

    pvr: Fix device poll implementation

    Driver always signaling that there is data available misleads display
    server to call blocking read. Blocked display server makes whole
    system unuseable.

    drm_poll checks if there is queued events to userspace. Replacing
    psb_poll with drm_poll fixes the poll implementation.

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 5fef5630c4fddd4c775c91c0ba11c468af001cc2
Author: Alan Cox <alan@linux.intel.com>
Date:   Fri Aug 19 14:05:32 2011 +0100

    gfx: Fix build failure of graphics when compiling for MRST

    The graphics code tries to use RAR headers which are not where it expects. We
    don't use the RAR feature or care about it for the this GFX driver so throw
    it out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
commit 803ff08d23f4f0164f24f664c23ce772724f8722
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Fri Aug 19 14:05:17 2011 +0100

    Backlight type was missing from properties which caused warning in
    register.

Reported-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
commit ce064800f88e9731c1d1333fbccc4a05e8e4fc68
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Fri Aug 19 14:03:20 2011 +0100

    pvr: Fix out of array access

    PVR driver defines its own connector and encoder types for display which
    aren't suppported by drm code. When converting the type to string kernel
    would crash or output random junk because conversion table doesn't have
    entry for MIPI.

    [   19.455764] BUG: unable to handle kernel paging request at 65646f6d
    [   19.455779] IP: [<c127e0c9>] strnlen+0x9/0x20
    [   19.455802] *pde = 00000000
    [   19.455812] Oops: 0000 [#1] PREEMPT SMP
    [   19.455825] Modules linked in: medfield_gfx(C+) fbcon font bitblit
    softcursor ttm drm_kms_helper drm fb fbdev
    +cfbcopyarea cfbimgblt cfbfillrect
    [   19.455860]
    [   19.455871] Pid: 129, comm: modprobe Tainted: G         C  3.0.0+ #30
    [   19.455884] EIP: 0060:[<c127e0c9>] EFLAGS: 00010297 CPU: 0
    [   19.455895] EIP is at strnlen+0x9/0x20
    [   19.455903] EAX: 65646f6d EBX: f86ccd60 ECX: 65646f6d EDX: fffffffe
    [   19.455912] ESI: f86ccd80 EDI: 0000ffff EBP: f5b596fc ESP: f5b596fc
    [   19.455922]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
    [   19.455932] Process modprobe (pid: 129, ti=f5b58000 task=f6312be0 task.ti=f5b58000)
    [   19.455940] Stack:
    [   19.455945]  f5b5971c c127bb3f f999f67b f86c8b25 65646f6d f5b59784 f86ccd60 00000002
    [   19.455965]  f5b59760 c127cad6 00070100 0006ffff 0006ffff 00070190 00060010 0006000c
    [   19.455985]  00000020 f86ccd60 f86ccd80 f86c8b27 ff0a0004 ffffffff 0000000b f63b44f8
    [   19.456005] Call Trace:
    [   19.456021]  [<c127bb3f>] string.isra.4+0x2f/0xb0
    [   19.456133]  [<f999f67b>] ? mdfld_dsi_gen_fifo_ready+0x3b/0xb0 [medfield_gfx]
    [   19.456151]  [<c127cad6>] vsnprintf+0x1e6/0x3a0
    [   19.456166]  [<c127ccea>] snprintf+0x1a/0x20
    [   19.456210]  [<f86bb287>] drm_get_encoder_name+0x37/0x40 [drm]
    [   19.456231]  [<f876fac5>] drm_crtc_helper_set_mode+0x405/0x470 [drm_kms_helper]

    MIPI (or DSI) is protocol specification on top of LVDS serial bus. That
    makes it resonable to call MIPI connectors and encoders LVDS.

    NOT FOR UPSTREAM

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
Reported-and-Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
commit e6a9e72108f5444b754d68dd60328e0a8740ab36
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Fri Jul 8 11:04:57 2011 +0300

    configs: Update medfield config to have touch&keypad support

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 27a326770da336624834f101ff889421dae1b007
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Jul 5 11:19:08 2011 +0300

    mrst: Add drivers/staging/mrst/README documenting the forward port

    Document where the driver is coming from and what was done to make it work
    against linux-3.0-mid-ref.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit c8355336d838d0e19135783dbf0bb60504bcbd14
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 17:46:02 2011 +0300

    mrst: Add arch/x86/configs/medfield_pvr_defconfig

    Add a known good defconfig.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit c5a69015cba9486adab91a987d13ed8698db8368
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 15:14:23 2011 +0300

    drm: Protect drm/drm_os_linux.h inclusion with #ifdef

    Fix problems caused by including both drm/drmP.h and drm/drm_os_linux.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 353c55ac88cf9525fea65d797723c5538967915c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:51:43 2011 +0300

    drv: Add DRM_MODE_CONNECTOR_MIPI definition

    REVISIT: This definition and value 15 are from the linux-3.0-mid-ref
    tree. psb_intel_dsi.c also has a commented out definition with value
    13. The definition should be added to include/drm/drm_mode.h eventually.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 37a03b495ca98bee1adcb391e47a411d5aa82e77
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:44:07 2011 +0300

    drv: Remove psb_validate_kernel_buffer() and val_seq

    The function does not compile, is not used, and is the only user of
    val_seq, after ttm_eu_reserve_buffers() has switched to handling the seq
    internally.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 11ef8154687d734ba0d4d4238c6101e826de1b9e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:26:47 2011 +0300

    drv: Use bdev->fence_lock for locking

    The lock field has been dropped from struct ttm_buffer_object. Use the
    bdev->fence_lock of the struct for locking instead.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit d19a6a3dc015ff165f79a286fd5ba416d992f81e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:15:36 2011 +0300

    drv: Add force parameter to struct drm_connector_funcs .detect functions

    An additional force parameter has been added to the .detect function in
    struct drm_connector_funcs. Add the parameter to the functions
    dsi_connector_detect, mdfld_dsi_connector_detect, mdfld_hdmi_detect,
    mrst_dsi_detect, psb_intel_lvds_detect, and psb_intel_sdvo_detect.

    FIXME: Start actually using the force parameter.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 52ebe11a7cf8c0ca37bef03c0cc411d63bfcfc84
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:12:54 2011 +0300

    drv: Add start parameter to psb_intel_crtc_gamma_set()

    The start parameter has been added to struct drm_crtc_funcs .gamma_set
    function, so add it to psb_intel_crtc_gamma_set() also.

    REVISIT: Start using the start and size parameters in the function.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit b8a0cd91217e0395ca402e3a6a4c34ae2d233494
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 14:01:04 2011 +0300

    drv: Remove initializations that have been removed from struct drm_driver

    REVISIT: The procfs stuff should be ported to sysfs/debugfs.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit d82d658906ca20cff1758f776f414fb48897fcc9
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:57:28 2011 +0300

    drv: Separate the drm driver and pci driver structs

    The pci_driver struct is no longer part of struct drm_driver.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 266d1b7ace965b1203f7de738568fc325d1dd77f
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:11:27 2011 +0300

    drv: Replace acquire/release_console_sem with console_lock/unlock

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit d3301724bfd035c91d5c561d1f38c2753835526f
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:03:54 2011 +0300

    drv: Remove #include <linux/i2c-id.h>

    The linux/i2c-id.h file has been removed.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 4613ef2bd9389b10779cdde1b2239f26d727604c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:23:14 2011 +0300

    drv: Remove an informational message

    The code block would not compile, because struct ttm_mem_type_manager no
    longer has manager field. Instead of resolving the issue, just remove the
    code block because it only prints an informational message if "GATT was not
    clean after VT switch".

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 1546b44a62af1eb1dd72f14be2736a049b5101cc
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:20:45 2011 +0300

    HACK: drv: Do not use BKL for drm_ioctl() locking

    The BKL no longer exists, do not use it. This is a hack because the BKL is
    not replaced with any other locking.

    REVISIT: Need to check the locking.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 55218c31dfe2a3e597df144ab4007f5fae473928
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Mon Jul 4 22:16:37 2011 +0300

    pvr: Add bo manager functions to custom memory managers

    FIXME: Check if pvr need custom memory manager like nouveau

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit b8ed80804204bf769d8b8fe6f4681f92e56aea38
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 15:46:56 2011 +0300

    pvr: Replace ttm_global_reference with drm_global_reference

    struct ttm_global_reference has been dropped in favor of struct
    drm_global_reference.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 47818d739cf33acc766dd7af7a9eeb20f7a3c6aa
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 15:17:54 2011 +0300

    pvr: Use bdev->fence_lock for locking

    The lock field has been dropped from struct ttm_buffer_object. Use the
    bdev->fence_lock of the struct for locking instead.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 5f42477b7df47850047008bd2848f775dbb1fee3
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 15:36:52 2011 +0300

    pvr: Add dma_addrs parameter to drm_psb_tbe_populate

    The dma_addrs parameter has been added to struct ttm_backend_func .populate
    function. Add it to drm_psb_tbe_populate also.

    REVISIT: Is there a need to use the dma_addrs parameter?

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 838f8a6f87ba90aa3489a0ebd83c06bdc4a7db9c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 15:34:01 2011 +0300

    pvr: Use the start field of struct ttm_mem_reg

    The mm_node field of struct ttm_mem_reg has become a void*, and can no
    longer be referenced.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit e81fb9c9f888ff477034b6dd63f18c5bb386d5d1
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 13:12:13 2011 +0300

    pvr: Replace acquire/release_console_sem with console_lock/unlock

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit b23657906cf1d8cd4c083d69021f9d69169b59ab
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 12:06:03 2011 +0300

    pvr: Use DEFINE_SPINLOCK() instead of SPIN_LOCK_UNLOCKED

    SPIN_LOCK_UNLOCKED has been removed.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 581bb8e42869ebce5e33e13262cb5e54d22a830d
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 11:59:22 2011 +0300

    pvr: Fix calls to pci_restore_state()

    Fix calls to pci_restore_state(), which no longer returns a value.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 38896d85369f49b2f8ca106d97708947df925bb0
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 11:48:23 2011 +0300

    pvr: Remove references to AUTOCONF_INCLUDED and linux/config.h

    AUTOCONF_INCLUDED is no longer defined, and linux/config.h no longer
    exists.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit fa229e9d85048d19a3b2de19b66d3a87eab8a2ca
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Jul 4 11:47:35 2011 +0300

    mrst: Remove local versions of drm_global.{h,c}

    The mrst fork looks incorrect.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit f173452bed6a7384d258b11658ec55afe87fb71c
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Jul 1 12:43:00 2011 +0300

    staging: Add mrst graphics driver to Kconfig and Makefile

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
commit 0aae9776ad86ab77dfe67cf549db78667a46ee62
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Jun 22 13:17:04 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0047

    Weekly Graphics driver release.
    Please use usermode package 0047 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit de023b4f5dbbc6bdd5a4184c561727b2b2ac2df4
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri Jun 17 10:00:52 2011 -0700

    GFX: Enable Display Island for DPST

    When enabling DPST by default we need to make sure that
    display island is enabled to get DPST interrupt generated.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 35cc686f6a56cb1ee959a9ff68d557f9d19ac5a9
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Jun 16 12:31:04 2011 -0700

    GFX: Allow multiple registers dump

    Allow multiple registers to be dumped from procsys.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit f5b3a4c10c0a385471b8b65bede0509681a06626
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri Jun 10 11:42:42 2011 -0700

    GFX: Fix invalid return when creat_proc_init fails

    when init failed for any of the procfs creation the failure
    would be returned.  Now it just makes sure that error is printed
    and continued.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 75ede86757ffc57c2503b615b4172160b7284364
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Mon Jun 20 15:50:19 2011 -0700

    kernel rebase kernel-adaptation-mrst-2.6.37.6-102.1

commit 094854b8292dba86e57248f686efe35b8de425cd
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri Jun 17 10:00:52 2011 -0700

    GFX: Enable Display Island for DPST

    When enabling DPST by default we need to make sure that
    display island is enabled to get DPST interrupt generated.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit c92e91c54ab7d6d5e5d4c1df1156fef4088c8943
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Jun 16 12:31:04 2011 -0700

    GFX: Allow multiple registers dump

    Allow multiple registers to be dumped from procsys.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit a52a45c44aa5a807f8733abbdd8cf55c16b676f1
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri Jun 10 11:42:42 2011 -0700

    GFX: Fix invalid return when creat_proc_init fails

    when init failed for any of the procfs creation the failure
    would be returned.  Now it just makes sure that error is printed
    and continued.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit d25fe71cd95a6fe761315e882605b0e74f466eec
Author: Pauli Nieminen <pauli.nieminen@intel.com>
Date:   Thu Jun 9 11:03:20 2011 +0300

    moorestown/pvr: Enable memory debug only in debug build

    Memory debug flags have huge runtime footprint which can be seen
    as one of larges CPU users in system. In my QT/demos/declarative/snake
    profile cost was about 15% CPU time.

    Actual test case is GPU limited so optimization doesn't give fps boost
    but it maybe meaningfull optimization for applciation startup and
    shutdown times.

    Also fixing incorrectly typed DEBUG_LINUX_MEM_AREAS to actually enable
    the feature.

Signed-off-by: Pauli Nieminen <pauli.nieminen@intel.com>
commit 0d13a11049f84fa86d8029cb69baead764ccfa59
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Jun 9 09:02:49 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0046

    Weekly Graphics driver release.
    Please use usermode package 0046 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit afb5c438c374397df4d3136d1a7c24850daa0f5f
Author: Ren, Zhaohan <zhaohan.ren@intel.com>
Date:   Wed May 11 15:56:48 2011 +0800

    Update psb_drm.h

commit 63ae47109df731c117a61ce523cf5473764f2f69
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Sat May 28 15:08:46 2011 -0700

    revert back to a 19ms display DMA delay for SwapChain buffers.

commit 96f710fdc9c4244562239af87571376c959598b7
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Wed Jun 1 11:09:03 2011 -0700

    Change DMA delay for when we have a swapchain to 3ms. This works well and pushs the image out without a delay.

commit e9205fb80d61a280812e96507e61ff29c538524a
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Tue May 31 18:05:55 2011 -0700

    Implement a different Display Buffer DMA delay from the VSYNC interrupt. This delay for the 60hz display refresh rate is 18ms for a QT rendered display and 11ms for a GLES2 rendered display.

commit 4106ee3e3a5d348868f5bcf7d3d3a8b6e2e83755
Author: Peter Zick <peterz@peterz-VirtualBox>
Date:   Tue May 31 13:10:15 2011 -0700

    Remove printk debug message from ospm_suspend_display.

commit 81022bb3d5da8696084fbc85949b4f35bfca78b1
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu May 19 16:11:37 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0045

    Weekly Graphics driver release.
    Please use usermode package 0045 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 967dbe161d67b94f95bf7f2149ed07f1906a5803
Author: Peter Zick <peterx.zick@intel.com>
Date:   Fri May 27 09:24:05 2011 -0700

    GFX: Support graphics & Display island power gating.

    added to support the Moorestown configuration of the
    graphics and display islands power gating.

Signed-off-by: Peter Zick <peterx.zick@intel.com>
commit 14693c1032a9abb43c42d8d6c3240549c52a58b0
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Fri May 20 16:04:58 2011 -0700

    GFX: Change the jiffies use to proper function

    Use msec_to_jiffies() to insure an 11ms delay for the
    Display Buffer DMA timer.  Also set the display buffer DMA delay
    to 18ms.  This is to optimized for QT/MeeGo-ux.

Signed-off-by: Daemon Anastas <daemonx.g.anastas@intel.com>
commit ce09e906f985b0894f614943cacf533839871b83
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri May 27 15:42:48 2011 -0700

    kernel rebase to kernel-adaptation-mrst-2.6.37.6-54.2

commit 48a951768628047cd317603268c9410f62be9cb4
Author: Peter Zick <peterx.zick@intel.com>
Date:   Fri May 27 09:24:05 2011 -0700

    Changes to psb_powermgmt.c added to support the Moorestown configuration of the graphics and display islands power gating.

commit d631df0a967b002114ae0da22c885d97b24451fe
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Wed May 25 12:52:32 2011 -0700

    Set the display buffer DMA delay offset to 18ms. This is optimized for QT/MEEGO-UX.

commit f85694cb7d2a8d9d6e06857359a173af43639170
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Fri May 20 16:04:58 2011 -0700

    Use msec_to_jiffies() to insure an 11ms delay for the Display Buffer DMA timer.

commit 56c41edf7ee26b2f4f4aeb48b869e781253f149d
Author: Li Zeng <li.zeng@intel.com>
Date:   Thu May 12 13:16:57 2011 +0800

    ved: Decode hw sequence value is initilise to 1

    BZ: 1848

    After reboot, Decode hw sequence and sw sequence are both 0, so sync buffer always success even if it is not really ready.

    HW sequence value is initilise to 1 to avoid such issue

    Change-Id: I8886a67d70b412e147e3b99453442bf57490dc7d
Signed-off-by: Li Zeng <li.zeng@intel.com>
commit d705c82d06bee78d767379bdf3913eaabdfc6725
Author: Austin Yuan <shengquan.yuan@gmail.com>
Date:   Tue May 17 13:27:52 2011 +0800

    Video: optimized udelay usage

    1) From Liu, Haiyang: there is a call path psb_setup_fw() -> psb_wait_for_register()
    -> udelay(1000), which is not C0 friendly, reduce it to 1
    2) export three runtime options for further optimization/tuning
    -Export option "cpu_relax" to replace all "udelay" to "cpu_relax" at runtime
    -Export option "udelay_multiplier" to multiple the udealy usec with a value (increase)
    -Export option "udelay_divider" to divide the udelay usec with a value (decrease)

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
commit 09c31a9d4a4fb604ad7b5e798765bf70c5960bc7
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Wed May 11 13:19:43 2011 -0700

    Update the delay for DMA'ing the display buffer from VSync to 11ms (from 15ms). This is to account for the display frequency change of 48.8hz to 60hz.

commit 1ee4119468c1949cb6fbf931c5bdc24c83a5ba4d
Author: Ren, Zhaohan <zhaohan.ren@intel.com>
Date:   Wed May 11 15:56:48 2011 +0800

    Update psb_drm.h

commit 0e03d0f66fcec154a24b65e25726e13052d3fe4f
Author: Elaine Wang <elaine.wang@intel.com>
Date:   Wed May 4 15:42:29 2011 +0800

    Video:Fix Topaz D0i3 hang issue.

    BZ: 1478

    After enalbe Topaz D0i3 manually by "echo 0x2 > /sys/module/medfield_gfx/parameters/topaz_pmpolicy", video encoding performance is very low and the en
    coded clip is corruptted. See error message "TOPAZ timeout (probable lockup) detected" in terminal.

    This patch fix several potential problems in Topaz save and restore MTX state functions. Save the content of Topaz communication registers before power down Topaz and restore it after resume. Before power down Topaz, poll MMU control register until make sure there is no pending memory request. Reset MVEA twice according to IMG's advice. After transfer firmware to Topaz, kick NULL command to Topaz core 0 and core 1 and wait for its completion. If polling the writeback of NULL commands times out, read back 4 words from command FIFO to recover the state of it.

    Inserting NULL commands would cause extra delay of resuming Topaz and reading back 4 words from command FIFO doesn't guarantee successfuly recovery everytime, but it makes video encoding much more stable while enter and exit D0i3. It will be removed after IMG provide a total fix in Topaz firmware.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
commit 75a8b0604ff47effc895a5279965c2b5fc06a6db
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu May 5 09:09:17 2011 -0700

    Driver Package release 0043

commit 813601f6e4561dcea1bf914f02917b5e4ff57842
Author: Ren Zhaohan <zhaohan.ren@intel.com>
Date:   Thu Apr 28 09:42:53 2011 -0400

    GFX: Removed buffer 4 bytes alignment

    This restriction isn't needed.  This will allow creating buffer of any size.

commit 97f81d82513bda7f05593dd900ef009b4afbd8dd
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue May 3 14:06:11 2011 -0700

    GFX: add platform detect support

    refactor the code that checking MM system and Oaktrail platform
    put the dmi match code in psb_platform_detect(), add helper macros
    like IS_MRST_MM and IS_OAKTRAIL

Signed-off-by: Li Peng <peng.li@intel.com>
commit 1017a004a954a3a416a0e39d7466ed7c4443f01b
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue May 3 13:56:09 2011 -0700

    GFX: use raw_edid on mrst tablet

    currently the modeline used on mrst tablet is retrieved from GCT
    table in which the vertical refresh rate is about 49 HZ, but it isn't
    seem to be the best modeline because the EDID probed from LVDS panel
    recommending 60 HZ vrefresh rate.

    Also the h/w design on mrst tablet requires i2c0 as the channel for
    EDID probe, fixing this by adding DMI_MATCH code for mrst tablet.

    Another issue is that the EDID checksum on mrst tablet is bad, which block
    driver doing further modeline parse, this maybe a problem of LVDS panel,
    add workaround to use raw_edid on mrst tablet.

Signed-off-by: Li Peng <peng.li@intel.com>
commit 02968b64eba3ce5ac3c6a9d2bc5de3ae93814d45
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 20 17:01:53 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0042

    Weekly Graphics driver release.
    Please use usermode package 0042 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 1f64690d7a4e0d4699a3db5d587e5d37e2c70772
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 20 14:33:06 2011 -0700

    GFX-Display: Enabled S0i3 for TMD panel.

    Now the system could enter and exit S0i3 for several times, with TMD/TPO panel
    attached on MDFLD, by the steps:
    1. Enable S0i3:
       a) echo 12000 > /proc/sys/vm/dirty_writeback_centisecs
       b) echo s0i3 > /sys/module/mid_pmu/parameters/s0ix
       c) echo 1 >/sys/devices/platform/max3110/adaptive
    2. xset dpms force off (or "xset s $TIMEOUT $INTERVAL")

    Also fixed the "Fabrice Error" issue when in S0i3 state.

Signed-off-by: Austin Hu <austin.hu@intel.com>
commit 77c3db295d9977b37c9cc4804b39d311ee074eb2
Author: Yu(Alex) Dai <yu.dai@intel.com>
Date:   Mon Mar 21 12:09:57 2011 -0700

    GFX: Fix memory release issue when X is crashed.

    This is an improvement for previous Fix.
    Now we add 3-level sanity check for PVRDeviceNode, BMContext and BMHeap.

Signed-off-by: Yu(Alex) Dai <yu.dai@intel.com>
commit 2fd2837ee86bd4edf5b3a27803adaa8bbc928fa5
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue Apr 5 14:39:34 2011 -0700

    GFX: Removed SUPPORT_EGL_EXTENSIONS

    Removing Some EGL Extension support.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit a0588a08a98795698b9ecc3e52b5429ec04fdacf
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 20 15:35:55 2011 -0700

    GFX: Cleanup video codying style

    Cleaning up Video driver coding style to match OpenSource
    Coding style.

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
commit 465cad2312c487a284e1689f6533813dafc72048
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Sun Apr 10 12:49:06 2011 -0700

    GFX: Fix tearing issue on Moorestown (Bugzilla 5503)

    Fix tearing on Moorestown due to race condition of Display moving
    buffer to screen on vysnc and driver swapping buffer on vsync.
    This is fixed here by using a timer to delay the driver flipping
    the display buffer. This change is made to not effect Medfield.

Signed-off-by: Daemon Anastas <daemonx.g.anastas@intel.com>
commit 801029054b4de50d58c4b17abfc68fb270c5574d
Author: Elaine Wang <elaine.wang@intel.com>
Date:   Wed Apr 13 15:23:56 2011 +0800

    GFX: Fix device firmware loading issue

    Fix a code defect that cause loading device firmware repeatedly
    in different video encoding sessions.

    Use Topaz context handle instead of variable topaz_fw_loaded to check
    if any video encoding process is running. When driver removes Topaz
    context, mark current MTX data as invalid to prohibit retoring MTX
    data wrongly at the beginning of next encoding session.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
commit ba38a2fed5bfa6ab988e83f8632ba4dee6eb76c2
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 14:34:59 2011 -0700

    GFX: Fix to avoid infinite loop in ospm_power_island_up/down.

    - Removed redundant code to power on/off GL3 (PSB_PWRGT_GFX_MASK_B0)
    - Added counters with debug prints to detect infinite loops
    - Added code to handle ISP on/off to be used by camera driver.
    - invalidate GL3 before suspend.
    - Add in OSPM_ISP_ISLAND check in ospm_power_island_up.

Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
commit 45e5aa0e53c403df69d4ef6de7927aa1433b7194
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue May 3 15:40:04 2011 -0700

    kernel rebase kernel-adaptation-mrst-2.6.37.6-38.2

commit d099ff36cb3385cd139e0ba5882128b68df67c5a
Author: Ren Zhaohan <zhaohan.ren@intel.com>
Date:   Thu Apr 28 09:42:53 2011 -0400

    Removed buffer 4 bytes alignment restriction to allow creating buffer of any size.

commit aa1ef8d15b18c0175dc0564601e842e682d5e130
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Fri Apr 22 11:24:37 2011 -0700

    GFX: Read EDID from i2c Adaptor #0 for MM

    MM Systems have EDID hooked up to i2c adaptor 0.
    Detect the MM system and read the EDID.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 0954d9c2eaf4f1d581a13e37ac2f3353c703d1d0
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 20 17:01:53 2011 -0700

    driver release 0042

commit 993db7289b98c5a055ff1f3d3c18d0e3d3b27721
Author: Austin Hu <austin.hu@intel.com>
Date:   Mon Apr 18 17:16:23 2011 +0800

    GFX-Display: Enabled D0i3 for the Display sub-system of Acer Tablet.

    Enable it by checking the current DC status in run-time runtime_suspend()/runtime_idle()
    callbacks, rather than checking DSR status which isn't supported by Acer Tablet's LVDS panel.

    Enable/Disable run-time PM with pm_runtime_put_noidle()/pm_runtime_get_noresume(), according
    to the common run-time PM changes since kernel 37.

    And here is the /sys/kernel/debug/mrst_pmu diff before and after DPMS off:

    Before:
        GFX: [BLOCKS s0i3]
        0000:00:02.0 8086/4102 pvrsrvkm                     PCI-D0   D0 10 0 0 6 0

    After:
        GFX:
        0000:00:02.0 8086/4102 pvrsrvkm                     PCI-D3hot D0 10 0 0 8 0

Signed-off-by: Austin Hu <austin.hu@intel.com>
commit df8c26f576b0fbdef4e5be7540ca38475c4eeee2
Author: Austin Yuan <shengquan.yuan@gmail.com>
Date:   Fri Apr 15 10:27:56 2011 +0800

    Cleanup video codying style

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
commit 1b0ce19f3ad640e10ec5e95bbbcb690ac40aeba4
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Sun Apr 10 12:49:06 2011 -0700

    GFX: Fix tearing issue on Moorestown (Bugzilla 5503)

    Fix tearing on Moorestown due to race condition of Display moving
    buffer to screen on vysnc and driver swapping buffer on vsync.
    This is fixed here by using a timer to delay the driver flipping
    the display buffer. This change is made to not effect Medfield.

Signed-off-by: Daemon Anastas <daemonx.g.anastas@intel.com>
commit 3efd32effa12928feb16eb5641262e5b175ac763
Author: Elaine Wang <elaine.wang@intel.com>
Date:   Wed Apr 13 15:23:56 2011 +0800

    GFX: Fix device firmware loading issue

    Fix a code defect that cause loading device firmware repeatedly
    in different video encoding sessions.

    Use Topaz context handle instead of variable topaz_fw_loaded to check
    if any video encoding process is running. When driver removes Topaz
    context, mark current MTX data as invalid to prohibit retoring MTX
    data wrongly at the beginning of next encoding session.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
commit bf9cf397c15cdefb37e5d19dc04b194c77c5909e
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue Apr 5 14:39:34 2011 -0700

    GFX: Removed SUPPORT_EGL_EXTENSIONS

    Removing Some EGL Extension support.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 1e90ac03aa57a1b6a2dcf3fb2d958150f5223de0
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 14:34:59 2011 -0700

    GFX: Fix to avoid infinite loop in ospm_power_island_up/down.

    - Removed redundant code to power on/off GL3 (PSB_PWRGT_GFX_MASK_B0)
    - Added counters with debug prints to detect infinite loops
    - Added code to handle ISP on/off to be used by camera driver.
    - invalidate GL3 before suspend.
    - Add in OSPM_ISP_ISLAND check in ospm_power_island_up.

Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
commit efe1620f8beb9e7c3c9b2c22792c2fc891fbbf3c
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Apr 14 11:24:46 2011 -0700

    Finally rebase to kernel-adaptation-mrst-2.6.37.6-26.1

commit 6ce9100dfde3e3e68764a5ccba9c2bbb590aede7
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Sun Apr 10 12:49:06 2011 -0700

    GFX: Fix tearing issue on Moorestown (Bugzilla 5503)

    Fix tearing on Moorestown due to race condition of Display moving
    buffer to screen on vysnc and driver swapping buffer on vsync.
    This is fixed here by using a timer to delay the driver flipping
    the display buffer. This change is made to not effect Medfield.

Signed-off-by: Daemon Anastas <daemonx.g.anastas@intel.com>
commit b0a6a0a3cd76de8b32dcc341b36ad220a37d8498
Author: Elaine Wang <elaine.wang@intel.com>
Date:   Wed Apr 13 15:23:56 2011 +0800

    GFX: Fix device firmware loading issue

    Fix a code defect that cause loading device firmware repeatedly
    in different video encoding sessions.

    Use Topaz context handle instead of variable topaz_fw_loaded to check
    if any video encoding process is running. When driver removes Topaz
    context, mark current MTX data as invalid to prohibit retoring MTX
    data wrongly at the beginning of next encoding session.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
commit f5541df0bf689ac4488b2b2ab5cfb18120023fd5
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue Apr 5 14:39:34 2011 -0700

    GFX: Removed SUPPORT_EGL_EXTENSIONS

    Removing Some EGL Extension support.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 5fb7d6107bf4a2b3903d45e7431fbe7b5c242d50
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:22:33 2011 +0800

    mrst gfx: Oaktrail HDMI enabling patch

    [v3] more bugfixes in mode setting test
    [v2] adding audio support.
    [v1] video and i2c implementation.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit 38d8c9c05c5477d907f9a8f1b6f9dfe615d4b58f
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:16:47 2011 +0800

    mrst gfx: change pipe number for oaktrail

    oaktrail platform (a variant of mrst) has two pipes, change
    pipe number to two.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit b88f9845e65b9dd0f2f7450795e1085918d2ade5
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 14:34:59 2011 -0700

    GFX: Fix to avoid infinite loop in ospm_power_island_up/down.

    - Removed redundant code to power on/off GL3 (PSB_PWRGT_GFX_MASK_B0)
    - Added counters with debug prints to detect infinite loops
    - Added code to handle ISP on/off to be used by camera driver.
    - invalidate GL3 before suspend.
    - Add in OSPM_ISP_ISLAND check in ospm_power_island_up.

Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
commit fa347620e74ec7aa76e96506514c51ec23ef7cfd
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 16:34:21 2011 -0700

    rebase kernel-adaptation-mrst-2.6.37.6-26.1

commit fe87b34dd827d2970dc0bb5e0eaf5b103ae9ca02
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Sun Apr 10 12:49:06 2011 -0700

    GFX: Fix tearing issue on Moorestown (Bugzilla 5503)

    Fix tearing on Moorestown due to race condition of Display moving
    buffer to screen on vysnc and driver swapping buffer on vsync.
    This is fixed here by using a timer to delay the driver flipping
    the display buffer. This change is made to not effect Medfield.

Signed-off-by: Daemon Anastas <daemonx.g.anastas@intel.com>
commit 5f44890f95b1e28e441c7c7963e6706e7f11a881
Author: Elaine Wang <elaine.wang@intel.com>
Date:   Wed Apr 13 15:23:56 2011 +0800

    GFX: Fix device firmware loading issue

    Fix a code defect that cause loading device firmware repeatedly
    in different video encoding sessions.

    Use Topaz context handle instead of variable topaz_fw_loaded to check
    if any video encoding process is running. When driver removes Topaz
    context, mark current MTX data as invalid to prohibit retoring MTX
    data wrongly at the beginning of next encoding session.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
commit 83429d2111104b378299458df9e24d373aeb0489
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue Apr 5 14:39:34 2011 -0700

    GFX: Removed SUPPORT_EGL_EXTENSIONS

    Removing Some EGL Extension support.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 65b6c93017bf226f79be269d4847a509de7ed055
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:22:33 2011 +0800

    mrst gfx: Oaktrail HDMI enabling patch

    [v3] more bugfixes in mode setting test
    [v2] adding audio support.
    [v1] video and i2c implementation.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit dd770ce3d548ae3c463ca8411e59a3de37796017
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:16:47 2011 +0800

    mrst gfx: change pipe number for oaktrail

    oaktrail platform (a variant of mrst) has two pipes, change
    pipe number to two.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit 4f213a9d02f689d9fe00102b6db71f8ac994a8b5
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 14:34:59 2011 -0700

    GFX: Fix to avoid infinite loop in ospm_power_island_up/down.

    - Removed redundant code to power on/off GL3 (PSB_PWRGT_GFX_MASK_B0)
    - Added counters with debug prints to detect infinite loops
    - Added code to handle ISP on/off to be used by camera driver.
    - invalidate GL3 before suspend.
    - Add in OSPM_ISP_ISLAND check in ospm_power_island_up.

Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
commit cc5b6236d07d1ffd5eb9202625baad9d1d0f4247
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Apr 13 15:46:21 2011 -0700

    git rebase kernel-adaptation-mrst-2.6.37.6-26.1

commit 56486202dfc76a2544a52bcf53d936824100d68b
Author: Daemon Anastas <daemonx.g.anastas@intel.com>
Date:   Tue Apr 12 19:07:24 2011 -0700

    check a spinlock and timer is not pending before setting timer (bugzilla 5503)

commit 2a6398ae1f523df0ba99c1dcafdd7a8a201d515a
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Apr 7 17:27:17 2011 -0700

    fix a typo

commit 063f2d34545728e7fc0df8e9b35217d94270bb1d
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Apr 7 16:43:19 2011 -0700

    GFX: Fix OSPM__ALL_ISLAND define

    OSPM_ALL_ISLAND is defined as 0x2f it needs to be 0x3f

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit a022158016906934e28fc5e43cab076bfc040e6c
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Apr 7 11:06:31 2011 -0700

    GFX: Fix to avoid infinite loop in ospm_power_island_up/down.

    - Removed redundant code to power on/off GL3 (PSB_PWRGT_GFX_MASK_B0)
    - Added counters with debug prints to detect infinite loops
    - Added code to handle ISP on/off to be used by camera driver.
    - invalidate GL3 before suspend.
    - Add in OSPM_ISP_ISLAND check in ospm_power_island_up.

Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
commit c929a97c9e94eb687f015936f7309fdbeb015e8d
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Tue Apr 5 14:39:34 2011 -0700

    GFX: Removed SUPPORT_EGL_EXTENSIONS

    Removing Some EGL Extension support.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 39e1a780478c305e511ba6d1d51b7a29f9a0c7fb
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:22:33 2011 +0800

    mrst gfx: Oaktrail HDMI enabling patch

    [v3] more bugfixes in mode setting test
    [v2] adding audio support.
    [v1] video and i2c implementation.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit 524e0ef2b155c944eb911b72589433377175c09c
Author: Li Peng <peng.li@intel.com>
Date:   Thu Mar 31 11:16:47 2011 +0800

    mrst gfx: change pipe number for oaktrail

    oaktrail platform (a variant of mrst) has two pipes, change
    pipe number to two.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Li Peng <peng.li@linux.intel.com>
commit 822f7c7b0906ac49cbc975dda57ed378aa085741
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Mar 31 12:24:58 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0041

    Weekly Graphics driver release.
    Please use usermode package 0041 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit f2e96e8f02812a0db19aadb8507f655a9948ac35
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Mar 31 12:14:22 2011 -0700

    GFX: Optimize and Disable GL3

    Use the bottom page of KERN_DATA_HEAP for GL3_USSE_WR_ADDR
    Disable GL3.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit dea7a3147923567ffe8bb9ffa5345b995ca5fa85
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Thu Mar 31 11:56:29 2011 -0700

    GFX: Fix for Runtime PM

    Runtime PM counters were not correctly incremneted/decremented
    since we were always decrementing even in fail condition but not
    incrementing in failed condition.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 80bdde90d17087d071d4d33111f11cd7f22b8fc4
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Mar 30 17:10:55 2011 -0700

    GFX: Add PMIC Backlight controls

    On Some morrestown platform the backlight is attached to PMIC.  This patch will...

    1. Enable Brighness level adjustment through PMIC Backlight controller
    2. Turn off Backlight completely when LVDS panel is off

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit 7399372ed507dfb318debe28a5644b4ee026f020
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Mar 30 17:10:15 2011 -0700

    revert PMIC backlight source

commit 454de637c7019a24da0d03efd169b0b9b0b70940
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Mon Mar 28 15:10:59 2011 -0700

    GFX: Add PMIC Backlight controls

    On Some morrestown platform the backlight is attached to PMIC.  This patch will...

    1. Enable Brighness level adjustment through PMIC Backlight controller
    2. Turn off Backlight completely when LVDS panel is off

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit cb94ee7a31a2a276c120b6edea9f01fa7d1bdb32
Author: Austin Hu <austin.hu@intel.com>
Date:   Thu Mar 24 15:43:00 2011 +0800

    GFX: Fixed a memory leak issue in the DRM_PSB_GETPAGEADDRS IOCTL.

    Fix Memory leak in TTM-GLUE.

Signed-off-by: Austin Hu <austin.hu@intel.com>
commit 9397a7c2e7d74e40c9a17bcf8989782b2181ce05
Author: Austin Yuan <shengquan.yuan@gmail.com>
Date:   Thu Mar 24 13:51:18 2011 +0800

    GFX: ospm_power_island_up/down: use loop counter to avoid infinite dead loop

    Attemp to fix 3577740:UI freeze during video playback due to events/0 over CPU consumption

    The rootcause is ospm_power_island_up/down run into dead loop

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
commit c0a076ee8d51e0e28b651801f45e62f563264769
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Wed Mar 23 14:32:10 2011 -0700

    GFX: Graphics Driver build release 5.3.0.0040

    Weekly Graphics driver release.
    Please use usermode package 0040 with this build.

Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
commit e9687aef40806d9577559ee0f2519a5a7e4f7f0a
Author: Hitesh K. Patel <hitesh.k.patel@intel.com>
Date:   Mon Mar 28 14:55:47 2011 -0700

    kernel rebase 2.6.37.57.1

commit cdb8d38531e2fbfb36762dd4cfa25516bd37e75e
Author: Yu(Alex) Dai <yu.dai@intel.com>
Date:   Thu Mar 3 21:30:46 2011 +0800

    Enlarge GENERAL_MAPPING heap to make sure more apps can run on SGX535 platform simultaneously.

    The GENERAL_MAPPING heap is created as shared heap for multi-contexts
    to fix one HW issue (BRN_23410). The heap size is set to 128M, which
    is not enough for high memory usage under MeeGo Tablet 1280x600 mode.
    Now set it to 512M to satisfy UI memory request.

Signed-off-by: Yu(Alex) Dai <yu.dai@intel.com>
commit b7561fedff1a11f785d2e2e2abbeeb3577f6cffb
Author: Jackie Li <yaodong.li@intel.com>
Date:   Thu Mar 3 21:30:08 2011 +0800

    GFX-Display: Fixed glsync tearing issue on MIPI panel.

    Tearing happens while running glsync -s b on both MIPI panel with vsync enabled.
    The root cause of this issue is that 3D blit happens during write_mem_start command transmission.

    Add a fixing to wait for DBI FIFO empty before schedule 3D blit to system frame buffer.
    TE interrupt of second MIPI panel was enabled since we need to send out write_mem_start command only when TE interrupt happens.

    Known issue:
    In dual MIPI clone mode, two MIPI panels share the same system frame buffer and TE interrupts may NOT happen at the same time,
    so if one of the TE interrupt handler woke up 3D blit to frame buffer, there would be tearing on the other MIPI panel
    if it is sending write_mem_start command

Signed-off-by: Jackie Li <yaodong.li@intel.com>
commit 9ef6a38fe330be33f74983b63c406a2fca52bdbc
Author: Justin Dou <Justin.Dou@intel.com>
Date:   Thu Mar 3 21:14:54 2011 +0800

    Added the kernel-mid.config for mrst kernel build and updated our gfx driver to 0038 version

    The kernel-mid.config is now aligned with configs/kernel-adaptation-mrst.config which was used for handset image build.

Signed-off-by: Justin Dou <Justin.Dou@intel.com>
commit f8aadafe3d6f4c4db5a5cb698b7df5e957c6517a
Author: Justin Dou <Justin.Dou@intel.com>
Date:   Thu Mar 3 20:15:22 2011 +0800

    Create the MRST kernel branch with kernel-adaptation-mrst-2.6.37-13.2.src.rpm

    This is the up-to-date kernel from http://download.meego.com/live/Trunk/standard/src/ which integrated our 0037 gfx driver.

Signed-off-by: Justin Dou <Justin.Dou@intel.com>
12 years agoPVR hybrid: rm drivers/staging/mrst from MCG kernel
Markus Lehtonen [Wed, 2 May 2012 11:14:58 +0000 (14:14 +0300)]
PVR hybrid: rm drivers/staging/mrst from MCG kernel

Move drivers/staging/mrst to drivers/staging/mrst.mcg.

12 years agoEnable proc fs to print more than 32 groups entries
Yan Yin [Tue, 21 Feb 2012 09:23:26 +0000 (17:23 +0800)]
Enable proc fs to print more than 32 groups entries

from security-server-0.0.1/include/SLP_security-server_PG.h:

"In kernel version 2.6, there is a file in proc file system
"/proc/[pid]/status" which describes various information about the
process as text, it has a line named "Groups:" and it lists the group
IDs that the process is belonged to. B
ut there is a drawback in this file, it only shows at most 32 group IDs,
if number of groups of the process is bigger than 32, it ignores
them.
To enable to show all the groups you have to patch the kernel source
code to show more groups than 32, but there is another drawback. All
files in the proc file system has size limit to 4k bytes because the
file buffer size is 4k bytes, so it's not possible to show all possible
groups of the process(64k), but currently number of all groups in the
LiMo platform is much lower than the size, so it's not a big problem.
But near future we need to apply this patch into kernel mainline source
code by any form.

12 years agoCFLAGS fix for Tizen
Markus Lehtonen [Wed, 1 Feb 2012 12:50:55 +0000 (14:50 +0200)]
CFLAGS fix for Tizen

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agon_gsm.c : Prevent adaption change while receiving datas
Vincent Pillet [Thu, 7 Jun 2012 13:21:22 +0000 (15:21 +0200)]
n_gsm.c : Prevent adaption change while receiving datas

BZ: 40341

If ioctl GSMIOC_DISABLE_NET is issued on gsmtty associated to
network interface while IP traffic is icomming, in rare case
gsm_mux_rx_netchar can use variable (mux_net) that can no more
be valid. We add a mutex to prevent that. More generally we
prevent that adaption can change while incomming data are managed.

Change-Id: I121d62ed479991c59aa95ce4b184e2c422ae21cc
Signed-off-by: Vincent Pillet <vincentx.pillet@intel.com>
12 years agohsi: fix NULL pointer in hsi_isr_tasklet
Yanmin Zhang [Mon, 25 Jun 2012 23:42:34 +0000 (07:42 +0800)]
hsi: fix NULL pointer in hsi_isr_tasklet

BZ: 43597

Kernel panic at hsi_isr_tasklet when there is a tty-ffl Tx timeout.
Basically, when there is a Tx time out, tty/tty-ffl/hsi would do
an error recovery and reinitialize hsi. hsi_mid_setup calls
hsi_ctrl_set_cfg firstly to turn on irq and DMA, then calls
alloc_xfer_ctx to prepare some memory blocks. If there is a hsi interrupt,
hsi_isr_tasklet might be called before alloc_xfer_ctx.

In addition, we add BUG checking in hsi_isr_tasklet.

Change-Id: I56cc9a638d29a75b7b211416d4c413f38d93e9a4
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
12 years agointel_soc_pmu: optimize retry logic and dump more information
Dong Yang [Sun, 17 Jun 2012 04:12:17 +0000 (12:12 +0800)]
intel_soc_pmu: optimize retry logic and dump more information

BZ: 42229

the pmu_pci_set_power_state() will try 3 times to wait the pmu2 get ready,
but every time issue a command to pmu2, since pmu2 is busy, this is the
wrong behavior, it should issue the interactive command only for 1 time
and wait the pmu2 to get ready for 3 times. or else it won't trigger panic
and will returned in case pmu2 busy forever.

Optimize retry logic and add longer delay in
_pmu2_wait_not_busy_yield(), use endless loop if PMU is alwasy
busy, dump all CPU call trace.

Change-Id: I4355706f95c87872e961f106ee1059eaee1590e1
Signed-off-by: Dong Yang <dong.yang@intel.com>
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
Signed-off-by: He, Bo <bo.he@intel.com>
12 years agokernel-drm: resolve kernel bug at padding message wrap
Fei Jiang [Thu, 14 Jun 2012 14:13:19 +0000 (22:13 +0800)]
kernel-drm: resolve kernel bug at padding message wrap

BZ: 41479

Actually padding message can also be wrapped, should not set BUG_ON that.
Add warning info printing for this case.

Change-Id: Ia4a0c2422b6333d9a7111aefadb12d5002ee9b9f
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
12 years agoaudio: add GPIO support for Lex jack detection
KuldeepX Vyas [Tue, 5 Jun 2012 09:52:16 +0000 (15:22 +0530)]
audio: add GPIO support for Lex jack detection

BZ: 39875

In PR2.1 board, a GPIO is added to improve the jack
detection logic.

Add driver support GPIO jack detection. _JACK_DET line is
connected to PNW GPIO line.  In addition to existing MSIC
jack detection interrupt, driver reads the GPIO line for
making decision on type jack device connected.

Change-Id: Ib4d8f0f4ecfa7b74f835d902ca8957845ef42261
Signed-off-by: KuldeepX Vyas <kuldeepx.vyas@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/51674
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[WORKAROUND]audio: SW support to swap mic bias1 & bias2
KuldeepX Vyas [Wed, 6 Jun 2012 13:07:52 +0000 (18:37 +0530)]
[WORKAROUND]audio: SW support to swap mic bias1 & bias2

BZ: 39873

Lex PR1.1 and PR2.1 have their AMIC bias lines are swapped.
Codec and Machine driver needs to handle the difference
between these two boards using SPID.

During driver initialization drivers reads SPID and based on
board, appropriate audio map is initialized.  In machine driver,
use appropriate AMIC Bias to handle headset button presses.

This patch should be reverted once Lex PR1.1 is EOLed.

Change-Id: I11c35644419e2d6b683cbb0e130c3bac51f4dfe9
Signed-off-by: KuldeepX Vyas <kuldeepx.vyas@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/53652
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_mdf_battery: move .suspend/.resume to .prepare/.complete
Illyas Mansoor [Mon, 18 Jun 2012 17:58:51 +0000 (23:28 +0530)]
intel_mdf_battery: move .suspend/.resume to .prepare/.complete

BZ: 42523

Medfield battery driver stops and starts the charger health monitoring
workqueue, this issues a lot of IPC commands and interferes with D0ix
transitions that are happening during system suspend/resume, causing
SCU contention and in rare cases d0ix transition timeouts.

Fixing this by moving the .suspend/.resume callbacks to .prepare/.complete

Added a delay during scheduling the workqueue in complete().

Change-Id: Iab4ce37e12bc1f3c3b4b530692bfe129fa64bb8f
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/53244
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFD/Battery: Fix battery status setting logic for interrupt case
Ramakrishna Pallala [Fri, 22 Jun 2012 11:14:50 +0000 (16:44 +0530)]
MFD/Battery: Fix battery status setting logic for interrupt case

BZ: 38168

Right we are setting the battery status to Not Chargring upon certain
interrutps without properly(really) checking the charger fault condition.

This patch will fix this issue by making sure that we check charger
fault case AND interrupt bits.

Change-Id: Ia41c5820dd616ca295a0421f8c3894828a173892
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/53736
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Mukherjee, DevapriyaX <devapriyax.mukherjee@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: set charging current limitation to 100mA by default for SDP case
Wu, Hao [Wed, 20 Jun 2012 11:09:37 +0000 (19:09 +0800)]
usb/penwell_otg: set charging current limitation to 100mA by default for SDP case

BZ: 38168

This is in order to workaround one issue in low battery level case,
set charging current to 100mA once SDP is detected. Late setting
may cause system shutdown due to low power state.

Change-Id: I829e3283b32a858b446e7287e72179e65825516b
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/53444
Reviewed-by: Mukherjee, DevapriyaX <devapriyax.mukherjee@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:add missing mutex protection to _dapm_sync call
Shankar D K [Thu, 21 Jun 2012 15:32:41 +0000 (21:02 +0530)]
audio:add missing mutex protection to _dapm_sync call

BZ: 42423

There can be race condition if _dapm_sync() is not called without
holding codec mutex.  It can lead to kernel crash.

This patch adds mutex locks before invoking _dapm_sync().
The _dapm_sync() needs to be called explicitely
only when driver uses _force_enable_pin() or _disable_pin().
Removed a reduntant _dapm_sync() call in codec driver, where
neither a enable or disable pin is used.

Change-Id: I6a81572993805d3a8c1ea3dde00274638d2a0a97
Signed-off-by: Shankar D K <shankar.d.kodandaram@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/53642
Reviewed-by: R, Dharageswari <dharageswari.r@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]sched: Fix cgroup movement of waking process
Daisuke Nishimura [Thu, 15 Dec 2011 05:37:41 +0000 (14:37 +0900)]
[PORT FROM R4]sched: Fix cgroup movement of waking process

BZ: 42195

(backport of upstream commit 62af3783e4f, merged in v3.3-rc1)

There is a small race between try_to_wake_up() and sched_move_task(),
which is trying to move the process being woken up.

    try_to_wake_up() on CPU0       sched_move_task() on CPU1
 --------------------------------+---------------------------------
  raw_spin_lock_irqsave(p->pi_lock)
  task_waking_fair()
    ->p.se.vruntime -= cfs_rq->min_vruntime
  ttwu_queue()
    ->send reschedule IPI to CPU1
  raw_spin_unlock_irqsave(p->pi_lock)
                                   task_rq_lock()
                                     -> tring to aquire both p->pi_lock and
                                        rq->lock with IRQ disabled
                                   task_move_group_fair()
                                     -> p.se.vruntime
                                          -= (old)cfs_rq->min_vruntime
                                          += (new)cfs_rq->min_vruntime
                                   task_rq_unlock()

                                   (via IPI)
                                   sched_ttwu_pending()
                                     raw_spin_lock(rq->lock)
                                     ttwu_do_activate()
                                       ...
                                       enqueue_entity()
                                         child.se->vruntime += cfs_rq->min_vruntime
                                     raw_spin_unlock(rq->lock)

As a result, vruntime of the process becomes far bigger than min_vruntime,
if (new)cfs_rq->min_vruntime >> (old)cfs_rq->min_vruntime.

This patch fixes this problem by just ignoring such process in
task_move_group_fair(), because the vruntime has already been normalized in
task_waking_fair().

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/20111215143741.df82dd50.nishimura@mxp.nes.nec.co.jp
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Orig-Change-Id: I5eabfb717750908a7045a35d8c10a1fcf7706052
Signed-off-by: German Monroy <german.monroy@intel.com>
Conflicts:

kernel/sched_fair.c

Change-Id: I2b32a77e3958f4b83ad99b3e74b898439b1e9da7
Reviewed-on: http://android.intel.com:8080/54413
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]sched: update correct entity's runtime in check_preempt_wakeup()
Paul Turner [Wed, 6 Jul 2011 02:07:21 +0000 (19:07 -0700)]
[PORT FROM R4]sched: update correct entity's runtime in check_preempt_wakeup()

BZ: 42195

(backport of upstream commit 9bbd7374361d, merged in v3.1-rc1)

While looking at check_preempt_wakeup() I realized that we are
potentially updating the wrong entity in the fair-group scheduling
case. In this case the current task's cfs_rq may not be the same as
the one used for the comparison between the waking task and the
existing task's vruntime.

This potentially results in us using a stale vruntime in the
pre-emption decision, providing a small false preference for the
previous task. The effects of this are bounded since we always
perform a hierarchal update on the tick.

Signed-off-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/CAPM31R+2Ke2urUZKao5W92_LupdR4AYEv-EZWiJ3tG=tEes2cw@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Change-Id: I32e6c3be9339bbd1f0435365f3b048dcba8c35d1
Orig-Change-Id: I6d728362a5cc654ba0f92ab0043a4011925a4444
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/54412
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]sched: Set skip_clock_update in yield_task_fair()
Mike Galbraith [Tue, 22 Nov 2011 14:21:26 +0000 (15:21 +0100)]
[PORT FROM R4]sched: Set skip_clock_update in yield_task_fair()

BZ: 42195

(backport of upstream commit 916671c08, merged in v3.3-rc1)

This is another case where we are on our way to schedule(),
so can save a useless clock update and resulting microscopic
vruntime update.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1321971686.6855.18.camel@marge.simson.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Change-Id: I55962c20a65857f52566c1970cb02e27f82845a8
Orig-Change-Id: I9e0b31ea4008cb0ed84b1dd3739c401856fdac4d
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/54410
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]sched: Fix cgroup movement of newly created process
Daisuke Nishimura [Thu, 15 Dec 2011 05:36:07 +0000 (14:36 +0900)]
[PORT FROM R4]sched: Fix cgroup movement of newly created process

BZ: 42195

(backport of upstream commit 7ceff013, merged in 3.3-rc1)

There is a small race between do_fork() and sched_move_task(), which is
trying to move the child.

            do_fork()                 sched_move_task()
 --------------------------------+---------------------------------
  copy_process()
    sched_fork()
      task_fork_fair()
        -> vruntime of the child is initialized
           based on that of the parent.
  -> we can see the child in "tasks" file now.
                                    task_rq_lock()
                                    task_move_group_fair()
                                      -> child.se.vruntime
                                           -= (old)cfs_rq->min_vruntime
                                           += (new)cfs_rq->min_vruntime
                                    task_rq_unlock()
  wake_up_new_task()
    ...
    enqueue_entity()
      child.se.vruntime += cfs_rq->min_vruntime

As a result, vruntime of the child becomes far bigger than min_vruntime,
if (new)cfs_rq->min_vruntime >> (old)cfs_rq->min_vruntime.

This patch fixes this problem by just ignoring such process in
task_move_group_fair(), because the vruntime has already been normalized in
task_fork_fair().

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/20111215143607.2ee12c5d.nishimura@mxp.nes.nec.co.jp
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Change-Id: I43b700487d934ede48fa95fe9942176d740c24f1
Orig-Change-Id: I2c9db9352e9ce33a62880192f798687280bd02ad
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/54408
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]sched: Fix cgroup movement of forking process
Daisuke Nishimura [Thu, 15 Dec 2011 05:36:55 +0000 (14:36 +0900)]
[PORT FROM R4]sched: Fix cgroup movement of forking process

BZ: 42195

(backport of upstream commit 4fc420c91, merged in v3.3-rc1)

There is a small race between task_fork_fair() and sched_move_task(),
which is trying to move the parent.

        task_fork_fair()                 sched_move_task()
 --------------------------------+---------------------------------
  cfs_rq = task_cfs_rq(current)
    -> cfs_rq is the "old" one.
  curr = cfs_rq->curr
    -> curr is set to the parent.
                                    task_rq_lock()
                                    dequeue_task()
                                      ->parent.se.vruntime -= (old)cfs_rq->min_vruntime
                                    enqueue_task()
                                      ->parent.se.vruntime += (new)cfs_rq->min_vruntime
                                    task_rq_unlock()
  raw_spin_lock_irqsave(rq->lock)
  se->vruntime = curr->vruntime
    -> vruntime of the child is set to that of the parent
       which has already been updated by sched_move_task().
  se->vruntime -= (old)cfs_rq->min_vruntime.
  raw_spin_unlock_irqrestore(rq->lock)

As a result, vruntime of the child becomes far bigger than expected,
if (new)cfs_rq->min_vruntime >> (old)cfs_rq->min_vruntime.

This patch fixes this problem by setting "cfs_rq" and "curr" after
holding the rq->lock.

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/20111215143655.662676b0.nishimura@mxp.nes.nec.co.jp
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Change-Id: I5fdea6d67116199553e0b608603e237e4e995946
Orig-Change-Id: I1ee474f2b786b962bbdf6409c7690abcea88bd2c
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/54404
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdd SPID reference in MSIC_AUDIO & SN95031 platform data
Sathyanarayanan Kuppuswamy [Fri, 22 Jun 2012 20:31:07 +0000 (13:31 -0700)]
Add SPID reference in MSIC_AUDIO & SN95031 platform data

BZ: 41996

Audio driver needs to differentiate between HW versions of
board during runtime.  If there are any difference between
boards, Audio driver will take decision based on SPID.
This patch adds that support.

Change-Id: If02f33110c6d0a20cf631666e7fb92692c2019c7
Signed-off-by: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-on: http://android.intel.com:8080/54045
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBT:BACKPORT: Issue fixed in upstream
Fei Yang [Fri, 22 Jun 2012 18:20:01 +0000 (11:20 -0700)]
BT:BACKPORT: Issue fixed in upstream

BZ: 43211

Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm

This was triggered by turning off encryption on ACL link when rfcomm
was using high security. rfcomm_security_cfm (which is called from rx
task) was closing DLC and this involves sending disconnect message
(and locking socket).

Move closing DLC to rfcomm_process_dlcs and only flag DLC for closure
in rfcomm_security_cfm.

BUG: sleeping function called from invalid context at net/core/sock.c:2032
in_atomic(): 1, irqs_disabled(): 0, pid: 1788, name: kworker/0:3
[<c0068a08>] (unwind_backtrace+0x0/0x108) from [<c05e25dc>] (dump_stack+0x20/0x24)
[<c05e25dc>] (dump_stack+0x20/0x24) from [<c0087ba8>] (__might_sleep+0x110/0x12c)
[<c0087ba8>] (__might_sleep+0x110/0x12c) from [<c04801d8>] (lock_sock_nested+0x2c/0x64)
[<c04801d8>] (lock_sock_nested+0x2c/0x64) from [<c05670c8>] (l2cap_sock_sendmsg+0x58/0xcc)
[<c05670c8>] (l2cap_sock_sendmsg+0x58/0xcc) from [<c047cf6c>] (sock_sendmsg+0xb0/0xd0)
[<c047cf6c>] (sock_sendmsg+0xb0/0xd0) from [<c047cfc8>] (kernel_sendmsg+0x3c/0x44)
[<c047cfc8>] (kernel_sendmsg+0x3c/0x44) from [<c056b0e8>] (rfcomm_send_frame+0x50/0x58)
[<c056b0e8>] (rfcomm_send_frame+0x50/0x58) from [<c056b168>] (rfcomm_send_disc+0x78/0x80)
[<c056b168>] (rfcomm_send_disc+0x78/0x80) from [<c056b9f4>] (__rfcomm_dlc_close+0x2d0/0x2fc)
[<c056b9f4>] (__rfcomm_dlc_close+0x2d0/0x2fc) from [<c056bbac>] (rfcomm_security_cfm+0x140/0x1e0)
[<c056bbac>] (rfcomm_security_cfm+0x140/0x1e0) from [<c0555ec0>] (hci_event_packet+0x1ce8/0x4d84)
[<c0555ec0>] (hci_event_packet+0x1ce8/0x4d84) from [<c0550380>] (hci_rx_task+0x1d0/0x2d0)
[<c0550380>] (hci_rx_task+0x1d0/0x2d0) from [<c009ee04>] (tasklet_action+0x138/0x1e4)
[<c009ee04>] (tasklet_action+0x138/0x1e4) from [<c009f21c>] (__do_softirq+0xcc/0x274)
[<c009f21c>] (__do_softirq+0xcc/0x274) from [<c009f6c0>] (do_softirq+0x60/0x6c)
[<c009f6c0>] (do_softirq+0x60/0x6c) from [<c009f794>] (local_bh_enable_ip+0xc8/0xd4)
[<c009f794>] (local_bh_enable_ip+0xc8/0xd4) from [<c05e5804>] (_raw_spin_unlock_bh+0x48/0x4c)
[<c05e5804>] (_raw_spin_unlock_bh+0x48/0x4c) from [<c040d470>] (data_from_chip+0xf4/0xaec)
[<c040d470>] (data_from_chip+0xf4/0xaec) from [<c04136c0>] (send_skb_to_core+0x40/0x178)
[<c04136c0>] (send_skb_to_core+0x40/0x178) from [<c04139f4>] (cg2900_hu_receive+0x15c/0x2d0)
[<c04139f4>] (cg2900_hu_receive+0x15c/0x2d0) from [<c0414cb8>] (hci_uart_tty_receive+0x74/0xa0)
[<c0414cb8>] (hci_uart_tty_receive+0x74/0xa0) from [<c02cbd9c>] (flush_to_ldisc+0x188/0x198)
[<c02cbd9c>] (flush_to_ldisc+0x188/0x198) from [<c00b2774>] (process_one_work+0x144/0x4b8)
[<c00b2774>] (process_one_work+0x144/0x4b8) from [<c00b2e8c>] (worker_thread+0x198/0x468)
[<c00b2e8c>] (worker_thread+0x198/0x468) from [<c00b9bc8>] (kthread+0x98/0xa0)
[<c00b9bc8>] (kthread+0x98/0xa0) from [<c0061744>] (kernel_thread_exit+0x0/0x8)

Change-Id: I1736d4d81ee5c5f89f17b42d66cafd0e57f7c471
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-on: http://android.intel.com:8080/53836
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: add spinlock to solve race condition
Jianxu Zheng [Tue, 19 Jun 2012 05:19:39 +0000 (13:19 +0800)]
atomisp: add spinlock to solve race condition

BZ: 34525

issue: kernel panicking and system hang when doing MTBF
root cause:
In failed case, atomisp_isr() is running on CPU0,
atomisp_acc_load() is on another CPU1 (hyper-thread / dual-core).
Atomisp_acc_load() sets  my_css.invalidate  between
sh_css_preview_next_stage_needs_alloc(), and atomisp_start_binary().
It causes kernel panicing when CSS API sh_css_preview_start()
tries to free memory. Because the memory (de)allocation
might trigger a sleep operation and it's in the ISR of ISP.
solution:
added a spinlock to protect the CSS flag my_css.invalidate in
sh_css_load_acceleration(), meanwhile the memory allocation for
        header->sp_arg in sh_css_load_acc() should be moved out of the
path spinlock protection. Moved it into the function
sh_css_acc_set_argument() which is the first place to use
the variable header->sp_arg.

For digital zoom/xnr, also add spinlock/mutex to protect
the CSS flag my_css.invalidate.

Change-Id: Icec8b3d2e1b513290fcbabcd19210710a962ecb8
Signed-off-by: Jianxu Zheng <jian.xu.zheng@intel.com>
Reviewed-on: http://android.intel.com:8080/53298
Reviewed-by: Augusteijn, Lex <lex.augusteijn@intel.com>
Reviewed-by: Govindapillai, Vinod <vinod.govindapillai@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: host: use spinlock to lock across the acquire ownership
Chuanxiao Dong [Tue, 19 Jun 2012 08:33:11 +0000 (16:33 +0800)]
mmc: host: use spinlock to lock across the acquire ownership

BZ: 42752

use spin lock to across the acquiring ownership to protect IA threads
compete

Change-Id: I1492b5fad0d309efb812adab37fa45744adccb52
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/53370
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: [mt9e013]set frame_valid flag in work queue call back.
Yoshio Wada [Wed, 13 Jun 2012 05:56:09 +0000 (07:56 +0200)]
atomisp: [mt9e013]set frame_valid flag in work queue call back.

BZ: 41629

root cause:
 gain control was designed below;
 First: control the filter at SOF via work queue.
 Next: respond the gain setup request via ioctl from user space.

 However work queue service delayed when cpu is heavily-loaded.
 This situation happens at 1080 recording.
 The work queue call back delayed 12 msec from enqueued at worst.
 In this case, control order is broken like below;
 First: respond the gain setup request.
 Second: control the filter.
 In the result, gain is setupped twice during one frame.

solution:
 set frame_valid flag in the work queue call back instead receipt SOF signal.
 then the gain setup request is suspended when work queue service delayed.

Change-Id: I4827b589591e010cb4fbefb3cbf8700f1224e5ec
Signed-off-by: Yoshio Wada <yoshio.wada@intel.com>
Reviewed-on: http://android.intel.com:8080/52711
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: Added Post2 support for frame buffer flipping.
Lei Zhang [Mon, 4 Jun 2012 01:41:27 +0000 (09:41 +0800)]
GFX-Display: Added Post2 support for frame buffer flipping.

BZ: 33412

This is 1/3 patches to solve Bug 33412.

Since post() path only supports update display plane surface in
kernel driver, we cannot configure other display plane settings
dynamically from user space.

This patch eanbled frame buffer flipping in Post2() path, and it
enhanced kernel driver to be able to re-config all display plane
registers, so that HWC can adjust display plane configs such as
plane format, z order dynamically.

This patch also increased the number of buffer of display class
so that we can multiple buffers to kernel driver in one flip cmd.

Change-Id: Id9b6bfcd0c59a2fbcb6338dc20dbbfd219ce5e9a
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/51149
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrivers/misc: ipanic should have a module parameter to specify dump partition
Robert Jarzmik [Fri, 11 May 2012 15:31:49 +0000 (17:31 +0200)]
drivers/misc: ipanic should have a module parameter to specify dump partition

BZ: 42097

Previously, dump partition was always number 6 (ie. mmcblk0p6). This
prevents repartitioning and reordering on futur boards.

This patch keeps 6 as the default, but makes the number configurable
as a module param :
 - with kernel commandline emmc_ipanic.ipanic_part_number=3 for mmcblk0p3

Change-Id: I600b08fd22d781f6175039479df000a4cb7eae72
Signed-off-by: Robert Jarzmik <robert.jarzmik@intel.com>
Reviewed-on: http://android.intel.com:8080/52962
Reviewed-by: Puech, Yann <yann.puech@intel.com>
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: set the digital zoom in atomisp_set_fmt()
Zhi Jin [Thu, 21 Jun 2012 05:41:40 +0000 (13:41 +0800)]
atomisp: set the digital zoom in atomisp_set_fmt()

BZ: 43056

Zoom must be recalculated by calling atomisp_digital_zoom()
when switching resolution.

Originally from: Zhi Jin <zhi.jin@intel.com>
Change-Id: Idbf5568965cb1ff20e0b255f269b627b4afbc2b3
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/53557
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX: Use sleep instead of delay when restoring registers
Jouni Hogander [Sun, 10 Jun 2012 08:49:56 +0000 (11:49 +0300)]
GFX: Use sleep instead of delay when restoring registers

BZ: 41131

mdfld_restore_display_registers is unnecessarily using mdelay and
udelay instead of usleep_range. mdfld_restore_display_registers is
never called from context were sleep is not allowed. Fix this by
changing mdelays and udelays to usleep_range.

Change-Id: I50e93eebadfcacbe0736719b36659a73cf7cf9b4
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/52409
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: optimizate hdmi detection and mode setting
Geng Xiujun [Wed, 23 May 2012 01:14:50 +0000 (09:14 +0800)]
Gfx-Display: optimizate hdmi detection and mode setting

BZ: 38339

This patch has following changes:
1. revert commit a315838f5d0be90e0f0abaf6b0f3683d9dc3b96f, as it's unused
currently.
2. using pointer rather than memcpy and memset.
3. trun off some log print.
4. optime mode setting path.

Change-Id: Ice1e9f916828b2446e0b6f2cf5a74402e08a909f
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/53134
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: fix mistake in /proc/display_status.
Ke Ai [Fri, 15 Jun 2012 11:19:14 +0000 (19:19 +0800)]
GFX-Display: fix mistake in /proc/display_status.

BZ: 42140

system will hange ,when using /proc/display_status.

it is related to buf overflow ,which been not protected well.

one example:
echo "a b000 b100">/proc/display_status

cat /proc/display_status

Change-Id: I4695e6b8a9a31faaee6e437bbd0ae3e5d5b7900f
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/53129
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: detach overlay rw ioctrl, gtt map/umap ioctrl from drm global lock.
Jason Hu [Wed, 13 Jun 2012 07:54:55 +0000 (15:54 +0800)]
GFX-Display: detach overlay rw ioctrl, gtt map/umap ioctrl from drm global lock.

BZ: 38361

1. Gtt map/unmap ioctrl don't need hold drm global lock. There is already a mm lock
for protecting gtt mm resource.
2. overlay wait vblank function should not block on mode_config lock, that will cause
actual wait time exceed a vblank period.
3. Add a mutex to protect overlay rw ioctrl instead of drm global lock. Because this
ioctrl is only used by overlay, it is not necessary to lock other display registers.

Change-Id: Ic9f98fb5bcb28925740133a4fb0c0aa3679b25ac
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/52606
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrm/ttm: reset user pages to WB if modified by ttm
Li Zeng [Fri, 8 Jun 2012 12:31:16 +0000 (20:31 +0800)]
drm/ttm: reset user pages to WB if modified by ttm

BZ: 37816

Set user pages to UC/WC to improve vec performance, need to reset user pages to WB when release TTM buffer object

Change-Id: I110c3dfd1a77d2a60f3d1b0be43563f8c033c7c4
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/52473
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoSPID: update kernel to match SPID spec v1.02
Fei Yang [Tue, 19 Jun 2012 22:38:44 +0000 (15:38 -0700)]
SPID: update kernel to match SPID spec v1.02

BZ: 42727

Also remove the OEMB table revision check as IA firmware supports
SPID for all hardware now.

Change-Id: I88c428db23765b662cd6ea933e9ab760daecb0ce
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/53655
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBluetooth: hidp device creation error handled
Raffaele Aquilone [Fri, 15 Jun 2012 10:08:25 +0000 (12:08 +0200)]
Bluetooth: hidp device creation error handled

BZ: 27942

The problems consists in sysfs_create_dir() missing a safety check on the
parent_sd value that sometimes is null. This, in turn, should never happen and
it depends on some structural problems in the HIDP core: this patch is not going
to fix all of them. What it does is just moving the device creation before
the session creation and handling the hid_add_device() failure accordingly.

Change-Id: I2ba7b11b8ded3e323d15180926ccb099deb26212
Signed-off-by: Raffaele Aquilone <raffaelex.aquilone@intel.com>
Reviewed-on: http://android.intel.com:8080/52900
Reviewed-by: Bransiec, ChristopheX <christophex.bransiec@intel.com>
Reviewed-by: Gros, JulienX <julienx.gros@intel.com>
Reviewed-by: Beldie, OvidiuX <ovidiux.beldie@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Champciaux, Nicolas <nicolas.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "[REVERTME] Improve check of validity of Fabric Log Buffer"
Christophe Lebouc [Wed, 13 Jun 2012 10:34:46 +0000 (12:34 +0200)]
Revert "[REVERTME] Improve check of validity of Fabric Log Buffer"

BZ: 40861

Revert commit 0ad40d01c3abf8fc05d71d8fed4d87a745f4b761

Change-Id: I183fc72791f913404831aea44a456c04e58ce1cb
Signed-off-by: Christophe Lebouc <christophe.lebouc@intel.com>
Reviewed-on: http://android.intel.com:8080/52625
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphics: fix the widi regression
yifei.xue [Tue, 19 Jun 2012 09:24:40 +0000 (17:24 +0800)]
Graphics: fix the widi regression

BZ: 42474

WiDi's MIPI turn off operation cause the LEX's screen can't turn back on.
Command mode's dpms path doesn't works well cause the issue. This patch is
wa. Will improve the dpms path to fix the issue later.
Change-Id: I4f28a83999958f7b7d848d687a033bb4426f5134
Signed-off-by: yifei.xue <yifeix.xue@intel.com>
Reviewed-on: http://android.intel.com:8080/53283
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoinit/calibrate: Fix bug in calibrate_delay
Jouni Hogander [Tue, 19 Jun 2012 11:03:21 +0000 (14:03 +0300)]
init/calibrate: Fix bug in calibrate_delay

BZ: 41942

There is a bug in calibrate_delay which causes delay calibration to be
performed on nonboot cpus when waking up from S3. This has huge impact on
screen resume latency. Fix this by correcting errorneous else if statement.

Change-Id: I57d0bd83f44d58ed8abe5e8aab7b34b00de04e2f
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/53297
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoIPC: add delay if read mip failed
Dong Yang [Tue, 19 Jun 2012 05:20:29 +0000 (13:20 +0800)]
IPC: add delay if read mip failed

BZ: 42495

The read_mip() function uses a dead loop to access mip, if read
mip access failed, this is not reasonable, since SCU will access
the emmc, and get the emmc mutex, if get mutex failed, SCU will
return and this function will read error return status and
trigger the IPC again. This will bring up the SCU interrupt storm,
about 800 times/second, and impact the other IPC. So we add a
delay in this loop, or IPC will continue until IA release the
emmc mutex.

Change-Id: I022fd46e04530b31d5118f91f3b1404b3ab85d0d
Signed-off-by: Dong Yang <dong.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/53241
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: He, Bo <bo.he@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrivers: staging: sep: Acquire IMR base from register for secure dma
Mark Allyn [Tue, 19 Jun 2012 21:14:59 +0000 (14:14 -0700)]
drivers: staging: sep: Acquire IMR base from register for secure dma

BZ: 42711

Bug: 42711

Change-Id: Ie92b58c9f508453582a53c3ee838b57fb5dc476f
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Reviewed-on: http://android.intel.com:8080/53365
Reviewed-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Tested-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: panic_ops: release Dekker mutex during ipanic saving
Chuanxiao Dong [Mon, 18 Jun 2012 02:07:37 +0000 (10:07 +0800)]
mmc: panic_ops: release Dekker mutex during ipanic saving

BZ: 42244

panic_ops: release Dekker mutex during ipanic saving

Change-Id: I675e033887244714cc8d6e720e1ce195cc76dd86
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/53044
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoltr301als: Change the adc-lux conversion method
Leo Yan [Fri, 15 Jun 2012 09:58:48 +0000 (17:58 +0800)]
ltr301als: Change the adc-lux conversion method

BZ: 39399 41574

The adc-lux conversion is not accurate on the DV20, change the
algorithm and coefficent according to the vendor's advice.

Change-Id: I5a6e11c86c8553cd40732c9cf300421a69ac440b
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/52892
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: [REVERTME] improve the SW workaround 47423
Geng Xiujun [Mon, 11 Jun 2012 08:24:31 +0000 (16:24 +0800)]
Gfx-Display: [REVERTME] improve the SW workaround 47423

BZ: 41053

The patch move WA 47423 from pci_fixup callback to i2c driver context. Once
there's a device using I2C bus 2, then try to turn on vadd, after finishing
transfer, try to turn off vadd. The turn off vadd operation is put in a delay
work queue, it will be delayed 100ms. once there's no device accessing this i2c
bus, then vadd will be turned off, otherwise the work will be canceled. This can
reduce time consumption if there're constant bus accessing.
another change is after turn on vadd, change wait time from 260ms to 60ms per
CMI panel spec, and before enabling GPIO_BL, wait another 200ms. this can save
200ms if there's i2c accessing before panel on.

Change-Id: I5d9e9e919506da606283e9e26b4cd9ce327bb736
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/52721
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[CRASHLOG] Reformat fabric err logs
Christophe Guerard [Mon, 18 Jun 2012 13:16:29 +0000 (15:16 +0200)]
[CRASHLOG] Reformat fabric err logs

BZ: 42166

The display format of the hex value of each Dword is changed
to show all bytes of the Dword for cosmetic

Change-Id: I8c02ddde240d68b0514222415f97eb3c585b4cba
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/53124
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4] mt9e013: add 480p+ 20% dvs envelope resolution
Robert Jong-A-Lock [Wed, 13 Jun 2012 07:08:32 +0000 (09:08 +0200)]
[PORT FROM R4] mt9e013: add 480p+ 20% dvs envelope resolution

BZ: 41002

For ICS a 480p sensor setting that also includes a 20% FoV needs to be added.
The sensor will then select this resolution instead of the two different ones
it was selecting before.

Change-Id: I28ec2ad8fee0266684173d72bb4b4983f76508b0
Orig-Change-Id: Ic19b0a6118edf4aec284f04c3f11ee4ee3eca5b8
Signed-off-by: Robert Jong-A-Lock <robert.jong-a-lock@intel.com>
Reviewed-on: http://android.intel.com:8080/52856
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9m114: implement VIDIOC_S/G_PARM for setting/getting stream parameters
Tuukka Toivonen [Mon, 18 Jun 2012 08:59:36 +0000 (11:59 +0300)]
mt9m114: implement VIDIOC_S/G_PARM for setting/getting stream parameters

BZ: 41720

Implement VIDIOC_G_PARM and VIDIOC_S_PARM to set and get struct
v4l2_streamparm.

Change-Id: I18eef26ced26b6bb871d737c0e47e28b7fe61fdb
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/53085
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: return framerate for VIDIOC_G_PARM ioctl call
Tuukka Toivonen [Mon, 18 Jun 2012 08:08:14 +0000 (11:08 +0300)]
atomisp: return framerate for VIDIOC_G_PARM ioctl call

BZ: 41720

VIDIOC_G_PARM should return the video frame rate, so call the
sensor driver to get the frame rate and return it.

Change-Id: Icbe636971934facfa11bf4732e0d4230c23e2789
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/53070
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: add a full FOV mode for 1080p
Tuukka Toivonen [Fri, 15 Jun 2012 07:48:17 +0000 (10:48 +0300)]
mt9e013: add a full FOV mode for 1080p

BZ: 41720

Add sensor mode with full field-of-view (FOV) and resolution
1640x956 @ 30 fps for Blackbay. This mode can be used for creating
1080p mode by using ISP upscaling.

Also add an option to specifically enable sensor modes which have
less than full FOV. Enable low FOV modes for Blackbay but leave
disabled for Enzo and Lexington.

Change-Id: Ib8d0743bcad62b1d275266add4c3a1a398941ef5
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52874
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: disable digital video stabilization when upscaling
Tuukka Toivonen [Thu, 14 Jun 2012 14:28:47 +0000 (17:28 +0300)]
atomisp: disable digital video stabilization when upscaling

BZ: 41720

Disable digital image stabilization (DVS) when ISP is doing
upscaling.

Change-Id: I6fc84d79476a534c6eabff04b9cccd92e0155d39
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52800
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: calculate zoom factor properly when upscaling
Tuukka Toivonen [Thu, 14 Jun 2012 14:24:54 +0000 (17:24 +0300)]
atomisp: calculate zoom factor properly when upscaling

BZ: 41720

ISP zoom must be properly configured when upscaling is enabled.
Calculate the zoom limits and scale the user provided zoom
factor into proper range.

Change-Id: I755e0a87da6da56523208bde7d5051cbac6778eb
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52799
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: implement VIDIOC_G_PARM for getting stream parameters
Tuukka Toivonen [Wed, 13 Jun 2012 11:39:52 +0000 (14:39 +0300)]
ov8830: implement VIDIOC_G_PARM for getting stream parameters

BZ: 41720

Implement function to return struct v4l2_streamparm and call this
function from VIDIOC_S_PARM handler to fill the returned
structure. Also clear sensor mode parameters when streaming mode
is set. The sensor mode should be selected after the streaming mode
has been set.

Change-Id: I8fcac0925db91a9a691f5cb126e9fc992827bf2b
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52730
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: enable upscaling on ISP
Tuukka Toivonen [Wed, 13 Jun 2012 08:17:01 +0000 (11:17 +0300)]
atomisp: enable upscaling on ISP

BZ: 41720

If the requested resolution is bigger than what the sensor supports,
use ISP upscaler to construct image of desired size instead of
returning a smaller resolution to user space.

Change-Id: Ie7b9e55fbe28b38b976851008f03537456501d26
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52729
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: implement VIDIOC_G_PARM for getting stream parameters
Tuukka Toivonen [Wed, 13 Jun 2012 07:36:24 +0000 (10:36 +0300)]
mt9e013: implement VIDIOC_G_PARM for getting stream parameters

BZ: 41720

Implement function to return struct v4l2_streamparm and call this
function from VIDIOC_S_PARM handler to fill the returned
structure. Also clear sensor mode parameters when streaming mode
is set. The sensor mode should be selected after the streaming mode
has been set.

Change-Id: I040510ce6b767695a1425e76388da4f57c8801d3
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52728
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: clear struct v4l2_streamparm which is passed to sensor driver
Tuukka Toivonen [Wed, 6 Jun 2012 07:48:27 +0000 (10:48 +0300)]
atomisp: clear struct v4l2_streamparm which is passed to sensor driver

BZ: 41720

AtomISP driver calls s_parm function of sensor drivers and gives
as an argument struct v4l2_streamparm without clearing it. This
causes random parameters to be passed on to drivers causing
possibly random effects.

Change-Id: Id04321ccbebf2ccaa30cdc5debfa1d3396330369
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52727
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Wrong cache page alignment
Emmanuel Berthier [Tue, 12 Jun 2012 11:07:22 +0000 (13:07 +0200)]
atomisp: Wrong cache page alignment

BZ: 41025

After enabling SLUB allocator debugging (cf BZ 39652), we get strange warning
logs:

KERNEL : [ 51.307896] WARNING: at hardware/intel/linux-2.6/arch/x86/mm/pageattr.c:877 change_page_attr_set_clr+0x273/0x420()

It appears that ISP pages are not aligned to kernel pages (0x400 instead of
0x1000).
Signed-off-by: Emmanuel Berthier <emmanuel.berthier@intel.com>
Change-Id: I57e0f747f45640bcaf3b83bd798bcb31e68a6d31
Reviewed-on: http://android.intel.com:8080/52491
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>