[PATCH v2 0/3] ntb: Asynchronous NTB devices support

2016-07-28 Thread Serge Semin
ed-off-by: Serge Semin fancer (3): ntb: Add asynchronous devices support to NTB-bus interface ntb: IDT 89HPES*NT* PCIe-switches NTB device driver ntb: Test client drivers for asynchronous NTB devices drivers/ntb/Kconfig|4 +- drivers/ntb/hw/Kconfig

[PATCH v2 1/3] ntb: Add asynchronous devices support to NTB-bus interface

2016-07-28 Thread Serge Semin
vices with same names in the system and it brakes my IDT NTB driver from being loaded =) So I developed a simple algorithm of NTB devices naming. Particulary it generates names "ntbS{N}" for synchronous devices, "ntbA{N}" for asynchronous devices, and "ntbAS{N}" for

[PATCH v2 3/3] ntb: Test client drivers for asynchronous NTB devices

2016-07-28 Thread Serge Semin
. Then driver initialize the outbound memory windows (outwndw{N}). The read/write operations can be performed using the following debug nodes: /sys/kernel/debug/ntb_mw_test/ntbA{N}/inwndw{N} /sys/kernel/debug/ntb_mw_test/ntbA{N}/outwndw{N} Signed-off-by: Serge Semin --- drivers/ntb/test/Kconfig

Re: [PATCH v2 0/3] ntb: Asynchronous NTB devices support

2016-07-28 Thread Serge Semin
#x27;ll have to redesign the driver regmap subsystem.( Regards, -Sergey On Thu, Jul 28, 2016 at 10:42:30AM -0400, Allen Hubbe wrote: > From: Serge Semin > > Please, find the general patchset description in the cover letter of the > > first > > patchset (see the very firs

Re: [PATCH v2 1/3] ntb: Add asynchronous devices support to NTB-bus interface

2016-08-07 Thread Serge Semin
t design as possible, nevertheless the NTB bus kernel API had to be slightly changed. You can find answers to the commentaries down below. On Fri, Aug 05, 2016 at 11:31:58AM -0400, Allen Hubbe wrote: > From: Serge Semin > > Currently supported AMD and Intel Non-transparent PCIe-bridges

[PATCH] mips: mm: Discard ioremap_cacheable_cow() method

2018-07-20 Thread Serge Semin
This macro substitution is the shortcut to map cacheable IO memory with coherent and write-back attributes. Since it is entirely unused by kernel, lets just remove it. Signed-off-by: Serge Semin Suggested-by: Christoph Hellwig CC: Paul Burton Cc: James Hogan Cc: Ralf Baechle Cc: Sinan Kaya

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-11 Thread Serge Semin
Hello Christoph, On Tue, Jul 10, 2018 at 11:56:31PM -0700, Christoph Hellwig wrote: > > + * This is a MIPS specific ioremap variant. ioremap_cacheable_cow > > + * requests a cachable mapping with CWB attribute enabled. > > */ > > #define ioremap_cacheable_cow(offset, size)

[PATCH] ntb: idt: Set PCIe bus address to BARLIMITx

2018-07-11 Thread Serge Semin
g BAR resources. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_idt.c index dbe72f116017..0f4f5e7e4ff8 100644 --- a/drivers/ntb/hw/idt/ntb_hw_idt.c

[PATCH v2] ntb: idt: Set PCIe bus address to BARLIMITx

2018-07-11 Thread Serge Semin
f the corresponding BAR resource. Signed-off-by: Serge Semin --- Changelog v2: - Replace pcibios_resource_to_bus() with pci_bus_address() helper. drivers/ntb/hw/idt/ntb_hw_idt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_

[PATCH 4/4] ntb: idt: Alter the driver info comments

2018-07-14 Thread Serge Semin
Since IDT PCIe-switch temperature sensor is now always available irregardless of the EEPROM/BIOS settings, Kconfig and in-code description should be properly altered. In addition lets update the driver copyright lines. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/Kconfig | 4

[PATCH 1/4] ntb: idt: Alter temperature read method

2018-07-14 Thread Serge Semin
translated by these methods too. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 113 ++-- drivers/ntb/hw/idt/ntb_hw_idt.h | 56 2 files changed, 152 insertions(+), 17 deletions(-) diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b

[PATCH 0/4] ntb: idt: Add hwmon temperature sensor interface

2018-07-14 Thread Serge Semin
reset the history, temperature offset. The rest of the nodes can't be safely implemented for the chip due to the described issues. Signed-off-by: Serge Semin Serge Semin (4): ntb: idt: Alter temperature read method ntb: idt: Add basic hwmon sysfs interface ntb: idt: Discard temperature sen

[PATCH 2/4] ntb: idt: Add basic hwmon sysfs interface

2018-07-14 Thread Serge Semin
the hwmon-sysfs interface at the moment, except the offset node. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 182 drivers/ntb/hw/idt/ntb_hw_idt.h | 24 +- 2 files changed, 205 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH 3/4] ntb: idt: Discard temperature sensor IRQ handler

2018-07-14 Thread Serge Semin
oint dangerous to be used in the driver. In this case it is safer to completely discard it and disable the temperature alarm interrupts. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 41 + drivers/ntb/hw/idt/ntb_hw_idt.h | 5 ++---

Re: [PATCH 11/14] MIPS: memblock: Print out kernel virtual mem layout

2018-01-23 Thread Serge Semin
Hello Matt, On Tue, Jan 23, 2018 at 03:35:14PM +, Matt Redfearn wrote: > Hi Serge, > > On 19/01/18 14:27, Serge Semin wrote: > >On Fri, Jan 19, 2018 at 07:59:43AM +, Matt Redfearn > > wrote: > > > >Hello Matt, > > > >>Hi Serge, > &g

Re: [PATCH 02/14] MIPS: memblock: Surely map BSS kernel memory section

2018-01-23 Thread Serge Semin
Hello Matt, On Tue, Jan 23, 2018 at 11:03:27AM +, Matt Redfearn wrote: > Hi Serge, > > On 22/01/18 21:47, Serge Semin wrote: > >Hello Matt, > > > >On Mon, Jan 22, 2018 at 04:35:26PM +, Matt Redfearn > > wrote: > >>Hi Serge, > >>

Re: [PATCH 12/14] MIPS: memblock: Discard bootmem from Loongson3 code

2018-01-23 Thread Serge Semin
Hello Jiaxun, On Tue, Jan 23, 2018 at 10:28:44PM +, Jiaxun Yang wrote: > 在 2018-01-18四的 01:23 +0300,Serge Semin写道: > Hi Serge > > > Loongson64/3 runs its own code to initialize memory allocator in > > case of NUMA configuration is selected. So in order to move to

Re: [PATCH 07/14] MIPS: memblock: Mark present sparsemem sections

2018-01-23 Thread Serge Semin
Hello Marcin On Wed, Jan 24, 2018 at 07:13:03AM +0100, Marcin Nowakowski wrote: > Hi Serge, > > On 17.01.2018 23:23, Serge Semin wrote: > >If sparsemem is activated all sections with present pages must > >be accordingly marked after memblock is fully initialized. > &

Re: [PATCH] NTB: ntb_perf: fix cast to restricted __le32

2018-01-23 Thread Serge Semin
On Tue, Jan 23, 2018 at 11:18:06PM -0500, Jon Mason wrote: > On Fri, Jan 19, 2018 at 10:26:37PM +0100, Arnd Bergmann wrote: > > On Fri, Jan 19, 2018 at 10:03 PM, Serge Semin > > wrote: > > > > > > Actually the provided patch is the best solution I could come

[PATCH v2] NTB: ntb_perf: fix cast to restricted __le32

2018-01-23 Thread Serge Semin
anymore. Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Serge Semin --- drivers/ntb/test/ntb_perf.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/ntb/test/ntb_perf.c b/driver

Re: [PATCH 14/14] MIPS: memblock: Deactivate bootmem allocator

2018-01-24 Thread Serge Semin
On Tue, Jan 23, 2018 at 11:59:35PM +, James Hogan wrote: > On Thu, Jan 18, 2018 at 01:23:12AM +0300, Serge Semin wrote: > > Memblock allocator can be successfully used from now for early > > memory management > > > > Signed-off-by: Serge Semin > > Am I cor

Re: [PATCH 02/14] MIPS: memblock: Surely map BSS kernel memory section

2018-01-24 Thread Serge Semin
Hello Matt, On Wed, Jan 24, 2018 at 09:49:31AM +, Matt Redfearn wrote: > Hi Serge, > > On 23/01/18 19:27, Serge Semin wrote: > >Hello Matt, > > > >On Tue, Jan 23, 2018 at 11:03:27AM +, Matt Redfearn > > wrote: > >>Hi Serge, > >> &

Re: [PATCH 11/14] MIPS: memblock: Print out kernel virtual mem layout

2018-01-24 Thread Serge Semin
Hello Matt, On Wed, Jan 24, 2018 at 09:46:07AM +, Matt Redfearn wrote: > Hi Serge, > > On 23/01/18 19:10, Serge Semin wrote: > >Hello Matt, > > > >On Tue, Jan 23, 2018 at 03:35:14PM +, Matt Redfearn > > wrote: > >>Hi Serge, > >> &g

Re: [PATCH 00/14] MIPS: memblock: Switch arch code to NO_BOOTMEM

2018-01-25 Thread Serge Semin
Hello Alexander, On Thu, Jan 25, 2018 at 06:58:07PM +0100, Alexander Sverdlin wrote: > Hello Serge, > > On 17/01/18 23:22, Serge Semin wrote: > > The patchset is applied on top of kernel 4.15-rc8 and can be found > > submitted at my repo: > > https://github.c

Re: [PATCH 00/14] MIPS: memblock: Switch arch code to NO_BOOTMEM

2018-01-30 Thread Serge Semin
So, since there haven't been any new comments for over a week, I'll be collecting the patchset v2 tomorrow. Regards, -Sergey On Thu, Jan 18, 2018 at 01:22:58AM +0300, Serge Semin wrote: > Even though it's common to see the architecture code using both > bootmem and

Re: [PATCH 11/14] MIPS: memblock: Print out kernel virtual mem layout

2018-01-18 Thread Serge Semin
On Thu, Jan 18, 2018 at 12:03:03PM -0800, Florian Fainelli wrote: > On 01/17/2018 02:23 PM, Serge Semin wrote: > > It is useful to have the kernel virtual memory layout printed > > at boot time so to have the full information about the booted > > kernel. In some cases it mi

Re: [PATCH 11/14] MIPS: memblock: Print out kernel virtual mem layout

2018-01-19 Thread Serge Semin
On Fri, Jan 19, 2018 at 07:59:43AM +, Matt Redfearn wrote: Hello Matt, > Hi Serge, > > > > On 18/01/18 20:18, Serge Semin wrote: > >On Thu, Jan 18, 2018 at 12:03:03PM -0800, Florian Fainelli > > wrote: > >>On 01/17/2018 02:23 PM, Serge Semin wrote:

[PATCH] NTB: ntb_perf: fix cast to restricted __le32

2018-01-19 Thread Serge Semin
ed to forcibly cast all the u32 to be __le32 and vise-versa where it's supposed to be in accordance with the driver logic. Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Serge Semin --- drivers/ntb/test/ntb_perf.c | 32

Re: [PATCH] NTB: ntb_perf: fix cast to restricted __le32

2018-01-19 Thread Serge Semin
On Fri, Jan 19, 2018 at 09:42:17PM +0100, Arnd Bergmann wrote: > On Fri, Jan 19, 2018 at 6:30 PM, Serge Semin wrote: > > Sparse is whining about the u32 and __le32 mixed usage in the > > driver. > > > > drivers/ntb/test/ntb_perf.c:288:21: warning: cast to restricted

Re: [PATCH] NTB: ntb_perf: fix cast to restricted __le32

2018-01-19 Thread Serge Semin
On Sat, Jan 20, 2018 at 12:03:10AM +0300, Serge Semin wrote: > On Fri, Jan 19, 2018 at 09:42:17PM +0100, Arnd Bergmann wrote: > > On Fri, Jan 19, 2018 at 6:30 PM, Serge Semin > > wrote: > > > Sparse is whining about the u32 and __le32 mixed usage in the > > >

Re: [PATCH][next] NTB: ntb_tool: fix memory leak on 'buf' on error exit path

2018-01-22 Thread Serge Semin
rityScan, CID#1464286 ("Resource leak") > > Fixes: d637628ce00c ("NTB: ntb_tool: Add full multi-port NTB API support") > Signed-off-by: Colin Ian King Good catch, thanks! Acked-by: Serge Semin > --- > drivers/ntb/test/ntb_tool.c | 4 +++- > 1 file change

Re: [PATCH 00/14] MIPS: memblock: Switch arch code to NO_BOOTMEM

2018-01-22 Thread Serge Semin
On Mon, Jan 22, 2018 at 04:36:40PM +, Matt Redfearn wrote: Hello Matt, > Hi Serge, > > On 17/01/18 22:22, Serge Semin wrote: > >Even though it's common to see the architecture code using both > >bootmem and memblock early memory allocators, it's not good fo

Re: [PATCH 02/14] MIPS: memblock: Surely map BSS kernel memory section

2018-01-22 Thread Serge Semin
Hello Matt, On Mon, Jan 22, 2018 at 04:35:26PM +, Matt Redfearn wrote: > Hi Serge, > > On 17/01/18 22:23, Serge Semin wrote: > >The current MIPS code makes sure the kernel code/data/init > >sections are in the maps, but BSS should also be there. > > Quite righ

[PATCH 00/14] MIPS: memblock: Switch arch code to NO_BOOTMEM

2018-01-17 Thread Serge Semin
15-rc8 and can be found submitted at my repo: https://github.com/fancer/Linux-kernel-MIPS-memblock-project Signed-off-by: Serge Semin Serge Semin (14): MIPS: memblock: Add RESERVED_NOMAP memory flag MIPS: memblock: Surely map BSS kernel memory section MIPS: memblock: Reserve initrd memory in

[PATCH 14/14] MIPS: memblock: Deactivate bootmem allocator

2018-01-17 Thread Serge Semin
Memblock allocator can be successfully used from now for early memory management Signed-off-by: Serge Semin --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 725b5ece7..a6c4fb6b6 100644 --- a/arch/mips/Kconfig

[PATCH 06/14] MIPS: memblock: Reserve kdump/crash regions in memblock

2018-01-17 Thread Serge Semin
Kdump/crashkernel memory regions should be reserved in the memblock allocator so they wouldn't be occupied by any further allocations. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/mips/kernel/setu

[PATCH 01/14] MIPS: memblock: Add RESERVED_NOMAP memory flag

2018-01-17 Thread Serge Semin
7;t going to be changed in the further patches. Signed-off-by: Serge Semin --- arch/mips/include/asm/bootinfo.h | 1 + arch/mips/kernel/prom.c | 8 ++-- arch/mips/kernel/setup.c | 8 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/bo

[PATCH 12/14] MIPS: memblock: Discard bootmem from Loongson3 code

2018-01-17 Thread Serge Semin
: Serge Semin --- arch/mips/loongson64/loongson-3/numa.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/mips/loongson64/loongson-3/numa.c b/arch/mips/loongson64/loongson-3/numa.c index 282c5a8c2..902843516 100644 --- a/arch/mips/loongson64/loongson-3

[PATCH 09/14] MIPS: memblock: Allow memblock regions resize

2018-01-17 Thread Serge Semin
When all the main reservations are done the memblock regions can be dynamically resized. Additionally it would be useful to have memblock regions dumped on debug at this point. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 4 1 file changed, 4 insertions(+) diff --git a/arch

[PATCH 13/14] MIPS: memblock: Discard bootmem from SGI IP27 code

2018-01-17 Thread Serge Semin
ing anyway since I couldn't find a place where prom_meminit() called and kernel memory isn't reserved. It must have been untested since the time the arch/mips/mips-boards/generic code was in the kernel. Signed-off-by: Serge Semin --- arch/mips/sgi-ip27/ip27-memory.c | 9 ++--

[PATCH 11/14] MIPS: memblock: Print out kernel virtual mem layout

2018-01-17 Thread Serge Semin
It is useful to have the kernel virtual memory layout printed at boot time so to have the full information about the booted kernel. In some cases it might be unsafe to have virtual addresses freely visible in logs, so the %pK format is used if one want to hide them. Signed-off-by: Serge Semin

[PATCH 08/14] MIPS: memblock: Simplify DMA contiguous reservation

2018-01-17 Thread Serge Semin
CMA reserves it areas in the memblock allocator. Since we aren't using bootmem anymore, the reservations copying should be discarded. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/k

[PATCH 10/14] MIPS: memblock: Perform early low memory test

2018-01-17 Thread Serge Semin
Low memory can be tested at this point, since all the reservations have just been finished without much of additional allocations. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c

[PATCH 05/14] MIPS: memblock: Add reserved memory regions to memblock

2018-01-17 Thread Serge Semin
function description/code). Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 96 +- 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 0ffbc3bb5..9e14d9833 100644 --- a/arch/mips/kernel

[PATCH 07/14] MIPS: memblock: Mark present sparsemem sections

2018-01-17 Thread Serge Semin
If sparsemem is activated all sections with present pages must be accordingly marked after memblock is fully initialized. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel

[PATCH 04/14] MIPS: memblock: Discard bootmem initialization

2018-01-17 Thread Serge Semin
regions initialization the only thing left is to set the upper allocation limit to be up to the max low memory PFN, so the memblock API can be fully used from now. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 86 -- 1 file changed, 11 insertions(+), 75

[PATCH 02/14] MIPS: memblock: Surely map BSS kernel memory section

2018-01-17 Thread Serge Semin
The current MIPS code makes sure the kernel code/data/init sections are in the maps, but BSS should also be there. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 76e9e2075

[PATCH 03/14] MIPS: memblock: Reserve initrd memory in memblock

2018-01-17 Thread Serge Semin
There is no reserve_bootmem() method in the nobootmem interface, so we need to replace it with memblock-specific one. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c

[PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-09 Thread Serge Semin
anywhere in the kernel code, lets remove it from io.h arch-specific header then. Signed-off-by: Serge Semin Singed-off-by: Paul Burton Cc: James Hogan Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Cc: sta...@vger.kernel.org --- arch/mips/include/asm/io.h | 8 ++-- 1 file changed, 2 i

[PATCH 1/2] mips: mm: Create UCA-based ioremap_wc() method

2018-07-09 Thread Serge Semin
cache supports UCA feature and fall-back to _CACHE_UNCACHED attribute if one doesn't. Additionally platform-specific io.h shall declare ARCH_HAS_IOREMAP_WC macro as indication of architectural definition of ioremap_wc() (similar to x86/powerpc). Signed-off-by: Serge Semin Singed-off-by: Paul Burton

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-10 Thread Serge Semin
On Tue, Jul 10, 2018 at 09:15:17AM +0200, Mathieu Malaterre wrote: > ' > On Mon, Jul 9, 2018 at 3:57 PM Serge Semin wrote: > > > > Adaptive ioremap_wc() method is now available (see "mips: mm: > > Create UCA-based ioremap_wc() method" commit).

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-10 Thread Serge Semin
On Tue, Jul 10, 2018 at 10:59:40AM -0700, Paul Burton wrote: Hello Paul, > Hi Sergey, > > On Tue, Jul 10, 2018 at 10:48:15AM +0300, Serge Semin wrote: > > On Tue, Jul 10, 2018 at 09:15:17AM +0200, Mathieu Malaterre > > wrote: > > > On Mon, Jul 9, 2018 at 3:5

Re: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method

2018-07-11 Thread Serge Semin
Paul, On Tue, Jul 10, 2018 at 02:04:15PM -0700, Paul Burton wrote: > Hi Serge, > > On Tue, Jul 10, 2018 at 10:13:54PM +0300, Serge Semin wrote: > > On Tue, Jul 10, 2018 at 10:59:40AM -0700, Paul Burton > > wrote: > > > However FYI for next time - you shoul

Re: [PATCH 6/9] NTB: ntb_hw_idt: fix typo 'can by' to 'can be'

2018-05-11 Thread Serge Semin
ce with global permissions. These > * permissions configs are not supported by NTB API, so it must be done by > * either BIOS or EEPROM settings. In the same way the state of the global Acked-by: Serge Semin > -- > 2.11.0 >

Re: [PATCH 0/8] Fix breakage caused by the NTB multi-port patchset

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:10PM -0600, Logan Gunthorpe wrote: Good day, Logan. Thanks for the patchset you submitted. My hopefully useful comments are under the corresponding patches. Regards, -Sergey > Hey, > > Here are all the fixes required to get ntb_test on switchtec working > again a

Re: [PATCH 1/8] NTB: ntb_tool: reading the link file should not end in a NULL byte

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:11PM -0600, Logan Gunthorpe wrote: > When running ntb_test this warning is issued: > > ./ntb_test.sh: line 200: warning: command substitution: ignored null > byte in input > This is weird. Neither me nor the folks' who tested the script saw this warning. I tried i

Re: [PATCH 3/8] NTB: Fix the default port and peer numbers for legacy drivers

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:13PM -0600, Logan Gunthorpe wrote: > When the commit adding ntb_default_port_number() and > ntb_default_peer_port_number() entered the kernel there was no > users of it so it was impossible to tell what the API needed. > > When a user finally landed a year later (n

Re: [PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:14PM -0600, Logan Gunthorpe wrote: > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which canno

Re: [PATCH 5/8] NTB: perf: Don't require one more memory window than number of peers

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:15PM -0600, Logan Gunthorpe wrote: > ntb_perf should not require more than one memory window per peer. This > was probably an off-by-one error. > Good catch. Thanks. IDT got a lot of MWs especially if LookUpTables are enabled. That's why I didn't find the effect of

Re: [PATCH 6/8] NTB: perf: Fix support for hardware that doesn't have port numbers

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:17PM -0600, Logan Gunthorpe wrote: > Legacy drivers do not have port numbers (but is reliably only two ports) > and was broken by the recent commit that added mult-port support to > ntb_perf. This is especially important to support the cross link > topology which is

Re: [PATCH 7/8] NTB: perf: Fix race condition when run with ntb_test

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:18PM -0600, Logan Gunthorpe wrote: > When running ntb_test, the script tries to run the ntb_perf test > immediately after probing the modules. Since adding multi-port support, > this fails seeing the new initialization procedure in ntb_perf > can not complete instant

Re: [PATCH 8/8] NTB: ntb_test: Fix bug when counting remote files

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:19PM -0600, Logan Gunthorpe wrote: > When remote files are counted in get_files_count, without using SSH, > the code returns 0 because there is a colon prepended to $LOC. $VPATH > should have been used instead of $LOC. > Good catch. Thanks for the patch. I discover

[PATCH v2 0/4] ntb: idt: Add hwmon temperature sensor interface

2018-07-17 Thread Serge Semin
reset the history, temperature offset. The rest of the nodes can't be safely implemented for the chip due to the described issues. Changelog v2: - Add "select HWMON" to the NTB_IDT kconfig Signed-off-by: Serge Semin Serge Semin (4): ntb: idt: Alter temperature read method ntb: i

[PATCH v2 2/4] ntb: idt: Add basic hwmon sysfs interface

2018-07-17 Thread Serge Semin
the hwmon-sysfs interface at the moment, except the offset node. Signed-off-by: Serge Semin --- Changelog v2: - Add "select HWMON" to the NTB_IDT kconfig drivers/ntb/hw/idt/Kconfig | 1 + drivers/ntb/hw/idt/ntb_hw_idt.c | 182 drivers/ntb/

[PATCH v2 4/4] ntb: idt: Alter the driver info comments

2018-07-17 Thread Serge Semin
Since IDT PCIe-switch temperature sensor is now always available irregardless of the EEPROM/BIOS settings, Kconfig and in-code description should be properly altered. In addition lets update the driver copyright lines. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/Kconfig | 4

[PATCH v2 1/4] ntb: idt: Alter temperature read method

2018-07-17 Thread Serge Semin
translated by these methods too. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 113 ++-- drivers/ntb/hw/idt/ntb_hw_idt.h | 56 2 files changed, 152 insertions(+), 17 deletions(-) diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b

[PATCH v2 3/4] ntb: idt: Discard temperature sensor IRQ handler

2018-07-17 Thread Serge Semin
oint dangerous to be used in the driver. In this case it is safer to completely discard it and disable the temperature alarm interrupts. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_hw_idt.c | 41 + drivers/ntb/hw/idt/ntb_hw_idt.h | 5 ++---

Re: [PATCH] dt-bindings: correct white-spaces in examples

2023-11-24 Thread Serge Semin
m: clock-oscillator-25m { >compatible = "fixed-clock"; >#clock-cells = <0>; > - clock-frequency = <2500>; > + clock-frequency = <2500>; >clock-output-names = "clk25m"; > }; > ... For Baikal-T1 CCU PLL DT-schema Acked-by: Serge Semin -Serge(y)

[PATCH 00/12] mips: Post-bootmem-memblock transition fixes

2019-04-23 Thread Serge Semin
1/17/1201 [3] https://lkml.org/lkml/2018/9/10/302 NOTE I added a few "Reviewed-by: Matt Redfearn " since some patches of this series have been picked up from my earlier patchsets, which Matt's already reviewed. I didn't add the tag for patches, which were either new or partially p

[PATCH 01/12] mips: Make sure kernel .bss exists in boot mem pool

2019-04-23 Thread Serge Semin
boot mem pool as well in any case. Lets fix this just be adding the space between __bss_start and __bss_stop. Reviewed-by: Matt Redfearn Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c

[PATCH 02/12] mips: Discard rudiments from bootmem_init

2019-04-23 Thread Serge Semin
. We can simplify the conditions cascade a bit without much of the logic redefinition, so to reduce the code length. In particular the end boundary value can be verified after the possible reduction to be below max_low_pfn. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 25

[PATCH 07/12] mips: Add reserve-nomap memory type support

2019-04-23 Thread Serge Semin
but completely remove the range from system just by removing it from memblock. The same way it's done in default early_init_dt_reserve_memory_arch() method. Signed-off-by: Serge Semin --- arch/mips/include/asm/bootinfo.h | 1 + arch/mips/kernel/prom.c | 4 +++- arch/mips/kernel

[PATCH 05/12] mips: Discard post-CMA-init foreach loop

2019-04-23 Thread Serge Semin
memblock, which is used by CMA for reservation, so we don't need any mapping anymore. Reviewed-by: Matt Redfearn Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index f71a7d3

[PATCH 09/12] mips: Perform early low memory test

2019-04-23 Thread Serge Semin
now reserved and a minimum of allocations have been done. Reviewed-by: Matt Redfearn Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index ca493fdf69b0..fbd216b4e929 100644 --- a/arch

[PATCH 11/12] mips: Make sure dt memory regions are valid

2019-04-23 Thread Serge Semin
if some of them isn't just manually truncate it with a warning printed out. Signed-off-by: Serge Semin --- arch/mips/kernel/prom.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 437a174e3ef9..28bf

[PATCH 08/12] mips: Dump memblock regions for debugging

2019-04-23 Thread Serge Semin
end of arch_mem_init() function, when all memblock memory and reserved regions are defined, but before any serious allocation is performed. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel

[PATCH 06/12] mips: Use memblock to reserve the __nosave memory range

2019-04-23 Thread Serge Semin
() function). So calling it from arch_mem_init() method is prone to errors, and at this stage we need to reserve the memory in the memblock allocator. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/setup.c

[PATCH 12/12] mips: Enable OF_RESERVED_MEM config

2019-04-23 Thread Serge Semin
memory has been moved to memblock. The function call performed before bootmem_init() fails due to the lack of any memblock memory regions to allocate from at that stage. Signed-off-by: Serge Semin --- arch/mips/Kconfig| 1 + arch/mips/kernel/setup.c | 3 +++ 2 files changed, 4 insertion

[PATCH 10/12] mips: Print the kernel virtual mem layout on debugging

2019-04-23 Thread Serge Semin
: Serge Semin --- arch/mips/mm/init.c | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index bbb196ad5f26..c338bbd03b2a 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -31,6 +31,7 @@ #include

[PATCH 03/12] mips: Combine memblock init and memory reservation loops

2019-04-23 Thread Serge Semin
en if it is going to be reserved for the whole system uptime. Finally after all these notes are fixed the loop of memory reservation can be freely merged into the memory installation loop as it's done in this patch. Signed-off-by: Serge Semin --- arch

[PATCH 04/12] mips: Reserve memory for the kernel image resources

2019-04-23 Thread Serge Semin
e for allocations. After doing this we can now discard the code freeing a space between kernel _text and VMLINUX_LOAD_ADDRESS symbols since it's going to be free anyway (unless marked as reserved by platforms). Signed-off-by: Serge Semin --- arch/mips/kernel/se

Re: [PATCH 12/12] mips: Enable OF_RESERVED_MEM config

2019-04-24 Thread Serge Semin
On Tue, Apr 23, 2019 at 11:17:50PM -0700, Christoph Hellwig wrote: Hello Christoph > On Wed, Apr 24, 2019 at 01:47:48AM +0300, Serge Semin wrote: > > Since memblock-patchset was introduced the reserved-memory nodes are > > supported being declared in dt-files. So these nodes are

[PATCH 0/5] i2c-mux-gpio: Split plat- and dt-specific code up

2019-04-24 Thread Serge Semin
itial channel info retrieval, platform_data-specific code isolation and finally full dt-based GPIOs request method introduction. The last patch does what we inteded this patchset for in the first place - adds the full dt-GPIO specifiers support. Serge Semin (5): i2c-mux-gpio: Unpin a platform-based d

[PATCH 1/5] i2c-mux-gpio: Unpin a platform-based device initialization

2019-04-24 Thread Serge Semin
ation. The rest of the code is common for both platform and OF-based setups. Signed-off-by: Serge Semin --- drivers/i2c/muxes/i2c-mux-gpio.c | 67 ++-- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2

[PATCH 3/5] i2c-mux-gpio: Save initial channel number to the idle data field

2019-04-24 Thread Serge Semin
quest path being split up into of- and plat- based methods. The idle variable here is used as a container of the initial state for both of the paths in case of idle-channel isn't specified. Signed-off-by: Serge Semin --- drivers/i2c/muxes/i2c-mux-gpio.c | 15 --- 1 file changed, 8 i

[PATCH 4/5] i2c-mux-gpio: Unpin the platform-specific GPIOs request code

2019-04-24 Thread Serge Semin
code we'll simplify the future work. Signed-off-by: Serge Semin --- drivers/i2c/muxes/i2c-mux-gpio.c | 105 +++ 1 file changed, 64 insertions(+), 41 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 535c83c

[PATCH 5/5] i2c-mux-gpio: Create of-based GPIOs request method

2019-04-24 Thread Serge Semin
e platform code i2c-gpio-mux devices are also supported. So the fallback to dtb is performed only if array with GPIOs isn't detected. Signed-off-by: Serge Semin --- drivers/i2c/muxes/i2c-mux-gpio.c | 65 1 file changed, 50 insertions(+), 15 deletions(-) diff

[PATCH 2/5] i2c-mux-gpio: Return an error if no config data found

2019-04-24 Thread Serge Semin
It's pointless and might be even errors prone to proceed with further initialization if neither of- no platform-based settings were discovered. Just return an error in this case. Signed-off-by: Serge Semin --- drivers/i2c/muxes/i2c-mux-gpio.c | 12 +++- 1 file changed, 7 inser

Re: [PATCH 08/12] mips: Dump memblock regions for debugging

2019-04-24 Thread Serge Semin
On Wed, Apr 24, 2019 at 04:45:47PM +0300, Mike Rapoport wrote: > On Wed, Apr 24, 2019 at 01:47:44AM +0300, Serge Semin wrote: > > It is useful to have the whole memblock memory space printed to console > > when basic memlock initializations are done. It can be performed by > >

Re: [PATCH 10/12] mips: Print the kernel virtual mem layout on debugging

2019-04-24 Thread Serge Semin
On Wed, Apr 24, 2019 at 04:47:11PM +0300, Mike Rapoport wrote: > On Wed, Apr 24, 2019 at 01:47:46AM +0300, Serge Semin wrote: > > It is useful at least for debugging to have the kernel virtual > > memory layout printed at boot time so to have the full information > > about th

Re: [PATCH 0/5] i2c-mux-gpio: Split plat- and dt-specific code up

2019-04-25 Thread Serge Semin
On Wed, Apr 24, 2019 at 09:25:24PM +, Peter Rosin wrote: Hello Peter, > On 2019-04-24 14:34, Serge Semin wrote: > > The main idea of this patchset was to add the dt-based GPIOs support > > in i2c-mux-gpio driver. In particular we needed to have the full GPIOs > > sp

Re: [PATCH 2/5] i2c-mux-gpio: Return an error if no config data found

2019-04-25 Thread Serge Semin
On Wed, Apr 24, 2019 at 09:25:50PM +, Peter Rosin wrote: > On 2019-04-24 14:34, Serge Semin wrote: > > It's pointless and might be even errors prone to proceed with further > > initialization if neither of- no platform-based settings were discovered. > > Just re

Re: [PATCH 3/5] i2c-mux-gpio: Save initial channel number to the idle data field

2019-04-25 Thread Serge Semin
On Wed, Apr 24, 2019 at 09:26:22PM +, Peter Rosin wrote: > On 2019-04-24 14:34, Serge Semin wrote: > > In case if the idle state has been specified in the data structure, > > the idle variable is left untouched as before, so to keep a default > > channel number enabled

Re: [PATCH 0/5] i2c-mux-gpio: Split plat- and dt-specific code up

2019-04-25 Thread Serge Semin
On Thu, Apr 25, 2019 at 07:21:02PM +, Peter Rosin wrote: > On 2019-04-25 16:37, Serge Semin wrote: > > On Wed, Apr 24, 2019 at 09:25:24PM +, Peter Rosin wrote: > > > > Hello Peter, > > > >> On 2019-04-24 14:34, Serge Semin wrote: > >>>

Re: [PATCH 2/5] i2c-mux-gpio: Return an error if no config data found

2019-04-25 Thread Serge Semin
On Thu, Apr 25, 2019 at 07:28:52PM +, Peter Rosin wrote: > On 2019-04-25 17:47, Serge Semin wrote: > > On Wed, Apr 24, 2019 at 09:25:50PM +, Peter Rosin wrote: > >> On 2019-04-24 14:34, Serge Semin wrote: > >>> It's pointless and might be even e

[PATCH v2 0/3] i2c-mux-gpio: Split plat- and dt-specific code up

2019-04-25 Thread Serge Semin
no onfig data found" removal.) - Use a dedicated initial_state variable to keep the initial channels selector state. (Causes the patch "i2c-mux-gpio: Save initial channel number to the idle" removal.) - Mention open-drain, open-source flags in the patchset descriptions. Serge

[PATCH v2 2/3] i2c-mux-gpio: Unpin the platform-specific GPIOs request code

2019-04-25 Thread Serge Semin
code we'll simplify the future work. Signed-off-by: Serge Semin --- Changelog v2 - Create a dedicated initial_state field in the "gpiomux" structure to keep an initial channel selector state. --- drivers/i2c/muxes/i2c-mux-gpio.c | 113 +++ 1 file changed

[PATCH v2 3/3] i2c-mux-gpio: Create of-based GPIOs request method

2019-04-25 Thread Serge Semin
quest the GPIOs. Signed-off-by: Serge Semin --- Changelog v2 - Remove fallback pattern when selecting the dt- or plat-based GPIOs request methods. - Use a dedicated initial_state field in the "gpiomux" structure to select a proper channel initially. --- drivers/i2c/

[PATCH v2 1/3] i2c-mux-gpio: Unpin a platform-based device initialization

2019-04-25 Thread Serge Semin
ation. The rest of the code is common for both platform and OF-based setups. It's also pointless and might be even errors prone to proceed with further initialization if OF kernel config is disabled and plat-based initialization isn't defined. Just return an error in this case. Signed-off-

Re: [PATCH 04/12] mips: Reserve memory for the kernel image resources

2019-04-25 Thread Serge Semin
On Wed, Apr 24, 2019 at 10:43:48PM +, Paul Burton wrote: > Hi Serge, > > On Wed, Apr 24, 2019 at 01:47:40AM +0300, Serge Semin wrote: > > The reserved_end variable had been used by the bootmem_init() code > > to find a lowest limit of memory available for memmap blob.

  1   2   3   4   5   6   7   8   9   10   >