From patchwork Thu Jun 6 03:25:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 10978363 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 67A9D14C0 for ; Thu, 6 Jun 2019 03:26:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56FAB2875C for ; Thu, 6 Jun 2019 03:26:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AA9628796; Thu, 6 Jun 2019 03:26:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FA192875C for ; Thu, 6 Jun 2019 03:26:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E78DB896E9; Thu, 6 Jun 2019 03:26:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4FEF1896E9; Thu, 6 Jun 2019 03:26:30 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id d15so625902qkl.4; Wed, 05 Jun 2019 20:26:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2xyHsnk1Rjr8RgOJR6NImIlGXLOhQDdFVjYJJK/QQYc=; b=MnK8/h+Al44JBwhjHY7XRYTwK43dKBJ2Po2AqdnEdB0XZuBP7ZmoO1AJSpR5x5F8/0 R+XXR8OmAAhxL9XqLP6Lisx4BgH5dirkb+HE0tssp7OgZlb7xgTDc0cZGM8uCVc4Kdtl 8ThojqsK7DeA8nej1syYilb7XVBczYFTlVaszwyW2q1cUhxnBxBmNEv2F5Udwqrn0vh7 ij0gkThejC0mE6veYYCQvo6vsZq5pOWwaq+IBH6p/eLO2MrfT6Joq+wLlNTSBTLXovoX FKidCM6r/CPGPSL+0np5lPLpVrRXnEJrfP9Es0Kxb/sqKwtWgrUYHdO0GmlYTQb6YbjV ezDQ== X-Gm-Message-State: APjAAAVv8uGNUTWPJxSmnTOmSJ792HPFlJFiT/12f5gSmqZJBnoi4HUX U8Z6yBWw/OlwHFOxG2NSdB4s19bpZFH0og== X-Google-Smtp-Source: APXvYqxbH0i380PwtgHd15XoIPoDcjkibQN2ZHQi6gNrY9YBl7gH3tGW0u3E7jndp20hqObxcDSKWg== X-Received: by 2002:a37:be85:: with SMTP id o127mr26777628qkf.194.1559791589045; Wed, 05 Jun 2019 20:26:29 -0700 (PDT) Received: from localhost.localdomain ([71.51.161.233]) by smtp.gmail.com with ESMTPSA id n48sm398521qtc.90.2019.06.05.20.26.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 05 Jun 2019 20:26:28 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, airlied@gmail.com, daniel.vetter@ffwll.ch Subject: [pull v2] amdgpu, ttm drm-next-5.3 Date: Wed, 5 Jun 2019 22:25:37 -0500 Message-Id: <20190606032537.6939-1-alexander.deucher@amd.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2xyHsnk1Rjr8RgOJR6NImIlGXLOhQDdFVjYJJK/QQYc=; b=CTrJ/IafMgJbbvkDEuwLofY8/z2j0EOcfqw135+DacirVYLzjOY49EQOic/6B6la96 aUS35nWMlCKPTId+Im9CnHZaod6CX85Zya4+8s6GOCIbRQP9qxmvAXYxECc1AS7/yGI9 orPnJd5MQMv8tSbCmmzwvKeD8lpJ5hpojmDbJDM8tRXs4bkajEQnSwtWD+8Xu7cTZEIS SD7dkuHPugxmpJ18dfybZWulNatgWsX85nmY+q2b8rrcwuK/DyQSsWpwOQI6QkHCq36j oH18a48o5tq2A1i7egxgR39ZGlI2RnBA659aVhB8b6iLvUP2sqCJWC7uwNxH80fEIACA 7LUw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi Dave, Daniel, More new stuff for 5.3: amdgpu: - Revert timeline support until KHR is ready - Various driver reload fixes - Refactor clock handling in DC - Aux fixes for DC - Bandwidth calculation updates for DC - Fix documentation due to file rename - RAS fix - Fix race in late_init ttm: - Allow for better forward progress when there is heavy memory contention v2: fix sha1 in fixes line. The following changes since commit 91c1ead6aee22d4595f50ba66070b94a4a8f84a9: Merge branch 'drm-next-5.3' of git://people.freedesktop.org/~agd5f/linux into drm-next (2019-05-31 10:04:39 +1000) are available in the Git repository at: git://people.freedesktop.org/~agd5f/linux drm-next-5.3 for you to fetch changes up to 72a14e9b23d0a5a68f8504a2ecaf26788a11a14d: Revert "drm/amdgpu: add DRIVER_SYNCOBJ_TIMELINE to amdgpu" (2019-06-05 22:18:09 -0500) ---------------------------------------------------------------- Alex Deucher (3): drm/amdgpu: fix a race in GPU reset with IB test (v2) drm/amdgpu/display: Drop some new CONFIG_DRM_AMD_DC_DCN1_01 guards Revert "drm/amdgpu: add DRIVER_SYNCOBJ_TIMELINE to amdgpu" Anthony Koo (2): drm/amd/display: do not power on eDP power rail early drm/amd/display: fix issues with bad AUX reply on some displays Aric Cyr (2): drm/amd/display: 3.2.32 drm/amd/display: program manual trigger only for bottom most pipe Chris Park (1): drm/amd/display: Move link functions from dc to dc_link Christian König (7): drm/ttm: Make LRU removal optional v2 drm/ttm: return immediately in case of a signal drm/ttm: remove manual placement preference drm/ttm: cleanup ttm_bo_mem_space drm/ttm: immediately move BOs to the new LRU v3 drm/ttm: fix busy memory to fail other user v10 drm/ttm: fix ttm_bo_unreserve Chunming Zhou (1): drm/amd/display: use ttm_eu_reserve_buffers instead of amdgpu_bo_reserve v2 Daniel He (1): drm/amd/display: Modified AUX_DPHY_RX_CONTROL0 Emily Deng (3): drm/amdgpu:Fix the unpin warning about csb buffer drm/amdgpu/sriov: Correct some register program method drm/amdgpu/display: Fix reload driver error Eric Bernstein (1): drm/amd/display: Refactor DIO stream encoder Eric Yang (5): drm/amd/display: make clk mgr soc specific drm/amd/display: Move CLK_BASE_INNER macro drm/amd/display: move clk_mgr files to right place drm/amd/display: Fix type of pp_smu_wm_set_range struct drm/amd/display: Refactor clk_mgr functions Eryk Brol (3): drm/amd/display: Disable audio stream only if it's currently enabled drm/amd/display: Ensure DRR triggers in BP drm/amd/display: Increase Backlight Gain Step Size Gary Kattan (1): drm/amd/display: Implement CM dealpha and bias interfaces Hugo Hu (1): drm/amd/display: Don't use ROM for output TF if GAMMA_CS_TFM_1D Ilya Bakoulin (1): drm/amd/display: Add writeback_config to VBA vars Jun Lei (1): drm/amd/display: Add min_dcfclk_mhz field to bb overrides Krunoslav Kovac (2): drm/amd/display: Add GSL source select registers drm/amd/display: CS_TFM_1D only applied post EOTF Mauro Carvalho Chehab (1): gpu: amdgpu: fix broken amdgpu_dma_buf.c references Nicholas Kazlauskas (1): drm/amd/display: Reset planes for color management changes Oak Zeng (1): drm/amdkfd: Return proper error code for gws alloc API Paul Hsieh (1): drm/amd/display: disable PSR/ABM before destroy DMCU struct Su Sung Chung (2): drm/amd/display: fix calculation of total_data_read_bandwidth drm/amd/display: fix crash on setmode when mode is close to bw limit Wenjing Liu (1): drm/amd/display: assign new stream id in dc_copy_stream xinhui pan (2): drm/amdgpu: ras injection use gpu address drm/amdgpu: cancel late_init_work before gpu reset Documentation/gpu/amdgpu.rst | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 116 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 16 + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 +- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 8 +- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 6 +- .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 2 +- drivers/gpu/drm/amd/display/Makefile | 1 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 66 +- drivers/gpu/drm/amd/display/dc/Makefile | 2 +- .../gpu/drm/amd/display/dc/calcs/dcn_calc_auto.h | 1 + drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 57 +- drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile | 75 ++ drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 134 +++ .../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c | 471 +++++++++ .../amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h | 81 ++ .../amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c | 276 ++++++ .../amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.h | 44 + .../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c | 239 +++++ .../amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h | 39 + .../amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c | 145 +++ .../amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.h | 34 + .../drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c | 262 +++++ .../drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.h | 31 + .../amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c | 79 ++ .../amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.h | 29 + .../dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c | 126 +++ .../dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.h | 32 + .../drm/amd/display/dc/clk_mgr/dcn10/rv2_clk_mgr.c | 43 + .../dcn10/rv2_clk_mgr.h} | 13 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 155 +-- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 128 ++- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 12 + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 5 +- drivers/gpu/drm/amd/display/dc/dc.h | 5 +- drivers/gpu/drm/amd/display/dc/dc_stream.h | 1 - drivers/gpu/drm/amd/display/dc/dce/Makefile | 2 +- drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 13 +- drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c | 1031 -------------------- .../gpu/drm/amd/display/dc/dce/dce_clock_source.c | 1 + drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 6 + drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h | 2 + .../drm/amd/display/dc/dce/dce_stream_encoder.c | 13 - .../amd/display/dc/dce100/dce100_hw_sequencer.c | 9 +- .../drm/amd/display/dc/dce100/dce100_resource.c | 28 - .../amd/display/dc/dce110/dce110_hw_sequencer.c | 23 +- .../drm/amd/display/dc/dce110/dce110_resource.c | 27 - .../drm/amd/display/dc/dce112/dce112_resource.c | 28 - .../drm/amd/display/dc/dce120/dce120_resource.c | 20 +- .../gpu/drm/amd/display/dc/dce80/dce80_resource.c | 47 - drivers/gpu/drm/amd/display/dc/dcn10/Makefile | 2 +- .../gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c | 355 ------- .../gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.h | 31 +- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 30 +- .../display/dc/dcn10/dcn10_hw_sequencer_debug.c | 2 +- .../drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c | 32 + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h | 39 +- .../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 33 +- .../amd/display/dc/dcn10/dcn10_stream_encoder.c | 21 +- .../amd/display/dc/dcn10/dcn10_stream_encoder.h | 17 + drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 31 +- .../drm/amd/display/dc/dml/display_mode_enums.h | 6 + drivers/gpu/drm/amd/display/dc/inc/core_types.h | 2 - drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/audio.h | 1 + drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 33 +- .../dce_clk_mgr.h => inc/hw/clk_mgr_internal.h} | 159 ++- drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 17 + .../gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 13 + .../drm/amd/display/dc/inc/hw/timing_generator.h | 3 + drivers/gpu/drm/amd/display/dc/inc/resource.h | 2 + drivers/gpu/drm/amd/display/include/dal_asic_id.h | 11 +- .../drm/amd/display/modules/color/color_gamma.c | 6 +- drivers/gpu/drm/qxl/qxl_release.c | 2 +- drivers/gpu/drm/radeon/radeon_gem.c | 2 +- drivers/gpu/drm/radeon/radeon_object.c | 2 +- drivers/gpu/drm/ttm/ttm_bo.c | 270 +++-- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 20 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 3 +- drivers/gpu/drm/vmwgfx/vmwgfx_validation.h | 2 +- include/drm/ttm/ttm_bo_driver.h | 9 +- include/drm/ttm/ttm_execbuf_util.h | 3 +- 93 files changed, 3080 insertions(+), 2117 deletions(-) create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/dce120_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv2_clk_mgr.c rename drivers/gpu/drm/amd/display/dc/{dcn10/dcn10_clk_mgr.h => clk_mgr/dcn10/rv2_clk_mgr.h} (82%) delete mode 100644 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c delete mode 100644 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c rename drivers/gpu/drm/amd/display/dc/{dce/dce_clk_mgr.h => inc/hw/clk_mgr_internal.h} (60%)