Re: [PATCH v4 2/4] zram: implement deduplication in zram

2017-04-26 Thread Joonsoo Kim
On Wed, Apr 26, 2017 at 03:21:04PM +0900, Sergey Senozhatsky wrote: > On (04/26/17 15:04), Joonsoo Kim wrote: > > On Wed, Apr 26, 2017 at 01:02:43PM +0900, Sergey Senozhatsky wrote: > > > On (04/26/17 09:52), js1...@gmail.com wrote: > > > [..] > > > > > > > > Elapsed time: out/host: 88 s > > > > m

[PATCH] drm/rockchip: Set line flag config register in vop_crtc_enable

2017-04-26 Thread Jeffy Chen
We need to set vop config done after update line flag config, it's a new requirement for chips newer than rk3368. Since we would only use line flag irq for vact_end, let's move it to vop_crtc_enable. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 4 ++-- driv

Re: [PATCH v2 01/21] scatterlist: Introduce sg_map helper functions

2017-04-26 Thread Christoph Hellwig
On Wed, Apr 26, 2017 at 12:11:33PM -0600, Logan Gunthorpe wrote: > Ok, well for starters I think you are mistaken about kmap being able to > fail. I'm having a hard time finding many users of that function that > bother to check for an error when calling it. A quick audit of the arch code shows yo

Re: [PATCH V2] x86/tboot: add an option to disable iommu force on

2017-04-26 Thread Ingo Molnar
* Joerg Roedel wrote: > On Wed, Apr 26, 2017 at 09:18:35AM -0700, Shaohua Li wrote: > > IOMMU harms performance signficantly when we run very fast networking > > workloads. It's 40GB networking doing XDP test. Software overhead is > > almost unaware, but it's the IOTLB miss (based on our analysi

Re: [PATCH V2] x86/tboot: add an option to disable iommu force on

2017-04-26 Thread Ingo Molnar
* Shaohua Li wrote: > IOMMU harms performance signficantly when we run very fast networking > workloads. It's 40GB networking doing XDP test. Software overhead is > almost unaware, but it's the IOTLB miss (based on our analysis) which > kills the performance. We observed the same performance iss

[PATCH v2] gpiolib: Add stubs for gpiod lookup table interface

2017-04-26 Thread Anatolij Gustschin
Add stubs for gpiod_add_lookup_table() and gpiod_remove_lookup_table() for the !GPIOLIB case to prevent build errors. Also add prototypes. Signed-off-by: Anatolij Gustschin Reviewed-by: Andy Shevchenko --- Changes in v2: move gpiod_lookup_table out of #ifdef include/linux/gpio/consumer.h | 13

RE: [PATCH v2] acpi: fix acpi_get_table() leak / acpi-sysfs denial of service

2017-04-26 Thread Zheng, Lv
Hi, Rafael > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v2] acpi: fix acpi_get_table() leak / acpi-sysfs denial > of service > > On Tue, Apr 25, 2017 at 9:58 PM, Dan Williams > wrote: > > Reading an

Re: [PATCH v8 1/4] syscalls: Verify address limit before returning to user-mode

2017-04-26 Thread Ingo Molnar
* Thomas Garnier wrote: > + > +/* > + * Called before coming back to user-mode. Returning to user-mode with an > + * address limit different than USER_DS can allow to overwrite kernel memory. > + */ > +static inline void addr_limit_check_syscall(void) > +{ > + BUG_ON(!segment_eq(get_fs(), US

Re: [PATCH 5/7] IB/hfi1: use pcie_flr instead of duplicating it

2017-04-26 Thread Christoph Hellwig
On Tue, Apr 25, 2017 at 02:39:55PM -0500, Bjorn Helgaas wrote: > This still leaves these: > > [PATCH 4/7] ixgbe: use pcie_flr instead of duplicating it > [PATCH 6/7] crypto: qat: use pcie_flr instead of duplicating it > [PATCH 7/7] liquidio: use pcie_flr instead of duplicating it > > I have

Re: linux-next: manual merge of the kvms390 tree with the s390 tree

2017-04-26 Thread Christian Borntraeger
On 04/27/2017 05:29 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the kvms390 tree got a conflict in: > > arch/s390/include/asm/cpacf.h > > between commit: > > 985a9d20daa6 ("s390/crypto: Renaming PPNO to PRNO.") > > from the s390 tree and commit: > > 152c1c8d60e

Re: [PATCH] uapi: change the type of struct statx_timestamp.tv_nsec to unsigned

2017-04-26 Thread Christoph Hellwig
I think this is the right thing to do, but we'd really need to get this in before 4.11 is release and the syscall is out in the wild.. On Wed, Apr 26, 2017 at 02:50:00PM +0100, David Howells wrote: > The more generic comment asserting that the value of struct > statx_timestamp.tv_nsec might be neg

Re: [PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-26 Thread Gerd Hoffmann
Hi, > > That is done using the RADEON_TILING_SWAP_{16,32}BIT flag mentioned in > > another thread? > > Right. > > > > What about dumb bos? You've mentioned the swap flag isn't used for > > those. Which implies they are in little endian byte order (both gpu and > > cpu view). > > Right, AFA

Re: [PATCH v2] leds-pca963x: add bindings to invert polarity

2017-04-26 Thread Anders Darander
Hi all, * Anders Darander [170427 08:37]: > Add a new DT property, nxp,inverted-out, to invert the polarity of the output. > Tested on PCA9634. I'm making a 2nd attempt at this. The ability to invert the output from the PCA9634 is important, and I'd like to avoid out-of-tree patches as much as p

Re: [PATCH RFC 0/5] *** SPI Slave mode support ***

2017-04-26 Thread Jiada Wang
Hello Geert and Mark On 04/25/2017 03:31 AM, Mark Brown wrote: On Mon, Apr 24, 2017 at 12:55:21PM +0200, Geert Uytterhoeven wrote: On Fri, Apr 14, 2017 at 7:39 AM, Jiada Wang wrote: Our use case is to use spidev as an interface to communicate with external SPI master devices. meanwhile the SP

linux-next: Tree for Apr 27

2017-04-26 Thread Stephen Rothwell
Hi all, Changes since 20170426: The crypto tree gained a conflict against the s390 tree. The kvms390 tree gained a conflict against the s390 tree. The staging tree gained a build failure due to an interaction with the mac80211-next tree for which I applied a merge fix patch. Non-merge commits

[PATCH v2] leds-pca963x: add bindings to invert polarity

2017-04-26 Thread Anders Darander
Add a new DT property, nxp,inverted-out, to invert the polarity of the output. Tested on PCA9634. Signed-off-by: Anders Darander --- Documentation/devicetree/bindings/leds/pca963x.txt | 1 + drivers/leds/leds-pca963x.c| 17 +++-- include/linux/platform_data/

Re: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ

2017-04-26 Thread Wei Wang
On 04/14/2017 01:08 AM, Michael S. Tsirkin wrote: On Thu, Apr 13, 2017 at 05:35:08PM +0800, Wei Wang wrote: Add a new vq, miscq, to handle miscellaneous requests between the device and the driver. This patch implemnts the VIRTIO_BALLOON_MISCQ_INQUIRE_UNUSED_PAGES implements request sent from

Re: [RFC PATCH] x86, uaccess, pmem: introduce copy_from_iter_writethru for dax + pmem

2017-04-26 Thread Ingo Molnar
* Dan Williams wrote: > +#ifdef CONFIG_ARCH_HAS_UACCESS_WRITETHRU > +#define __HAVE_ARCH_MEMCPY_WRITETHRU 1 > +void memcpy_writethru(void *dst, const void *src, size_t cnt); > +#endif This should be named memcpy_wt(), which is the well-known postfix for write-through. We already have ioremap_

Re: [PATCH v3] usb: misc: legousbtower: Fix buffers on stack

2017-04-26 Thread Maksim Salau
> >* removed Tested-by: Alfredo Rafael Vicente Boix ; > > I added this back, as it matters, and your change from the previous > version was trivial. > > >* removed Cc: sta...@vger.kernel.org > > since this patch doesn't apply against v4.10.12 > > I added this back as well

Re: [virtio-dev] Re: [PATCH v9 2/5] virtio-balloon: VIRTIO_BALLOON_F_BALLOON_CHUNKS

2017-04-26 Thread Wei Wang
On 04/27/2017 07:20 AM, Michael S. Tsirkin wrote: On Wed, Apr 26, 2017 at 11:03:34AM +, Wang, Wei W wrote: Hi Michael, could you please give some feedback? I'm sorry, I'm not sure feedback on what you are requesting. Oh, just some trivial things (e.g. use a field in the header, hdr->chunks

Re: xen_exit_mmap() questions

2017-04-26 Thread Ingo Molnar
* Boris Ostrovsky wrote: > > xen_mc_issue() does: > > > > if ((paravirt_get_lazy_mode() & mode) == 0) > > xen_mc_flush(); > > > > I assume the load_cr3() is intended to deal with the case where we're > > in lazy mode, but we'll still be in lazy mode, right? Or does it

Re: [PATCH v6 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2017-04-26 Thread Greg Kroah-Hartman
On Wed, Apr 26, 2017 at 06:15:08PM -0700, Guenter Roeck wrote: > On Wed, Apr 26, 2017 at 03:26:11PM -0700, Guenter Roeck wrote: > > From: Guenter Roeck > > > > This driver implements the USB Type-C Power Delivery state machine > > for both source and sink ports. Alternate mode support is not > >

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-04-26 Thread Rajaram R
On Tue, Apr 25, 2017 at 7:40 PM, Guenter Roeck wrote: > On 04/25/2017 01:26 AM, Rajaram R wrote: >> >> On Mon, Apr 24, 2017 at 11:20 PM, Badhri Jagan Sridharan >> wrote: >>> >>> On Sat, Apr 22, 2017 at 2:23 AM, Rajaram R >>> wrote: On Fri, Apr 21, 2017 at 10:13 PM, Guenter Roeck

Re: [RFC PATCH] hwmon: Add driver for Infineon DPS310

2017-04-26 Thread Jonathan Cameron
On 26/04/17 16:13, Guenter Roeck wrote: > Hi Joel, > > On Thu, Apr 27, 2017 at 12:03:21AM +0930, Joel Stanley wrote: >> Hi Guenter, >> >> Below is a work in progress hwmon driver for the DPS310[1]. The device does >> both pressure and temperature monitoring over either I2C or SPI. There's a >> pub

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Jonathan Cameron
On 26/04/17 14:55, Srinivas Pandruvada wrote: > On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: >> On 19/04/17 15:35, Colin King wrote: >>> >>> From: Colin Ian King >>> >>> Ensure that when an invalid value in ret or value is found -EINVAL >>> is returned. A previous commit broke the wa

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-26 Thread Jonathan Cameron
On 24/04/17 20:28, Jan Kiszka wrote: > This is an upstream port of an IIO driver for the TI ADC108S102 and > ADC128S102. The former can be found on the Intel Galileo Gen2 and the > Siemens SIMATIC IOT2000. For those boards, ACPI-based enumeration is > included. > > Original author: Bogdan Pricop

Re: [GIT PULL rcu/urgent] Auto-expedite initial SRCU grace periods

2017-04-26 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series greatly reduces the performance degradation of Tree SRCU > on a CPU-hotplug stress test. The effect was not subtle: Mike Galbraith > measured Classic SRCU at 55 seconds and Tree SRCU at more than 16 -minutes- > for this test. Mike coll

Re: [PATCH] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-04-26 Thread houlong wei
On Thu, 2017-04-13 at 14:50 +0800, Wu-Cheng Li (李務誠) wrote: > Reviewed-by: Wu-Cheng Li > > On Thu, Apr 13, 2017 at 12:18 PM, Minghsiu Tsai > wrote: > > From: Daniel Kurtz > > > > Experiments show that the: > > (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT > > (2) CAPTURE types use CROP

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luca Coelho
On Thu, 2017-04-27 at 05:16 +0200, Luis R. Rodriguez wrote: > > > +int driver_data_request_sync(const char *name, > > > +    const struct driver_data_req_params *req_params, > > > +    struct device *device) > > > +{ > > > +   const struct firmware *driver_da

Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-04-26 Thread Xunlei Pang
On 04/27/2017 at 01:44 PM, Dave Young wrote: > Hi Xunlei, > > On 04/27/17 at 01:25pm, Xunlei Pang wrote: >> On 04/27/2017 at 11:06 AM, Dave Young wrote: >>> [snip] >>> >>> static int __init crash_save_vmcoreinfo_init(void) >>> { >>> + /* One page should be enough for VMCOR

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-26 Thread Jonathan Cameron
On 27/04/17 07:01, Jonathan Cameron wrote: > On 26/04/17 10:01, Mika Westerberg wrote: >> On Tue, Apr 25, 2017 at 06:12:12PM +0200, Jan Kiszka wrote: >>> Now, do you also a suggestion where to put that 5 V reference voltage >>> value that is hard-coded (via wiring) on the target boards for the ADC?

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-26 Thread Jonathan Cameron
On 26/04/17 10:01, Mika Westerberg wrote: > On Tue, Apr 25, 2017 at 06:12:12PM +0200, Jan Kiszka wrote: >> Now, do you also a suggestion where to put that 5 V reference voltage >> value that is hard-coded (via wiring) on the target boards for the ADC? >> That is now device-specific, not a controlle

Re: Freeing HugeTLB page into buddy allocator

2017-04-26 Thread Naoya Horiguchi
On Tue, Apr 25, 2017 at 02:27:27PM +0530, Anshuman Khandual wrote: > Hello Jianguo, > > In the commit a49ecbcd7b0d5a1cda, it talks about HugeTLB page being > freed into buddy allocator instead of hugepage_freelists. But if > I look the code closely for the function unmap_and_move_huge_page() > it

Re: [PATCH] iio:ad5064: Add support for ltc2633 and similar devices

2017-04-26 Thread Jonathan Cameron
On 26/04/17 10:44, Mike Looijmans wrote: > The Linear Technology LTC2631, LTC2633 and LTC2635 are very similar > to the AD5064 device, in particular the LTC2627. > > This patch adds support for those devices. Only the LTC2633 has been > tested, which is the 2-channel variant. The LTC2631 is the 1-

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Ivaylo Dimitrov
On 27.04.2017 01:51, Pavel Machek wrote: Hi! There are two separate things here: 1) Autofoucs for a device that doesn't use subdev API 2) libv4l2 support for devices that require MC and subdev API Actually there are three: 0) autogain. Unfortunately, I need autogain first before autofocus

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

2017-04-26 Thread Jonathan Cameron
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 STM32F7. >> Add additional master modes supported by TRGO2. These additional modes would benefit from more information in the ABI docs. Otherwise patch s

Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-04-26 Thread Dave Young
Hi Xunlei, On 04/27/17 at 01:25pm, Xunlei Pang wrote: > On 04/27/2017 at 11:06 AM, Dave Young wrote: > > [snip] > > > > static int __init crash_save_vmcoreinfo_init(void) > > { > > + /* One page should be enough for VMCOREINFO_BYTES under all > > archs */ > Can

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luca Coelho
On Thu, 2017-04-27 at 05:16 +0200, Luis R. Rodriguez wrote: > > > @@ -1460,6 +1471,128 @@ void release_firmware(const struct firmware *fw) > > >   } > > >   EXPORT_SYMBOL(release_firmware); > > >   > > > +static int _driver_data_request_api(struct driver_data_params *params, > > > +   

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Mike Galbraith
On Wed, 2017-04-26 at 22:32 -0700, Paul E. McKenney wrote: > On Thu, Apr 27, 2017 at 06:15:56AM +0200, Mike Galbraith wrote: > > On Wed, 2017-04-26 at 21:11 -0700, Paul E. McKenney wrote: > > > > > This is with srcutree.exp_holdoff set to 25*1000? > > > > Yup. > > And please see below for the tr

Re: [PATCH v2] tools/iio: Use include/uapi with __EXPORTED_HEADERS__

2017-04-26 Thread Jonathan Cameron
On 21/04/17 13:31, Sekhar Nori wrote: > Use the local uapi headers to keep in sync with "recently" added enum > values like IIO_UVINDEX. > > Build tested using: > $ make -C tools/iio > $ make -C /tools iio > $ make -C /tools/iio > > This follows a strategy similar to that used by tools/hv, tools

Re: [PATCH v2] stm class: Document the stm_ftrace

2017-04-26 Thread Chunyan Zhang
Hi Alex, Could you take this patch please if there's no further comments? Thanks, Chunyan On 23 March 2017 at 14:13, Chunyan Zhang wrote: > This patch adds a description to the stm_ftrace device source, an > interface for collecting Ftrace's function trace information via > STM devices. > > Sig

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Paul E. McKenney
On Thu, Apr 27, 2017 at 06:15:56AM +0200, Mike Galbraith wrote: > On Wed, 2017-04-26 at 21:11 -0700, Paul E. McKenney wrote: > > > This is with srcutree.exp_holdoff set to 25*1000? > > Yup. And please see below for the trivial patch, just for confirmation. May I add your Tested-by?

Re: [PATCH] iio: core: Fix suspicious sizeof usage

2017-04-26 Thread Jonathan Cameron
On 25/04/17 02:16, Orson Zhai wrote: > Pointer size is variours in different system, say 32bit for 4 and 64bit > for 8. The 'sizeof(infomask)' may lead to wrong bit numbers. > > Signed-off-by: Orson Zhai That's certainly been there a while. oops. Anyhow, whilst clearly garbage, it doesn't actua

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-26 Thread Minchan Kim
On Tue, Apr 25, 2017 at 08:56:56PM +0800, Huang, Ying wrote: > From: Huang Ying > > In this patch, splitting huge page is delayed from almost the first > step of swapping out to after allocating the swap space for the > THP (Transparent Huge Page) and adding the THP into the swap cache. > This wi

Re: x86-tip tsc/tick gripage

2017-04-26 Thread Mike Galbraith
On Wed, 2017-04-26 at 14:30 +0200, Mike Galbraith wrote: > On Wed, 2017-04-26 at 13:39 +0200, Mike Galbraith wrote: > > On Wed, 2017-04-26 at 12:26 +0200, Peter Zijlstra wrote: > > > On Wed, Apr 26, 2017 at 10:57:42AM +0200, Mike Galbraith wrote: > > > > > > > Both still lose their TSC. > > > > >

Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-04-26 Thread Xunlei Pang
On 04/27/2017 at 11:06 AM, Dave Young wrote: > [snip] > > static int __init crash_save_vmcoreinfo_init(void) > { > + /* One page should be enough for VMCOREINFO_BYTES under all archs */ Can we add a comment in the VMCOREINFO_BYTES header file about the one page assumpt

Re: [PATCH 3/3] iio: tools: generic_buffer: increase trigger length

2017-04-26 Thread Jonathan Cameron
On 19/04/17 09:20, Eugen Hristev wrote: > Increased trigger length to 50 in order to cope with trigger names like > fc03.adc-dev0-external-rising > > Signed-off-by: Eugen Hristev This is fine (though I'd go bigger as Daniel suggested) I'll pick it up with the revised series. thanks, Jonatha

Re: [PATCH 2/3] iio: adc: at91-sama5d2_adc: add hw trigger and buffer support

2017-04-26 Thread Jonathan Cameron
On 19/04/17 09:20, Eugen Hristev wrote: > Added support for the external hardware trigger on pin ADTRG, > integrated the three possible edge triggers into the subsystem > and created buffer management for data retrieval > > Signed-off-by: Eugen Hristev > --- > drivers/iio/adc/at91-sama5d2_adc.c

Question about scheduler load balancing

2017-04-26 Thread Gaurav Poothia
Hello Presumably the scheduler load balancing logic is less reluctant to load balance tasks at higher level scheduling domains (e.g. cross NUMA) than lower level SD Is that true? If yes, which knobs (or hardcodes) drive the load_balance() function to vary how aggressively it balances when it is in

Re: Boot regression caused by kauditd

2017-04-26 Thread Cong Wang
On Wed, Apr 26, 2017 at 2:20 PM, Paul Moore wrote: > Hi, > > Thanks for the report, this is the only one like it that I've seen. > I'm looking at the code in Linus' tree and I'm not seeing anything > obvious ... looking at the trace above it appears that the problem is > when get_net() goes to bum

Re: ipsec doesn't route TCP with 4.11 kernel

2017-04-26 Thread Cong Wang
(Cc'ing netdev and IPSec maintainers) On Tue, Apr 25, 2017 at 6:08 PM, Don Bowman wrote: > I'm not sure how to describe this. > > 4.11rc2 worked, after that, no. > > My ipsec tunnel comes up ok. ICMP works. UDP works. But TCP, the > sender [which is the ipsec client] does not reach the destinatio

[PATCH v3] x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen

2017-04-26 Thread Juergen Gross
When running as Xen pv guest X86_BUG_SYSRET_SS_ATTRS must not be set on AMD cpus. This bug/feature bit is kind of special as it will be used very early when switching threads. Setting the bit and clearing it a little bit later leaves a critical window where things can go wrong. This time window ha

Re: [PATCH v5 08/11] mm: hwpoison: soft offline supports thp migration

2017-04-26 Thread Naoya Horiguchi
On Fri, Apr 21, 2017 at 10:55:49AM -0500, Zi Yan wrote: > > > Anshuman Khandual wrote: > > On 04/21/2017 02:17 AM, Zi Yan wrote: > >> From: Naoya Horiguchi > >> > >> This patch enables thp migration for soft offline. > >> > >> Signed-off-by: Naoya Horiguchi > >> > >> ChangeLog: v1 -> v5: > >> -

Re: [PATCH] x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS if forced to zero

2017-04-26 Thread Juergen Gross
On 27/04/17 00:04, Borislav Petkov wrote: > On Wed, Apr 26, 2017 at 08:24:12PM +0200, Juergen Gross wrote: >> I'm not feeling strong about it. So if you want to test for >> X86_FEATURE_XENPV to avoid setting X86_BUG_SYSRET_SS_ATTRS I'm fine >> with it. >> >> Will send V2 with that change. > > And

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-26 Thread Minchan Kim
On Wed, Apr 26, 2017 at 08:42:10PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > On Fri, Apr 21, 2017 at 08:29:30PM +0800, Huang, Ying wrote: > >> "Huang, Ying" writes: > >> > >> > Minchan Kim writes: > >> > > >> >> On Wed, Apr 19, 2017 at 04:14:43PM +0800, Huang, Ying wrote: > >> >>>

Re: [PATCH 1/1] rtc: gemini: add return value validation

2017-04-26 Thread Hans Ulli Kroll
HI Pan, On Sun, 23 Apr 2017, Pan Bian wrote: > From: Pan Bian > > Function devm_ioremap() will return a NULL pointer if it fails to remap > IO address, and its return value should be validated before it is used. > However, in function gemini_rtc_probe(), its return value is not > checked. This

linux-next: build failure after merge of the staging tree

2017-04-26 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_preinit_wiphy': drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3409:18: error: 'WIPHY_FLAG_SUPPORTS_SCHED_SCA

Re: iov_iter_pipe warning.

2017-04-26 Thread Dave Jones
On Fri, Apr 21, 2017 at 06:54:30PM +0100, Al Viro wrote: > On Wed, Apr 12, 2017 at 03:03:18PM -0400, Dave Jones wrote: > > > Well it's been running an hour without incident, which looks promising. > > I'll leave it run, but I'd say you're on the right track given how quick > > it reproduced s

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Mike Galbraith
On Wed, 2017-04-26 at 21:11 -0700, Paul E. McKenney wrote: > This is with srcutree.exp_holdoff set to 25*1000? Yup.

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Paul E. McKenney
On Thu, Apr 27, 2017 at 05:43:59AM +0200, Mike Galbraith wrote: > On Wed, 2017-04-26 at 20:12 +0200, Mike Galbraith wrote: > > On Wed, 2017-04-26 at 10:56 -0700, Paul E. McKenney wrote: > > > > > > OK, I do need to do more work. My current guess is that I should have > > > > set the default for s

Re: [PATCH v2] NFC: trf7970a: Correct register settings for 27MHz clock

2017-04-26 Thread Mark Greer
On Wed, Apr 26, 2017 at 09:41:48PM -0400, Geoff Lansberry wrote: Hi Geoff. > In prior commits the selected clock frequency does not propagate > correctly to what is written the the TRF7970A_MODULATOR_SYS_CLK_CTRL > register. > > Signed-off-by: Geoff Lansberry > --- > drivers/nfc/trf7970a.c | 7

Re: [PATCH v2 07/21] crypto: shash, caam: Make use of the new sg_map helper function

2017-04-26 Thread Herbert Xu
On Tue, Apr 25, 2017 at 12:20:54PM -0600, Logan Gunthorpe wrote: > Very straightforward conversion to the new function in the caam driver > and shash library. > > Signed-off-by: Logan Gunthorpe > Cc: Herbert Xu > Cc: "David S. Miller" > --- > crypto/shash.c| 9 ++--- > driv

Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer

2017-04-26 Thread David Lin
On Tue, Apr 25, 2017 at 1:15 PM, Jacek Anaszewski wrote: >> However, there's a need to >> support hrtimer if the LED subsystem claims support the use case of >> vibrator (please see Documentation/leds/ledtrig-transient.txt) as even >> a 5ms of variation is perceivable to the user. I'm thinking if

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Mike Galbraith
On Wed, 2017-04-26 at 20:12 +0200, Mike Galbraith wrote: > On Wed, 2017-04-26 at 10:56 -0700, Paul E. McKenney wrote: > > > > OK, I do need to do more work. My current guess is that I should have > > > set the default for srcutree.exp_holdoff to 25*1000 instead of 50*1000. > > > But I am sure tha

[GIT PULL rcu/urgent] Auto-expedite initial SRCU grace periods

2017-04-26 Thread Paul E. McKenney
Hello, Ingo, This series greatly reduces the performance degradation of Tree SRCU on a CPU-hotplug stress test. The effect was not subtle: Mike Galbraith measured Classic SRCU at 55 seconds and Tree SRCU at more than 16 -minutes- for this test. Mike collected ftrace data that showed that Classi

Re: [v6 PATCH 12/21] x86/insn: Support both signed 32-bit and 64-bit effective addresses

2017-04-26 Thread Ricardo Neri
On Tue, 2017-04-25 at 15:51 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:45PM -0800, Ricardo Neri wrote: > > The 32-bit and 64-bit address encodings are identical. This means that we > > can use the same function in both cases. In order to reuse the function for > > 32-bit address

linux-next: manual merge of the kvms390 tree with the s390 tree

2017-04-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvms390 tree got a conflict in: arch/s390/include/asm/cpacf.h between commit: 985a9d20daa6 ("s390/crypto: Renaming PPNO to PRNO.") from the s390 tree and commit: 152c1c8d60eb ("s390/cpacf: Introduce kma instruction") from the kvms390 tree. I fix

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luis R. Rodriguez
On Tue, Apr 11, 2017 at 05:01:51PM +0900, takahiro.aka...@linaro.org wrote: > On Mon, Apr 10, 2017 at 12:42:44PM +, Coelho, Luciano wrote: > > On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > > > +Driver data request parameters > > > +== > > > + > > > +V

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-26 Thread Rusty Russell
Djalal Harouni writes: > Hi Rusty, > > On Mon, Apr 24, 2017 at 6:29 AM, Rusty Russell wrote: >> Djalal Harouni writes: >>> When value is (1), task must have CAP_SYS_MODULE to be able to trigger a >>> module auto-load operation, or CAP_NET_ADMIN for modules with a >>> 'netdev-%s' alias. >> >> Sor

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luis R. Rodriguez
On Mon, Apr 10, 2017 at 12:42:44PM +, Coelho, Luciano wrote: > On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > > The firmware API does not scale well: when new features are added we > > either add a new exported symbol or extend the arguments of existing > > routines. For the late

[PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-26 Thread Masami Hiramatsu
Since read_initrd() invokes alloc_bootmem() for allocating memory to load initrd image, it must be called after init_bootmem. This makes read_initrd() called directly from setup_arch() after init_bootmem() and mem_total_pages(). Signed-off-by: Masami Hiramatsu --- arch/um/kernel/initrd.c |

[BUG] um: initramfs doesn't work on uml

2017-04-26 Thread Masami Hiramatsu
Hello, I found that user-mode-linux kernel doesn't boot with initramfs (or initrd) as below. I've investigated the reason and found that the read_initrd@arch/um/kernel/initrd.c tried to allocate memory for initrd by using alloc_bootmem, but since init_bootmem will be called from setup_arch afterwa

[PATCH] mm/vmstat: Standardize file operations variable names

2017-04-26 Thread Anshuman Khandual
Standardized the file operation variable names related to all four memory management /proc interface files. Also changed all the symbol permissions (S_IRUGO) into octal permissions (0444) as it got complains from checkpatch.pl script. This does not create any functional change to the interface. Si

Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-04-26 Thread Dave Young
[snip] > >>> > >>> static int __init crash_save_vmcoreinfo_init(void) > >>> { > >>> + /* One page should be enough for VMCOREINFO_BYTES under all archs */ > >> Can we add a comment in the VMCOREINFO_BYTES header file about the one > >> page assumption? > >> > >> Or just define the VMCOREINFO_BY

Re: [PATCH v4 3/3] kdump: Protect vmcoreinfo data under the crash memory

2017-04-26 Thread Dave Young
[snip] > >> index 43cdb00..a29e9ad 100644 > >> --- a/kernel/crash_core.c > >> +++ b/kernel/crash_core.c > >> @@ -15,9 +15,12 @@ > >> > >> /* vmcoreinfo stuff */ > >> static unsigned char *vmcoreinfo_data; > >> -size_t vmcoreinfo_size; > >> +static size_t vmcoreinfo_size; > >> u32 *vmcoreinfo_n

[ANNOUNCE] Git v2.13.0-rc1

2017-04-26 Thread Junio C Hamano
A release candidate Git v2.13.0-rc1 is now available for testing at the usual places. It is comprised of 684 non-merge commits since v2.12.0, contributed by 54 people, 13 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following pu

[PATCH v2] plugin python: Adjust the handling after PyRun_String() failed

2017-04-26 Thread Taeung Song
Even though PyRun_String() failed, just 0 will be returned but we need to return -1 that means error status, so fix it. Signed-off-by: Taeung Song --- plugin_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_python.c b/plugin_python.c index 2997679..c283ed7 1006

Re: [PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-26 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > On 04/17/2017 10:44 PM, Aneesh Kumar K.V wrote: >> POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch >> enables the usage of 1G page size for hugetlbfs. This also update the helper >> such we can do 1G page allocation at runtime. >> >> Since we

Re: [PATCH] plugin python: Adjust the handling after PyRun_String() failed

2017-04-26 Thread Taeung Song
On 04/27/2017 11:47 AM, Steven Rostedt wrote: On Thu, 27 Apr 2017 08:46:21 +0900 Taeung Song wrote: Even though PyRun_String() failed, just 0 will be returned but we need to return -1 that means error status, so fix it. Signed-off-by: Taeung Song --- plugin_python.c | 5 +++-- 1 file chan

Re: [PATCH] plugin python: Adjust the handling after PyRun_String() failed

2017-04-26 Thread Steven Rostedt
On Thu, 27 Apr 2017 08:46:21 +0900 Taeung Song wrote: > Even though PyRun_String() failed, > just 0 will be returned but we need to return -1 > that means error status, so fix it. > > Signed-off-by: Taeung Song > --- > plugin_python.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-

Re: linux-next: build warning after merge of the sound-asoc tree

2017-04-26 Thread Vinod Koul
On Thu, Apr 27, 2017 at 11:29:20AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > sound/soc/intel/skylake/bxt-sst.c: In function 'bxt_sst_dsp_init': > sound/soc/intel/skylake/bxt-sst.c:567

Re: [PATCH] kallsyms: optimize kallsyms_lookup_name() for a few cases

2017-04-26 Thread Masami Hiramatsu
On Thu, 27 Apr 2017 01:38:10 +0530 "Naveen N. Rao" wrote: > Michael Ellerman wrote: > > "Naveen N. Rao" writes: > >> diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c > >> index 6a3b249a2ae1..d134b060564f 100644 > >> --- a/kernel/kallsyms.c > >> +++ b/kernel/kallsyms.c > >> @@ -205,6 +205,12 @@

Re: your mail

2017-04-26 Thread Joonsoo Kim
On Wed, Apr 26, 2017 at 11:19:06AM +0200, Michal Hocko wrote: > > > [...] > > > > > > > > You are trying to change a semantic of something that has a well > > > > > defined > > > > > meaning. I disagree that we should change it. It might sound like a > > > > > simpler thing to do because pfn walk

Re: [PATCH v6 1/5] firmware: add extensible driver data params

2017-04-26 Thread Luis R. Rodriguez
On Thu, Apr 06, 2017 at 10:26:12AM +0300, Luca Coelho wrote: > On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > > Signed-off-by: Luis R. Rodriguez > > --- > > Looks fine with a few nitpicks. > > > > diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c > > inde

Re: [PATCH] irqchip/mbigen: Fix the clear register offset

2017-04-26 Thread Hanjun Guo
On 2017/4/27 9:27, majun (Euler7) wrote: Hi Marc: 在 2017/4/26 16:01, Marc Zyngier 写道: On 26/04/17 04:10, Hanjun Guo wrote: Hi Majun, On 2017/4/25 10:16, Majun wrote: From: MaJun Don't minus reserved interrupts (64) when get the clear register offset,because the clear register space include

Re: [PATCH 1/5] firmware: share fw fallback killing on reboot/suspend

2017-04-26 Thread Luis R. Rodriguez
On Thu, Apr 06, 2017 at 06:38:47AM +, Coelho, Luciano wrote: > Hi Luis, > > diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c > > index ac350c518e0c..d2e2d83aaf26 100644 > > --- a/drivers/base/firmware_class.c > > +++ b/drivers/base/firmware_class.c > > @@ -562,16 +562,

Re: [PATCH v4 00/21] PCI: fix config space memory mappings

2017-04-26 Thread Dongdong Liu
在 2017/4/27 1:24, Jingoo Han 写道: On Wednesday, April 26, 2017 6:54 AM, Dongdong Liu wrote; Tested-by: Dongdong Liu I tested the patchset on HiSilicon ARM64 D05 board.It works ok with 82599 netcard. Thank you for testing these patches. HiSilicon PCIe may use Designware-based PCIe controlle

[PATCH V2] cpuidle: check dev before usage in cpuidle_use_deepest_state

2017-04-26 Thread Li, Fei
In case of there is no cpuidle devices registered, dev will be null, and panic will be triggered like below; In this patch, add checking of dev before usage, like that done in cpuidle_idle_call. Panic without fix: [ 184.961328] BUG: unable to handle kernel NULL pointer dereference at (null) [

[PATCH v2] NFC: trf7970a: Correct register settings for 27MHz clock

2017-04-26 Thread Geoff Lansberry
In prior commits the selected clock frequency does not propagate correctly to what is written the the TRF7970A_MODULATOR_SYS_CLK_CTRL register. Signed-off-by: Geoff Lansberry --- drivers/nfc/trf7970a.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/nfc/trf7970a.c b/drivers/nf

Re: [PATCH v2 2/2] x86, refcount: Implement fast refcount overflow protection

2017-04-26 Thread kbuild test robot
/Kees-Cook/x86-refcount-Implement-fast-refcount-overflow/20170426-210530 config: x86_64-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by

Re: [v6 PATCH 11/21] insn/eval: Incorporate segment base in address computation

2017-04-26 Thread Ricardo Neri
On Fri, 2017-04-21 at 16:55 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:44PM -0800, Ricardo Neri wrote: > > insn_get_addr_ref returns the effective address as defined by the > > Please end function names with parentheses. Will do. > > > section 3.7.5.1 Vol 1 of the Intel 64 and

Re: [v6 PATCH 10/21] x86/insn-eval: Do not use R/EBP as base if mod in ModRM is zero

2017-04-26 Thread Ricardo Neri
On Fri, 2017-04-21 at 12:52 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:43PM -0800, Ricardo Neri wrote: > > Section 2.2.1.3 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume 2A states that when the mod part of the ModRM > > byte is zero and R/EBP is sp

linux-next: build warning after merge of the sound-asoc tree

2017-04-26 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/intel/skylake/bxt-sst.c: In function 'bxt_sst_dsp_init': sound/soc/intel/skylake/bxt-sst.c:567:14: warning: 'skl' may be used uninitialized in this function [-Wmaybe-uniniti

Re: [PATCH] irqchip/mbigen: Fix the clear register offset

2017-04-26 Thread majun (Euler7)
Hi Marc: 在 2017/4/26 16:01, Marc Zyngier 写道: > On 26/04/17 04:10, Hanjun Guo wrote: >> Hi Majun, >> >> On 2017/4/25 10:16, Majun wrote: >>> From: MaJun >>> >>> Don't minus reserved interrupts (64) when get the clear register >>> offset,because >>> the clear register space includes the space of t

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-26 Thread Huang, Ying
Tim Chen writes: >> >> From 7bd903c42749c448ef6acbbdee8dcbc1c5b498b9 Mon Sep 17 00:00:00 2001 >> From: Huang Ying >> Date: Thu, 23 Feb 2017 13:05:20 +0800 >> Subject: [PATCH -v5] mm, swap: Sort swap entries before free >> >>  >> --- >>  mm/swapfile.c | 43 ++

RE: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override

2017-04-26 Thread Peter Chen
> >The board file for imx6sx-dbg overrides cpufreq operating points to use higher >voltages. This is done because the board has a shared rail for VDD_ARM_IN and >VDD_SOC_IN and when using LDO bypass the shared voltage needs to be a value >suitable for both ARM and SOC. > >This was introduced in:

Re: [PATCH v6 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2017-04-26 Thread Guenter Roeck
On Wed, Apr 26, 2017 at 03:26:11PM -0700, Guenter Roeck wrote: > From: Guenter Roeck > > This driver implements the USB Type-C Power Delivery state machine > for both source and sink ports. Alternate mode support is not > fully implemented. > > The driver attaches to the USB Type-C class code im

Re: xen_exit_mmap() questions

2017-04-26 Thread Andy Lutomirski
On Wed, Apr 26, 2017 at 5:55 PM, Boris Ostrovsky wrote: > > > On 04/26/2017 06:49 PM, Andy Lutomirski wrote: >> >> On Wed, Apr 26, 2017 at 3:45 PM, Boris Ostrovsky >> wrote: >>> >>> On 04/26/2017 04:52 PM, Andy Lutomirski wrote: I was trying to understand xen_drop_mm_ref() to update it

Re: [v6 PATCH 09/21] x86/insn-eval: Add functions to get default operand and address sizes

2017-04-26 Thread Ricardo Neri
On Thu, 2017-04-20 at 15:06 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:42PM -0800, Ricardo Neri wrote: > > These functions read the default values of the address and operand sizes > > as specified in the segment descriptor. This information is determined > > from the D and L bits

Re: [PATCH 3/3] selinux: expose policy SHA256 checksum via selinuxfs

2017-04-26 Thread James Morris
On Wed, 26 Apr 2017, Stephen Smalley wrote: > > + return simple_read_from_buffer(buf, count, ppos, tmpbuf, > > length); > > +} > > Should we also include information about the hash used, in case it > changes in the future? > Good idea, yes. -- James Morris

  1   2   3   4   5   6   7   8   >