public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4]: Picture aspect ratio support in DRM layer
@ 2016-10-17 11:32 Shashank Sharma
  2016-10-17 11:31 ` Jose Abreu
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Shashank Sharma @ 2016-10-17 11:32 UTC (permalink / raw)
  To: dri-devel, jim.bride; +Cc: daniel.vetter, intel-gfx

This patch series adds 4 patches.
- The first two patches add aspect ratio support in DRM layes
- Next two patches add new aspect ratios defined in CEA-861-F
  supported for HDMI 2.0 4k modes.

Adding aspect ratio support in DRM layer:
- The CEA videmodes contain aspect ratio information, which we
  parse when we read the modes from EDID. But while transforming
  user_mode to kernel_mode or viceversa, DRM layer lose this
  information.
- HDMI compliance testing for CEA modes, expects the AVI info frames
  to contain exact VIC no for the 'video mode under test'. Now CEA
  modes have different VIC for same modes but different aspect ratio
  for example:
        VIC 2 = 720x480@60 4:3
        VIC 3 = 720x480@60 16:9
  In this way, lack of aspect ratio information, can cause wrong VIC
  no in AVI IF, causing HDMI complaince test to fail.
- This patch set adds code, which embeds the aspect ratio information
  also in DRM video mode flags, and uses it while comparing two modes.

Adding new aspect ratios for HDMI 2.0
- CEA-861-F defines two new aspect ratios, to be used for 4k HDMI 2.0
  modes.
        - 64:27
        - 256:135
Last two patches in the series, adds code to handle these new
aspect ratios.

V2: Fixed review comments from Sean, Emil, Daniel
V3: Fixed review comments from Jim Bride, got r-b for all patches

Shashank Sharma (4):
  drm: add picture aspect ratio flags
  drm: Add aspect ratio parsing in DRM layer
  video: Add new aspect ratios for HDMI 2.0
  drm: Add and handle new aspect ratios in DRM layer

 drivers/gpu/drm/drm_modes.c | 43 +++++++++++++++++++++++++++++++++++++++++++
 drivers/video/hdmi.c        |  4 ++++
 include/linux/hdmi.h        |  2 ++
 include/uapi/drm/drm_mode.h | 24 +++++++++++++++++++-----
 4 files changed, 68 insertions(+), 5 deletions(-)

-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v3 0/4] Picture aspect ratio support in DRM layer
@ 2016-10-17 11:22 Shashank Sharma
  2016-10-17 11:13 ` Sharma, Shashank
  0 siblings, 1 reply; 11+ messages in thread
From: Shashank Sharma @ 2016-10-17 11:22 UTC (permalink / raw)
  To: dri-devel, jim.bride; +Cc: daniel.vetter, intel-gfx

This patch series adds 4 patches.
- The first two patches add aspect ratio support in DRM layes
- Next two patches add new aspect ratios defined in CEA-861-F
  supported for HDMI 2.0 4k modes.

Adding aspect ratio support in DRM layer:
- The CEA videmodes contain aspect ratio information, which we
  parse when we read the modes from EDID. But while transforming
  user_mode to kernel_mode or viceversa, DRM layer lose this
  information.
- HDMI compliance testing for CEA modes, expects the AVI info frames
  to contain exact VIC no for the 'video mode under test'. Now CEA
  modes have different VIC for same modes but different aspect ratio
  for example:
        VIC 2 = 720x480@60 4:3
        VIC 3 = 720x480@60 16:9
  In this way, lack of aspect ratio information, can cause wrong VIC
  no in AVI IF, causing HDMI complaince test to fail.
- This patch set adds code, which embeds the aspect ratio information
  also in DRM video mode flags, and uses it while comparing two modes.

Adding new aspect ratios for HDMI 2.0
- CEA-861-F defines two new aspect ratios, to be used for 4k HDMI 2.0
  modes.
        - 64:27
        - 256:135
Last two patches in the series, adds code to handle these new
aspect ratios.

V2: Fixed review comments from Sean, Emil, Daniel

V3: Fixed review comment from Jim Bride, got r-b for all patches

Shashank Sharma (4):
  drm/i915: Add lspcon resume function
  drm: Add aspect ratio parsing in DRM layer
  video: Add new aspect ratios for HDMI 2.0
  drm: Add and handle new aspect ratios in DRM layer

 drivers/gpu/drm/drm_modes.c         | 43 +++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_dp.c     |  7 +++++-
 drivers/gpu/drm/i915/intel_drv.h    |  1 +
 drivers/gpu/drm/i915/intel_lspcon.c |  8 +++++++
 drivers/video/hdmi.c                |  4 ++++
 include/linux/hdmi.h                |  2 ++
 include/uapi/drm/drm_mode.h         |  6 ++++++
 7 files changed, 70 insertions(+), 1 deletion(-)

-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-17 12:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 11:32 [PATCH v3 0/4]: Picture aspect ratio support in DRM layer Shashank Sharma
2016-10-17 11:31 ` Jose Abreu
2016-10-17 11:34   ` Sharma, Shashank
2016-10-17 11:32 ` [PATCH v3 1/4] drm: add picture aspect ratio flags Shashank Sharma
2016-10-17 11:32 ` [PATCH v3 2/4] drm: Add aspect ratio parsing in DRM layer Shashank Sharma
2016-10-17 11:32 ` [PATCH v3 3/4] video: Add new aspect ratios for HDMI 2.0 Shashank Sharma
2016-10-17 11:32 ` [PATCH v3 4/4] drm: Add and handle new aspect ratios in DRM layer Shashank Sharma
2016-10-17 11:53 ` ✗ Fi.CI.BAT: warning for : Picture aspect ratio support in DRM layer (rev2) Patchwork
2016-10-17 11:59   ` Saarinen, Jani
  -- strict thread matches above, loose matches on Subject: below --
2016-10-17 11:22 [PATCH v3 0/4] Picture aspect ratio support in DRM layer Shashank Sharma
2016-10-17 11:13 ` Sharma, Shashank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox