[PATCH] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-26 Thread Denis Kirjanov
Cc: Matt Evans m...@ozlabs.org Signed-off-by: Denis Kirjanov k...@linux-powerpc.org --- arch/powerpc/include/asm/ppc-opcode.h | 1 + arch/powerpc/net/bpf_jit.h| 7 +++ arch/powerpc/net/bpf_jit_comp.c | 5 + 3 files changed, 13 insertions(+) diff --git a/arch/powerpc

Re: powerpc: Wire up sys_bpf() syscall

2014-10-20 Thread Denis Kirjanov
We have a test suite under samples/bpf/ On 10/21/14, Michael Ellerman m...@ellerman.id.au wrote: On Fri, 2014-10-10 at 05:53:45 UTC, Pranith Kumar wrote: This patch wires up the new syscall sys_bpf() on powerpc. Is there a test suite we can run to verify it works? cheers

Re: powerpc: Wire up sys_bpf() syscall

2014-10-20 Thread Denis Kirjanov
I don't see any problems with it On 10/21/14, Michael Ellerman m...@ellerman.id.au wrote: On Tue, 2014-10-21 at 08:52 +0400, Denis Kirjanov wrote: We have a test suite under samples/bpf/ Thanks. I looked under tools/testing/selftests, could it move in there? cheers -- Regards, Denis

Re: powerpc: Wire up sys_bpf() syscall

2014-10-20 Thread Denis Kirjanov
I don't see any problems with it On 10/21/14, Michael Ellerman m...@ellerman.id.au wrote: On Tue, 2014-10-21 at 08:52 +0400, Denis Kirjanov wrote: We have a test suite under samples/bpf/ Thanks. I looked under tools/testing/selftests, could it move in there? cheers -- Regards, Denis

Re: [PATCH] powerpc : dma-mapping : Check null condition for dev-archdata.dma_ops

2014-07-18 Thread Denis Kirjanov
On 7/18/14, Nikhil Badola nikhil.bad...@freescale.com wrote: Modifies get_dma_ops() implementation on ppc arch to check null condition which means that dma is not supported. Could you please describe the use case where the ops is null. for dev-archdata.dma_ops; returns common dma_direct_ops

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

2014-06-26 Thread Denis Kirjanov
On 6/26/14, Michael Ellerman m...@ellerman.id.au 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 TCI with the mask which results to: [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT

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

2014-06-25 Thread Denis Kirjanov
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 Kirjanov k...@linux-powerpc.org --- arch/powerpc/net/bpf_jit_comp.c | 4

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

2014-06-25 Thread Denis Kirjanov
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 [ 709.412333] FAIL (2 times) Signed-off-by: Denis Kirjanov k...@linux

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

2014-06-24 Thread Denis Kirjanov
Use the proper mask which is 0xefff --- arch/powerpc/net/bpf_jit_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/net/bpf_jit_comp.c b/arch/powerpc/net/bpf_jit_comp.c index 6dcdade..af0ed4d 100644 --- a/arch/powerpc/net/bpf_jit_comp.c +++

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

2014-06-24 Thread Denis Kirjanov
We have to return the boolean here if the tag presents or not, not jusr ORing 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 [ 709.412333] FAIL (2 times) --- arch/powerpc/net/bpf_jit_comp.c | 4

Re: kmemleak: Unable to handle kernel paging request

2014-06-13 Thread Denis Kirjanov
On 6/13/14, Catalin Marinas catalin.mari...@arm.com wrote: On Fri, Jun 13, 2014 at 08:12:08AM +0100, Denis Kirjanov wrote: On 6/12/14, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Jun 12, 2014 at 01:00:57PM +0100, Denis Kirjanov wrote: On 6/12/14, Denis Kirjanov k...@linux

Re: Critical Interrupt Input

2013-08-19 Thread Denis Kirjanov
The easy thing is to start to experimenting with scratch/preserve registers :) On 8/20/13, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote: Support does appear to be present but there is a problem returning back to user space I

[PATCH v2] Fix a typo in pSeries_lpar_hpte_insert()

2013-07-23 Thread Denis Kirjanov
Commit 801eb73f45371accc78ca9d6d22d647eeb722c11 introduced a bug while checking PTE flags. We have to drop the _PAGE_COHERENT flag when __PAGE_NO_CACHE is set and the cache update policy is not write-through (i.e. _PAGE_WRITETHRU is not set) Signed-off-by: Denis Kirjanov k...@linux-powerpc.org

[PATCH] Fix a typo in pSeries_lpar_hpte_insert()

2013-07-22 Thread Denis Kirjanov
Fix a typo in pSeries_lpar_hpte_insert() Signed-off-by: Denis Kirjanov k...@linux-powerpc.org --- arch/powerpc/platforms/pseries/lpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 0da39fe

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-03 Thread Denis Kirjanov
I'm running 3.7.6 without any problems on my quad core machine. You have to try to compile with g5_defconfig... On 3/3/13, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Sat, 2013-03-02 at 17:22 +0100, Andreas Schwab wrote: Thanks. Then i configured something wrongly probably. I

Re: [PATCH powerpc] Fix MAX_STACK_TRACE_ENTRIES too low warning for ppc32

2012-12-03 Thread Denis Kirjanov
Could you please provide a more verbose patch description Thanks. On 12/3/12, Li Zhong zh...@linux.vnet.ibm.com wrote: This patch fixes MAX_STACK_TRACE_ENTRIES too low warning for ppc32, which is similar to commit 12660b17. Reported-by: Christian Kujau li...@nerdbynature.de Signed-off-by:

[PATCH] Use is_32bit_task() helper to test 32-bit binary

2010-08-27 Thread Denis Kirjanov
This patch removes all explicit tests for the TIF_32BIT flag Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/include/asm/compat.h|4 ++-- arch/powerpc/include/asm/elf.h |2 +- arch/powerpc/include/asm/page_64.h |4 ++-- arch/powerpc/include/asm

[PATCH] Use is_32bit_task() helper to test 32 bit binary

2010-07-30 Thread Denis Kirjanov
Use is_32bit_task() helper to test 32 bit binary. Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/kernel/process.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 43855c9

Re: [PATCH] kvm/ppc: fix build warning

2010-06-25 Thread Denis Kirjanov
On 06/25/2010 12:42 AM, Alexander Graf wrote: On 24.06.2010, at 21:44, Denis Kirjanov wrote: Fix build warning: arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid': arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb' may be used uninitialized in this function

Re: [PATCH] kvm/ppc: fix build warning

2010-06-25 Thread Denis Kirjanov
On 06/25/2010 01:02 PM, Denis Kirjanov wrote: On 06/25/2010 12:42 AM, Alexander Graf wrote: On 24.06.2010, at 21:44, Denis Kirjanov wrote: Fix build warning: arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid': arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb

[PATCH] kvm/ppc: fix build warning

2010-06-24 Thread Denis Kirjanov
Fix build warning: arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid': arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb' may be used uninitialized in this function Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/kvm/book3s_64_mmu.c |2

[PATCH] powerpc/iseries: fix constant warning

2010-06-16 Thread Denis Kirjanov
Fix smatch warning: constant 0x8000 is so big it is unsigned long Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/include/asm/abs_addr.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/abs_addr.h b/arch/powerpc

[PATCH] powerpc/iseries: fix possible null pointer dereference in iSeries_pcibios_fixup_resources

2010-06-16 Thread Denis Kirjanov
I don't know if this is a right fix for the problem since of_get_property can return NULL. Since iseries_device_information is used only for informational purpose, we can skip this function without valid HvSubBusNumber number. Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc

[PATCH] powerpc/oprofile: fix potential buffer overrun in op_model_cell.c

2010-06-01 Thread Denis Kirjanov
Fix potential initial_lfsr buffer overrun. Writing past the end of the buffer could happen when index == ENTRIES Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/oprofile/op_model_cell.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc

[PATCH] powerpc/cell: Fix integer constant warning

2010-05-27 Thread Denis Kirjanov
Fix smatch warning: warning: constant 0x8 is so big it is long Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/platforms/cell/iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc

<    1   2   3