Ankit Nautiyal
5ad1ab30ac
drm/display/dp: Fix the DP DSC Receiver cap size
...
DP DSC Receiver Capabilities are exposed via DPCD 60h-6Fh.
Fix the DSC RECEIVER CAP SIZE accordingly.
Fixes: ffddc4363c ("drm/dp: Add DP DSC DPCD receiver capability size define and missing SHIFT")
Cc: Anusha Srivatsa <[email protected] >
Cc: Manasi Navare <[email protected] >
Cc: <[email protected] > # v5.0+
Signed-off-by: Ankit Nautiyal <[email protected] >
Reviewed-by: Stanislav Lisovskiy <[email protected] >
Signed-off-by: Jani Nikula <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-08-22 10:52:11 +03:00
Dave Airlie
901bdf5ea1
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
...
amd-drm-next-6.5-2023-06-02:
amdgpu:
- SR-IOV fixes
- Warning fixes
- Misc code cleanups and spelling fixes
- DCN 3.2 updates
- Improved DC FAMS support for better power management
- Improved DC SubVP support for better power management
- DCN 3.1.x fixes
- Max IB size query
- DC GPU reset fixes
- RAS updates
- DCN 3.0.x fixes
- S/G display fixes
- CP shadow buffer support
- Implement connector force callback
- Z8 power improvements
- PSP 13.0.10 vbflash support
- Mode2 reset fixes
- Store MQDs in VRAM to improve queue switch latency
- VCN 3.x fixes
- JPEG 3.x fixes
- Enable DC_FP on LoongArch
- GFXOFF fixes
- GC 9.4.3 partition support
- SDMA 4.4.2 partition support
- VCN/JPEG 4.0.3 partition support
- VCN 4.0.3 updates
- NBIO 7.9 updates
- GC 9.4.3 updates
- Take NUMA into account when allocating memory
- Handle NUMA for partitions
- SMU 13.0.6 updates
- GC 9.4.3 RAS updates
- Stop including unused swiotlb.h
- SMU 13.0.7 fixes
- Fix clock output ordering on some APUs
- Clean up DC FPGA code
- GFX9 preemption fixes
- Misc irq fixes
- S0ix fixes
- Add new DRM_AMDGPU_WERROR config parameter to help with CI
- PCIe fix for RDNA2
- kdoc fixes
- Documentation updates
amdkfd:
- Query TTM mem limit rather than hardcoding it
- GC 9.4.3 partition support
- Handle NUMA for partitions
radeon:
- Fix possible double free
- Stop including unused swiotlb.h
- Fix possible division by zero
ttm:
- Add query for TTM mem limit
- Add NUMA awareness to pools
- Export ttm_pool_fini()
UAPI:
- Add new ctx query flag to better handle GPU resets
Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22290
- Add new interface to query and set shadow buffer for RDNA3
Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21986
- Add new INFO query for max IB size
Proposed userspace: https://gitlab.freedesktop.org/bnieuwenhuizen/mesa/-/commits/ib-rejection-v3
amd-drm-next-6.5-2023-06-09:
amdgpu:
- S0ix fixes
- Initial SMU13 Overdrive support
- kdoc fixes
- Misc clode cleanups
- Flexible array fixes
- Display OTG fixes
- SMU 13.0.6 updates
- Revert some broken clock counter updates
- Misc display fixes
- GFX9 preemption fixes
- Add support for newer EEPROM bad page table format
- Add missing radeon secondary id
- Add support for new colorspace KMS API
- CSA fix
- Stable pstate fixes for APUs
- make vbl interface admin only
- Handle PCI accelerator class
amdkfd:
- Add debugger support for gdb
radeon:
- Fix possible UAF
drm:
- Add Colorspace functionality
UAPI:
- Add debugger interface for enabling gdb
Proposed userspace: https://github.com/ROCm-Developer-Tools/ROCdbgapi/tree/wip-dbgapi
- Add KMS colorspace API
Discussion: https://lists.freedesktop.org/archives/dri-devel/2023-June/408128.html
From: Alex Deucher <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-06-15 14:11:22 +10:00
Harry Wentland
1626761ee4
drm/connector: Convert DRM_MODE_COLORIMETRY to enum
...
This allows us to use strongly typed arguments.
v2:
- Bring NO_DATA back
- Provide explicit enum values
v3:
- Drop unnecessary '&' from kerneldoc (emersion)
v4:
- Fix Normal Colorimetry comment
Signed-off-by: Harry Wentland <[email protected] >
Reviewed-by: Simon Ser <[email protected] >
Reviewed-by: Sebastian Wick <[email protected] >
Reviewed-by: Pekka Paalanen <[email protected] >
Reviewed-by: Joshua Ashton <[email protected] >
Cc: Pekka Paalanen <[email protected] >
Cc: Sebastian Wick <[email protected] >
Cc: [email protected]
Cc: Uma Shankar <[email protected] >
Cc: Ville Syrjälä <[email protected] >
Cc: Joshua Ashton <[email protected] >
Cc: Simon Ser <[email protected] >
Cc: Melissa Wen <[email protected] >
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Alex Deucher <[email protected] >
2023-06-09 12:46:14 -04:00
Dave Airlie
33a8617088
Merge tag 'drm-misc-next-2023-05-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
...
drm-misc-next for 6.5:
UAPI Changes:
Cross-subsystem Changes:
- arch: Consolidate <asm/fb.h>
Core Changes:
- aperture: Ignore firmware framebuffers with non-primary devices
- fbdev: Use fbdev's I/O helpers
- sysfs: Expose DRM connector ID
- tests: More tests for drm_rect
Driver Changes:
- armada: Implement fbdev emulation as a client
- bridge:
- fsl-ldb: Support i.MX6SX
- lt9211: Remove blanking packets
- lt9611: Remove blanking packets
- tc358768: Implement input bus formats reporting, fix various
timings and clocks settings
- ti-sn65dsi86: Implement wait_hpd_asserted
- nouveau: Improve NULL pointer checks before dereference
- panel:
- nt36523: Support Lenovo J606F
- st7703: Support Anbernic RG353V-V2
- new panels: InnoLux G070ACE-L01
- sun4i: Fix MIPI-DSI dotclock
- vc4: RGB Range toggle property, BT601 and BT2020 support for HDMI
- vkms: Convert to drmm helpers, Add reflection and rotation support
Signed-off-by: Dave Airlie <[email protected] >
From: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/2pxmxdzsk2ekjy6xvbpj67zrhtwvkkhfspuvdm5pfm5i54hed6@sooct7yq6z4w
2023-05-19 11:37:59 +10:00
Dave Airlie
dc49c3b1d4
Merge tag 'drm-misc-fixes-2023-05-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
...
drm-misc-fixes for v6.4-rc2:
- More DSC macro fixes.
- Small mipi-dsi fix.
- Scheduler timeout handling fix.
---
drm-misc-fixes for v6.4-rc1:
- Fix DSC macros.
- Fix VESA format for simplefb.
- Prohibit potential out-of-bounds access in generic fbdev emulation.
- Improve AST2500+ compat on ARM.
Signed-off-by: Dave Airlie <[email protected] >
From: Maarten Lankhorst <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-05-12 05:32:36 +10:00
Jani Nikula
0d68683838
drm/dsc: fix DP_DSC_MAX_BPP_DELTA_* macro values
...
The macro values just don't match the specs. Fix them.
Fixes: 1482ec00be ("drm: Add missing DP DSC extended capability definitions.")
Cc: Vinod Govindapillai <[email protected] >
Cc: Stanislav Lisovskiy <[email protected] >
Signed-off-by: Jani Nikula <[email protected] >
Reviewed-by: Ankit Nautiyal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 22:40:57 +03:00
Jani Nikula
13525645e2
drm/dsc: fix drm_edp_dsc_sink_output_bpp() DPCD high byte usage
...
The operator precedence between << and & is wrong, leading to the high
byte being completely ignored. For example, with the 6.4 format, 32
becomes 0 and 24 becomes 8. Fix it, and remove the slightly confusing
and unnecessary DP_DSC_MAX_BITS_PER_PIXEL_HI_SHIFT macro while at it.
Fixes: 0575650077 ("drm/dp: DRM DP helper/macros to get DP sink DSC parameters")
Cc: Stanislav Lisovskiy <[email protected] >
Cc: Manasi Navare <[email protected] >
Cc: Anusha Srivatsa <[email protected] >
Cc: <[email protected] > # v5.0+
Signed-off-by: Jani Nikula <[email protected] >
Reviewed-by: Ankit Nautiyal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 22:40:40 +03:00
Rodrigo Siqueira
55b24786b7
drm/display: Add missing OLED Vesa brightnesses definitions
...
This commit adds missing luminance control registers to enable a more
standard way (VESA) to deal with eDP luminance control.
Cc: Anthony Koo <[email protected] >
Cc: Iswara Negulendran <[email protected] >
Cc: Felipe Clark <[email protected] >
Cc: Harry Wentland <[email protected] >
Signed-off-by: Rodrigo Siqueira <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-21 10:40:16 -06:00
Iswara Nagulendran
4d5f872dbc
drm/amd/display: Adding support for VESA SCR
...
[HOW&WHY]
Write DPCD 721 bit 7 to high, and
the appropriate luminance level
to DPCD 734-736 if bit 4 from DPCD register
734 is high, indicating that the panel
luminance control is enabled from the panel side.
Reviewed-by: Anthony Koo <[email protected] >
Acked-by: Qingqing Zhuo <[email protected] >
Signed-off-by: Iswara Nagulendran <[email protected] >
Tested-by: Daniel Wheeler <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2023-04-18 16:28:52 -04:00
Arun R Murthy
562334d22a
drm: Add SDP Error Detection Configuration Register
...
DP2.0 E11 defines a new register to facilitate SDP error detection by a
128B/132B capable DPRX device.
v2: Update the macro name to reflect the DP spec(Harry)
Signed-off-by: Arun R Murthy <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Jani Nikula <[email protected] >
Acked-by: Thomas Zimmermann <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-03-21 16:16:56 +02:00
Dave Airlie
0b45ac1170
Merge tag 'drm-intel-next-2023-01-12' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
...
drm/i915 feature pull #1 for v6.3:
Features and functionality:
- Meteorlake display enabling (Animesh, Luca, Stan, Jouni, Anusha)
- DP MST DSC support (Stan)
- Gamma/degamma readout support for the state checker (Ville)
- Enable SDP split support for DP 2.0 (Vinod)
- Add probe blocking support to i915.force_probe parameter (Rodrigo)
- Enable Xe HP 4tile support (Jonathan)
Refactoring and cleanups:
- Color refactoring, especially related to DSB usage (Ville)
- DSB refactoring (Ville)
- DVO refactoring (Ville)
- Backlight register and logging cleanups (Jani)
- Avoid display direct calls to uncore (Maarten, Jani)
- Add new "soc" sub-directory (Jani)
- Refactor DSC platform support checks (Swati)
Fixes:
- Interlace modes are no longer supported starting at display version 12 (Ankit)
- Use polling read for aux control (Arun)
- DMC firmware no longer requires specific versions (Gustavo)
- Fix PSR flickering and freeze issues (Jouni)
- Fix ICL+ DSI GPIO handling (Jani)
- Ratelimit errors in display engine irqs (Lucas)
- Fix DP MST DSC bpp and timeslot calculations (Stan)
- Fix CDCLK squash and crawl sequences (Ville, Anusha)
- Fix bigjoiner checks for fused pipes (Ville)
- Fix ADP+ degamma LUT size (Ville)
- Fix DVO ch7xxx and sil164 suspend/resume (Ville)
- Fix memory leak in VBT parsing (Xia Fukun)
- Fix VBT packet port selection for dual link DSI (Mikko Kovanen)
- Fix SDP infoframe product string for discrete graphics (Clint)
- Fix VLV/CHV HDMI/DP audio enable (Ville)
- Fix VRR delays and calculations (Ville)
- No longer disable transcoder for PHY test pattern change (Khaled)
- Fix dual PPS handling (Ville)
- Fix timeout and wait for DDI BUF CTL active after enabling (Ankit)
Merges:
- Backmerge drm-next to sync up with v6.2-rc1 (Jani)
Signed-off-by: Dave Airlie <[email protected] >
From: Jani Nikula <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-01-17 05:23:08 +10:00
Sung Joon Kim
50371be6c7
drm/display: Add missing Adaptive Sync DPCD definitions
...
The missing DPCD definitions from DP2.0 spec is as follows:
DOWNSPREAD_CTRL (107h):
FIXED_VTOTAL_AS_SDP_EN_IN_PR_ACTIVE (bit 6)
For sink devices that support Adaptive-Sync operation
and Panel Replay
DPRX_FEATURE_ENUMERATION_LIST_CONT_1 (2214h):
ADAPTIVE_SYNC_SDP_SUPPORTED (bit 0)
Bit to check sink device has Adaptive-Sync capability
AS_SDP_FIRST_HALF_LINE_OR_3840_PIXEL_CYCLE_WINDOW_NOT_SUPPORTED (bit 1)
A sink device that clears this bit will generate VSync pulse
leading edge of the HDMI output on the line count at which
Adaptive-Sync SDP is received as long as source device transmits
Adaptive-Sync SDP either in first line or first 3840 pixel cycles
of the line whichever occurs first.
VSC_EXT_SDP_FRAMEWORK_VERSION_1_SUPPORTED (bit 4)
Bit to check sink device has SDP framework version 1 capability
Signed-off-by: Sung Joon Kim <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-12-15 12:18:20 -05:00
Stanislav Lisovskiy
1482ec00be
drm: Add missing DP DSC extended capability definitions.
...
Adding DP DSC register definitions, we might need for further
DSC implementation, supporting MST and DP branch pass-through mode.
v2: - Fixed checkpatch comment warning
v3: - Removed function which is not yet used(Jani Nikula)
Reviewed-by: Vinod Govindapillai <[email protected] >
Acked-by: Maarten Lankhorst <[email protected] >
Signed-off-by: Stanislav Lisovskiy <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-12-13 18:17:52 +02:00
Dave Airlie
47519d8224
Merge tag 'amd-drm-next-6.1-2022-09-08' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
...
amd-drm-next-6.1-2022-09-08:
amdgpu:
- Mode2 reset for RDNA2
- Lots of new DC documentation
- Add documentation about different asic families
- DSC improvements
- Aldebaran fixes
- Misc spelling and grammar fixes
- GFXOFF stats support for vangogh
- DC frame size fixes
- NBIO 7.7 updates
- DCN 3.2 updates
- DCN 3.1.4 Updates
- SMU 13.x updates
- Misc bug fixes
- Rework DC register offset handling
- GC 11.x updates
- PSP 13.x updates
- SDMA 6.x updates
- GMC 11.x updates
- SR-IOV updates
- PSP fixes for TA unloading
- DSC passthrough support
- Misc code cleanups
amdkfd:
- ISA fixes for some GC 10.3 IPs
- Misc code cleanups
radeon:
- Delayed work flush fix
- Use time_after for some jiffies calculations
drm:
- DSC passthrough aux support
Signed-off-by: Dave Airlie <[email protected] >
From: Alex Deucher <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-09-12 19:17:41 +10:00
Markus Schneider-Pargmann
f89aa0b6db
video/hdmi: Add audio_infoframe packing for DP
...
Similar to HDMI, DP uses audio infoframes as well which are structured
very similar to the HDMI ones.
This patch adds a helper function to pack the HDMI audio infoframe for
DP, called hdmi_audio_infoframe_pack_for_dp().
hdmi_audio_infoframe_pack_only() is split into two parts. One of them
packs the payload only and can be used for HDMI and DP.
Also constify the frame parameter in hdmi_audio_infoframe_check() as
it is passed to hdmi_audio_infoframe_check_only() which expects a const.
Signed-off-by: Markus Schneider-Pargmann <[email protected] >
Signed-off-by: Guillaume Ranquet <[email protected] >
Signed-off-by: Bo-Chen Chen <[email protected] >
Reviewed-by: AngeloGioacchino Del Regno <[email protected] >
Signed-off-by: Dmitry Osipenko <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-09-04 15:31:59 +03:00
Hamza Mahfooz
34f667634a
drm/dp_mst: add passthrough_aux to struct drm_dp_mst_port
...
Currently, there is no way to identify if DSC pass-through can be
enabled and what aux DSC pass-through requests ought to be sent to. So,
add a variable to struct drm_dp_mst_port that keeps track of the
aforementioned information.
Reviewed-by: Lyude Paul <[email protected] >
Signed-off-by: Hamza Mahfooz <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-08-16 18:14:32 -04:00
Dave Airlie
15e2b419a8
Merge tag 'drm-misc-next-2022-04-28' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
...
drm-misc-next for 5.19:
UAPI Changes:
Cross-subsystem Changes:
Core Changes:
- Introduction of display-helper module, and rework of the DP, DSC,
HDCP, HDMI and SCDC headers
- doc: Improvements for tiny drivers, link to external resources
- formats: helper to convert from RGB888 and RGB565 to XRGB8888
- modes: make width-mm/height-mm check mandatory in of_get_drm_panel_display_mode
- ttm: Convert from kvmalloc_array to kvcalloc
Driver Changes:
- bridge:
- analogix_dp: Fix error handling in probe
- dw_hdmi: Coccinelle fixes
- it6505: Fix Kconfig dependency on DRM_DP_AUX_BUS
- panel:
- new panel: DataImage FG040346DSSWBG04
- amdgpu: ttm_eu cleanups
- mxsfb: Rework CRTC mode setting
- nouveau: Make some variables static
- sun4i: Drop drm_display_info.is_hdmi caching, support for the
Allwinner D1
- vc4: Drop drm_display_info.is_hdmi caching
- vmwgfx: Fence improvements
Signed-off-by: Dave Airlie <[email protected] >
# gpg: Signature made Thu 28 Apr 2022 17:52:13 AEST
# gpg: using EDDSA key 5C1337A45ECA9AEB89060E9EE3EF0D6F671851C5
# gpg: Can't check signature: No public key
From: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/20220428075237.yypztjha7hetphcd@houat
2022-04-29 11:33:00 +10:00
Thomas Zimmermann
5d1b8b4a14
drm/display: Split DisplayPort header into core and helper
...
Move DisplayPort protocol constants and structures into the new
header drm_dp.h, which can be used by DRM core components. The
existing header drm_dp_helper.h now only contains helper code for
graphics drivers. No functional changes.
Signed-off-by: Thomas Zimmermann <[email protected] >
Reviewed-by: Lyude Paul <[email protected] >
Reviewed-by: Javier Martinez Canillas <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-04-25 11:19:36 +02:00