Re: [RESEND][PATCH 3/4] ARM: davinci: Set proper SPI prescale limit value

2015-08-10 Thread Sekhar Nori
On Tuesday 11 August 2015 05:17 AM, Franklin S Cooper Jr. wrote: > > > On 07/24/2015 06:50 AM, Sekhar Nori wrote: >> On Wednesday 22 July 2015 06:02 PM, Franklin S Cooper Jr wrote: >>> SPI Davinci driver has been updated to allow SOCs to specify their minimum >>> prescale value. Update the variou

Re: [PATCH 2/6] PM / OPP: restructure _of_init_opp_table_v2()

2015-08-10 Thread Viresh Kumar
On 10-08-15, 23:08, Stephen Boyd wrote: > On 08/11, Viresh Kumar wrote: > > On 10-08-15, 17:31, Stephen Boyd wrote: > > > So ret is 0. I thought it was an error path, but I guess this is a > > > warning path and we return 0 still? > > > > Urg .. > > Oh I see this is an existing problem... Same pr

Re: [RFC PATCH] mmc: sdhci-of-arasan: Add the support for sdhci-5.1

2015-08-10 Thread Shawn Lin
On 2015/8/11 13:06, Michal Simek wrote: On 08/11/2015 03:34 AM, Shawn Lin wrote: This patch adds the quirks and compatible string in sdhci-of-arasan.c to support sdhci-arasan5.1 version of controller. No documented controller IP version is found in the TRM, so we use ths version of command queue

Re: [PATCH v2 Resend] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread yalin wang
HWM_REVERSE() macro is unused, remove it. Signed-off-by: yalin wang --- drivers/net/fddi/skfp/h/hwmtm.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/fddi/skfp/h/hwmtm.h b/drivers/net/fddi/skfp/h/hwmtm.h index 5924d42..4ca2341 100644 --- a/drivers/net/fddi/skfp/h/hwmtm.

Re: [PATCH] extcon: fix signedness issues

2015-08-10 Thread Chanwoo Choi
Hi Brian, I knew this issue. So patch[1] fixed it already. I sent the extcon pull request[2] including patch[1] for Linux 4.3. [1] http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-next&id=a598af7f0279195abffbfb9bf2070457e9c89ff3 [2] https://lkml.org/lkml/2015/8/11/

[PATCH v2 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-10 Thread Kaixu Xia
There is a build error that "'struct bpf_array' has no member named 'prog'" on s390. In commit 2a36f0b, the member 'prog' of struct bpf_array is replaced by 'ptrs'. So this patch fixes it. Signed-off-by: Kaixu Xia --- arch/s390/net/bpf_jit_comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

Re: [PATCH 1/6] PM / OPP: reuse of_parse_phandle()

2015-08-10 Thread Viresh Kumar
On 10-08-15, 23:23, Stephen Boyd wrote: > Ok. That's worth a mention in the commit text please. ---8< Message-Id: <8c4503fe1c1c545d5f7ac68351d81d0238532b54.1439275133.git.viresh.ku...@linaro.org> From: Viresh Kumar Date: Thu, 30 Jul 2015 16:58:19 +053

Re: [PATCH 6/6] PM / OPP: Add debugfs support

2015-08-10 Thread Viresh Kumar
On 10-08-15, 12:50, Stephen Boyd wrote: > The dev_name thing is going to fail. Eventually we'll get into a > situation where two devices with the same name on different > busses have OPPs. When we add them to debugfs their names are > going to conflict. The regulator core suffered this problem, see

Re: [PATCH v2] mm/slub: don't wait for high-order page allocation

2015-08-10 Thread Michal Hocko
On Mon 10-08-15 09:40:22, Joonsoo Kim wrote: > On Fri, Aug 07, 2015 at 05:05:01PM +0200, Michal Hocko wrote: > > On Fri 07-08-15 11:10:03, Joonsoo Kim wrote: > > [...] > > > diff --git a/mm/slub.c b/mm/slub.c > > > index 257283f..52b9025 100644 > > > --- a/mm/slub.c > > > +++ b/mm/slub.c > > > @@ -

Re: [PATCH 6/6] PM / OPP: Add debugfs support

2015-08-10 Thread Viresh Kumar
On 10-08-15, 12:50, Stephen Boyd wrote: > > + /* Create device specific directory link */ > > + d = debugfs_create_symlink(dev_name(dev), rootdir, > > The dev_name thing is going to fail. Eventually we'll get into a > situation where two devices with the same name on different > busses have OP

Re: [Patch v2] align crash_notes allocation to make it be inside one physical page

2015-08-10 Thread Baoquan He
Hi Andrew, On 08/03/15 at 03:04pm, Andrew Morton wrote: > On Mon, 3 Aug 2015 20:50:43 +0800 Baoquan He wrote: > And I think the WARN_ON can be replaced with a > BUILD_BUG_ON(sizeof>PAGE_SIZE)? That would avoid adding runtime > overhead. Rethink about this, you are right. Using BUILD_BUG_ON is

[PATCH v6 00/16] Add VT-d Posted-Interrupts support

2015-08-10 Thread Feng Wu
VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. With VT-d Posted-Interrupts enabled, external interrupts from direct-assigned devices can be delivered to guests without VMM intervention when guest is running in non-root mode. You can find the VT-d Posted-Interrtups Spec. in

[PATCH v6 05/16] KVM: Add interfaces to control PI outside vmx

2015-08-10 Thread Feng Wu
This patch adds pi_clear_sn and pi_set_sn to struct kvm_x86_ops, so we can set/clear SN outside vmx. Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/vmx.c | 13 + 2 files changed, 16 insertions(+) diff --git a/arch/x86/include/asm/kvm_h

[PATCH v6 04/16] KVM: Get Posted-Interrupts descriptor address from 'struct kvm_vcpu'

2015-08-10 Thread Feng Wu
Define an interface to get PI descriptor address from the vCPU structure. Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/vmx.c | 11 +++ 2 files changed, 13 insertions(+) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/k

[PATCH v6 01/16] KVM: Extend struct pi_desc for VT-d Posted-Interrupts

2015-08-10 Thread Feng Wu
Extend struct pi_desc for VT-d Posted-Interrupts. Signed-off-by: Feng Wu --- arch/x86/kvm/vmx.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 83b7b5c..271dd70 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/

[PATCH v6 06/16] KVM: Make struct kvm_irq_routing_table accessible

2015-08-10 Thread Feng Wu
Move struct kvm_irq_routing_table from irqchip.c to kvm_host.h, so we can use it outside of irqchip.c. Signed-off-by: Feng Wu --- include/linux/kvm_host.h | 14 ++ virt/kvm/irqchip.c | 10 -- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/include/linux

[PATCH v6 08/16] vfio: Select IRQ_BYPASS_MANAGER for vfio PCI devices

2015-08-10 Thread Feng Wu
Enable irq bypass manager for vfio PCI devices. Signed-off-by: Feng Wu --- drivers/vfio/pci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vfio/pci/Kconfig b/drivers/vfio/pci/Kconfig index 579d83b..02912f1 100644 --- a/drivers/vfio/pci/Kconfig +++ b/drivers/vfio/pci/Kconfig

Re: [RFC v0 0/3] Simple wait queue support

2015-08-10 Thread Daniel Wagner
Hi Clark, On 08/05/2015 03:30 PM, Daniel Wagner wrote: > It's a while since the last attempt by Paul to get simple wait ready > for mainline [1]. At the last realtime workshop it was discussed how > the swait implementation could be made preempt aware. Peter posted an > untested version of it here

[PATCH v6 12/16] KVM: Add an arch specific hooks in 'struct kvm_kernel_irqfd'

2015-08-10 Thread Feng Wu
This patch adds an arch specific hooks 'arch_update' in 'struct kvm_kernel_irqfd'. On Intel side, it is used to update the IRTE when VT-d posted-interrupts is used. Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/x86.c | 5 + include/linux/kvm_h

[PATCH v6 10/16] KVM: x86: Update IRTE for posted-interrupts

2015-08-10 Thread Feng Wu
This patch adds the routine to update IRTE for posted-interrupts when guest changes the interrupt configuration. Signed-off-by: Feng Wu --- arch/x86/kvm/x86.c | 73 ++ 1 file changed, 73 insertions(+) diff --git a/arch/x86/kvm/x86.c b/arch/x86

[PATCH v6 14/16] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-08-10 Thread Feng Wu
This patch updates the Posted-Interrupts Descriptor when vCPU is blocked. pre-block: - Add the vCPU to the blocked per-CPU list - Set 'NV' to POSTED_INTR_WAKEUP_VECTOR post-block: - Remove the vCPU from the per-CPU list Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 3 + arch/x

Re: [PATCH 1/6] PM / OPP: reuse of_parse_phandle()

2015-08-10 Thread Stephen Boyd
On 08/11, Viresh Kumar wrote: > On 10-08-15, 23:02, Stephen Boyd wrote: > > > - if (prop->length != sizeof(__be32)) { > > > - dev_err(dev, "%s: Invalid opp desc phandle\n", __func__); > > > - return ERR_PTR(-EINVAL); > > > - } > > > > But we lost this check? Perhaps we can use > >

[PATCH v6 11/16] KVM: Implement IRQ bypass consumer callbacks for x86

2015-08-10 Thread Feng Wu
Implement the following callbacks for x86: - kvm_arch_irq_bypass_add_producer - kvm_arch_irq_bypass_del_producer - kvm_arch_irq_bypass_stop: dummy callback - kvm_arch_irq_bypass_resume: dummy callback and set CONFIG_HAVE_KVM_IRQ_BYPASS for x86. Signed-off-by: Feng Wu --- arch/x86/include/asm/k

[PATCH v2 00/16] Signature verification of hibernate snapshot

2015-08-10 Thread Lee, Chun-Yi
Hi experts, This patchset is the implementation of signature verification of hibernate snapshot image. The origin idea is from Jiri Kosina: Let EFI bootloader generate key-pair in UEFI secure boot environment, then forward it to kernel for sign/verify hibernate image. The first patchset for this

[PATCH v6 13/16] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2015-08-10 Thread Feng Wu
This patch updates the Posted-Interrupts Descriptor when vCPU is preempted. sched out: - Set 'SN' to suppress furture non-urgent interrupts posted for the vCPU. sched in: - Clear 'SN' - Change NDST if vCPU is scheduled to a different CPU - Set 'NV' to POSTED_INTR_VECTOR Signed-off-by: Feng Wu -

[PATCH v2 01/16] PM / hibernate: define HMAC algorithm and digest size of hibernation

2015-08-10 Thread Lee, Chun-Yi
Using HMAC-SHA1 to be the HMAC algorithm of signing hibernate snapshot image. The digest size of HMAC-SHA1 is 160 bits (20 bytes), this size will be also applied to the length of HMAC key. In addition, moved swsusp_info struct definition into CONFIG_HIBERNATION ifdef block because only hibernate c

[PATCH v1 1/5] clk: rockchip: rk3288: Add the clock id of eFuse

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian The clock id is necessary item, changing it from 0 then can be referred in driver and device tree. Signed-off-by: ZhengShunQian --- drivers/clk/rockchip/clk-rk3288.c | 2 +- include/dt-bindings/clock/rk3288-cru.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)

[PATCH v2 10/16] PM / hibernate: Generate and verify signature of hibernate snapshot

2015-08-10 Thread Lee, Chun-Yi
This is the heart of generating and verifying the signature of snapshot image of hibernate. When creating hibernation image, HMAC-SHA1 calculates hash result of all data pages that are copied to image. The signature is stored in the header of snapshot, and verified by resuming code when it's writi

[PATCH v2 14/16] PM / hibernate: Allow user trigger hibernation key re-generating

2015-08-10 Thread Lee, Chun-Yi
This patch provides a ioctl for triggering hibernation key re-generating process. It's allow user call ioctl to raise the flag of key re-generating. Kernel writes a flag to a efi runtime variable, the GUID is S4SignKeyRegen-fe141863-c070-478e-b8a3-878a5dc9ef21, then EFI stub will re-generates hiber

[PATCH v2 12/16] PM / hibernate: Forward signature verifying result and key to image kernel

2015-08-10 Thread Lee, Chun-Yi
Due to the memory space of boot kernel will be overwritten after restoring snapshot image and switching to image kernel. There have some informations should be forwarded from boot kernel to image kernel: the result of signature verifying, flag of enforce verifying signature and hibernation key. Tha

[PATCH v1 2/5] nvmem: fix the out-of-range leak in read/write()

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian The position to read/write must be less than max register size. Signed-off-by: ZhengShunQian Acked-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index d3c

[PATCH v2 13/16] PM / hibernate: Add configuration to enforce signature verification

2015-08-10 Thread Lee, Chun-Yi
Like kernel module signature checking, there's both a config option and a boot parameter which control whether we accept or fail with unsigned hibernate image and image that are signed with an unknown key. If hibernate signing is enabled, the kernel will be tainted if a snapshot image is restored

[PATCH v2 15/16] PM / hibernate: Bypass verification logic on legacy BIOS

2015-08-10 Thread Lee, Chun-Yi
Current hibernate signature verification solution relies on EFI stub and efi boot service variable on x86 architecture. So the verification logic was bypassed on legacy BIOS through checking EFI_BOOT flag. Reviewed-by: Jiri Kosina Tested-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- drivers/

[PATCH v1 5/5] ARM: dts: rockchip: add eFuse config of rk3288 SoC

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian This patch add the eFuse dt config of rk3288 SoC. Signed-off-by: ZhengShunQian --- arch/arm/boot/dts/rk3288.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 2db91c9..4632e0d 100644 --

[PATCH v1 4/5] Documentation: rockchip-efuse: describe the usage of eFuse

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian This patch add the bindings document of rockchip eFuse driver. Signed-off-by: ZhengShunQian --- .../devicetree/bindings/nvmem/rockchip-efuse.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rockc

[PATCH v2 16/16] PM / hibernate: Document signature verification of hibernate snapshot

2015-08-10 Thread Lee, Chun-Yi
Reviewed-by: Jiri Kosina Tested-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- Documentation/power/swsusp-signature-verify.txt | 86 + 1 file changed, 86 insertions(+) create mode 100644 Documentation/power/swsusp-signature-verify.txt diff --git a/Documentation/power/

[PATCH v2 09/16] PM / hibernate: Reserve hibernation key and erase footprints

2015-08-10 Thread Lee, Chun-Yi
Add handler to parse the setup data that carrying hibernation key, it reserves hibernation key by memblock then copies key to a allocated page in later initcall stage. And for erasing footprints, the codes in this patch remove setup data that carried hibernation key, and clean the memory space tha

[PATCH v1 0/5] Add eFuse driver of Rockchip SoC

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian Base on nvmem framework, this series patches implement the eFuse driver of Rockchip SoC. The data from eFuse contains CPU leakage, chip code and version etc. The flow of reading data from eFuse is quite simple, configure the CTRL register, write data address to CTRL register,

[PATCH v2 11/16] PM / hibernate: Avoid including hibernation key to hibernate image

2015-08-10 Thread Lee, Chun-Yi
The HMAC key should only resides in kernel memory space but not leak to outside. To avoid including hibernation key in hibernate snapshot image, this patch adds the checking block in the code for asking saveable pages to make sure the key page should not marked as saveable. Reviewed-by: Jiri Kosin

[PATCH v1 3/5] nvmem: rockchip-efuse: implement efuse driver

2015-08-10 Thread Shunqian Zheng
From: ZhengShunQian There are some SoC specified values store in eFuse, such as the cpu_leakage and cpu_version, this driver can expose these values to /sys base on nvmem. Signed-off-by: Caesar Wang Signed-off-by: ZhengShunQian --- drivers/nvmem/Kconfig | 10 +++ drivers/nvmem/Makef

[PATCH v6 16/16] iommu/vt-d: Add a command line parameter for VT-d posted-interrupts

2015-08-10 Thread Feng Wu
Enable VT-d Posted-Interrtups and add a command line parameter for it. Signed-off-by: Feng Wu --- Documentation/kernel-parameters.txt | 1 + drivers/iommu/irq_remapping.c | 12 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/kernel-parameters.txt

[PATCH v2 04/16] x86/efi: Generating random number in EFI stub

2015-08-10 Thread Lee, Chun-Yi
This patch adds the codes for generating random number array as the HMAC key that will used by later EFI stub codes. The original codes in efi_random copied from aslr and add the codes to accept input entropy and EFI debugging. In later patch will add the codes to get random number by EFI protocol

[PATCH v2 06/16] x86/efi: Generating random HMAC key for siging hibernate image

2015-08-10 Thread Lee, Chun-Yi
This patch adds codes in EFI stub for generating and storing the HMAC key in EFI boot service variable for signing hibernate image. Per rcf2104, the length of HMAC-SHA1 hash result is 20 bytes, and it recommended the length of key the same with hash rsult, means also 20 bytes. Using longer key wou

[PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-10 Thread Lee, Chun-Yi
To grab random numbers through EFI protocol as one of the entropies source of swsusp key, this patch adds the logic for accessing EFI RNG (random number generator) protocol that's introduced since UEFI 2.4. Signed-off-by: Lee, Chun-Yi --- arch/x86/boot/compressed/efi_random.c | 209 +

[PATCH v2 07/16] efi: Make efi_status_to_err() public

2015-08-10 Thread Lee, Chun-Yi
Moved the function of transferring EFI status to kernel error for later used by EFI stub. Reviewed-by: Jiri Kosina Tested-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- drivers/firmware/efi/vars.c | 33 - include/linux/efi.h | 33 +++

[PATCH v2 08/16] x86/efi: Carrying hibernation key by setup data

2015-08-10 Thread Lee, Chun-Yi
For forwarding hibernation key from EFI stub to boot kernel, this patch allocates setup data for carrying hibernation key, size and the status of efi operating. Reviewed-by: Jiri Kosina Tested-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- arch/x86/boot/compressed/eboot.c | 26 ++

[PATCH v2 03/16] x86/boot: Public getting random boot function

2015-08-10 Thread Lee, Chun-Yi
This patch moves the getting random boot function from aslr to misc for later used by EFI stub to generate the first entropy of hmac key for signing hibernate snapshot image. Reviewed-by: Jiri Kosina Tested-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- arch/x86/boot/compressed/aslr.c | 57 ++

[PATCH v2 02/16] x86/efi: Add get and set variable to EFI services pointer table

2015-08-10 Thread Lee, Chun-Yi
Add get variable and set variable function to EFI services pointer table for supporting later functions of hibernate signature verification to keep the HMAC key in efi boot service variable. EFI boot stub needs get/set_variable functions for accessing key. Reviewed-by: Jiri Kosina Tested-by: Jiri

[PATCH v6 03/16] KVM: Define a new interface kvm_intr_is_single_vcpu()

2015-08-10 Thread Feng Wu
This patch defines a new interface kvm_intr_is_single_vcpu(), which can returns whether the interrupt is for single-CPU or not. It is used by VT-d PI, since now we only support single-CPU interrupts, For lowest-priority interrupts, if user configures it via /proc/irq or uses irqbalance to make it

[PATCH v6 15/16] KVM: Warn if 'SN' is set during posting interrupts by software

2015-08-10 Thread Feng Wu
Currently, we don't support urgent interrupt, all interrupts are recognized as non-urgent interrupt, so we cannot post interrupts when 'SN' is set. If the vcpu is in guest mode, it cannot have been scheduled out, and that's the only case when SN is set currently, warning if SN is set. Signed-off-

[PATCH v6 07/16] KVM: make kvm_set_msi_irq() public

2015-08-10 Thread Feng Wu
Make kvm_set_msi_irq() public, we can use this function outside. Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 4 arch/x86/kvm/irq_comm.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kv

[PATCH v6 02/16] KVM: Add some helper functions for Posted-Interrupts

2015-08-10 Thread Feng Wu
This patch adds some helper functions to manipulate the Posted-Interrupts Descriptor. Signed-off-by: Feng Wu --- arch/x86/kvm/vmx.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 271dd70..316f9bf 100644 --- a/arch/x86

[PATCH v6 09/16] vfio: Register/unregister irq_bypass_producer

2015-08-10 Thread Feng Wu
This patch adds the registration/unregistration of an irq_bypass_producer for MSI/MSIx on vfio pci devices. v6: - Make the add_consumer and del_consumer callbacks static - Remove pointless INIT_LIST_HEAD to 'vdev->ctx[vector].producer.node)' - Use dev_info instead of WARN_ON() when irq_bypass_regi

[PATCH v2 02/16] x86/efi: Add get and set variable to EFI services pointer table

2015-08-10 Thread Lee, Chun-Yi
Add get variable and set variable function to EFI services pointer table for supporting later functions of hibernate signature verification to keep the HMAC key in efi boot service variable. EFI boot stub needs get/set_variable functions for accessing key. Reviewed-by: Jiri Kosina Tested-by: Jiri

[PATCH v2 01/16] PM / hibernate: define HMAC algorithm and digest size of hibernation

2015-08-10 Thread Lee, Chun-Yi
Using HMAC-SHA1 to be the HMAC algorithm of signing hibernate snapshot image. The digest size of HMAC-SHA1 is 160 bits (20 bytes), this size will be also applied to the length of HMAC key. In addition, moved swsusp_info struct definition into CONFIG_HIBERNATION ifdef block because only hibernate c

[PATCH v2 00/16] Signature verification of hibernate snapshot

2015-08-10 Thread Lee, Chun-Yi
Hi experts, This patchset is the implementation of signature verification of hibernate snapshot image. The origin idea is from Jiri Kosina: Let EFI bootloader generate key-pair in UEFI secure boot environment, then forward it to kernel for sign/verify hibernate image. The first patchset for this

Re: [PATCH 1/6] PM / OPP: reuse of_parse_phandle()

2015-08-10 Thread Viresh Kumar
On 10-08-15, 23:02, Stephen Boyd wrote: > > - if (prop->length != sizeof(__be32)) { > > - dev_err(dev, "%s: Invalid opp desc phandle\n", __func__); > > - return ERR_PTR(-EINVAL); > > - } > > But we lost this check? Perhaps we can use > of_count_phandle_with_args() to make s

Re: [PATCH 5/6] PM / OPP: Move cpu specific code to opp/cpu.c

2015-08-10 Thread Stephen Boyd
On 08/10, Viresh Kumar wrote: > Move cpu device specific code out of generic opp library, and add it to > cpu.c. > > Along with that, create a core-internal opp.h header, which will be used > to share structures and function prototypes within opp core. > > Signed-off-by: Viresh Kumar > --- Revi

Re: [PATCH 2/6] PM / OPP: restructure _of_init_opp_table_v2()

2015-08-10 Thread Stephen Boyd
On 08/11, Viresh Kumar wrote: > On 10-08-15, 17:31, Stephen Boyd wrote: > > So ret is 0. I thought it was an error path, but I guess this is a > > warning path and we return 0 still? > > Urg .. Oh I see this is an existing problem... Same problem goes for the count check. It may be better to fix

Re: [PATCH 2/6] PM / OPP: restructure _of_init_opp_table_v2()

2015-08-10 Thread Stephen Boyd
On 08/11, Viresh Kumar wrote: > On 10-08-15, 17:31, Stephen Boyd wrote: > > I am not insisting anything. But another patch to get rid of the > > goto sounds fine. > > The separate patch to kill goto. > > -8<- > > Message-Id: > <9f9b9ea6ea3685d5f71c132

Re: [Xen-devel] [PATCH RFC v2 0/5] Multi-queue support for xen-blkfront and xen-blkback

2015-08-10 Thread Bob Liu
On 08/10/2015 11:52 PM, Jens Axboe wrote: > On 08/10/2015 05:03 AM, Rafal Mielniczuk wrote: >> On 01/07/15 04:03, Jens Axboe wrote: >>> On 06/30/2015 08:21 AM, Marcus Granado wrote: Hi, Our measurements for the multiqueue patch indicate a clear improvement in iops when more que

Re: [PATCH 5/5] drivers/tty: make serial 8250_lpc18xx.c explicitly non-modular

2015-08-10 Thread Paul Gortmaker
[Re: [PATCH 5/5] drivers/tty: make serial 8250_lpc18xx.c explicitly non-modular] On 10/08/2015 (Mon 20:42) Joachim Eastwood wrote: > Hi Paul, > > On 9 August 2015 at 02:51, Paul Gortmaker > wrote: > > The Kconfig currently controlling compilation of this code is: > > > > 8250/Kconfig:config SE

Re: [PATCH 1/6] PM / OPP: reuse of_parse_phandle()

2015-08-10 Thread Stephen Boyd
On 08/10, Viresh Kumar wrote: > We already have a better API to get the opp descriptor block's node from > cpu-node. Lets reuse that instead of creating our own routines for the > same stuff. That cleans the code a lot. > > Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd > diff --git a/d

Donation

2015-08-10 Thread Carlos Slim Helu
-- My name is Carlos Slim Helu, A philanthropist the CEO and Chairman of the Carlos Slim Helu Foundation Charitable Foundation, one of the largest private foundations in the world. I believe in my Lord Jesus Christ direct me i should use my wealth to help individual you should count yourself

Re: [PATCH] ARM: exynos_defconfig: Enable cpufreq-dt driver

2015-08-10 Thread Javier Martinez Canillas
Hello Krzysztof, On 08/11/2015 04:15 AM, Krzysztof Kozlowski wrote: > With the latest patches the cpufreq-dt can be used on multiple > Exynos SoCs: 3250, 4210, 4212, 4412 and 5250. > > Enable it along with default ondemand governor to conserve the energy, > reduce temperature while maintaining ac

Re: [PATCH net] netconsole: Check for carrier before calling netpoll_send_udp()

2015-08-10 Thread Jonathan Maxwell
> What if the carrier check passes, and then the chip reset starts on > another cpu? You'll have the same problem. Okay, let me see if I can come up with a better way to mitigate this. On Tue, Aug 11, 2015 at 2:22 PM, David Miller wrote: > From: Jon Maxwell > Date: Tue, 11 Aug 2015 11:32:26 +1

Re: [PATCH v2 Resend] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread yalin wang
> On Aug 11, 2015, at 13:37, David Miller wrote: > > From: yalin wang > Date: Tue, 11 Aug 2015 13:11:22 +0800 > >> HWM_REVERSE() macro is unused, remove it. >> >> Signed-off-by: yalin wang > > You did not do as I asked you to, this patch is still corrupted > and there is no way you successf

[PATCH] joystick/zhenhua: remove zhenhua_bitreverse()

2015-08-10 Thread yalin wang
This change remove zhenhua_bitreverse() function, use generic bitrev8() function instead. Signed-off-by: yalin wang --- drivers/input/joystick/zhenhua.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/input/joystick/zhenhua.c b/drivers/input/joystick/zh

Re: [PATCH v2 Resend] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread David Miller
From: yalin wang Date: Tue, 11 Aug 2015 13:11:22 +0800 > HWM_REVERSE() macro is unused, remove it. > > Signed-off-by: yalin wang You did not do as I asked you to, this patch is still corrupted and there is no way you successfully applied what is in this patch. > -#defineHWM_REVERSE(x)

Re: [PATCH] Staging: android: ion: Fix missing a blank line coding style issue.

2015-08-10 Thread Sudip Mukherjee
On Mon, Aug 10, 2015 at 11:42:27PM -0500, Junsu Shin wrote: > This is a patch to the ion.c that fixes a warning that tells missing a blank > line after declaration > > Signed-off-by: Junsu Shin > --- 1) This is a false positive. 2) You need to refresh your tree. This has already been fixed. reg

Re: [PATCH net-next] bpf: fix the bug "'struct bpf_array' has no member named 'prog'" in s390 architecture

2015-08-10 Thread David Miller
From: Kaixu Xia Date: Tue, 11 Aug 2015 05:00:24 + > 'Kbuild test robot' sent me an email about a build error > "'struct bpf_array' has no member named 'prog'" in s390 > architecture. This error is caused by commit: 2a36f0b92eb > 638dd023870574eb471b1c56be9ad [656/692] bpf: Make the bpf > _pro

[PATCH 3/3] ARM: dts: sun6i: Add security system crypto engine clock and device nodes

2015-08-10 Thread Chen-Yu Tsai
A31/A31s have the same "Security System" crypto engine as A10/A20, but with a separate reset control. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6

[PATCH 0/3] ARM: sun6i: Support Security System crypto engine

2015-08-10 Thread Chen-Yu Tsai
Hi everyone, This series enables support for the crypto engine found in sun6i, or Allwinner A31/A31s SoCs. The crypto engine is the same hardware as on earlier sun4i/sun7i (A10/A20), with the only difference being the reset control is separated out of the clock gate control. The same hardware is

[PATCH 1/3] crypto: sunxi-ss: Document optional reset control bindings

2015-08-10 Thread Chen-Yu Tsai
Later Allwinner SoCs split out the reset controls for individual modules out of the clock gate controls. The "Security System" crypto engine is no different. Signed-off-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/crypto/sun4i-ss.txt | 4 1 file changed, 4 insertions(+) diff --gi

[PATCH 2/3] crypto: sunxi-ss: Add optional reset control support

2015-08-10 Thread Chen-Yu Tsai
On sun6i and later platforms, the reset control is split out of the clock gates. Add support for an optional reset control. Signed-off-by: Chen-Yu Tsai --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 22 ++ drivers/crypto/sunxi-ss/sun4i-ss.h | 2 ++ 2 files changed, 24 in

[PATCH] zlib_deflate/deftree: Remove bi_reverse()

2015-08-10 Thread yalin wang
This change remove bi_reverse() and use generic bitrev32() instead, have better performance on some platforms. Signed-off-by: yalin wang --- lib/zlib_deflate/deftree.c | 6 +++--- lib/zlib_deflate/defutil.h | 16 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/l

Re: [PATCH] staging: lustre: lustre: llite: Added a new line after declaration

2015-08-10 Thread Sudip Mukherjee
On Mon, Aug 10, 2015 at 08:56:02PM +0530, Aparna Karuthodi wrote: > Added a new line to fix a coding style error no space after > declaration detected by checkpatch. > > Signed-off-by: Aparna Karuthodi > --- Why are you sending this patch again? You have sent this one long back and has already be

[PATCH v2 Resend] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread yalin wang
HWM_REVERSE() macro is unused, remove it. Signed-off-by: yalin wang --- drivers/net/fddi/skfp/h/hwmtm.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/net/fddi/skfp/h/hwmtm.h b/drivers/net/fddi/skfp/h/hwmtm.h index 5924d42..4ca2341 100644 --- a/drivers/net/fddi/skfp/h/hwmtm

Re: [PATCH v2] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread yalin wang
> On Aug 11, 2015, at 12:24, David Miller wrote: > > From: yalin wang > Date: Tue, 11 Aug 2015 09:57:21 +0800 > >> HWM_REVERSE() macro is unused, remove it. >> >> Signed-off-by: yalin wang > > Your email client has corrupted this patch. > > Please read Documentation/email-clients.txt, send

Re: [RFC PATCH] mmc: sdhci-of-arasan: Add the support for sdhci-5.1

2015-08-10 Thread Michal Simek
On 08/11/2015 03:34 AM, Shawn Lin wrote: > This patch adds the quirks and compatible string in sdhci-of-arasan.c > to support sdhci-arasan5.1 version of controller. No documented controller > IP version is found in the TRM, so we use ths version of command queueing > engine integrated into this con

[PATCH net-next] bpf: fix the bug "'struct bpf_array' has no member named 'prog'" in s390 architecture

2015-08-10 Thread Kaixu Xia
'Kbuild test robot' sent me an email about a build error "'struct bpf_array' has no member named 'prog'" in s390 architecture. This error is caused by commit: 2a36f0b92eb 638dd023870574eb471b1c56be9ad [656/692] bpf: Make the bpf _prog_array_map more generic. In this patch, the member 'prog' of stru

Re: [GIT PULL] MODSIGN: Use PKCS#7 for module signatures [ver #7]

2015-08-10 Thread James Morris
On Tue, 11 Aug 2015, David Howells wrote: > This is mentioned in the > > MODSIGN: Provide a utility to append a PKCS#7 signature to a module > > commit description. > > Note that the utility is written in C and must be linked against the > OpenSSL crypto library. > > Would it

[PATCH] pinctrl: mediatek: Fix multiple registeration issue.

2015-08-10 Thread Hongzhou Yang
Use dynamic allocation to fix multiple registeration issue. --8< Since our common driver need support main chip and PMU at the same time, that means it will register two pinctrl device, and the pinctrl_desc structure should be used two times. But pinctrl_desc use g

Re: [PATCH v7 0/9] Fixes and new clocks support for Mediatek MT8173

2015-08-10 Thread Daniel Kurtz
Hi James, On Mon, Aug 10, 2015 at 5:50 PM, James Liao wrote: > This patchset is based on 4.2-rc2 and [1], and contains minor fixes and > subsystem clocks support for Mediatek MT8173. > > The previous reviews can be found in [2]. > > changes since v6: > - Use DUMMY_RATE (0) instead of typical rate

[PATCH] Staging: android: ion: Fix missing a blank line coding style issue.

2015-08-10 Thread Junsu Shin
This is a patch to the ion.c that fixes a warning that tells missing a blank line after declaration Signed-off-by: Junsu Shin --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 6f

Re: [PATCH v2 2/2] watchdog: add wdt shutdown callback to disable wdt if enabled

2015-08-10 Thread Guenter Roeck
On 08/10/2015 09:28 PM, Daniel Kurtz wrote: Hi Guenter, Matthias, On Fri, Jul 24, 2015 at 1:37 AM, Matthias Brugger wrote: On Thursday, July 23, 2015 01:49:11 PM Eddie Huang wrote: From: Greta Zhang Without .shutdown(), watchdog might reset the system during power off. For example, if watch

Re: [PATCH v2 2/2] watchdog: add wdt shutdown callback to disable wdt if enabled

2015-08-10 Thread Daniel Kurtz
Hi Guenter, Matthias, On Fri, Jul 24, 2015 at 1:37 AM, Matthias Brugger wrote: > On Thursday, July 23, 2015 01:49:11 PM Eddie Huang wrote: >> From: Greta Zhang >> >> Without .shutdown(), watchdog might reset the system during power off. >> For example, if watchdog's timeout is set to 30s, then i

Re: [PATCH v2] net/fddi: remove HWM_REVERSE() macro

2015-08-10 Thread David Miller
From: yalin wang Date: Tue, 11 Aug 2015 09:57:21 +0800 > HWM_REVERSE() macro is unused, remove it. > > Signed-off-by: yalin wang Your email client has corrupted this patch. Please read Documentation/email-clients.txt, send a test patch to yourself, and only resubmit this change once you are

Re: [PATCH net] netconsole: Check for carrier before calling netpoll_send_udp()

2015-08-10 Thread David Miller
From: Jon Maxwell Date: Tue, 11 Aug 2015 11:32:26 +1000 > We have seen a few crashes recently where a NIC is getting > reset for some reason and then the driver or another module calls > printk() which invokes netconsole. Netconsole then calls the > adapter specific poll routine via netpoll which

[GIT PULL] extcon next for 4.3

2015-08-10 Thread Chanwoo Choi
Dear Greg, This is extcon-next full request for v4.3. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit f7644cbfcdf03528f0f450f3940c4985b2291f49: Linux 4.2-rc6 (2015-08-09 15:54:30

Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

2015-08-10 Thread Marcel Holtmann
Hi Yong, > When the device tree support is disabled, the fifo_pin is uninitialized, > this patch will set the fifo_pin value based on platform data > > Signed-off-by: Yong Li > --- > drivers/net/ieee802154/cc2520.c | 1 + > 1 file changed, 1 insertion(+) patch has been applied to bluetooth-next

Re: [PATCH V10] fixup: audit: implement audit by executable

2015-08-10 Thread Richard Guy Briggs
On 15/08/10, Paul Moore wrote: > On Monday, August 10, 2015 01:29:43 PM Richard Guy Briggs wrote: > > On 15/08/10, Paul Moore wrote: > > > On Saturday, August 08, 2015 10:20:25 AM Richard Guy Briggs wrote: > > > > diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c > > > > index 1255dbf..656c7

Re: [PATCH v2 00/11] test_user_copy improvements

2015-08-10 Thread David Miller
From: David Miller Date: Mon, 10 Aug 2015 15:29:38 -0700 (PDT) > Also, I think the tests you added and protected with MIPS ifdefs could > equally be enabled on sparc64. James, as per this issue, I was thinking we could do something like this so that the tests don't get messy: diff --git a/arch/

Re: [PATCH v4] dtb: Create a common home for cross-architecture dtsi files.

2015-08-10 Thread Masahiro Yamada
Hi 2015-08-04 1:06 GMT+09:00 Ian Campbell : > Commit 9ccd608070b6 ("arm64: dts: add device tree for ARM SMM-A53x2 on > LogicTile Express 20MG") added a new dts file to arch/arm64 which > included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a > .dtsi supplied by arch/arm. > > Unfortunate

[PATCH 0/4] ARM: dts: exynos3250: Add UART2 and MMC2 dt node with related clocks

2015-08-10 Thread Chanwoo Choi
This patch add the UART2 / MMC2 devicetree node for Exynos3250 SoC and add the related clocks (mux, divider, gate) of UART2 / MMC2 device. Chanwoo Choi (4): clk: samsung: exynos3250: Add UART2 clock clk: samsung: exynos3250: Add MMC2 clock ARM: dts: Add UART2 dt node for Exynos3250 SoC ARM

[PATCH 1/4] clk: samsung: exynos3250: Add UART2 clock

2015-08-10 Thread Chanwoo Choi
This patch add the UART2 clocks (mux, divider, gate) of Exynos3250 SoC. Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos3250.c | 6 ++ include/dt-bindings/clock/exynos3250.h | 6 +- 2 files changed, 11 insertions(+), 1 deletion(-)

[PATCH 3/4] ARM: dts: Add UART2 dt node for Exynos3250 SoC

2015-08-10 Thread Chanwoo Choi
This patch add the uart2 devicetree node for Exynos3250 SoC. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 7 +++ arch/arm/boot/dts/exynos3250.dtsi | 12 2 files changed, 19 insertions(+) diff --git

[PATCH 2/4] clk: samsung: exynos3250: Add MMC2 clock

2015-08-10 Thread Chanwoo Choi
This patch add the MMC2 clocks (mux, divider, gate) of Exynos3250 SoC. Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos3250.c | 9 + include/dt-bindings/clock/exynos3250.h | 7 ++- 2 files changed, 15 insertions(+), 1 deletion(

[PATCH 4/4] ARM: dts: Add MSHC2 dt node for Exynos3250 SoC

2015-08-10 Thread Chanwoo Choi
This patch add the MSHC2 (Mobile Storage Host Controller) devicetree node for Exynos3250 SoC. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 35 +++ arch/arm/boot/dts/exynos3250.dtsi | 13 ++

Re: [PATCH] net: Unbreak resetting default values for tcp_wmem/udp_wmem_min

2015-08-10 Thread David Miller
From: Calvin Owens Date: Mon, 10 Aug 2015 20:34:06 -0700 > I'm really questioning the limitation itself: why enforce a minimum of > SOCK_MIN_SNDBUF here? Why not SK_MEM_QUANTUM? > > Commit 8133534c760d4083 referred to b1cb59cf2efe7971, which choose to > use the SOCK_MIN constants as the lower li

  1   2   3   4   5   6   7   8   9   10   >