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
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
. 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
#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
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
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
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)
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
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_
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
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
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
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
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 ++---
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
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,
> >>
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
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.
> &
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
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
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
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,
> >>
&
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
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
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
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
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:
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
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
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
> > >
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
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
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
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
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
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
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
: 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
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
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 ++--
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
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
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
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
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
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
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
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
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
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
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).
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
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
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
>
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
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
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
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
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
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
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
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
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
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/
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
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
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 ++---
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)
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
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
. 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
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
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
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
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
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
()
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
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
: 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
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
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
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
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
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
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
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
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
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
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
> >
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
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
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
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
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:
> >>>
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
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
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
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/
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-
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 - 100 of 1780 matches
Mail list logo