Skip to content
  1. Jul 25, 2015
  2. Jul 24, 2015
  3. Jul 23, 2015
    • Leo Liu's avatar
    • Alex Deucher's avatar
      drm/amdgpu: implement VCE 3.0 harvesting support (v4) · 6a585777
      Alex Deucher authored
      
      
      For boards with bad VCE blocks, only configure the working
      block.
      
      v2: use the harvest info for pipe setup
      v3: fix mask check as noted by Leo
      v4: add dGPU support
      
      Reviewed-by: Christian König <christian.koenig@amd.com> (v2)
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      6a585777
    • Michel Dänzer's avatar
      drm/amdgpu/dce10: Re-set VBLANK interrupt state when enabling a CRTC · 5e6775ab
      Michel Dänzer authored
      
      
      This doesn't seem strictly necessary with Tonga right now, but that might
      change with future power management enhancements.
      
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
      5e6775ab
    • Michel Dänzer's avatar
      drm/amdgpu/dce11: Re-set VBLANK interrupt state when enabling a CRTC · d84b272a
      Michel Dänzer authored
      
      
      Something (ATOM BIOS?) seems to be clobbering the LB_INTERRUPT_MASK
      register while the CRTC is off, which caused e.g. glxgears or
      gnome-shell to hang after a modeset.
      
      Reviewed-and-Tested-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Tested-by: default avatarSonny Jiang <sonny.jiang@amd.com>
      Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
      d84b272a
    • Alex Williamson's avatar
      iommu/vt-d: Fix VM domain ID leak · 46ebb7af
      Alex Williamson authored
      This continues the attempt to fix commit fb170fb4 ("iommu/vt-d:
      Introduce helper functions to make code symmetric for readability").
      The previous attempt in commit 71684406 ("iommu/vt-d: Detach
      domain *only* from attached iommus") overlooked the fact that
      dmar_domain.iommu_bmp gets cleared for VM domains when devices are
      detached:
      
      intel_iommu_detach_device
        domain_remove_one_dev_info
          domain_detach_iommu
      
      The domain is detached from the iommu, but the iommu is still attached
      to the domain, for whatever reason.  Thus when we get to domain_exit(),
      we can't rely on iommu_bmp for VM domains to find the active iommus,
      we must check them all.  Without that, the corresponding bit in
      intel_iommu.domain_ids doesn't get cleared and repeated VM domain
      creation and destruction will run out of domain IDs.  Meanwhile we
      still can't call iommu_detach_domain() on arbitrary non-VM domains or
      we risk clearing in-use domain IDs, as 71684406 attempted to
      address.
      
      It's tempting to modify iommu_detach_domain() to test the domain
      iommu_bmp, but the call ordering from domain_remove_one_dev_info()
      prevents it being able to work as fb170fb4 seems to have intended.
      Caching of unused VM domains on the iommu object seems to be the root
      of the problem, but this code is far too fragile for that kind of
      rework to be proposed for stable, so we simply revert this chunk to
      its state prior to fb170fb4.
      
      Fixes: fb170fb4 ("iommu/vt-d: Introduce helper functions to make
                            code symmetric for readability")
      Fixes: 71684406
      
       ("iommu/vt-d: Detach domain *only* from attached
                            iommus")
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: stable@vger.kernel.org # v3.17+
      Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
      46ebb7af
    • Paolo Bonzini's avatar
      KVM: x86: rename quirk constants to KVM_X86_QUIRK_* · 0da029ed
      Paolo Bonzini authored
      
      
      Make them clearly architecture-dependent; the capability is valid for
      all architectures, but the argument is not.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0da029ed
    • Xiao Guangrong's avatar
      KVM: vmx: obey KVM_QUIRK_CD_NW_CLEARED · fb279950
      Xiao Guangrong authored
      
      
      OVMF depends on WB to boot fast, because it only clears caches after
      it has set up MTRRs---which is too late.
      
      Let's do writeback if CR0.CD is set to make it happy, similar to what
      SVM is already doing.
      
      Signed-off-by: default avatarXiao Guangrong <guangrong.xiao@intel.com>
      Tested-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      fb279950
    • Paolo Bonzini's avatar
      KVM: x86: introduce kvm_check_has_quirk · 41dbc6bc
      Paolo Bonzini authored
      
      
      The logic of the disabled_quirks field usually results in a double
      negation.  Wrap it in a simple function that checks the bit and
      negates it.
      
      Based on a patch from Xiao Guangrong.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      41dbc6bc
    • Xiao Guangrong's avatar
      KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type · 3e5d2fdc
      Xiao Guangrong authored
      
      
      kvm_mtrr_get_guest_memory_type never returns -1 which is implied
      in the current code since if @type = -1 (means no MTRR contains the
      range), iter.partial_map must be true
      
      Simplify the code to indicate this fact
      
      Signed-off-by: default avatarXiao Guangrong <guangrong.xiao@intel.com>
      Tested-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3e5d2fdc
    • Xiao Guangrong's avatar
      KVM: MTRR: fix memory type handling if MTRR is completely disabled · 10dc331f
      Xiao Guangrong authored
      
      
      Currently code uses default memory type if MTRR is fully disabled,
      fix it by using UC instead.
      
      Signed-off-by: default avatarXiao Guangrong <guangrong.xiao@intel.com>
      Tested-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      10dc331f
    • Eric W. Biederman's avatar
      mnt: Clarify and correct the disconnect logic in umount_tree · f2d0a123
      Eric W. Biederman authored
      rmdir mntpoint will result in an infinite loop when there is
      a mount locked on the mountpoint in another mount namespace.
      
      This is because the logic to test to see if a mount should
      be disconnected in umount_tree is buggy.
      
      Move the logic to decide if a mount should remain connected to
      it's mountpoint into it's own function disconnect_mount so that
      clarity of expression instead of terseness of expression becomes
      a virtue.
      
      When the conditions where it is invalid to leave a mount connected
      are first ruled out, the logic for deciding if a mount should
      be disconnected becomes much clearer and simpler.
      
      Fixes: e0c9c0af mnt: Update detach_mounts to leave mounts connected
      Fixes: ce07d891
      
       mnt: Honor MNT_LOCKED when detaching mounts
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
      f2d0a123
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · c5dfd654
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Don't use shared bluetooth antenna in iwlwifi driver for management
          frames, from Emmanuel Grumbach.
      
       2) Fix device ID check in ath9k driver, from Felix Fietkau.
      
       3) Off by one in xen-netback BUG checks, from Dan Carpenter.
      
       4) Fix IFLA_VF_PORT netlink attribute validation, from Daniel Borkmann.
      
       5) Fix races in setting peeked bit flag in SKBs during datagram
          receive.  If it's shared we have to clone it otherwise the value can
          easily be corrupted.  Fix from Herbert Xu.
      
       6) Revert fec clock handling change, causes regressions.  From Fabio
          Estevam.
      
       7) Fix use after free in fq_codel and sfq packet schedulers, from WANG
          Cong.
      
       8) ipvlan bug fixes (memory leaks, missing rcu_dereference_bh, etc.)
          from WANG Cong and Konstantin Khlebnikov.
      
       9) Memory leak in act_bpf packet action, from Alexei Starovoitov.
      
      10) ARM bpf JIT bug fixes from Nicolas Schichan.
      
      11) Fix backwards compat of ANY_LAYOUT in virtio_net driver, from
          Michael S Tsirkin.
      
      12) Destruction of bond with different ARP header types not handled
          correctly, fix from Nikolay Aleksandrov.
      
      13) Revert GRO receive support in ipv6 SIT tunnel driver, causes
          regressions because the GRO packets created cannot be processed
          properly on the GSO side if we forward the frame.  From Herbert Xu.
      
      14) TCCR update race and other fixes to ravb driver from Sergei
          Shtylyov.
      
      15) Fix SKB leaks in caif_queue_rcv_skb(), from Eric Dumazet.
      
      16) Fix panics on packet scheduler filter replace, from Daniel Borkmann.
      
      17) Make sure AF_PACKET sees properly IP headers in defragmented frames
          (via PACKET_FANOUT_FLAG_DEFRAG option), from Edward Hyunkoo Jee.
      
      18) AF_NETLINK cannot hold mutex in RCU callback, fix from Florian
          Westphal.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (84 commits)
        ravb: fix ring memory allocation
        net: phy: dp83867: Fix warning check for setting the internal delay
        openvswitch: allocate nr_node_ids flow_stats instead of num_possible_nodes
        netlink: don't hold mutex in rcu callback when releasing mmapd ring
        ARM: net: fix vlan access instructions in ARM JIT.
        ARM: net: handle negative offsets in BPF JIT.
        ARM: net: fix condition for load_order > 0 when translating load instructions.
        tcp: suppress a division by zero warning
        drivers: net: cpsw: remove tx event processing in rx napi poll
        inet: frags: fix defragmented packet's IP header for af_packet
        net: mvneta: fix refilling for Rx DMA buffers
        stmmac: fix setting of driver data in stmmac_dvr_probe
        sched: cls_flow: fix panic on filter replace
        sched: cls_flower: fix panic on filter replace
        sched: cls_bpf: fix panic on filter replace
        net/mdio: fix mdio_bus_match for c45 PHY
        net: ratelimit warnings about dst entry refcount underflow or overflow
        caif: fix leaks and race in caif_queue_rcv_skb()
        qmi_wwan: add the second QMI/network interface for Sierra Wireless MC7305/MC7355
        ravb: fix race updating TCCR
        ...
      c5dfd654
  4. Jul 22, 2015