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-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

[PATCH v4 4/5] ACPI: table upgrade: introduce ARCH_HAS_ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
We want to use the table upgrade feature in ARM64. Introduce a new configuration option that allows that. Signed-off-by: Aleksey Makarov --- arch/x86/Kconfig | 1 + drivers/acpi/Kconfig | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86

[PATCH v4 3/5] ACPI: table upgrade: move arch-specific symbol to asm/acpi.h

2016-06-20 Thread Aleksey Makarov
The constant that defines max phys address where the new upgraded ACPI table should be allocated is arch-specific. Move it to Signed-off-by: Aleksey Makarov --- arch/x86/include/asm/acpi.h | 2 ++ drivers/acpi/tables.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 5/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
acpi_table_upgrade() and acpi_boot_table_init() are called so I think that we can just move this mapping one function earlier too. Signed-off-by: Jon Masters Signed-off-by: Aleksey Makarov Acked-by: Will Deacon --- arch/arm64/Kconfig| 1 + arch/arm64/include/asm/acpi.h | 2 ++ arch/arm64

[PATCH v4 0/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
Hi Rafael, You said you are ok with the ACPI part of the patches [4]. The patchset has received ACK from Will [5]. Can you consider pulling it please? Thank you Aleksey Makarov This patchset adds support for ACPI_TABLE_UPGRADE for ARM64 These patches help with: 1). During development of a

[PATCH v4 2/5] ACPI: table upgrade: refactor function definitions

2016-06-20 Thread Aleksey Makarov
removes the unneeded wraps early_acpi_table_init() and early_initrd_acpi_init(). Signed-off-by: Aleksey Makarov Acked-by: Lv Zheng --- arch/x86/kernel/setup.c | 9 + drivers/acpi/tables.c | 14 -- include/linux/acpi.h| 8 ++-- 3 files changed, 11 insertions(+), 20

[PATCH v4 1/5] ACPI: table upgrade: use cacheable map for tables

2016-06-20 Thread Aleksey Makarov
The new memory allocated in acpi_table_initrd_init() is used to copy the upgraded tables to it. So it should be mapped with early_memunmap() instead of early_ioremap(). This is critical for ARM. Signed-off-by: Aleksey Makarov Acked-by: Lv Zheng --- drivers/acpi/tables.c | 6 +++--- 1 file

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

2016-06-20 Thread Aleksey Makarov
On 06/02/2016 09:02 PM, Aleksey Makarov wrote: > > On 05/20/2016 04:03 PM, Aleksey Makarov wrote: Hi Russell, Can you review this patch please? Thank you Aleksey Makarov >> This patch adds function pl011_console_match() that implements >> method match of struct console.

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

2016-06-20 Thread Aleksey Makarov
On 05/20/2016 04:03 PM, Aleksey Makarov wrote: Hi Rafael, Can you consider this patch set for queuing up please? You approved ACPI part. I believe it's 2/4 and 3/4. https://lkml.kernel.org/g/CAJZ5v0hdoLTfjrD8+WxSoxM48dqbZK2KwY_h+63kHKHKgO=j...@mail.gmail.com 1/4 is ACKed b

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

[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

[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 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

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

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

[PATCH net-next 1/8] net: thunderx: fix MAINTAINERS

2015-08-28 Thread Aleksey Makarov
From: Aleksey Makarov The liquidio and thunder drivers have different maintainers. Signed-off-by: Aleksey Makarov --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4e6dcb6..43cf79e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH net-next 5/8] net: thunderx: Support for HW VLAN stripping

2015-08-28 Thread Aleksey Makarov
for transmit packets. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic_main.c | 4 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 28 +++--- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 28 +++

[PATCH net-next 3/8] net: thunderx: mailboxes: remove code duplication

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham Use the nicvf_send_msg_to_pf() function in the mailbox code. Signed-off-by: Sunil Goutham Signed-off-by: Robert Richter Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h| 3 +- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 44

[PATCH net-next 2/8] net: thunderx: Add receive error stats reporting via ethtool

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham Added ethtool support to dump receive packet error statistics reported in CQE. Also made some small fixes Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h | 36 +++-- .../net/ethernet/cavium/thunder

[PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham Rework interrupt handler to avoid checking IRQ affinity of CQ interrupts. Now separate handlers are registered for each IRQ including RBDR. Also register interrupt handlers for only those which are being used. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov

[PATCH net-next 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-28 Thread Aleksey Makarov
VF's interface. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thunder/nic.h | 42 - drivers/net/ethernet/cavium/thunder/nic_main.c | 173 +++-- .../net/ethernet/cavium/thunder/nicvf_ethtool.

[PATCH net-next 8/8] net: thunderx: Support for internal loopback mode

2015-08-28 Thread Aleksey Makarov
7;loopback' mode can be enabled or disabled via ethtool. Note: This feature is not supported when no of VFs enabled are morethan no of physical interfaces i.e active BGX LMACs Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic

[PATCH net-next 4/8] net: thunderx: Receive hashing HW offload support

2015-08-28 Thread Aleksey Makarov
multiple CPUs. Offload can be disabled via ethtool. Signed-off-by: Robert Richter Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 14 - drivers/net/ethernet/cavium/thunder/nicvf_main.c | 35 -- 2 files

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Aleksey Makarov
tatus register new version registers different handlers for different irqs. I don't see why it can be wrong. I am going to address your other suggestions in the next version of the patchset. Thank you Aleksey Makarov -- To unsubscribe from this list: send the line "unsubscribe li

[PATCH net-next v2 0/8] net: thunderx: New features and fixes

2015-08-30 Thread Aleksey Makarov
xey Klimov) Aleksey Makarov (1): net: thunderx: fix MAINTAINERS Sunil Goutham (7): net: thunderx: Add receive error stats reporting via ethtool net: thunderx: mailboxes: remove code duplication net: thunderx: Receive hashing HW offload support net: thunderx: Support for HW VLAN strip

[PATCH net-next v2 1/8] net: thunderx: fix MAINTAINERS

2015-08-30 Thread Aleksey Makarov
From: Aleksey Makarov The liquidio and thunder drivers have different maintainers. Signed-off-by: Aleksey Makarov --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4e6dcb6..43cf79e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH net-next v2 2/8] net: thunderx: Add receive error stats reporting via ethtool

2015-08-30 Thread Aleksey Makarov
From: Sunil Goutham Added ethtool support to dump receive packet error statistics reported in CQE. Also made some small fixes Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h | 36 +++-- .../net/ethernet/cavium/thunder

[PATCH net-next v2 3/8] net: thunderx: mailboxes: remove code duplication

2015-08-30 Thread Aleksey Makarov
From: Sunil Goutham Use the nicvf_send_msg_to_pf() function in the mailbox code. Signed-off-by: Sunil Goutham Signed-off-by: Robert Richter Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h| 3 +- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 44

[PATCH net-next v2 4/8] net: thunderx: Receive hashing HW offload support

2015-08-30 Thread Aleksey Makarov
multiple CPUs. Offload can be disabled via ethtool. Signed-off-by: Robert Richter Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 14 - drivers/net/ethernet/cavium/thunder/nicvf_main.c | 35 -- 2 files

[PATCH net-next v2 5/8] net: thunderx: Support for HW VLAN stripping

2015-08-30 Thread Aleksey Makarov
for transmit packets. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic_main.c | 4 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 28 +++--- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 28 +++

[PATCH net-next v2 6/8] net: thunderx: Rework interrupt handling

2015-08-30 Thread Aleksey Makarov
: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h | 1 + drivers/net/ethernet/cavium/thunder/nicvf_main.c | 172 - drivers/net/ethernet/cavium/thunder/nicvf_queues.h | 1 + 3 files changed, 102 insertions(+), 72

[PATCH net-next v2 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-30 Thread Aleksey Makarov
VF's interface. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thunder/nic.h | 42 - drivers/net/ethernet/cavium/thunder/nic_main.c | 173 +++-- .../net/ethernet/cavium/thunder/nicvf_ethtool.

[PATCH net-next v2 8/8] net: thunderx: Support for internal loopback mode

2015-08-30 Thread Aleksey Makarov
7;loopback' mode can be enabled or disabled via ethtool. Note: This feature is not supported when no of VFs enabled are morethan no of physical interfaces i.e active BGX LMACs Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic

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-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-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-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 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/

[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

[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 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 0/3] MIPS: OCTEON: flash: syncronize bootbus access

2014-12-23 Thread Aleksey Makarov
- Use semaphore to protect access to bootbus. - Use device tree to probe for flash chips. David Daney (3): MIPS: OCTEON: Add semaphore to serialize bootbus accesses. MIPS: OCTEON: Protect accesses to bootbus flash with octeon_bootbus_sem. MIPS: OCTEON: Use device tree to probe for flas

[PATCH 1/3] MIPS: OCTEON: Add semaphore to serialize bootbus accesses.

2014-12-23 Thread Aleksey Makarov
: Aleksey Makarov Signed-off-by: Chandrakala Chavva --- arch/mips/cavium-octeon/setup.c | 3 +++ arch/mips/include/asm/octeon/octeon.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 94f888d..7311338 100644 --- a/arch

[PATCH 3/3] MIPS: OCTEON: Use device tree to probe for flash chips.

2014-12-23 Thread Aleksey Makarov
From: David Daney Don't assume they are there, the device tree will tell us. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/flash_setup.c | 42 ++- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/arch

[PATCH 2/3] MIPS: OCTEON: Protect accesses to bootbus flash with octeon_bootbus_sem.

2014-12-23 Thread Aleksey Makarov
From: David Daney Without this, we get bus errors. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/Kconfig | 1 + arch/mips/cavium-octeon/flash_setup.c | 42 ++- 2 files changed, 42 insertions(+), 1 deletion

[PATCH v2] SATA: OCTEON: support SATA on OCTEON platform

2015-01-23 Thread Aleksey Makarov
The OCTEON SATA controller is currently found on cn71XX devices. Signed-off-by: David Daney Signed-off-by: Vinita Gupta Signed-off-by: Aleksey Makarov --- Version 1: https://lkml.kernel.org/g/<1421681040-3392-1-git-send-email-aleksey.maka...@auriga.com> Changes in v2: - The driv

[PATCH v3 00/15] MIPS: OCTEON: Some partial support for Octeon III

2015-01-15 Thread Aleksey Makarov
SATA and some other interrutps. Aleksey Makarov (1): MIPS: OCTEON: Delete unused COP2 saving code Chad Reese (1): MIPS: OCTEON: Remove setting of processor specific CVMCTL icache bits. Chandrakala Chavva (2): MIPS: OCTEON: Use correct instruction to read 64-bit COP0 register MIPS: OCTEON: More

[PATCH v3 05/15] MIPS: OCTEON: Delete unused COP2 saving code

2015-01-15 Thread Aleksey Makarov
Commit 2c952e06e4f5 ("MIPS: Move cop2 save/restore to switch_to()") removes assembler code to store COP2 registers. Commit a36d8225bceb ("MIPS: OCTEON: Enable use of FPU") mistakenly restores it Fixes: a36d8225bceb ("MIPS: OCTEON: Enable use of FPU") Signed-off-

[PATCH v3 03/15] MIPS: OCTEON: Save and restore CP2 SHA3 state

2015-01-15 Thread Aleksey Makarov
From: David Daney Allocate new save space, and then save/restore the registers if OCTEON III. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/processor.h | 2 ++ arch/mips/kernel/asm-offsets.c| 1 + arch/mips/kernel/octeon_switch.S | 43

[PATCH v3 08/15] MIPS: OCTEON: Add little-endian support to asm/octeon/octeon.h

2015-01-15 Thread Aleksey Makarov
From: David Daney Also update union octeon_cvmemctl with new OCTEON II fields. Signed-off-by: David Daney [aleksey.maka...@auriga.com: use __BITFIELD_FIELD] Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/octeon/octeon.h | 135 ++ 1 file changed, 105

[PATCH v3 06/15] MIPS: OCTEON: Implement the core-16057 workaround

2015-01-15 Thread Aleksey Makarov
From: David Daney Disable ICache prefetch for certian Octeon II processors. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- .../asm/mach-cavium-octeon/kernel-entry-init.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/mips/include/asm/mach

[PATCH v3 01/15] MIPS: OCTEON: Save/Restore wider multiply registers in OCTEON III CPUs

2015-01-15 Thread Aleksey Makarov
resolution, support for old compilers] Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/setup.c | 37 ++ arch/mips/include/asm/octeon/octeon.h | 13 arch/mips/include/asm/ptrace.h| 4 +- arch/mips/kernel/octeon_switch.S | 128

[PATCH v3 15/15] MIPS: OCTEON: irq: add CIB and other fixes

2015-01-15 Thread Aleksey Makarov
From: David Daney - Use of_irq_init() to initialize interrupt controllers - Get rid of some unlikely() - Add CIB to support SATA and other interrupts - Add support for CIU SUM2 interrupt sources Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim Signed-off-by: Aleksey Makarov Signed

[PATCH v3 04/15] MIPS: OCTEON: Use correct instruction to read 64-bit COP0 register

2015-01-15 Thread Aleksey Makarov
From: Chandrakala Chavva Use dmfc0/dmtc0 instructions for reading CvmMemCtl COP0 register, its a 64-bit wide. Signed-off-by: Chandrakala Chavva Signed-off-by: Aleksey Makarov --- arch/mips/kernel/octeon_switch.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH v3 07/15] MIPS: OCTEON: Add ability to used an initrd from a named memory block.

2015-01-15 Thread Aleksey Makarov
From: David Daney If 'rd_name=xxx' is passed to the kernel, the named block with name 'xxx' is used for the initrd. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim [aleksey.maka...@auriga.com: conflict resolution] Signed-off-by: Aleksey Makarov --- arch/mips/c

[PATCH v3 13/15] MIPS: OCTEON: More OCTEONIII support

2015-01-15 Thread Aleksey Makarov
From: Chandrakala Chavva Read clock rate from the correct CSR. Don't clear COP0_DCACHE for OCTEONIII. Signed-off-by: Chandrakala Chavva Signed-off-by: Aleksey Makarov Signed-off-by: David Daney --- arch/mips/cavium-octeon/csrc-octeon.c | 11 +- arch/mips/cavium-octeon/se

[PATCH v3 10/15] MIPS: OCTEON: Update octeon-model.h code for new SoCs.

2015-01-15 Thread Aleksey Makarov
From: David Daney Add coverage for OCTEON III models. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/dma-octeon.c | 4 +- .../cavium-octeon/executive/cvmx-helper-board.c| 2 +- arch/mips/cavium-octeon/octeon-irq.c

[PATCH v3 14/15] MIPS: OCTEON: Don't do acknowledge operations for level triggered irqs.

2015-01-15 Thread Aleksey Makarov
From: David Daney The acknowledge bits don't exist for level triggered irqs, so setting them causes the simulator to terminate. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/octeon-irq.c

[PATCH v3 11/15] MIPS: OCTEON: Core-15169 Workaround and general CVMSEG cleanup.

2015-01-15 Thread Aleksey Makarov
From: David Daney Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/setup.c | 4 +--- .../asm/mach-cavium-octeon/kernel-entry-init.h| 19 --- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/arch

[PATCH v3 02/15] MIPS: OCTEON: Fix FP context save.

2015-01-15 Thread Aleksey Makarov
From: David Daney It wasn't being saved on task switch. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/kernel/octeon_switch.S | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/arch/mips/kernel/octeon_switch.S b/arch/mips/k

[PATCH v3 12/15] MIPS: OCTEON: Remove setting of processor specific CVMCTL icache bits.

2015-01-15 Thread Aleksey Makarov
From: Chad Reese CN38XX pass 1 required icache prefetching to be turned off. This chip never reached production and is long dead. Other processor specific icache settings are done by the bootloader. Remove these bits from the kernel. Signed-off-by: Chad Reese Signed-off-by: Aleksey Makarov

[PATCH] mmc: OCTEON: Add host driver for OCTEON MMC controller

2015-01-19 Thread Aleksey Makarov
: Chandrakala Chavva Signed-off-by: Peter Swain [aleksey.maka...@auriga.com: preparation for submission] Signed-off-by: Aleksey Makarov --- This patch should be applied on top of the patchset "MIPS: OCTEON: flash: syncronize bootbus access" https://lkml.kernel.org/g/<1419337623-16101-1-g

[PATCH] SATA: OCTEON: support SATA on OCTEON platform

2015-01-19 Thread Aleksey Makarov
The OCTEON SATA controller is currently found on cn71XX devices. Signed-off-by: David Daney Signed-off-by: Vinita Gupta [aleksey.maka...@auriga.com: preparing for submission, conflict resolution, fixes for the platform code] Signed-off-by: Aleksey Makarov --- .../devicetree/bindings/ata/ahci

Re: [PATCH v4] SATA: OCTEON: support SATA on OCTEON platform

2015-03-20 Thread Aleksey Makarov
+shim_cfg.s.csr_endian_mode = 1; >> +#else >> +shim_cfg.s.dma_endian_mode = 0; >> +shim_cfg.s.csr_endian_mode = 0; >> +#endif >> +shim_cfg.s.dma_read_cmd = 1; /* No allocate L2C */ >> +cvmx_write_csr((uint64_t)base + CVMX_SATA_UCTL_SHIM_CFG, sh

[PATCH v5] SATA: OCTEON: support SATA on OCTEON platform

2015-03-20 Thread Aleksey Makarov
The OCTEON SATA controller is currently found on cn71XX devices. Cc: Arnd Bergmann Acked-by: Hans de Goede Signed-off-by: David Daney Signed-off-by: Vinita Gupta Signed-off-by: Aleksey Makarov --- .../devicetree/bindings/ata/ahci-platform.txt | 1 + .../devicetree/bindings/mips

[PATCH 1/3] MIPS: OCTEON: Handle bootloader structures in little-endian mode.

2015-03-20 Thread Aleksey Makarov
From: David Daney Compensate for the differences in the layout of in-memory bootloader information as seen from little-endian mode. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/octeon_boot.h| 23 arch/mips/include/asm/octeon/cvmx

[PATCH 0/3] mips: OCTEON: Support for little-endian mode

2015-03-20 Thread Aleksey Makarov
These patches enable compiling and booting kernel on Octeon boards in little-endian mode. David Daney (3): MIPS: OCTEON: Handle bootloader structures in little-endian mode. MIPS: OCTEON: Add mach-cavium-octeon/mangle-port.h MIPS: OCTEON: Enable little endian kernel. arch/mips/Kconfig

[PATCH 3/3] MIPS: OCTEON: Enable little endian kernel.

2015-03-20 Thread Aleksey Makarov
From: David Daney Now it is supported, so let people select it. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim Signed-off-by: Aleksey Makarov --- arch/mips/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index

[PATCH 2/3] MIPS: OCTEON: Add mach-cavium-octeon/mangle-port.h

2015-03-20 Thread Aleksey Makarov
From: David Daney Needed for little-endian ioport access. This fixes NOR flash in little-endian mode Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- .../include/asm/mach-cavium-octeon/mangle-port.h | 74 ++ 1 file changed, 74 insertions(+) create mode

[PATCH net-next v6 0/2] Adding support for Cavium ThunderX network controller

2015-05-26 Thread Aleksey Makarov
This patchset adds support for the Cavium ThunderX network controller. changes in v6: * unused preprocessor symbols were removed * reduce no of atomic operations in SQ maintenance * support for TCP segmentation at driver level * reset RBDR if fifo state is FAIL * fixed an issue with link stat

[PATCH net-next v6 1/2] pci: Add Cavium PCI vendor id

2015-05-26 Thread Aleksey Makarov
From: Sunil Goutham This vendor id will be used by network (vNIC), USB (xHCI), SATA (AHCI), GPIO, I2C, MMC and maybe other drivers for ThunderX SoC. Acked-by: Bjorn Helgaas Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2

[PATCH 00/10] net: thunderx: fix problems reported by static check tools

2015-06-02 Thread Aleksey Makarov
These are fixes for the problems that were reported by static check tools. Aleksey Makarov (9): net: thunderx: fix constants net: thunderx: introduce a function for mailbox access net: thunderx: rework mac address handling net: thunderx: delete unused variables net: thunderx: add static

[PATCH 07/10] net: thunderx: fix nicvf_set_rxfh()

2015-06-02 Thread Aleksey Makarov
521 522 nicvf_config_rss(nic); 523 return 0; 524 } regards, dan carpenter Reported-by: Dan Carpenter Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/e

[PATCH 02/10] net: thunderx: fix constants

2015-06-02 Thread Aleksey Makarov
This fixes sparse messages like this: drivers/net/ethernet/cavium/thunder/thunder_bgx.c:897:24: sparse: constant 0x3000 is so big it is long Reported-by: kbuild test robot Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 10 +- 1 file

[PATCH 03/10] net: thunderx: introduce a function for mailbox access

2015-06-02 Thread Aleksey Makarov
This fixes sparse message: drivers/net/ethernet/cavium/thunder/nicvf_main.c:153:25: sparse: cast to restricted __le64 Reported-by: kbuild test robot Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 27 +++- 1 file changed, 17 insertions

[PATCH 04/10] net: thunderx: rework mac address handling

2015-06-02 Thread Aleksey Makarov
This fixes sparse message: drivers/net/ethernet/cavium/thunder/nicvf_main.c:385:40: sparse: cast to restricted __le64 Reported-by: kbuild test robot Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h | 4 ++-- drivers/net/ethernet/cavium/thunder/nic_main.c

[PATCH 09/10] net: thunderx: check if memory allocation was successful

2015-06-02 Thread Aleksey Makarov
gt; 367 sq->tso_hdrs = dma_alloc_coherent(&nic->pdev->dev, 368q_len * TSO_HEADER_SIZE, 369&sq->tso_hdrs_phys, GFP_KERNEL); 370 if (!sq->tso_hdrs) Reported-by:

[PATCH 08/10] net: thunderx: remove unneeded type conversions

2015-06-02 Thread Aleksey Makarov
No need to cast void* to u8*: pointer arithmetics works same way for both. Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers

[PATCH 06/10] net: thunderx: add static

2015-06-02 Thread Aleksey Makarov
This fixes sparse messages like this: drivers/net/ethernet/cavium/thunder/nicvf_main.c:1141:26: sparse: symbol 'nicvf_get_stats64' was not declared. Should it be static? Also remove unused declarations Reported-by: kbuild test robot Signed-off-by: Aleksey Makarov --- drivers/ne

[PATCH 10/10] net: thunderx: use GFP_KERNEL in thread context

2015-06-02 Thread Aleksey Makarov
GFP_KERNEL should be used in the thread context Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder

[PATCH 05/10] net: thunderx: delete unused variables

2015-06-02 Thread Aleksey Makarov
They were left from development stage Reported-by: kbuild test robot Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net

[PATCH 01/10] net: thunderx: Cleanup duplicate NODE_ID macros, add nic_get_node_id()

2015-06-02 Thread Aleksey Makarov
From: Robert Richter There are duplicate NODE_ID macro definitions. Move all of them to nic.h for usage in nic and bgx driver and introduce nic_get_node_id() helper function. This patch also fixes 64bit mask which should have been ULL by reworking the node calculation. Signed-off-by: Robert Ric

[PATCH net 10/11] net: thunderx: Add PCI driver shutdown routine

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c

[PATCH net 08/11] net: thunderx: Set watchdog timeout value

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham If a txq (SQ) remains in stopped state after this timeout its considered as stuck and interface is reinited. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nic.h| 9 + drivers/net/ethernet/cavium/thunder

[PATCH net 02/11] net: thunderx: Fix memory leak while tearing down interface

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Fixed 'tso_hdrs' memory not being freed properly. Also fixed SQ skbuff maintenance issues. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 1 + drivers/net/ethernet/cavium/thunder/nicvf_qu

[PATCH net 03/11] net: thunderx: Fix RQ_DROP miscalculation

2015-07-29 Thread Aleksey Makarov
irst half of CQ under heavy load and time taken by NAPI to clear transmit notifications will increase with higher queue sizes. Again results in SQ being stopped. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.h | 14 +++--

[PATCH net 04/11] net: thunderx: Fix memory leak when changing queue count

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Fix for memory leak when changing queue/channel count via ethtool Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 23 +- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a

[PATCH net 11/11] net: thunderx: Fix for crash while BGX teardown

2015-07-29 Thread Aleksey Makarov
From: Thanneeru Srinivasulu Cortina phy does not have kernel driver and we don't attach device with phy layer for intefaces like XFI, XLAUI etc, Hence check for interface type before calling disconnect. Signed-off-by: Thanneeru Srinivasulu Signed-off-by: Aleksey Makarov --- driver

[PATCH net 09/11] net: thunderx: Fix crash when changing rss with mutliple traffic flows

2015-07-29 Thread Aleksey Makarov
: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index abee2d7..c7a29a3 100644 --- a/drivers/net

[PATCH net 05/11] net: thunderx: Fix TSO packet statistic

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Fixing TSO packages not being counted. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net

[PATCH net 01/11] net: thunderx: Fix data integrity issues with LDWB

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Switching back to LDD transactions from LDWB. While transmitting packets out with LDWB transactions data integrity issues are seen very frequently. hence switching back to LDD. Signed-off-by: Sunil Goutham Signed-off-by: Robert Richter Signed-off-by: Aleksey Makarov

[PATCH net 00/11] net: thunderx: Misc fixes

2015-07-29 Thread Aleksey Makarov
Miscellaneous fixes for the ThunderX VNIC driver All the patches can be applied individually. It's ok to drop some if the maintainer feels uncomfortable with applying for 4.2. Sunil Goutham (10): net: thunderx: Fix data integrity issues with LDWB net: thunderx: Fix memory leak while tearing d

[PATCH net 07/11] net: thunderx: Wakeup TXQ only if CQE_TX are processed

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham Previously TXQ is wakedup whenever napi is executed and irrespective of if any CQE_TX are processed or not. Added 'txq_stop' and 'txq_wake' counters to aid in debugging if there are any future issues. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey M

[PATCH net 06/11] net: thunderx: Suppress alloc_pages() failure warnings

2015-07-29 Thread Aleksey Makarov
. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c index

Re: [PATCH v7 0/5] ACPI: parse the SPCR table

2016-05-12 Thread Aleksey Makarov
address in a separate patch. I know no other problems with it and reviewers seem happy. So I believe this patchset could be pulled. If needed, I will send v8. Thank you Aleksey Makarov On 05/12/2016 11:20 AM, Jon Masters wrote: > On 03/31/2016 09:40 AM, Aleksey Makarov wrote: > >> 

[PATCH 1/3] ACPI: table upgrade: use cacheable map for tables

2016-05-17 Thread Aleksey Makarov
The new memory allocated in acpi_table_initrd_init() is used to copy the upgraded tables to it. So it should be mapped with early_memunmap() instead of early_ioremap(). This is critical for ARM. Signed-off-by: Aleksey Makarov --- drivers/acpi/tables.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-05-17 Thread Aleksey Makarov
From: Jon Masters This patch adds support for ACPI_TABLE_UPGRADE for ARM64 To access initrd image we need to move initialization of linear mapping a bit earlier. Signed-off-by: Jon Masters Signed-off-by: Aleksey Makarov --- arch/arm64/kernel/setup.c | 6 -- drivers/acpi/Kconfig

[PATCH 2/3] ACPI: table upgrade: move early_initrd_acpi_init() to header file

2016-05-17 Thread Aleksey Makarov
Move early_initrd_acpi_init() to header file so that it can be used with architectures other than X86 Signed-off-by: Aleksey Makarov --- arch/x86/kernel/setup.c | 7 --- drivers/acpi/tables.c | 7 +-- include/linux/acpi.h| 4 ++-- 3 files changed, 7 insertions(+), 11 deletions

  1   2   3   4   >