[PATCH v2 1/3] ARCv2: IDU-intc: Add support for edge-triggered interrupts

2019-07-24 Thread Mischa Jonker
setting the interrupt type to "level" unconditionally, since this was the only type supported previously. Signed-off-by: Mischa Jonker --- arch/arc/kernel/mcip.c | 60 +- include/soc/arc/mcip.h | 11 + 2 files changed, 65 insert

[PATCH v2 3/3] dt-bindings: IDU-intc: Add support for edge-triggered interrupts

2019-07-24 Thread Mischa Jonker
This updates the documentation for supporting an optional extra interrupt cell to specify edge vs level triggered. Signed-off-by: Mischa Jonker --- .../interrupt-controller/snps,archs-idu-intc.txt | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a

[PATCH v2 2/3] dt-bindings: IDU-intc: Clean up documentation

2019-07-24 Thread Mischa Jonker
* Some lines exceeded 80 characters. * Clarified statement about AUX register interface Signed-off-by: Mischa Jonker --- .../bindings/interrupt-controller/snps,archs-idu-intc.txt| 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree

[PATCH 2/2] dt-bindings: IDU-intc: Add support for edge-triggered interrupts

2019-07-23 Thread Mischa Jonker
This updates the documentation for supporting a optional extra interrupt cell to specify edge vs level triggered. Signed-off-by: Mischa Jonker --- .../interrupt-controller/snps,archs-idu-intc.txt | 30 ++ 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a

[PATCH 1/2] ARCv2: IDU-intc: Add support for edge-triggered interrupts

2019-07-23 Thread Mischa Jonker
This adds support for an optional extra interrupt cell to specify edge vs level triggered. It is backward compatible with dts files with only one cell, and will default to level-triggered in such a case. Signed-off-by: Mischa Jonker --- arch/arc/kernel/mcip.c | 56

[PATCH] ARC: [plat-arcfpga] Add defconfig without initramfs location

2013-11-13 Thread Mischa Jonker
This is useful if you want to build a kernel without a ramfs, or if you want to test the kernel build without having an initramfs available at the hardcoded location. Cc: Vineet Gupta Signed-off-by: Mischa Jonker --- arch/arc/configs/fpga_noramfs_defconfig | 64

[PATCH] ARC: perf: ARC 700 PMU doesn't support sampling events

2013-11-13 Thread Mischa Jonker
. Cc: Peter Zijlstra Cc: Vineet Gupta Signed-off-by: Mischa Jonker --- arch/arc/kernel/perf_event.c |4 1 file changed, 4 insertions(+) diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 759e5f3..e46d81f 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc

RE: [PATCH v3 0/2] ARC: Add perf support for ARC700 cores

2013-11-12 Thread Mischa Jonker
> Ah, so its one of those that cannot sample; you might want to fail when we > try and create a sampling event. Good suggestion, I'll create a separate patch for that! > Also, you could consider running an (hr)timer to periodically update the > events so that you don't miss a hardware counter wra

RE: [PATCH v3 0/2] ARC: Add perf support for ARC700 cores

2013-11-12 Thread Mischa Jonker
Hi Peter, > > Please find v3 of my attempt to add support for perf for ARC700 PMU's. > > If possible, it would be nice to get some feedback on the > > implementation from non-ARC/Synopsys people familiar with the perf > subsystem in Linux. > > Anything in particular you wanted feedback on? It loo

[PATCH v3 1/2] ARC: Add perf support for ARC700 cores

2013-11-07 Thread Mischa Jonker
This adds basic perf support for ARC700 cores. Most PERF_COUNT_HW* events are supported now. Signed-off-by: Mischa Jonker --- arch/arc/boot/dts/angel4.dts |4 + arch/arc/include/asm/perf_event.h | 204 ++- arch/arc/kernel/Makefile |1 + arch/arc/kernel

[PATCH v3 2/2] ARC: Add documentation on DT binding for ARC700 PMU

2013-11-07 Thread Mischa Jonker
Signed-off-by: Mischa Jonker --- Documentation/devicetree/bindings/arc/pmu.txt | 24 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/arc/pmu.txt diff --git a/Documentation/devicetree/bindings/arc/pmu.txt b/Documentation

[PATCH v3 0/2] ARC: Add perf support for ARC700 cores

2013-11-07 Thread Mischa Jonker
arate patch updated devicetree binding doc according to review comments v2: updated comments to kernel coding standards renamed devicetree binding to snps,arc700-pmu added devicetree binding doc Mischa Jonker (2): ARC: Add perf support for ARC700 cores ARC

[PATCH v2] ARC: Add perf support for ARC700 cores

2013-10-30 Thread Mischa Jonker
This adds basic perf support for ARC700 cores. Most PERF_COUNT_HW* events are supported now. Signed-off-by: Mischa Jonker Cc: Vineet Gupta Cc: Ingo Molnar Cc: Peter Zijlstra --- v2: updated comments to kernel coding standards renamed devicetree binding to snps,arc700-pmu

[PATCH] ARC: Fix array-out-of-bounds issue in tlb overlap handler

2013-09-26 Thread Mischa Jonker
Even after fixing the issue, GCC 4.8 still complains with a warning, but with the fix, I think it's a false positive. Therefore I have also added a #pragma to ignore the warning. Signed-off-by: Mischa Jonker --- arch/arc/mm/tlb.c |9 - 1 file changed, 8 insertions(+), 1 del

[PATCH 1/2] ARC: Handle zero-overhead-loop in unaligned access handler

2013-09-26 Thread Mischa Jonker
If a load or store is the last instruction in a zero-overhead-loop, and it's misaligned, the loop would execute only once. This fixes that problem. Signed-off-by: Mischa Jonker --- arch/arc/kernel/unaligned.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arc/k

[PATCH] ARC: Fix __udelay calculation

2013-08-30 Thread Mischa Jonker
net driver, due to a premature timeout. Signed-off-by: Mischa Jonker --- arch/arc/include/asm/delay.h |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arc/include/asm/delay.h b/arch/arc/include/asm/delay.h index 442ce5d..43de302 100644 --- a/arch/arc/include/asm/del

[PATCH] ARC: Add perf support

2013-08-28 Thread Mischa Jonker
This adds basic perf support for ARC. Most PERF_COUNT_HW* events are supported now. Cache events and callchains are not (yet). Signed-off-by: Mischa Jonker --- arch/arc/boot/dts/angel4.dts |4 + arch/arc/include/asm/perf_event.h | 190 +- arch/arc/kernel/Makefile

RE: [PATCH] ARC: Fix __udelay parentheses

2013-08-28 Thread Mischa Jonker
Hello Joe, > I don't see the loops_per_jiffy initial shift << 32. loops_per_jiffy * HZ = loops_per_second loops_per_jiffy * HZ = 1,000,000 * loops_per_us loops_per_jiffy * HZ * 4295 = 4,295,000 * loops_per_us loops_per_jiffy * HZ * 4294.967296 = 2^32 * loops_per_us > > > > - loops = ((lon

RE: [PATCH] ARC: Fix __udelay parentheses

2013-08-28 Thread Mischa Jonker
bits falling off. > > > > Signed-off-by: Mischa Jonker > > --- > > arch/arc/include/asm/delay.h |4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arc/include/asm/delay.h > > b/arch/arc/include/asm/delay.h ind

[PATCH] input/serio: disable i8042 PC keyboard ctrl for ARC

2013-08-28 Thread Mischa Jonker
It causes crashes when enabled, and we don't have such a peripheral anyway on ARC platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig

[PATCH] mmc/dw_mmc: Add support for ARC

2013-08-28 Thread Mischa Jonker
Adapt Kconfig to include ARC in supported architectures Signed-off-by: Mischa Jonker --- drivers/mmc/host/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 8a4c066..6496d50 100644 --- a/drivers/mmc/host

[PATCH] ARC: remove console_verbose() from setup_arch()

2013-08-28 Thread Mischa Jonker
It prevents kernel parameters such as 'loglevel' from doing their job. Signed-off-by: Mischa Jonker --- arch/arc/kernel/setup.c |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 6b08345..b011f8c 100644 --- a/arch/arc/kern

[PATCH] ARC: Add read*_relaxed to asm/io.h

2013-08-28 Thread Mischa Jonker
Some drivers require these, and ARC didn't had them yet. Signed-off-by: Mischa Jonker --- arch/arc/include/asm/io.h |4 1 file changed, 4 insertions(+) diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h index 473424d..334ce70 100644 --- a/arch/arc/include/asm

[PATCH] ARC: Fix __udelay parentheses

2013-08-28 Thread Mischa Jonker
Make sure that usecs is casted to long long, to ensure that the (usecs * 4295 * HZ) multiplication is 64 bit. Initially, the (usecs * 4295 * HZ) part was done as a 32 bit multiplication, with the result casted to 64 bit. This led to some bits falling off. Signed-off-by: Mischa Jonker --- arch

[PATCH] ARC: add .gitignore files

2013-07-25 Thread Mischa Jonker
Ignore the following files: * devicetree .dtb, .dtb.S files * vmlinux.lds Signed-off-by: Mischa Jonker --- arch/arc/boot/dts/.gitignore |2 ++ arch/arc/kernel/.gitignore |1 + 2 files changed, 3 insertions(+) create mode 100644 arch/arc/boot/dts/.gitignore create mode 100644 arch

[PATCH] input/serio: disable i8042 PC keyboard ctrl for ARC

2013-07-25 Thread Mischa Jonker
It causes crashes when enabled, and we don't have such a peripheral anyway on ARC platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig

[tip:perf/core] perf: Add const qualifier to perf_pmu_register's 'name' arg

2013-06-19 Thread tip-bot for Mischa Jonker
Commit-ID: 03d8e80beb7db78a13c192431205b9c83f7e0cd1 Gitweb: http://git.kernel.org/tip/03d8e80beb7db78a13c192431205b9c83f7e0cd1 Author: Mischa Jonker AuthorDate: Tue, 4 Jun 2013 11:45:48 +0200 Committer: Ingo Molnar CommitDate: Wed, 19 Jun 2013 12:50:23 +0200 perf: Add const qualifier

[PATCH] perf: add const qualifier to perf_pmu_register's 'name' arg

2013-06-04 Thread Mischa Jonker
This allows us to use pdev->name for registering a PMU device. IMO the name is not supposed to be changed anyway. Signed-off-by: Mischa Jonker --- arch/metag/kernel/perf/perf_event.c |2 +- include/linux/perf_event.h |4 ++-- kernel/events/core.c|2 +-

[PATCH] Input: arc_ps2 - add support for device tree

2013-03-28 Thread Mischa Jonker
Add match table for device tree binding and dts binding doc. Signed-off-by: Mischa Jonker --- .../devicetree/bindings/serio/snps-arc_ps2.txt | 16 drivers/input/serio/arc_ps2.c | 14 -- 2 files changed, 28 insertions(+), 2 deletions

RE: [PATCH v4 1/1] Input: serio - Add ARC PS/2 driver

2012-10-23 Thread Mischa Jonker
Hi Dmitry, > > This adds support for the PS/2 block that is used in various ARC FPGA > > platforms. > Applied with minor edits, please take a look at my 'next' branch and holler > if you see something wrong. Looks good & works fine, thanks for applying! > BTW, does the patch below work for y

[PATCH v4 1/1] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
This adds support for the PS/2 block that is used in various ARC FPGA platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 280 + 3 files changed, 290

[PATCH v4 0/1] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
module_platform_driver macro * disabling interrupt twice was unnecessary New patch has been tested on our own architecture (ARC) and builds cleanly on x86-64. Mischa Jonker (1): Input: serio - Add ARC PS/2 driver drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio

RE: [PATCH v3 1/1] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
Hi Joe, >> +while (1) { >infinite loop with bad hardware? >Perhaps a jiffies timeout? What do you suggest? Add a counter and limit the maximum number of iterations to an arbitrary number (say 1000)? Mischa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

[PATCH v3 1/1] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
This adds support for the PS/2 block that is used in various ARC FPGA platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 276 + 3 files changed, 286

[PATCH v3 0/1] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
architecture (ARC) and builds cleanly on x86-64. Mischa Jonker (1): Input: serio - Add ARC PS/2 driver drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 275 + 3 files changed, 285 insertions

[PATCH] Input: serio - Add ARC PS/2 driver

2012-10-18 Thread Mischa Jonker
Hi Dmitry, Thanks again for your quick reply. >> +void *data, *status; >These 2 should be annotated as __iomem. May I also suggest calling them >data_addt and status_addr? I assume you meant data_addr. >> +dev_err(&pdev->dev, "memory allocation failed cannot get the >> I/O add

[PATCH v2 0/1] ARC PS/2 driver

2012-10-17 Thread Mischa Jonker
on x86-64. Mischa Jonker (1): Input: serio - Add ARC PS/2 driver drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 275 + 3 files changed, 285 insertions(+), 0 deletions(-) create mode

[PATCH] Input: serio - Add ARC PS/2 driver

2012-10-17 Thread Mischa Jonker
This adds support for the PS/2 block that is used in various ARC FPGA platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 275 + 3 files changed, 285

[PATCH] Input: serio - Add ARC PS/2 driver

2012-10-16 Thread Mischa Jonker
This adds support for the PS/2 block that is used in various ARC FPGA platforms. Signed-off-by: Mischa Jonker --- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile |1 + drivers/input/serio/arc_ps2.c | 287 + 3 files changed, 297

[PATCH] RFC: ARC PS/2 driver

2012-10-16 Thread Mischa Jonker
This patch adds support for the ARC PS/2 block which is used in various ARC FPGA platforms. It has been tested on the ARC Angel 4 platform and the nSIM OSCI virtual model. Mischa Jonker (1): Input: serio - Add ARC PS/2 driver drivers/input/serio/Kconfig |9 ++ drivers/input/serio