[GIT PULL] two more s390 bug fixes for 4.17

2018-05-29 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: Two bug fixes for 4.17 * A missing -msoft-float for the compile of the kexec purgatory * A fix for the dasd driver to avoid

Re: [reset-control] How to initialize hardware state with the shared reset line?

2018-05-29 Thread Masahiro Yamada
2018-05-25 5:09 GMT+09:00 Martin Blumenstingl : > Hi Philipp, > > On Tue, May 22, 2018 at 4:04 PM, Philipp Zabel wrote: >> Hi Martin, >> >> On Mon, 2018-05-21 at 12:40 +0200, Martin Blumenstingl wrote: >>> Hello, >>> >>> On Mon, May 21, 2018 at 3:27 AM, Masahiro Yamada >>> wrote: >>> > Hi. >>> >

Re: [PATCH 2/3] x86:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro

2018-05-29 Thread Ingo Molnar
* nixiaoming wrote: > mark_rodata_ro is only called by the function mark_readonly > when CONFIG_STRICT_KERNEL_RWX=y > > if CONFIG_STRICT_KERNEL_RWX is not set > a compile warning may be triggered: unused function > > Signed-off-by: nixiaoming > --- > arch/x86/mm/init_32.c | 2 ++ >

Re: [GIT PULL rcu/next] Additional RCU commit for 4.18

2018-05-29 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This additional v4.18 pull request contains a single commit that fell > through the cracks: > > 1.Provide early rcu_cpu_starting() callback for the benefit of the > x86/mtrr code, which needs RCU to be available on incoming CPUs >

Re: [PATCH 3.18 093/185] microblaze: switch to NO_BOOTMEM

2018-05-29 Thread Michal Simek
On 29.5.2018 16:34, Rob Herring wrote: > On Mon, May 28, 2018 at 5:02 AM, Greg Kroah-Hartman > wrote: >> 3.18-stable review patch. If anyone has any objections, please let me know. >> >> -- >> >> From: Rob Herring >> >> [ Upstream commit 101646a24a2f9cdb61d7732459fbf068a7bbb542

Re: Userland breakage from "Modify the device name as devfreq(X) for sysfs"

2018-05-29 Thread Greg KH
On Tue, May 29, 2018 at 10:14:35PM -0700, John Stultz wrote: > On Tue, May 8, 2018 at 7:28 PM, Chanwoo Choi wrote: > > On 2018년 05월 09일 08:17, John Stultz wrote: > >> Hey folks, > >> I wanted to bring up an issue we've recently tripped over, which was > >> caused by 4585fbcb5331f ("PM /

Re: [PATCH v4 2/2] regulator: add QCOM RPMh regulator driver

2018-05-29 Thread Doug Anderson
Hi, On Tue, May 22, 2018 at 7:43 PM, David Collins wrote: > + * @ever_enabled: Boolean indicating that the regulator has been > + * explicitly enabled at least once. Voltage > + * requests should be cached when this flag is >

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-29 Thread Doug Anderson
Hi, On Wed, May 23, 2018 at 8:56 AM, Mark Brown wrote: > On Wed, May 23, 2018 at 08:50:22AM -0700, Doug Anderson wrote: >> On Wed, May 23, 2018 at 8:40 AM, Mark Brown wrote: > >> > It's got to be valid to think about the voltage of a disabled regulator >> > since drivers want to be able make

Re: [PATCH v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-29 Thread Doug Anderson
Hi, On Tue, May 22, 2018 at 7:43 PM, David Collins wrote: > + > +Examples > + > + > +#include > + > +_rsc { > + pm8998-rpmh-regulators { > + compatible = "qcom,pm8998-rpmh-regulators"; > + qcom,pmic-id = "a"; > + > +

[PATCH] drivers: of: of_reserved_mem: detect count overflow or range overlap

2018-05-29 Thread Jaewon Kim
During development, number of reserved memory region could be increased and a new region could be unwantedly overlapped. In that case the new region may work well but one of exisiting region could be affected so that it would not be defined properly. It may require time consuming work to find

Re: [PATCH] ext4: prefer strlcpy to strncpy

2018-05-29 Thread Theodore Y. Ts'o
On Mon, May 28, 2018 at 11:21:53PM -0700, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. > > Signed-off-by: Nick Desaulniers I'll note that the ext4 superblock fields are *not* guaranteed to be NULL terminated. Code that references them must, and do, deal with this

Re: Userland breakage from "Modify the device name as devfreq(X) for sysfs"

2018-05-29 Thread John Stultz
On Tue, May 8, 2018 at 7:28 PM, Chanwoo Choi wrote: > On 2018년 05월 09일 08:17, John Stultz wrote: >> Hey folks, >> I wanted to bring up an issue we've recently tripped over, which was >> caused by 4585fbcb5331f ("PM / devfreq: Modify the device name as >> devfreq(X) for sysfs"). >> >>

Re: linux-next: manual merge of the irqchip tree with the arm-soc tree

2018-05-29 Thread Olof Johansson
Hi, On Tue, May 29, 2018 at 5:20 AM, Ludovic BARRE wrote: > > > On 05/29/2018 10:55 AM, Alexandre Torgue wrote: >> >> >> >> On 05/29/2018 10:39 AM, Marc Zyngier wrote: >>> >>> On 29/05/18 09:16, Alexandre Torgue wrote: Hi Marc On 05/29/2018 09:47 AM, Marc Zyngier wrote:

linux-next: manual merge of the regulator tree with the arm-soc tree

2018-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the regulator tree got a conflict in: arch/arm/mach-omap1/board-ams-delta.c between commit: 0486738928bf ("ARM: OMAP1: ams-delta: add GPIO lookup tables") from the arm-soc tree and commit: 6059577cb28d ("regulator: fixed: Convert to use GPIO

[PATCH] ANDROID: binder: rename parameter to resolve name collision.

2018-05-29 Thread kuangrufan
From: Kuang Rufan both bind.c & binder_alloc.c define the same kernel parameter 'debug_mask', rename the one in binder_alloc.c to 'alloc_debug_mask'. Signed-off-by: Kuang Rufan --- drivers/android/binder_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 3/3] x86/mm: add TLB purge to free pmd/pte page interfaces

2018-05-29 Thread j...@8bytes.org
On Tue, May 29, 2018 at 04:10:24PM +, Kani, Toshi wrote: > Can you explain why you think allocating a page here is a major problem? Because a larger allocation is more likely to fail. And if you fail the allocation, you also fail to free more pages, which _is_ a problem. So better avoid any

Re: [PATCH] PCI: Add pci=safemode option

2018-05-29 Thread Greg Kroah-Hartman
On Tue, May 29, 2018 at 09:41:33PM -0700, Sinan Kaya wrote: > On 5/29/2018 9:31 PM, Greg Kroah-Hartman wrote: > > On Tue, May 29, 2018 at 11:19:41PM -0400, Sinan Kaya wrote: > >> Adding pci=safemode kernel command line parameter to turn off all PCI > >> Express service driver as well as all

RE: [kbuild-all] include/linux/syscalls.h:211:18: error: 'sys_sparc_remap_file_pages' alias between functions of incompatible types 'long int(long unsigned int, long unsigned int, long unsigned int, l

2018-05-29 Thread Li, Philip
> > Hi Al, > > FYI, the error/warning still remains. hi AI, kindly ignore this, the warning below may be caused by gcc-8.1 upgrade. we will double check to reduce noises. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head:

Re: [PATCH] perf hists browser: Fix stale hist_entry__tui_annotate() declaration

2018-05-29 Thread Leo Yan
Hi Arnaldo, On Wed, May 30, 2018 at 12:49:27PM +0800, Leo Yan wrote: > Since commit 464fb4fd6af7 ("perf hists browser: Pass annotation_options > from tool to browser") has added extra parameter for functions, but it > missed to update hist_entry__tui_annotate() declaration for >

Re: [PATCH 2/2] cpufreq: Use static SRCU initializer

2018-05-29 Thread Viresh Kumar
On 25-05-18, 12:19, Sebastian Andrzej Siewior wrote: > Use the static SRCU initializer for `cpufreq_transition_notifier_list'. > This avoids the init_cpufreq_transition_notifier_list() initcall. Its > only purpose is to initialize the SRCU notifier once during boot and set > another variable which

include/linux/syscalls.h:211:18: error: 'sys_sparc_remap_file_pages' alias between functions of incompatible types 'long int(long unsigned int, long unsigned int, long unsigned int, long unsigned i

2018-05-29 Thread kbuild test robot
Hi Al, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0044cdeb731313f20b63cb5644de7588731de32b commit: a0d32ad366bb4235267380b341fcae8307f51044 switch sparc_remap_file_pages() to SYSCALL_DEFINE date: 2 months

[PATCH] perf hists browser: Fix stale hist_entry__tui_annotate() declaration

2018-05-29 Thread Leo Yan
Since commit 464fb4fd6af7 ("perf hists browser: Pass annotation_options from tool to browser") has added extra parameter for functions, but it missed to update hist_entry__tui_annotate() declaration for !HAVE_SLANG_SUPPORT configuration so this results in regression for perf tool building failure.

[PATCH] arm64: mm: mark tramp_pg_dir read-only

2018-05-29 Thread YaoJun
To protect against KSMA(Kernel Space Mirroring Attack), make tramp_pg_dir read-only. The principle of KSMA is to insert a carefully constructed PGD entry into the translation table. The type of this entry is block, which maps the kernel text and its access permissions bits are 01. The user process

Re: [PATCH 07/15] arm: dts: exynos: Add missing cooling device properties for CPUs

2018-05-29 Thread Viresh Kumar
On 29-05-18, 15:18, Krzysztof Kozlowski wrote: > Thanks for the patch. > > In case of Exynos, the booting CPU always has these information in DT > and the booting CPU cannot be changed (chosen by firmware/hardware > configuration). But can the booting CPU be offlined ? If yes, then this is how

Re: [PATCH] PCI: move early dump functionality from x86 arch into the common code

2018-05-29 Thread Sinan Kaya
On 5/29/2018 9:34 PM, Sinan Kaya wrote: > -int early_pci_allowed(void) > -{ > - return (pci_probe & (PCI_PROBE_CONF1|PCI_PROBE_NOEARLY)) == > - PCI_PROBE_CONF1; > -} I should have kept this. I'll wait for more feedback before posting the next rev. -- Sinan Kaya Qualcomm

Re: [REVIEW][PATCH 0/6] Wrapping up the vfs support for unprivileged mounts

2018-05-29 Thread Dave Chinner
On Tue, May 29, 2018 at 09:34:35PM -0500, Eric W. Biederman wrote: > Dave Chinner writes: > > > Yeah, the are some fairly big process and policy things that > > need to be decided here. Not just at the kernel level, but at > > distro and app infrastructure level too. > > > > I was originally

[PATCH] PCI: move early dump functionality from x86 arch into the common code

2018-05-29 Thread Sinan Kaya
Move early dump functionality into common code so that it is available for all archtiectures. No need to carry arch specific reads around as the read hooks are already initialized by the time pci_setup_device() is getting called during scan. Signed-off-by: Sinan Kaya ---

Re: [PATCH 2/8] xen/balloon: Move common memory reservation routines to a module

2018-05-29 Thread Juergen Gross
On 25/05/18 17:33, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Memory {increase|decrease}_reservation and VA mappings update/reset > code used in balloon driver can be made common, so other drivers can > also re-use the same functionality without open-coding. > Create a

Re: [PATCH] PCI: Add pci=safemode option

2018-05-29 Thread Greg Kroah-Hartman
On Tue, May 29, 2018 at 11:19:41PM -0400, Sinan Kaya wrote: > Adding pci=safemode kernel command line parameter to turn off all PCI > Express service driver as well as all optional PCIe features such as LTR, > Extended tags, Relaxed Ordering etc. > > Also setting MPS configuration to

include/linux/syscalls.h:211:18: error: 'sys_mmap2' alias between functions of incompatible types 'long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigne

2018-05-29 Thread kbuild test robot
Hi Al, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0044cdeb731313f20b63cb5644de7588731de32b commit: ee076e81fc14ca79334d02970cea66604f183a14 sparc: trivial conversions to {COMPAT_,}SYSCALL_DEFINE() date: 2

Re: [PATCH v6 4/4] vsprintf: Add command line option debug_boot_weak_hash

2018-05-29 Thread Tobin C. Harding
On Mon, May 28, 2018 at 10:40:43AM -0700, Randy Dunlap wrote: > On 05/27/2018 06:46 PM, Tobin C. Harding wrote: > > Currently printing [hashed] pointers requires enough entropy to be > > available. Early in the boot sequence this may not be the case > > resulting in a dummy string

Re: [PATCH 4.16 000/272] 4.16.13-stable review

2018-05-29 Thread Greg Kroah-Hartman
On Tue, May 29, 2018 at 01:52:12PM -0600, Shuah Khan wrote: > On 05/28/2018 04:00 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.16.13 release. > > There are 272 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 1/8] xen/grant-table: Make set/clear page private code shared

2018-05-29 Thread Juergen Gross
On 25/05/18 17:33, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Make set/clear page private code shared and accessible to > other kernel modules which can re-use these instead of open-coding. > > Signed-off-by: Oleksandr Andrushchenko > --- > drivers/xen/grant-table.c |

Re: [PATCH 3/3] f2fs: clean up symbol namespace

2018-05-29 Thread Jaegeuk Kim
Hi Chao, Thank you for the work. I resolved some conflicts and modified some function names. Please take a look at this. https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev-test --- fs/f2fs/checkpoint.c | 8 fs/f2fs/dir.c| 6 +++--- fs/f2fs/f2fs.h

Re: Status of aspeed-bmc-opp-firestone (IBM S822LC)

2018-05-29 Thread Andrew Jeffery
Hi Paul, On Wed, 30 May 2018, at 00:23, Paul Menzel wrote: > Dear Joel, dear Linux folks, > > > We have an IBM S822LC system (Firestone(?)). Building of OpenBMC > currently fails, as the not everything was ported from dev-4.10 to > dev-4.13 [1], and therefore a file cannot be found. > >

[PATCH] usb: dwc2: gadget: fix missing process for isoc descriptor dma mode

2018-05-29 Thread Zeng Tao
If it's the first request to queue, and we are using descriptor dma mode for isoc transfer, we only need to add the request to the queue, and it will be processed in the future nak interrupt handler. Signed-off-by: Zeng Tao --- drivers/usb/dwc2/gadget.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH V4] mlx4_core: allocate ICM memory in page size chunks

2018-05-29 Thread Eric Dumazet
On 05/29/2018 11:44 PM, Eric Dumazet wrote: > > And I will add this simple fix, this really should address your initial > concern much better. > > @@ -99,6 +100,8 @@ static int mlx4_alloc_icm_pages(struct scatterlist *mem, > int order, > { > struct page *page; > > + if

RE: [PATCH v4 04/22] iommu/vt-d: add bind_pasid_table function

2018-05-29 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, May 30, 2018 11:18 AM > > On Wed, 30 May 2018 01:41:43 + > "Tian, Kevin" wrote: > > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Wednesday, May 30, 2018 4:09 AM > > > > > > On Fri, 20

Re: [PATCH V4] mlx4_core: allocate ICM memory in page size chunks

2018-05-29 Thread Eric Dumazet
On 05/29/2018 11:34 PM, Eric Dumazet wrote: > I will test : > > diff --git a/drivers/net/ethernet/mellanox/mlx4/icm.c > b/drivers/net/ethernet/mellanox/mlx4/icm.c > index > 685337d58276fc91baeeb64387c52985e1bc6dda..4d2a71381acb739585d662175e86caef72338097 > 100644 > ---

Re: [net] vhost: Use kzalloc() to allocate vhost_msg_node

2018-05-29 Thread Guenter Roeck
On 05/29/2018 08:01 PM, Michael S. Tsirkin wrote: On Tue, May 29, 2018 at 03:19:08PM -0700, Guenter Roeck wrote: On Fri, Apr 27, 2018 at 11:45:02AM -0400, Kevin Easton wrote: The struct vhost_msg within struct vhost_msg_node is copied to userspace, so it should be allocated with kzalloc() to

Re: [PATCH] mm: Change return type to vm_fault_t

2018-05-29 Thread Souptick Joarder
On Tue, May 29, 2018 at 11:04 PM, Matthew Wilcox wrote: > On Tue, May 29, 2018 at 09:25:05PM +0530, Souptick Joarder wrote: >> On Tue, May 29, 2018 at 8:20 PM, Matthew Wilcox wrote: >> > On Tue, May 29, 2018 at 08:01:26PM +0530, Souptick Joarder wrote: >> >> Use new return type vm_fault_t for

Re: [PATCH V4] mlx4_core: allocate ICM memory in page size chunks

2018-05-29 Thread Eric Dumazet
On 05/25/2018 10:23 AM, David Miller wrote: > From: Qing Huang > Date: Wed, 23 May 2018 16:22:46 -0700 > >> When a system is under memory presure (high usage with fragments), >> the original 256KB ICM chunk allocations will likely trigger kernel >> memory management to enter slow path doing

RE: [PATCH 1/3] arm64:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro

2018-05-29 Thread Nixiaoming
Unable to set CONFIG_STRICT_KERNEL_RWX=n by make menuconfig ARCH=arm64 When reading the code, I feel it is more appropriate to add macro control here. -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Tuesday, May 29, 2018 11:45 PM To: Nixiaoming Cc:

Re: scsi/qla2xxx: BUG_ON(blk_queued_rq(req) is triggered in blk_finish_request

2018-05-29 Thread jianchao.wang
Hi Himanshu Thanks for your kindly response. On 05/30/2018 01:44 AM, Madhani, Himanshu wrote: > Thanks for the information. I was out for couple days. Still working through > my emails. > > Without core dump shared with us, things become hard to debug. We'll take a > look at this data. > >

Re: [git pull] Input updates for v4.17-rc7

2018-05-29 Thread Linus Torvalds
On Tue, May 29, 2018 at 6:38 PM Dmitry Torokhov wrote: > We are switching a bunch of > Lenovo devices with Synaptics touchpads from PS/2 emulation over to > native RMI/SMbus. > Given that all commits are marked for stable there is no point delaying > them till next release. Hmm. The elan

[PATCH] PCI: Add pci=safemode option

2018-05-29 Thread Sinan Kaya
Adding pci=safemode kernel command line parameter to turn off all PCI Express service driver as well as all optional PCIe features such as LTR, Extended tags, Relaxed Ordering etc. Also setting MPS configuration to PCIE_BUS_SAFE so that MPS and MRRS can be reconfigured with by the kernel in case

[PATCH 1/3] mfd: cros: add charger port count command definition

2018-05-29 Thread Fabien Parent
A new more command has been added to the ChromeOS embedded controller that allows to get the number of charger port count. Unlike EC_CMD_USB_PD_PORTS, this new command also includes the dedicated port if present. This command will be used to expose the dedicated charger port in the ChromeOS

[PATCH 2/3] power: supply: cros: add support for dedicated port

2018-05-29 Thread Fabien Parent
ChromeOS devices can have one optional dedicated port. The Dedicated port is unique and similar to the USB PD ports except that it doesn't support as many properties. The presence of a dedicated port is determined from whether the EC's charger port count is equal to 'number of USB PD port' + 1.

Re: [PATCH v4 04/22] iommu/vt-d: add bind_pasid_table function

2018-05-29 Thread Alex Williamson
On Wed, 30 May 2018 01:41:43 + "Tian, Kevin" wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Wednesday, May 30, 2018 4:09 AM > > > > On Fri, 20 Apr 2018 16:42:51 -0700 > > Jacob Pan wrote: > > > > > On Fri, 20 Apr 2018 19:25:34 +0100 > > > Jean-Philippe

[PATCH 3/3] power: supply: cros: add property to detect connected ports

2018-05-29 Thread Fabien Parent
When a port is connected but acting as a source, its 'online' and 'status' properties are identical to a port that is not connected. This makes it tedious for userspace to know for sure whether a port is connected or not. This commit adds a new property 'present' to reflect whether a port is

[PATCH 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-05-29 Thread Fabien Parent
Dear all, This patch series adds support for an optional dedicated port to the ChromeOS power supply driver and adds a new property that expose when a power supply is connected. The series was tested on ChromeOS "Fizz" hardware. This patch series depends on the following patch serie which adds

Re: [PATCH V2 2/2] block: kyber: make kyber more friendly with merging

2018-05-29 Thread jianchao.wang
Hi Omar Thanks for your kindly and detailed comment. That's really appreciated. :) On 05/30/2018 02:55 AM, Omar Sandoval wrote: > On Wed, May 23, 2018 at 02:33:22PM +0800, Jianchao Wang wrote: >> Currently, kyber is very unfriendly with merging. kyber depends >> on ctx rq_list to do merging,

[PATCH net] net/sonic: Use dma_mapping_error()

2018-05-29 Thread Finn Thain
With CONFIG_DMA_API_DEBUG=y, calling sonic_open() produces the message, "DMA-API: device driver failed to check map error". Add the missing dma_mapping_error() call. Cc: Thomas Bogendoerfer Signed-off-by: Finn Thain --- drivers/net/ethernet/natsemi/sonic.c | 2 +- 1 file changed, 1

[PATCH] usbip: usbip_detach: fix to check for invalid ports

2018-05-29 Thread Shuah Khan (Samsung OSG)
usbip detach doesn't check for invalid ports and ports that are already detached. It attempts to remove state file(s) without validating the port and sends detach request to the driver for ports that are already detached. Add check for invalid ports (port > maxports) and ports that are already

Re: [net] vhost: Use kzalloc() to allocate vhost_msg_node

2018-05-29 Thread Michael S. Tsirkin
On Tue, May 29, 2018 at 03:19:08PM -0700, Guenter Roeck wrote: > On Fri, Apr 27, 2018 at 11:45:02AM -0400, Kevin Easton wrote: > > The struct vhost_msg within struct vhost_msg_node is copied to userspace, > > so it should be allocated with kzalloc() to ensure all structure padding > > is zeroed. >

Re: [PATCH V2] PCI/portdrv: do not disable device on reboot/shutdown

2018-05-29 Thread Sinan Kaya
Bjorn, On 5/25/2018 3:10 PM, Bjorn Helgaas wrote: > On Fri, May 25, 2018 at 09:30:59AM -0400, Sinan Kaya wrote: >> On 5/24/2018 2:35 PM, Bjorn Helgaas wrote: >>> That sounds like a reasonable idea, and it is definitely another can >>> of worms. I looked briefly at some of the .shutdown() cases:

Re: Why is the length of max mount option a page size??

2018-05-29 Thread J. R. Okajima
Jungsub Shin: > Do you mean using symlinks or bind mount to reduce length of mount > options?? I can remove "~/tca_agent/image_layer_dir" string. But the > other character means unique ID of layer and i can't compress it or > replace it to another string. This is not fundamental solution.

[PATCH v15 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-29 Thread Ilia Lin
In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables defines the voltage and frequency value based on the msm-id in SMEM and speedbin blown

[PATCH v15 2/2] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-05-29 Thread Ilia Lin
The qcom-cpufreq-kryo driver reads the msm-id and efuse value from the SoC to provide the OPP framework with required information. This is used to determine the voltage and frequency value for each OPP of operating-points-v2 table when it is parsed by the OPP framework. This change adds

[PATCH v15 0/2] Kryo CPU scaling driver

2018-05-29 Thread Ilia Lin
[v15] * Addressed the kbuild error [v14] * Addressed comment from Sudeep about DT compatible * Added MAINTAINERS entry [v13] * Addressed comment from Sudeep about DT compatible check on init [v12] * Addressed comments from Sudeep and Viresh about the single init [v11] * Addressed comment

[PATCH] PCI: mediatek: Add system pm support for MT2712

2018-05-29 Thread honghui.zhang
From: Honghui Zhang The MTCMOS of PCIe Host for MT2712 will be off when system suspend, and all the internel control register will be reset after system resume. The PCIe link should be re-established and the related control register values should be re-set after system resume. Signed-off-by:

Re: [REVIEW][PATCH 0/6] Wrapping up the vfs support for unprivileged mounts

2018-05-29 Thread Eric W. Biederman
Dave Chinner writes: > Yeah, the are some fairly big process and policy things that need > to be decided here. Not just at the kernel level, but at distro and > app infrastructure level too. > > I was originally sceptical of supporting kernel filesystems via lkl, > but the desire for

Re: [PATCH RESEND] time: Fix sleeptime injection for non-stop clocksource & persistent clock

2018-05-29 Thread John Stultz
On Tue, May 29, 2018 at 2:49 AM, Mukesh Ojha wrote: > Currently, for both non-stop clocksource and persistent clock > there is a corner case, when a driver failed to go suspend mode > rtc_resume() injects the sleeptime as timekeeping_rtc_skipresume() > returned 'false' due to which we can see

Hello

2018-05-29 Thread Lisa Johnson
My name is Lisa i saw your email today when i was searching for someone i can trust and let know more about me and i became interested in you, i will also like to know you the more, I believe we can move from here! I am waiting for your mail. and I have vital information you need to know. Please,

Re: [PATCH] nvme: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Tue, May 29, 2018 at 1:11 AM, Christoph Hellwig wrote: > On Mon, May 28, 2018 at 11:49:18PM -0700, Nick Desaulniers wrote: >> Fixes a stringop-truncation warning from gcc-8. > > What would that warning be? Maybe it actually is genuinly useful, > and switching to strlcpy just papers over it..

Re: [PATCH] ext4: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Mon, May 28, 2018 at 11:21 PM, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. > > Signed-off-by: Nick Desaulniers > --- > fs/ext4/super.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index

Re: [PATCH] blk-wbt: tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Mon, May 28, 2018 at 11:31 PM, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. > > Signed-off-by: Nick Desaulniers > --- > include/trace/events/wbt.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/trace/events/wbt.h

Re: [PATCH] writeback: tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Mon, May 28, 2018 at 11:37 PM, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. > > Signed-off-by: Nick Desaulniers > --- > include/trace/events/writeback.h | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git

Re: [PATCH] tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Mon, May 28, 2018 at 11:03 PM, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. > > Signed-off-by: Nick Desaulniers > --- > kernel/trace/trace_events_hist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/trace/trace_events_hist.c >

[PATCH] mm/huge_memory.c: __split_huge_page() use atomic ClearPageDirty()

2018-05-29 Thread Hugh Dickins
Swapping load on huge=always tmpfs (with khugepaged tuned up to be very eager, but I'm not sure that is relevant) soon hung uninterruptibly, waiting for page lock in shmem_getpage_gfp()'s find_lock_entry(), most often when "cp -a" was trying to write to a smallish file. Debug showed that the page

Re: [PATCH V3 1/2] PCI: Try to clean up resources via remove if shutdown doesn't exist

2018-05-29 Thread Ryan Finnie
On 05/28/2018 02:21 PM, Sinan Kaya wrote: > It is up to a driver to implement shutdown() callback. If shutdown() > callback is not implemented, PCI device can have pending interrupt and > even do DMA transactions while the system is going down. > > If kexec is in use, this can damage the newly

Re: linux-next: build failure after merge of the kbuild tree

2018-05-29 Thread Masahiro Yamada
2018-05-30 10:29 GMT+09:00 Stephen Rothwell : > Hi Masahiro, > > After merging the kbuild tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > make was continually spawning test compiles. > > I used the kbuild tree from next-20180529 for today

RE: [PATCH] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Anson Huang
Hi, Leonard Anson Huang Best Regards! > -Original Message- > From: Leonard Crestez > Sent: Tuesday, May 29, 2018 10:03 PM > To: Anson Huang ; shawn...@kernel.org; Andrey > Smirnov > Cc: dl-linux-imx ; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org;

[PATCH V2] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Anson Huang
Correct MIPI/PCIe/USB_HSIC's PGC offset based on design RTL, the values in the Reference Manual (Rev. 1, 01/2018 and the older ones) are incorrect. The correct offset values should be as below: 0x800 ~ 0x83F: PGC for core0 of A7 platform; 0x840 ~ 0x87F: PGC for core1 of A7 platform; 0x880 ~

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

2018-05-29 Thread Stephen Rothwell
Hi Masahiro, After merging the kbuild tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: make was continually spawning test compiles. I used the kbuild tree from next-20180529 for today. A (partial) strace seemed to show that it was testing for compiler flags (some more

Re: [PATCH v3] vmw_balloon: fixing double free when batching mode is off

2018-05-29 Thread Nadav Amit
Nadav Amit wrote: > Ping. Please consider it for inclusion for rc4. > > Nadav Amit wrote: > >> From: Gil Kupfer >> >> The balloon.page field is used for two different purposes if batching is >> on or off. If batching is on, the field point to the page which is used >> to communicate with

RE: [PATCH] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Anson Huang
Hi, Andrey Anson Huang Best Regards! > -Original Message- > From: Andrey Smirnov [mailto:andrew.smir...@gmail.com] > Sent: Wednesday, May 30, 2018 7:11 AM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; dl-linux-imx ; > linux-arm-kernel ;

Re: [PATCH 2/6] PCI: iproc: Add INTx support with better modeling

2018-05-29 Thread Andy Shevchenko
On Wed, May 30, 2018 at 12:58 AM, Ray Jui wrote: > Add PCIe legacy interrupt INTx support to the iProc PCIe driver by > modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, > INTD share the same interrupt line connected to the GIC in the system, > while the status of each INTx

Re: [PATCH] mdio-mux-gpio: Remove VLA usage

2018-05-29 Thread Andrew Lunn
On Tue, May 29, 2018 at 03:59:01PM -0700, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > allocates the values buffer during the callback instead of putting it > on the stack. > > [1] >

Re: [PATCH] autofs: make autofs4 and autofs mutually exclusive

2018-05-29 Thread Ian Kent
On Tue, 2018-05-29 at 11:46 +0200, Arnd Bergmann wrote: > The autofs4 implementation is just a redirect to autofs now, but that > also means we can't have both built into the same kernel: > > fs/autofs/inode.o: In function `autofs_new_ino': > inode.c:(.text+0x1b8): multiple definition of

Re: [PATCH] KVM: VMX: Optimize tscdeadline timer latency

2018-05-29 Thread Wanpeng Li
On Wed, 30 May 2018 at 01:08, Paolo Bonzini wrote: > On 29/05/2018 16:31, Radim Krčmář wrote: > > 2018-05-29 16:23+0200, Radim Krčmář: > >> 2018-05-29 14:53+0800, Wanpeng Li: > >>> From: Wanpeng Li > >>> > >>> 'Commit d0659d946be0 ("KVM: x86: add option to advance tscdeadline > >>> hrtimer

Re: [PATCH v5 00/31] kconfig: move compiler capability tests to Kconfig

2018-05-29 Thread Masahiro Yamada
2018-05-28 21:23 GMT+09:00 Masahiro Yamada : > 2018-05-28 18:21 GMT+09:00 Masahiro Yamada : >> >> [Introduction] >> >> The motivation of this work is to move the compiler option tests to >> Kconfig from Makefile. A number of kernel features require the >> compiler support. Enabling such features

Re: [PATCH v3 01/16] mtd: rawnand: helper function for setting up ECC configuration

2018-05-29 Thread Masahiro Yamada
Hi. 2018-05-30 4:30 GMT+09:00 Boris Brezillon : > On Sat, 26 May 2018 10:42:47 +0200 > Miquel Raynal wrote: > >> Hi Abhishek, >> >> On Fri, 25 May 2018 17:51:29 +0530, Abhishek Sahu >> wrote: >> >> > commit 2c8f8afa7f92 ("mtd: nand: add generic helpers to check, >> > match, maximize ECC

Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet

2018-05-29 Thread Greg Ungerer
Hi Geert, On 28/05/18 20:15, Geert Uytterhoeven wrote: On Mon, May 28, 2018 at 7:26 AM, Finn Thain wrote: On Mon, 28 May 2018, Michael Schmitz wrote: Am 27.05.2018 um 17:49 schrieb Finn Thain: On Sun, 27 May 2018, Michael Schmitz wrote: That should have fixed the warning already ...

Re: [RFT v3 1/4] perf cs-etm: Generate branch sample for missed packets

2018-05-29 Thread Leo Yan
Hi Mathieu, On Tue, May 29, 2018 at 10:04:49AM -0600, Mathieu Poirier wrote: [...] > > As now this patch is big with more complex logic, so I consider to > > split it into small patches: > > > > - Define CS_ETM_INVAL_ADDR; > > - Fix for CS_ETM_TRACE_ON packet; > > - Fix for exception packet; >

Re: [PATCH v7 4/7] drivers/i2c: Add abort and hardware reset procedures

2018-05-29 Thread Andy Shevchenko
On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: > From: "Edward A. James" > > Add abort procedure for failed transfers. Add engine and bus reset > procedures to recover from as many faults as possible. > +#define I2C_PORT_BUSY_RESET0x8000 BIT() ? > + for (i = 0; i < 9; ++i)

[PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-05-29 Thread Shakeel Butt
The memcg kmem cache creation and deactivation (SLUB only) is asynchronous. If a root kmem cache is destroyed whose memcg cache is in the process of creation or deactivation, the kernel may crash. Example of one such crash: general protection fault: [#1] SMP PTI CPU: 1 PID:

Re: PostgreSQL licensed code on Linux

2018-05-29 Thread Andy Shevchenko
On Wed, May 30, 2018 at 3:03 AM, Luis R. Rodriguez wrote: > On Wed, May 30, 2018 at 02:22:14AM +0300, Andy Shevchenko wrote: >> On Wed, May 30, 2018 at 2:12 AM, Luis R. Rodriguez wrote: >> > It would seem I did follow up with a v3 patch and Rusty noted that although >> > I may be right, its hard

Re: [PATCH v7 5/7] drivers/i2c: Add transfer implementation for FSI algorithm

2018-05-29 Thread Andy Shevchenko
On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: > From: "Edward A. James" > > Execute I2C transfers from the FSI-attached I2C master. Use polling > instead of interrupts as we have no hardware IRQ over FSI. > + if (msg->flags & I2C_M_RD) > + cmd |= I2C_CMD_READ; I think

[PATCH v8 1/8] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" I'm able to reproduce a lockdep splat with config options: CONFIG_PROVE_LOCKING=y, CONFIG_DEBUG_LOCK_ALLOC=y and CONFIG_PREEMPTIRQ_EVENTS=y $ echo 1 > /d/tracing/events/preemptirq/preempt_enable/enable [ 26.112609]

[PATCH v8 4/8] trace/irqsoff: Split reset into separate functions

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Split reset functions into seperate functions in preparation of future patches that need to do tracer specific reset. Signed-off-by: Joel Fernandes (Google) --- kernel/trace/trace_irqsoff.c | 22 +++--- 1 file changed, 19 insertions(+), 3

[PATCH v8 0/8] Centralize and unify usage of preempt/irq tracepoints

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" The preempt/irq tracepoints exist but not everything in the kernel is using it during preempt/irq on/off events. This makes things not work simultaneously (for ex, only either lockdep or irqsoff events can be used at a time). This series is an attempt to solve

[PATCH v8 5/8] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In recent tests with IRQ on/off tracepoints, a large performance overhead ~10% is noticed when running hackbench. This is root caused to calls to rcu_irq_enter_irqson and rcu_irq_exit_irqson from the tracepoint code. Following a long discussion on the list [1]

[PATCH v8 8/8] kselftests: Add tests for the preemptoff and irqsoff tracers

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger atomic sections in the kernel. Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/ftrace/config | 3 +

[PATCH v8 2/8] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-05-29 Thread Joel Fernandes
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[PATCH v8 7/8] lib: Add module to simulate atomic sections for testing preemptoff tracers

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In this patch we introduce a test module for simulating a long atomic section in the kernel which the preemptoff or irqsoff tracers can detect. This module is to be used only for test purposes and is default disabled. Following is the expected output (only

[PATCH v8 3/8] srcu: Add notrace variant of srcu_dereference

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In the last patch in this series, we are making lockdep register hooks onto the irq_{disable,enable} tracepoints. These tracepoints use the _rcuidle tracepoint variant. In this series we switch the _rcuidle tracepoint callers to use SRCU instead of sched-RCU.

[PATCH v8 6/8] tracing: Centralize preemptirq tracepoints and unify their usage

2018-05-29 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This patch detaches the preemptirq tracepoints from the tracers and keeps it separate. Advantages: * Lockdep and irqsoff event can now run in parallel since they no longer have their own calls. * This unifies the usecase of adding hooks to an irqsoff and irqson

Re: PostgreSQL licensed code on Linux

2018-05-29 Thread Luis R. Rodriguez
On Wed, May 30, 2018 at 02:22:14AM +0300, Andy Shevchenko wrote: > On Wed, May 30, 2018 at 2:12 AM, Luis R. Rodriguez wrote: > > It would seem I did follow up with a v3 patch and Rusty noted that although > > I may be right, its hard to care [0]. But of relevance here is again if one > > of the

Re: [PATCH] HID: multitouch: fix calculation of last slot field in multi-touch reports

2018-05-29 Thread Dmitry Torokhov
On Tue, May 29, 2018 at 03:56:55PM -0700, Ben Chan wrote: > According to [1] and also seemingly agreed by [2], the Scan Time usage > (0x0D 0x56) is a report level usage, not a contact level usage. > > However, the hid-multitouch driver currently includes HID_DG_SCANTIME > when calculating

  1   2   3   4   5   6   7   8   9   10   >