08 Apr, 2020

4 commits


07 Apr, 2020

10 commits


03 Apr, 2020

1 commit


02 Apr, 2020

1 commit


01 Apr, 2020

16 commits

  • [Why]
    Some displays have an issue where the hdcp chips are initialized after the
    display has already lit up. This means we can sometimes authentication too early
    and cause authentication failures.

    This happens when HDCP is enabled and the display is power cycled. Normally we
    will authenticate 2 seconds after the display is lit, but some displays need a
    bit more time.

    [How]
    Increase delay to 3 second before we start authentication.

    Signed-off-by: Bhawanpreet Lakha
    Reviewed-by: Nicholas Kazlauskas
    Signed-off-by: Alex Deucher

    Bhawanpreet Lakha
     
  • [Why]
    -We need to cancel future callbacks/watchdogs events when a callback/watchdog event happens

    [How]
    -fix typo in event_callback()
    -cancel callback, not watchdog
    -cancel watchdog events in event_watchdog_timer().

    Signed-off-by: Bhawanpreet Lakha
    Reviewed-by: Nicholas Kazlauskas
    Signed-off-by: Alex Deucher

    Bhawanpreet Lakha
     
  • [Why]
    When content type property is set to 1. We should enable hdcp2.2 and if we cant
    then stop. Currently the way it works in DC is that if we fail hdcp2, we will
    try hdcp1 after.

    [How]
    Use link config to force disable hdcp1.4 when type1 is set.

    Signed-off-by: Bhawanpreet Lakha
    Reviewed-by: Nicholas Kazlauskas
    Signed-off-by: Alex Deucher

    Bhawanpreet Lakha
     
  • This is ASIC specific and should be placed in _ppt.c of each ASIC.

    Signed-off-by: Evan Quan
    Reviewed-by: Alex Deucher
    Signed-off-by: Alex Deucher

    Evan Quan
     
  • This is already done in soc15.c. And this is really ASIC specific
    and should not be placed here.

    Signed-off-by: Evan Quan
    Reviewed-by: Alex Deucher
    Signed-off-by: Alex Deucher

    Evan Quan
     
  • [Why]
    DML expects num_states to exclude the duplicate state.

    [How]
    Set num_states to correct value to prevent array off-by-one error. Also
    refactor max clock level code for diags.

    Signed-off-by: Dmytro Laktyushkin
    Signed-off-by: George Shen
    Reviewed-by: Dmytro Laktyushkin
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Dmytro Laktyushkin
     
  • [Why]
    BT2020 is not supported in COLOR_ENCODING property of planes. Only
    BT601 and BT709 was available.

    [How]
    Allow BT2020 as legit value in setting COLOR_ENCODING property.

    Signed-off-by: Stylon Wang
    Reviewed-by: Nicholas Kazlauskas
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Stylon Wang
     
  • [Why]
    Nominal pixel clock and EDID information differ in precision so although
    monitor reports maximum refresh is 2x minimum, LFC was not being
    enabled.

    [How]
    Use minimum refresh rate as nominal/2 when EDID dictates that min
    refresh = max refresh/2.

    v2: squash in 64 bit divide fix

    Signed-off-by: Aric Cyr
    Reviewed-by: Nicholas Kazlauskas
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Aric Cyr
     
  • [Why]
    CTM was only supported at CRTC level and we need color space conversion
    in linear space at plane level.

    [How]
    - Add plane-level CTM to dc interface
    - Program plane-level CTM in DCN

    Signed-off-by: Stylon Wang
    Reviewed-by: Nicholas Kazlauskas
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Stylon Wang
     
  • [Why]
    Change is causing a regression where the OPC app no longer functions
    properly.

    [How]
    Revert the changelist causing the issue.

    Signed-off-by: Isabel Zhang
    Reviewed-by: Yongqiang Sun
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Isabel Zhang
     
  • [Why]
    In some scenario like 1366x768 VSR enabled connected with a 4K monitor
    and playing 4K video in clone mode, underflow will be observed due to
    decrease dppclk when previouse surface scan isn't finished

    [How]
    In this use case, surface flip is switching between 4K and 1366x768,
    1366x768 needs smaller dppclk, and when decrease the clk and previous
    surface scan is for 4K and scan isn't done, underflow will happen. Not
    doing optimize bandwidth in case of flip pending.

    Signed-off-by: Yongqiang Sun
    Reviewed-by: Tony Cheng
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Yongqiang Sun
     
  • [Why]
    For some monitors extreme flickering can occur while using LFC for if
    we're not doing the DRR timing update for V_TOTAL_MIN / V_TOTAL_MAX at
    the DP start of frame.

    Hardware can default to any time in the frame which isn't the behavior
    we want.

    [How]
    Add a new function for setting the double buffering mode for DRR timing.

    Default to DP start of frame double buffering on timing generator init.

    Signed-off-by: Nicholas Kazlauskas
    Reviewed-by: Aric Cyr
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Nicholas Kazlauskas
     
  • [Why]
    P010 pixel format is not declared as supported in DRM and DM.

    [How]
    Add P010 format to the support list presented to DRM and checked in DM

    Signed-off-by: Stylon Wang
    Reviewed-by: Nicholas Kazlauskas
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Stylon Wang
     
  • [Why]
    Diagnostics scaling test failing to set required number of vertical taps
    in 4:2:0 surface case

    [How]
    In dpp3_get_optimal_number_of_taps() need to use LB_MEMORY_CONFIG_3 for
    4:2:0 surface case. In resource_build_scaling_params() make sure to also
    set plane res alpha enable based on updated surface state

    Signed-off-by: Eric Bernstein
    Reviewed-by: Dmytro Laktyushkin
    Acked-by: Rodrigo Siqueira
    Signed-off-by: Alex Deucher

    Eric Bernstein
     
  • the HPD bo size calculation error.
    the "mem.size" can't present actual BO size all time.

    Signed-off-by: Kevin Wang
    Reviewed-by: Alex Deucher
    Acked-by: Christian König
    Signed-off-by: Alex Deucher

    Kevin Wang
     
  • … drm-intel-next-fixes

    gvt-next-fixes-2020-03-31

    - Fix non-privilege access warning (Tina)
    - Fix display port type (Tina)
    - BDW cmd parser missed SWTESS_BASE_ADDRESS (Yan)
    - Bypass length check of LRI (Yan)
    - Fix one klocwork warning (Tina)

    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    From: Zhenyu Wang <zhenyuw@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200331070025.GB16629@zhen-hp.sh.intel.com

    Rodrigo Vivi
     

31 Mar, 2020

7 commits

  • This reverts commit 7be1b9b8e9d1e9ef0342d2e001f44eec4030aa4d.

    The drm_mm is supposed to work in atomic context, so calling schedule()
    or in this case cond_resched() is illegal.

    Signed-off-by: Christian König
    Acked-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/359278/

    Christian König
     
  • Fix a static code checker warning:
    drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create()
    warn: passing zero to 'PTR_ERR'

    Signed-off-by: Ding Xiang
    Reviewed-by: Oleksandr Andrushchenko
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/1585562347-30214-1-git-send-email-dingxiang@cmss.chinamobile.com

    Ding Xiang
     
  • Set logo_shown to FBCON_LOGO_CANSHOW when the vc was deallocated.

    syzkaller report: https://lkml.org/lkml/2020/3/27/403
    general protection fault, probably for non-canonical address
    0xdffffc000000006c: 0000 [#1] SMP KASAN
    KASAN: null-ptr-deref in range [0x0000000000000360-0x0000000000000367]
    RIP: 0010:fbcon_switch+0x28f/0x1740
    drivers/video/fbdev/core/fbcon.c:2260

    Call Trace:
    redraw_screen+0x2a8/0x770 drivers/tty/vt/vt.c:1008
    vc_do_resize+0xfe7/0x1360 drivers/tty/vt/vt.c:1295
    fbcon_init+0x1221/0x1ab0 drivers/video/fbdev/core/fbcon.c:1219
    visual_init+0x305/0x5c0 drivers/tty/vt/vt.c:1062
    do_bind_con_driver+0x536/0x890 drivers/tty/vt/vt.c:3542
    do_take_over_console+0x453/0x5b0 drivers/tty/vt/vt.c:4122
    do_fbcon_takeover+0x10b/0x210 drivers/video/fbdev/core/fbcon.c:588
    fbcon_fb_registered+0x26b/0x340 drivers/video/fbdev/core/fbcon.c:3259
    do_register_framebuffer drivers/video/fbdev/core/fbmem.c:1664 [inline]
    register_framebuffer+0x56e/0x980 drivers/video/fbdev/core/fbmem.c:1832
    dlfb_usb_probe.cold+0x1743/0x1ba3 drivers/video/fbdev/udlfb.c:1735
    usb_probe_interface+0x310/0x800 drivers/usb/core/driver.c:374

    accessing vc_cons[logo_shown].d->vc_top causes the bug.

    Reported-by: syzbot+732528bae351682f1f27@syzkaller.appspotmail.com
    Signed-off-by: Qiujun Huang
    Acked-by: Sam Ravnborg
    Cc: stable@vger.kernel.org
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20200329085647.25133-1-hqjagain@gmail.com

    Qiujun Huang
     
  • A bit smaller this time around.. there are still a couple uabi
    additions for vulkan waiting in the wings, but I punted on them this
    cycle due to running low on time. (They should be easy enough to
    rebase, and if it is a problem for anyone I can push a next+uabi
    branch so that tu work can proceed.)

    The bigger change is refactoring dpu resource manager and moving dpu
    to use atomic global state. Other than that, it is mostly cleanups
    and fixes.

    From: Rob Clark
    Link: https://patchwork.freedesktop.org/patch/msgid/

    Dave Airlie
     
  • msm needed rc6, so I just went and merged release
    (msm has been in drm-next outside of this tree)

    Signed-off-by: Dave Airlie

    Dave Airlie
     
  • The name of the devicetree directory is wrong on those three
    TI bindings:

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Jyri Sarha
    Signed-off-by: Rob Herring
    Link: https://patchwork.freedesktop.org/patch/msgid/875b824ac97bd76dfe77b6227ff9b6b2671a6abf.1584450500.git.mchehab+huawei@kernel.org

    Mauro Carvalho Chehab
     
  • Extra dtc warnings (roughly what W=1 enables) are now enabled by default
    when building the binding examples. These were fixed treewide in
    5.6-rc5, but some new display bindings have been added with new
    warnings:

    Documentation/devicetree/bindings/display/ti/ti,am65x-dss.example.dts:21.27-49.11: Warning (unit_address_format): /example-0/dss@04a00000: unit name should not have leading 0s
    Documentation/devicetree/bindings/display/ti/ti,j721e-dss.example.dts:21.27-72.11: Warning (unit_address_format): /example-0/dss@04a00000: unit name should not have leading 0s
    Documentation/devicetree/bindings/display/ti/ti,k2g-dss.example.dts:20.27-42.11: Warning (unit_address_format): /example-0/dss@02540000: unit name should not have leading 0s

    Cc: Jyri Sarha
    Cc: Tomi Valkeinen
    Signed-off-by: Rob Herring
    Reviewed-by: Sam Ravnborg
    Acked-by: Jyri Sarha
    Link: https://patchwork.freedesktop.org/patch/msgid/20200313180727.23044-1-robh@kernel.org

    Rob Herring
     

30 Mar, 2020

1 commit