rithm using some new
struct ntb_device_id and id_tables.
Thanks,
=
Serge V. Semin
Leading Programmer
Embedded SW development group
T-platforms
=
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
fancer (3):
ntb: Add asynchronous de
. 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 <fancer.lan...@gmail.
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
devices
ed-off-by: Serge Semin <fancer.lan...@gmail.com>
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 +-
dr
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
devices
. 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 <fancer.lan...@gmail.
regmap subsystem.(
Regards,
-Sergey
On Thu, Jul 28, 2016 at 10:42:30AM -0400, Allen Hubbe <allen.hu...@emc.com>
wrote:
> From: Serge Semin
> > Please, find the general patchset description in the cover letter of the
> > first
> > patchset (see the very first message i
be slightly changed. You can find
answers to the commentaries down below.
On Fri, Aug 05, 2016 at 11:31:58AM -0400, Allen Hubbe <allen.hu...@emc.com>
wrote:
> From: Serge Semin
> > Currently supported AMD and Intel Non-transparent PCIe-bridges are
> > synchronous
> >
by
BIOS or EEPROM.
(See IDT documentations for details of how the pre-initialization can be done)
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/Kconfig |1 +
drivers/ntb/hw/Makefile |1 +
drivers/ntb/hw/idt/Kconfig | 31 +
drivers/ntb/
Indeed, the data structure is allocated by device resource manager,
so the driver doesn't need to free anything on remove() callback.
Reported-by: Julia Lawall <julia.law...@lip6.fr>
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/misc/eeprom/idt_89hpesx.c | 3
t = -ENOMEM;
> + goto free_buf;
> + }
> /* Copy the register address to the substring buffer */
> strncpy(csraddr_str, buf, csraddr_len);
> csraddr_str[csraddr_len] = '\0';
> --
> 2.10.2
>
Indeed. Thanks for the patch.
Acked-by: Serge Semin <fancer.lan...@gmail.com>
On Thu, Jan 26, 2017 at 12:01:46PM +0300, Dan Carpenter
wrote:
> "pdev->ee_file" was allocated with devm_kmalloc() so freeing it with
> kfree() is a double free. In fact, we don't need to free it at all.
>
> Fixes: cfad6425382e ("eeprom: Add IDT 89HPESx EEPROM/CSR
move_sysfs_files(struct
> idt_89hpesx_dev *pdev)
>
> /* Remove EEPROM sysfs file */
> sysfs_remove_bin_file(>kobj, pdev->ee_file);
> -
> - /* Free memory allocated for bin_attribute structure */
> - kfree(pdev->ee_file);
> }
>
> /*
>
True point! Thanks for the patch.
Acked-by: Serge Semin <fancer.lan...@gmail.com>
On Tue, Feb 21, 2017 at 05:42:37PM -0500, Allen Hubbe <allen.hu...@dell.com>
wrote:
> From: Serge Semin
> > +/*
> > + * idt_nt_write() - PCI configuration space registers write method
> > + * @ndev: IDT NTB hardware driver descriptor
> > + * @reg: Regist
by BIOS or EEPROM.
(See IDT documentations for details of how the pre-initialization can be
done)
Changelog v2:
- Fix minor checkpatch.pl issues
- Get rid of obfuscating macros
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/Kconfig |1 +
drivers/ntb/hw/Ma
()/idt_reg_clear_bits() methods race condition
- Fix invalid argument of write method called from
idt_reg_set_bits()/idt_reg_clear_bits() functions
- Add appropriate naming of function idt_get_mw_size()
- Fix some documentation notes
- Replace symbolic permission S_IRUSR with octal 0400
Signed-off-by: Serge Semin
On Fri, Aug 19, 2016 at 12:56:04AM +0300, Serge Semin <fancer.lan...@gmail.com>
wrote:
> Hello Allen,
> Sorry for the delay with response and thanks for thoughtful review.
>
> On Mon, Aug 08, 2016 at 05:48:42PM -0400, Allen Hubbe <allen.hu...@emc.com>
> wrote:
> &
Hello Allen,
Sorry for the delay with response and thanks for thoughtful review.
On Mon, Aug 08, 2016 at 05:48:42PM -0400, Allen Hubbe <allen.hu...@emc.com>
wrote:
> From: Serge Semin
> > Hello Allen.
> >
> > Thanks for your careful review. Going through this maili
on read from registers with invalid address
- Don't check bits validity on registers bits clearing
- Keep up driver loading (just print a warning) if there is no any peer
NTBs found
- Fix unnecessary branching logic
- Fix some documentation notes
Signed-off-by: Serge Semin <fancer.lan...@gmail.
ed SW development group
T-platforms
=
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/pci/pcie/aspm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 0ec649d..a9295f29
On Thu, Oct 06, 2016 at 08:13:58AM -0500, Bjorn Helgaas <helg...@kernel.org>
wrote:
> Hi Serge,
>
> On Thu, Oct 06, 2016 at 12:34:15PM +0300, Serge Semin wrote:
> > Hello linux folks,
> >
> > Sometime ago I discovered a kernel panic popping up when
gkh/char-misc.git
Thanks,
=
Serge V. Semin
Leading Programmer
Embedded SW development group
T-platforms
=====
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
.../devicetree/bindings/misc/idt_89hpesx.txt | 41 +
drivers/misc/eeprom/Kconf
On Tue, Nov 08, 2016 at 05:29:57PM -0600, Bjorn Helgaas <helg...@kernel.org>
wrote:
Hello Bjorn,
Here are the answers on your questions inlined in the text.
> Hi Serge,
>
> On Thu, Oct 06, 2016 at 12:34:15PM +0300, Serge Semin wrote:
> > Hello linux folks,
> &
See cover-letter for changelog
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/misc/eeprom/Kconfig | 10 +
drivers/misc/eeprom/Makefile |1 +
drivers/misc/eeprom/idt_89hpesx.c | 1577 +
3 files changed, 1588 inse
bin_attribute structure for each device
- Perform a few read retries with delays if EEPROM is busy
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
Serge Semin (2):
MISC eeprom: Add IDT 89HPESx EEPROM/CSR driver
MISC eeprom: Add IDT 89HPESx driver bindings file
.../devicetree/binding
See cover-letter for changelog
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
.../devicetree/bindings/misc/idt_89hpesx.txt | 41 ++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/idt_89hpesx.txt
diff
On Sun, Oct 30, 2016 at 09:53:58AM -0400, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Mon, Oct 03, 2016 at 02:13:45AM +0300, Serge Semin wrote:
> > Hello linux folks,
> >
> > This driver primarily is developed to give an access to EEPROM of IDT
> > PCI
the SMBus-slave interface in the i2c-device susfs-directory.
Additionally IDT 89HPESx SMBus interface has an ability to read/write
values of device CSRs. This driver exposes debugfs-file to perform simple
IO-operations using that ability for just basic debug purpose.
Signed-off-by: Serge Semin
to create a specific bin_attribute structure for each device
- Perform a few read retries with delays if EEPROM is busy
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
Serge Semin (2):
eeprom: Add IDT 89HPESx EEPROM/CSR driver
eeprom: Add IDT 89HPESx driver dts-bindin
IDT 89HPESx PCIe-switches exposes SMBus interface to have an access to
the device CSRs and EEPROM. So to properly utilize the interface
functionality, developer should declare a valid dts-file node, which
would refer to the corresponding 89HPESx device.
Signed-off-by: Serge Semin <fancer.
On Tue, Nov 29, 2016 at 10:24:12PM +0100, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Wed, Nov 30, 2016 at 12:16:25AM +0300, Serge Semin wrote:
> > On Tue, Nov 29, 2016 at 08:37:50PM +0100, Greg KH
> > <gre...@linuxfoundation.org> wrote:
> > > On Tue, Nov
On Tue, Nov 29, 2016 at 08:34:36PM +0100, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Tue, Nov 29, 2016 at 01:38:21AM +0300, Serge Semin wrote:
> > See cover-letter for changelog
>
> There is no cover letter in an individual patch when it gets committed
> to the tr
register
sending it to the passed peer device connected over a pidx port
ntb_msg_event(); - notify driver context of a new message event
Of course there is hardware which doesn't support Message registers, so
this API is made optional.
Acked-by: Allen Hubbe <allen.hu...@dell.com>
Signed-off-by:
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 6d46179..dab0a1b 100644
--- a/include/linux/ntb.h
+++ b/include/linux
Since the new API slightly changes the way a typical NTB client driver
works, the documentation file needs to be appropriately updated.
Acked-by: Allen Hubbe <allen.hu...@dell.com>
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
Documentation/
-by: Allen Hubbe <allen.hu...@dell.com>
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +-
drivers/ntb/hw/intel/ntb_hw_intel.c | 2 +-
include/linux/ntb.h | 31 ---
3 files changed, 18 inser
ntb_peer_spad_write(pidx, sidx) - write data to Scratchpad register of the
peer with pidx-index
Since there is hardware which doesn't support Scratchpad registers, the
corresponding API methods are now made optional.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/
Acked-by: Allen Hubbe <allen.hu...@dell.com>
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 76c56d5..6d46179 100644
--- a/include/linux/ntb.h
+++ b/i
with port-related API changes
- Spell check the text
Serge Semin (9):
NTB: Make link-state API being declared first
NTB: Add indexed ports NTB API
NTB: Alter link-state API to support multi-port devices
NTB: Alter MW API to support multi-ports devices
NTB: Alter Scratchpads API to support multi
Since link operations are usually performed before memory window access
operations, it's logically better to declare link-related API before any
of MW/Doorbell/Scratchpad methods.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h
support two-ports devices
for the time being while multi-ports hardware drivers aren't added.
By default port-related API is declared for two-ports hardware.
So corresponding hardware drivers won't need to implement it.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb
translation configured on the peer ntb port:
ntb_peer_mw_set_trans(pidx, widx); - set translation address of a memory
window retrieved from a peer device
ntb_peer_mw_clear_trans(pidx, widx); - clear the translation address of an
outbound memory window
Signed-off-by: Serge Semin <fancer.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 6d46179..dab0a1b 100644
--- a/include/linux/ntb.h
+++ b/include/linux
On Mon, Dec 12, 2016 at 05:04:31PM -0600, Rob Herring <r...@kernel.org> wrote:
> On Mon, Dec 5, 2016 at 1:04 PM, Serge Semin <fancer.lan...@gmail.com> wrote:
> > On Mon, Dec 05, 2016 at 11:27:07AM -0600, Rob Herring <r...@kernel.org>
> > wrote:
> >> O
nts to change the CSR value as well, the format of the write
operation is:
$ echo ":" > \
/sys/kernel/debug/idt_csr/-/;
CSR address and value can be any of hexadecimal, decimal or octal format.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/
IDT 89HPESx PCIe-switches exposes SMBus interface to have an access to
the device CSRs and EEPROM. So to properly utilize the interface
functionality, developer should declare a valid dts-file node, which
would refer to the corresponding 89HPESx device.
Signed-off-by: Serge Semin <fancer.
to create a specific bin_attribute structure for each device
- Perform a few read retries with delays if EEPROM is busy
Changelog v4:
- Make 89HPESx device bindings to have one EEPROM subnode
- Alter 89HPESx device bindings text
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
Serge Se
translation configured on the peer ntb port:
ntb_peer_mw_set_trans(pidx, widx); - set translation address of a memory
window retrieved from a peer device
ntb_peer_mw_clear_trans(pidx, widx); - clear the translation address of an
outbound memory window
Signed-off-by: Serge Semin <fancer.
-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +-
drivers/ntb/hw/intel/ntb_hw_intel.c | 2 +-
include/linux/ntb.h | 31 ---
3 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/drivers/ntb/
done within ntb.h.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 188 ++--
drivers/ntb/hw/intel/ntb_hw_intel.c | 168
include/linux/ntb.h
support two-ports devices
for the time being while multi-ports hardware drivers aren't added.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 47
drivers/ntb/hw/amd/ntb_hw_amd.h | 9 +
drivers/ntb/hw/intel/ntb_hw_i
Since the new API slightly changes the way a typical NTB client driver
works, the documentation file needs to be appropriately updated.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
Documentation/ntb.txt | 99 ++-
1 file chang
Spad/Msg API checking valid function to make spad and msg interfaces
optional
- Alter comments in ntb.h
- Split: add NTB_SPEED_GEN4 and ntb.h comments into separate patches
- Put copyrights into some of the existing patches
- Get rid of TOPO updates
Signed-off-by: Serge Semin <fancer.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 90746df..fe0437c 100644
--- a/include/linux/ntb.h
+++ b/include/linux/ntb.h
@@ -108,6 +108,7 @@ static inlin
ntb_peer_spad_write(pidx, sidx) - write data to Scratchpad register of the
peer with pidx-index
Since there is hardware which doesn't support Scratchpad registers, the
corresponding API methods are now made optional.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/
register
sending it to the passed peer device connected over a pidx port
ntb_msg_event(); - notify driver context of a new message event
Of course there is hadrware which doesn't support Message registers, so
this API is made optional.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
d
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index fe0437c..c5a369c 100644
--- a/include/linux/ntb.h
+++ b/include/linux
Rob,
Could you please respond on these comments? I've got some free time, so I wanna
rewrite the code until I've not got busy again.
Regards,
-Sergey
On Mon, Dec 05, 2016 at 10:04:56PM +0300, Serge Semin <fancer.lan...@gmail.com>
wrote:
> On Mon, Dec 05, 2016 at 11:27:07AM -0600, Rob H
com>
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 68 +---
drivers/ntb/hw/intel/ntb_hw_intel.c | 90
drivers/ntb/ntb.c | 2 +
drivers/ntb/ntb_transport.c | 21 +++-
drivers/ntb/tes
ntb_peer_spad_write(pidx, sidx) - write data to Scratchpad register of the
peer with pidx-index
Since there is hardware which doesn't support Scratchpad registers, the
corresponding API methods are now made optional.
Acked-by: Allen Hubbe <allen.hu...@dell.com>
Signed-off-by: Serge
On Fri, Jan 13, 2017 at 08:22:35AM +0100, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Fri, Jan 13, 2017 at 01:54:17AM +0300, Serge Semin wrote:
> > On Wed, Jan 11, 2017 at 09:21:19AM +0100, Greg KH
> > <gre...@linuxfoundation.org> wrote:
> > > > +
rid of dev_dbg() print outs of initialization methods
- Simplify DebugFS initialization method
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
Serge Semin (2):
eeprom: Add IDT 89HPESx EEPROM/CSR driver
eeprom: Add IDT 89HPESx driver bindings file
.../devicetree/binding
nts to change the CSR value as well, the format of the write
operation is:
$ echo ":" > \
/sys/kernel/debug/idt_csr/-/;
CSR address and value can be any of hexadecimal, decimal or octal format.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/
IDT 89HPESx PCIe-switches exposes SMBus interface to have an access to
the device CSRs and EEPROM. So to properly utilize the interface
functionality, developer should declare a valid dts-file node, which
would refer to the corresponding 89HPESx device.
Signed-off-by: Serge Semin <fancer.
On Wed, Jan 11, 2017 at 09:21:19AM +0100, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Tue, Dec 13, 2016 at 05:22:50PM +0300, Serge Semin wrote:
> > +struct idt_89hpesx_dev {
> > + u32 eesize;
> > + bool eero;
> > + u8 eeaddr;
> > +
> > +
On Tue, Nov 29, 2016 at 08:37:50PM +0100, Greg KH <gre...@linuxfoundation.org>
wrote:
> On Tue, Nov 29, 2016 at 01:38:20AM +0300, Serge Semin wrote:
> > +struct idt_89hpesx_dev {
> > + u32 eesize;
> > + bool eero;
> > + u8 eeaddr;
> > +
> > +
done within ntb.h.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 137 ++--
1 file changed, 69 insertions(+), 68 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 6f47562..5d1f260
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/intel/ntb_hw_intel.c | 79 -
1 file changed, 61 insertions(+), 18 deletions(-)
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
b/drivers/ntb/hw/intel/ntb_hw_intel.c
index 7
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/ntb.c | 2 ++
include/linux/ntb.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/ntb/ntb.c b/drivers/ntb/ntb.c
index 4b2cc60..06574f8 100644
--- a/drivers/ntb/ntb.c
+++ b/drivers/ntb/ntb.c
@@ -5,
See patch 01 for reasoning of this movement.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/intel/ntb_hw_intel.c | 162 ++--
1 file changed, 81 insertions(+), 81 deletions(-)
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
b/d
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/intel/ntb_hw_intel.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
b/drivers/ntb/hw/intel/ntb_hw_intel.c
index c41da32..e308fbe 100644
--- a/d
Some minor changes of link state NTB API. Particularly link_is_up()
method from now shall return a bitfield of link states for all accessible
port indexes.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 31 ---
1 file chang
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/intel/ntb_hw_intel.c | 195 +---
drivers/ntb/hw/intel/ntb_hw_intel.h | 10 ++
2 files changed, 124 insertions(+), 81 deletions(-)
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
b/d
Fix some minor issues found in ntb.h file.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 18 --
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index a59a155..8b19327 100644
--- a/i
IDT PCIe-switches have message registers to communicate with peer devices.
This patch adds new NTB API callback methods, which can be used to utilize
these registers functionality.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/ntb.c | 13 +++
include/linux/ntb.h
and have some set of Scratchpads.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 46 ++
1 file changed, 26 insertions(+), 20 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 59de1f6..f
Add new port-index NTB API. Additionally lets get rid of Primary and
Secondary topologies, since port-number can be effectively used instead.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 101
1 file c
drivers.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
include/linux/ntb.h | 290
1 file changed, 245 insertions(+), 45 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 0941a43..4a150b5 100644
--- a/i
/ntb
of "ntb"-branch with last commit:
9c763584b7c8911106bb77af7e648bef09af9d80 Linux 4.9-rc6
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
Serge Semin (22):
NTB: Move link state API being first in sources
NTB: Add peer indexed ports NTB API
NTB: Alter NTB API to supp
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 2 ++
drivers/ntb/hw/amd/ntb_hw_amd.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 3479c2b..2e1aefd 100644
--- a/d
See patch 01 for reasoning of this movement.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 188
1 file changed, 94 insertions(+), 94 deletions(-)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/
The same as for PingPong driver, this driver can't be used with hardware
whithout Scratchpads. Additionally it supports two-ports and inbound MW
based devices only at the moment.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/test/ntb_tool.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 9b3f78c..3479c2b 100644
--- a/drivers/ntb/
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 72 ++---
drivers/ntb/hw/amd/ntb_hw_amd.h | 10 ++
2 files changed, 63 insertions(+), 19 deletions(-)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/intel/ntb_hw_intel.c | 2 ++
drivers/ntb/hw/intel/ntb_hw_intel.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
b/drivers/ntb/hw/intel/ntb_hw_intel.c
index e308fbe..7785e9d
The same as for PingPong driver, this driver can't be used with hardware
whithout Scratchpads. Additionally it supports two-ports and inbound MW
based devices only at the moment.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/test/ntb_perf.
The same as for PingPong driver, this driver can't be used with hardware
whithout Scratchpads. Additionally it supports two-ports and inbound MW
based devices only at the moment.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/ntb_transport.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 66 ++---
1 file changed, 49 insertions(+), 17 deletions(-)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index b7c9f67..9b3f78c
message registers as well.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
drivers/ntb/test/ntb_pingpong.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/ntb/test/ntb_pingpong.c b/drivers/ntb/test/ntb_pingpong.c
index 4358611..90d3281
On Mon, Dec 05, 2016 at 11:27:07AM -0600, Rob Herring <r...@kernel.org> wrote:
> On Mon, Dec 5, 2016 at 9:25 AM, Serge Semin <fancer.lan...@gmail.com> wrote:
> > On Mon, Dec 05, 2016 at 08:46:21AM -0600, Rob Herring <r...@kernel.org>
> > wrote:
> >> On Tu
On Mon, Dec 05, 2016 at 08:46:21AM -0600, Rob Herring <r...@kernel.org> wrote:
> On Tue, Nov 29, 2016 at 01:38:21AM +0300, Serge Semin wrote:
> > See cover-letter for changelog
> >
> > Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
> >
&g
Since memblock is used, initrd memory region can be easily
verified and reserved if looks ok. Verification method will be
useful for other reservation methods.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 157 -
1 file c
It's useful to have some printed map of the kernel virtual memory,
at least for debugging purpose.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/mm/init.c | 47 +++
1 file changed, 47 insertions(+)
diff --git a/arch/mips/mm/init.c b/arc
Memblock API can be successfully used to verify whether crashkernel
memory region belongs to low memory, then it can be reserved within
memblock allocator.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 105 ++---
1 file chang
of creating our own doing actually
the same thing.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 91 +-
1 file changed, 52 insertions(+), 39 deletions(-)
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index c
Main memory initialization method looks messy with cmd line parser
built-in. So it's better for readability to put it into a separated
method.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 87 --
1 file changed, 48 inse
The whole kernel text/data/bss must be reserved to prevent sudden
kernel crashes, for instance, due to unexpected non-zero default static
variables initializations.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 117 +++--
Right after all the necessary reservations are done, free memory
regions can be tested if it is activated with "memtest" parameter.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/mm/init.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/
Memblock allocator can be successfully used from now for early
memory management.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 2ef1e2d..527f2fe
Both new memblock and boot_mem_map subsystems need to be fully
cleared before a new memory region is added. So the early parser is
correspondingly modified.
Signed-off-by: Serge Semin <fancer.lan...@gmail.com>
---
arch/mips/kernel/setup.c | 67 +-
1 file chang
1 - 100 of 2111 matches
Mail list logo