From: Shashank Sharma shashank.sha...@intel.com
This patchset adds color-manager, a new framework in I915 driver which
adds color correction and tweak capabilities in the driver.
Color manager creates a DRM propery based interface for each color
correction, and based on the property type
From: Shashank Sharma shashank.sha...@intel.com
Color manager is a framework which adds color correction
and tuning capabilities in I915 driver. This framework creates
DRM properties for each color correction property, and allows
userspace to tune the display appearance.
This is the first patch
From: Shashank Sharma shashank.sha...@intel.com
In valleyview we have two pipe level color correction
properties:
1. CSC correction (wide gamut)
2. Gamma correction
What this patch does:
1. This patch adds software infrastructure to register pipe level
color correction properties per CRTC
From: Shashank Sharma shashank.sha...@intel.com
In valleyview we have three possible sprite plane level
color correction:
1. Contrast
2. Brightness
What this patch does:
1. This patch adds software infrastructure to register plane level
color correction properties per plane. Adding
From: Shashank Sharma shashank.sha...@intel.com
Color manager's pipe level correction properties are
registered as CRTC property. So its required to have a
.set_crtc function in CRTC functions.
This patch adds:
1. A .set_property function for intel_crtc, intel_crtc_set_property
which checks
From: Shashank Sharma shashank.sha...@intel.com
This patch adds support for pipe CSC correction color property
for intel color manager framework. It adds two functions:
1. intel_clrmgr_set_csc: This is a wrapper function
which checks the platform type, and calls the valleyview
specific
From: Shashank Sharma shashank.sha...@intel.com
This patch adds support for pipe gamma correction color property
for intel color manager framework. It adds two functions:
1. intel_clrmgr_set_gamma: This is a wrapper function
which checks the platform type, and calls the valleyview
specific
From: Shashank Sharma shashank.sha...@intel.com
This patch adds support for color property to set sprite plane
hue and saturation values, for intel color manager framework.
It adds two functions:
1. intel_clrmgr_set_hue_sat: This is a wrapper function
which checks the platform type
From: Shashank Sharma shashank.sha...@intel.com
Call color manager init and attach color properties
during the pipe and plane init time. This will register
all pipe level properties with each intel_crtc and all plane
level properties with each intel_plane objects.
Signed-off-by: Shashank Sharma
From: Shashank Sharma shashank.sha...@intel.com
Color manager's plane level correction properties are
registered as plane property. So its required to have a
.set_property function in plane functions.
This patch adds:
1. A .set_property function for intel_plane, intel_plane_set_property
which
From: Shashank Sharma shashank.sha...@intel.com
This patch adds support for color property to set sprite plane
contrast and brightness for intel color manager framework.
As, in valleyview the register for contrast and brightess
adjustment is same, one common function has been added to serve
both
From: Shashank Sharma shashank.sha...@intel.com
Call color manager exit from the CRTC destroy/ plane destroy
function to free all the allocated memory, and cleanup all
the registered DRM properties.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915
From: Shashank Sharma shashank.sha...@intel.com
This patch set adds 2 patches:
1. drm/i915: Optimize HDMI EDID reads
This patch adds a EDID caching solution in intel_hdmi_detect function
to avoid multiple EDID reads for single HPD. A delayed work function
makes sure that the cached EDID gets
From: Shashank Sharma shashank.sha...@intel.com
The current hdmi_detect() function is getting called from
many places, few of these are:
1. HDMI hot plug interrupt bottom half
2. get_resources() IOCTL family
3. drm_helper_probe_single_connector_modes() family
4. output_poll_execute()
5
From: Shashank Sharma shashank.sha...@intel.com
During the HDMI complaince tests, most of the HDMI analyzers
issue a soft HPD, to automate the tests. This process keeps
the HDMI cable connected, and DDC chhanel alive.
HDMI detect() logic relies on EDID readability, to decide if
its a HDMI
. The future platforms are supposed to use this variable to define
their mipi block mmio base.
2. drm/i915: Change Mipi register definitions
This patch changes the register definitions, uses mipi_mmio_offset to get the
exact address.
Shashank Sharma (2):
drm/i915: Add MIPI mmio reg base
drm
This patch adds a mmio base address variable for DSI display,
to make the DSI code generic, so that, if required, the same code
can be re-used for future platforms with different mmio base.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_drv.h |3
Re-define MIPI register definitions in such a way that most of
the existing DSI code can be re-used for future platforms. Register
definitions are re-written using MMIO offset variable, so that without
changing the existing sequence, same code can be generically applied.
Signed-off-by: Shashank
comments by Damien, added follwing changes:
1. Re-defined MIPI_DSI_FUNC_PRG using _PIPE macro, to remove
branching.
2. Re-written _MIPIB_DSI_FUNC_PRG and _MIPIA_DSI_FUNC_PRG
in single line.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h
comments by Damien and Ville, added follwing changes:
1. Replaced _PIPE with _TRANSCODER call, no branching added.
2. Removed all the un-necessary formatting changes from previous patch.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 344
comments by Damien and Ville, splitting into two patches
This patch removes all the un-necessary formatting changes from previous patch.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 342 +++-
1 file changed, 196
review comment.
Replacing _PIPE calls to _TRANSCODER calls
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 132
1 file changed, 66 insertions(+), 66 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_reg.h b
review comment.
Replacing _PIPE calls to _TRANSCODER calls
V2: Re-basing on patch 2
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 118
1 file changed, 59 insertions(+), 59 deletions(-)
diff --git a/drivers/gpu/drm
comments by Ville
This patch removes all the un-necessary formatting changes.
V5: Addressing review comments by Damien
Changed input variable name from tc to pipe
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 338
comments by Damien and Ville, splitting into two patches
This patch removes all the un-necessary formatting changes from previous patch.
V5: Removed 80 char limit formatting for existing MIPI regs
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 184
review comment.
Replacing _PIPE calls to _TRANSCODER calls
V2: Re-basing on patch 2
V3: Re-basing on patch 2
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/i915_reg.h | 144 ++--
1 file changed, 95 insertions(+), 49 deletions
From: Shashank Sharma shashank.sha...@intel.com
Re-define MIPI register definitions in such a way that most of
the existing DSI code can be re-used for future platforms. Register
definitions are re-written using MMIO offset variable, so that without
changing the existing sequence, same code can
From: Shashank Sharma shashank.sha...@intel.com
Conceptually, the MIPI registers are addressed by the MIPI transcoder
index, not the pipe. It doesn't matter right now, because there's a
1:1 relationship between pipes and MIPI transcoders, but that change
allows us to break that link in the future
parser.
4. Dummy prototypes for color correction functions.
The sysfs entry will be created at:
/sys/class/drm/connector-name/color-manager
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Uma Shankar uma.shan...@intel.com
---
drivers/gpu/drm/i915/Makefile |1 +
drivers
.
Shashank Sharma (6):
drm/i915: Add Color manager framework
drm/i915: Color Manager: Add CSC color correction
drm/i915: Color manager: Add Gamma correction
drm/i915: Color manager: brightness/contrast
drm/i915: Color manager: hue/saturation correction
drm/i915: Save color manager status
This patch is first extension to color manager framework.
It adds implementataion of color manager property CSC
correction (wide gamute) in intel color manager framework.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/intel_clrmgr.c | 117
cycles
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Vikas Korjani vikas.korj...@intel.com
---
drivers/gpu/drm/i915/intel_clrmgr.c | 113 +++
drivers/gpu/drm/i915/intel_clrmgr.h |2 +-
2 files changed, 114 insertions(+), 1 deletion
This patch is fourth extension to color manager framework.
It adds implementataion of color manager property Hue and
Saturation correction in intel color manager framework.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/intel_clrmgr.c | 84
. Sprote level = (Sprite plane only)
This patch supports all three levels of correction.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/intel_clrmgr.c | 424 +-
drivers/gpu/drm/i915/intel_display.c |5 +-
2 files changed, 422
This patch is third extension to color manager framework.
It adds implementataion of color manager property Brightness
and Contrast correction in intel color manager framework.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
---
drivers/gpu/drm/i915/intel_clrmgr.c | 98
From: Shashank Sharma shashank.sha...@intel.com
Color manager is an extention to i915 driver which provides display
tuning and color-correction properties to user space, via DRM propery
interface.Different Intel platforms support different color tuning capabilities
which can be exploited using
From: Shashank Sharma shashank.sha...@intel.com
Add set_property function in CRTC ops.
This function will be required for color correction properties.
Userspace will do a set_property operation on CRTC object, to
do display tuning or color correction.
Signed-off-by: Shashank Sharma shashank.sha
From: Shashank Sharma shashank.sha...@intel.com
This patch adds support for CSC correction color property.
It does the following:
1. Creates a new DRM property for CSC correction. Adds this into
mode_config.
2. Attaches this CSC property to calling CRTC. Creates a blob
to store
From: Shashank Sharma shashank.sha...@intel.com
Color manager is a framework which adds drm properties for
color correction in I915 driver. This framework creates DRM
properties for each color correction feature, and attaches
it to appropriate CRTC/plane based on the property type.
This allows
From: Shashank Sharma shashank.sha...@intel.com
This patch does following things:
1. Adds new function to attach color proprties with
corresponsing crtc / plane objects.
2. Call these attach functions, from corresponding crtc/plane
init functions.
Signed-off-by: Shashank Sharma
:58AM +0530, Sonika Jindal wrote:
From: Shashank Sharma contactshashanksha...@gmail.com
This patch makes sure that the HDMI detect function
reads EDID only when its forced to do it. All the other
times, it uses the connector-detect_edid which was cached
during hotplug handling
From: Kausal Malladi kausalmall...@gmail.com
This patch adds new variables in CRTC state, to hold respective color
correction blobs. These blobs will be required during the atomic commit
for writing the color correction values in correction registers.
Signed-off-by: Shashank Sharma shashank.sha
intel_color_manager(.c/.h)
2. Attach CRTC Palette Capabilities property to CRTC
3. Load all CHV platform specific gamma color capabilities
for CRTC into a blob that can be accessible by user space to
query capabilities via DRM property interface.
Signed-off-by: Shashank Sharma shashank.sha
function for CHV/BSW
4. Adds Gamma correction macros
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/i915_reg.h| 12 +++
drivers/gpu/drm/i915/intel_color_manager.c | 146
-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/intel_atomic.c| 7 +++
drivers/gpu/drm/i915/intel_color_manager.c | 19 +++
drivers/gpu/drm/i915/intel_drv.h | 3 +++
3 files changed, 29
commit path.
V2: Worked on review comments from Matt, Jim, Thierry, Rob.
Shashank Sharma (18):
drm: Create Color Management DRM properties
drm/i915: Add atomic set property interface for CRTC
drm/i915: Add atomic get property interface for CRTC
drm: Add structure for querying palette
From: Kausal Malladi kausalmall...@gmail.com
This patch adds new structures in DRM layer for Palette color
correction.These structures will be used by user space agents
to configure appropriate number of samples and Palette LUT for
a platform.
Signed-off-by: Shashank Sharma shashank.sha
-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
include/uapi/drm/drm.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 3801584..e3c642f 100644
--- a/include/uapi/drm/drm.h
, these
values will be committed during atomic commit.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/intel_atomic.c| 14 ++
drivers/gpu/drm/i915/intel_color_manager.c | 20
From: Kausal Malladi kausalmall...@gmail.com
This patch adds atomic set property interface for Intel CRTC. This
interface will be used for set operation on any DRM properties.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
/SKL/BXT
platform
2. Adds Gamma correction macros/defines
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/i915_reg.h| 17 +-
drivers/gpu/drm/i915/intel_color_manager.c | 269
by all user space agents to
configure CTM coefficients for color correction.
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
include/uapi/drm/drm.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/uapi/drm
-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/intel_atomic.c| 5 +
drivers/gpu/drm/i915/intel_color_manager.c | 19 +++
drivers/gpu/drm/i915/intel_drv.h | 3 +++
3 files changed, 27
for
BDW/SKL/BXT platform
2. Adds DeGamma correction macros/defines
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/intel_color_manager.c | 68 ++
drivers/gpu/drm/i915
. Adds CSC correction macros/defines
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/i915_reg.h| 5 ++
drivers/gpu/drm/i915/intel_color_manager.c | 90 ++
drivers/gpu/drm
DeGamma correction values for
CHV/BSW platform
2. Add DeGamma correction macros/defines
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/i915_reg.h| 5 ++
drivers/gpu/drm/i915/intel_color_manager.c
values
3. Adds CSC correction macros
Signed-off-by: Shashank Sharma shashank.sha...@intel.com
Signed-off-by: Kausal Malladi kausalmall...@gmail.com
---
drivers/gpu/drm/i915/i915_reg.h| 5 ++
drivers/gpu/drm/i915/intel_color_manager.c | 108 +
drivers/gpu
mma with switch case
Shashank Sharma (23):
drm: Create Color Management DRM properties
drm: Create Color Management query properties
drm: Add color correction blobs in CRTC state
drm: Add set property support for color manager
drm: Add get property support for color manager
drm: Add
correction properties.
2. Creating these DRM properties in DRM standard properties creation
sequence.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/drm_crtc.c | 19 +++
include/dr
-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
Signed-off-by: Kumar, Kiran S <kiran.s.ku...@intel.com>
---
drivers/gpu/drm/i915/i915_reg.h| 7 ++
drivers/gpu/drm/i915/intel_col
in device
info structures, for all of those.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_drv.c| 7 +++
drivers/gpu/drm/i915/intel_color_manager.h | 3 +++
2 files changed,
In plane enabling sequence, plane gamma bit is by default enabled.
Plane gamma gets higher priority than pipe gamma, if both enabled.
This patch disables plane gamma from sequence. If required, plane
gamma can be enabled via the color manager drm interface.
signed-off-by: Kumar, Kiran S
I915 color manager registers pipe degamma correction as palette
correction before CTM, DRM property.
This patch adds the no of coefficients(512) for degamma correction
as "num_samples_before_ctm" parameter in device info structures,
for BDW and higher platforms.
Signed-off-by: Shash
macros
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_reg.h| 12
drivers/gpu/drm/i915/intel_color_manager.c | 94 ++
drivers/
2. Adds DeGamma correction macros/defines
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/intel_color_manager.c | 59 ++
1 file changed, 59 insertions(+)
diff --g
no of coefficitents for best gamma color correction
modes possible in CHV, in device info structure, which is:
Gamma(10 bit, CGM HW unit): 257 coeff
These values will be loaded in cm_crtc_palette_capabilities_property
during the CRTC init section, by color manager's attach function.
Signed-off-by: Shashank
.
- cm_coeff_after_ctm_property: A platform driver should use this property
to show supported no_of_coefficients for palette correction, which gets
applied after ctm correction.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
---
drivers/gpu/drm/drm_crtc.
This patch adds new variables in CRTC state, to hold respective color
correction blobs. These blobs will be required during the atomic commit
for writing the color correction values in correction registers.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@l.com>
---
drivers/gpu/drm/i915/i915_drv.c| 1 +
drivers/gpu/drm/i915/intel_color_manager.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/
This patch adds new structures in DRM layer for Palette color
correction.These structures will be used by user space agents
to configure appropriate number of samples and Palette LUT for
a platform.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
This patch adds set property interface for intel CRTC. This
interface will be used for set operation on any DRM properties.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/intel_display.c |
the blob can referred and applied on display controller
registers.
This patch adds this set_property support for color correction blobs
in drm framework.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal malladi <kausalmall...@gmail.com>
---
dri
for color correction.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
include/uapi/drm/drm.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 3dce
This patch create new files intel_color_manager.c which
will contain the core color correction code for I915 driver
and its header intel_color_manager.h
The per color property patches coming up in this patch series
will fill the appropriate functions in this file.
Signed-off-by: Shashank Sharma
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_reg.h| 25 ++-
drivers/gpu/drm/i915/intel_color_manager.c | 281 +
drivers/gpu/drm/i915/intel_col
Function intel_attach_color_properties_to_crtc attaches a
color property to its CRTC object. This patch calls this
function from crtc initialization sequence.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
dri
for the property
and passing its blob_id.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
---
drivers/gpu/drm/drm_atomic.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 12a34e9..b49aaeb 100644
--- a/drive
. Add DeGamma correction macros/defines
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_reg.h| 6 ++
drivers/gpu/drm/i915/intel_color_manager.c | 92 +++
getting initiaized.
3. Adds two new parameters "num_samples_after_ctm" and
"num_samples_before_ctm" in intel_device_info as gamma and
degamma coefficients vary per platform basis.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kau
The color correction blob values are loaded during set_property
calls. This patch adds a function to find the blob and apply the
correction values to the display registers, during the atomic
commit call.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
Signed-off-by: Kumar, Kiran S <kiran.s.ku...@intel.com>
---
drivers/gpu/drm/i915/i915_reg.h| 8 +++
drivers/gpu/drm/i915/intel_co
for the property
and passing its blob_id.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
---
drivers/gpu/drm/drm_atomic.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 12a34e9..b49aaeb 100644
--- a/drive
no of coefficitents for best gamma color correction
modes possible in CHV, in device info structure, which is:
Gamma(10 bit, CGM HW unit): 257 coeff
These values will be loaded in cm_crtc_palette_capabilities_property
during the CRTC init section, by color manager's attach function.
Signed-off-by: Shashank
. Add DeGamma correction macros/defines
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_reg.h| 6 ++
drivers/gpu/drm/i915/intel_color_manager.c | 92 +++
-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@l.com>
---
drivers/gpu/drm/i915/i915_drv.c| 1 +
drivers/gpu/drm/i915/intel_color_manager.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/
macros
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/i915_reg.h| 12
drivers/gpu/drm/i915/intel_color_manager.c | 94 ++
drivers/
This patch adds new structures in DRM layer for Palette color
correction.These structures will be used by user space agents
to configure appropriate number of samples and Palette LUT for
a platform.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
This patch create new files intel_color_manager.c which
will contain the core color correction code for I915 driver
and its header intel_color_manager.h
The per color property patches coming up in this patch series
will fill the appropriate functions in this file.
Signed-off-by: Shashank Sharma
the blob can referred and applied on display controller
registers.
This patch adds this set_property support for color correction blobs
in drm framework.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal malladi <kausalmall...@gmail.com>
---
dri
.
- cm_coeff_after_ctm_property: A platform driver should use this property
to show supported no_of_coefficients for palette correction, which gets
applied after ctm correction.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
---
drivers/gpu/drm/drm_crtc.
This patch adds set property interface for intel CRTC. This
interface will be used for set operation on any DRM properties.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/i915/intel_display.c |
for color correction.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
include/uapi/drm/drm.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 3dce
The color correction blob values are loaded during set_property
calls. This patch adds a function to find the blob and apply the
correction values to the display registers, during the atomic
commit call.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
Signed-off-by: Kumar, Kiran S <kiran.s.ku...@intel.com>
---
drivers/gpu/drm/i915/i915_reg.h| 8 +++
drivers/gpu/drm/i915/intel_co
Add a color correction state flag, to indicate a change in
color correction states. This flag will help a core driver to
optimize its commit calls, by appling the color correction only
when there is a change, not every commit.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.
mma with switch case
V7: Worked on Gary's suggestion to optimize the commit calls, applying color
correction only
when there is a change in color property status (not every commit). Added
patch 24 and 25 in
series, for the same.
Shashank Sharma (25):
drm: Create Color Management DRM p
correction properties.
2. Creating these DRM properties in DRM standard properties creation
sequence.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
drivers/gpu/drm/drm_crtc.c | 19 +++
include/dr
This patch adds new variables in CRTC state, to hold respective color
correction blobs. These blobs will be required during the atomic commit
for writing the color correction values in correction registers.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal M
Function intel_attach_color_properties_to_crtc attaches a
color property to its CRTC object. This patch calls this
function from crtc initialization sequence.
Signed-off-by: Shashank Sharma <shashank.sha...@intel.com>
Signed-off-by: Kausal Malladi <kausalmall...@gmail.com>
---
dri
I915 color manager registers pipe degamma correction as palette
correction before CTM, DRM property.
This patch adds the no of coefficients(512) for degamma correction
as "num_samples_before_ctm" parameter in device info structures,
for BDW and higher platforms.
Signed-off-by: Shash
1 - 100 of 690 matches
Mail list logo