- 29 Feb, 2016 40 commits
-
-
Shannon Nelson authored
BugLink: http://bugs.launchpad.net/bugs/1536474 There's no need to kill the thread and eventually the kernel in this case. In fact, the remainder of the code won't hurt anything anyway, so just complain that we're here and move along. Prompted by a recent Linus diatribe. Change-ID: Iec020d8bcfedffc1cd2553cc6905fd915bb3e670 Signed-off-by:
Shannon Nelson <shannon.nelson@intel.com> Tested-by:
Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com> (cherry picked from commit b875f99b) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Shannon Nelson authored
BugLink: http://bugs.launchpad.net/bugs/1536474 Code was moved into a separate function some time ago. Change-ID: Icabbe71ce05cf5d716d3e1152cdd9cd41d11bcb5 Signed-off-by:
Shannon Nelson <shannon.nelson@intel.com> Tested-by:
Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com> (cherry picked from commit 9c883bd3) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Rasmus Villemoes authored
BugLink: http://bugs.launchpad.net/bugs/1536474 This code is pretty confused. The variable name 'bytes_not_copied' clearly indicates that the programmer knew the semantics of copy_{to,from}_user, but then the return value is checked for being negative and used as a -Exxx return value. I'm not sure this is the proper fix, but at least we get rid of the dead code which pretended to check for access faults. Signed-off-by:
Rasmus Villemoes <linux@rasmusvillemoes.dk> Acked-by:
Shannon Nelson <shannon.nelson@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com> (cherry picked from commit 0286c67e) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Jesse Brandeburg authored
BugLink: http://bugs.launchpad.net/bugs/1536474 Compiler complained of an unused variable, which the driver was just using to store the result of a rd32 which is used to clear a register unconditionally. Just drop the unused variable and re-use one. Signed-off-by:
Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by:
Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com> (cherry picked from commit cfbe4dba) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1536719Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Colin Ian King authored
UBUNTU: SAUCE: ACPI / tables: Add acpi_force_32bit_fadt_addr option to force 32 bit FADT addresses (LP: #1529381) BugLink: https://bugs.launchpad.net/bugs/1529381 Some HP laptops seem to have invalid 64 bit FADT X_PM* addresses which are causing various boot issues. In these cases, it would be useful to force ACPI to use the valid legacy 32 bit equivalent PM addresses. Add a acpi_force_32bit_fadt_addr to set the ACPICA acpi_gbl_use32_bit_fadt_addresses to TRUE to force this override. Signed-off-by:
Colin Ian King <colin.king@canonical.com> Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Ignore: yes Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1517142 This reverts commit 659743b0. Signed-off-by:
Tim Gardner <tim.gardner@canonical.com> Conflicts: drivers/scsi/bnx2i/bnx2i_iscsi.c drivers/scsi/iscsi_tcp.c drivers/scsi/libiscsi.c
-
Tim Gardner authored
Ignore: yes Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 Move __raw_rm_writeq() from platforms/powernv/pci-ioda.c to include/asm/io.h so that it can be used by other code. Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit a84bf321) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 This commit removed the pcidev field from struct pci_dn as it was no longer in use by the kernel. However to support finding the association of Nvlink devices to GPU devices from the device-tree this field is required. This reverts commit 250c7b27 ("powerpc/pci: Remove unused struct pci_dn.pcidev field"). Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit 94973b24) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Ignore: yes Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Andy Whitcroft authored
We wish to use the arm64 buildds to build armhf binaries in 32bit chroots. To make this work we need uname to return armv7l machine type. To achieve this add a kernel command line override for the 32bit machine type. Add compat_uts_machine=<type> to allow the LINUX32 personality to return that type for uname. Signed-off-by:
Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by:
Andy Whitcroft <apw@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1533382Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 P8+ hardware reports all errors on PE#0. This patch ensures PE#0 is not assigned to NPU devices so that it can be used for EEH. Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit 08f48f32) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 The P8+ hardware supports four partitionable endpoints (PEs) however the hardware reports all errors as occurring on PE#0. This means we need to reserve this PE for error handling (EEH) and not assign it to a NPU device, implying that some devices will need to share PEs. This patch changes the PE assignment for NPU devices such that NPU devices which connect to the same GPU are assigned to the same PE#. Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit b521549a) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 The emulated NVLink PCI devices share the same IODA2 TCE tables but only support a single TVT (instead of the normal two for PCI devices). This requires the kernel to manually replace windows with either the bypass or non-bypass window depending on what the driver has requested. Unfortunately an incorrect optimisation was made in pnv_pci_ioda_dma_set_mask() which caused updating of some NPU device PEs to be skipped in certain configurations due to an incorrect assumption that a NULL peer PE in the array indicated there were no more peers present. This patch fixes the problem by ensuring all peer PEs are updated. Fixes: 5d2aa710 ("powerpc/powernv: Add support for Nvlink NPUs") Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit 419dbd5e) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Ignore: yes Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Alistair Popple authored
BugLink: http://bugs.launchpad.net/bugs/1522415 NVLink is a high speed interconnect that is used in conjunction with a PCI-E connection to create an interface between CPU and GPU that provides very high data bandwidth. A PCI-E connection to a GPU is used as the control path to initiate and report status of large data transfers sent via the NVLink. On IBM Power systems the NVLink processing unit (NPU) is similar to the existing PHB3. This patch adds support for a new NPU PHB type. DMA operations on the NPU are not supported as this patch sets the TCE translation tables to be the same as the related GPU PCIe device for each NVLink. Therefore all DMA operations are setup and controlled via the PCIe device. EEH is not presently supported for the NPU devices, although it may be added in future. Signed-off-by:
Alistair Popple <alistair@popple.id.au> Signed-off-by:
Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commit 5d2aa710) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1532886Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1514711Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Thomas Falcon authored
BugLink: http://bugs.launchpad.net/bugs/1532303 This is a new device driver for a high performance SR-IOV assisted virtual network for IBM System p and IBM System i systems. The SR-IOV VF will be attached to the VIOS partition and mapped to the Linux client via the hypervisor's VNIC protocol that this driver implements. This driver is able to perform basic tx and rx, new features and improvements will be added as they are being developed and tested. Signed-off-by:
Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by:
John Allen <jallen@linux.vnet.ibm.com> Signed-off-by:
David S. Miller <davem@davemloft.net> (cherry picked from commit 032c5e82) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Jim Snow authored
BugLink: http://bugs.launchpad.net/bugs/1519631 Knights Landing is the next generation architecture for HPC market. KNL introduces concept of a tile and CHA - Cache/Home Agent for memory accesses. Some things are fixed in KNL: () There's single DIMM slot per channel () There's 2 memory controllers with 3 channels each, however, from EDAC standpoint, it is presented as single memory controller with 6 channels. In order to represent 2 MCs w/ 3 CH, it would require major redesign of EDAC core driver. Basically, two functionalities are added/extended: () during driver initialization KNL topology is being recognized, i.e. which channels are populated with what DIMM sizes (knl_get_dimm_capacity function) () handle MCE errors - channel swizzling Reviewed-by:
Tony Luck <tony.luck@intel.com> Signed-off-by:
Jim Snow <jim.m.snow@intel.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: lukasz.anaczkowski@intel.com Link: http://lkml.kernel.org/r/1449136134-23706-5-git-send-email-hubert.chrzaniuk@intel.com [ Rebase to 4.4-rc3. ] Signed-off-by:
Hubert Chrzaniuk <hubert.chrzaniuk@intel.com> Signed-off-by:
Borislav Petkov <bp@suse.de> (cherry picked from commit d0cdf900) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Jim Snow authored
BugLink: http://bugs.launchpad.net/bugs/1519631 Add options to sbridge_get_all_devices() to allow for duplicate device IDs and devices that are scattered across mulitple PCI buses. Signed-off-by:
Jim Snow <jim.m.snow@intel.com> Acked-by:
Tony Luck <tony.luck@intel.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: lukasz.anaczkowski@intel.com Link: http://lkml.kernel.org/r/1449136134-23706-4-git-send-email-hubert.chrzaniuk@intel.com [ Rebase to 4.4-rc3. ] Signed-off-by:
Hubert Chrzaniuk <hubert.chrzaniuk@intel.com> Signed-off-by:
Borislav Petkov <bp@suse.de> (cherry picked from commit c1979ba2) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Jim Snow authored
BugLink: http://bugs.launchpad.net/bugs/1519631 SAD limit, interleave mode and DRAM related functionalities are now virtualized, so that overriding them is easier. Signed-off-by:
Jim Snow <jim.m.snow@intel.com> Acked-by:
Tony Luck <tony.luck@intel.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: lukasz.anaczkowski@intel.com Link: http://lkml.kernel.org/r/1449136134-23706-3-git-send-email-hubert.chrzaniuk@intel.com [ Rebase to 4.4-rc3. ] Signed-off-by:
Hubert Chrzaniuk <hubert.chrzaniuk@intel.com> Signed-off-by:
Borislav Petkov <bp@suse.de> (cherry picked from commit c59f9c06) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Jim Snow authored
BugLink: http://bugs.launchpad.net/bugs/1519631 Make EDAC aware of DDR4/RDDR4 mem types. Signed-off-by:
Jim Snow <jim.m.snow@intel.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: lukasz.anaczkowski@intel.com Link: http://lkml.kernel.org/r/1449136134-23706-2-git-send-email-hubert.chrzaniuk@intel.com [ Rebase to 4.4-rc3. ] Signed-off-by:
Hubert Chrzaniuk <hubert.chrzaniuk@intel.com> Signed-off-by:
Borislav Petkov <bp@suse.de> (cherry picked from commit 255379ae) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Kan Liang authored
BugLink: http://bugs.launchpad.net/bugs/1524574 The uncore subsystem for Broadwell-EP is similar to Haswell-EP. There are some differences in pci device IDs, box number and constraints. This patch extends the Broadwell-DE codes to support Broadwell-EP. Signed-off-by:
Kan Liang <kan.liang@intel.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vince Weaver <vincent.weaver@maine.edu> Link: http://lkml.kernel.org/r/1449176411-9499-1-git-send-email-kan.liang@intel.comSigned-off-by:
Ingo Molnar <mingo@kernel.org> (cherry picked from commit d6980ef3) Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
This reverts commit dc2781ca67ef072fff4494c4ca50acf901887cfb. Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
-
Eric Dumazet authored
BugLink: http://bugs.launchpad.net/bugs/1527902 Backport of this upstream commit into stable kernels : 89c22d8c ("net: Fix skb csum races when peeking") exposed a bug in udp stack vs MSG_PEEK support, when user provides a buffer smaller than skb payload. In this case, skb_copy_and_csum_datagram_iovec(skb, sizeof(struct udphdr), msg->msg_iov); returns -EFAULT. This bug does not happen in upstream kernels since Al Viro did a great job to replace this into : skb_copy_and_csum_datagram_msg(skb, sizeof(struct udphdr), msg); This variant is safe vs short buffers. For the time being, instead reverting Herbert Xu patch and add back skb->ip_summed invalid changes, simply store the result of udp_lib_checksum_complete() so that we avoid computing the checksum a second time, and avoid the problematic skb_copy_and_csum_datagram_iovec() call. This patch can be applied on recent kernels as it avoids a double checksumming, then backported to stable kernels as a bug fix. Signed-off-by:
Eric Dumazet <edumazet@google.com> Link: https://patchwork.ozlabs.org/patch/561746/Signed-off-by:
Kamal Mostafa <kamal@canonical.com>
-