1. 17 Aug, 2015 20 commits
    • Christian König's avatar
      drm/amdgpu: deal with foreign fences in amdgpu_sync · 91e1a520
      Christian König authored
      This also requires some error handling from the callers of that function.
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
      91e1a520
    • Alex Deucher's avatar
      drm/amdgpu: cleanup context structure v2 · 0b492a4c
      Alex Deucher authored
      The comment is misleading and incorrect, remove it.
      
      Printing the id is completely meaningless and this practice
      can cause a race conditions on command submission.
      
      The flags and hangs fields are completely unused.
      
      Give all fields a common indentation.
      
      v2: remove fpriv reference and unused flags as well, fix debug message.
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
      0b492a4c
    • rezhu's avatar
      drm/amdgpu: add cgs_interface for pg and cg · 404b2fa3
      rezhu authored
      v3: check whether ip_blocks is enable
      v2: add break in the for loop.
      Signed-off-by: default avatarRex zhu <rezhu@amd.com>
      404b2fa3
    • Jammy Zhou's avatar
      97baee71
    • Jammy Zhou's avatar
      drm/amdgpu: add cgs_get_firmware_info interface v2 · bf3911b0
      Jammy Zhou authored
      This new interface can be used by IP components to retrieve the
      firmware information from the core driver.
      
      v2: fix one typo
      Signed-off-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarRex Zhu <Rex.Zhou@amd.com>
      Signed-off-by: default avatarYoung Yang <Young.Yang@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      bf3911b0
    • Chunming Zhou's avatar
      drm/amdgpu: implement cgs gpu memory callbacks · 57ff96cf
      Chunming Zhou authored
      This implements the cgs interface for allocating
      GPU memory.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <david1.zhou@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      57ff96cf
    • Chunming Zhou's avatar
      drm/amdgpu: add atom interfaces for CGS · 25da4427
      Chunming Zhou authored
      This implements the interface for atombios command
      and data table access.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      25da4427
    • Alex Deucher's avatar
      drm/amdgpu: Implement irq interfaces for CGS · 0cf3be21
      Alex Deucher authored
      This implements the irq src registrar.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      0cf3be21
    • Chunming Zhou's avatar
      drm/amdgpu: Implement the pciconfig callbacks for CGS · 97cb7f6e
      Chunming Zhou authored
      This implements the pciconfig register accessors.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      97cb7f6e
    • Chunming Zhou's avatar
      drm/amdgpu: Implement mmio callbacks for CGS · aba684d8
      Chunming Zhou authored
      This implements the MMIO register accessors.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      aba684d8
    • Chunming Zhou's avatar
      drm/amd: Add CGS interfaces · d03846af
      Chunming Zhou authored
      CGS (Common Graphics Services) is an AMD cross component
      abstraction layer to designed to better encapsulate
      specific IP block drivers so different teams can effectively
      work on differnet IP block drivers independently. It provides
      a common interface for things like accessing registers,
      allocating GPU memory, and registering interrupt sources.
      The plan is to eventually move more and more IP drivers to
      this interface.  The first user is the ACP IP driver.
      Reviewed-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
      Acked-by: default avatarChristian König <christian.koenig@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d03846af
    • Jammy Zhou's avatar
      drm/amdgpu: fix one warning message · 21df89a5
      Jammy Zhou authored
      In function 'amdgpu_uvd_cs_pass2':
      warning: 'min_ctx_size' may be used uninitialized in this function
        buf_sizes[0x4] = min_ctx_size;
                       ^
      note: 'min_ctx_size' was declared here
        unsigned image_size, tmp, min_dpb_size, num_dpb_buffer, min_ctx_size;
                                                                ^
      Signed-off-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Cc: stable@vger.kernel.org
      21df89a5
    • Alex Deucher's avatar
      drm/radeon/dce6: assign different audio pins to each encoder · d0465208
      Alex Deucher authored
      This allows you to send different audio to each audio capable
      display.
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d0465208
    • Dave Airlie's avatar
      Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next · 294947a5
      Dave Airlie authored
      A couple of fixes from the previous pull request as well as gl3 support.
      There is one drm core change, an export of a previously private function.
      
      Take 2 implementing screen targets, this time with the fbdev code adjusted
      accordingly.
      
      Also there is an implementation of register-driven command buffers, that
      overrides the FIFO ring for command processing. It's needed for our upcoming
      hardware revision.
      * 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux: (35 commits)
        drm/vmwgfx: Fix copyright headers
        drm/vmwgfx: Add DX query support. Various fixes.
        drm/vmwgfx: Add command parser support for a couple of DX commands
        drm/vmwgfx: Command parser fixes for DX
        drm/vmwgfx: Initial DX support
        drm/vmwgfx: Update device includes for DX device functionality
        drm: export the DRM permission check code
        drm/vmwgfx: Fix crash when unloading vmwgfx v2
        drm/vmwgfx: Fix framebuffer creation on older hardware
        drm/vmwgfx: Fixed topology boundary checking for Screen Targets
        drm/vmwgfx: Fix an uninitialized value
        drm/vmwgfx: Fix compiler warning with 32-bit dma_addr_t
        drm/vmwgfx: Kill a bunch of sparse warnings
        drm/vmwgfx: Fix kms preferred mode sorting
        drm/vmwgfx: Reinstate the legacy display system dirty callback
        drm/vmwgfx: Implement fbdev on kms v2
        drm/vmwgfx: Add a kernel interface to create a framebuffer v2
        drm/vmwgfx: Avoid cmdbuf alloc sleeping if !TASK_RUNNING
        drm/vmwgfx: Convert screen targets to new helpers v3
        drm/vmwgfx: Convert screen objects to the new helpers
        ...
      294947a5
    • Dave Airlie's avatar
      Merge tag 'drm/panel/for-4.3-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next · 6406e45c
      Dave Airlie authored
      drm/panel: Changes for v4.3-rc1
      
      This introduces support for a couple of new panels and also contains
      some work to restructure the directories to get more consistency, to
      deal better with more panel and bridge drivers getting added.
      
      * tag 'drm/panel/for-4.3-rc1' of git://anongit.freedesktop.org/tegra/linux:
        drm/bridge: Put Kconfig entries in a separate menu
        drm/panel: Add support for LG LG4573 480x800 4.3" panel
        drm/panel: Add display timing for Okaya RS800480T-7X0GP
        of: Add Okaya Electric America vendor prefix
        drm/panel: simple: Add support for NEC NL4827HC19-05B 480x272 panel
        drm/panel: simple: Add support for AUO B080UAN01
        drm/panel: simple: Correct minimum hsync length of the HannStar HSD070PWW1 panel
        drm/panel: simple: Add bus format for HannStar HSD070PWW1 LVDS panel
        drm/bridge: Add vendor prefixes
        drm/panel: Add Samsung prefix to panel drivers
        drm/exynos: Remove PTN3460 dependency
      6406e45c
    • Dave Airlie's avatar
      Merge tag 'drm/tegra/for-4.3-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next · bef2c7bd
      Dave Airlie authored
      drm/tegra: Changes for v4.3-rc1
      
      There are a bunch of non-critical fixes here that I've collected over
      the past few months, but the biggest part is Tegra210 support, in the
      DC, DSI and SOR/HDMI drivers.
      
      Also this finally restores DPMS with atomic mode-setting, something
      that has been broken since the conversion and which I had originally
      expected to take far less longer to fix.
      
      * tag 'drm/tegra/for-4.3-rc1' of git://anongit.freedesktop.org/tegra/linux: (41 commits)
        drm/tegra: sor: Add HDMI support
        drm/tegra: sor: Add Tegra210 eDP support
        drm/tegra: dc: Implement atomic DPMS
        drm/tegra: sor: Restore DPMS
        drm/tegra: dsi: Restore DPMS
        drm/tegra: hdmi: Restore DPMS
        drm/tegra: rgb: Restore DPMS
        drm/tegra: sor: Use DRM debugfs infrastructure for CRC
        drm/tegra: sor: Write correct head state registers
        drm/tegra: sor: Constify display mode
        drm/tegra: sor: Reset the correct debugfs fields
        drm/tegra: sor: Set minor after debugfs initialization
        drm/tegra: sor: Provide error messages in probe
        drm/tegra: sor: Rename registers for consistency
        drm/tegra: dpaux: Disable interrupt when detached
        drm/tegra: dpaux: Configure pads as I2C by default
        drm/tegra: dpaux: Provide error message in probe
        drm/tegra: dsi: Add Tegra210 support
        drm/tegra: dsi: Add Tegra132 support
        drm/tegra: dsi: Add Tegra124 support
        ...
      bef2c7bd
    • Dave Airlie's avatar
      Merge branch 'exynos-drm-next' of... · 3ff8e509
      Dave Airlie authored
      Merge branch 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next
      
      Summary:
      - Clean up HDMI and MIXER parts
      - Clean up legacy structures specific to Exynos DRM
        . This patch series removes existing exyons_drm_display and
          exynos_drm_encoder structures specific to Exynos DRM, and
          makes them to replace with common drm_encoder structure.
          With cleanup patch, we removes exynos_drm_encoder module.
      - Clean up gem, dmabuf and buffer modules
        . This patch series replaces existing Exynos DRM dmabuf codes
          with common drm prime ones, and embeds all codes of exynos_drm_buf
          into exynos_drm_gem module.
          With cleanup patch, we removes exynos_drm_buf and exynos_drm_dmabuf
          modules.
      - And some fixups.
      
      * 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos: (53 commits)
        drm/exynos: merge exynos_drm_buf.c to exynos_drm_gem.c
        drm/exynos: use prime helpers
        drm/exynos: remove function roundup_gem_size
        drm/exynos: remove function update_vm_cache_attr
        drm/exynos: remove function check_gem_flags
        drm/exynos: use ERR_PTR instead of NULL in exynos_drm_gem_init
        drm/exynos: remove unused fields of struct exynos_drm_gem_buf
        drm/exynos: stop copying sg table
        drm/exynos: remove function exynos_drm_gem_map_buf
        drm/exynos: remove mutex locking in pagefault handler
        drm/exynos: remove function convert_to_vm_err_msg
        drm/exynos: stop using sgtable in page fault handler
        drm/exynos: remove struct exynos_drm_encoder layer
        drm/exynos: fold encoder setup into exynos_drm_load()
        drm/exynos: remove exynos_drm_create_enc_conn()
        drm/exynos: remove exynos_encoder's .commit() op
        drm/exynos: remove extra call to exynos_dp_commit()
        drm/exynos: remove extra call to hdmi_commit()
        drm/exynos: remove struct exynos_drm_display
        drm/exynos: simplify calculation of possible CRTCs
        ...
      3ff8e509
    • Dave Airlie's avatar
      Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into drm-next · 3be66711
      Dave Airlie authored
      1) includes all the drm/msm side of things for upstream kernel working
      on dragonboard 410c (still some pending work on adv7533 bridge chip)
      2) initial support for msm8x94 (snapdragon 810)
      3) support for msm8x74v1 (in addition to existing v2 support)
      4) support for dma planes on mdp5 (additional planes that cannot scale/csc)
      5) more yuv format support for mdp5 (single plane vyuy/uyvy/yuyv/yvyu,
      two plane nv16/nv61, and three plane yuv420/yvu420)
      6) rotation support for mdp5
      7) initial hdcp support
      8) fixes, etc
      
      * 'msm-next' of git://people.freedesktop.org/~robclark/linux: (46 commits)
        drm/msm/dsi: Introduce DSI configuration module
        drm/msm/dsi: Make each PHY type compilation independent
        drm/msm/dsi: Split PHY drivers to separate files
        drm/msm/dsi: Return void from msm_dsi_phy_disable()
        drm/msm/dsi: Specify bitmask to set source PLL
        drm/msm/mdp: Clear pending interrupt status before enable interrupt
        drm/msm/mdp5: Add rotation (hflip/vflip) support to MDP5 planes (v2)
        drm/msm: add calls to prepare and unprepare panel
        drm/msm/dsi: Modify dsi manager bridge ops to work with external bridges
        drm/msm/dsi: Allow dsi to connect to an external bridge
        drm/msm/dsi: Create a helper to check if there is a connected device
        drm/msm/dsi: Refer to connected device as 'device' instead of 'panel'
        drm/msm/dsi: Make TE gpio optional
        drm/msm: mdp4 lvds: get panel node via of graph parsing
        drm/msm: dsi host: Use device graph parsing to parse connected panel
        drm/msm: dsi host: add missing of_node_put()
        drm/msm: Enable clocks during enable/disable_vblank() callbacks
        drm/msm/mdp5: Add support for msm8x74v1
        drm/msm/mdp5: Add DMA pipe planes for MDP5
        drm/msm/mdp: Add capabilities to MDP planes (v2)
        ...
      3be66711
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-fixes-2015-08-16' of... · d3638ac4
      Dave Airlie authored
      Merge tag 'drm-intel-next-fixes-2015-08-16' of git://anongit.freedesktop.org/drm-intel into drm-next
      
      Bunch more fixes for 4.3, most of it skl fallout. It's not quite all yet,
      there's still a few more patches pending to enable DDI-E correctly on skl.
      Also included the dpms atomic work from Maarten since atomic is just a
      pain and not including would cause piles of conflicts right from the
      start.
      
      * tag 'drm-intel-next-fixes-2015-08-16' of git://anongit.freedesktop.org/drm-intel: (67 commits)
        drm/i915: Per-DDI I_boost override
        drm/i915/skl: WaIgnoreDDIAStrap is forever, always init DDI A
        drm/i915: fix checksum write for automated test reply
        drm/i915: Contain the WA_REG macro
        drm/i915: Remove the failed context from the fpriv->context_idr
        drm/i915: Report IOMMU enabled status for GPU hangs
        drm/i915: Check idle to active before processing CSQ
        drm/i915: Set alternate aux for DDI-E
        drm/i915: Set power domain for DDI-E
        drm/i915: fix stolen bios_reserved checks
        drm/i915: Use masked write for Context Status Buffer Pointer
        drm/i915/skl WaDisableSbeCacheDispatchPortSharing
        drm/i915: Spam less on dp aux send/receive problems
        drm/i915: Handle return value in intel_pin_and_fence_fb_obj, v2.
        drm/i915: Only update mode related state if a modeset happened.
        drm/i915: Remove connectors_active.
        drm/i915: Remove connectors_active from intel_dp.c, v2.
        drm/i915: Remove connectors_active from sanitization, v2.
        drm/i915: Get rid of dpms handling.
        drm/i915: Make crtc checking use the atomic state, v2.
        ...
      d3638ac4
    • Dave Airlie's avatar
      Merge tag 'v4.2-rc7' into drm-next · 4eebf60b
      Dave Airlie authored
      Linux 4.2-rc7
      
      Backmerge master for i915 fixes
      4eebf60b
  2. 16 Aug, 2015 20 commits