1. Jan 21, 2021
  2. Jan 20, 2021
    • Daniel Vetter's avatar
      Merge tag 'amd-drm-next-5.12-2021-01-20' of... · a6b8720c
      Daniel Vetter authored
      Merge tag 'amd-drm-next-5.12-2021-01-20' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
      
      amd-drm-next-5.12-2021-01-20:
      
      amdgpu:
      - Fix non-x86 build
      - W=1 fixes from Lee Jones
      - Enable GPU reset on Navy Flounder
      - Kernel doc fixes
      - SMU workload profile fixes for APUs
      - Display updates
      - SR-IOV fixes
      - Vangogh SMU feature enablment and bug fixes
      - GPU reset support for Vangogh
      - Misc cleanups
      
      Conflicts:
      	drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c
      
      Resolve the conflict by picking the initialization value from amd from
      f03e80d2 ("drm/amd/display: Initialize stack variable") over the
      one Linus picked in 61d79136 ("drm/amd/display: avoid
      uninitialized variable warning"). It shouldn't matter.
      
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210120060951.22600-1-alexander.deucher@amd.com
      
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      a6b8720c
    • Daniel Vetter's avatar
      Merge tag 'drm-misc-next-2021-01-19' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 71c46fc3
      Daniel Vetter authored
      
      
      drm-misc-next for v5.12:
      
      UAPI Changes:
      - Fix fourcc macro for amlogic video fbc.
      
      Cross-subsystem Changes:
      - Export pci_rebar_bytes_to_size.
      - Add a PCI quirk to increase bar0 for RX 5600 XT Pulse to max possible size.
      - Convert devicetree bindings to use the OF graph schema.
      - Update s6e63m0 bindings.
      - Make omapfb2 DSI_CM incompatible with drm/omap2 DSI-CM because of
        module conflicts.
      - Add Zack Rusin as vmwgfx maintainer.
      - Add CONFIG_DMABUF_DEBUG for validating dma-buf users don't loo kat struct page when importing or detaching.
      
      Core Changes:
      - Remove references to drm_device.pdev
      - Fix regression in ttm_bo_move_to_lru_tail().
      - Assorted docbook updates.
      - Do not send dp-mst hotplug events on error when probing.
      - Move some agp macros to agpsupport.c, so it's not always compiled.
      - Move drm_need_swiotlb.h to drm_cache.c
      - Only build drm_memory.o for legacy drivers, and move CONFIG_DRM_VM to legacy.
      - Nuke drm_device.hose
      - Warn when the ttm resource manager is non-empty when disabling.
      - Assorted small fixes.
      
      Driver Changes:
      - Small assorted fixes in radeon, v3d, hisilicon, mipi-dbi, panfrost, hibmc, vc4, amdgpu, vkms, vmwgfx.
      - Move hisilicon to use simple encode.
      - Add writeback connector to vkms.
      - Add support for BT2020 to DE3.
      - Use gem prime mmap helpers in vc4, and move the mmap function upwards.
      - Use managed drm device, and cleanup error paths and display registers in vmwgfx.
      - Use correct bus_format and connector_type for innolux_n116bge.
      - Fix a lot of warnings with W=1 (Lee Jones)
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/5c3ad775-48ce-33ee-e4c6-a5e1e540f845@linux.intel.com
      71c46fc3
    • Huang Rui's avatar
      drm/amdgpu: fix build error without x86 kconfig (v2) · 4aef0ebc
      Huang Rui authored
      
      
      This patch is to fix below build error while we are using the kconfig
      without x86.
      
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function
      'vangogh_get_smu_metrics_data':
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:10:
      error: 'boot_cpu_data' undeclared (first use in this function); did you
      mean 'boot_cpuid'?
        300 |          boot_cpu_data.x86_max_cores * sizeof(uint16_t));
            |          ^~~~~~~~~~~~~
            |          boot_cpuid
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function
      'vangogh_read_sensor':
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1320:11:
      error: 'boot_cpu_data' undeclared (first use in this function); did you
      mean 'boot_cpuid'?
       1320 |   *size = boot_cpu_data.x86_max_cores * sizeof(uint16_t);
            |           ^~~~~~~~~~~~~
            |           boot_cpuid
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function
      'vangogh_od_edit_dpm_table':
      drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1460:19:
      error: 'boot_cpu_data' undeclared (first use in this function); did you
      mean 'boot_cpuid'?
       1460 |   if (input[0] >= boot_cpu_data.x86_max_cores) {
            |                   ^~~~~~~~~~~~~
            |                   boot_cpuid
      
      v2: fix #ifdef and add comment for APU only
      
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4aef0ebc
  3. Jan 19, 2021
  4. Jan 18, 2021
    • Lee Jones's avatar
      drm/drm_agpsupport: Strip out obviously wrong descriptions and demote to standard headers · cec7638b
      Lee Jones authored
      
      
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/drm_agpsupport.c:61: warning: Function parameter or member 'dev' not described in 'drm_agp_info'
       drivers/gpu/drm/drm_agpsupport.c:61: warning: Function parameter or member 'info' not described in 'drm_agp_info'
       drivers/gpu/drm/drm_agpsupport.c:105: warning: Function parameter or member 'dev' not described in 'drm_agp_acquire'
       drivers/gpu/drm/drm_agpsupport.c:132: warning: Function parameter or member 'dev' not described in 'drm_agp_acquire_ioctl'
       drivers/gpu/drm/drm_agpsupport.c:132: warning: Function parameter or member 'data' not described in 'drm_agp_acquire_ioctl'
       drivers/gpu/drm/drm_agpsupport.c:132: warning: Function parameter or member 'file_priv' not described in 'drm_agp_acquire_ioctl'
       drivers/gpu/drm/drm_agpsupport.c:145: warning: Function parameter or member 'dev' not described in 'drm_agp_release'
       drivers/gpu/drm/drm_agpsupport.c:171: warning: Function parameter or member 'dev' not described in 'drm_agp_enable'
       drivers/gpu/drm/drm_agpsupport.c:171: warning: Function parameter or member 'mode' not described in 'drm_agp_enable'
       drivers/gpu/drm/drm_agpsupport.c:203: warning: Function parameter or member 'dev' not described in 'drm_agp_alloc'
       drivers/gpu/drm/drm_agpsupport.c:203: warning: Function parameter or member 'request' not described in 'drm_agp_alloc'
       drivers/gpu/drm/drm_agpsupport.c:256: warning: Function parameter or member 'dev' not described in 'drm_agp_lookup_entry'
       drivers/gpu/drm/drm_agpsupport.c:256: warning: Function parameter or member 'handle' not described in 'drm_agp_lookup_entry'
       drivers/gpu/drm/drm_agpsupport.c:279: warning: Function parameter or member 'dev' not described in 'drm_agp_unbind'
       drivers/gpu/drm/drm_agpsupport.c:279: warning: Function parameter or member 'request' not described in 'drm_agp_unbind'
       drivers/gpu/drm/drm_agpsupport.c:318: warning: Function parameter or member 'dev' not described in 'drm_agp_bind'
       drivers/gpu/drm/drm_agpsupport.c:318: warning: Function parameter or member 'request' not described in 'drm_agp_bind'
       drivers/gpu/drm/drm_agpsupport.c:363: warning: Function parameter or member 'dev' not described in 'drm_agp_free'
       drivers/gpu/drm/drm_agpsupport.c:363: warning: Function parameter or member 'request' not described in 'drm_agp_free'
       drivers/gpu/drm/drm_agpsupport.c:404: warning: Function parameter or member 'dev' not described in 'drm_agp_init'
      
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Faith <faith@valinux.com>
      Cc: Gareth Hughes <gareth@valinux.com>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-24-lee.jones@linaro.org
      cec7638b
    • Lee Jones's avatar
      drm/gma500/mdfld_intel_display: Demote three kernel-doc formatting abuses · d578f32b
      Lee Jones authored
      
      
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/gma500/mdfld_intel_display.c:103: warning: Function parameter or member 'dev' not described in 'psb_intel_panel_fitter_pipe'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:273: warning: Function parameter or member 'crtc' not described in 'mdfld_crtc_dpms'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:273: warning: Function parameter or member 'mode' not described in 'mdfld_crtc_dpms'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:609: warning: Function parameter or member 'crtc' not described in 'mdfldFindBestPLL'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:609: warning: Function parameter or member 'target' not described in 'mdfldFindBestPLL'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:609: warning: Function parameter or member 'refclk' not described in 'mdfldFindBestPLL'
       drivers/gpu/drm/gma500/mdfld_intel_display.c:609: warning: Function parameter or member 'best_clock' not described in 'mdfldFindBestPLL'
      
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-23-lee.jones@linaro.org
      d578f32b
    • Lee Jones's avatar
      drm/gma500/mdfld_dsi_output: Demote a couple of kernel-doc formatting abuses · c9af49c1
      Lee Jones authored
      
      
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/gma500/mdfld_dsi_output.c:71: warning: Function parameter or member 'dev' not described in 'mdfld_dsi_gen_fifo_ready'
       drivers/gpu/drm/gma500/mdfld_dsi_output.c:71: warning: Function parameter or member 'gen_fifo_stat_reg' not described in 'mdfld_dsi_gen_fifo_ready'
       drivers/gpu/drm/gma500/mdfld_dsi_output.c:71: warning: Function parameter or member 'fifo_stat' not described in 'mdfld_dsi_gen_fifo_ready'
       drivers/gpu/drm/gma500/mdfld_dsi_output.c:95: warning: Function parameter or member 'dsi_config' not described in 'mdfld_dsi_brightness_init'
       drivers/gpu/drm/gma500/mdfld_dsi_output.c:95: warning: Function parameter or member 'pipe' not described in 'mdfld_dsi_brightness_init'
      
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: jim liu <jim.liu@intel.com>
      Cc: Jackie Li <yaodong.li@intel.com>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-22-lee.jones@linaro.org
      c9af49c1