1. 08 6月, 2022 1 次提交
  2. 05 5月, 2022 1 次提交
  3. 03 5月, 2022 1 次提交
    • K
      drm/ast: Create the driver for ASPEED proprietory Display-Port · 594e9c04
      KuoHsiang Chou 提交于
      V1:
      1. The MCU FW controling ASPEED DP is loaded by BMC boot loader.
      2. Driver starts after CR[3:1] == 111b that indicates Tx is ASTDP,
         and CRD1[5] has been asserted by BMVC boot loader.
      3. EDID is prioritized by DP monitor.
      4. DP's EDID has high priority to decide resolution supporting.
      
      V2:
      Modules description:
      1. ASTDP (ASPEED DisplayPort) is controlled by dedicated
         AST-MCU (ASPEED propriatary MCU).
      2. MCU is looping in charged of HPD, Read EDID, Link Training with
         DP sink.
      3. ASTDP and AST-MUC reside in BMC (Baseboard Management controller)
         addressing-space.
      4. ASPEED DRM driver requests MCU to get HPD and EDID by CR-scratched
         register.
      
      Booting sequence:
      1. Check if TX is ASTDP					// ast_dp_launch()
      2. Check if DP-MCU FW has loaded					// ast_dp_launch()
      3. Read EDID					// ast_dp_read_edid()
      4. Resolution switch					// ast_dp_SetOutput()
      
      V3:
      1. Remove unneeded semicolon.
      2. Apply to git://anongit.freedesktop.org/drm/drm, instead of
         git://anongit.freedesktop.org/drm/drm-misc
      3. Resolve auto build test WARNINGs on V1 patch.
      
      V4:
      1. Sync code-base with kernel 5.17_rc6
      2. Remove the define of DPControlPower, because DP chips need to be
         powered on to be used.
      3. Remove the switches of PHY and Display from EDID procedure.
      4. Revise increaing delay to fixed delay, because this version kernel
         doesn't detect minitor consistenntly.
      5. Create clean-up code used for reset of power state on errors with
         -EIO manner.
      6. Revise the DP detection by TX type and its DP-FW status during
         booting and resume.
      7. Correct the CamelCase Style.
      8. Use register reading while needing, and remove to hold full
         register.
      9. Instead of 'u8', revise to 'bool' on swwitch of PHY and video.
      10.Correct typo
      11.Remove the duplicated copy of TX definition.
      12.Use EDID_LENGTH as the constant of 128.
      Signed-off-by: NKuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
      Reviewed-by: NThomas Zimmermann <tzimmermann@suse.de>
      Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220428075603.20904-1-kuohsiang_chou@aspeedtech.com
      594e9c04
  4. 08 2月, 2022 7 次提交
  5. 16 12月, 2021 1 次提交
  6. 23 9月, 2021 1 次提交
  7. 20 7月, 2021 1 次提交
    • K
      drm/ast: Disable fast reset after DRAM initial · f34bf652
      KuoHsiang Chou 提交于
      [Bug][AST2500]
      
      V1:
      When AST2500 acts as stand-alone VGA so that DRAM and DVO initialization
      have to be achieved by VGA driver with P2A (PCI to AHB) enabling.
      However, HW suggests disable Fast reset mode after DRAM initializaton,
      because fast reset mode is mainly designed for ARM ICE debugger.
      Once Fast reset is checked as enabling, WDT (Watch Dog Timer) should be
      first enabled to avoid system deadlock before disable fast reset mode.
      
      V2:
      Use to_pci_dev() to get revision of PCI configuration.
      
      V3:
      If SCU00 is not unlocked, just enter its password again.
      It is unnecessary to clear AHB lock condition and restore WDT default
      setting again, before Fast-reset clearing.
      
      V4:
      repatch after "error : could not build fake ancestor" resolved.
      
      V5:
      Since CVE_2019_6260 item3, Most of AST2500 have disabled P2A(PCIe to AMBA).
      However, for backward compatibility, some patches about P2A, such as items
      of v5.2 and v5.3, are considered to be upstreamed with comments.
      1. Add define macro to improve source readability.
      ast_drv.h, ast_main.c, ast_post.c
      2. Add comment about "Fast restet" is enabled for ARM-ICE debugger
      ast_post.c
      3. Add comment about Reset USB port to patch USB unknown device issue
      ast_post.c
      Signed-off-by: NKuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
      Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210709080900.4056-1-kuohsiang_chou@aspeedtech.com
      f34bf652
  8. 27 4月, 2021 1 次提交
  9. 17 2月, 2021 7 次提交
  10. 11 12月, 2020 1 次提交
  11. 10 11月, 2020 1 次提交
  12. 09 11月, 2020 1 次提交
  13. 06 11月, 2020 1 次提交
    • D
      drm/<drivers>: Constify struct drm_driver · 70a59dd8
      Daniel Vetter 提交于
      Only the following drivers aren't converted:
      - amdgpu, because of the driver_feature mangling due to virt support.
        Subsequent patch will address this.
      - nouveau, because DRIVER_ATOMIC uapi is still not the default on the
        platforms where it's supported (i.e. again driver_feature mangling)
      - vc4, again because of driver_feature mangling
      - qxl, because the ioctl table is somewhere else and moving that is
        maybe a bit too much, hence the num_ioctls assignment prevents a
        const driver structure.
      - arcpgu, because that is stuck behind a pending tiny-fication series
        from me.
      - legacy drivers, because legacy requires non-const drm_driver.
      
      Note that for armada I also went ahead and made the ioctl array const.
      
      Only cc'ing the driver people who've not been converted (everyone else
      is way too much).
      
      v2: Fix one misplaced const static, should be static const (0day)
      
      v3:
      - Improve commit message (Sam)
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: kernel test robot <lkp@intel.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: virtualization@lists.linux-foundation.org
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: nouveau@lists.freedesktop.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201104100425.1922351-5-daniel.vetter@ffwll.ch
      70a59dd8
  14. 16 9月, 2020 1 次提交
  15. 03 8月, 2020 5 次提交
  16. 20 7月, 2020 2 次提交
  17. 07 7月, 2020 7 次提交