Re: [Xen-devel] [PATCH 4/6] xen-netfront: add range check for Tx response id

2018-05-01 Thread Wei Liu
On Mon, Apr 30, 2018 at 11:01:48PM +0200, Marek Marczykowski-Górecki wrote: > Tx response ID is fetched from shared page, so make sure it is sane > before using it as an array index. > > CC: sta...@vger.kernel.org > Signed-off-by: Marek Marczykowski-Górecki > --- > drivers/net/xen-netfront.c | 1

Re: KASAN: use-after-free Read in fuse_kill_sb_blk

2018-05-01 Thread Tetsuo Handa
>From 606d54cd24b5b00e7a7e3597aabbe89719defc56 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 1 May 2018 13:12:14 +0900 Subject: [PATCH] fuse: don't keep dead fuse_conn at fuse_fill_super(). syzbot is reporting use-after-free at fuse_kill_sb_blk() [1]. Since sb->s_fs_info field is not cle

Re: [PATCH 13/18] thermal: exynos: set trips in ascending order in exynos7_tmu_initialize()

2018-05-01 Thread Daniel Lezcano
On Thu, Apr 26, 2018 at 01:51:28PM +0200, Bartlomiej Zolnierkiewicz wrote: > Set trips in ascending order in exynos7_tmu_initialize() (it should > make no difference in driver operation). This prepares the driver > code to moving trips setting from ->tmu_initialize method to > exynos_tmu_initialize

Re: WARNING: kmalloc bug in bfs_fill_super

2018-05-01 Thread Tetsuo Handa
>From 247cae4da0490c2e285e0a99e630ef963fabb6d5 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 1 May 2018 14:15:19 +0900 Subject: [PATCH] bfs: add sanity check at bfs_fill_super(). syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted

Re: [PATCH v14 0/9] Address error and recovery for AER and DPC

2018-05-01 Thread poza
On 2018-05-01 04:10, Bjorn Helgaas wrote: On Thu, Apr 26, 2018 at 11:00:52AM +0530, p...@codeaurora.org wrote: On 2018-04-23 20:53, Oza Pawandeep wrote: > This patch set brings in error handling support for DPC > > The current implementation of AER and error message broadcasting to the > EP driv

Re: [PATCH 12/18] thermal: exynos: do not use trips structure directly in ->tmu_initialize

2018-05-01 Thread Daniel Lezcano
On Thu, Apr 26, 2018 at 01:51:27PM +0200, Bartlomiej Zolnierkiewicz wrote: > Use ->get_trip_[temp,hyst] methods instead of using trips structure > directly in all ->tmu_initialize method implementations. > > There should be no functional changes caused by this patch. > > Signed-off-by: Bartlomiej

Re: [PATCH 4/4] usb: roles: intel_xhci: Always allow user control

2018-05-01 Thread Hans de Goede
Hi, On 30-04-18 14:41, Heikki Krogerus wrote: Trying to determine the USB port type with this mux is very difficult. To simplify the situation, always allowing user control, even if the port is USB Type-C port. Signed-off-by: Heikki Krogerus > --- drivers/usb/roles/intel-xhci-usb-role-switch

Re: [PATCH 11/18] thermal: exynos: add exynos*_tmu_set_[trip,hyst]() helpers

2018-05-01 Thread Daniel Lezcano
On Thu, Apr 26, 2018 at 01:51:26PM +0200, Bartlomiej Zolnierkiewicz wrote: > Add exynos*_tmu_set_[trip,hyst]() helpers and convert > all ->tmu_initialize implementations accordingly. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > drivers/thermal/samsung/exynos_tmu.c | 282 > ++

Re: [PATCH] efi/capsule-loader: Don't output reset log when header flags is not set

2018-05-01 Thread Ard Biesheuvel
On 25 April 2018 at 05:10, Shunyong Yang wrote: > It means firmware attempts to immediately process or launch the capsule > when flags in capsule header is not set. Moreover, reset is not needed > in this case. Current code will output log to indicate reset. > > This patch adds a branch to avoid r

Re: [PATCH 01/12] mtd: nand: davinci: store the core chipselect number in platform data

2018-05-01 Thread Sekhar Nori
On Tuesday 01 May 2018 02:55 PM, Sekhar Nori wrote: > On Monday 30 April 2018 01:54 PM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> We have the 'ti,davinci-chipselect' property in the device tree, but >> when using platform data the driver silently uses the id field of >> struct

Re: [PATCH 2/4] usb: typec: tcpm: Release the role mux when exiting

2018-05-01 Thread Hans de Goede
Hi, On 30-04-18 14:41, Heikki Krogerus wrote: The ref count for the USB role switch device must be released after we are done using the switch. Fixes: c6962c29729c ("usb: typec: tcpm: Set USB role switch to device mode when configured as such") Signed-off-by: Heikki Krogerus Makes sense: R

Re: [PATCH 1/4] platform: x86: intel_cht_int33fe: Fix dependencies

2018-05-01 Thread Hans de Goede
Hi, On 30-04-18 14:41, Heikki Krogerus wrote: The driver will not probe unless bq24190 is loaded, so making it a dependency. Hmm, the dependency is pure run-time, with this Kconfig change if a user now decides to builtin the intel_cht_int33fe driver, the bq24190 driver must also be builtin, I'

Re: [PATCH 2/2] sched: Introduce set_special_state()

2018-05-01 Thread Peter Zijlstra
On Mon, Apr 30, 2018 at 09:40:24PM +0200, Peter Zijlstra wrote: > On Mon, Apr 30, 2018 at 06:45:46PM +0200, Oleg Nesterov wrote: > > On 04/30, Peter Zijlstra wrote: > > > > > > --- a/kernel/signal.c > > > +++ b/kernel/signal.c > > > @@ -1968,7 +1968,7 @@ static void ptrace_stop(int exit_code, i > >

Re: [PATCH 08/15] powerpc/powernv: implement opal_put_chars_atomic

2018-05-01 Thread Benjamin Herrenschmidt
On Tue, 2018-05-01 at 00:55 +1000, Nicholas Piggin wrote: > The RAW console does not need writes to be atomic, so relax > opal_put_chars to be able to do partial writes, and implement an > _atomic variant which does not take a spinlock. This API is used > in xmon, so the less locking that is used,

[PATCH 1/1] mfd: tps65911-comparator: Fix an off by one bug

2018-05-01 Thread Lee Jones
The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is accessing the wrong elements and one space beyond the end of the array. The "id" variable is never COMP (0) so that code can be removed. Fixes: 6851ad3ab346 ("TPS65911: Comparator: Add comparator driver") Reported-by: Dan Ca

Re: [PATCH 06/18] thermal: exynos: fix trips limit checking in get_th_reg()

2018-05-01 Thread Daniel Lezcano
On Mon, Apr 30, 2018 at 05:48:29PM +0200, Bartlomiej Zolnierkiewicz wrote: > On Monday, April 30, 2018 05:34:31 PM Daniel Lezcano wrote: > > On Thu, Apr 26, 2018 at 01:51:21PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > of_thermal_get_ntrips() may return value bigger than supported > > > by a giv

[PATCH] wireless: ipw2200: fix spelling mistake: "functionalitis" -> "functionalities"

2018-05-01 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in module parameter description text Signed-off-by: Colin Ian King --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/n

Re: [PATCH] ACPI: APD: Add AMD misc clock handler support

2018-05-01 Thread Rafael J. Wysocki
On Monday, April 30, 2018 11:40:08 AM CEST Agrawal, Akshu wrote: > > On 4/30/2018 2:23 PM, kbuild test robot wrote: > > Hi Akshu, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on pm/linux-next] > > [also build test ERROR on v4.17-rc3 next-20180426] > >

Re: [PATCH v2 1/2] PCI ACPI: Avoid panic when PCI IO resource's size is not page aligned

2018-05-01 Thread Rafael J. Wysocki
On Saturday, March 31, 2018 9:12:22 AM CEST Yisheng Xie wrote: > Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: > > [2.470908] kernel BUG at lib/ioremap.c:72! > [2.475079] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > [2.480551] Modules linked in: > [

Re: [PATCH 01/12] mtd: nand: davinci: store the core chipselect number in platform data

2018-05-01 Thread Sekhar Nori
On Monday 30 April 2018 01:54 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We have the 'ti,davinci-chipselect' property in the device tree, but > when using platform data the driver silently uses the id field of > struct platform_device as the chipselect. This is confusing and w

Re: Suggested new user link command

2018-05-01 Thread Bernd Petrovitsch
Hi On Tue, 2018-05-01 at 20:03 +1200, Tony Wallace wrote: > I am suggesting a new command for linking files. Currently there is > no > easy way to link a file with a known inode number to its correct > position in the directory tree. > > > int ilink(const int inode, const char *newpath) ...

RE: [PATCH 9/9] iommu/vt-d: Clean up PASID talbe management for SVM

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > The previous per iommu pasid table alloc/free interfaces > are no longer used. Clean up the driver by removing it. I think this patch major cleans intel_svm_alloc_pasid_tables and intel_svm_free_pasid_

RE: [PATCH 8/9] iommu/vt-d: Use per-domain pasid table

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > This patch replaces current per iommu pasid table with > the new added per domain pasid table. Each svm-capable > PCI device will have its own pasid table. This is not accurate. pasid table is per-iomm

RE: [PATCH 3/9] iommu/vt-d: Use global PASID for SVM usage

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > This patch switches PASID management for SVM from per iommu idr to the global > idr. > > Cc: Ashok Raj > Cc: Jacob Pan > Cc: Kevin Tian > Cc: Liu Yi L > Signed-off-by: Lu Baolu > Reviewed-by: Kevin

RE: [PATCH 7/9] iommu/vt-d: Calculate PTS value

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > Calculate PTS (PASID Table Size) value for the extended > context entry from the real size of the PASID table for > a domain. > > Cc: Ashok Raj > Cc: Jacob Pan > Cc: Kevin Tian > Cc: Liu Yi L > Sig

RE: [PATCH 6/9] iommu/vt-d: Allocate and free pasid table

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > This patch allocates PASID table for a domain at the time when > it is being created (if any devices using this domain supports > PASID feature), and free it when the domain is freed. > > Cc: Ashok Raj

RE: [PATCH 5/9] iommu/vt-d: Per domain pasid table interfaces

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > This patch adds the interfaces for per domain pasid table > management. Currently we allocate one pasid table for all > devices under the scope of an IOMMU. It's insecure in the > cases where multiple d

RE: [PATCH 4/9] iommu/vt-d: Move device_domain_info to header

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > This allows the per device iommu data to be accessed from other > files. > > Cc: Ashok Raj > Cc: Jacob Pan > Cc: Kevin Tian > Cc: Liu Yi L > Signed-off-by: Lu Baolu Looks good to me. Reviewed-by:

RE: [PATCH 2/9] iommu/vt-d: Decouple idr bond pointer from svm

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > Subject: [PATCH 2/9] iommu/vt-d: Decouple idr bond pointer from svm > > As we move the PASID idr out of SVM code and make it serving > as a global PASID name space, the consumer can specify a ptr > to bin

RE: [PATCH 1/9] iommu/vt-d: Global PASID name space

2018-05-01 Thread Liu, Yi L
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, April 17, 2018 11:03 AM > > This adds the system wide PASID name space for the PASID > allocation. Currently we are using per IOMMU PASID name > spaces which are not suitable for some use cases. For an > example, one application (

[PATCH v2 01/27] coresight: ETM: Add support for ARM Cortex-A73

2018-05-01 Thread Suzuki K Poulose
Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it also add description of the CPU to which the ETM belongs, to make it easier to identify the ETM devices. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm4x.c | 24 +++-

[PATCH v2 04/27] coresight: Introduce support for Coresight Addrss Translation Unit

2018-05-01 Thread Suzuki K Poulose
Add the initial support for Coresight Address Translation Unit, which augments the TMC in Coresight SoC-600 by providing an improved Scatter Gather mechanism. CATU is always connected to a single TMC-ETR and converts the AXI address with a translated address (from a given SG table with specific for

[PATCH v2 03/27] coresight: Add helper device type

2018-05-01 Thread Suzuki K Poulose
Add a new coresight device type, which do not belong to any of the existing types, i.e, source, sink, link etc. A helper device could be connected to a coresight device, which could augment the functionality of the coresight device. This is intended to cover Coresight Address Translation Unit (CAT

[PATCH v2 02/27] coresight: Cleanup device subtype struct

2018-05-01 Thread Suzuki K Poulose
Clean up our struct a little bit by using a union instead of a struct for tracking the subtype of a device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- include/linux/coresight.h | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/include/linux/

[PATCH v2 08/27] coresight: tmc-etr: Do not clean trace buffer

2018-05-01 Thread Suzuki K Poulose
We zero out the entire trace buffer used for ETR before it is enabled, for helping with debugging. Since we could be restoring an already used buffer in perf mode, this could destroy the data. Get rid of this step; if someone wants to debug, they can always add it as and when needed. Cc: Mathieu P

[PATCH v2 06/27] coresight: tmc etr: Disallow perf mode temporarily

2018-05-01 Thread Suzuki K Poulose
We don't support ETR in perf mode yet. Temporarily fail the operation until we add proper support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 28 ++--- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git

[PATCH v2 09/27] coresight: Add helper for inserting synchronization packets

2018-05-01 Thread Suzuki K Poulose
Right now we open code filling the trace buffer with synchronization packets when the circular buffer wraps around in different drivers. Move this to a common place. While at it, clean up the barrier_pkt array to strip off the trailing '\0'. Cc: Mathieu Poirier Cc: Mike Leach Signed-off-by: Suzu

Re: [Xen-devel] [PATCH 6/6] xen-blkfront: prepare request locally, only then put it on the shared ring

2018-05-01 Thread Roger Pau Monné
On Tue, May 01, 2018 at 09:22:31AM +0100, Roger Pau Monné wrote: > On Mon, Apr 30, 2018 at 11:01:50PM +0200, Marek Marczykowski-Górecki wrote: > > struct request *req, > > - struct blkif_request **ring_req) > > +

[PATCH v2 10/27] dts: bindings: Restrict coresight tmc-etr scatter-gather mode

2018-05-01 Thread Suzuki K Poulose
We are about to add the support for ETR builtin scatter-gather mode for dealing with large amount of trace buffers. However, on some of the platforms, using the ETR SG mode can lock up the system due to the way the ETR is connected to the memory subsystem. In SG mode, the ETR performs READ from th

Re: [V4 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-05-01 Thread Jiri Olsa
On Thu, Apr 26, 2018 at 11:46:19AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > Perf stat doesn't count the uncore event aliases from the same uncore > block in a group, for example: > > perf stat -e '{unc_m_cas_count.all,unc_m_clockticks}' -a -I 1000 > # time

[PATCH v2 12/27] coresight: tmc-etr: Allow commandline option to override SG use

2018-05-01 Thread Suzuki K Poulose
The Coresight TMC-ETR SG mode could be unsafe on a platform where the ETR is not properly connected to account for READ operations. We use a DT node property to indicate if the system is safe. This patch also provides a command line parameter to "force" the use of SG mode to override the firmware i

[PATCH v2 13/27] coresight: Add generic TMC sg table framework

2018-05-01 Thread Suzuki K Poulose
This patch introduces a generic sg table data structure and associated operations. An SG table can be used to map a set of Data pages where the trace data could be stored by the TMC ETR. The information about the data pages could be stored in different formats, depending on the type of the underlyi

[PATCH v2 15/27] coresight: tmc-etr: Make SG table circular

2018-05-01 Thread Suzuki K Poulose
Make the ETR SG table Circular buffer so that we could start at any of the SG pages and use the entire buffer for tracing. Also support using a partial buffer for tracing (i.e restricting the size to a requested value) by adjusting the LAST buffer pointer. This can be achieved by : 1) While build

[PATCH v2 20/27] coresight: tmc: Add configuration support for trace buffer size

2018-05-01 Thread Suzuki K Poulose
Now that we can dynamically switch between contiguous memory and SG table depending on the trace buffer size, provide the support for selecting an appropriate buffer size. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../ABI/testing/sysfs-bus-coresight-devices-tmc| 8 ++ dri

[PATCH v2 18/27] coresight: catu: Add support for scatter gather tables

2018-05-01 Thread Suzuki K Poulose
This patch adds the support for setting up a SG table for use by the CATU. We reuse the tmc_sg_table to represent the table/data pages, even though the table format is different. Similar to ETR SG table, CATU uses a 4KB page size for data buffers as well as page tables. All table entries are 64bit

[PATCH v2 19/27] coresight: catu: Plug in CATU as a backend for ETR buffer

2018-05-01 Thread Suzuki K Poulose
Now that we can use a CATU with a scatter gather table, add support for the TMC ETR to make use of the connected CATU in translate mode. This is done by adding CATU as new buffer mode. CATU's SLADDR must always be 4K aligned. Thus the INADDR (base VA) is always 1M aligned and we adjust the DBA for

[PATCH v2 17/27] coresight: etr: Add support for save restore buffers

2018-05-01 Thread Suzuki K Poulose
Add support for creating buffers which can be used in save-restore mode (e.g, for use by perf). If the TMC-ETR supports save-restore feature, we could support the mode in all buffer backends. However, if it doesn't, we should fall back to using in built SG mechanism, where we can rotate the SG tabl

Re: KMSAN: uninit-value in _decode_session6

2018-05-01 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:d2d741e5d189 kmsan: add initialization for shmem pages git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?id=6550343064223744 kernel config: https://syzkall

[PATCH v2 25/27] coresight: etr_buf: Add helper for padding an area of trace data

2018-05-01 Thread Suzuki K Poulose
This patch adds a helper to insert barrier packets for a given size (aligned to packet size) at given offset in an etr_buf. This will be used later for perf mode when we try to start in the middle of an SG buffer. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresig

[PATCH v2 24/27] coresight: tmc-etr: Relax collection of trace from sysfs mode

2018-05-01 Thread Suzuki K Poulose
Since the ETR now uses mode specific buffers, we can reliably provide the trace data captured in sysfs mode, even when the ETR is operating in PERF mode. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 14 ++ 1 file changed,

[PATCH v2 23/27] coresight: tmc-etr: Handle driver mode specific ETR buffers

2018-05-01 Thread Suzuki K Poulose
Since the ETR could be driven either by SYSFS or by perf, it becomes complicated how we deal with the buffers used for each of these modes. The ETR driver cannot simply free the current attached buffer without knowing the provider (i.e, sysfs vs perf). To solve this issue, we provide: 1) the drive

[PATCH v2 26/27] coresight: perf: Remove reset_buffer call back for sinks

2018-05-01 Thread Suzuki K Poulose
Right now we issue an update_buffer() and reset_buffer() call backs in succession when we stop tracing an event. The update_buffer is supposed to check the status of the buffer and make sure the ring buffer is updated with the trace data. And we store information about the size of the data collecte

Re: [PATCH v2 0/7] Various tsc/clocksource fixes

2018-05-01 Thread Rafael J. Wysocki
On Monday, April 30, 2018 12:00:08 PM CEST Peter Zijlstra wrote: > These patches are the result of the regression Diego reported against commit: > > aa83c45762a2 ("x86/tsc: Introduce early tsc clocksource") > > His Core2 triggers mark_tsc_unstable() while we're running with tsc-early, > which t

[PATCH v2 21/27] coresight: Convert driver messages to dev_dbg

2018-05-01 Thread Suzuki K Poulose
Convert component enable/disable messages from dev_info to dev_dbg. This is required to prevent LOCKDEP splats when operating in perf mode where we could be called with locks held to enable a coresight path. If someone wants to really see the messages, they can always enable it at runtime via dynam

[PATCH v2 27/27] coresight: etm-perf: Add support for ETR backend

2018-05-01 Thread Suzuki K Poulose
Add necessary support for using ETR as a sink in ETM perf tracing. We try make the best use of the available modes of buffers to try and avoid software double buffering. We can use the perf ring buffer for ETR directly if all of the conditions below are met : 1) ETR is DMA coherent 2) perf is us

[PATCH v2 22/27] coresight: tmc-etr: Track if the device is coherent

2018-05-01 Thread Suzuki K Poulose
Track if the ETR is dma-coherent or not. This will be useful in deciding if we should use software buffering for perf. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 3 +++ drivers/hwtracing/coresight/coresight-tmc.h | 1 + 2 files changed,

[PATCH v2 16/27] coresight: tmc-etr: Add transparent buffer management

2018-05-01 Thread Suzuki K Poulose
At the moment we always use contiguous memory for TMC ETR tracing when used from sysfs. The size of the buffer is fixed at boot time and can only be changed by modifiying the DT. With the introduction of SG support we could support really large buffers in that mode. This patch abstracts the buffer

[PATCH v2 05/27] dts: bindings: Document device tree binding for CATU

2018-05-01 Thread Suzuki K Poulose
Document CATU device-tree bindings. CATU augments the TMC-ETR by providing an improved Scatter Gather mechanism for streaming trace data to non-contiguous system RAM pages. Cc: devicet...@vger.kernel.org Cc: frowand.l...@gmail.com Cc: Rob Herring Cc: Mark Rutland Cc: Mathieu Poirier Signed-off-

[PATCH v2 11/27] dts: juno: Add scatter-gather support for all revisions

2018-05-01 Thread Suzuki K Poulose
Advertise that the scatter-gather is properly integrated on all revisions of Juno board. Cc: Mathieu Poirier Cc: Sudeep Holla Cc: Liviu Dudau Cc: Lorenzo Pieralisi Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/a

[PATCH v2 14/27] coresight: Add support for TMC ETR SG unit

2018-05-01 Thread Suzuki K Poulose
This patch adds support for setting up an SG table used by the TMC ETR inbuilt SG unit. The TMC ETR uses 4K page sized tables to hold pointers to the 4K data pages with the last entry in a table pointing to the next table with the entries, by kind of chaining. The 2 LSBs determine the type of the t

[PATCH v2 00/27] coresight: TMC ETR backend support for perf

2018-05-01 Thread Suzuki K Poulose
This series achieves two goals : a) Support for all possible backends in ETR buffer and transparent management of the buffer irrespective of the backend in use. b) Adds support for perf using ETR as a sink, using the best possible backend. For (a), we add support TMC ETR in-built s

[PATCH v2 07/27] coresight: tmc: Hide trace buffer handling for file read

2018-05-01 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

Re: [PATCH 03/18] thermal: exynos: always check for critical trip points existence

2018-05-01 Thread Daniel Lezcano
On Mon, Apr 30, 2018 at 05:24:15PM +0200, Bartlomiej Zolnierkiewicz wrote: > On Monday, April 30, 2018 04:44:50 PM Daniel Lezcano wrote: > > On Thu, Apr 26, 2018 at 01:51:18PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > * Check for critical trip point existence in exynos_tmu_initialize() > > >

workqueue: could work->func be reused for private data by introducing per-wq default function?

2018-05-01 Thread Gao Xiang
Hi Tejun Heo, Lai Jiangshan,     I don't know whether the related topic was discussed or not (or it's actually an insane proposal :( )     It seems that the most of workqueues INIT_WORK by a default handle function.     So could we use a per-workqueue default handle function for these wor

Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv

2018-05-01 Thread Dan Carpenter
On Mon, Apr 30, 2018 at 05:56:10PM -0500, Wenwen Wang wrote: > However, given that the user data resides in the user space, a malicious > user-space process can race to change the data between the two copies. By > doing so, the attacker can provide a data with an inconsistent version, > e.g., v1 ve

Re: [PATCH v5 3/6] x86/microcode/AMD: Check microcode container data in the early loader

2018-05-01 Thread Borislav Petkov
On Tue, May 01, 2018 at 12:27:34AM +0200, Maciej S. Szmigiero wrote: > If we want to make the parser more resistant to garbage or > forward-compatible to containers with a different main magic number in > their headers we probably should return a length of a single byte here > instead of 12 (CONTAI

Re: [PATCH v5 4/6] x86/microcode/AMD: Check microcode container data in the late loader

2018-05-01 Thread Borislav Petkov
On Tue, May 01, 2018 at 12:27:51AM +0200, Maciej S. Szmigiero wrote: > 1) -EINVAL maps to a valid return value of 4294967274 bytes. > We have a different behavior for invalid data in the container file > (including too large lengths) than for grave errors like a failed memory > allocation. WTF? >

[v5 1/2] dt-bindings: clock: Introduce QCOM RPMh clock bindings

2018-05-01 Thread Taniya Das
Add RPMh clock device bindings for Qualcomm Technology Inc's SoCs. These devices would be used for communicating resource state requests to control the clocks managed by RPMh. Signed-off-by: Amit Nischal Signed-off-by: Taniya Das Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/qcom,

[v5 2/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-05-01 Thread Taniya Das
Add the RPMh clock driver to control the RPMh managed clock resources on some of the Qualcomm Technologies, Inc. SoCs. Signed-off-by: Amit Nischal Signed-off-by: Taniya Das --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-rpm

[v5 0/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-05-01 Thread Taniya Das
[v5] * Addressed comments from Stephen * Introduced a new DT property to take clock divs [v4] * Addressed comments from Stephen [v3] * Addressed documentation & code review comments from Bjorn * Addressed bindings comments from Rob * Updated the patch series order for bindings

Re: [v4 2/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-05-01 Thread Taniya Das
Hello Stephen, Thanks for the review comments. On 4/27/2018 5:10 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-04-24 05:23:19) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c new file mode 100644 index 000..907a73f --- /dev/null +++ b/drivers/clk/qcom/clk-rpmh.c @

[PATCH] video: fbdev: fix spelling mistake: "frambuffer" -> "framebuffer"

2018-05-01 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in error messages Signed-off-by: Colin Ian King --- drivers/video/fbdev/au1100fb.c | 2 +- drivers/video/fbdev/au1200fb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/f

Re: [PATCH] clocksource/drivers/timer-atmel-pit: properly handle error cases

2018-05-01 Thread Daniel Lezcano
On Wed, Apr 25, 2018 at 12:14:39PM +0200, Alexandre Belloni wrote: > smatch now reports a possible leak: > > smatch warnings: > drivers/clocksource/timer-atmel-pit.c:183 at91sam926x_pit_dt_init() warn: > possible memory leak of 'data' > > Ensure data is freed before exiting with an error. > > R

Re: [PATCH v1 2/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread kbuild test robot
Hi Matheus, Thank you for the patch! Yet something to improve: [auto build test ERROR on pinctrl/devel] [also build test ERROR on v4.17-rc3 next-20180501] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [Regression] PCI / PM: Simplify device wakeup settings code

2018-05-01 Thread Rafael J. Wysocki
On Mon, Apr 30, 2018 at 4:22 PM, Joseph Salisbury wrote: > On 04/16/2018 11:58 AM, Rafael J. Wysocki wrote: >> On Mon, Apr 16, 2018 at 5:31 PM, Joseph Salisbury >> wrote: >>> On 04/13/2018 05:34 PM, Rafael J. Wysocki wrote: On Fri, Apr 13, 2018 at 7:56 PM, Joseph Salisbury wrote: >

Re: [PATCH v2 3/3] mfd: cros_ec_dev: Register cros_usbpd-charger driver as a subdevice.

2018-05-01 Thread Lee Jones
On Mon, 30 Apr 2018, Enric Balletbo i Serra wrote: > Check whether this EC instance has USBPD host command support and > instatiate the cros_usbpd-charger driver as a subdevice in such case. > > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v2: > - [3/3] Use ARRAY_SIZE instead of h

kernel BUG at include/linux/mm.h:LINE!

2018-05-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6da6c0db5316 Linux v4.17-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?id=5229040734568448 kernel config: https://syzkaller.appspot.com/x/.config?id=6493557782959164711 dashboard link: https://

Re: [PATCH v2 2/3] power: supply: add cros-ec USBPD charger driver.

2018-05-01 Thread Lee Jones
On Mon, 30 Apr 2018, Enric Balletbo i Serra wrote: > From: Sameer Nanda > > This driver gets various bits of information about what is connected to > USB PD ports from the EC and converts that into power_supply properties. > > Signed-off-by: Sameer Nanda > Signed-off-by: Enric Balletbo i Serra

Re: [PATCH v2 1/3] mfd: cros_ec: Add USBPD charger commands and struct definitions.

2018-05-01 Thread Lee Jones
On Mon, 30 Apr 2018, Enric Balletbo i Serra wrote: > From: Sameer Nanda > > The USBPD charger driver gets information from the ChromeOS EC, this > patch adds the USBPD charger definitions needed by this driver. > > Signed-off-by: Sameer Nanda > Signed-off-by: Enric Balletbo i Serra > --- > >

[PATCH] RDMA/qedr: fix spelling mistake: "failes" -> "fails"

2018-05-01 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in DP_ERR error message Signed-off-by: Colin Ian King --- drivers/infiniband/hw/qedr/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 7

Re: [lustre-devel] [PATCH 04/10] staging: lustre: lu_object: move retry logic inside htable_lookup

2018-05-01 Thread Dilger, Andreas
On Apr 30, 2018, at 21:52, NeilBrown wrote: > > The current retry logic, to wait when a 'dying' object is found, > spans multiple functions. The process is attached to a waitqueue > and set TASK_UNINTERRUPTIBLE in htable_lookup, and this status > is passed back through lu_object_find_try() to lu

Re: [PATCH 6/6] xen-blkfront: prepare request locally, only then put it on the shared ring

2018-05-01 Thread Roger Pau Monné
On Mon, Apr 30, 2018 at 11:01:50PM +0200, Marek Marczykowski-Górecki wrote: > Do not reuse data which theoretically might be already modified by the > backend. This is mostly about private copy of the request > (info->shadow[id].req) - make sure the request saved there is really the > one just fill

[PATCH][next] ASoC: amd: fix spelling mistake: "failer" -> "failure"

2018-05-01 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err error message Signed-off-by: Colin Ian King --- sound/soc/amd/acp-pcm-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 9c026c4d26d4..2b9a020e

Re: [PATCH v5 2/6] x86/microcode/AMD: Add microcode container data checking functions

2018-05-01 Thread Borislav Petkov
On Tue, May 01, 2018 at 12:27:17AM +0200, Maciej S. Szmigiero wrote: > These checking functions are supposed to be called in order: We don't do magical rules like that - you either verify fully and correctly or you don't bother at all. And since you're adamant that this verification needs to happe

[PATCH v1 0/1] clk: npcm750: fix base address and of_clk_get_by_name

2018-05-01 Thread Tali Perry
Nuvoton NPCM7XX Clock Controller fix base address and of_clk_get_by_name error handling. Also update error messages to be more informative. In case clk_base allocation is erronoeous the return value is null. Also fix handling of of_clk_get_by_name returns an error. Print a be

[PATCH v1 1/1] clk: npcm750: fix base address and of_clk_get_by_name error handling. Also update error messages to be more informative

2018-05-01 Thread Tali Perry
Nuvoton NPCM7XX Clock Controller fix base address and of_clk_get_by_name error handling. Also update error messages to be more informative. In case clk_base allocation is erronoeous the return value is null. Also fix handling of of_clk_get_by_name returns an error. Print a be

[PATCH v1 2/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
For generic pinconf: print the dev_error with the pinctrl vendor driver name, error code, the sub-node property name used and the pin that was tried to set. Improves the undestading of the error if use a generic sub-node property that generic-pinconf can do parse but the vendor pinctrl driver does

Suggested new user link command

2018-05-01 Thread Tony Wallace
I am suggesting a new command for linking files.  Currently there is no easy way to link a file with a known inode number to its correct position in the directory tree.   int ilink(const int inode, const char *newpath) The current alternative to this command is to find the file path associated

[PATCH v1 1/2] pinctrl: generic: add API to solve generic sub-node property name

2018-05-01 Thread Matheus Castello
Set dt_params with the definitions of the generic sub-node properties global in pinconf-generic.h and add a function to pinconf-generic API to decode a packed param returning the string name from sub-node property. This can be useful in debug from pinctrl-vendor driver or even for debug in pinconf

[PATCH v1 0/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
This series is for improve verbosity in debug for error cases using pinconf generic API. Legacy pinctrl-vendor drivers prints error messages with more verbosity when parse invalid or not supported sub-nodes properties. In this series we try to show messages with more information about the pinctr

Re: [Xen-devel] [PATCH 4/4] xen/PVH: Remove reserved entry in PVH GDT

2018-05-01 Thread Roger Pau Monné
On Mon, Apr 30, 2018 at 12:23:39PM -0400, Boris Ostrovsky wrote: > And without it we can't use _BOOT_XX macros any longer so define new ones. Not being that familiar with Linux internals I'm not sure I see the benefit of this. Isn't there a risk that some other code is going to use the __BOOT_XX d

Re: [Xen-devel] [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant

2018-05-01 Thread Roger Pau Monné
On Mon, Apr 30, 2018 at 02:07:43PM -0400, Boris Ostrovsky wrote: > On 04/30/2018 12:57 PM, Roger Pau Monné wrote: > > On Mon, Apr 30, 2018 at 12:23:36PM -0400, Boris Ostrovsky wrote: > >> Latest binutils release (2.29.1) will no longer allow proper computation > >> of GDT entries on 32-bits, with w

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-05-01 Thread Kohli, Gaurav
sorry for spam, Adding list On 4/30/2018 4:47 PM, Peter Zijlstra wrote: On Thu, Apr 26, 2018 at 09:23:25PM +0530, Kohli, Gaurav wrote: On 4/26/2018 2:27 PM, Peter Zijlstra wrote: On Thu, Apr 26, 2018 at 10:41:31AM +0200, Peter Zijlstra wrote: diff --git a/kernel/kthread.c b/kernel/kthread.c

Re: [v4.17-rcx] Lost IBPB, IBRS_FW support for spectre_v2 mitigation.

2018-05-01 Thread Jörg Otte
2018-04-30 21:53 GMT+02:00 Thomas Gleixner : > Jörg, > > On Mon, 30 Apr 2018, Jörg Otte wrote: > >> In v4.16 I already had support for BPB, IBRS_FW for spectre_v2 mitigation. >> But this went away in v17-rcx. >> >> With 4.16 I have: >> jojo@fichte:~$ cd /sys/devices/system/cpu/vulnerabilities; grep

[PATCH] arm: dts: am437x-sk-evm: add wilink8 support

2018-05-01 Thread Eyal Reizer
enable mmc3 used for wlan and uart1 used for bluetooth configure the gpios used for wlan and bluetooth controls add fixed voltage regulator used for wlan power control Signed-off-by: Eyal Reizer --- arch/arm/boot/dts/am437x-sk-evm.dts | 115 1 file changed, 1

RE: [EXTERNAL] [tiL4.14-CON PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support

2018-05-01 Thread Reizer, Eyal
Please discard. Wrong patch header. Will resend. Sorry about that. > > enable mmc3 used for wlan and uart1 used for bluetooth > configure the gpios used for wlan and bluetooth controls > add fixed voltage regulator used for wlan power control > > Signed-off-by: Eyal Reizer > --- > arch/arm/boo

[tiL4.14-CON PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support

2018-05-01 Thread Eyal Reizer
enable mmc3 used for wlan and uart1 used for bluetooth configure the gpios used for wlan and bluetooth controls add fixed voltage regulator used for wlan power control Signed-off-by: Eyal Reizer --- arch/arm/boot/dts/am437x-sk-evm.dts | 115 1 file changed, 1

Re: [PATCH] sched/fair: make CFS bandwidth slice per cpu group

2018-05-01 Thread Peter Zijlstra
On Mon, Apr 30, 2018 at 01:37:16PM -0700, Cong Wang wrote: > On Mon, Apr 30, 2018 at 12:42 PM, Peter Zijlstra wrote: > > On Mon, Apr 30, 2018 at 12:29:25PM -0700, Cong Wang wrote: > >> Currently, the sched_cfs_bandwidth_slice_us is a global setting which > >> affects all cgroups. Different groups

Re: [RFC v5 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-05-01 Thread Joe Perches
On Mon, 2018-04-30 at 16:40 -0700, Andrew Morton wrote: > On Wed, 25 Apr 2018 22:13:53 +0800 Yang Shi > wrote: > > > Since tmpfs THP was supported in 4.8, hugetlbfs is not the only > > filesystem with huge page support anymore. tmpfs can use huge page via > > THP when mounting by "huge=" mount o

Re: Hashed pointer issues

2018-05-01 Thread tcharding
On Mon, Apr 30, 2018 at 05:12:05PM +, Linus Torvalds wrote: > On Mon, Apr 30, 2018 at 10:06 AM Randy Dunlap wrote: > > On 04/30/2018 10:01 AM, Linus Torvalds wrote: > > > > > > No kernel command line needed in practice any more. That's assuming any > > > kernel developer will have an IvyBridge

<    3   4   5   6   7   8   9   >