RE: [PATCH v3 2/8] MIPS: ranchu: Add Goldfish RTC driver

2017-08-14 Thread Aleksandar Markovic
directory. Regards, Aleksandar From: Miodrag Dinic Sent: Friday, August 11, 2017 9:46 AM To: Alexandre Belloni; Aleksandar Markovic Cc: linux-m...@linux-mips.org; Goran Ferenc; Aleksandar Markovic; Alessandro Zummo; Bo Hu; David S. Miller; Douglas Leung; Greg

RE: [PATCH v2 5/7] input: goldfish: Fix multitouch event handling

2017-07-21 Thread Aleksandar Markovic
017 11:58 AM > To: Aleksandar Markovic > Cc: linux-m...@linux-mips.org; Lingfeng Yang; Miodrag Dinic; Goran Ferenc; > Aleksandar Markovic; Douglas Leung; Henrik Rydberg; James Hogan; > linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; Paul Burton; Petar > Jovanovic; Rag

[PATCH v3 08/16] MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of input values with opposite signs

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAXA|MINA>.<D|S>, if inputs are normal fp numbers of the same absolute value, but opposite signs. The relevant example: MAXA.S fd,fs,ft: If fs contains -3, and ft contains +3, fd is g

[PATCH v3 14/16] MIPS: math-emu: <MADDF|MSUBF>.S: Fix accuracy (32-bit case)

2017-07-21 Thread Aleksandar Markovic
Leung <douglas.le...@imgtec.com> Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mips/math-emu/ieee754sp.h | 4 ++ arch/m

[PATCH v3 09/16] MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of both infinite inputs

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAXA|MINA>.<D|S> fd,fs,ft, if both inputs are infinite. The previous implementation returned always the value contained in ft in such cases. The correct behavior is specified in Mips inst

[PATCH v3 16/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Clean up maddf_flags enumeration

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix definition and usage of maddf_flags enumeration. Avoid duplicate definition and apply more common capitalization. This patch does not change any scenario. It just make MADDF and MSUBF emulation code more readable and

[PATCH v3 11/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of three inputs is any NaN. Correct behavior of <MADDF|MSUBF>.<D|S> fd, fs, ft is following: - if any of inputs is sNaN, return a sNaN using following rules:

[PATCH v3 10/16] MIPS: math-emu: MINA.<D|S>: Fix some cases of infinity and zero inputs

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix following special cases for MINA>.<D|S>: - if one of the inputs is zero, and the other is subnormal, normal, or infinity, the value of the former should be returned (that is, a zero). - if one of the inp

[PATCH v3 13/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of zero inputs

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of two multiplicands is +0 or -0, and the third input is also +0 or -0. Depending on the signs of inputs, certain special cases must be handled. The relevant example:

[PATCH v3 06/16] MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix cases of both inputs zero

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MAXA|MIN|MINA>.<D|S>, if both inputs are zeros. The right behavior in such cases is stated in instruction reference manual and is as follows: fs ft MAX MIN

[PATCH v3 12/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of two multiplicands is infinity. The correct behavior in such cases is affected by the nature of third input. Cases of addition of infinities with opposite signs and subtrac

[PATCH v3 15/16] MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case)

2017-07-21 Thread Aleksandar Markovic
ed-off-by: Douglas Leung <douglas.le...@imgtec.com> Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/

[PATCH v3 02/16] tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms

2017-07-21 Thread Aleksandar Markovic
> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtech.com> --- drivers/tty/goldfish.c | 119 - 1 file changed, 108 insertions(+), 11 deletions(-) diff --git a/drivers/t

[PATCH v3 04/16] MIPS: VDSO: Fix clobber lists in fallback code paths

2017-07-21 Thread Aleksandar Markovic
From: Goran Ferenc <goran.fer...@imgtec.com> Extend clobber lists to include all GP registers. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com

[PATCH v3 03/16] tty: goldfish: Implement support for kernel 'earlycon' parameter

2017-07-21 Thread Aleksandar Markovic
dfish-tty", "generic,goldfish-tty"; }; Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/tty/Kconfig| 3 +++ drivers/t

[PATCH v3 05/16] MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix quiet NaN propagation

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MAXA|MIN|MINA>.<D|S>, if both inputs are quiet NaNs. The specifications of <MAX|MAXA|MIN|MINA>.<D|S> state that the returned value in such cases should be the quie

[PATCH v3 07/16] MIPS: math-emu: <MAX|MIN>.<D|S>: Fix cases of both inputs negative

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MIN>.<D|S>, if both inputs are negative normal fp numbers. The previous logic did not take into account that if both inputs have the same sign, there should be separate treatment of t

[PATCH v3 00/16] MIPS: Miscellaneous fixes related to Android Mips emulator

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v2->v3: - added a patch that fixes clobber lists in vdso fallback cases - added 6 patches related to MIN/MINA/MAX/MAXA issues - added 6 patches related to MADDF/MSUBDF issues - enhanced logic and comments

[PATCH v3 01/16] input: goldfish: Fix multitouch event handling

2017-07-21 Thread Aleksandar Markovic
com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/input/keyboard/goldfish_events.c | 35 +++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/input

RE: [PATCH v3 05/16] MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix quiet NaN propagation

2017-07-24 Thread Aleksandar Markovic
Hi, James, I appreciate your thorough and expeditious review. > > > From: James Hogan > Sent: Friday, July 21, 2017 7:45 AM > To: Aleksandar Markovic > Cc: linux-m...@linux-mips.org; Aleksandar Markovic; Miodrag Dinic; Goran >

[PATCH v4 07/16] MIPS: math-emu: <MAX|MIN>.<D|S>: Fix cases of both inputs negative

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MIN>.<D|S>, if both inputs are negative normal fp numbers. The previous logic did not take into account that if both inputs have the same sign, there should be separate treatment of t

[PATCH v4 04/16] MIPS: VDSO: Fix clobber lists in fallback code paths

2017-07-27 Thread Aleksandar Markovic
fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Reviewed-by: James Hogan <james.ho...@imgtec.com> --- arch/mips/vdso/gettimeofday.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/mips/vdso/gettimeofday.c b/arc

[PATCH v4 05/16] MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix quiet NaN propagation

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MAXA|MIN|MINA>.<D|S> fd,fs,ft, if both inputs are quiet NaNs. The <MAX|MAXA|MIN|MINA>.<D|S> specifications state that the returned value in such cases should be the quie

[PATCH v4 12/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of two multiplicands is infinity. The correct behavior in such cases is affected by the nature of third input. Cases of addition of infinities with opposite signs and subtrac

[PATCH v4 15/16] MIPS: math-emu: <MADDF|MSUBF>.S: Fix accuracy (32-bit case)

2017-07-27 Thread Aleksandar Markovic
Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Cc: <sta...@vger.kernel.org> # 4.7+ --- arch/mips/math-emu/ieee754sp.h | 4 ++ arch/mips/math-emu/sp_maddf.c | 116 -

[PATCH v4 11/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of three inputs is any NaN. Correct behavior of <MADDF|MSUBF>.<D|S> fd, fs, ft is following: - if any of inputs is sNaN, return a sNaN using following rules:

[PATCH v4 13/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of zero inputs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the cases of <MADDF|MSUBF>.<D|S> when any of two multiplicands is +0 or -0, and the third input is also +0 or -0. Depending on the signs of inputs, certain special cases must be handled. A relevant example: MADDF.S

[PATCH v4 14/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Clean up "maddf_flags" enumeration

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix definition and usage of "maddf_flags" enumeration. Avoid duplicate definition and apply more common capitalization. This patch does not change any scenario. It just makes MADDF and MSUBF emulation code more rea

[PATCH v4 02/16] tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms

2017-07-27 Thread Aleksandar Markovic
> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtech.com> --- drivers/tty/goldfish.c | 119 - 1 file changed, 108 insertions(+), 11 deletions(-) diff --git a/drivers/t

[PATCH v4 06/16] MIPS: math-emu: <MAX|MAXA|MIN|MINA>.<D|S>: Fix cases of both inputs zero

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAX|MAXA|MIN|MINA>.<D|S>, if both inputs are zeros. The right behavior in such cases is stated in instruction reference manual and is as follows: fs ft MAX MIN

[PATCH v4 09/16] MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of both infinite inputs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAXA|MINA>.<D|S> fd,fs,ft, if both inputs are infinite. The previous implementation returned always the value contained in ft in such cases. The correct behavior is specified in Mips inst

[PATCH v4 08/16] MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of input values with opposite signs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix the value returned by <MAXA|MINA>.<D|S>, if the inputs are normal fp numbers of the same absolute value, but opposite signs. A relevant example: MAXA.S fd,fs,ft: If fs contains -3.0, and ft contains +3.0, fd i

[PATCH v4 16/16] MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case)

2017-07-27 Thread Aleksandar Markovic
..@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Cc: <sta...@vger.kernel.org> # 4.7+ --- arch/mips/math-emu/dp_maddf.c | 133 +- 1 file changed, 94 ins

[PATCH v4 03/16] tty: goldfish: Implement support for kernel 'earlycon' parameter

2017-07-27 Thread Aleksandar Markovic
dfish-tty", "generic,goldfish-tty"; }; Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/tty/Kconfig| 3 +++ drivers/t

[PATCH v4 10/16] MIPS: math-emu: MINA.<D|S>: Fix some cases of infinity and zero inputs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix following special cases for MINA>.<D|S>: - if one of the inputs is zero, and the other is subnormal, normal, or infinity, the value of the former should be returned (that is, a zero). - if one of the inp

[PATCH v4 00/16] MIPS: Miscellaneous fixes related to Android Mips emulator

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v3->v4: - patches on MADDF/MSUBF tagged as "stable #4.7+" - patches on MAX/MIN/MAXA/MINA tagged as "stable #4.3+" - logic in the patch on NaN handling in MADDF/MSUBF simplified - improv

[PATCH v4 01/16] input: goldfish: Fix multitouch event handling

2017-07-27 Thread Aleksandar Markovic
<miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/input/keyboard/goldfish_events.c | 35 +++- 1 file changed, 34 insertions(+), 1 deletion(

RE: [PATCH v3 11/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation

2017-07-24 Thread Aleksandar Markovic
> ___ > From: James Hogan > Sent: Monday, July 24, 2017 3:24 AM > To: Aleksandar Markovic > Cc: linux-m...@linux-mips.org; Aleksandar Markovic; Miodrag Dinic; Goran > Ferenc; Douglas Leung; linux-> ker...@vger.kernel.org; Paul Burton; Peta

RE: [PATCH v3 12/16] MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs

2017-07-24 Thread Aleksandar Markovic
> > > From: James Hogan > Sent: Monday, July 24, 2017 3:39 AM > To: Aleksandar Markovic > Cc: linux-m...@linux-mips.org; Aleksandar Markovic; Douglas Leung; Miodrag > Dinic; Goran Ferenc; linux-kernel@vger.kernel.org; Paul Burto

RE: [PATCH v3 08/16] MIPS: math-emu: <MAXA|MINA>.<D|S>: Fix cases of input values with opposite signs

2017-07-24 Thread Aleksandar Markovic
> > > From: James Hogan > Sent: Friday, July 21, 2017 8:42 AM > To: Aleksandar Markovic > Cc: linux-m...@linux-mips.org; Aleksandar Markovic; Miodrag Dinic; Goran > Ferenc; Douglas Leung; linux-kernel@vger.kernel.org; Paul Burto

[PATCH v3 1/8] Documentation: Add device tree binding for Goldfish RTC driver

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish RTC driver. The compatible string used by OS for binding the driver is "google,goldfish-rtc". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v3 2/8] MIPS: ranchu: Add Goldfish RTC driver

2017-07-21 Thread Aleksandar Markovic
y: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS| 1 + drivers/rtc/Kconfig| 8 ++ drivers/rtc/Makefile | 1 +

[PATCH v3 4/8] MIPS: ranchu: Add Goldfish PIC driver

2017-07-21 Thread Aleksandar Markovic
-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS| 1 + drivers/irqchip/Kconfig| 8 +++ drivers/irqchip/M

[PATCH v3 0/8] MIPS: Add virtual Ranchu board as a generic-based board

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v2->v3: - fixed configuration dependency for VIRTIO_NET and RTC_DRV_GOLDFISH - fixed frequency calculation in ranchu_measure_hpt_freq() - use DT info instead of hard-coding RTC base in ranchu_measure

[PATCH v3 6/8] Documentation: Add device tree binding for Goldfish FB driver

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish FB driver. The compatible string used by OS for binding the driver is "google,goldfish-fb". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v3 8/8] MIPS: Unselect ARCH_MIGHT_HAVE_PC_SERIO if MIPS_GENERIC

2017-07-21 Thread Aleksandar Markovic
t gets enabled, because i8042 driver would try to read from an non-existent IO register. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mip

[PATCH v3 5/8] MIPS: ranchu: Add Ranchu as a new generic-based board

2017-07-21 Thread Aleksandar Markovic
com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS | 6 +++ arch/mips/configs/generic/board-ranchu.config | 30 +++ arch/mips/generic/Kconfig | 11 arch/mips/generic/Makefile

[PATCH v3 7/8] video: goldfishfb: Add support for device tree bindings

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add ability to the Goldfish FB driver to be recognized by OS via DT. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic

[PATCH v3 3/8] Documentation: Add device tree binding for Goldfish PIC driver

2017-07-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish PIC driver. The compatible string used by OS for binding the driver is "google,goldfish-pic". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v2 1/4] MIPS: VDSO: Fix conversions in do_monotonic()/do_monotonic_coarse()

2017-06-28 Thread Aleksandar Markovic
ses. On the other hand, MIPS has only one structure (mips_vdso_data), hence the need for changing the size of above mentioned parameters. Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Aleksandar Markovic <al

[PATCH v2 0/4] MIPS: Fix several VDSO-related issues

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1->v2: - updated recipient lists using get_maintainer.pl - rebased to the letest kernel code The patches in this series all deal with VDSO, and all originate from the develpoment of Android emulator for Mips.. The fi

[PATCH v2 3/7] MIPS: unaligned: Add DSP lwx & lhx missaligned access support

2017-06-28 Thread Aleksandar Markovic
AL3 opcode. For that purpose, the instruction format for DSP instructions is added to arch/mips/include/uapi/asm/inst.h. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtech.com> --- arch/mips/include/uapi/asm/inst.h | 11

[PATCH v2 5/7] input: goldfish: Fix multitouch event handling

2017-06-28 Thread Aleksandar Markovic
com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/input/keyboard/goldfish_events.c | 33 +++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/input

[PATCH v2 6/7] tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms

2017-06-28 Thread Aleksandar Markovic
> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtech.com> --- drivers/tty/goldfish.c | 119 - 1 file changed, 108 insertions(+), 11 deletions(-) diff --git a/drivers/t

[PATCH v2 2/7] MIPS: build: Fix "-modd-spreg" switch usage when compiling for mips32r6

2017-06-28 Thread Aleksandar Markovic
ror: float register should be even, was 31 make[2]: *** [arch/mips/kernel/r4k_switch.o] Error 1 Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> ---

[PATCH v2 7/7] tty: goldfish: Implement support for kernel 'earlycon' parameter

2017-06-28 Thread Aleksandar Markovic
dfish-tty", "generic,goldfish-tty"; }; Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/tty/Kconfig| 3 +++ drivers/t

[PATCH v2 1/7] MIPS: cmdline: Add support for 'memmap' parameter

2017-06-28 Thread Aleksandar Markovic
ap=64K$0x1869 or memmap=0x1$0x1869 There is no need to update this documentation file with respect to this patch. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic

[PATCH v2 05/10] MIPS: ranchu: Add Ranchu as a new generic-based board

2017-06-28 Thread Aleksandar Markovic
com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS | 6 ++ arch/mips/configs/generic/board-ranchu.config | 25 arch/mips/generic/Kconfig | 11 arch/mips/generic/Makefile

[PATCH v2 03/10] Documentation: Add device tree binding for Goldfish PIC driver

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish PIC driver. The compatible string used by OS for binding the driver is "google,goldfish-pic". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v2 10/10] MIPS: generic: Add optional support for Android kernel

2017-06-28 Thread Aleksandar Markovic
BOARDS="list of boards" OS=android android.config file should be occasionally revisited and updated with latest requirements from Google. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksanda

[PATCH v2 4/7] MIPS: math-emu: Handle zero accumulator case in MADDF and MSUBF separately

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If accumulator value is zero, just return the value of previously calculated product. This brings logic in MADDf/MSUBF implementation closer to the logic in ADD/SUB case. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com>

[PATCH v2 3/4] MIPS: VDSO: Add implementation of gettimeofday() fallback

2017-06-28 Thread Aleksandar Markovic
set. Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mips/vdso/gettimeofday.c | 24 +++- 1 file changed, 23 insertions(+)

[PATCH v2 02/10] MIPS: ranchu: Add Goldfish RTC driver

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add device driver for a virtual Goldfish RTC clock. The driver can be built only if CONFIG_MIPS and CONFIG_GOLDFISH are set. The compatible string used by OS for binding the driver is defined as "google,goldfish-rtc&qu

[PATCH v2 01/10] Documentation: Add device tree binding for Goldfish RTC driver

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish RTC driver. The compatible string used by OS for binding the driver is "google,goldfish-rtc". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v2 08/10] MIPS: Introduce check_legacy_ioport() interface

2017-06-28 Thread Aleksandar Markovic
untime. This patch just adds a no-op check_legacy_ioport() function which will be enriched with logic in a later patch. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgte

[PATCH v2 4/4] MIPS: VDSO: Fix a mismatch between comment and preprocessor constant

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Sync the comment with its preprocessor constant counterpart. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mips/vdso/gettimeofday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 0/7] MIPS: Miscellaneous fixes related to Android Mips emulator

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1->v2: - the patch on PREF usage in memcpy dropped as not needed - updated recipient lists using get_maintainer.pl - rebased to the latest kernel code This series contains an assortment of changes necessary f

[PATCH v2 2/4] MIPS: VDSO: Add implementation of clock_gettime() fallback

2017-06-28 Thread Aleksandar Markovic
yscall, register a3 is tested and the return value is negated if it's set. Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mips/

[PATCH v2 06/10] Documentation: Add device tree binding for Goldfish FB driver

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish FB driver. The compatible string used by OS for binding the driver is "google,goldfish-fb". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v2 09/10] MIPS: i8042: Probe this device only if it exists

2017-06-28 Thread Aleksandar Markovic
's compatible strings if it does not support i8042 controller. In order to utilize this mechanism, each MIPS machine that do not have i8042 controller should update the blacklist table with its compatible strings. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v2 00/10] MIPS: Add virtual Ranchu board as a generic-based board

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1->v2: - patch on RTC driver cleaned up - added drivers for virtio console and net to the Ranchu board - minor improvements in commit messages - updated recipient lists using get_maintainer.pl - rebased to t

[PATCH v2 04/10] MIPS: ranchu: Add Goldfish PIC driver

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add device driver for a virtual programmable interrupt controller The virtual PIC is designed as a device tree-based interrupt controller. The compatible string used by OS for binding the driver is "google,goldfish-pic&qu

[PATCH v2 07/10] video: goldfishfb: Add support for device tree bindings

2017-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add ability to the Goldfish FB driver to be recognized by OS via DT. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic

[PATCH 1/2] tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms

2017-08-22 Thread Aleksandar Markovic
he second generation of virtual boards used by Android emulator.) Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtech.com> --- d

[PATCH 0/2] Amend tty Goldfish driver functionality

2017-08-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This series adds two features to the tty goldfish driver that are crucial for the operation of the new generation of Android emulator for Mips. The backward compatibility issues are all taken care of. Miodrag Dinic (2): tty: go

[PATCH 2/2] tty: goldfish: Implement support for kernel 'earlycon' parameter

2017-08-22 Thread Aleksandar Markovic
goldfish-tty"; }; Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- drivers/tty/Kconfig| 3 +++ drivers/tty/goldfish.c | 26 +

[PATCH 3/6] MIPS: math-emu: CLASS.D: Zero bits 32-63 of the result

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix content of CLASS.D output bits 32-63 to match hardware behavior. Prior to this patch, bits 32-63 of CLASS.D output were not initialized, causing differnet 32-63 bits content of CLASS.D, based on circumstances. However, the ha

[PATCH 2/6] MIPS: math-emu: RINT.<D|S>: Fix several problems by reimplementation

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Reimplement RINT.<D|S> kernel emulation so that all RINT.<D|S> specifications are met. For the sake of simplicity, let's analyze RINT.S only. Prior to this patch, RINT.S emulation was essentially implemented

[PATCH 1/6] MIPS: math-emu: CMP.Sxxx.<D|S>: Prevent occurences of SIGILL crashes

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix CMP.Sxxx.<D|S> SIGILL crashes by fixing main switch/case statement in fpu_emul() function so that inadvertent fall-troughs are prevented. Consider, let's say, CMP.SAF.S instruction when one of inputs is zero and a

[PATCH 0/6] MIPS: math-emu: FP emulation fixes and improvements

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This series includes: - a fix for certain SIGILL program crashes on issuing a valid CMP instruction - a fix for RINT emulation inaccuracies - a fix for the output of CLASS.D instruction emulation - several FP emu

[PATCH 6/6] MIPS: math-emu: Add FP emu debugfs stats for individual instructions

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add FP emulation debugfs statistics for individual instructions. The counters are placed in a separate directory called "instructions". The default full path of this directory is "/sys/kernel/debug/mips/fpuemustats

[PATCH 4/6] MIPS: math-emu: Add FP emu debugfs statistics for branches

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add FP emu debugfs counter for branches. The new counter is displayed the same way as existing counter, and its default path is /sys/kernel/debug/mips/fpuemustats/. The limitation of this counter is that it counts only R6

[PATCH 5/6] MIPS: math-emu: Add FP emu debugfs reset functionality

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add capability for the user to reset all FP emu debugfs counters. This is achieved by having a special debugfs file "fpuemustats_clear" (under default location "/sys/kernel/debug/mips"). Each access to the f

[PATCH v4 0/8] MIPS: Add virtual Ranchu board as a generic-based board

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v3->v4: - corrected RTC clock patch so that it does not cause build errors for some targets, and limited compile support to Mips architecture, since it is the only case where this driver is used - chang

[PATCH v4 2/8] rtc: goldfish: Add RTC driver for Android emulator

2017-08-18 Thread Aleksandar Markovic
d-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS| 1 + drivers/rtc/Kconfig| 8 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-goldfish.c | 237

[PATCH v4 1/8] Documentation: Add device tree binding for Goldfish RTC driver

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish RTC driver. The compatible string used by OS for binding the driver is "google,goldfish-rtc". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v4 5/8] MIPS: ranchu: Add Ranchu as a new generic-based board

2017-08-18 Thread Aleksandar Markovic
com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS | 6 +++ arch/mips/configs/generic/board-ranchu.config | 30 +++ arch/mips/generic/Kconfig | 11 arch/mips/generic/Makefile

[PATCH v4 3/8] Documentation: Add device tree binding for Goldfish PIC driver

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish PIC driver. The compatible string used by OS for binding the driver is "google,goldfish-pic". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH v4 4/8] irqchip/irq-goldfish-pic: Add Goldfish PIC driver

2017-08-18 Thread Aleksandar Markovic
-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- MAINTAINERS| 1 + drivers/irqchip/Kconfig| 8 ++ drivers/irqchip/M

[PATCH v4 7/8] video: goldfishfb: Add support for device tree bindings

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add ability to the Goldfish FB driver to be recognized by OS via DT. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic

[PATCH v4 8/8] MIPS: Unselect ARCH_MIGHT_HAVE_PC_SERIO if MIPS_GENERIC

2017-08-18 Thread Aleksandar Markovic
t gets enabled, because i8042 driver would try to read from an non-existent IO register. Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: Goran Ferenc <goran.fer...@imgtec.com> Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- arch/mip

[PATCH v4 6/8] Documentation: Add device tree binding for Goldfish FB driver

2017-08-18 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add documentation for DT binding of Goldfish FB driver. The compatible string used by OS for binding the driver is "google,goldfish-fb". Signed-off-by: Miodrag Dinic <miodrag.di...@imgtec.com> Signed-off-by: G

[PATCH 0/2] MIPS: Minor FPU emulation fixes

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This series contains two minor FPU emulation patches that were not included into a recent larger series of FPU fixes, mainly not to additionally burden already complex set of patches. Only the first patch changes functio

[PATCH 2/2] MIPS: math-emu: Use preferred flavor of unsigned integer declarations

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix occurences of unsigned integer declarations that are not preferred by standards of checkpatch scripts. This removes significant number of checkpatch warnings in math-emu directory (several files will become completely warnin

[PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats for certain instructions

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Fix omission of updating of debugfs FP exception stats for instructions <CLASS|MADDF|MSUBF|MAX|MIN|MAXA|MINA>.<D|S>. CLASS.<D|S> can generate Unimplemented Operation FP exception. <MADDF|MSUBF|MAX|MIN|MAX

RE: [PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats for certain instructions

2017-10-12 Thread Aleksandar Markovic
(resending since the previous mail was rejected by the mailing list because of html format) > Subject: Re: [PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats > for certain instructions > Date: Thursday, October 12, 2017 12:17 CEST > From: James Hogan > > > ...

RE: [PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats for certain instructions

2017-10-12 Thread Aleksandar Markovic
From: James Hogan [james.ho...@mips.com] Sent: Thursday, October 12, 2017 7:44 AM To: Aleksandar Markovic Cc: Miodrag Dinic; Paul Burton; Petar Jovanovic; Raghu Gandham; Ralf Baechle; Aleksandar Markovic; linux-m...@linux-mips.org; Douglas Leung; Goran Ferenc; linux-kernel@vger.kernel.org; M

[PATCH v2 6/6] MIPS: math-emu: Add FP emu debugfs stats for individual instructions

2017-08-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add FP emulation debugfs statistics for individual instructions. The debugfs files that contain counter values are placed in a separate directory called "instructions". This means that the default path for these new stat

[PATCH v2 5/6] MIPS: math-emu: Add FP emu debugfs clear functionality

2017-08-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Add capability for the user to clear all FP emu debugfs counters. This is achieved by having a special debugfs file "fpuemustats_clear" (under default location "/sys/kernel/debug/mips"). Each access to the f

[PATCH v2 2/6] MIPS: math-emu: RINT.<D|S>: Fix several problems by reimplementation

2017-08-21 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Reimplement RINT.<D|S> kernel emulation so that all RINT.<D|S> specifications are met. For the sake of simplicity, let's analyze RINT.S only. Prior to this patch, RINT.S emulation was essentially implemented

  1   2   3   4   >