[RESEND PATCH] clk: stm32h7: fix test of clock config

2017-10-10 Thread gabriel.fernandez
From: Gabriel Fernandez fix test of composite clock config (bad copy / past) Signed-off-by: Gabriel Fernandez Fixes: 3e4d618b0722 ("clk: stm32h7: Add stm32h743 clock driver") --- drivers/clk/clk-stm32h7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-s

Re: [PATCH v5 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-10 Thread Ard Biesheuvel
Hello Takahiro-san, > On 11 Oct 2017, at 06:07, AKASHI Takahiro wrote: > > On Tue, Oct 10, 2017 at 12:02:01PM +0100, Julien Thierry wrote: > > [snip] > >>> --- a/kernel/kexec_file.c >>> +++ b/kernel/kexec_file.c >>> @@ -26,30 +26,79 @@ >>> #include >>> #include "kexec_internal.h" >>> >>> +co

Re: [PATCH] scsi: be2iscsi: Use kasprintf

2017-10-10 Thread Himanshu Jha
On Tue, Oct 10, 2017 at 05:54:15PM -0400, Kyle Fortin wrote: > Hi Himanshu, > > On Oct 6, 2017, at 2:57 PM, Himanshu Jha wrote: > > > > Use kasprintf instead of combination of kmalloc and sprintf. > > > > Signed-off-by: Himanshu Jha > > --- > > drivers/scsi/be2iscsi/be_main.c | 12 +---

Re: [PATCH] wcn36xx: Remove unnecessary rcu_read_unlock in wcn36xx_bss_info_changed

2017-10-10 Thread Bjorn Andersson
On Sun 08 Oct 06:06 PDT 2017, Jia-Ju Bai wrote: > No rcu_read_lock is called, but rcu_read_unlock is still called. > Thus rcu_read_unlock should be removed. > Thanks, not sure how I could miss that one. Kalle can you please include this in a v4.14-rc pull request? : Fixes: 39efc7cc7ccf ("wcn3

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-10 Thread Michal Hocko
On Wed 11-10-17 13:37:50, Michael Ellerman wrote: > Michal Hocko writes: > > > On Tue 10-10-17 23:05:08, Michael Ellerman wrote: > >> Michal Hocko writes: > >> > >> > From: Michal Hocko > >> > > >> > Memory offlining can fail just too eagerly under a heavy memory pressure. > >> > > >> > [ 5410

[PATCH v2 1/7] net: qrtr: Invoke sk_error_report() after setting sk_err

2017-10-10 Thread Bjorn Andersson
Rather than manually waking up any context sleeping on the sock to signal an error we should call sk_error_report(). This has the added benefit that in-kernel consumers can override this notification with its own callback. Signed-off-by: Bjorn Andersson --- Changes since v1: - None net/qrtr/qr

[PATCH v2 2/7] net: qrtr: Move constants to header file

2017-10-10 Thread Bjorn Andersson
The constants are used by both the name server and clients, so clarify their value and move them to the uapi header. Signed-off-by: Bjorn Andersson --- Changes since v1: - None include/uapi/linux/qrtr.h | 3 +++ net/qrtr/qrtr.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-)

[PATCH v2 3/7] net: qrtr: Add control packet definition to uapi

2017-10-10 Thread Bjorn Andersson
The QMUX protocol specification defines structure of the special control packet messages being sent between handlers of the control port. Add these to the uapi header, as this structure and the associated types are shared between the kernel and all userspace handlers of control messages. Signed-o

[PATCH v2 4/7] net: qrtr: Pass source and destination to enqueue functions

2017-10-10 Thread Bjorn Andersson
Defer writing the message header to the skb until its time to enqueue the packet. As the receive path is reworked to decode the message header as it's received from the transport and only pass around the payload in the skb this change means that we do not have to fill out the full message header ju

[PATCH v2 5/7] net: qrtr: Clean up control packet handling

2017-10-10 Thread Bjorn Andersson
As the message header generation is deferred the internal functions for generating control packets can be simplified. This patch modifies qrtr_alloc_ctrl_packet() to, in addition to the sk_buff, return a reference to a struct qrtr_ctrl_pkt, which clarifies and simplifies the helpers to the point t

[PATCH v2 0/7] net: qrtr: Fixes and support receiving version 2 packets

2017-10-10 Thread Bjorn Andersson
On the latest Qualcomm platforms remote processors are sending packets with version 2 of the message header. This series starts off with some fixes and then refactors the qrtr code to support receiving messages of both version 1 and version 2. As all remotes are backwards compatible transmitted pa

[PATCH v2 7/7] net: qrtr: Support decoding incoming v2 packets

2017-10-10 Thread Bjorn Andersson
Add the necessary logic for decoding incoming messages of version 2 as well. Also make sure there's room for the bigger of version 1 and 2 headers in the code allocating skbs for outgoing messages. Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped __packed from struct qrtr_hdr_v2

[PATCH v2 6/7] net: qrtr: Use sk_buff->cb in receive path

2017-10-10 Thread Bjorn Andersson
Rather than parsing the header of incoming messages throughout the implementation do it once when we retrieve the message and store the relevant information in the "cb" member of the sk_buff. This allows us to, in a later commit, decode version 2 messages into this same structure. Signed-off-by:

[PATCH v2 3/5] iio: adc: at91-sama5d2_adc: add support for DMA

2017-10-10 Thread Eugen Hristev
Added support for DMA transfers. The implementation uses the user watermark to decide whether DMA will be used or not. For watermark 1, DMA will not be used. If watermark is bigger, DMA will be used. Sysfs attributes are created to indicate whether the DMA is used, with hwfifo_enabled, and the curr

[PATCH v2 1/5] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-10-10 Thread Eugen Hristev
Added property for DMA configuration of the device. Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetre

[PATCH v2 5/5] iio: adc: at91-sama5d2_adc: use max sample rate

2017-10-10 Thread Eugen Hristev
Change driver settings to use maximum sample rate clock. This is useful to achieve best possible sampling rate if we use DMA. Signed-off-by: Eugen Hristev --- drivers/iio/adc/at91-sama5d2_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/at91-sama5d2_adc.c

[PATCH v2 2/5] ARM: dts: at91: sama5d2: added dma property for ADC device

2017-10-10 Thread Eugen Hristev
Added DMA property for ADC device Signed-off-by: Eugen Hristev --- arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index cc06da3..8b4c60c 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/ar

[PATCH v2 0/5] iio: adc: at91-sama5d2_adc: add DMA support

2017-10-10 Thread Eugen Hristev
This patch implements the DMA support for the ADC in sama5d2 SoC. After discussing on the mailing list, this approach is based on triggered kfifo buffer, with DMA support added on top of it. Thus, the trigger is enabled by the buffer. The ADC itself will not have an IRQ enabled if using DMA. With D

[PATCH v2 4/5] iio: adc: at91-sama5d2_adc: ack DRDY irq in direct mode

2017-10-10 Thread Eugen Hristev
Need to acknowledge DRDY irq in direct mode/ software triggered mode. Otherwise, on the next conversion, overrun flag will be raised, which is not a correct state. This doesn't affect the functionality, but will generate possible incorrect overrun reports. Signed-off-by: Eugen Hristev --- driver

Re: [PATCH 8/9] dt-bindings: usb: mtk-xhci: add a optional property to disable u3ports

2017-10-10 Thread Chunfeng Yun
On Thu, 2017-10-05 at 17:16 -0500, Rob Herring wrote: Hi, > On Wed, Sep 27, 2017 at 05:23:04PM +0800, Chunfeng Yun wrote: > > Add a new optional property to disable u3ports > > > > Signed-off-by: Chunfeng Yun > > --- > > .../devicetree/bindings/usb/mediatek,mtk-xhci.txt |2 ++ > > 1 file ch

[ANNOUNCE] Git v2.15.0-rc1

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

Re: [PATCH v8 01/20] crypto: change transient busy return code to -EAGAIN

2017-10-10 Thread Herbert Xu
On Sat, Oct 07, 2017 at 10:51:42AM +0300, Gilad Ben-Yossef wrote: > On Sat, Oct 7, 2017 at 6:05 AM, Herbert Xu > wrote: > > On Tue, Sep 05, 2017 at 03:38:40PM +0300, Gilad Ben-Yossef wrote: > >> > >> diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c > >> index 5e92bd2..3b3c154 100644 > >> --

Re: [PATCH v15 5/7] vfio: ABI for mdev display dma-buf operation

2017-10-10 Thread Gerd Hoffmann
Hi, > No, the parameter wouldn't be a char, you'd use an __u32 for the > dmabuf_id.  I'm just referencing the structure of the GET_DEVICE_FD > as > an ioctl which returns an fd through the return value and takes a > single parameter.  I don't mean to imply matching the type of that > parameter.

Re: [PATCH v16 09/10] x86/arch_prctl: Selftest for ARCH_[GET|SET]_CPUID

2017-10-10 Thread Wanpeng Li
2017-10-11 11:56 GMT+08:00 Kyle Huey : > On Tue, Oct 10, 2017 at 8:35 PM, Wanpeng Li wrote: >> Hi Kyle, >> 2017-03-20 16:16 GMT+08:00 Kyle Huey : >>> Test disabling and reenabling the cpuid instruction via the new arch_prctl >>> ARCH_SET_CPUID, retrieving the current state via ARCH_GET_CPUID, and

Re: [PATCH 1/3] arm64: dts: qcom: msm8996: add support to pcie

2017-10-10 Thread Bjorn Andersson
On Mon 14 Aug 04:34 PDT 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to 3 pcie root complexes found on MSM8996. > [..] > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi > b/arch/arm64/boot/dts/qcom/msm8996.dtsi [..] > + agno

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-10-10 Thread Vlastimil Babka
On 10/10/2017 05:39 PM, Dave Hansen wrote: > On 10/10/2017 07:57 AM, Michal Hocko wrote: >>> But, let's be honest, this leaves us with an option that nobody is ever >>> going to turn on. IOW, nobody except a very small portion of our users >>> will ever see any benefit from this. >> But aren't tho

Re: [PATCH] of: platform: Create dummy routines for !CONFIG_OF_ADDRESS

2017-10-10 Thread Viresh Kumar
On 04-08-17, 11:39, Viresh Kumar wrote: > Few routines don't have their dummy counterparts which results in build > failures where these routines are used without CONFIG_OF_ADDRESS > enabled. > > Fix those by defining the dummy versions. > > Signed-off-by: Viresh Kumar > --- > include/linux/of_

Re: [PATCH 3/3] arm64: dts: apq8096-db820c: always enable regulator LS expansion

2017-10-10 Thread Bjorn Andersson
On Mon 14 Aug 04:34 PDT 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > 1.8v regulator on LS expansion should be left as always to comply > with 96boards spec. > > Signed-off-by: Srinivas Kandagatla Acked-by: Bjorn Andersson Regards, Bjorn > --- > arch/arm64/bo

Re: [PATCH] KVM: x86: extend usage of RET_MMIO_PF_* constants

2017-10-10 Thread Paolo Bonzini
On 10/10/2017 21:16, Radim Krčmář wrote: >> -return 0; >> +return RET_PF_EMULATE; > A direct conversion would return RET_PF_RETRY, is this some > optimization? No, it's not (and should be a different patch anyway). Fixed. Paolo

[PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-10 Thread Wang Nan
perf record's --overwrite option doesn't work as we expect. For example: $ ~/linux/tools/perf$ sudo rm ./perf.data* rm: cannot remove './perf.data*': No such file or directory : ~/linux/tools/perf$ sudo ./perf record -m 4 -e raw_syscalls:* -g --overwrite \

Re: [PATCH v16 5/5] virtio-balloon: VIRTIO_BALLOON_F_CTRL_VQ

2017-10-10 Thread Wei Wang
On 10/10/2017 11:15 PM, Michael S. Tsirkin wrote: On Mon, Oct 02, 2017 at 04:38:01PM +, Wang, Wei W wrote: On Sunday, October 1, 2017 11:19 AM, Michael S. Tsirkin wrote: On Sat, Sep 30, 2017 at 12:05:54PM +0800, Wei Wang wrote: +static void ctrlq_send_cmd(struct virtio_balloon *vb, +

[PATCH net] net/ncsi: Don't limit vids based on hot_channel

2017-10-10 Thread Samuel Mendoza-Jonas
Currently we drop any new VLAN ids if there are more than the current (or last used) channel can support. Most importantly this is a problem if no channel has been selected yet, resulting in a segfault. Secondly this does not necessarily reflect the capabilities of any other channels. Instead only

Re: [PATCH V1] pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config

2017-10-10 Thread Bjorn Andersson
On Mon 09 Oct 17:17 PDT 2017, Fenglin Wu wrote: > On 10/9/2017 1:56 PM, Bjorn Andersson wrote: > > On Sun 08 Oct 22:34 PDT 2017, Fenglin Wu wrote: > > > > > On 10/6/2017 12:27 AM, Bjorn Andersson wrote: [..] > > > > But I spotted another issue while reviewing this; currently the initial > > > > s

Re: [RFC 1/2] ARM: dts: exynos: update the usbdrd phy and ref clk

2017-10-10 Thread Anand Moon
Hi Vivek, On 10 October 2017 at 11:57, Vivek Gautam wrote: > > > On 10/08/2017 06:06 PM, Anand Moon wrote: >> >> Hi Krzysztof, >> >> On 6 October 2017 at 12:08, Krzysztof Kozlowski wrote: >>> >>> On Fri, Oct 6, 2017 at 6:36 AM, Anand Moon wrote: update the usbdrd link control and phy

[PATCH 1/1] vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()

2017-10-10 Thread kys
From: Dexuan Cui Without the patch, vmbus_hvsock_device_unregister() can destroy the device prematurely when close() is called, and can cause NULl dereferencing or potential data loss (the last portion of the data stream may be dropped prematurely). Please consider this for 4.14. Signed-off-by:

[PATCH] ahci: Add support for Cavium's fifth generation SATA controller

2017-10-10 Thread Radha Mohan Chintakuntla
From: Radha Mohan Chintakuntla This patch adds support for Cavium's fifth generation SATA controller. It is an on-chip controller and complies with AHCI 1.3.1. As the controller uses 64-bit addresses it cannot use the standard AHCI BAR5 and so uses BAR4. Signed-off-by: Radha Mohan Chintakuntla

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-10 Thread Michael Ellerman
Michael Ellerman writes: > Michal Hocko writes: >> On Tue 10-10-17 23:05:08, Michael Ellerman wrote: >>> Michal Hocko writes: >>> > From: Michal Hocko >>> > Memory offlining can fail just too eagerly under a heavy memory pressure. >>> > >>> > [ 5410.336792] page:ea22a646bd00 count:255 mapco

[PATCH v4 1/5] of/platform: Generalize /reserved-memory handling

2017-10-10 Thread Bjorn Andersson
By iterating over all /reserved-memory child nodes and match each one to a list of compatibles that we want to treat specially, we can easily extend the list of compatibles to handle - without having to resort to of_platform_populate() that would create unnecessary platform_devices. Reviewed-by: R

[PATCH v4 2/5] of: reserved_mem: Accessor for acquiring reserved_mem

2017-10-10 Thread Bjorn Andersson
In some cases drivers referencing a reserved-memory region might want to remap the entire region, but when defining the reserved-memory by "size" the client driver has no means to know the associated base address of the reserved memory region. This patch adds an accessor for such drivers to acquir

[PATCH v4 5/5] arm64: dts: msm8916: Mark rmtfs node as qcom,rmtfs-mem compatible

2017-10-10 Thread Bjorn Andersson
Now that we have a binding defined for the shared file system memory use this to describe the rmtfs memory region. Signed-off-by: Bjorn Andersson --- Changes since v3: - None Changes since v2: - Update compatible Changes since v1: - New patch arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 +++ 1

[PATCH v4 0/5] Qualcomm remote filesystem shared memory driver

2017-10-10 Thread Bjorn Andersson
Some remote processors (in particular the modem) found in Qualcomm platforms stores configuration parameters and other data in a file system. As the remotes does not have direct storage access it needs to relay block accesses through a service running on the application CPU. The memory is describe

[PATCH v4 4/5] soc: qcom: Remote filesystem memory driver

2017-10-10 Thread Bjorn Andersson
The Qualcomm remote file system protocol is used by certain remoteprocs, in particular the modem, to read and write persistent storage in platforms where only the application CPU has physical storage access. The protocol is based on a set of QMI-encoded control-messages and a shared memory buffer

[PATCH v4 3/5] dt-binding: soc: qcom: Add binding for rmtfs memory

2017-10-10 Thread Bjorn Andersson
This adds the binding for describing shared memory used to exchange file system blocks between the RMTFS client and service. A client for this is generally found in the modem firmware and is used for accessing persistent storage for things such as radio calibration. Acked-by: Rob Herring Signed-o

[Intel-gfx] [GVT-g] [ANNOUNCE] 2017-Q3 release of XenGT (Intel GVT-g for Xen)

2017-10-10 Thread Xu, Terrence
Hi all, We are pleased to announce an update of Intel GVT-g for Xen. Intel GVT-g is a full GPU virtualization solution with mediated pass-through, starting from 4th generation Intel Core(TM) processors with Intel processor graphics. A virtual GPU instance is maintained for each VM, with part of

Re: [PATCH v5 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-10 Thread AKASHI Takahiro
On Tue, Oct 10, 2017 at 12:02:01PM +0100, Julien Thierry wrote: [snip] > >--- a/kernel/kexec_file.c > >+++ b/kernel/kexec_file.c > >@@ -26,30 +26,79 @@ > > #include > > #include "kexec_internal.h" > > > >+const __weak struct kexec_file_ops * const kexec_file_loaders[] = {NULL}; > >+ > > stati

[PATCH] VFS: Handle lazytime in do_mount()

2017-10-10 Thread Markus Trippelsdorf
Since commit e462ec50cb5fa ("VFS: Differentiate mount flags (MS_*) from internal superblock flags") the lazytime mount option doesn't get passed on anymore. Fix the issue by handling the option in do_mount(). Reviewed-by: Lukas Czerner Signed-off-by: Markus Trippelsdorf --- fs/namespace.c | 3

[Intel-gfx] [GVT-g] [ANNOUNCE] 2017-Q3 release of KVMGT (Intel GVT-g for KVM)

2017-10-10 Thread Xu, Terrence
Hi all, We are pleased to announce an update of Intel GVT-g for KVM. Intel GVT-g for KVM (a.k.a. KVMGT) is a full GPU virtualization solution with mediated pass-through, starting from 5th generation Intel Core(TM) processors with Intel processor graphics.  A virtual GPU instance is maintained f

[git pull] vfs.git fixes

2017-10-10 Thread Al Viro
Fairly old DIO bug caught by Andreas (3.10+) and several slightly younger blk_rq_map_user_iov() bugs, both on map and copy codepaths (Vitaly and me). The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: Linux 4.14-rc4 (2017-10-08 20:53:29 -0700) are available in

Re: [PATCH] powerpc/perf: Fix IMC initialization crash

2017-10-10 Thread Madhavan Srinivasan
On Wednesday 11 October 2017 09:41 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Call trace observed with latest firmware, and upstream kernel. [ 14.499938] NIP [c00f318c] init_imc_pmu+0x8c/0xcf0 [ 14.499973] LR [c00f33f8] init_imc_pmu+0x2f8/0xcf0 [ 14.57] Ca

Re: BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-10 Thread Tyler Hicks
On 10/10/2017 10:32 PM, Simon Brewer wrote: > Hint start looking at this thread. https://lkml.org/lkml/2017/7/18/874 > > Summary: strscpy and KASAN are currently incompatible. strscpy does a > 64 bit speculative fetch on a char pointer (for efficiency reasons). > KASAN spots this and flags an er

Re: [PATCH v15 4/7] drm/i915/gvt: Add opregion support

2017-10-10 Thread Du, Changbin
On Tue, Oct 10, 2017 at 05:50:04PM +0800, Tina Zhang wrote: > Windows guest driver needs vbt in opregion, to configure the setting > for display. Without opregion support, the display registers won't > be set and this blocks display model to get the correct information > of the guest display plane.

Re: [alsa-devel] [Patch v6 2/7] slimbus: Add messaging APIs to slimbus framework

2017-10-10 Thread Vinod Koul
On Fri, Oct 06, 2017 at 05:51:31PM +0200, srinivas.kandaga...@linaro.org wrote: > mutex_init(&ctrl->m_ctrl); > + spin_lock_init(&ctrl->tx.lock); > + spin_lock_init(&ctrl->rx.lock); locks galore :) My assumption is that you want to optimize these? But given that audio user is going t

Re: [PATCH 2/3] watchdog: orion: don't enable rstout if an interrupt is configured

2017-10-10 Thread Chris Packham
On 11/10/17 16:42, Guenter Roeck wrote: > On 10/10/2017 07:29 PM, Chris Packham wrote: >> The orion_wdt_irq invokes panic() so we are going to reset the CPU >> regardless. By not setting this bit we get a chance to gather debug >> from the panic output before the system is reset. >> >> Signed-off-

Re: [PATCH 4.4 00/47] 4.4.92-stable review

2017-10-10 Thread Sumit Semwal
Hi Greg, On 11 October 2017 at 09:16, Tom Gall wrote: > >> On Oct 10, 2017, at 2:50 PM, Greg Kroah-Hartman >> wrote: >> >> This is the start of the stable review cycle for the 4.4.92 release. >> There are 47 patches in this series, all will be posted as a response >> to this one. If anyone has

RE: [PATCH 01/10] perf record: new interfaces to read ring buffer to file

2017-10-10 Thread Liang, Kan
> > /* When check_messup is true, 'end' must points to a good entry */ > > static union perf_event * perf_mmap__read(struct perf_mmap *md, bool > > check_messup, u64 start, diff --git a/tools/perf/util/evlist.h > > b/tools/perf/util/evlist.h index b1c14f1..1ce4857 100644 > > --- a/tools/perf/util

Re: [PATCH] powerpc/perf: Fix IMC initialization crash

2017-10-10 Thread Michael Ellerman
Anju T Sudhakar writes: > Call trace observed with latest firmware, and upstream kernel. > > [ 14.499938] NIP [c00f318c] init_imc_pmu+0x8c/0xcf0 > [ 14.499973] LR [c00f33f8] init_imc_pmu+0x2f8/0xcf0 > [ 14.57] Call Trace: > [ 14.500027] [c03fed18f710] [c00f

Re: [PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-10 Thread Yafang Shao
2017-10-10 17:33 GMT+08:00 Jan Kara : > On Tue 10-10-17 17:14:48, Yafang Shao wrote: >> 2017-10-10 16:48 GMT+08:00 Jan Kara : >> > On Tue 10-10-17 16:00:29, Yafang Shao wrote: >> >> 2017-10-10 6:42 GMT+08:00 Andrew Morton : >> >> > On Sat, 7 Oct 2017 06:58:04 +0800 Yafang Shao >> >> > wrote: >>

Re: [PATCH] printk: hash addresses printed with %p

2017-10-10 Thread Joe Perches
On Wed, 2017-10-11 at 14:48 +1100, Tobin C. Harding wrote: > Currently there are many places in the kernel where addresses are being > printed using an unadorned %p. Kernel pointers should be printed using > %pK allowing some control via the kptr_restrict sysctl. Exposing addresses > gives attacker

Re: [alsa-devel] [Patch v6 1/7] slimbus: Device management on SLIMbus

2017-10-10 Thread Vinod Koul
On Tue, Oct 10, 2017 at 06:21:34PM +0100, Srinivas Kandagatla wrote: > On 10/10/17 17:49, Vinod Koul wrote: > +static int slim_device_probe(struct device *dev) > +{ > + struct slim_device *sbdev; > + struct slim_driver *sbdrv; > + int status = 0; > + > + sbdev

Re: [PATCH 0/4] RCU: introduce noref debug

2017-10-10 Thread Paul E. McKenney
On Mon, Oct 09, 2017 at 06:53:12PM +0200, Paolo Abeni wrote: > On Fri, 2017-10-06 at 09:34 -0700, Paul E. McKenney wrote: > > On Fri, Oct 06, 2017 at 05:10:09PM +0200, Paolo Abeni wrote: > > > Hi, > > > > > > On Fri, 2017-10-06 at 06:34 -0700, Paul E. McKenney wrote: > > > > On Fri, Oct 06, 2017 a

Re: [PATCH v2 1/2] kbuild: Add a cache for generated variables

2017-10-10 Thread Masahiro Yamada
Hi Douglas, 2017-10-05 7:37 GMT+09:00 Douglas Anderson : > While timing a "no-op" build of the kernel (incrementally building the > kernel even though nothing changed) in the Chrome OS build system I > found that it was much slower than I expected. > > Digging into things a bit, I found that quit

RE: [RFC v5 4/8] platform: x86: Add generic Intel IPC driver

2017-10-10 Thread Chakravarty, Souvik K
On October 11, 2017 3:39 AM, Kuppuswamy Sathyanarayanan wrote: > Hi, > > > On 10/08/2017 09:53 PM, Chakravarty, Souvik K wrote: > >> From: sathyanarayanan.kuppusw...@linux.intel.com > >> [mailto:sathyanarayanan.kuppusw...@linux.intel.com] > >> Sent: Sunday, October 8, 2017 3:50 AM > >> To: a.zu..

Re: [PATCH v16 09/10] x86/arch_prctl: Selftest for ARCH_[GET|SET]_CPUID

2017-10-10 Thread Kyle Huey
On Tue, Oct 10, 2017 at 8:35 PM, Wanpeng Li wrote: > Hi Kyle, > 2017-03-20 16:16 GMT+08:00 Kyle Huey : >> Test disabling and reenabling the cpuid instruction via the new arch_prctl >> ARCH_SET_CPUID, retrieving the current state via ARCH_GET_CPUID, and the >> expected behaviors across fork() and e

Re: [PATCH v2] hwmon: xgene: Support hwmon v2

2017-10-10 Thread Guenter Roeck
On 10/10/2017 05:10 PM, Hoan Tran wrote: This patch supports xgene-hwmon v2 which uses the non-cachable memory as the PCC shared memory. Signed-off-by: Hoan Tran --- v2 - Map PCC shared mem by ioremap() in case hwmon is v2 So I assume you expect me to replace the (already accepted) v1 of

[PATCH] kbuild: add forward declaration of default target to Makefile.asm-generic

2017-10-10 Thread Masahiro Yamada
$(kbuild-file) and Kbuild.include are included before the default target "all". We will add a target into Kbuild.include. In advance, add a forward declaration of the default target. Signed-off-by: Masahiro Yamada --- scripts/Makefile.asm-generic | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [RFC] yamldt v0.5, now a DTS compiler too

2017-10-10 Thread David Gibson
On Tue, Oct 10, 2017 at 06:19:03PM +0300, Pantelis Antoniou wrote: > Hi David, > > > On Oct 10, 2017, at 04:50 , David Gibson > > wrote: > > > > On Mon, Oct 09, 2017 at 06:07:28PM +0300, Pantelis Antoniou wrote: > >> Hi David, > >> > >>> On Oct 9, 2017, at 03:00 , David Gibson > >>> wrote: >

[PATCH] printk: hash addresses printed with %p

2017-10-10 Thread Tobin C. Harding
Currently there are many places in the kernel where addresses are being printed using an unadorned %p. Kernel pointers should be printed using %pK allowing some control via the kptr_restrict sysctl. Exposing addresses gives attackers sensitive information about the kernel layout in memory. We can

Re: [PATCH] f2fs/crypto: drop crypto key at evict_inode only

2017-10-10 Thread Chao Yu
On 2017/10/11 1:56, Jaegeuk Kim wrote: > This patch avoids dropping crypto key in f2fs_drop_inode, so we can guarantee > it happens only at evict_inode. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/super.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH 4.4 00/47] 4.4.92-stable review

2017-10-10 Thread Tom Gall
> On Oct 10, 2017, at 2:50 PM, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.4.92 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. >

[PATCH] checkpatch: statement should end at a close brace at the outermost level.

2017-10-10 Thread Jiang Biao
Statement should end at a close brace at the outermost level in ctx_statement_block. The way to reproduce the bug, 1, Add two external function declarations into line 505 of kernel/stop_machine.c, such as, int foo1(void); int foo2(void); 2, Format a patch for that, and use the checkpatch.pl to che

Re: [PATCH 2/3] watchdog: orion: don't enable rstout if an interrupt is configured

2017-10-10 Thread Guenter Roeck
On 10/10/2017 07:29 PM, Chris Packham wrote: The orion_wdt_irq invokes panic() so we are going to reset the CPU regardless. By not setting this bit we get a chance to gather debug from the panic output before the system is reset. Signed-off-by: Chris Packham Unless I am missing something, th

Re: [PATCH 1/3] watchdog: orion: fix typo

2017-10-10 Thread Guenter Roeck
On 10/10/2017 07:29 PM, Chris Packham wrote: Correct typo in comment "insterted" -> "inserted". Signed-off-by: Chris Packham Reviewed-by: Guenter Roeck --- drivers/watchdog/orion_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/orion_wdt.c b/dri

Re: [PATCH v16 09/10] x86/arch_prctl: Selftest for ARCH_[GET|SET]_CPUID

2017-10-10 Thread Wanpeng Li
Hi Kyle, 2017-03-20 16:16 GMT+08:00 Kyle Huey : > Test disabling and reenabling the cpuid instruction via the new arch_prctl > ARCH_SET_CPUID, retrieving the current state via ARCH_GET_CPUID, and the > expected behaviors across fork() and exec(). > > Signed-off-by: Kyle Huey > --- > tools/testing

RE: [RFC v5 6/8] platform/x86: intel_punit_ipc: Use generic intel ipc device calls

2017-10-10 Thread Chakravarty, Souvik K
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver- > x86-ow...@vger.kernel.org] On Behalf Of sathyanarayanan kuppuswamy > Sent: Wednesday, October 11, 2017 3:59 AM > To: Chakravarty, Souvik K ; > a.zu...@towertech.it; x...@kernel.org; w...@igua

Re: [PATCH] udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF

2017-10-10 Thread Steve Magnani
Jan - On 10/10/2017 02:33 AM, Jan Kara wrote: On Mon 09-10-17 10:04:52, Steve Magnani wrote: ...the patch seems to be mixing two changes into one which I'd prefer to be separate patches: 1) Changes so that physical block numbers are stored in uint32_t (and accompanying format string changes)

Re: [PATCH] scripts/checkpatch.pl: fix false warning of externschecking.

2017-10-10 Thread Joe Perches
On Wed, 2017-10-11 at 11:21 +0800, jiang.bi...@zte.com.cn wrote: > > On Tue, 2017-10-10 at 16:42 +0800, Jiang Biao wrote: > > > When adding a function declaration in a .c file without an extern > > > keywork decoration, checkpatch.pl will complain *externs should be > > > avoided in .c files* false

Re: [PATCH 0/3] add %pX specifier

2017-10-10 Thread Joe Perches
On Wed, 2017-10-11 at 10:32 +1100, Tobin C. Harding wrote: > On Tue, Oct 10, 2017 at 04:15:01PM -0700, Linus Torvalds wrote: > > On Tue, Oct 10, 2017 at 4:09 PM, Tobin C. Harding wrote: > > > > > > I did not understand the code (specifically why the right shift of 16 > > > twice?) > > > > It's

Re: [PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Abstract functions of clock setting, to avoid duplicated code, > these functions been used in new feature. > Implement suspend/resume functions. > > Signed-off-by: Guochun Mao > --- > drivers/mtd/spi-nor/mtk-quadspi.c | 70

Re: [PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" > for nor flash node's compatible strings. > Explicate the fallback compatible. > > Acked-by: Rob Herring > Signed-off-by: Guochun Mao > --- > .../devicetree/bindings/mtd/

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-10 Thread Wei Wang
On 10/11/2017 10:26 AM, Tetsuo Handa wrote: > Wei Wang wrote: >> On 10/10/2017 09:09 PM, Tetsuo Handa wrote: >>> Wei Wang wrote: > And even if we could remove balloon_lock, you still cannot use > __GFP_DIRECT_RECLAIM at xb_set_page(). I think you will need to use > "whether it is safe t

Re: [PATCH 0/2] Add support for ZSTD-compressed kernel

2017-10-10 Thread Adam Borowski
On Wed, Oct 11, 2017 at 02:01:41AM +, Nick Terrell wrote: > On 10/10/17, 5:08 PM, "Adam Borowski" wrote: > > On Tue, Oct 10, 2017 at 10:40:13PM +, Nick Terrell wrote: > > > On 10/10/17, 2:56 PM, "h...@zytor.com" wrote: > > > >On October 10, 2017 2:22:42 PM PDT, Nick Terrell wrote: > > >

[PATCH v3 8/8] PM / devfreq: exynos-bus: Register cooling device

2017-10-10 Thread Chanwoo Choi
This patch registers the Exynos Bus-Frequency scaling device as a cooling device of thermal management. Signed-off-by: Chanwoo Choi Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: linux-samsung-...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers

[PATCH v3 5/8] PM / devfreq: Get the available next frequency on update_devfreq()

2017-10-10 Thread Chanwoo Choi
The update_devfreq() considers only user frequency (min_freq/max_freq) and the next target_freq provided by the governor. But, the commit a76caf55e5b35 ("thermal: Add devfreq cooling") is able to disable OPP as a cooling device. In result, the update_devfreq() have to consider the 'opp->available'

[PATCH v3 3/8] PM / devfreq: Show the available min/max frequency through sysfs node

2017-10-10 Thread Chanwoo Choi
The existing {min|max}_freq sysfs nodes don't consider whether min/max_freq are available or not. Those sysfs nodes show just the stored value in the struct devfreq. The devfreq uses the OPP interface and then dev_pm_opp_{disable|add}() might change the state of the device's supported frequency. T

[PATCH v3 1/8] PM / devfreq: Set min/max_freq when adding the devfreq device

2017-10-10 Thread Chanwoo Choi
Prior to that, the min/max_freq of the devfreq device are always zero before the user changes the min/max_freq through sysfs entries. It might make the confusion for the min/max_freq. This patch initializes the available min/max_freq by using the OPP during adding the devfreq device. Signed-off-b

[PATCH v3 2/8] Revert "PM / devfreq: Add show_one macro to delete the duplicate code"

2017-10-10 Thread Chanwoo Choi
This reverts commit 3104fa3081126c9bda35793af5f335d0ee0d5818. The {min|max}_freq_show() show the stored value of the struct devfreq. But, if the drivers/thermal/devfreq_cooling.c disables the specific frequency value, {min|max}_freq_show() have to check this situation before showing the stored val

[PATCH v3 6/8] PM / devfreq: Remove unneeded conditional statement

2017-10-10 Thread Chanwoo Choi
The commit 0ec09ac2cebe9 ("PM / devfreq: Set the freq_table of devfreq device") initializes the freq_table array of each devfreq device always. In result, it is unneeded to check whether profile->freq_table is NULL or not. Signed-off-by: Chanwoo Choi --- drivers/devfreq/devfreq.c | 7 +++ 1

[PATCH v3 0/8] PM / devfreq: Use OPP interface to handle the frequency

2017-10-10 Thread Chanwoo Choi
These patches makes the devfreq to use the OPP interface and clean-up codes. - patch 1~5 are related to te OPP interfaces. - patch 6 removes the unneeded code. - patch 7 clean-up for the governor name. - patch 8 registers the cooling device for exynos-bus. [Detaild Descripion] The commit a76caf55

[PATCH v3 7/8] PM / devfreq: Define the constant governor name

2017-10-10 Thread Chanwoo Choi
Prior to that, the devfreq device uses the governor name when adding the itself. In order to prevent the mistake used the wrong governor name, this patch defines the governor name as a constant and then uses them instead of using the string directly. Signed-off-by: Chanwoo Choi Cc: Kukjin Kim Cc

[PATCH v3 4/8] PM / devfreq: Show the all available frequencies

2017-10-10 Thread Chanwoo Choi
The commit a76caf55e5b35 ("thermal: Add devfreq cooling") allows the devfreq device to use the cooling device. When the cooling down are required, the devfreq_cooling.c disables the OPP entry with the dev_pm_opp_disable(). In result, 'available_frequencies'[1] sysfs node never came to show the all

Re: [PATCH 1/2] pinctrl: meson: separate soc drivers

2017-10-10 Thread Yixun Lan
hi jerome: On Mon, Oct 9, 2017 at 7:35 PM, Neil Armstrong wrote: > On 09/10/2017 12:17, Jerome Brunet wrote: >> When meson pinctrl is enabled, all meson platforms pinctrl drivers are >> built in the kernel, with a significant amount of data. >> >> This leads to situation where pinctrl drivers ta

[RESEND PATCH] phy: phy-mtk-tphy: add set_mode callback

2017-10-10 Thread Chunfeng Yun
This is used to force PHY with USB OTG function to enter a specific mode, and override OTG IDPIN(or IDDIG) signal. Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/phy/mediatek/p

Re: [PATCH v3 1/2] livepatch: Add dynamic klp_object and klp_func iterators

2017-10-10 Thread Josh Poimboeuf
On Tue, Oct 10, 2017 at 11:15:33AM -0400, Jason Baron wrote: > > > On 10/06/2017 05:22 PM, Josh Poimboeuf wrote: > > On Wed, Sep 27, 2017 at 11:41:29PM -0400, Jason Baron wrote: > >> In preparation to introducing atomic replace, introduce iterators for > >> klp_func and klp_object, such that obje

Re: [PATCH 0/8] livepatch: klp-convert tool

2017-10-10 Thread Josh Poimboeuf
On Tue, Oct 10, 2017 at 04:17:10PM +0200, Miroslav Benes wrote: > On Wed, 30 Aug 2017, Josh Poimboeuf wrote: > > > On Tue, Aug 29, 2017 at 04:01:32PM -0300, Joao Moreira wrote: > > > Livepatches may use symbols which are not contained in its own scope, > > > and, because of that, may end up compil

[PATCH v5 03/12] arm64: dts: mt8173: remove "mediatek,mt8135-mmc" from mmc nodes

2017-10-10 Thread Chaotian Jing
devicetree bindings has been updated to support multi-platforms, so that each platform has its owns compatible name. And, this compatible name may used in driver to distinguish with other platform. Signed-off-by: Chaotian Jing --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 12 1 fil

[PATCH v5 05/12] mmc: mediatek: add pad_tune0 support

2017-10-10 Thread Chaotian Jing
from mt2701, the register of PAD_TUNE has been phased out, while there is a new register of PAD_TUNE0 Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 51 ++- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/host/

[PATCH v5 07/12] mmc: mediatek: add busy_check support

2017-10-10 Thread Chaotian Jing
bit7 of PATCH_BIT1 has different meaning in new design, to compatible with previous platform, clear this bit in new platform. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.

[PATCH v5 10/12] mmc: mediatek: add latch-ck support

2017-10-10 Thread Chaotian Jing
some platform(eg.mt2701) does not support "stop clk fix", in this case, need set correct latch-ck to avoid crc error caused by stop clock block-internally. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/mtk-sd

[PATCH v5 09/12] mmc: mediatek: add support of source_cg clock

2017-10-10 Thread Chaotian Jing
source clock need an independent cg to control, when doing clk mode switch, need gate source clock to avoid hw issue(multi-bit sync hw hang) Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH v5 12/12] mmc: mediatek: perfer to use rise edge latching for cmd line

2017-10-10 Thread Chaotian Jing
data lines have applied to perfer to use rise edge, also need apply it to cmd line. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 95759bb..27a6225 100644

  1   2   3   4   5   6   7   8   9   10   >