Re: [PATCH v2] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2017-05-02 Thread Christophe LEROY
Le 01/05/2017 à 05:00, Nicholas Piggin a écrit : On Fri, 28 Apr 2017 08:13:01 +0200 (CEST) Christophe Leroy wrote: Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every userspace instruction miss") has shown that limiting the read of faulting instruction to likely cases improves

RE: [PATCH V8 4/5] PCI/ASPM: save power on values during bridge init

2017-05-02 Thread Patel, Mayurkumar
Hi Bjorn > >On Fri, Apr 21, 2017 at 2:46 AM, Patel, Mayurkumar > wrote: >> Hi Bjorn/Kaya, >> >> >>> >>>On 4/17/2017 12:38 PM, Bjorn Helgaas wrote: > Like you said, what do we do by default is the question. Should we opt > for safe like we are doing, or try to save some power. I think

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-02 Thread Eva Rachel Retuya
On Mon, May 01, 2017 at 02:31:00PM +0300, Andy Shevchenko wrote: [...] > > -int adxl345_core_probe(struct device *dev, struct regmap *regmap, > > +int adxl345_core_probe(struct device *dev, struct regmap *regmap, int irq, > >const char *name); > > I think I commented this o

[PATCH V3 2/2] mfd: Add ROHM BD9571MWV-M MFD PMIC driver

2017-05-02 Thread Marek Vasut
Add the MFD part of the ROHM BD9571MWV-M PMIC driver and MAINTAINERS entry. The MFD part only specifies the regmap bits for the PMIC and binds the subdevs together. Signed-off-by: Marek Vasut Cc: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven Cc: Lee Jones --- V2: - Change BD9571MWV_AVS_VD

Re: [PATCH v3 2/3] arm64: kvm: inject SError with virtual syndrome

2017-05-02 Thread gengdongjiu
Hello Christoffer. On 2017/5/2 16:03, Christoffer Dall wrote: > On Sun, Apr 30, 2017 at 01:37:56PM +0800, Dongjiu Geng wrote: >> when SError happen, kvm notifies kvmtool to generate GHES table >> to record the error, then kvmtools inject the SError with specified > > again, is this really specif

Re: [PATCH v2 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-05-02 Thread Eva Rachel Retuya
On Mon, May 01, 2017 at 01:42:29AM +0100, Jonathan Cameron wrote: [...] > Few minor bits inline... I'm a little bit in two minds about the > holding up waiting for new data when using another trigger... > > Jonathan [...] > > static int adxl345_read_raw(struct iio_dev *indio_dev, > > @@ -127,6

Re: [PATCH v3 1/3] arm64: kvm: support kvmtool to detect RAS extension feature

2017-05-02 Thread gengdongjiu
Hi Christoffer, thanks for your review and comments. On 2017/5/2 15:56, Christoffer Dall wrote: > Hi Dongjiu, > > Please send a cover letter for patch series with more than a single > patch. OK, got it. > > The subject and description of these patches are also misleading. > Hopefully this i

Re: [PATCH v2 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-05-02 Thread Eva Rachel Retuya
On Mon, May 01, 2017 at 02:24:27PM +0300, Andy Shevchenko wrote: [...] > One nit below. > FWIW: > Reviewed-by: Andy Shevchenko > > > +static irqreturn_t adxl345_trigger_handler(int irq, void *p) > > +{ > > + struct iio_poll_func *pf = p; > > + struct iio_dev *indio_dev = pf->indio_dev

Re: [PATCH] Remove ARM errata Workarounds 458693 and 460075

2017-05-02 Thread Robin Murphy
On 18/04/17 16:57, Catalin Marinas wrote: > On Sun, Apr 16, 2017 at 09:04:46AM +0100, Russell King - ARM Linux wrote: >> On Sat, Apr 15, 2017 at 07:06:06PM -0500, Nisal Menuka wrote: >>> According to ARM, these errata exist only in a version of Cortex-A8 >>> (r2p0) which was never built. Therefore,

Re: [PATCH] tty: serdev: fix serdev_device_write return value

2017-05-02 Thread Rob Herring
On Tue, May 2, 2017 at 4:25 AM, Johan Hovold wrote: > On Mon, May 01, 2017 at 07:17:14PM -0500, Rob Herring wrote: >> Commit 6fe729c4bdae ("serdev: Add serdev_device_write subroutine") >> provides a compatibility wrapper for the existing >> serdev_device_write_buf, but it fails to return the numbe

[PATCH 0/3] tpm_pcr_extend() code split

2017-05-02 Thread Roberto Sassu
This patch set moves TPM 1.2 specific code to a new function called tpm1_pcr_extend(). The purpose of splitting is to isolate TPM 2.0 code, so that it can be more easily modified to handle multiple digests. With TPM 2.0, a Platform Configuration Register (PCR) could have multiple values, stored in

[PATCH 1/3] tpm: use CPU native value for TPM_TAG_RQU_COMMAND

2017-05-02 Thread Roberto Sassu
In the long term, TPM 1.2 functions in the driver interface will be converted to use tpm_buf_init(). However, tag and ordinals cannot be passed directly to tpm_buf_init(), because this function performs CPU native to big-endian conversion of these arguments. Since TPM_TAG_RQU_COMMAND and TPM_ORD_

[PATCH 2/3] tpm: move ordinals definition to include/linux/tpm_command.h

2017-05-02 Thread Roberto Sassu
Move definition from tpm-interface.c to tpm_command.h, so that there is no duplication. Also convert the ordinals in the tpm_input_header declarations. With the previous and this patch it will now be possible to convert TPM 1.2 functions to use tpm_buf_init(), which expect CPU native value for the

[PATCH 3/3] tpm: move TPM 1.2 code of tpm_pcr_extend() to tpm1_pcr_extend()

2017-05-02 Thread Roberto Sassu
In preparation of the modifications to tpm_pcr_extend(), which will allow callers to supply a digest for each PCR bank of a TPM 2.0, the TPM 1.2 specific code has been moved to tpm1_pcr_extend(). tpm1_pcr_extend() uses tpm_buf_init() to prepare the command buffer, which offers protection against b

[PATCH v2] iio: stm32 trigger: Add support for TRGO2 triggers

2017-05-02 Thread Fabrice Gasnier
Add support for TRGO2 trigger that can be found on STM32F7. Add additional master modes supported by TRGO2. Register additional "tim[1/8]_trgo2" triggers for timer1 & timer8. Detect TRGO2 timer capability (master mode selection 2). Signed-off-by: Fabrice Gasnier Acked-by: Benjamin Gaignard --- C

Re: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo

2017-05-02 Thread Mark Rutland
On Tue, May 02, 2017 at 12:08:27PM +0100, Catalin Marinas wrote: > On Tue, May 02, 2017 at 12:39:13AM +0200, Heinrich Schuchardt wrote: > > There is no need to hide the model name in processes > > that are not PER_LINUX32. > > > > So let us always provide a model name that is easily readable. > >

Re: [PATCH] iio: stm32 trigger: Add support for TRGO2 triggers

2017-05-02 Thread Fabrice Gasnier
On 04/30/2017 07:07 PM, Jonathan Cameron wrote: > On 28/04/17 15:52, Fabrice Gasnier wrote: >> On 04/27/2017 07:49 AM, Jonathan Cameron wrote: >>> On 26/04/17 09:55, Benjamin Gaignard wrote: 2017-04-26 10:17 GMT+02:00 Fabrice Gasnier : > Add support for TRGO2 trigger that can be found on S

[PATCH] security: Use user_namespace::level to avoid redundant iterations in cap_capable()

2017-05-02 Thread Kirill Tkhai
When ns->level is not larger then cred->user_ns->level, then ns can't be cred->user_ns's descendant, and there is no a sence to search in parents. So, breake the cycle earlier and skip needless iterations. Signed-off-by: Kirill Tkhai --- security/commoncap.c |7 +-- 1 file changed, 5 in

Re: [PATCH] serdev: Restore serdev_device_write_buf for atomic context

2017-05-02 Thread Rob Herring
On Tue, May 2, 2017 at 4:06 AM, Johan Hovold wrote: > On Fri, Apr 28, 2017 at 01:47:21PM +0200, Stefan Wahren wrote: >> Starting with commit 6fe729c4bdae ("serdev: Add serdev_device_write >> subroutine") the function serdev_device_write_buf cannot be used in >> atomic context anymore (mutex_lock i

Re: linux-next: build warnings

2017-05-02 Thread Michael Ellerman
Stephen Rothwell writes: > On Tue, 02 May 2017 19:53:25 +1000 Michael Ellerman > wrote: >> >> Though we are supposed to be building with -Werror, so those should be >> breaking the build. I assume you have turned Werror off? > > I assume that allyesconfig turns on CONFIG_PPC_DISABLE_WERROR ...

Re: [PATCH] srcu: Debloat the header

2017-05-02 Thread Paul E. McKenney
On Tue, May 02, 2017 at 03:25:03AM -0700, Paul E. McKenney wrote: > On Tue, May 02, 2017 at 10:31:18AM +0200, Ingo Molnar wrote: > > > > * Ingo Molnar wrote: > > > > > > I will get rid of the unused rcu_segcblist_extract_all() function and > > > > create a > > > > kernel/rcu/segcblist.c for th

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 10:06:01, Vlastimil Babka wrote: > On 04/27/2017 05:06 PM, Michal Hocko wrote: > > On Tue 25-04-17 12:42:57, Joonsoo Kim wrote: > >> On Mon, Apr 24, 2017 at 03:09:36PM +0200, Michal Hocko wrote: > >>> On Mon 17-04-17 11:02:12, Joonsoo Kim wrote: > On Thu, Apr 13, 2017 at 01:56:

[PATCH V2 2/3] x86/numa_emulation: assign physnode_mask directly from numa_nodes_parsed

2017-05-02 Thread Wei Yang
numa_init() has already called init_func(), which is responsible for setting numa_nodes_parsed, so use this nodemask instead of re-finding it when calling numa_emulation(). This patch gets the physnode_mask directly from numa_nodes_parsed. At the same time, it corrects the comment of these two fun

[PATCH V2 1/3] x86/numa_emulation: fix potential memory leak

2017-05-02 Thread Wei Yang
numa_emulation() needs to allocate a space for phys_dist[] temporarily, while current code may miss to release this when dfl_phys_nid == NUMA_NO_NODE. It is observed in code review instead of in a real case. This patch fixes this by re-order the code path. Signed-off-by: Wei Yang Acked-by: David

[PATCH V2 3/3] x86/numa_emulation: restructures numa_nodes_parsed from emulated nodes

2017-05-02 Thread Wei Yang
By emulating numa, it may contains more or less nodes than physical nodes. In numa_emulation(), numa_meminfo/numa_distance/__apicid_to_node is restructured according to emulated nodes, except numa_nodes_parsed. This patch restructures numa_nodes_parsed from emulated nodes. Signed-off-by: Wei Yang

[PATCH V2 0/3] Refine numa_emulation

2017-05-02 Thread Wei Yang
My previous patch "x86/mm/numa: Remove numa_nodemask_from_meminfo()" hits a problem in numa_emulation. The reason is numa_nodes_parsed is not set correctly after emulation. This patch set tries to fix this and also with two code refine. Detailed discussions are in this thread: https://lkml.o

Re: [PATCH 2/3] x86/numa_emulation: assign physnode_mask directly from numa_nodes_parsed

2017-05-02 Thread Wei Yang
On Mon, May 01, 2017 at 02:37:06PM -0700, David Rientjes wrote: >On Tue, 11 Apr 2017, Wei Yang wrote: > >> On Mon, Apr 10, 2017 at 05:26:03PM -0700, David Rientjes wrote: >> >On Tue, 11 Apr 2017, Wei Yang wrote: >> > >> >> According to current code path, numa_nodes_parsed is already setup when >> >

[PATCH 0/9] net: thunderx: Adds XDP support

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham This patch series adds support for XDP to ThunderX NIC driver which is used on CN88xx, CN81xx and CN83xx platforms. Patches 1-4 are performance improvement and cleanup patches which are done keeping XDP performance bottlenecks in view. Rest of the patches adds actual XDP sup

[PATCH 7/9] net: thunderx: Add support for XDP_TX

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Adds support for XDP_TX i.e transmits packet out of the XDP TX queue mapped to the corresponding Rx queue on which packet is received. Since SQ for XDP TX will be used only on a single cpu i.e SQ description creation and freeing, using atomic free count is not necessary and w

[PATCH 4/9] net: thunderx: Cleanup receive buffer allocation

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Get rid of unnecessary double pointer references and type casting in receive buffer allocation code. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dr

[PATCH 6/9] net: thunderx: Add support for XDP_DROP

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Adds support for XDP_DROP. Also since in XDP mode there is just a single buffer per page, made changes to recycle DMA mapping info as well along with pages. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 23 ++- drivers/net/etherne

[PATCH 1/9] net: thunderx: Support for page recycling

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Adds support for page recycling for allocating receive buffers to reduce cost of refilling RBDR ring. Also got rid of using compound pages when pagesize is 4K, only order-0 pages now. Only page is recycled, DMA mappings still needs to be done for every receive buffer allocate

[PATCH 9/9] net: thunderx: Optimize page recycling for XDP

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Driver follows a method of taking one extra reference on the page for recycling which is fine in usual packet path where each 64KB page is segmented into multiple receive buffers. But in XDP mode since there is just one receive buffer per page taking extra page reference itse

[PATCH 8/9] net: thunderx: Support for XDP header adjustment

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham When in XDP mode reserve XDP_PACKET_HEADROOM bytes at the start of receive buffer for XDP program to modify headers and adjust packet start. Additional code changes done to handle such packets. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.

[PATCH 5/9] net: thunderx: Add basic XDP support

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Adds basic XDP support i.e attaching a BPF program to an interface. Also takes care of allocating separate Tx queues for XDP path and for network stack packet transmission. This patch doesn't support handling of any of the XDP actions, all are treated as XDP_PASS i.e packets

[PATCH 3/9] net: thunderx: Optimize CQE_TX handling

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Optimized CQE handling with below changes - Feeing descriptors back to SQ in bulk i.e once per NAPI instance instead for every CQE_TX, this will reduce number of atomic updates to 'sq->free_cnt'. - Checking errors in CQE_TX and CQE_RX before calling appropriate fn()s to

[PATCH 2/9] net: thunderx: Optimize RBDR descriptor handling

2017-05-02 Thread sunil . kovvuri
From: Sunil Goutham Receive buffer's physical address or iova will anyway not go beyond 49bits, since it is the max supported HW address. As per perf, updating bitfields i.e buf_addr:42 in RBDR descriptor entry consumes lots of cpu cycles, hence changed it to a 64bit field with alignment requirem

Re: [PATCH 0/3] net-SCTP: Fine-tuning for six function implementations

2017-05-02 Thread Neil Horman
On Mon, May 01, 2017 at 03:30:25PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 1 May 2017 15:25:05 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > Replace six seq_printf() calls by seq_putc() > C

[PATCH] mm/nobootmem: return 0 when start_pfn equals end_pfn

2017-05-02 Thread Wei Yang
When start_pfn equals end_pfn, __free_pages_memory() takes no effect and __free_memory_core() will finally return (end_pfn - start_pfn) = 0. This patch returns 0 directly when start_pfn equals end_pfn. Signed-off-by: Wei Yang --- mm/nobootmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] serdev: Restore serdev_device_write_buf for atomic context

2017-05-02 Thread Johan Hovold
On Tue, May 02, 2017 at 07:41:34AM -0500, Rob Herring wrote: > On Tue, May 2, 2017 at 4:06 AM, Johan Hovold wrote: > > On Fri, Apr 28, 2017 at 01:47:21PM +0200, Stefan Wahren wrote: > >> Starting with commit 6fe729c4bdae ("serdev: Add serdev_device_write > >> subroutine") the function serdev_devic

[PATCH] bluetooth: hci_uart: fix kconfig dependency

2017-05-02 Thread Tobias Regnery
We see the following link error with CONFIG_BT_HCIUART=y, CONFIG_BT_HCIUART_LL=y and CONFIG_SERIAL_DEV_BUS=m: drivers/built-in.o: In function 'll_close': supp.c:(.text+0x55add4): undefined reference to 'serdev_device_close' supp.c:(.text+0x55add4): relocation truncated to fit: R_AARCH64_CALL26 aga

Re: [PATCH 00/10] fujitsu-laptop: use device-specific data instead of module-wide globals

2017-05-02 Thread Michał Kępień
> Hi Michael > > On Mon, Apr 24, 2017 at 03:33:24PM +0200, Micha?? K??pie?? wrote: > > fujitsu-laptop registers two ACPI drivers. Whenever an ACPI device with > > a matching identifier is found by the ACPI bus, a new instance of the > > relevant driver is bound to that ACPI device. However, both

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-05-02 Thread Jerome Glisse
On Tue, May 02, 2017 at 02:37:46PM +0300, Kirill A. Shutemov wrote: > On Mon, May 01, 2017 at 09:55:48AM -0400, Jerome Glisse wrote: > > On Mon, May 01, 2017 at 01:23:59PM +0300, Kirill A. Shutemov wrote: > > > On Sun, Apr 30, 2017 at 07:14:24PM -0400, Jerome Glisse wrote: > > > > On Sat, Apr 29, 2

Re: [PATCH 01/10] platform/x86: fujitsu-laptop: introduce fext_*() helper functions

2017-05-02 Thread Michał Kępień
> > @@ -272,9 +292,9 @@ static int bl_get_brightness(struct backlight_device *b) > > static int bl_update_status(struct backlight_device *b) > > { > > if (b->props.power == FB_BLANK_POWERDOWN) > > - call_fext_func(FUNC_BACKLIGHT, 0x1, 0x4, 0x3); > > + fext_backlight(0x1, 0

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Vincent Guittot
Hi Tejun, Le Tuesday 02 May 2017 à 09:18:53 (+0200), Vincent Guittot a écrit : > On 28 April 2017 at 22:33, Tejun Heo wrote: > > Hello, Vincent. > > > > On Thu, Apr 27, 2017 at 10:29:10AM +0200, Vincent Guittot wrote: > >> On 27 April 2017 at 00:52, Tejun Heo wrote: > >> > Hello, > >> > > >> > O

Re: [PATCH] x86/mm: trivial code cleanup for memory_map_top_doown()

2017-05-02 Thread Wei Yang
Hi, Borislav and all Do you agree with my analysis or you have other comments? On Tue, Mar 14, 2017 at 11:56:39AM +0800, Wei Yang wrote: >On Mon, Mar 13, 2017 at 07:50:21PM +0100, Borislav Petkov wrote: >>On Fri, Feb 17, 2017 at 10:30:33PM +0800, Wei Yang wrote: >>> In case (last_start <= step_si

Re: [PATCH] bitops.h: use BITS_PER_LONG to simplify BITS_TO_LONGS

2017-05-02 Thread Wei Yang
Hi, masters Not sure this one is acceptable? On Sat, Mar 18, 2017 at 08:37:43AM +0800, Wei Yang wrote: >The second parameter is the number of bits for type "long", which is >already defined in header file. > >This patch replace the calculation with macro to make it more readable. > >Signed-off-by

Re: vger.kernel.org mail queue issue?

2017-05-02 Thread afzal mohammed
Hi, On Mon, May 01, 2017 at 10:50:57AM -0400, David Miller wrote: > From: afzal mohammed > > On Wed, Jan 11, 2017 at 09:07:35PM -0500, David Miller wrote: > >> From: Florian Fainelli > >> > I am seeing emails being received right now from @vger.kernel.org that > >> > seem to be from this mornin

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 13:01:32, Joonsoo Kim wrote: > On Thu, Apr 27, 2017 at 05:06:36PM +0200, Michal Hocko wrote: [...] > > I see this point and I agree that using a specific zone might be a > > _nicer_ solution in the end but you have to consider another aspects as > > well. The main one I am worried a

[PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Gerd Hoffmann
It's unused. Suggested-by: Daniel Vetter Signed-off-by: Gerd Hoffmann --- include/uapi/drm/drm_fourcc.h | 2 -- drivers/gpu/drm/drm_fourcc.c | 3 +-- drivers/gpu/drm/drm_framebuffer.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/uapi/drm/drm_fourcc.h b

[PATCH 2/3] drm: fourcc byteorder: add DRM_FORMAT_CPU_*

2017-05-02 Thread Gerd Hoffmann
Add fourcc variants in cpu byte order. With these at hand we don't need #ifdefs in drivers want support framebuffers in cpu endianess. Signed-off-by: Gerd Hoffmann --- include/drm/drm_fourcc.h | 12 1 file changed, 12 insertions(+) diff --git a/include/drm/drm_fourcc.h b/include/d

[PATCH 3/3] drm: fourcc byteorder: add drm_mode_legacy_fb_format_he

2017-05-02 Thread Gerd Hoffmann
Add drm_mode_legacy_fb_format variant which returns fourcc codes for framebuffer format in host byte order. Signed-off-by: Gerd Hoffmann --- include/drm/drm_fourcc.h | 3 +++ drivers/gpu/drm/drm_fourcc.c | 54 +++- 2 files changed, 56 insertions(+), 1

Re: [PATCH v2] sched/fair: update scale invariance of PELT

2017-05-02 Thread Vincent Guittot
On 1 May 2017 at 11:00, Peter Zijlstra wrote: > On Sat, Apr 29, 2017 at 12:09:24AM +0200, Peter Zijlstra wrote: >> On Mon, Apr 10, 2017 at 11:18:29AM +0200, Vincent Guittot wrote: >> > +++ b/include/linux/sched.h >> > @@ -313,6 +313,7 @@ struct load_weight { >> > */ >> > struct sched_avg { >> >

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-05-02 Thread Igor Stoppa
On 02/05/17 16:03, Michal Hocko wrote: > I can imagine that we could make ZONE_CMA configurable in a way that > only very well defined use cases would be supported so that we can save > page flags space. But this alone sounds like a maintainability nightmare > to me. Especially when I consider ZON

[PATCH] mm, vmalloc: properly track vmalloc users

2017-05-02 Thread Michal Hocko
From: Michal Hocko __vmalloc_node_flags used to be static inline but this has changed by "mm: introduce kv[mz]alloc helpers" because kvmalloc_node needs to use it as well and the code is outside of the vmalloc proper. I haven't realized that changing this will lead to a subtle bug though. The fun

[PATCH] power: Add ltc3651-charger driver

2017-05-02 Thread Mike Looijmans
The LTC3651 reports its status via GPIO lines. This driver translates the GPIO levels to battery charger status information via sysfs. It relies on devicetree to supply the IO configuration. Signed-off-by: Mike Looijmans --- I'll send the devicetree binding documentation in a separate patch. dr

[GIT PULL] printk for 4.12

2017-05-02 Thread Petr Mladek
Linus, please pull the latest printk changes from git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git for-linus == - There is a situation when early console is not deregistered because the preferred one matches a wrong entry. It caused messages to appear twice. Thi

Re: [PATCH 4.4 00/43] 4.4.66-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 09:59 PM, kernelci.org bot wrote: > stable-rc/linux-4.4.y boot: 100 boots: 0 failed, 100 passed > (v4.4.65-44-gbb57d8400b2e) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.65-44-gbb57d8400b2e/ > Full Build Summary: > https://ker

Re: [PATCH v2 29/30] dt-bindings: add vendor prefix for bananapi

2017-05-02 Thread Rob Herring
+arm-soc On Mon, May 1, 2017 at 1:58 AM, Sean Wang wrote: > On Fri, 2017-04-28 at 15:37 -0500, Rob Herring wrote: >> On Wed, Apr 26, 2017 at 05:26:13PM +0800, sean.w...@mediatek.com wrote: >> > From: Sean Wang >> > >> > Banana Pi team in Sinovoip Co., Limited which are dedicated to >> > design a

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Emil Velikov
Hi Gerd, I did not have the change to follow through the discussion. Pardon if my suggestion have already been discussed. On 2 May 2017 at 14:34, Gerd Hoffmann wrote: > It's unused. > > Suggested-by: Daniel Vetter > Signed-off-by: Gerd Hoffmann > --- > include/uapi/drm/drm_fourcc.h | 2 --

Re: [PATCH 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 10:59 PM, kernelci.org bot wrote: > stable-rc/linux-4.10.y boot: 87 boots: 0 failed, 87 passed > (v4.10.13-63-gcabfe9402479) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.10.y/kernel/v4.10.13-63-gcabfe9402479/ > Full Build Summary: > https://k

Re: [PATCH 4.9 00/54] 4.9.26-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 10:19 PM, kernelci.org bot wrote: > stable-rc/linux-4.9.y boot: 96 boots: 0 failed, 96 passed > (v4.9.25-55-g49bccd4690a2) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.25-55-g49bccd4690a2/ > Full Build Summary: > https://kerne

[PATCH 0/6] mailbox: arm_mhu: add support for subchannels

2017-05-02 Thread Sudeep Holla
Hi Jassi, This series adds subchannel support to ARM MHU mailbox controller driver. Since SCPI never used second slot, we were able to use the existing driver as is. However, that's changing soon and the new SCMI protocol under development needs subchannel support. If you recall when you initially

[PATCH 1/6] mailbox: arm_mhu: reorder header inclusion and drop unneeded ones

2017-05-02 Thread Sudeep Holla
This patch just re-orders some of the headers includes and also drop the ones that are unnecessary. Cc: Alexey Klimov Cc: Jassi Brar Signed-off-by: Sudeep Holla --- drivers/mailbox/arm_mhu.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/mailbox/arm_mhu

[PATCH 4/6] mailbox: arm_mhu: re-factor data structure to add subchannel support

2017-05-02 Thread Sudeep Holla
In order to support subchannels, we need a bit of reword around data structures that are per-channel. Since the number of subchannels are not fixed though restricted to maximum of 20, the channel assignment and initialization is move to xlate function. This patch also adds the platform data for th

[PATCH 6/6] mailbox: arm_mhu: add name support to record mbox-name

2017-05-02 Thread Sudeep Holla
It's sometimes useful to identify the mailbox controller with the name as specified in the devicetree via mbox-name property especially in a system with multiple controllers. This patch adds support to read and record the mailbox controller name. Cc: Alexey Klimov Cc: Jassi Brar Signed-off-by:

[PATCH 3/6] mailbox: arm_mhu: migrate to threaded irq handler

2017-05-02 Thread Sudeep Holla
In preparation to introduce support for subchannels which require the interrupt handlers to be threaded, this patch moves the existing interrupt handler to threaded handler. Also it moves out the registering and freeing of the handlers from the mailbox startup and shutdown methods. This also is re

[PATCH 2/6] Documentation: devicetree: add bindings to support ARM MHU subchannels

2017-05-02 Thread Sudeep Holla
The ARM MHU has mechanism to assert interrupt signals to facilitate inter-processor message based communication. It drives the signal using a 32-bit register, with all 32-bits logically ORed together. It also enables software to set, clear and check the status of each of the bits of this register i

[PATCH 5/6] mailbox: arm_mhu: add full support for sub-channels

2017-05-02 Thread Sudeep Holla
We now have the basic infrastructure and binding to support subchannels on ARM MHU controller. This patch adds all the necessary mailbox operations to add support for the sub-channels. Maximum of 32 subchannels are supported on each physical channel, however the total number of subchannels is rest

RE: [PATCH 3/4] net: macb: Add hardware PTP support

2017-05-02 Thread Rafal Ozieblo
> From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: 14 kwietnia 2017 20:29 > To: Rafal Ozieblo > Cc: David Miller ; nicolas.fe...@atmel.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > harinikatakamli..

Re: [PATCH RFC v2 5/6] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option

2017-05-02 Thread Djalal Harouni
Hello Andy, (Sorry for my late response) On Thu, Apr 27, 2017 at 12:09 AM, Andy Lutomirski wrote: > On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: >> If "limit_pids=1" mount option is set then do not instantiate pids that >> we can not ptrace. "limit_pids=1" means that procfs should onl

Re: [RESEND PATCH] spi: bcm63xx-hsspi: Export OF device ID table as module aliases

2017-05-02 Thread Jonas Gorski
On 1 May 2017 at 22:13, Andres Galacho wrote: > The device table is required to load modules based on > modaliases. After adding MODULE_DEVICE_TABLE, below entries > for example will be added to module.alias: > alias: of:N*T*Cbrcm,bcm6328-hsspiC* > alias: of:N*T*Cbrcm,bcm6328-hss

error value for "internal error"

2017-05-02 Thread Miklos Szeredi
I've been wondering what to return for soft asserts like this: if (WARN_ON(something unexpected)) return -E; EINVAL doesn't fit because it means the input from userspace was wrong. EIO means something went bad with the hardware. There's no "software error" or "intern

Re: [PATCH] tools/kvm: fix top level makefile

2017-05-02 Thread Paolo Bonzini
On 11/04/2017 17:34, Justin M. Forbes wrote: > The top level tools/Makefile includes kvm_stat as a target in help, but > the actual target is missing. > > Signed-off-by: Justin M. Forbes > --- > tools/Makefile | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/

[PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Laxman Dewangan
The PWM hardware IP is taped-out with different maximum frequency on different SoCs. >From HW team: Before Tegra186, it is 38.4MHz. In Tegra186, it is 102MHz. Add support to limit the clock source frequency to the maximum IP supported frequency. Provide these values via SoC chipda

Re: net/ipv6: warning in inet6_ifa_finish_destroy

2017-05-02 Thread Mike Manning
On 28/04/17 21:39, Cong Wang wrote: > On Fri, Apr 28, 2017 at 6:08 AM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 5a7ad1146caa895ad718a534399e38bd2ba721b7 (4.11-rc8). >> >> C reproducer and .config are attach

Re: [v6,10/23] drivers/fsi: Add device read/write/peek API

2017-05-02 Thread Eddie James
On Apr 10, 2017, at 3:46 PM, Christopher Bostic wrote: From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic and Edward A. James . Signed-off-by: Edward A. James Signed-of

Re: [PATCH v4 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-05-02 Thread Rob Herring
On Tue, May 2, 2017 at 6:23 AM, Guillaume Tucker wrote: > Hi Rob, > > On 28/04/17 20:27, Rob Herring wrote: >> >> On Tue, Apr 25, 2017 at 02:16:16PM +0100, Guillaume Tucker wrote: > > >>> diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt >>> b/Documentation/devicetree/binding

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Gerd Hoffmann
> > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > > index 995c8f9c69..305bc34be0 100644 > > --- a/include/uapi/drm/drm_fourcc.h > > +++ b/include/uapi/drm/drm_fourcc.h > > @@ -33,8 +33,6 @@ extern "C" { > > #define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) <<

Re: 4.8.8 kernel trigger OOM killer repeatedly when I have lots of RAM that should be free

2017-05-02 Thread Marc MERLIN
On Tue, May 02, 2017 at 09:44:33AM +0200, Michal Hocko wrote: > On Mon 01-05-17 21:12:35, Marc MERLIN wrote: > > Howdy, > > > > Well, sadly, the problem is more or less back is 4.11.0. The system doesn't > > really > > crash but it goes into an infinite loop with > > [34776.826800] BUG: workqueu

Re: [GIT PULL] PCI fixes for v4.10

2017-05-02 Thread Sinan Kaya
On 5/2/2017 6:49 AM, Lukas Wunner wrote: > On Mon, May 01, 2017 at 10:41:20PM -0400, Sinan Kaya wrote: >> On 5/1/2017 9:54 PM, Lukas Wunner wrote: >>> (b) ASPM L1 enabled on boot, but disabled after powering off and back on >>> => I believe Sinan is working on this (+cc). >> >> The decision was

Re: [usb-host] question about pointer dereference before null check

2017-05-02 Thread Alan Stern
On Mon, 1 May 2017, Gustavo A. R. Silva wrote: > Hello everybody, > > While taking a look into Coverity ID 100828 I ran into the following > piece of code at drivers/usb/host/ehci-sched.c:1096: > > u32 addr; > int think_time; > int hs_transfers; > > addr =

Hopefully

2017-05-02 Thread Rita Micheal
Dear friend, My name is Mr Micheal Rita, I am the Bill and Exchange (assistant) Manager of Bank of Africa Ouagadougou, Burkina Faso. In my department I discovered an abandoned sum of teen million five hundred thousand United State of American dollars (10.5MILLION USA DOLLARS) in an account that be

[PATCH 0/6] md: Fine-tuning for some function implementations

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 16:12:34 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Replace seven seq_printf() calls by seq_putc() Replace 17 seq_printf() calls by seq_puts() Adjust four function calls together wit

[PATCH] Revert "KVM: Support vCPU-based gfn->hva cache"

2017-05-02 Thread Paolo Bonzini
This reverts commit bbd6411513aa8ef3ea02abab61318daf87c1af1e. I've been sitting on this revert for too long and it unfortunately missed 4.11. It's also the reason why I haven't merged ring-based dirty tracking for 4.12. Using kvm_vcpu_memslots in kvm_gfn_to_hva_cache_init and kvm_vcpu_write_gues

[PATCH 1/6] md: Replace seven seq_printf() calls by seq_putc()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 14:01:17 +0200 A few single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/md/md.c | 16 1

[PATCH 2/6] md: Replace 17 seq_printf() calls by seq_puts()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 14:22:45 +0200 Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers

[PATCH 3/6] md: Adjust four function calls together with a variable assignment

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:07:21 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix affected source code places. Signed-off-by: Markus Elfring --- drivers/md/md.c | 12 1 file chan

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Pekka Paalanen
On Tue, 2 May 2017 14:53:43 +0100 Emil Velikov wrote: > Hi Gerd, > > I did not have the change to follow through the discussion. > Pardon if my suggestion have already been discussed. > > On 2 May 2017 at 14:34, Gerd Hoffmann wrote: > > It's unused. > > > > Suggested-by: Daniel Vetter > > Sig

Re: [patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration

2017-05-02 Thread Luiz Capitulino
On Tue, 25 Apr 2017 10:57:19 -0300 Marcelo Tosatti wrote: > The per-CPU vmstat worker is a problem on -RT workloads (because > ideally the CPU is entirely reserved for the -RT app, without > interference). The worker transfers accumulated per-CPU > vmstat counters to global counters. This is a

[PATCH 4/6] md: Use seq_puts() in faulty_status()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:20:30 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

[PATCH 5/6] md: Adjust six function calls together with a variable assignment in faulty_status()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:35:35 +0200 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/md/faulty.c | 19 -

Re: [PATCH RFC v2 4/6] proc: support mounting private procfs instances inside same pid namespace

2017-05-02 Thread Djalal Harouni
On Thu, Apr 27, 2017 at 12:13 AM, Andy Lutomirski wrote: > On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: [...] >> We have to align procfs and modernize it to have a per mount context >> where at least the mount option do not propagate to all other mounts, >> then maybe we can continue to

[PATCH 6/6] md: Add some spaces for better code readability

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 16:00:45 +0200 Use space characters and blank lines at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/faulty.c | 27 +++ 1 file changed, 15 insertions(+), 12

Re: [PATCH] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Alan Stern
On Mon, 1 May 2017, Gustavo A. R. Silva wrote: > Add null check before dereferencing dev->regs pointer inside > net2280_led_shutdown() function. > > Addresses-Coverity-ID: 101783 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/usb/gadget/udc/net2280.c | 8 +--- > 1 file changed, 5 inse

Re: [PATCH] md/bitmap: use i_blocksize()

2017-05-02 Thread Geliang Tang
On Sun, Jan 22, 2017 at 09:50:30AM +0800, Geliang Tang wrote: > On Sat, Jan 21, 2017 at 10:13:07AM -0800, Shaohua Li wrote: > > On Fri, Jan 20, 2017 at 10:29:52PM +0800, Geliang Tang wrote: > > > Since i_blocksize() helper has been defined in fs.h, use it instead > > > of open-coding. > > > > whic

Re: [PATCH 00/14] sched/topology fixes

2017-05-02 Thread Peter Zijlstra
On Fri, Apr 28, 2017 at 03:53:39PM +0200, Peter Zijlstra wrote: > Also, the following occurred to me: > > sg_span & sg_mask == sg_mask > > Therefore, we don't need to do the whole "sg_span &" business. > > Hmm? > @@ -856,7 +857,7 @@ build_sched_groups(struct sched_domain * >

[PATCH V2 0/3] try to save some memory for kmem_cache in some cases

2017-05-02 Thread Wei Yang
kmem_cache is a frequently used data in kernel. During the code reading, I found maybe we could save some space in some cases. 1. On 64bit arch, type int will occupy a word if it doesn't sit well. 2. cpu_slab->partial is just used when CONFIG_SLUB_CPU_PARTIAL is set 3. cpu_partial is just used whe

[PATCH V2 1/3] mm/slub: pack red_left_pad with another int to save a word

2017-05-02 Thread Wei Yang
On 64bit arch, struct is 8-bytes aligned, so int will occupy a word if it doesn't sits well. This patch pack red_left_pad with reserved to save 8 bytes for struct kmem_cache on a 64bit arch. Signed-off-by: Wei Yang --- include/linux/slub_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH V2 3/3] mm/slub: wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL

2017-05-02 Thread Wei Yang
kmem_cache->cpu_partial is just used when CONFIG_SLUB_CPU_PARTIAL is set, so wrap it with config CONFIG_SLUB_CPU_PARTIAL will save some space on 32bit arch. This patch wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL and wrap its sysfs too. Signed-off-by: Wei Yang --- v2: define s

<    1   2   3   4   5   6   7   >