Re: Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-27 Thread Lada Trimasova
On Tue, 2016-04-26 at 12:42 +, Vineet Gupta wrote: On Friday 22 April 2016 06:56 PM, Lada Trimasova wrote: I think what we have now is sufficient - but u seem to want a prettier failure output. Anyhow, this print is coming from util/evsel.c: perf_evsel__open_strerror() At the very least you

Re: Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-27 Thread Lada Trimasova
On Tue, 2016-04-26 at 12:42 +, Vineet Gupta wrote: On Friday 22 April 2016 06:56 PM, Lada Trimasova wrote: I think what we have now is sufficient - but u seem to want a prettier failure output. Anyhow, this print is coming from util/evsel.c: perf_evsel__open_strerror() At the very least you

Re: Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-26 Thread Lada Trimasova
I wonder if there are any thoughts about this question. Please treat this as a polite reminder to take a look to this problem. Regards, Lada On Fri, 2016-04-22 at 16:25 +0300, Lada Trimasova wrote: I have a question about user-space perf handling error numbers. The problem is that PMU

Re: Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-26 Thread Lada Trimasova
I wonder if there are any thoughts about this question. Please treat this as a polite reminder to take a look to this problem. Regards, Lada On Fri, 2016-04-22 at 16:25 +0300, Lada Trimasova wrote: I have a question about user-space perf handling error numbers. The problem is that PMU

Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-22 Thread Lada Trimasova
I am not sure about the correct way of solving this problem. Maybe I should add some checks of syscalls return values and give user a warning when not PMU interrupts are available.  Any suggestions are appreciated. Regards, Lada Trimasova.

Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-22 Thread Lada Trimasova
I am not sure about the correct way of solving this problem. Maybe I should add some checks of syscalls return values and give user a warning when not PMU interrupts are available.  Any suggestions are appreciated. Regards, Lada Trimasova.

[PATCH] arc: use ezchip network driver

2016-03-14 Thread Lada Trimasova
Since ezchip network driver was adapted to little endian architecture this patch provides the corresponding arch/arc/{boot/dts,configs}/ updates so we can switch over to this device-model/driver for OSCI platform. Signed-off-by: Lada Trimasova <ltri...@synopsys.com> Cc: Alexey Brodkin

[PATCH] arc: use ezchip network driver

2016-03-14 Thread Lada Trimasova
Since ezchip network driver was adapted to little endian architecture this patch provides the corresponding arch/arc/{boot/dts,configs}/ updates so we can switch over to this device-model/driver for OSCI platform. Signed-off-by: Lada Trimasova Cc: Alexey Brodkin Cc: Vineet Gupta : --- arch/arc

Re: [PATCH] arc: use little endian accesses

2016-03-10 Thread Lada Trimasova
Hi Vineet, Alexey, Arnd, On Thu, 2016-03-10 at 09:55 +, Vineet Gupta wrote: Can you or Lada provide more details as to exactly what is not working - what driver to be precise 8250 or dw-8250. And where exactly the failure shows up. I want to understand this more Noam told me off list that he

Re: [PATCH] arc: use little endian accesses

2016-03-10 Thread Lada Trimasova
Hi Vineet, Alexey, Arnd, On Thu, 2016-03-10 at 09:55 +, Vineet Gupta wrote: Can you or Lada provide more details as to exactly what is not working - what driver to be precise 8250 or dw-8250. And where exactly the failure shows up. I want to understand this more Noam told me off list that he

[PATCH] arc: use little endian accesses

2016-03-09 Thread Lada Trimasova
Memory access primitives should use cpu_to_le16, cpu_to_le32, le16_to_cpu and le32_to_cpu because it is not really guaranteed that drivers handles any ordering themselves. For example, serial port driver doesn't work when kernel is build for arc big endian architecture. Signed-off-by: Lada

[PATCH] arc: use little endian accesses

2016-03-09 Thread Lada Trimasova
Memory access primitives should use cpu_to_le16, cpu_to_le32, le16_to_cpu and le32_to_cpu because it is not really guaranteed that drivers handles any ordering themselves. For example, serial port driver doesn't work when kernel is build for arc big endian architecture. Signed-off-by: Lada

[PATCH V3] net: ezchip: adapt driver to little endian architecture

2016-03-03 Thread Lada Trimasova
r using the function "put_unaligned_be32" in case of unaligned access and in other case "iowrite32_rep". The last little fix is a space between type and pointer to observe coding style. Signed-off-by: Lada Trimasova <ltri...@synopsys.com> Cc: Alexey Brodkin <abrod...@synops

[PATCH V3] net: ezchip: adapt driver to little endian architecture

2016-03-03 Thread Lada Trimasova
r using the function "put_unaligned_be32" in case of unaligned access and in other case "iowrite32_rep". The last little fix is a space between type and pointer to observe coding style. Signed-off-by: Lada Trimasova Cc: Alexey Brodkin Cc: Noam Camus Cc: Tal Zilcer Cc: Arnd Bergmann

[PATCH v2] net: ezchip: adapt driver to little endian architecture

2016-03-02 Thread Lada Trimasova
igned access and in other case "cpu_to_be32" as we write from CPU to peripheral. The last little fix is a space between type and pointer to observe coding style. Signed-off-by: Lada Trimasova <ltri...@synopsys.com> Cc: Alexey Brodkin <abrod...@synopsys.com> Cc: Noam Camus <no..

[PATCH v2] net: ezchip: adapt driver to little endian architecture

2016-03-02 Thread Lada Trimasova
igned access and in other case "cpu_to_be32" as we write from CPU to peripheral. The last little fix is a space between type and pointer to observe coding style. Signed-off-by: Lada Trimasova Cc: Alexey Brodkin Cc: Noam Camus Cc: Tal Zilcer Cc: Arnd Bergmann --- changes v1->v2: - re

[PATCH] net: ezchip: adapt driver to little endian architecture

2016-02-26 Thread Lada Trimasova
ripheral. The last little fix is a space between a type and a pointer to observe coding style. Signed-off-by: Lada Trimasova <ltri...@synopsys.com> Cc: Alexey Brodkin <abrod...@synopsys.com> Cc: Noam Camus <no...@ezchip.com> Cc: Tal Zilcer <t...@ezchip.com> Cc: Arnd Ber

[PATCH] net: ezchip: adapt driver to little endian architecture

2016-02-26 Thread Lada Trimasova
ripheral. The last little fix is a space between a type and a pointer to observe coding style. Signed-off-by: Lada Trimasova Cc: Alexey Brodkin Cc: Noam Camus Cc: Tal Zilcer Cc: Arnd Bergmann --- drivers/net/ethernet/ezchip/nps_enet.c | 15 -- drivers/net/e

[PATCH] Arc: fix entry point calculation for locales other than english

2015-11-03 Thread Lada Trimasova
cannot find the line which contains "ENTRY POINT" in english. Our decision uses readelf key which displays the symbol table. Using grep _stext it finds the line with entry point in this table. Signed-off-by: Lada Trimasova Cc: Vineet Gupta Cc: Alexey Brodkin --- arch/arc/boot/Makef

[PATCH] Arc: fix entry point calculation for locales other than english

2015-11-03 Thread Lada Trimasova
cannot find the line which contains "ENTRY POINT" in english. Our decision uses readelf key which displays the symbol table. Using grep _stext it finds the line with entry point in this table. Signed-off-by: Lada Trimasova <ltri...@synopsys.com> Cc: Vineet Gupta <vgu...@