[PATCH net-next v6 0/2] net: thunderx: add support for PTP clock

2018-01-15 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

[PATCH net-next v6 2/2] net: thunderx: add timestamping support

2018-01-15 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov Acked-by: Philippe Ombredanne --- drivers/net/ethernet/cavium/Kconfig| 1

[PATCH net-next v6 1/2] net: add support for Cavium PTP coprocessor

2018-01-15 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov Acked-by: Philippe Ombredanne --- drivers/net/ethernet/cavium/Kconfig

Re: [PATCH net-next v5 2/2] net: thunderx: add timestamping support

2018-01-08 Thread Aleksey Makarov
On 12.12.2017 05:32, Richard Cochran wrote: > On Mon, Dec 11, 2017 at 05:14:31PM +0300, Aleksey Makarov wrote: >> diff --git a/drivers/net/ethernet/cavium/thunder/nic.h >> b/drivers/net/ethernet/cavium/thunder/nic.h >> index 4a02e618e318..204b234beb9d 100644 >> --- a/

Re: [PATCH net-next v5 1/2] net: add support for Cavium PTP coprocessor

2017-12-12 Thread Aleksey Makarov
Hi Richard, On 12/12/2017 01:59 AM, Richard Cochran wrote: Sorry I didn't finish reviewing before... On Mon, Dec 11, 2017 at 05:14:30PM +0300, Aleksey Makarov wrote: [ ... ] +static int cavium_ptp_probe(struct pci_dev *pdev, + const struct pci_device_id

[PATCH net-next v5 2/2] net: thunderx: add timestamping support

2017-12-11 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavium/thu

[PATCH net-next v5 1/2] net: add support for Cavium PTP coprocessor

2017-12-11 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig | 12 + drivers/net

[PATCH net-next v5 0/2] net: thunderx: add support for PTP clock

2017-12-11 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

[PATCH net-next v4 2/2] net: thunderx: add timestamping support

2017-12-08 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavium/thu

[PATCH net-next v4 0/2] net: thunderx: add support for PTP clock

2017-12-08 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

[PATCH net-next v4 1/2] net: add support for Cavium PTP coprocessor

2017-12-08 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig | 12 + drivers/net

[PATCH net-next v3 2/2] net: thunderx: add timestamping support

2017-12-06 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavium/thu

[PATCH net-next v3 0/2] net: thunderx: add support for PTP clock

2017-12-06 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

[PATCH net-next v3 1/2] net: add support for Cavium PTP coprocessor

2017-12-06 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig | 13 + drivers/net

[PATCH net-next] net: thunderx: Set max queue count taking XDP_TX into account

2017-11-24 Thread Aleksey Makarov
From: Sunil Goutham on T81 there are only 4 cores, hence setting max queue count to 4 would leave nothing for XDP_TX. This patch fixes this by doubling max queue count in above scenarios. Signed-off-by: Sunil Goutham Signed-off-by: cjacob Signed-off-by: Aleksey Makarov --- drivers/net

[PATCH net-next] net: thunderx: Add support for xdp redirect

2017-11-24 Thread Aleksey Makarov
From: Sunil Goutham This patch adds support for XDP_REDIRECT. Flush is not yet supported. Signed-off-by: Sunil Goutham Signed-off-by: cjacob Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 110 - drivers/net/ethernet/cavium/thunder

[PATCH net v3] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
fload is set in the SQ descriptor. Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov Reviewed-by: Eric Dumazet --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 - 1 file changed, 1

[PATCH net v3] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
fload is set in the SQ descriptor. Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 - 1 file changed, 1 deletion(-) v3: - fix

[PATCH net v2] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
fload is set in the SQ descriptor. Fixes: 494fd005 ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 - 1 file changed, 1 deletion(-) v2: - Don&#x

[PATCH net] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-22 Thread Aleksey Makarov
nderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/d

[PATCH net-next v2 2/2] net: thunderx: add timestamping support

2017-11-17 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavium/thu

[PATCH net-next v2 1/2] net: add support for Cavium PTP coprocessor

2017-11-17 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig | 13 + drivers/net

[PATCH net-next v2 0/2] net: thunderx: add support for PTP clock

2017-11-17 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

[PATCH net-next] net: thunderx: fix double free error

2017-11-09 Thread Aleksey Makarov
n Ian King Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic_main.c | 82 ++ 1 file changed, 30 insertions(+), 52 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nic_main.c b/drivers/net/ethernet/cavium/thunder/nic_main.c index c12a

Re: [PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-08 Thread Aleksey Makarov
On 11/07/2017 10:49 PM, David Daney wrote: On 11/07/2017 11:07 AM, Aleksey Makarov wrote: From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by

[PATCH net-next 2/2] net: thunderx: add timestamping support

2017-11-07 Thread Aleksey Makarov
tes a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavium/thu

[PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-07 Thread Aleksey Makarov
From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/Kconfig | 13 + drivers/net

[PATCH net-next 0/2] net: thunderx: add support for PTP clock

2017-11-07 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use th

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-26 Thread Aleksey Makarov
On 05/18/2017 06:49 PM, Petr Mladek wrote: On Sun 2017-05-14 23:37:50, Aleksey Makarov wrote: On 05/12/2017 03:57 PM, Petr Mladek wrote: On Thu 2017-05-11 17:41:58, Sergey Senozhatsky wrote: On (05/11/17 17:24), Sergey Senozhatsky wrote: On (05/09/17 10:29), Sabrina Dubroca wrote

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-14 Thread Aleksey Makarov
iss anything? Last mentioned 'console=' (preferred console) is the console that should become /dev/console. Its driver is returned by console_device(). In other respects the last mentioned console is not special, so I believe it is irrelevant to the report. Thank you Aleksey Makarov

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-14 Thread Aleksey Makarov
quires to specify the same console in command line twice (with different lines), which is pointless so I would say it is irrelevant. Thank you Aleksey Makarov

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-11 Thread Aleksey Makarov
console is non-braille and it is preferred. What is the problem? Thank you Aleksey Makarov

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-11 Thread Aleksey Makarov
please. I hope I will be able to look at this on the weekend. Thank you Aleksey Makarov

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-04-11 Thread Aleksey Makarov
On 04/11/2017 10:43 AM, Petr Mladek wrote: On Mon 2017-04-10 21:00:35, Aleksey Makarov wrote: On 04/10/2017 05:22 PM, Petr Mladek wrote: On Wed 2017-04-05 23:20:00, Aleksey Makarov wrote: [..] Thank you for review. Can you (or anybody else) ACK it? I am going to resend the whole

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-04-10 Thread Aleksey Makarov
On 04/10/2017 05:22 PM, Petr Mladek wrote: On Wed 2017-04-05 23:20:00, Aleksey Makarov wrote: If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. The root ca

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-04-05 Thread Aleksey Makarov
On 04/06/2017 12:57 AM, Andy Shevchenko wrote: On Wed, Apr 5, 2017 at 11:20 PM, Aleksey Makarov wrote: If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. Th

[PATCH v9 3/3] printk: fix double printing with earlycon

2017-04-05 Thread Aleksey Makarov
hing entry. Introduce variable console_cmdline_cnt that keeps the number of elements of the console_cmdline array (Petr Mladek). It helps to get rid of the loop that searches for the end of this array. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v8 -> v9: - Introduce variab

Re: [PATCH v8 3/3] printk: fix double printing with earlycon

2017-04-05 Thread Aleksey Makarov
it. It was great work. But the current solution of the cycle looks weird to me. Sorry for the delay. I will send next version soon. Thank you Aleksey Makarov

Re: [PATCH v8 3/3] printk: fix double printing with earlycon

2017-03-27 Thread Aleksey Makarov
On 03/27/2017 05:14 PM, Petr Mladek wrote: On Mon 2017-03-20 13:03:00, Aleksey Makarov wrote: [..] diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index fd752f0c8ef1..462036e7a767 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1909,8 +1909,28 @@ static

[PATCH v8 3/3] printk: fix double printing with earlycon

2017-03-20 Thread Aleksey Makarov
t matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v7 -> v8: - add an explanation to the comment how console_cmdline can contain entries referring to the same console - move the body of the function introduced in the previous version to cycle - don't panic() (

Re: [PATCH] braille-console: Fix value returned by _braille_console_setup

2017-03-19 Thread Aleksey Makarov
. Did you test the code on real braille hardware? I am asking because there could also be other problems with the code that have not been run for 3 years since it was changed. Thank you Aleksey Makarov Signed-off-by: Samuel Thibault Cc: Aleksey Makarov Cc: Joe Perches Cc: Ming Lei Cc: Stev

[PATCH v7 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
t matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v6 -> v7: - return back to v5 :) - leave the check for already registered entries and add a function that maintains the invariant. v5 -> v6: - drop v5 and continue to work on v4: - introduce _braille_is_braille_c

Re: [PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
On 03/17/2017 02:43 PM, Aleksey Makarov wrote: [..] > @@ -2457,40 +2491,50 @@ void register_console(struct console *newcon) > } > > /* > - * See if this console matches one we selected on > - * the command line. > + * See if this c

[PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
introduce predicate _braille_is_braille_console() that checks if its argument is an entry describing a braille console. Also introduce a macro for_each_console_cmdline() to traverse the console_cmdline array. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v5 -> v6: - drop v5 and

Re: Does braille console work?

2017-03-17 Thread Aleksey Makarov
On 03/17/2017 03:53 AM, Samuel Thibault wrote: > Hello, > > Aleksey Makarov, on jeu. 16 mars 2017 17:02:53 +0300, wrote: >> There can be 3 outcomes from this function: >> 1) it returns NULL and does not set brl_options >> 2) it returns NULL and set the variable poin

Re: [PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
On 03/16/2017 04:54 PM, Petr Mladek wrote: > On Thu 2017-03-16 13:36:35, Aleksey Makarov wrote: >> >> >> On 03/15/2017 07:58 PM, Petr Mladek wrote: >>> On Wed 2017-03-15 13:28:52, Aleksey Makarov wrote: [..] > I personally prefer v4. The braille console adds an

Does braille console work?

2017-03-16 Thread Aleksey Makarov
Hi, I am looking at the braille console code and don't understand how its initialization works. This is from kernel/printk/braille.c: char *_braille_console_setup(char **str, char **brl_options) { if (!strncmp(*str, "brl,", 4)) { *brl_options = ""; *str +=

Re: [PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-16 Thread Aleksey Makarov
On 03/15/2017 07:58 PM, Petr Mladek wrote: > On Wed 2017-03-15 13:28:52, Aleksey Makarov wrote: >> If a console was specified by ACPI SPCR table _and_ command line >> parameters like "console=ttyAMA0" _and_ "earlycon" were specified, >> then log messa

Re: [PATCH v3] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-16 Thread Aleksey Makarov
On 03/16/2017 10:11 AM, Jayachandran C. wrote: > Hi Greg, > > On Tue, Mar 14, 2017 at 9:44 PM, Sudeep Holla wrote: >> >> >> On 01/03/17 15:23, Aleksey Makarov wrote: >>> The original patch makes the condition always true, so it is wrong. >>> >

[PATCH v5 2/3] printk: rename selected_console -> preferred_console

2017-03-15 Thread Aleksey Makarov
re consoles are selected (enabled) and only one is preferred (first)." Acked-by: Steven Rostedt (VMware) Acked-by: Petr Mladek Reviewed-by: Sergey Senozhatsky Suggested-by: Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 10 +- 1 file changed, 5 insert

[PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
le is preferred then it will be the first matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 45 + 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/kernel/printk/printk.c b/kernel

[PATCH v5 0/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
01161347.4202-1-aleksey.maka...@linaro.org [1] https://lkml.kernel.org/r/1485963998-921-1-git-send-email-sudeep.ho...@arm.com commit aea9a80ba98a ("tty: serial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro

[PATCH v5 1/3] printk: fix name/type/scope of preferred_console var

2017-03-15 Thread Aleksey Makarov
(VMware) Reviewed-by: Sergey Senozhatsky Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 2984fb0f0257..80bc1b72d03d 100644 --- a/kernel/printk

Re: [PATCH] iommu/arm-smmu: Report smmu type in dmesg

2017-03-08 Thread Aleksey Makarov
RM_SMMU_V2, ARM_MMU500, "arm-mmu500"); +ARM_SMMU_TYPE(cavium_smmuv2, ARM_SMMU_V2, CAVIUM_SMMUV2, "cavium-smmuv2"); So that this change will not be required? Thank you Aleksey Makarov static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,smmu-v1&

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-08 Thread Aleksey Makarov
On 03/08/2017 06:33 AM, Sergey Senozhatsky wrote: Hello, sorry for the delay. On (03/07/17 15:54), Aleksey Makarov wrote: On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: On (03/03/17 18:49), Aleksey Makarov wrote: [..] +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-07 Thread Aleksey Makarov
On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: On (03/03/17 18:49), Aleksey Makarov wrote: [..] +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN, CONSOLE_MATCH_NEXT } +match_console(struct console *newcon, struct console_cmdline *c) that enum in function return is interesting :) can we

[PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-03 Thread Aleksey Makarov
ported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v2 -> v3: v2 still changes the logic of the code and calls newcon->match() several times. V3 fixes that. It initially matches the console against the preferred_console entry, and then if that fails, against other entries.

Re: [PATCH v2 3/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
On 03/02/2017 04:11 PM, Aleksey Makarov wrote: > If a console was specified by ACPI SPCR table _and_ command line > parameters like "console=ttyAMA0" _and_ "earlycon" were specified, > then log messages appear twice. > > The root cause is that the code travers

[PATCH v2 2/3] printk: rename selected_console -> preferred_console

2017-03-02 Thread Aleksey Makarov
The variable selected_console is set in __add_preferred_console() to point to the last console parameter that was added to the console_cmdline array. Rename it to preferred_console so that the name reflects the usage. Suggested-by: Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk

[PATCH v2 1/3] printk: fix name/type/scope of preferred_console var

2017-03-02 Thread Aleksey Makarov
The variable preferred_console is used only inside register_console() and its semantics is boolean. It is negative when no console has been made preferred. Make it static bool and rename to has_preferred. Renaming was suggested by Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk

[PATCH v2 3/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
t, so bootconsole is not deregistered. To fix that, match the console against the `console_cmdline` entry pointed by `preferred_console` instead of the first match. Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 49 ++--- 1 file changed,

[PATCH v2 0/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
com commit aea9a80ba98a ("tty: serial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro.org [3] https://lkml.kernel.org/r/1455299022-11641-2-git-send-email-aleksey.maka...@linaro.org Aleksey Makarov (3): printk

[PATCH 2/2] printk: fix double printing with earlycon

2017-03-01 Thread Aleksey Makarov
set, so bootconsole is not deregistered. To fix that, match the console against the `console_cmdline` entry pointed by `preferred_console` instead of the first match. Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 52 ++ 1 file ch

[PATCH 0/2] printk: fix double printing with earlycon

2017-03-01 Thread Aleksey Makarov
ial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro.org [3] https://lkml.kernel.org/r/1455299022-11641-2-git-send-email-aleksey.maka...@linaro.org Aleksey Makarov (2): printk: fix name and type of some vari

[PATCH 1/2] printk: fix name and type of some variables

2017-03-01 Thread Aleksey Makarov
variables: selected_console -> preferred_console preferred_console -> has_preferred and make the new has_preferred local static bool. Renaming was suggested by Peter Hurley Signed-off-by: Aleksey Makarov Tested-by: Christopher Covington --- kernel/printk/printk.c | 18 +-

[PATCH v2] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes condition always true, so it is wrong. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. Signed-off-by: Aleksey Makarov --- v2: add Signed-off-by: drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v3] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
the root cause was identified incorrectly. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. Signed-off-by: Aleksey Makarov --- v3: fix commit message (Robin Murphy) v2: add Signed-off-by: drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
On 03/01/2017 03:59 PM, Robin Murphy wrote: > On 01/03/17 12:26, Aleksey Makarov wrote: >> The original patch makes condition always true, so it is wrong. >> >> This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. > > It seems fairly clear that the intent

[PATCH] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes condition always true, so it is wrong. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. --- drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c i

Re: [PATCH] tty: serial: pl011: add ttyAMA for matching pl011 console

2017-03-01 Thread Aleksey Makarov
nsidered to match pl011 console. > > Fixes: 10879ae5f12e ("serial: pl011: add console matching function") > Cc: Russell King > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Peter Hurley > Cc: Aleksey Makarov > Signed-off-by: Sudeep Holla > --- > drivers/t

[PATCH v4] iommu/arm-smmu: Support for Extended Stream ID (16 bit)

2017-01-19 Thread Aleksey Makarov
-off-by: Aleksey Makarov Tested-by: Tomasz Nowicki --- v4: change the commit message: - explain the reason why the warning happens (Tomasz Nowicki) - add 'Reviewed-by' and 'Tested-by' from Tomasz Nowicki v3: https://lkml.kernel.org/r/20170117151431.17085-1-aleksey.maka.

Re: [PATCH v3] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-19 Thread Aleksey Makarov
Hi Tomasz, On 01/19/2017 11:55 AM, Tomasz Nowicki wrote: > Hi Aleksey, > > On 17.01.2017 16:14, Aleksey Makarov wrote: >> Enable the Extended Stream ID feature when available. >> >> This patch on top of series "KVM PCIe/MSI passthrough on ARM/ARM64 >> and I

[PATCH v3] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-17 Thread Aleksey Makarov
d caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. [1] https://lkml.kernel.org/r/1484127714-3263-1-git-send-email-eric.au...@redhat.com Signed-off-by: Aleksey Makarov --- v3: - keep formatting of the comment - fix printk message after t

[PATCH v2] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-16 Thread Aleksey Makarov
d caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. [1] https://lkml.kernel.org/r/1484127714-3263-1-git-send-email-eric.au...@redhat.com Signed-off-by: Aleksey Makarov --- v2: - remove unnecessary parentheses (Robin Murphy) - refactor t

Re: [RFC PATCH] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-16 Thread Aleksey Makarov
On 01/11/2017 05:15 PM, Robin Murphy wrote: > On 10/01/17 11:57, Aleksey Makarov wrote: >> Enable the Extended Stream ID feature when available. >> >> This patch on top of series "[PATCH v7 00/19] KVM PCIe/MSI passthrough >> on ARM/ARM64 and IOVA reserved reg

[RFC PATCH] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-10 Thread Aleksey Makarov
that card caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. Signed-off-by: Aleksey Makarov --- drivers/iommu/arm-smmu.c | 53 +--- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git

[RFC v2 0/4] ACPI: SPCR: 32-bit access and non-standard baud rate

2016-12-06 Thread Aleksey Makarov
https://lkml.kernel.org/r/20160905123617.18775-1-aleksey.maka...@linaro.org [discussion] https://lkml.kernel.org/r/7fa523de-3fbb-1566-f521-927143f73...@redhat.com [v1] https://lkml.kernel.org/r/20161205130534.11080-1-aleksey.maka...@linaro.org Aleksey Makarov (4): ACPI: SPCR: check bit width fo

[RFC v2 4/4] ACPI: SPCR: support 16550 UART with 32-bit access

2016-12-06 Thread Aleksey Makarov
would be 16550-compatible with 32-bit access. There already exists 32-bit variant ACPI_DBG2_ARM_SBSA_32BIT of SBSA console ACPI_DBG2_ARM_SBSA_GENERIC. This patch supports this type of console. Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 3 +++ 1 file changed, 3 insertions(+) diff

[RFC v2 1/4] ACPI: SPCR: check bit width for the 16550 UART

2016-12-06 Thread Aleksey Makarov
terface Type field of the SPCR table. Signed-off-by: Aleksey Makarov Signed-off-by: Graeme Gregory Reported-by: Heyi Guo --- drivers/acpi/spcr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c index e8d7bc7..6c6710b 100644 --- a/drivers/acpi/sp

[RFC v2 2/4] ACPI: SPCR: don't initialize baud rate

2016-12-06 Thread Aleksey Makarov
es a check for this value. In this case the code does not emit baud rate specification for initialization of the console. Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/acpi/spcr.c

[RFC v2 3/4] ACPI: DBG2: add 16550 UART with 32-bit access

2016-12-06 Thread Aleksey Makarov
would be 16550-compatible with 32-bit access. There already exists 32-bit variant ACPI_DBG2_ARM_SBSA_32BIT of SBSA console ACPI_DBG2_ARM_SBSA_GENERIC. This patch introduces it to Linux kernel. Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-06 Thread Aleksey Makarov
0"; break; case 7: - baud_rate = 115200; + baud_rate_string = ",115200"; break; default: err = -ENOENT; goto done; } - snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, i

[PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Aleksey Makarov
terface Type field of the SPCR table. For discussion: https://lkml.kernel.org/r/7fa523de-3fbb-1566-f521-927143f73...@redhat.com Signed-off-by: Aleksey Makarov Signed-off-by: Graeme Gregory Reported-by: Heyi Guo --- drivers/acpi/spcr.c | 4 1 file changed, 4 insertions(+) diff --git a/driv

Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer

2016-12-01 Thread Aleksey Makarov
+ else if (acpi_gsi_domain_id) + /* devices connecting to gicd in default */ + fwspec.fwnode = acpi_gsi_domain_id; + else { pr_warn("GSI: No registered irqchip, giving up\n"); return -EINVAL; } [ ... ] All the best Aleksey Makarov

[PATCH] serial: pl011: add console matching function

2016-10-04 Thread Aleksey Makarov
of conflict with commit 46e36683f433 ("serial: earlycon: Extend earlycon command line option to support 64-bit addresses") Now it is fixed. Signed-off-by: Aleksey Makarov Reviewed-by: Peter Hurley Acked-by: Russell King Tested-by: Christopher Covington Signed-off-by: Greg Kro

[PATCH v11 4/4] serial: pl011: add console matching function

2016-09-27 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov Reviewed-by: Peter Hurley

[PATCH v11 2/4] ACPI: parse SPCR and enable matching console

2016-09-27 Thread Aleksey Makarov
f required, enable specified console. Thanks to Peter Hurley for explaining how this should work. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Maka

[PATCH v11 1/4] of/serial: move earlycon early_param handling to serial

2016-09-27 Thread Aleksey Makarov
ction from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov Acked-by: Rob Herring Acked-by: Greg Kroah-Hartman Reviewed-by: Peter Hurley Tested-by: Kefeng Wang Tested-by: Christopher Covington --- drivers/of/fdt.c | 11 +-- dri

[PATCH v11 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-09-27 Thread Aleksey Makarov
-arch. When ACPI_SPCR_TABLE is defined initialization of DT earlycon is deferred until the DT/ACPI decision is done. Initialize DT earlycon if ACPI is disabled. Acked-by: Will Deacon Acked-by: Hanjun Guo Signed-off-by: Aleksey Makarov Tested-by: Kefeng Wang Tested-by: Christopher Covi

Re: [PATCH v10 0/4] ACPI: parse the SPCR table

2016-09-26 Thread Aleksey Makarov
On 09/21/2016 10:22 AM, Aleksey Makarov wrote: On 09/21/2016 07:38 PM, Greg Kroah-Hartman wrote: On Wed, Sep 21, 2016 at 11:19:35AM -0500, Timur Tabi wrote: On Wed, Sep 21, 2016 at 5:37 AM, Greg Kroah-Hartman wrote: I thought you asked Rafael to take them, they are not in my queue

Re: [PATCH v10 0/4] ACPI: parse the SPCR table

2016-09-21 Thread Aleksey Makarov
s to": https://lkml.kernel.org/r/cajz5v0gzjtfzig7neumr83+j2dgb+oa8gnr2i45zqznfv_h...@mail.gmail.com I asked the ARM64 people, they said they prefer Rafael to do that: https://lkml.kernel.org/r/20160909151758.ga11...@arm.com I interpreted the silence from Rafael as unwillin

Re: [PATCH v10 0/4] ACPI: parse the SPCR table

2016-09-21 Thread Aleksey Makarov
On 09/05/2016 03:36 PM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port Console > Redirection Table) [2] as a mandatory ACPI table that specifies the > configuration of serial console. > > Move "earlycon" early_pa

Re: [PATCH v10 0/4] ACPI: parse the SPCR table

2016-09-16 Thread Aleksey Makarov
+ CC: Lorenzo Pieralisi On 09/05/2016 03:36 PM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port Console > Redirection Table) [2] as a mandatory ACPI table that specifies the > configuration of serial console. Hi Rafael, Could you

Re: [PATCH v10 0/4] ACPI: parse the SPCR table

2016-09-12 Thread Aleksey Makarov
On 09/05/2016 03:36 PM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port Console > Redirection Table) [2] as a mandatory ACPI table that specifies the > configuration of serial console. Hi Rafael, Could you pull these patches plea

Re: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-09-09 Thread Aleksey Makarov
On 09/09/2016 12:29 PM, Will Deacon wrote: > On Wed, Sep 07, 2016 at 12:30:19PM +0300, Aleksey Makarov wrote: >> >> On 09/05/2016 03:36 PM, Aleksey Makarov wrote: >>> SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64 >>> >>> Earl

Re: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-09-07 Thread Aleksey Makarov
On 09/05/2016 03:36 PM, Aleksey Makarov wrote: > SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64 > > Earlycon should be set up as early as possible. ACPI boot tables are > mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that > is called from s

[PATCH v10 1/4] of/serial: move earlycon early_param handling to serial

2016-09-05 Thread Aleksey Makarov
ction from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov Acked-by: Rob Herring Acked-by: Greg Kroah-Hartman Reviewed-by: Peter Hurley Tested-by: Kefeng Wang Tested-by: Christopher Covington --- drivers/of/fdt.c | 11 +-- dri

[PATCH v10 4/4] serial: pl011: add console matching function

2016-09-05 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov Reviewed-by: Peter Hurley

[PATCH v10 2/4] ACPI: parse SPCR and enable matching console

2016-09-05 Thread Aleksey Makarov
f required, enable specified console. Thanks to Peter Hurley for explaining how this should work. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Maka

[PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-09-05 Thread Aleksey Makarov
-arch. When ACPI_SPCR_TABLE is defined initialization of DT earlycon is deferred until the DT/ACPI decision is done. Initialize DT earlycon if ACPI is disabled. Signed-off-by: Aleksey Makarov Tested-by: Kefeng Wang Tested-by: Christopher Covington --- arch/arm64/Kconfig | 1 + arch/

  1   2   3   4   >