Re: [PATCH 0/4] Add support for muxing individual pins

2017-12-08 Thread Tony Lindgren
* Charles Keepax [171208 17:19]: > On Fri, Dec 08, 2017 at 08:28:18AM -0800, Tony Lindgren wrote: > > * Charles Keepax [171208 14:31]: > > > From the implementation so far the pinctrl-single stuff appears to > > > target systems where there isn't really a concept of groups. Each > > > pin is just

Re: [PATCH 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-08 Thread Prarit Bhargava
On 12/07/2017 01:43 PM, Timur Tabi wrote: > On Thu, Dec 7, 2017 at 11:29 AM, Prarit Bhargava wrote: >> Other architectures can use SPCR to setup an early console or console but >> the current code is ARM64 specific. >> >> Change the name of parse_spcr() to acpi_parse_spcr(). Add a weak >> funct

Re: [PATCH] tty: New RISC-V SBI console driver

2017-12-08 Thread Palmer Dabbelt
On Thu, 07 Dec 2017 23:37:18 PST (-0800), gre...@linuxfoundation.org wrote: On Thu, Dec 07, 2017 at 04:10:15PM -0800, Palmer Dabbelt wrote: From: Palmer Dabbelt The RISC-V ISA defines a simple console that is availiable via SBI calls on all systems. This patch adds a driver for this console i

Re: pull-request: wireless-drivers 2017-12-08

2017-12-08 Thread David Miller
From: Kalle Valo Date: Fri, 08 Dec 2017 16:32:16 +0200 > this is a pull request to net tree for 4.15, more info in the signed tag > below. All small fixes and not really expecting any problems, but please > let me know if you have any. Pulled, thanks Kalle.

Re: [RFC patch 7/7] timekeeping: Hack to use fine grained timestamps during boot

2017-12-08 Thread Thomas Gleixner
On Fri, 8 Dec 2017, Petr Mladek wrote: > On Tue 2017-11-28 19:47:09, Thomas Gleixner wrote: > > On Tue, 28 Nov 2017, Prarit Bhargava wrote: > > > On 11/23/2017 07:58 AM, Petr Mladek wrote: > > > > On Wed 2017-11-15 19:15:38, Thomas Gleixner wrote: > > > >> For demonstration purposes only. > > > >>

no hwmon entries in sysfs for thermal on raspberry pi 1b

2017-12-08 Thread Alexander Dahl
Hei hei, I have v4.15-rc2 vanilla running on the original Raspberry Pi 1B aka bcm2835 (not rev2, not the 1B+ or plus), compiled with ptxdist / DistroKit, using bcm2835-rpi-b.dts from arch/arm/boot/dts as device tree file. I try to get temperature values from the SoC with lm-sensors (for using it i

Re: [PATCH v7 15/37] tracing: Add variable support to hist triggers

2017-12-08 Thread Tom Zanussi
Hi Namhyung, On Fri, 2017-12-08 at 22:02 +0900, Namhyung Kim wrote: > Hi Tom, > > On Wed, Dec 06, 2017 at 04:37:56PM -0600, Tom Zanussi wrote: > > Add support for saving the value of a current event's event field by > > assigning it to a variable that can be read by a subsequent event. > > > > T

Re: [PATCH v7 19/37] tracing: Generalize per-element hist trigger data

2017-12-08 Thread Tom Zanussi
Hi Namhyung, On Fri, 2017-12-08 at 22:06 +0900, Namhyung Kim wrote: > On Wed, Dec 06, 2017 at 04:38:00PM -0600, Tom Zanussi wrote: > > Up until now, hist triggers only needed per-element support for saving > > 'comm' data, which was saved directly as a private data pointer. > > > > In anticipatio

Re: [PATCH v5 0/6] enable creating [k,u]probe with perf_event_open

2017-12-08 Thread Daniel Borkmann
On 12/06/2017 11:45 PM, Song Liu wrote: > Changes PATCH v4 to PATCH v5: > Remove PERF_PROBE_CONFIG_IS_RETPROBE from uapi, use PMU_FORMAT_ATTR > instead. > > Changes PATCH v3 to PATCH v4: > Remove uapi define MAX_PROBE_FUNC_NAME_LEN, use KSYM_NAME_LEN instead. > Add flag PERF_PROBE_CONFIG_I

[RFC PTI 0/3] Clean up pgd handling and fix VSYSCALL and LDT

2017-12-08 Thread Andy Lutomirski
This needs more testing, but here goes. Andy Lutomirski (3): x86/pti: Vastly simplify pgd synchronization Revert "x86/mm/pti: Disable native VSYSCALL" x86/pti: Put the LDT in its own PGD if PTI is on Documentation/x86/x86_64/mm.txt | 11 ++- arch/x86/Kconfig

[RFC PTI 3/3] x86/pti: Put the LDT in its own PGD if PTI is on

2017-12-08 Thread Andy Lutomirski
With PTI on, we need the LDT to be in the usermode tables somewhere, and the LDT is per-mm. tglx had a hack to have a per-cpu LDT and context switch it, but it was probably insanely slow due to the required TLB flushes. Instead, take advantage of the fact that we have an address space hole that g

[RFC PTI 1/3] x86/pti: Vastly simplify pgd synchronization

2017-12-08 Thread Andy Lutomirski
Back when we would dynamically add mappings to the usermode tables, we needed to preallocate all the high top-level entries in the usermode tables. We don't need this in recent versions of PTI, so get rid of preallocation. With preallocation gone, the comments in pti_set_user_pgd() make even less

[RFC PTI 2/3] Revert "x86/mm/pti: Disable native VSYSCALL"

2017-12-08 Thread Andy Lutomirski
This reverts commit 6a7b4041b853ecc653e2c1dda5b736ab5fd29357. With the PGD-propagation logic simplified, there's no need for this. --- arch/x86/Kconfig | 8 1 file changed, 8 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 411838058194..babb1e53b0a6 100644 --- a/arch

x86/ldt: Prevent ldt inheritance on exec

2017-12-08 Thread Thomas Gleixner
From: Thomas Gleixner The LDT is inheritet independent of fork or exec, but that makes no sense at all because exec is supposed to start the process clean. The reason why this happens is that init_new_context_ldt() is called from init_new_context() which obviously needs to be called for both for

Re: [PATCH] serial: max310x: Delete an error message for a failed memory allocation in max310x_probe()

2017-12-08 Thread Jan Kundrát
On pátek 8. prosince 2017 20:00:34 CET, SF Markus Elfring wrote: From: Markus Elfring Date: Fri, 8 Dec 2017 19:53:10 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- driv

Re: [GIT PULL] DeviceTree fixes for 4.15, part 2

2017-12-08 Thread Rob Herring
On Fri, Dec 8, 2017 at 9:07 AM, Rob Herring wrote: > On Fri, Dec 8, 2017 at 8:10 AM, Rob Herring wrote: >> Hi Linus, >> >> Please pull another set of DT fixes. > > Disregard this one. I've just gotten another overlay fix, so I'm going > to add that in. Here's an updated pull request. Rob The f

[GIT] Networking

2017-12-08 Thread David Miller
vhost (2017-12-04 11:32:02 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git for you to fetch changes up to fd29117aeb905aaacdf4ff5afbc7787fa50e16e4: Merge tag 'linux-can-fixes-for-4.15-20171208' of git://git.kernel.or

[RFC PATCH] sched: Improve scalability of select_idle_sibling using SMT balance

2017-12-08 Thread subhra mazumdar
Current select_idle_sibling first tries to find a fully idle core using select_idle_cores which can potentially search all cores and if it fails it finds any idle cpu using select_idle_cpu. select_idle_cpu can potentially search all cpus in the llc domain. These don't scale for large llc domains an

Re: block: oopses on 4.13.*, 4.14.* and 4.15-rc2 (bisected)

2017-12-08 Thread Jens Axboe
On 12/08/2017 08:38 AM, Michele Ballabio wrote: > Hi, > kernels 4.13.*, 4.14.* 4.15-rc2 crash on occasion, especially > on x86-32 systems. To trigger the problem, run as root: > > while true > do > /sbin/udevadm trigger --type=subsystems --action=change > /sbin/udevadm trigge

[PATCH 0/3] tty/serial/max3100: Adjustments for max3100_probe()

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 21:05:43 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation Improve a size determination Improve unlocking of a mutex drivers/tty/se

[PATCH 1/3] serial: max3100: Delete an error message for a failed memory allocation in max3100_probe()

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 20:20:58 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/tty/serial/max3100.c | 2 -- 1 file changed, 2 deletions(-) di

[PATCH 2/3] serial: max3100: Improve a size determination in max3100_probe()

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 20:32:09 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was dete

Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-08 Thread Kees Cook
On Fri, Dec 8, 2017 at 12:33 AM, Michal Hocko wrote: > OK, this doesn't seem to lead to anywhere. The more this is discussed > the more names we are getting. So you know what? I will resubmit and > keep my original name. If somebody really hates it then feel free to > nack the patch and push alter

[PATCH 3/3] serial: max3100: Improve unlocking of a mutex in max3100_probe()

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 20:52:37 +0100 * Add a jump target so that a call of the function "mutex_unlock" is stored only once in this function implementation. * Replace three calls by goto statements. Signed-off-by: Markus Elfring --- drivers/tty/serial/max3100.c | 16

[PATCH] RISC-V: Remove unused CONFIG_HVC_RISCV_SBI code

2017-12-08 Thread Palmer Dabbelt
This is code that probably should never have made it into the kernel in the first place: it depends on a driver that hadn't been reviewed yet. During the HVC_SBI_RISCV review process a better way of doing this was suggested, but that means this code is defunct. It's compile-time disabled in 4.15 b

Re: [RFC PTI 1/3] x86/pti: Vastly simplify pgd synchronization

2017-12-08 Thread Dave Hansen
>From a high level, what finally allowed this to happen? Because kpti_add_user_map() all went away, including the LDT one? > + if (pgdp_maps_userspace(pgdp)) { > /* > + * The user page tables get the full PGD, > + * accessible from userspace: >

Re: [PATCH v3 10/16] iommu: introduce device fault report API

2017-12-08 Thread Jacob Pan
On Thu, 7 Dec 2017 14:27:25 -0700 Alex Williamson wrote: > On Fri, 17 Nov 2017 10:55:08 -0800 > Jacob Pan wrote: > > > Traditionally, device specific faults are detected and handled > > within their own device drivers. When IOMMU is enabled, faults such > > as DMA related transactions are detec

Re: [PATCH V3 1/2] Drivers/PCI: Export pcie_has_flr() interface

2017-12-08 Thread Bjorn Helgaas
On Thu, Dec 07, 2017 at 05:21:44PM -0500, Govinda Tatti wrote: > This patch exports pcie_has_flr() and it is being used by Xen pciback > driver to reset (flr/slot/bus) PCI devices based on 'reset' SysFS > attribute. > > Signed-off-by: Govinda Tatti > --- > v3: -New > > drivers/pci/pci.c | 3 +

Re: [PATCH v8 0/5] Add the ability to do BPF directed error injection

2017-12-08 Thread Josef Bacik
On Fri, Dec 08, 2017 at 04:35:44PM +0100, Daniel Borkmann wrote: > On 12/06/2017 05:12 PM, Josef Bacik wrote: > > Jon noticed that I had a typo in my _ASM_KPROBE_ERROR_INJECT macro. I went > > to > > figure out why the compiler didn't catch it and it's because it was not used > > anywhere. I had

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-08 Thread Bjorn Helgaas
On Thu, Dec 07, 2017 at 03:26:14AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain) needs to make the core skip ->thaw_earl

Re: NFS corruption, fixed by echo 1 > /proc/sys/vm/drop_caches -- next debugging steps?

2017-12-08 Thread Matt Turner
On Fri, Dec 8, 2017 at 5:52 AM, Eric Dumazet wrote: > On Fri, 2017-12-08 at 05:42 -0800, Eric Dumazet wrote: >> On Thu, Dec 7, 2017 at 11:54 PM, Matt Turner >> wrote: >> > On Thu, Dec 7, 2017 at 11:00 PM, Matt Turner >> > wrote: >> > > On Sun, Mar 12, 2017 at 6:43 PM, Matt Turner >> > > wrote:

Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-08 Thread Cyril Hrubis
Hi! > > If we had a time machine, the right set of flags would be: > > > > - MAP_FIXED: don't treat addr as a hint, fail if addr is not free > > - MAP_REPLACE: replace an existing mapping (or force or clobber) > > Actually, if we had a time machine... would we even provide > MAP_REPLACE fun

Re: [PATCH v2 2/5] platform/x86: intel-vbtn: Support separate press/release events

2017-12-08 Thread Stefan Brüns
On Friday, November 10, 2017 3:15:55 AM CET Darren Hart wrote: > On Thu, Nov 09, 2017 at 11:44:33PM +0100, Stefan Brüns wrote: > > Currently all key events use autorelease, but this forbids use as a > > modifier key. > > > > As all event codes come in even/odd pairs, we can lookup the key type > >

Re: [PATCH v3 15/16] iommu: introduce page response function

2017-12-08 Thread Jacob Pan
On Fri, 8 Dec 2017 13:52:00 + Jean-Philippe Brucker wrote: > On 07/12/17 21:51, Alex Williamson wrote: > >> Agree, IOMMU driver cannot enforce it. I think VFIO layer can make > >> sure page response come from the assigned device and its > >> guest/container. > > > > Can we enforce it via t

Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-08 Thread Florian Weimer
On 12/08/2017 03:27 PM, Pavel Machek wrote: On Fri 2017-12-08 22:08:07, Michael Ellerman wrote: If we had a time machine, the right set of flags would be: - MAP_FIXED: don't treat addr as a hint, fail if addr is not free - MAP_REPLACE: replace an existing mapping (or force or clobber)

Re: [RFC PTI 1/3] x86/pti: Vastly simplify pgd synchronization

2017-12-08 Thread Andy Lutomirski
On Fri, Dec 8, 2017 at 12:17 PM, Dave Hansen wrote: > From a high level, what finally allowed this to happen? Because > kpti_add_user_map() all went away, including the LDT one? > Yes, exactly. > >> + if (pgdp_maps_userspace(pgdp)) { >> /* >> + * The user page tab

Re: [RFC PTI 1/3] x86/pti: Vastly simplify pgd synchronization

2017-12-08 Thread Dave Hansen
On 12/08/2017 12:49 PM, Andy Lutomirski wrote: >> if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) && >> (__supported_pte_mask & _PAGE_NX)) > I assume you mean pgd.pgd & (_PAGE_USER|_PAGE_PRESENT) == > (_PAGE_USER|_PAGE_PRESENT)? Yeah.

Re: [PATCH] lib/string: avoid reading beyond src buffer in strscpy

2017-12-08 Thread Kees Cook
On Fri, Dec 8, 2017 at 7:29 AM, Dmitry Vyukov wrote: > On Fri, Dec 8, 2017 at 4:29 PM, Andrey Ryabinin > wrote: >> On 12/07/2017 09:26 PM, Kees Cook wrote: >>> On Thu, Dec 7, 2017 at 3:33 AM, Eryu Guan wrote: strscpy() tries to copy sizeof(unsigned long) bytes a time from src to dest

Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-08 Thread Matthew Wilcox
On Fri, Dec 08, 2017 at 12:13:31PM -0800, Kees Cook wrote: > On Fri, Dec 8, 2017 at 12:33 AM, Michal Hocko wrote: > > OK, this doesn't seem to lead to anywhere. The more this is discussed > > the more names we are getting. So you know what? I will resubmit and > > keep my original name. If somebod

Re: [PATCH v3 10/16] iommu: introduce device fault report API

2017-12-08 Thread Alex Williamson
On Fri, 8 Dec 2017 12:23:58 -0800 Jacob Pan wrote: > On Thu, 7 Dec 2017 14:27:25 -0700 > Alex Williamson wrote: > > > On Fri, 17 Nov 2017 10:55:08 -0800 > > Jacob Pan wrote: > > > > > Traditionally, device specific faults are detected and handled > > > within their own device drivers. When

Re: [kernel-hardening][PATCH] arm: mm: idmap: Mark variables as ro_after_init

2017-12-08 Thread Kees Cook
On Fri, Dec 8, 2017 at 3:13 AM, Jinbum Park wrote: > idmap_pgd, arch_phys_to_idmap_offset are setup once > while init stage, and never changed after that. > so, it is good candidate for __ro_after_init. > > Signed-off-by: Jinbum Park Reviewed-by: Kees Cook Does arm64 have anything like this? J

Re: [PATCH] clk: meson: gxbb: remove IGNORE_UNUSED from mmc clocks

2017-12-08 Thread Jerome Brunet
On Fri, 2017-12-08 at 10:50 -0800, Kevin Hilman wrote: > Jerome Brunet writes: > > > Remove CLK_IGNORE_UNUSED from mmc clocks. This was only needed while the > > mmc driver incorrectly used the xtal as source instead of the mmc > > clock. Now, the driver takes the correct clock, CCF is aware that

Re: no hwmon entries in sysfs for thermal on raspberry pi 1b

2017-12-08 Thread Guenter Roeck
On Fri, Dec 08, 2017 at 08:53:10PM +0100, Alexander Dahl wrote: > Hei hei, > > I have v4.15-rc2 vanilla running on the original Raspberry Pi 1B aka > bcm2835 (not rev2, not the 1B+ or plus), compiled with ptxdist / > DistroKit, using bcm2835-rpi-b.dts from arch/arm/boot/dts as device > tree file.

Re: [PATCH v2] mm: terminate shrink_slab loop if signal is pending

2017-12-08 Thread David Rientjes
On Thu, 7 Dec 2017, Suren Baghdasaryan wrote: > Slab shrinkers can be quite time consuming and when signal > is pending they can delay handling of the signal. If fatal > signal is pending there is no point in shrinking that process > since it will be killed anyway. This change checks for pending >

Re: [PATCH] doc: convert printk-formats.txt to rst

2017-12-08 Thread Kees Cook
On Thu, Dec 7, 2017 at 4:46 PM, Tobin C. Harding wrote: > On Thu, Dec 07, 2017 at 04:19:56PM -0800, Kees Cook wrote: >> On Thu, Dec 7, 2017 at 3:44 PM, Tobin C. Harding wrote: >> > Cheers Kees. FTR, changes to implement are: >> > >> > - Fix the capitalization of 'kernel'. >> >> I don't really ha

Re: [PATCH] drm/i915: Use copy_from_user() in fence copying

2017-12-08 Thread Kees Cook
On Fri, Dec 8, 2017 at 2:17 AM, David Laight wrote: > From: Kees Cook >> Sent: 06 December 2017 20:29 >> >> There's no good reason to separate the access_ok() from the copy, >> especially since the access_ok() size is hard-coded instead of using >> sizeof(). Instead, just use copy_from_user() dire

[PATCH 0/2] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths

2017-12-08 Thread Christophe JAILLET
The first patch converts 's3c_onenand_probe()' to devm_ functions. This fixes a leak in one path (line 872). This also free_irq which was not handled at all. (I hope I'm correct :) ) The 2nd patch is about an un-handled error code which looks spurious. Not sure if I'm right. While compile-testin

[PATCH 1/2] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks

2017-12-08 Thread Christophe JAILLET
Convert all error handling code in 's3c_onenand_probe()' to resource-managed alternatives in order to simplify code. This fixes a resource leak if 'platform_get_resource()' fails at line 872. The 'request_irq()' at line 971 was also un-balanced. It is now resource-managed Signed-off-by: Christop

[PATCH 2/2] mtd: onenand: samsung: return an error if 'mtd_device_parse_register()' fails

2017-12-08 Thread Christophe JAILLET
If 'mtd_device_parse_register()' fails, we still return 0 which mean success. Return the error code instead, as done in all the other error handling paths. Signed-off-by: Christophe JAILLET --- Compile tested-only --- drivers/mtd/onenand/samsung.c | 4 1 file changed, 4 insertions(+) diff

RE: [PATCH] ACPICA: Fix indentation

2017-12-08 Thread Moore, Robert
This type of thing more often than not is caused by running the code through indent (lindent). Original ACPICA code: ACPI_FUNCTION_NAME (ExDumpOperand) /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_EXEC, _COMPONENT)) { return; } Raw "lin

Re: NFS corruption, fixed by echo 1 > /proc/sys/vm/drop_caches -- next debugging steps?

2017-12-08 Thread Eric Dumazet
On Fri, 2017-12-08 at 12:26 -0800, Matt Turner wrote: > > Thanks for the quick reply! > > I tried the patch on top of master, but unfortunately the corruption > still occurs. You might try replacing in sbdma_add_rcvbuffer() sb_new = netdev_alloc_skb(dev, size); by  sb_new = alloc_skb(size, GF

Re: [PATCH] mtd: onenand: Fix an error handling path in 's3c_onenand_probe(()'

2017-12-08 Thread Christophe JAILLET
Le 07/12/2017 à 17:55, Boris Brezillon a écrit : On Sat, 18 Nov 2017 14:27:23 +0100 Christophe JAILLET wrote: If 'platform_get_resource()' fails, we have to go through the error handling path to release some resources. The unreachable 'goto ahb_resource_failed' is also wrong here and we shoul

Re: [git pull] drm fixes for v4.15-rc3

2017-12-08 Thread Linus Torvalds
On Thu, Dec 7, 2017 at 5:20 PM, Dave Airlie wrote: > > This pull is a bit larger than I'd like but a large bunch of it is > license fixes, AMD wanted to fix the licenses for a bunch of files > that were missing them, Oh Christ, couldn't they have just added the one-liner SPDX tags rather than doi

[PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-08 Thread Salil Mehta
This patch adds the support of the mailbox to the VF driver. The mailbox shall be used as an interface to communicate with the PF driver for various purposes like {set|get} MAC related operations, reset, link status etc. The mailbox supports both synchronous and asynchronous command send to PF driv

[PATCH V2 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-08 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off-by: lip

[PATCH V2 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-08 Thread Salil Mehta
Command queue provides the provision of Mailbox command which can be used for communication between PF and VF. PF handles messages from various VFs for fetching various information like, queue, vlan, link status related etc. It also handles the request from various VFs to perform certain privileged

[PATCH V2 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-08 Thread Salil Mehta
This patch adds support of command interface for communication with the IMP(Integrated Management Processor) for HNS3 Virtual Function Driver. Each VF has support of CQP(Command Queue Pair) ring interface. Each CQP consis of send queue CSQ and receive queue CRQ. There are various commands a VF may

[PATCH V2 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-08 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V2: Addressed some internal comm

[PATCH V2 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-08 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/his

[PATCH V2 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-08 Thread Salil Mehta
Most of the NAPI handling interface, skb buffer management, management of the RX/TX descriptors, ethool interface etc. has quite a bit of code which is common to VF and PF driver. This patch makes the exisitng PF's HNS3 ENET driver as the common ENET driver for both Virtual & Physical Function. Th

[PATCH V2 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-08 Thread Salil Mehta
This patch-set contains the support of the HNS3 (Hisilicon Network Subsystem 3) Virtual Function Ethernet driver for hip08 family of SoCs. The Physical Function driver is already part of the Linux mainline. This VF driver has its Hardware Compatibility Layer and has commom/unified ENET layer/clie

[PATCH V2 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-08 Thread Salil Mehta
This patch adds the support of hardware compatibiltiy layer to the HNS3 VF Driver. This layer implements various {set|get} operations over MAC address for a virtual port, RSS related configuration, fetches the link status info from PF, does various VLAN related configuration over the virtual port,

Re: [PATCH v3 10/16] iommu: introduce device fault report API

2017-12-08 Thread Jacob Pan
On Tue, 5 Dec 2017 14:22:41 +0800 Lu Baolu wrote: > > +int iommu_report_device_fault(struct device *dev, struct > > iommu_fault_event *evt) +{ > > + /* we only report device fault if there is a handler > > registered */ > > + if (!dev->iommu_param || !dev->iommu_param->fault_param || > > +

Re: [PATCH v3 10/16] iommu: introduce device fault report API

2017-12-08 Thread Jacob Pan
On Fri, 8 Dec 2017 13:59:09 -0700 Alex Williamson wrote: > > > > > > Isn't this all rather racy? I see that we can have multiple > > > callers to register racing. > > I agree, should use a lock here to prevent unregister. For multiple > > caller race, it won't happen since there is only one

Re: [PATCH 1/2] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks

2017-12-08 Thread Boris Brezillon
On Fri, 8 Dec 2017 22:11:04 +0100 Christophe JAILLET wrote: > Convert all error handling code in 's3c_onenand_probe()' to > resource-managed alternatives in order to simplify code. > > This fixes a resource leak if 'platform_get_resource()' fails at line 872. > > The 'request_irq()' at line 97

Re: [PATCH] doc: convert printk-formats.txt to rst

2017-12-08 Thread Joe Perches
On Fri, 2017-12-08 at 13:06 -0800, Kees Cook wrote: > Well ... my sense is that lib/vsprintf.c should remain the canonical > documentation. I agree. > Anyone working on the code has the docs all together in > one file. If it helps the .rst file to reformat the comments into > kernel-doc, that's f

Re: [PATCH 2/2] mtd: onenand: samsung: return an error if 'mtd_device_parse_register()' fails

2017-12-08 Thread Boris Brezillon
On Fri, 8 Dec 2017 22:11:05 +0100 Christophe JAILLET wrote: > If 'mtd_device_parse_register()' fails, we still return 0 which mean > success. > Return the error code instead, as done in all the other error handling > paths. > > Signed-off-by: Christophe JAILLET > --- > Compile tested-only > --

Re: [PATCH v1 2/2] drm/tinydrm: add driver for ST7735R panels

2017-12-08 Thread David Lechner
On 12/06/2017 12:27 PM, Noralf Trønnes wrote: Den 29.11.2017 04.01, skrev David Lechner: This adds a new driver for Sitronix ST7735R display panels. This has been tested using an Adafruit 1.8" TFT. Signed-off-by: David Lechner ---   MAINTAINERS   |   6 +   drivers/gpu/drm

[PATCH v2 2/2] eeprom: at24: remove temporary fix for at24mac402 size.

2017-12-08 Thread Sven Van Asbroeck
The chip size passed via devicetree, i2c, or acpi device ids is now no longer limited to a power of two. So the temporary fix can be removed. Signed-off-by: Sven Van Asbroeck --- drivers/misc/eeprom/at24.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/misc/eeprom/at24.c

[PATCH v2 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Sven Van Asbroeck
Fundamental properties such as capacity and page size differ among at24-type chips. But these chips do not have an id register, so this can't be discovered at runtime. Traditionally, at24-type eeprom properties were determined in two ways: - by passing a 'struct at24_platform_data' via platform_da

[PATCH v2 0/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Sven Van Asbroeck
v2: use struct at24_chip_data instead of struct at24_platform_data (which decreases code size) explicitly write out of compatible nodes, e.g. "atmel,24c04" (which allows grepping for of compatible nodes) v1: first shot Sven Van Asbroeck (2):

Re: [PATCH 1/2] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks

2017-12-08 Thread Boris Brezillon
On Fri, 8 Dec 2017 22:11:04 +0100 Christophe JAILLET wrote: > Convert all error handling code in 's3c_onenand_probe()' to > resource-managed alternatives in order to simplify code. > > This fixes a resource leak if 'platform_get_resource()' fails at line 872. > > The 'request_irq()' at line 97

Re: [GIT PULL for v4.15-rc3] media fixes

2017-12-08 Thread Linus Torvalds
On Fri, Dec 8, 2017 at 7:56 AM, Mauro Carvalho Chehab wrote: > > - The largest amount of fixes in this series is with regards to comments > that aren't kernel-doc, but start with "/**". A new check added for > 4.15 makes it to produce a *huge* amount of new warnings (I'm compiling > here wit

Re: [PATCH 3/3] x86/PCI: limit the size of the 64bit BAR to 256GB

2017-12-08 Thread Boris Ostrovsky
On 12/08/2017 12:56 PM, Bjorn Helgaas wrote: > On Wed, Dec 06, 2017 at 01:51:18PM -0600, Bjorn Helgaas wrote: >> On Wed, Nov 29, 2017 at 03:12:29PM +0100, Christian König wrote: >>> This avoids problems with Xen which hides some memory resources from the >>> OS and potentially also allows memory ho

Re: [PATCH v2] Staging: pi433: fix brace coding style issues in pi433_if.c

2017-12-08 Thread Tomas Marek
On 12/06/2017 07:01 AM, Greg KH wrote: > On Mon, Dec 04, 2017 at 09:40:10PM +0100, Tomas Marek wrote: >> This patch fix several brace on next line, braces not necessary, space >> around =/<, and space before/after open/close parenthesis coding style >> errors find by checkpatch in pi433_if.c. >> >

Re: x86/ldt: Prevent ldt inheritance on exec

2017-12-08 Thread Linus Torvalds
On Fri, Dec 8, 2017 at 12:02 PM, Thomas Gleixner wrote: > > The reason why this happens is that init_new_context_ldt() is called from > init_new_context() which obviously needs to be called for both fork() and > exec(). > > It would be surprising if anything relies on that behaviour, so it seems t

[PATCH] x86/mm/kmmio: Fix returned errno code

2017-12-08 Thread Vasyl Gomonovych
add_kmmio_fault_page using -1 instead of the -ENOMEM defined macro to specify kmmio_fault_page allocation failed. Smatch tool warning: arch/x86/mm/kmmio.c:389 add_kmmio_fault_page() warn: returning -1 instead of -ENOMEM is sloppy Signed-off-by: Vasyl Gomonovych --- arch/x86/mm/kmmio.c | 2 +- 1

Re: [PATCH v3] dell-laptop: Fix keyboard led max_brightness property for Dell Latitude E6410

2017-12-08 Thread Darren Hart
On Thu, Nov 02, 2017 at 09:25:24PM +0100, Pali Rohár wrote: > This machine reports number of keyboard backlight led levels, instead of > value of the last led level index. Therefore max_brightness properly needs > to be subtracted by 1 to match led max_brightness API. > > Signed-off-by: Pali Rohár

Re: [PATCH] dell-laptop: Use bool type in struct quirk_entry for true/false fields

2017-12-08 Thread Darren Hart
On Sat, Nov 11, 2017 at 11:20:23PM +0100, Pali Rohár wrote: > In struct quirk_entry some boolean fields used int, some u8 type. Change > them all to bool type. > Queued, thanks! -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 1/2] dt-bindings: Add binding for Sitronix ST7735R display panels

2017-12-08 Thread Noralf Trønnes
Den 29.11.2017 04.01, skrev David Lechner: This adds a new device tree binding for Sitronix ST7735R display panels, such as the Adafruit 1.8" TFT. Signed-off-by: David Lechner --- .../bindings/display/sitronix,st7735r.txt | 35 ++ 1 file changed, 35 insertions(+

Re: [RFC PTI 3/3] x86/pti: Put the LDT in its own PGD if PTI is on

2017-12-08 Thread Thomas Gleixner
On Fri, 8 Dec 2017, Andy Lutomirski wrote: > With PTI on, we need the LDT to be in the usermode tables somewhere, > and the LDT is per-mm. > > tglx had a hack to have a per-cpu LDT and context switch it, but it > was probably insanely slow due to the required TLB flushes. > > Instead, take advant

[PATCH v2] Enable SR-IOV instantiation through /sys file

2017-12-08 Thread Jeff Kirsher
From: Liang-Min Wang When a SR-IOV capable device is bound with vfio-pci, the device loses capability of creating SR-IOV instances through /sy/bus/ pci/devices/.../sriov_numvfs. This patch re-activates this capability for a PCIe device that is SR-IOV capable and is bound with vfio-pci.ko. This pa

Re: x86/ldt: Prevent ldt inheritance on exec

2017-12-08 Thread Thomas Gleixner
On Fri, 8 Dec 2017, Linus Torvalds wrote: > On Fri, Dec 8, 2017 at 12:02 PM, Thomas Gleixner wrote: > > > > The reason why this happens is that init_new_context_ldt() is called from > > init_new_context() which obviously needs to be called for both fork() and > > exec(). > > > > It would be surpr

[PATCH 0/3] tty/serial/ioc4: Adjustments for four function implementations

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 22:47:43 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete error messages for a failed memory allocation in two functions Improve four size determinations Adjust three function call

[PATCH 1/3] serial: ioc4: Delete error messages for a failed memory allocation in two functions

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 22:15:53 +0100 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/tty/serial/ioc4_serial.c | 11 ++- 1 file changed, 2 in

[PATCH 2/3] serial: ioc4: Improve four size determinations

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 22:22:25 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detect

[PATCH 3/3] serial: ioc4: Adjust three function calls together with a variable assignment

2017-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Dec 2017 22:40:31 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/tty/serial/ioc4_serial.c | 13

[PATCH 0/5] sun8i-a83t: Add touchscreen support on TBS A711

2017-12-08 Thread Mylène Josserand
Hello everyone, This patch series adds touchscreen support (FocalTech EDT-FT5x06 Polytouch) for TBS A711 (Allwinner sun8i-a83t SoC). This touchscreen is using i2c so this series adds support of this bus on A83T. Series information: - Based on last linux-next (next-20171208) - Had

[PATCH 5/5] arm: dts: sun8i: a83t: a711: Add touchscreen node

2017-12-08 Thread Mylène Josserand
Tha A711 tablet has a FocalTech EDT-FT5x06 Polytouch touchscreen. It is connected via I2C0 so add his node in i2c0's node. The reset line is PD5, the interrupt line is PL7 and the power supply is the ldo_io0 regulator. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dt

[PATCH 3/5] arm: dts: sun8i: a83t: a711: Enable I2C0

2017-12-08 Thread Mylène Josserand
The A711 has a touchscreen connected by I2C0. Enable only I2C0 node for the moment. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-t

[PATCH 1/5] arm: dts: sun8i: a83t: Add I2C0 node

2017-12-08 Thread Mylène Josserand
Add I2C0 node for A83T. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 19acae1b4089..848cf3f19962 100644 --- a/arch/arm/boot/dts/su

[PATCH 4/5] Input: edt-ft5x06 - Add support for regulator

2017-12-08 Thread Mylène Josserand
Add the support of regulator to use them as VCC source. Signed-off-by: Mylène Josserand --- drivers/input/touchscreen/edt-ft5x06.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06

[PATCH 2/5] arm: dts: sun8i: a83t: Add I2C0 pins group

2017-12-08 Thread Mylène Josserand
Add pins group to configure it as I2C0. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 848cf3f19962..3bce6bd3dc79 100644 --- a/arch/arm/boo

RE: [PATCH v2] drivers: visorbus: move driver out of staging

2017-12-08 Thread Kershner, David A
> -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Friday, December 8, 2017 11:53 AM > To: Greg KH ; Kershner, David A > > Cc: jes.soren...@gmail.com; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; *S-Par-Maintainer > ; erik.arfvid...@gmail

RE: [PATCH v2] drivers: visorbus: move driver out of staging

2017-12-08 Thread Kershner, David A
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, December 8, 2017 1:32 PM > To: Greg KH > Cc: Kershner, David A ; > wadgaonkar...@gmail.com; driverdev-de...@linuxdriverproject.org; > jes.soren...@gmail.com; *S-Par-Maintainer > ; linux-kernel@vger

Re: [PATCH 0/5] sun8i-a83t: Add touchscreen support on TBS A711

2017-12-08 Thread Mylene JOSSERAND
s bus > on A83T. > > Series information: >- Based on last linux-next (next-20171208) >- Had dependencies on AXP209 Quentin Schultz's series: >https://www.spinics.net/lists/linux-gpio/msg26913.htmlx I forgot to mention a dependency on Maxime Ripard

Re: [PATCH] tools/slabinfo-gnuplot: force to use bash shell

2017-12-08 Thread Andrew Morton
On Fri, 8 Dec 2017 19:33:15 +0900 Sergey Senozhatsky wrote: > On (12/08/17 17:37), Liu, Changcheng wrote: > > > > On some linux distributions, the default link of sh > > is dash which deoesn't support split array like > > ${var//,/ } > > It's better to force to use bash shell directly. > > > >

Re: [PATCH -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-08 Thread Andrew Morton
On Fri, 08 Dec 2017 16:41:38 +0800 "Huang\, Ying" wrote: > > Why do we need srcu here? Is it enough with rcu like below? > > > > It might have a bug/room to be optimized about performance/naming. > > I just wanted to show my intention. > > Yes. rcu should work too. But if we use rcu, it may ne

Re: [PATCH v2] drivers: visorbus: move driver out of staging

2017-12-08 Thread Joe Perches
On Fri, 2017-12-08 at 21:55 +, Kershner, David A wrote: > > -Original Message- > > From: Joe Perches [mailto:j...@perches.com] > > Sent: Friday, December 8, 2017 11:53 AM > > To: Greg KH ; Kershner, David A > > > > Cc: jes.soren...@gmail.com; linux-kernel@vger.kernel.org; driverdev- >

Re: Does this break IA64 Linux?

2017-12-08 Thread Luck, Tony
On Fri, Dec 08, 2017 at 07:04:48PM +, David Howells wrote: > Luck, Tony wrote: > > > Which patch is "this patch". I don't see any link or attachment. > > Sorry, I cc'd a patch which I sent to the ia64 list. The 5th patch on this > branch: > > > https://git.kernel.org/pub/scm/linux/k

<    3   4   5   6   7   8   9   10   >