]> www.infradead.org Git - users/jedix/linux-maple.git/log
users/jedix/linux-maple.git
9 years agoSDP bug647 - Validate ChRcvBuf range and add comments
Jim Mott [Tue, 23 Oct 2007 17:57:33 +0000 (10:57 -0700)]
SDP bug647 - Validate ChRcvBuf range and add comments

Clean up the buffer resize code to comply with CA4-83:
  Upon receipt of ChRcvBuf message, the remote peer shall not
change the buffer size in the direction opposite of that
requested.

Also add some comments and pretty up the code.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP bug646 - Do not send DisConn if there is only 1 credit
Jim Mott [Tue, 23 Oct 2007 17:51:30 +0000 (10:51 -0700)]
SDP bug646 - Do not send DisConn if there is only 1 credit

Compliance with CA4-82:
  If one credit is available, an implementation shall only send SDP
messages that provide additional credits and also do not contain ULP
payload.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP bug644 - DisConn, ChRcvBuf, and ChRcvBufAck sent solicited
Jim Mott [Tue, 23 Oct 2007 17:50:39 +0000 (10:50 -0700)]
SDP bug644 - DisConn, ChRcvBuf, and ChRcvBufAck sent solicited

This patch brings the implementation into compliance with A4.11.2 which
says that these messages are not to be sent as solicited.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP: Add keepalive support
Jim Mott [Thu, 11 Oct 2007 16:33:09 +0000 (09:33 -0700)]
SDP: Add keepalive support

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoFix SDP build issue in 2.6.22-rc7 kernel. There are skbuff.h changes.
Jim Mott [Mon, 16 Jul 2007 12:27:12 +0000 (05:27 -0700)]
Fix SDP build issue in 2.6.22-rc7 kernel. There are skbuff.h changes.

9 years agoIB/sdp: move the socket to accept queue
Ami Perlmutter [Tue, 29 May 2007 14:32:31 +0000 (17:32 +0300)]
IB/sdp: move the socket to accept queue

Move socket to accept queue if RTU is dropped and DREQ is recieved
(bugzilla 645)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: resize data should be added to skb via skb_put (bugzilla 620)
Ami Perlmutter [Tue, 15 May 2007 11:55:31 +0000 (14:55 +0300)]
IB/sdp: resize data should be added to skb via skb_put (bugzilla 620)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: fix problem with sles9 backport (bugzilla 621)
Ami Perlmutter [Tue, 15 May 2007 06:08:13 +0000 (09:08 +0300)]
IB/sdp: fix problem with sles9 backport (bugzilla 621)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: slow start recv buffer sizes, and try to resize if out of credits (bugzilla...
Ami Perlmutter [Thu, 10 May 2007 12:23:13 +0000 (15:23 +0300)]
IB/sdp: slow start recv buffer sizes, and try to resize if out of credits (bugzilla 556)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: print queued rx and tx status to proc_fs implement SIOCOUTQ ioctl
Ami Perlmutter [Wed, 9 May 2007 09:16:08 +0000 (12:16 +0300)]
IB/sdp: print queued rx and tx status to proc_fs implement SIOCOUTQ ioctl

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: Cleanup compilation warnings.
Michael S. Tsirkin [Sun, 6 May 2007 08:18:56 +0000 (11:18 +0300)]
IB/sdp: Cleanup compilation warnings.

workqueue function gets passed work_struct sizeof should be printed with %zd

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
9 years agoIB/sdp: Fix to be compliant with CA4-119 (bugzilla 596)
Ami Perlmutter [Wed, 2 May 2007 12:26:17 +0000 (15:26 +0300)]
IB/sdp: Fix to be compliant with CA4-119 (bugzilla 596)

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: adjust module parameter to improve 8K message BW
Ami Perlmutter [Thu, 26 Apr 2007 07:13:23 +0000 (10:13 +0300)]
IB/sdp: adjust module parameter to improve 8K message BW

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: prevent removal of ib device before cleanup
Ami Perlmutter [Wed, 25 Apr 2007 14:19:07 +0000 (17:19 +0300)]
IB/sdp: prevent removal of ib device before cleanup

Should cleanup  all related resources (bugzzila num. 579)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: fix dma mapping direction (bugzzila num. 556)
Ami Perlmutter [Sun, 22 Apr 2007 10:31:47 +0000 (13:31 +0300)]
IB/sdp: fix dma mapping direction (bugzzila num. 556)

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp - use the ib_dma interface
Ami Perlmutter [Thu, 29 Mar 2007 08:28:01 +0000 (10:28 +0200)]
IB/sdp - use the ib_dma interface

The SDP module should be using the ib_dma_* interface, not the dma_*
interface directly.  This fixes a crash on InfiniPath hardware.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Robert Walsh <robert.walsh@qlogic.com>
9 years agoIB/sdp: cm disconnect should wake up any sleeping processes (bugzzila num. 492)
Ami Perlmutter [Sun, 25 Mar 2007 14:48:04 +0000 (16:48 +0200)]
IB/sdp: cm disconnect should wake up any sleeping processes (bugzzila num. 492)

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: add uid and inode to proc_fs info
Amiram Perlmutter [Wed, 14 Mar 2007 12:34:08 +0000 (14:34 +0200)]
IB/sdp: add uid and inode to proc_fs info

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
9 years agoIB/sdp: fix dma leak
Ami Parlmuter [Tue, 27 Feb 2007 14:08:27 +0000 (16:08 +0200)]
IB/sdp: fix dma leak

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix BSDH len field for HH/HAH login messages.
Amiram Perlmutter [Sun, 25 Feb 2007 09:57:47 +0000 (11:57 +0200)]
IB/sdp: fix BSDH len field for HH/HAH login messages.

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: try to send after push mark is set
Ami Parlmuter [Wed, 21 Feb 2007 09:55:38 +0000 (11:55 +0200)]
IB/sdp: try to send after push mark is set

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: allow users via module parameter to bound SDP's memory use
Amiram Perlmutter [Thu, 25 Jan 2007 09:53:25 +0000 (11:53 +0200)]
IB/sdp: allow users via module parameter to bound SDP's memory use

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix NULL pointer dereference
Amiram Perlmutter [Mon, 22 Jan 2007 15:03:58 +0000 (17:03 +0200)]
IB/sdp: fix NULL pointer dereference

introduced by patch "IB/sdp: handle shutdown recv on listening socket"

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: add proc_fs support
Amiram Perlmutter [Mon, 22 Jan 2007 12:00:04 +0000 (14:00 +0200)]
IB/sdp: add proc_fs support

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: handle shutdown recv on listening socket
Amiram Perlmutter [Thu, 18 Jan 2007 16:50:30 +0000 (18:50 +0200)]
IB/sdp: handle shutdown recv on listening socket

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoUpdate for API changes merged for 2.6.20.
Michael S. Tsirkin [Sun, 17 Dec 2006 09:39:05 +0000 (11:39 +0200)]
Update for API changes merged for 2.6.20.

9 years agoIB/sdp: fill required login fields
Amiram Perlmutter [Thu, 30 Nov 2006 16:49:41 +0000 (18:49 +0200)]
IB/sdp: fill required login fields

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: poll cq in sendmsg only when sent size is larger than
Amiram Perlmutter [Thu, 16 Nov 2006 13:48:33 +0000 (15:48 +0200)]
IB/sdp: poll cq in sendmsg only when sent size is larger than

threshold to improve small message BW

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fixed compilation error
Amiram Perlmutter [Thu, 16 Nov 2006 09:54:43 +0000 (11:54 +0200)]
IB/sdp: fixed compilation error

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fixed typo in module parameter description
Amiram Perlmutter [Mon, 13 Nov 2006 14:46:29 +0000 (16:46 +0200)]
IB/sdp: fixed typo in module parameter description

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: merge small skbs on receive side into larger ones.
Amiram Perlmutter [Mon, 13 Nov 2006 13:38:22 +0000 (15:38 +0200)]
IB/sdp: merge small skbs on receive side into larger ones.

For now, only do this if both skbs are linear.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: modify buffer use calculation to eliminate credit starvation
Amiram Perlmutter [Mon, 13 Nov 2006 09:43:06 +0000 (11:43 +0200)]
IB/sdp: modify buffer use calculation to eliminate credit starvation

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: handle immediate errors on post_send/post_receive
Michael S. Tsirkin [Sun, 17 Sep 2006 14:22:16 +0000 (17:22 +0300)]
IB/sdp: handle immediate errors on post_send/post_receive

could happen if cma has moved the QP to error asynchronously

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: disable timewait on close if socket has been disconnected
Michael S. Tsirkin [Mon, 11 Sep 2006 13:00:21 +0000 (16:00 +0300)]
IB/sdp: disable timewait on close if socket has been disconnected

State should move to CLOSE or CLOSE_WAIT etc on disconnect.
Since it currently doesn't, do it in sdp_close to avoid timewait.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: emulate completion with error if packet queued after disconnect.
Michael S. Tsirkin [Mon, 11 Sep 2006 05:24:22 +0000 (08:24 +0300)]
IB/sdp: emulate completion with error if packet queued after disconnect.

In TCP packet is sent, and we get RST from the remote. Emulate this in SDP.

9 years agoIB/sdp: add receive buffer size scale factor
Michael S. Tsirkin [Mon, 11 Sep 2006 05:17:22 +0000 (08:17 +0300)]
IB/sdp: add receive buffer size scale factor

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: improve urgent data latency
Amiram Perlmutter [Sun, 10 Sep 2006 07:43:22 +0000 (10:43 +0300)]
IB/sdp: improve urgent data latency

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix data corruption on SLES10 (should affect other systems as well).
Michael S. Tsirkin [Mon, 4 Sep 2006 15:18:07 +0000 (18:18 +0300)]
IB/sdp: fix data corruption on SLES10 (should affect other systems as well).

9 years agoIB/sdp: fix a crash when child is disconnected while parent is being destroyed
Michael S. Tsirkin [Mon, 4 Sep 2006 07:58:13 +0000 (10:58 +0300)]
IB/sdp: fix a crash when child is disconnected while parent is being destroyed

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoCMA should check backlog_queue, not accept_queue, since accept_queue could be changed...
Michael S. Tsirkin [Tue, 29 Aug 2006 10:13:11 +0000 (13:13 +0300)]
CMA should check backlog_queue, not accept_queue, since accept_queue could be changed by accept().

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: request notification only if CQ exists.
Michael S. Tsirkin [Sun, 27 Aug 2006 12:28:09 +0000 (15:28 +0300)]
IB/sdp: request notification only if CQ exists.

Further, poll after request for notification, as required by IB spec.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: do not kill the child socket in accept queue
Michael S. Tsirkin [Sun, 27 Aug 2006 09:13:18 +0000 (12:13 +0300)]
IB/sdp: do not kill the child socket in accept queue

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: implement SIOCINQ (FIONREAD)
Michael S. Tsirkin [Thu, 24 Aug 2006 04:55:21 +0000 (07:55 +0300)]
IB/sdp: implement SIOCINQ (FIONREAD)

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: set inet's daddr and dport on active side as part of connect
Amiram Perlmutter [Tue, 22 Aug 2006 15:59:10 +0000 (18:59 +0300)]
IB/sdp: set inet's daddr and dport on active side as part of connect

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Fix skb truesize calculation for the RX skb
Michael S. Tsirkin [Sun, 20 Aug 2006 15:30:20 +0000 (18:30 +0300)]
IB/sdp: Fix skb truesize calculation for the RX skb

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: increment seq in case of fin
Amiram Perlmutter [Sun, 20 Aug 2006 09:20:14 +0000 (12:20 +0300)]
IB/sdp: increment seq in case of fin

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: do not reset offsets on disconnect
Amiram Perlmutter [Sun, 20 Aug 2006 09:15:17 +0000 (12:15 +0300)]
IB/sdp: do not reset offsets on disconnect

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Use inet_sk for portability.
Michael S. Tsirkin [Thu, 17 Aug 2006 14:26:00 +0000 (17:26 +0300)]
IB/sdp: Use inet_sk for portability.

9 years agoIB/sdp: fill in source address in inet_sock when it is available
Amiram Perlmutter [Thu, 17 Aug 2006 12:31:56 +0000 (15:31 +0300)]
IB/sdp: fill in source address in inet_sock when it is available

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
(cherry picked from c5858a33c5df475a544ad53c1e629e91cc2eb9f4 commit)

9 years agoIB/sdp: add support for MSG_OOB
Ami Parlmuter [Wed, 16 Aug 2006 13:09:33 +0000 (16:09 +0300)]
IB/sdp: add support for MSG_OOB

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Add CQ polling, weight configurable globally.
Michael S. Tsirkin [Tue, 8 Aug 2006 05:38:19 +0000 (08:38 +0300)]
IB/sdp: Add CQ polling, weight configurable globally.

9 years agoIB/sdp: Three bugfixes in SDP sockets.
Michael S. Tsirkin [Thu, 3 Aug 2006 09:53:07 +0000 (12:53 +0300)]
IB/sdp: Three bugfixes in SDP sockets.

1. reset socket on cma error
2. move head/tail init to where we init the ring buffers
3. poll to handle DREQ bypassing disconn

9 years agoIB/sdp: remove unused include
Michael S. Tsirkin [Wed, 2 Aug 2006 13:56:55 +0000 (16:56 +0300)]
IB/sdp: remove unused include

9 years agoIB/sdp: Two bugfixes in SDP
Michael S. Tsirkin [Wed, 2 Aug 2006 07:05:59 +0000 (10:05 +0300)]
IB/sdp: Two bugfixes in SDP

1. Do not mark socket as closed on flushed with error events
2. Simplify locking and reduce code duplication for poll code

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: Change PFN_INDEX -> PAGE_INDEX
Michael S. Tsirkin [Thu, 27 Jul 2006 14:37:47 +0000 (17:37 +0300)]
IB/sdp: Change PFN_INDEX -> PAGE_INDEX

9 years agoIB/sdp: Thinko fix: must update nr frags.
Michael S. Tsirkin [Thu, 27 Jul 2006 09:03:43 +0000 (12:03 +0300)]
IB/sdp: Thinko fix: must update nr frags.

9 years agoIB/sdp:Free unused pages.
Michael S. Tsirkin [Tue, 25 Jul 2006 15:37:54 +0000 (18:37 +0300)]
IB/sdp:Free unused pages.

9 years agoIB/sdp: set sport on autobind
Michael S. Tsirkin [Mon, 24 Jul 2006 15:42:57 +0000 (18:42 +0300)]
IB/sdp: set sport on autobind

9 years agoIB/sdp: Use high memory for receive buffers
Michael S. Tsirkin [Mon, 24 Jul 2006 15:40:47 +0000 (18:40 +0300)]
IB/sdp: Use high memory for receive buffers

(reduce low memory pressure on 32 bit systems).

9 years agoIB/sdp: Fix typo in code
Michael S. Tsirkin [Thu, 20 Jul 2006 15:45:08 +0000 (18:45 +0300)]
IB/sdp: Fix typo in code

9 years agoIB/sdp: Implement Nagle algorithm.
Michael S. Tsirkin [Wed, 19 Jul 2006 08:46:11 +0000 (11:46 +0300)]
IB/sdp: Implement Nagle algorithm.

9 years agoIB/sdp:Split data path debug from not
Michael S. Tsirkin [Wed, 19 Jul 2006 11:54:50 +0000 (14:54 +0300)]
IB/sdp:Split data path debug from not

(cherry picked from d7d5948842ab93dca50c0f38c9abf03489829d91 commit)

9 years agoIB/sdp: Fix error handling for case when mr allocation fails
Michael S. Tsirkin [Sun, 16 Jul 2006 11:42:26 +0000 (14:42 +0300)]
IB/sdp: Fix error handling for case when mr allocation fails

9 years agoIB/sdp: Comment out gso_seg initialization.
Michael S. Tsirkin [Mon, 10 Jul 2006 12:58:07 +0000 (15:58 +0300)]
IB/sdp: Comment out gso_seg initialization.

TCP has it but we don't seem to use.
This field name recently changed from tso_seg.

9 years agoIB/sdp: Fix memory leak in SDP
Michael S. Tsirkin [Tue, 4 Jul 2006 07:20:42 +0000 (10:20 +0300)]
IB/sdp: Fix memory leak in SDP

9 years agosdp: Add SDP - lone SDP from SVN 8227
Michael S. Tsirkin [Tue, 27 Jun 2006 09:34:18 +0000 (12:34 +0300)]
sdp: Add SDP - lone SDP from SVN 8227

10 years agoLinux 4.1 v4.1 v4.1test
Linus Torvalds [Mon, 22 Jun 2015 05:05:43 +0000 (22:05 -0700)]
Linux 4.1

10 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Linus Torvalds [Sun, 21 Jun 2015 00:26:01 +0000 (17:26 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending

Pull scsi target fixes from Nicholas Bellinger:
 "Apologies for the late pull request.

  Here are the outstanding target-pending fixes for v4.1 code.

  The series contains three patches from Sagi + Co that address a few
  iser-target issues that have been uncovered during recent testing at
  Mellanox.

  Patch #1 has a v3.16+ stable tag, and #2-3 have v3.10+ stable tags"

* git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
  iser-target: Fix possible use-after-free
  iser-target: release stale iser connections
  iser-target: Fix variable-length response error completion

10 years agoMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Linus Torvalds [Sat, 20 Jun 2015 20:54:22 +0000 (13:54 -0700)]
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm fixes from Dave Airlie:
 "A smattering of fixes,

  mgag200:
      don't accept modes that aren't aligned properly as hw can't do it

  i915:
      two regression fixes

  radeon:
      one query to allow userspace fixes
      one oops fixer for older hw with new options enabled"

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/radeon: don't probe MST on hw we don't support it on
  drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query
  drm/mgag200: Reject non-character-cell-aligned mode widths
  Revert "drm/i915: Don't skip request retirement if the active list is empty"
  drm/i915: Always reset vma->ggtt_view.pages cache on unbinding

10 years agoMerge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Fri, 19 Jun 2015 17:36:50 +0000 (07:36 -1000)]
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux

Pull clk fixes from Michael Turquette:
 "Very late clk regression fixes for the ARM-based AT91 platform.

  These went unnoticed by me until recently, hence the late pull
  request"

* tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
  clk: at91: fix h32mx prototype inclusion in pmc header
  clk: at91: trivial: typo in peripheral clock description
  clk: at91: fix PERIPHERAL_MAX_SHIFT definition
  clk: at91: pll: fix input range validity check

10 years agoMerge tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Linus Torvalds [Fri, 19 Jun 2015 17:34:14 +0000 (07:34 -1000)]
Merge tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "Nothing looks scary, just a few usual HD-audio regression fixes and
  fixup, in addition to a minor Kconfig dependency fix for the old MIPS
  drivers"

* tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ALSA: hda - Fix unused label skip_i915
  ALSA: hda - Fix noisy outputs on Dell XPS13 (2015 model)
  ALSA: mips: let SND_SGI_O2 select SND_PCM
  ALSA: hda - Fix audio crackles on Dell Latitude E7x40
  ALSA: hda - adding a DAC/pin preference map for a HP Envy TS machine

10 years agoMerge branch 'ccf/atmel-fixes-for-4.1' of https://github.com/bbrezillon/linux-at91...
Michael Turquette [Fri, 19 Jun 2015 14:37:14 +0000 (07:37 -0700)]
Merge branch 'ccf/atmel-fixes-for-4.1' of https://github.com/bbrezillon/linux-at91 into clk-fixes

10 years agoclk: at91: fix h32mx prototype inclusion in pmc header
Nicolas Ferre [Thu, 28 May 2015 13:07:21 +0000 (15:07 +0200)]
clk: at91: fix h32mx prototype inclusion in pmc header

Trivial fix that prevents to compile this pmc clock driver if h32mx clock is
present but smd clock isn't.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: bcc5fd49a0fd ("clk: at91: add a driver for the h32mx clock")
Cc: <stable@vger.kernel.org> # 3.18+
10 years agoclk: at91: trivial: typo in peripheral clock description
Nicolas Ferre [Wed, 17 Jun 2015 13:22:51 +0000 (15:22 +0200)]
clk: at91: trivial: typo in peripheral clock description

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
10 years agoclk: at91: fix PERIPHERAL_MAX_SHIFT definition
Boris Brezillon [Thu, 28 May 2015 12:01:08 +0000 (14:01 +0200)]
clk: at91: fix PERIPHERAL_MAX_SHIFT definition

Fix the PERIPHERAL_MAX_SHIFT definition (3 instead of 4) and adapt the
round_rate and set_rate logic accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: "Wu, Songjun" <Songjun.Wu@atmel.com>
10 years agoclk: at91: pll: fix input range validity check
Boris Brezillon [Fri, 27 Mar 2015 22:53:15 +0000 (23:53 +0100)]
clk: at91: pll: fix input range validity check

The PLL impose a certain input range to work correctly, but it appears that
this input range does not apply on the input clock (or parent clock) but
on the input clock after it has passed the PLL divisor.
Fix the implementation accordingly.

Cc: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Jonas Andersson <jonas@microbit.se>
10 years agoMerge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
Linus Torvalds [Fri, 19 Jun 2015 03:02:27 +0000 (17:02 -1000)]
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux

Pull i2c documentation fix from Wolfram Sang:
 "Here is a small documentation fix for I2C.

  We already had a user who unsuccessfully tried to get the new slave
  framework running with the currently broken example.  So, before this
  happens again, I'd like to have this how-to-use section fixed for 4.1
  already.  So that no more hacking time is wasted"

* 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
  i2c: slave: fix the example how to instantiate from userspace

10 years agorevert "cpumask: don't perform while loop in cpumask_next_and()"
Andrew Morton [Thu, 18 Jun 2015 18:01:11 +0000 (11:01 -0700)]
revert "cpumask: don't perform while loop in cpumask_next_and()"

Revert commit 534b483a86e6 ("cpumask: don't perform while loop in
cpumask_next_and()").

This was a minor optimization, but it puts a `struct cpumask' on the
stack, which consumes too much stack space.

Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reported-by: Peter Zijlstra <peterz@infradead.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
10 years agoMerge tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel...
Dave Airlie [Fri, 19 Jun 2015 01:58:39 +0000 (11:58 +1000)]
Merge tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel into drm-fixes

one fix, one revert
* tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel:
  Revert "drm/i915: Don't skip request retirement if the active list is empty"
  drm/i915: Always reset vma->ggtt_view.pages cache on unbinding

10 years agoMerge branch 'drm-fixes-4.1' of git://people.freedesktop.org/~deathsimple/linux into...
Dave Airlie [Fri, 19 Jun 2015 01:55:29 +0000 (11:55 +1000)]
Merge branch 'drm-fixes-4.1' of git://people.freedesktop.org/~deathsimple/linux into drm-fixes

two radeon fixes
one MST fix,
one query addition, destined for stable, and to fix a regression
* 'drm-fixes-4.1' of git://people.freedesktop.org/~deathsimple/linux:
  drm/radeon: don't probe MST on hw we don't support it on
  drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query

10 years agodrm/radeon: don't probe MST on hw we don't support it on
Dave Airlie [Thu, 18 Jun 2015 04:29:18 +0000 (14:29 +1000)]
drm/radeon: don't probe MST on hw we don't support it on

If you do radeon.mst=1 on a gpu without mst hw, and then
plug some mst hw it will oops instead of falling back.

So check we have DCE5 at least before proceeding.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
10 years agodrm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query
Michel Dänzer [Tue, 16 Jun 2015 08:28:16 +0000 (17:28 +0900)]
drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query

This tells userspace that it's safe to use the RADEON_VA_UNMAP operation
of the DRM_RADEON_GEM_VA ioctl.

Cc: stable@vger.kernel.org
(NOTE: Backporting this commit requires at least backports of commits
26d4d129b6042197b4cbc8341c0618f99231af2f,
48afbd70ac7b6aa62e8d452091023941d8085f8a and
c29c0876ec05d51a93508a39b90b92c29ba6423d as well, otherwise using
RADEON_VA_UNMAP runs into trouble)

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
10 years agoMerge tag 'trace-fix-filter-4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Thu, 18 Jun 2015 06:56:57 +0000 (20:56 -1000)]
Merge tag 'trace-fix-filter-4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing filter fix from Steven Rostedt:
 "Vince Weaver reported a warning when he added perf event filters into
  his fuzzer tests.  There's a missing check of balanced operations when
  parenthesis are used, and this triggers a WARN_ON() and when reading
  the failure, the filter reports no failure occurred.

  The operands were not being checked if they match, this adds that"

* tag 'trace-fix-filter-4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  tracing: Have filter check for balanced ops

10 years agoMerge git://git.kernel.org/pub/scm/virt/kvm/kvm
Linus Torvalds [Thu, 18 Jun 2015 06:54:47 +0000 (20:54 -1000)]
Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull kvm bugfix from Marcelo Tosatti:
 "Rrestore APIC migration functionality"

* git://git.kernel.org/pub/scm/virt/kvm/kvm:
  KVM: x86: fix lapic.timer_mode on restore

10 years agoKconfig: disable Media Controller for DVB
Mauro Carvalho Chehab [Tue, 16 Jun 2015 09:26:59 +0000 (06:26 -0300)]
Kconfig: disable Media Controller for DVB

Since when we start discussions about the usage Media Controller for
complex hardware, one thing become clear: the way it is, MC fails to
map anything different than capture/output/m2m video-only streaming.

The point is that MC has entities named as devnodes, but the only
devnode used (before the DVB patches) is MEDIA_ENT_T_DEVNODE_V4L.
Due to the way MC got implemented, however, this entity actually
doesn't represent the devnode, but the hardware I/O engine that
receives data via DMA.

By coincidence, such DMA is associated with the V4L device node
on webcam hardware, but this is not true even for other V4L2
devices. For example, on USB hardware, the DMA is done via the
USB controller. The data passes though a in-kernel filter that
strips off the URB headers. Other V4L2 devices like radio may not
even have DMA. When it have, the DMA is done via ALSA, and not
via the V4L devnode.

In other words, MC is broken as a whole, but tagging it as BROKEN
right now would do more harm than good.

So, instead, let's mark, for now, the DVB part as broken and
block all new changes to MC while we fix this mess, whith
we hopefully will do for the next Kernel version.

Requested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
10 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Linus Torvalds [Thu, 18 Jun 2015 06:49:26 +0000 (20:49 -1000)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fixes from Herbert Xu:
 "This fixes the following issues:

   - Crash in caam hash due to uninitialised buffer lengths.

   - Alignment issue in caam RNG that may lead to non-random output"

* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  crypto: caam - fix RNG buffer cache alignment
  crypto: caam - improve initalization for context state saves

10 years agomm: shmem_zero_setup skip security check and lockdep conflict with XFS
Hugh Dickins [Sun, 14 Jun 2015 16:48:09 +0000 (09:48 -0700)]
mm: shmem_zero_setup skip security check and lockdep conflict with XFS

It appears that, at some point last year, XFS made directory handling
changes which bring it into lockdep conflict with shmem_zero_setup():
it is surprising that mmap() can clone an inode while holding mmap_sem,
but that has been so for many years.

Since those few lockdep traces that I've seen all implicated selinux,
I'm hoping that we can use the __shmem_file_setup(,,,S_PRIVATE) which
v3.13's commit c7277090927a ("security: shmem: implement kernel private
shmem inodes") introduced to avoid LSM checks on kernel-internal inodes:
the mmap("/dev/zero") cloned inode is indeed a kernel-internal detail.

This also covers the !CONFIG_SHMEM use of ramfs to support /dev/zero
(and MAP_SHARED|MAP_ANONYMOUS).  I thought there were also drivers
which cloned inode in mmap(), but if so, I cannot locate them now.

Reported-and-tested-by: Prarit Bhargava <prarit@redhat.com>
Reported-and-tested-by: Daniel Wagner <wagi@monom.org>
Reported-and-tested-by: Morten Stevens <mstevens@fedoraproject.org>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
10 years agoi2c: slave: fix the example how to instantiate from userspace
Wolfram Sang [Mon, 15 Jun 2015 17:51:46 +0000 (19:51 +0200)]
i2c: slave: fix the example how to instantiate from userspace

I copied the wrong shell code into the documentation. Sorry to all who
tried to get sense out of this current example :/ Slight rewording while
we are here.

Reported-by: Tim Bakker <bakkert@mymail.vcu.edu>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
10 years agotracing: Have filter check for balanced ops
Steven Rostedt [Mon, 15 Jun 2015 21:50:25 +0000 (17:50 -0400)]
tracing: Have filter check for balanced ops

When the following filter is used it causes a warning to trigger:

 # cd /sys/kernel/debug/tracing
 # echo "((dev==1)blocks==2)" > events/ext4/ext4_truncate_exit/filter
-bash: echo: write error: Invalid argument
 # cat events/ext4/ext4_truncate_exit/filter
((dev==1)blocks==2)
^
parse_error: No error

 ------------[ cut here ]------------
 WARNING: CPU: 2 PID: 1223 at kernel/trace/trace_events_filter.c:1640 replace_preds+0x3c5/0x990()
 Modules linked in: bnep lockd grace bluetooth  ...
 CPU: 3 PID: 1223 Comm: bash Tainted: G        W       4.1.0-rc3-test+ #450
 Hardware name: Hewlett-Packard HP Compaq Pro 6300 SFF/339A, BIOS K01 v02.05 05/07/2012
  0000000000000668 ffff8800c106bc98 ffffffff816ed4f9 ffff88011ead0cf0
  0000000000000000 ffff8800c106bcd8 ffffffff8107fb07 ffffffff8136b46c
  ffff8800c7d81d48 ffff8800d4c2bc00 ffff8800d4d4f920 00000000ffffffea
 Call Trace:
  [<ffffffff816ed4f9>] dump_stack+0x4c/0x6e
  [<ffffffff8107fb07>] warn_slowpath_common+0x97/0xe0
  [<ffffffff8136b46c>] ? _kstrtoull+0x2c/0x80
  [<ffffffff8107fb6a>] warn_slowpath_null+0x1a/0x20
  [<ffffffff81159065>] replace_preds+0x3c5/0x990
  [<ffffffff811596b2>] create_filter+0x82/0xb0
  [<ffffffff81159944>] apply_event_filter+0xd4/0x180
  [<ffffffff81152bbf>] event_filter_write+0x8f/0x120
  [<ffffffff811db2a8>] __vfs_write+0x28/0xe0
  [<ffffffff811dda43>] ? __sb_start_write+0x53/0xf0
  [<ffffffff812e51e0>] ? security_file_permission+0x30/0xc0
  [<ffffffff811dc408>] vfs_write+0xb8/0x1b0
  [<ffffffff811dc72f>] SyS_write+0x4f/0xb0
  [<ffffffff816f5217>] system_call_fastpath+0x12/0x6a
 ---[ end trace e11028bd95818dcd ]---

Worse yet, reading the error message (the filter again) it says that
there was no error, when there clearly was. The issue is that the
code that checks the input does not check for balanced ops. That is,
having an op between a closed parenthesis and the next token.

This would only cause a warning, and fail out before doing any real
harm, but it should still not caues a warning, and the error reported
should work:

 # cd /sys/kernel/debug/tracing
 # echo "((dev==1)blocks==2)" > events/ext4/ext4_truncate_exit/filter
-bash: echo: write error: Invalid argument
 # cat events/ext4/ext4_truncate_exit/filter
((dev==1)blocks==2)
^
parse_error: Meaningless filter expression

And give no kernel warning.

Link: http://lkml.kernel.org/r/20150615175025.7e809215@gandalf.local.home
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: stable@vger.kernel.org # 2.6.31+
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
10 years agoALSA: hda - Fix unused label skip_i915
Takashi Iwai [Tue, 16 Jun 2015 10:23:36 +0000 (12:23 +0200)]
ALSA: hda - Fix unused label skip_i915

When CONFIG_SND_HDA_I915=n, we get a compile warning:
  sound/pci/hda/hda_intel.c: In function ‘azx_probe_continue’:
  sound/pci/hda/hda_intel.c:1882:2: warning: label ‘skip_i915’ defined but not used [-Wunused-label]

Fix it by putting again ifdef to it.  Sigh.

Fixes: bf06848bdbe5 ('ALSA: hda - Continue probing even if i915 binding fails')
Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agocrypto: caam - fix RNG buffer cache alignment
Steve Cornelius [Mon, 15 Jun 2015 23:52:59 +0000 (16:52 -0700)]
crypto: caam - fix RNG buffer cache alignment

The hwrng output buffers (2) are cast inside of a a struct (caam_rng_ctx)
allocated in one DMA-tagged region. While the kernel's heap allocator
should place the overall struct on a cacheline aligned boundary, the 2
buffers contained within may not necessarily align. Consenquently, the ends
of unaligned buffers may not fully flush, and if so, stale data will be left
behind, resulting in small repeating patterns.

This fix aligns the buffers inside the struct.

Note that not all of the data inside caam_rng_ctx necessarily needs to be
DMA-tagged, only the buffers themselves require this. However, a fix would
incur the expense of error-handling bloat in the case of allocation failure.

Cc: stable@vger.kernel.org
Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
10 years agocrypto: caam - improve initalization for context state saves
Steve Cornelius [Mon, 15 Jun 2015 23:52:56 +0000 (16:52 -0700)]
crypto: caam - improve initalization for context state saves

Multiple function in asynchronous hashing use a saved-state block,
a.k.a. struct caam_hash_state, which holds a stash of information
between requests (init/update/final). Certain values in this state
block are loaded for processing using an inline-if, and when this
is done, the potential for uninitialized data can pose conflicts.
Therefore, this patch improves initialization of state data to
prevent false assignments using uninitialized data in the state block.

This patch addresses the following traceback, originating in
ahash_final_ctx(), although a problem like this could certainly
exhibit other symptoms:

kernel BUG at arch/arm/mm/dma-mapping.c:465!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 80004000
[00000000] *pgd=00000000
Internal error: Oops: 805 [#1] PREEMPT SMP
Modules linked in:
CPU: 0    Not tainted  (3.0.15-01752-gdd441b9-dirty #40)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<80043240>]    lr : [<8004323c>]    psr: 60000013
sp : e423fd98  ip : 60000013  fp : 0000001c
r10: e4191b84  r9 : 00000020  r8 : 00000009
r7 : 88005038  r6 : 00000001  r5 : 2d676572  r4 : e4191a60
r3 : 00000000  r2 : 00000001  r1 : 60000093  r0 : 00000033
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c53c7d  Table: 1000404a  DAC: 00000015
Process cryptomgr_test (pid: 1306, stack limit = 0xe423e2f0)
Stack: (0xe423fd98 to 0xe4240000)
fd80:                                                       11807fd1 80048544
fda0: 88005000 e4191a00 e5178040 8039dda0 00000000 00000014 2d676572 e4191008
fdc0: 88005018 e4191a60 00100100 e4191a00 00000000 8039ce0c e423fea8 00000007
fde0: e4191a00 e4227000 e5178000 8039ce18 e419183c 80203808 80a94a44 00000006
fe00: 00000000 80207180 00000000 00000006 e423ff08 00000000 00000007 e5178000
fe20: e41918a4 80a949b4 8c4844e2 00000000 00000049 74227000 8c4844e2 00000e90
fe40: 0000000e 74227e90 ffff8c58 80ac29e0 e423fed4 8006a350 8c81625c e423ff5c
fe60: 00008576 e4002500 00000003 00030010 e4002500 00000003 e5180000 e4002500
fe80: e5178000 800e6d24 007fffff 00000000 00000010 e4001280 e4002500 60000013
fea0: 000000d0 804df078 00000000 00000000 00000000 00000000 00000000 00000000
fec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
fee0: 00000000 00000000 e4227000 e4226000 e4753000 e4752000 e40a5000 e40a4000
ff00: e41e7000 e41e6000 00000000 00000000 00000000 e423ff14 e423ff14 00000000
ff20: 00000400 804f9080 e5178000 e4db0b40 00000000 e4db0b80 0000047c 00000400
ff40: 00000000 8020758c 00000400 ffffffff 0000008a 00000000 e4db0b40 80206e00
ff60: e4049dbc 00000000 00000000 00000003 e423ffa4 80062978 e41a8bfc 00000000
ff80: 00000000 e4049db4 00000013 e4049db0 00000013 00000000 00000000 00000000
ffa0: e4db0b40 e4db0b40 80204cbc 00000013 00000000 00000000 00000000 80204cfc
ffc0: e4049da0 80089544 80040a40 00000000 e4db0b40 00000000 00000000 00000000
ffe0: e423ffe0 e423ffe0 e4049da0 800894c4 80040a40 80040a40 00000000 00000000
[<80043240>] (__bug+0x1c/0x28) from [<80048544>] (___dma_single_dev_to_cpu+0x84)
[<80048544>] (___dma_single_dev_to_cpu+0x84/0x94) from [<8039dda0>] (ahash_fina)
[<8039dda0>] (ahash_final_ctx+0x180/0x428) from [<8039ce18>] (ahash_final+0xc/0)
[<8039ce18>] (ahash_final+0xc/0x10) from [<80203808>] (crypto_ahash_op+0x28/0xc)
[<80203808>] (crypto_ahash_op+0x28/0xc0) from [<80207180>] (test_hash+0x214/0x5)
[<80207180>] (test_hash+0x214/0x5b8) from [<8020758c>] (alg_test_hash+0x68/0x8c)
[<8020758c>] (alg_test_hash+0x68/0x8c) from [<80206e00>] (alg_test+0x7c/0x1b8)
[<80206e00>] (alg_test+0x7c/0x1b8) from [<80204cfc>] (cryptomgr_test+0x40/0x48)
[<80204cfc>] (cryptomgr_test+0x40/0x48) from [<80089544>] (kthread+0x80/0x88)
[<80089544>] (kthread+0x80/0x88) from [<80040a40>] (kernel_thread_exit+0x0/0x8)
Code: e59f0010 e1a01003 eb126a8d e3a03000 (e5833000)
---[ end trace d52a403a1d1eaa86 ]---

Cc: stable@vger.kernel.org
Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
10 years agoKVM: x86: fix lapic.timer_mode on restore
Radim Krčmář [Fri, 5 Jun 2015 18:57:41 +0000 (20:57 +0200)]
KVM: x86: fix lapic.timer_mode on restore

lapic.timer_mode was not properly initialized after migration, which
broke few useful things, like login, by making every sleep eternal.

Fix this by calling apic_update_lvtt in kvm_apic_post_state_restore.

There are other slowpaths that update lvtt, so this patch makes sure
something similar doesn't happen again by calling apic_update_lvtt
after every modification.

Cc: stable@vger.kernel.org
Fixes: f30ebc312ca9 ("KVM: x86: optimize some accesses to LVTT and SPIV")
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
10 years agodrm/mgag200: Reject non-character-cell-aligned mode widths
Adam Jackson [Mon, 15 Jun 2015 20:16:15 +0000 (16:16 -0400)]
drm/mgag200: Reject non-character-cell-aligned mode widths

Turns out 1366x768 does not in fact work on this hardware.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
10 years agoALSA: hda - Fix noisy outputs on Dell XPS13 (2015 model)
Takashi Iwai [Mon, 15 Jun 2015 18:36:12 +0000 (20:36 +0200)]
ALSA: hda - Fix noisy outputs on Dell XPS13 (2015 model)

The new Dell XPS13 also requires the similar quirk for fixing the
noisy outputs.  (But, as the codec was changed, now the fixup for
Latitude is used instead.)

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=99851
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoRevert "drm/i915: Don't skip request retirement if the active list is empty"
Jani Nikula [Mon, 15 Jun 2015 09:59:37 +0000 (12:59 +0300)]
Revert "drm/i915: Don't skip request retirement if the active list is empty"

This reverts commit 0aedb1626566efd72b369c01992ee7413c82a0c5.

I messed things up while applying [1] to drm-intel-fixes. Rectify.

[1] http://mid.gmane.org/1432827156-9605-1-git-send-email-ville.syrjala@linux.intel.com

Fixes: 0aedb1626566 ("drm/i915: Don't skip request retirement if the active list is empty")
Cc: stable@vger.kernel.org
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
10 years agoALSA: mips: let SND_SGI_O2 select SND_PCM
Nicholas Mc Guire [Sun, 14 Jun 2015 17:16:59 +0000 (19:16 +0200)]
ALSA: mips: let SND_SGI_O2 select SND_PCM

Fix the missing dependency on PCM stuff.

[Add the same fix for HAL2, too -- tiwai]

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix audio crackles on Dell Latitude E7x40
Takashi Iwai [Mon, 15 Jun 2015 09:59:32 +0000 (11:59 +0200)]
ALSA: hda - Fix audio crackles on Dell Latitude E7x40

We still got a report that the audio crackles and noises occur with
the recent 4.1 kernels on Dell machines.  These machines seem to need
similar workarounds that have been applied to the recent Dell XPS 13
models.  Since the codec of these machines (Dell Latitute E7240 and
E7440) is different from XPS 13's one, we need a new fixup entry.

Also, it was confirmed that the previous workaround to disable the
widget power-save (commit [219f47e4f964: ALSA: hda - Disable widget
power-saving for ALC292 & co]) is no longer needed after this fix.
So, this patch includes the partial revert of the commit, too.

Reported-and-tested-by: Mihai Donțu <mihai.dontu@gmail.com>
Tested-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - adding a DAC/pin preference map for a HP Envy TS machine
Hui Wang [Mon, 15 Jun 2015 09:43:39 +0000 (17:43 +0800)]
ALSA: hda - adding a DAC/pin preference map for a HP Envy TS machine

On a HP Envy TouchSmart laptop, there are 2 speakers (main speaker
and subwoofer speaker), 1 headphone and 2 DACs, without this fixup,
the headphone will be assigned to a DAC and the 2 speakers will be
assigned to another DAC, this assignment makes the surround-2.1
channels invalid.

To fix it, here using a DAC/pin preference map to bind the main
speaker to 1 DAC and the subwoofer speaker will be assigned to another
DAC.

Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agodrm/i915: Always reset vma->ggtt_view.pages cache on unbinding
Chris Wilson [Thu, 11 Jun 2015 07:06:08 +0000 (08:06 +0100)]
drm/i915: Always reset vma->ggtt_view.pages cache on unbinding

With the introduction of multiple views of an obj in the same vm, each
vma was taught to cache its copy of the pages (so that different views
could have different page arrangements). However, this missed decoupling
those vma->ggtt_view.pages when the vma released its reference on the
obj->pages. As we don't always free the vma, this leads to a possible
scenario (e.g. execbuffer interrupted by the shrinker) where the vma
points to a stale obj->pages, and explodes.

Fixes regression from commit fe14d5f4e5468c5b80a24f1a64abcbe116143670
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Wed Dec 10 17:27:58 2014 +0000

    drm/i915: Infrastructure for supporting different GGTT views per object

Tvrtko says, if someone else will be confused how this can happen, key
is the reservation execbuffer path. That puts the VMA on the exec_list
which prevents i915_vma_unbind and i915_gem_vma_destroy from fully
destroying the VMA. So the VMA is left existing as an empty object in
the list - unbound and disassociated with the backing store. Kind of a
cached memory object. And then re-using it needs to clear the cached
pages pointer which is fixed above.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1227892
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
[Jani: Added Tvrtko's explanation to commit message.]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>