1. 13 Nov, 2017 2 commits
  2. 10 Nov, 2017 1 commit
  3. 09 Nov, 2017 11 commits
  4. 08 Nov, 2017 4 commits
  5. 07 Nov, 2017 5 commits
  6. 06 Nov, 2017 2 commits
  7. 04 Nov, 2017 2 commits
  8. 03 Nov, 2017 4 commits
    • Akshu Agrawal's avatar
      drm/amd/amdgpu: Enabling ACP clock in hw_init (v2) · 37c5f2c9
      Akshu Agrawal authored
      Enabling of ACP in hw_init does away with requirement of order
      of probe on designware_i2s and acp dma driver. designware_i2s
      reads i2s registers and this use to fail if acp dma driver was not probed
      prior to it.
      
      BUG=:b:62103837
      TEST=modprobe snd-soc-acp-pcm
      modprobe snd-soc-acp-rt5645-mach
      aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: acprt5650 [acprt5650], device 0: RT5645_AIF1 rt5645-aif1-0 []
        Subdevices: 1/1
          Subdevice #0: subdevice #0
      
      v2: use proper device in dev_err to fix warnings (Alex)
      Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
      Reviewed-on: https://chromium-review.googlesource.com/670207Reviewed-by: default avatarJason Clinton <jclinton@chromium.org>
      Reviewed-on: https://chromium-review.googlesource.com/676628Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      37c5f2c9
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2017-10-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · 36a5fdf7
      Dave Airlie authored
      This time really the last i915 batch for v4.15:
      
      - PSR state tracking in crtc state (Ville)
      - Fix eviction when the GGTT is idle but full (Chris)
      - BDW DP aux channel timeout fix (James)
      - LSPCON detection fixes (Shashank)
      - Use for_each_pipe to iterate over pipes (Mika Kahola)
      - Replace *_reference/unreference() or *_ref/unref with _get/put() (Harsha)
      - Refactoring and preparation for DDI encoder type cleanup (Ville)
      - Broadwell DDI FDI buf translation fix (Chris)
      - Read CSB and CSB write pointer from HWSP in GVT-g VM if available (Weinan)
      - GuC/HuC firmware loader refactoring (Michal)
      - Make shrinking more effective and not stall so much (Chris)
      - Cannonlake PLL fixes (Rodrigo)
      - DP MST connector error propagation fixes (James)
      - Convert timers to use timer_setup (Kees Cook)
      - Skylake plane enable/disable unification (Juha-Pekka)
      - Fix to actually free driver internal objects when requested (Chris)
      - DDI buf trans refactoring (Ville)
      - Skip waking the device to service pwrite (Chris)
      - Improve DSI VBT backlight parsing abstraction (Madhav)
      - Cannonlake VBT DDC pin mapping fix (Rodrigo)
      
      * tag 'drm-intel-next-2017-10-23' of git://anongit.freedesktop.org/drm/drm-intel: (87 commits)
        drm/i915: Update DRIVER_DATE to 20171023
        drm/i915/cnl: Map VBT DDC Pin to BSpec DDC Pin.
        drm/i915: Let's use more enum intel_dpll_id pll_id.
        drm/i915: Use existing DSI backlight ports info
        drm/i915: Parse DSI backlight/cabc ports.
        drm/i915: Skip waking the device to service pwrite
        drm/i915/crt: split compute_config hook by platforms
        drm/i915: remove g4x lowfreq_avail and has_pipe_cxsr
        drm/i915: Drop the redundant hdmi prefix/suffix from a lot of variables
        drm/i915: Unify error handling for missing DDI buf trans tables
        drm/i915: Centralize the SKL DDI A/E vs. B/C/D buf trans handling
        drm/i915: Kill off the BXT buf_trans default_index
        drm/i915: Pass encoder type to cnl_ddi_vswing_sequence() explicitly
        drm/i915: Integrate BXT into intel_ddi_dp_voltage_max()
        drm/i915: Pass the level to intel_prepare_hdmi_ddi_buffers()
        drm/i915: Pass the encoder type explicitly to skl_set_iboost()
        drm/i915: Extract intel_ddi_get_buf_trans_hdmi()
        drm/i915: Relocate intel_ddi_get_buf_trans_*() functions
        drm/i915: Flush the idle-worker for debugfs/i915_drop_caches
        drm/i915: adjust get_crtc_fence_y_offset() to use base.y instead of crtc.y
        ...
      36a5fdf7
    • Boris BREZILLON's avatar
      drm/vc4: Fix wrong printk format in vc4_bo_stats_debugfs() · e073db5c
      Boris BREZILLON authored
      vc4->purgeable.size and vc4->purgeable.purged_size are size_t fields
      and should be printed with a %zd specifier.
      
      Fixes: b9f19259 ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
      Reviewed-by: default avatarEric Anholt <eric@anholt.net>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171101095731.14878-1-boris.brezillon@free-electrons.com
      (cherry picked from commit 50f365cd)
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      e073db5c
    • Arnd Bergmann's avatar
      drm/amdgpu/virt: don't dereference undefined 'module' struct · e477e940
      Arnd Bergmann authored
      Accessing the THIS_MODULE directly is only possible when modules
      are enabled, otherwise we get a build failure:
      
      drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c: In function 'amdgpu_virt_init_data_exchange':
      drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:331:20: error: dereferencing pointer to incomplete type 'struct module'
      
      Further, THIS_MODULE is NULL when the driver is built-in, so the
      code would likely cause a NULL pointer dereference.
      
      This adds an #ifdef check to avoid the compile-time error, plus
      a NULL pointer check before dereferencing THIS_MODULE. It might
      be better to find a way to avoid using the module version
      altogether.
      
      Fixes: 2dc8f81e ("drm/amdgpu: SR-IOV data exchange between PF&VF")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Reviewed-By: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
      e477e940
  9. 02 Nov, 2017 9 commits
    • Dave Airlie's avatar
      Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-next · bf6eb600
      Dave Airlie authored
      nouveau next fixes.
      
      Fixes arm32 build.
      
      * 'linux-4.15' of git://github.com/skeggsb/linux:
        drm/nouveau/bios/timing: mark expected switch fall-throughs
        drm/nouveau/devinit/nv04: mark expected switch fall-throughs
        drm/nouveau/bios: make const arrays hwsq_signature and edid_sig static
        drm/nouveau/core/memory: fix missing mutex unlock
        drm/nouveau/mmu: swap out round for ALIGN
      bf6eb600
    • Gustavo A. R. Silva's avatar
      drm/nouveau/bios/timing: mark expected switch fall-throughs · d34ded7e
      Gustavo A. R. Silva authored
      In preparation to enabling -Wimplicit-fallthrough, mark switch cases
      where we are expecting to fall through.
      
      Addresses-Coverity-ID: 1260018
      Addresses-Coverity-ID: 1260019
      Addresses-Coverity-ID: 1260022
      Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      d34ded7e
    • Gustavo A. R. Silva's avatar
      drm/nouveau/devinit/nv04: mark expected switch fall-throughs · 21dce3f4
      Gustavo A. R. Silva authored
      In preparation to enabling -Wimplicit-fallthrough, mark switch cases
      where we are expecting to fall through.
      
      Addresses-Coverity-ID: 143119
      Addresses-Coverity-ID: 143120
      Addresses-Coverity-ID: 143121
      Addresses-Coverity-ID: 143122
      Addresses-Coverity-ID: 143123
      Addresses-Coverity-ID: 143124
      Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      21dce3f4
    • Colin Ian King's avatar
      drm/nouveau/bios: make const arrays hwsq_signature and edid_sig static · 1a5c8164
      Colin Ian King authored
      Don't populate arrays hwsq_signature and edid_sig on the stack but
      instead make them static. Makes the object code smaller by over 190
      bytes:
      
      Before:
         text    data     bss     dec     hex filename
        35676    3312      64   39052    988c nouveau_bios.o
      
      After:
         text    data     bss     dec     hex filename
        35319    3472      64   38855    97c7 nouveau_bios.o
      
      (gcc version 7.2.0 x86_64)
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      1a5c8164
    • Ben Skeggs's avatar
      690f43ab
    • Ben Skeggs's avatar
      drm/nouveau/mmu: swap out round for ALIGN · 6497c2ba
      Ben Skeggs authored
      Rounding value is guaranteed to be power-of-two, so this is better
      anyway.
      
      Fixes build on 32-bit.
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      6497c2ba
    • Dave Airlie's avatar
      Merge tag 'drm-amdkfd-next-2017-11-02' of git://people.freedesktop.org/~gabbayo/linux into drm-next · 9ad472e3
      Dave Airlie authored
      - Usermode Events
      The current events code implemented some data structures (waitqueue, fifo)
      that were already implemented in the kernel. The patches below addresses
      this issue by replacing them with the standard kernel implementation.
      In addition, they simplify allocation of events IDs and memory for the events.
      
      The patches also increase the maximum number of events while maintaining
      compatibility with the older userspace library.
      
      - Remove radeon support
      Because Kaveri is fully supported in amdgpu and because current and future
      versions of userspace libraries will only support amdgpu, we removed radeon
      support from kfd. Current users can move to amdgpu while using the same
      userspace libraries.
      
      - Various bug fixes and cleanups
      
      * tag 'drm-amdkfd-next-2017-11-02' of git://people.freedesktop.org/~gabbayo/linux: (26 commits)
        drm/amdkfd: Minor cleanups
        drm/amdkfd: Update queue_count before mapping queues
        drm/amdkfd: Cleanup DQM ASIC-specific ops
        drm/amdkfd: Register/Deregister process on qpd resolution
        drm/amdkfd: Fix debug unregister procedure on process termination
        drm/amdkfd: Avoid calling amd_iommu_unbind_pasid() when suspending
        drm/amdkfd: Disable CP/SDMA ring/doorbell in MQD
        drm/amdkfd: Clean up the data structure in kfd_process
        drm/radeon: deprecate and remove KFD interface
        drm/amdkfd: use a high priority workqueue for IH work
        drm/amdkfd: wait only for IH work on IH exit
        drm/amdkfd: increase IH num entries to 8192
        drm/amdkfd: use standard kernel kfifo for IH
        drm/amdkfd: increase limit of signal events to 4096 per process
        drm/amdkfd: Make event limit dependent on user mode mapping size
        drm/amdkfd: Use IH context ID for signal lookup
        drm/amdkfd: Simplify event ID and signal slot management
        drm/amdkfd: Simplify events page allocator
        drm/amdkfd: Use wait_queue_t to implement event waiting
        drm/amdkfd: remove redundant kfd_event_waiter.input_index
        ...
      9ad472e3
    • Dave Airlie's avatar
      Merge branch 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux into drm-next · 85f6e0f6
      Dave Airlie authored
      Some amdgpu/ttm fixes.
      
      * 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux:
        drm/amd/powerplay: wrong control mode cause the fan spins faster unnecessarily
        drm/amd/powerplay: fix memory leak of hardcoded pptable
        drm/amdgpu:add fw-vram-usage for atomfirmware
        drm/radeon: fix atombios on big endian
        drm/ttm:fix memory leak due to individualize
        drm/amdgpu: fix error handling in amdgpu_bo_do_create
        drm/ttm: once more fix ttm_buffer_object_transfer
        drm/amd/powerplay: change ASIC temperature reading on Vega10
      85f6e0f6
    • Dave Airlie's avatar
      Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-next · 2ef7a95f
      Dave Airlie authored
      - Pascal temperature sensor support
      - Improved BAR2 handling, greatly reduces time required to suspend
      - Rework of the MMU code
        - Allows us to properly support Pascal's new MMU layout (implemented)
        - Lays the groundwork for improved userspace APIs later
      - Misc other fixes
      
      * 'linux-4.15' of git://github.com/skeggsb/linux: (151 commits)
        drm/nouveau/gr/gf100-: don't prevent module load if firmware missing
        drm/nouveau/mmu: remove old vmm frontend
        drm/nouveau: improve selection of GPU page size
        drm/nouveau: switch over to new memory and vmm interfaces
        drm/nouveau: remove unused nouveau_fence_work()
        drm/nouveau: queue delayed unmapping of VMAs on client workqueue
        drm/nouveau: implement per-client delayed workqueue with fence support
        drm/nouveau: determine memory class for each client
        drm/nouveau: pass handle of vmm object to channel allocation ioctls
        drm/nouveau: switch to vmm limit
        drm/nouveau: allocate vmm object for every client
        drm/nouveau: replace use of cpu_coherent with memory types
        drm/nouveau: use nvif_mmu_type to determine BAR1 caching
        drm/nouveau: fetch memory type indices that we care about for ttm
        drm/nouveau: consolidate handling of dma mask
        drm/nouveau: check kind validity against mmu object
        drm/nouveau: allocate mmu object for every client
        drm/nouveau: remove trivial cases of nvxx_device() usage
        drm/nouveau/mmu: define user interfaces to mmu vmm opertaions
        drm/nouveau/mmu: define user interfaces to mmu memory allocation
        ...
      2ef7a95f