Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-27 Thread David Miller
From: Denis Kirjanov Date: Wed, 25 Jun 2014 21:34:57 +0400 > We have to return the boolean here if the tag presents > or not, not just ANDing the TCI with the mask which results to: > > [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT > [ 709.412245] ret 4096 != 1 > [ 709.412332] ret 4096 != 1

Re: [PATCH v2 1/2] powerpc: bpf: Use correct mask while accessing the VLAN tag

2014-06-27 Thread David Miller
From: Denis Kirjanov Date: Wed, 25 Jun 2014 21:34:56 +0400 > To get a full tag (and not just a VID) we should access the TCI > except the VLAN_TAG_PRESENT field (which means that 802.1q header > is present). Also ensure that the VLAN_TAG_PRESENT stay on its place > > Signed-off-by: Denis Kirjano

[PATCH 4/5 v4] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-06-27 Thread Mihai Caraman
On book3e, guest last instruction is read on the exit path using load external pid (lwepx) dedicated instruction. This load operation may fail due to TLB eviction and execute-but-not-read entries. This patch lay down the path for an alternative solution to read the guest last instruction, by allow

[PATCH 5/5 v4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-06-27 Thread Mihai Caraman
On book3e, KVM uses load external pid (lwepx) dedicated instruction to read guest last instruction on the exit path. lwepx exceptions (DTLB_MISS, DSI and LRAT), generated by loading a guest address, needs to be handled by KVM. These exceptions are generated in a substituted guest translation contex

[PATCH 2/5 v4] KVM: PPC: Book3e: Add TLBSEL/TSIZE defines for MAS0/1

2014-06-27 Thread Mihai Caraman
Add mising defines MAS0_GET_TLBSEL() and MAS1_GET_TSIZE() for Book3E. Signed-off-by: Mihai Caraman --- v4-v2: - no change arch/powerpc/include/asm/mmu-book3e.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/mmu-book3e.h b/arch/powerpc/includ

[PATCH 3/5 v4] KVM: PPC: Book3s: Remove kvmppc_read_inst() function

2014-06-27 Thread Mihai Caraman
In the context of replacing kvmppc_ld() function calls with a version of kvmppc_get_last_inst() which allow to fail, Alex Graf suggested this: "If we get EMULATE_AGAIN, we just have to make sure we go back into the guest. No need to inject an ISI into the guest - it'll do that all by itself. With

[PATCH 1/5 v4] KVM: PPC: e500mc: Revert "add load inst fixup"

2014-06-27 Thread Mihai Caraman
The commit 1d628af7 "add load inst fixup" made an attempt to handle failures generated by reading the guest current instruction. The fixup code that was added works by chance hiding the real issue. Load external pid (lwepx) instruction, used by KVM to read guest instructions, is executed in a subs

[PATCH 0/5 v4] Read guest last instruction from kvmppc_get_last_inst()

2014-06-27 Thread Mihai Caraman
Read guest last instruction from kvmppc_get_last_inst() allowing the function to fail in order to emulate again. On bookehv architecture search for the physical address and kmap it, instead of using Load External PID (lwepx) instruction. This fixes an infinite loop caused by lwepx's data TLB miss e

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Nathan Fontenot
On 06/27/2014 07:41 AM, Grant Likely wrote: > On Thu, 26 Jun 2014 15:01:49 -0500, Nathan Fontenot > wrote: >> On 06/25/2014 03:24 PM, Grant Likely wrote: >>> On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot >>> wrote: >> heh! I have often thought about adding reference counting to device

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Nathan Fontenot
On 06/27/2014 07:40 AM, Pantelis Antoniou wrote: > Hi Grant, > > On Jun 27, 2014, at 3:32 PM, Grant Likely wrote: > >> On Thu, 26 Jun 2014 14:59:31 -0500, Nathan Fontenot >> wrote: >>> On 06/25/2014 03:22 PM, Grant Likely wrote: On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot wr

[PATCH] KVM: PPC: BOOK3S: HV: Update compute_tlbie_rb to handle 16MB base page

2014-06-27 Thread Aneesh Kumar K.V
When calculating the lower bits of AVA field, use the shift count based on the base page size. Also add the missing segment size and remove stale comment. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/kvm_book3s_64.h | 6 -- arch/powerpc/kvm/book3s_hv.c | 6 --

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Pantelis Antoniou
Hi Grant, On Jun 27, 2014, at 3:32 PM, Grant Likely wrote: > On Thu, 26 Jun 2014 14:59:31 -0500, Nathan Fontenot > wrote: >> On 06/25/2014 03:22 PM, Grant Likely wrote: >>> On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot >>> wrote: On 06/23/2014 09:58 AM, Grant Likely wrote: > On

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Grant Likely
On Thu, 26 Jun 2014 15:01:49 -0500, Nathan Fontenot wrote: > On 06/25/2014 03:24 PM, Grant Likely wrote: > > On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot > > wrote: > heh! I have often thought about adding reference counting to device tree > properties. > >>> > >>> You horrible

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Grant Likely
On Thu, 26 Jun 2014 14:59:31 -0500, Nathan Fontenot wrote: > On 06/25/2014 03:22 PM, Grant Likely wrote: > > On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot > > wrote: > >> On 06/23/2014 09:58 AM, Grant Likely wrote: > >>> On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou > >>> wrote:

Re: [RFC][PATCH 1/2] dma: imx-sdma: Add device to device support

2014-06-27 Thread Nicolin Chen
On Fri, Jun 13, 2014 at 06:07:04PM +0800, Nicolin Chen wrote: > This patch adds DEV_TO_DEV support for i.MX SDMA driver to support data > tranfer between two peripheral FIFOs. The per_2_per script requires two > peripheral addresses and two DMA requests. So this patch also adds them > into private

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-27 Thread Vincent Yang
2014-06-27 17:40 GMT+08:00 Ulf Hansson : > > > On 27 juni 2014 04:23:42 CEST, Vincent Yang > wrote: >>2014-06-26 17:42 GMT+08:00 Ulf Hansson : >>> >>> >>> On 26 juni 2014 08:23:32 CEST, Vincent Yang >> wrote: This patch adds manual resume for some embedded platforms with rootfs stored in

Re: [RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-27 Thread Mark Rutland
On Fri, Jun 27, 2014 at 04:32:21AM +0100, Vincent Yang wrote: > 2014-06-26 19:03 GMT+08:00 Mark Rutland : > > On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: > >> This patch adds new host controller driver for > >> Fujitsu SDHCI controller f_sdh30. > >> > >> Signed-off-by: Vincent Yan

Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-27 Thread Daniel Borkmann
On 06/27/2014 07:08 AM, Michael Ellerman wrote: On Thu, 2014-06-26 at 10:36 +0200, Daniel Borkmann wrote: On 06/26/2014 10:30 AM, Michael Ellerman wrote: On Wed, 2014-06-25 at 21:34 +0400, Denis Kirjanov wrote: We have to return the boolean here if the tag presents or not, not just ANDing the

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-27 Thread Ulf Hansson
On 27 juni 2014 04:23:42 CEST, Vincent Yang wrote: >2014-06-26 17:42 GMT+08:00 Ulf Hansson : >> >> >> On 26 juni 2014 08:23:32 CEST, Vincent Yang > wrote: >>>This patch adds manual resume for some embedded platforms with rootfs >>>stored in SD card. It references CONFIG_MMC_BLOCK_DEFERRED_RESUM