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

2016-07-26 Thread Serge Semin
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

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

2016-07-26 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 <fancer.lan...@gmail.

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

2016-07-26 Thread Serge Semin
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

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

2016-07-28 Thread Serge Semin
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

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

2016-07-28 Thread Serge Semin
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

[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 <fancer.lan...@gmail.

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

2016-07-28 Thread Serge Semin
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

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

2016-08-07 Thread Serge Semin
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 > >

[PATCH] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-01 Thread Serge Semin
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/

[PATCH] eeprom: idt_89hpesx: Discard memory freeing allocated by devm_kmalloc

2017-01-26 Thread Serge Semin
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

Re: [PATCH] eeprom: fix memory leak on buf when failed allocation of csraddr_str

2017-01-26 Thread Serge Semin
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>

Re: [patch] eeprom/idt_89hpesx: freeing devm_ pointer with kfree()

2017-01-26 Thread Serge Semin
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

Re: [PATCH -next] eeprom: idt_89hpesx: Drop kfree for memory allocated with devm_kzalloc

2017-01-26 Thread Serge Semin
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>

Re: [PATCH v2] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-22 Thread Serge Semin
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

[PATCH v2] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-20 Thread Serge Semin
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

[PATCH v3] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-24 Thread Serge Semin
()/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

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

2016-08-19 Thread 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: > &

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

2016-08-18 Thread Serge Semin
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

[PATCH v4] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-27 Thread Serge Semin
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.

[RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-10-06 Thread Serge Semin
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

Re: [RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-10-06 Thread Serge Semin
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

[PATCH] Add IDT 89HPESx EEPROM/CSR driver

2016-10-02 Thread Serge Semin
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

Re: [RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-11-25 Thread Serge Semin
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, > &

[PATCH v2 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-28 Thread Serge Semin
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

[PATCH v2 0/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-28 Thread Serge Semin
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

[PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-11-28 Thread Serge Semin
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

Re: [PATCH] Add IDT 89HPESx EEPROM/CSR driver

2016-11-24 Thread Serge Semin
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

[PATCH v3 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread Serge Semin
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

[PATCH v3 0/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread 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

[PATCH v3 2/2] eeprom: Add IDT 89HPESx driver dts-binding file

2016-11-29 Thread Serge Semin
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.

Re: [PATCH v2 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread Serge Semin
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

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-11-29 Thread Serge Semin
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

[PATCH v3 6/9] NTB: Add Messaging NTB API

2016-12-13 Thread Serge Semin
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:

[PATCH v3 9/9] NTB: Add ntb.h comments

2016-12-13 Thread Serge Semin
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

[PATCH v3 7/9] NTB: Add new Memory Windows API documentation

2016-12-13 Thread Serge Semin
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/

[PATCH v3 3/9] NTB: Alter link-state API to support multi-port devices

2016-12-13 Thread Serge Semin
-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

[PATCH v3 5/9] NTB: Alter Scratchpads API to support multi-ports devices

2016-12-13 Thread Serge Semin
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/

[PATCH v3 8/9] NTB: Add PCIe Gen4 link speed

2016-12-13 Thread Serge Semin
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

[PATCH v3 0/9] NTB: Alter kernel API to support multi-port devices

2016-12-13 Thread Serge Semin
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

[PATCH v3 1/9] NTB: Make link-state API being declared first

2016-12-13 Thread Serge Semin
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

[PATCH v3 2/9] NTB: Add indexed ports NTB API

2016-12-13 Thread Serge Semin
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

[PATCH v3 4/9] NTB: Alter MW API to support multi-ports devices

2016-12-13 Thread Serge Semin
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.

[PATCH v3 9/9] NTB: Add ntb.h comments

2016-12-13 Thread Serge Semin
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

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-13 Thread Serge Semin
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

[PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-12-13 Thread Serge Semin
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/

[PATCH v4 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-13 Thread Serge Semin
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.

[PATCH v4 0/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-12-13 Thread Serge Semin
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

[PATCH v2 4/9] NTB: Alter MW API to support multi-ports devices

2016-12-12 Thread Serge Semin
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.

[PATCH v2 3/9] NTB: Alter link-state API to support multi-port devices

2016-12-12 Thread Serge Semin
-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/

[PATCH v2 1/9] NTB: Make link-state API being declared first

2016-12-12 Thread Serge Semin
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

[PATCH v2 2/9] NTB: Add indexed ports NTB API

2016-12-12 Thread Serge Semin
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

[PATCH v2 7/9] NTB: Add new Memory Windows API documentation

2016-12-12 Thread Serge Semin
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

[PATCH v2 0/9] NTB: Alter kernel API to support multi-port devices

2016-12-12 Thread Serge Semin
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.

[PATCH v2 8/9] NTB: Add PCIe Gen4 link speed

2016-12-12 Thread Serge Semin
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

[PATCH v2 5/9] NTB: Alter Scratchpads API to support multi-ports devices

2016-12-12 Thread Serge Semin
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/

[PATCH v2 6/9] NTB: Add Messaging NTB API

2016-12-12 Thread Serge Semin
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

[PATCH v2 9/9] NTB: Add ntb.h comments

2016-12-12 Thread Serge Semin
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

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-08 Thread Serge Semin
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

[PATCH v3 4/9] NTB: Alter MW API to support multi-ports devices

2017-01-10 Thread Serge Semin
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

[PATCH v3 5/9] NTB: Alter Scratchpads API to support multi-ports devices

2017-01-10 Thread Serge Semin
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

Re: [PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-13 Thread Serge Semin
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: > > > > +

[PATCH v5 0/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-13 Thread Serge Semin
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

[PATCH v5 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-13 Thread Serge Semin
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/

[PATCH v5 2/2] eeprom: Add IDT 89HPESx driver bindings file

2017-01-13 Thread Serge Semin
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.

Re: [PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-12 Thread Serge Semin
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; > > + > > +

Re: [PATCH v2 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread Serge Semin
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; > > + > > +

[PATCH 01/22] NTB: Move link state API being first in sources

2016-11-29 Thread Serge Semin
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

[PATCH 11/22] NTB Intel: Alter MW interface to fit new NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 08/22] NTB: Add T-Platforms copyrights to NTB API

2016-11-29 Thread Serge Semin
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,

[PATCH 09/22] NTB Intel: Move link-related methods being first in the driver

2016-11-29 Thread Serge Semin
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

[PATCH 12/22] NTB Intel: Alter Scratchpads interface to fit new NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 06/22] NTB: Slightly alter link state NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 10/22] NTB Intel: Add port-related NTB API callback methods

2016-11-29 Thread Serge Semin
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

[PATCH 07/22] NTB: Fix a few ntb.h issues

2016-11-29 Thread Serge Semin
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

[PATCH 04/22] NTB: Add messaging NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 05/22] NTB: Alter Scratchpads NTB API to support multi-ports interface

2016-11-29 Thread Serge Semin
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

[PATCH 02/22] NTB: Add peer indexed ports NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 03/22] NTB: Alter NTB API to support both inbound and outbound MW based interfaces

2016-11-29 Thread Serge Semin
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

[PATCH 00/22] NTB: Alter kernel API to support multi-port devices

2016-11-29 Thread Serge Semin
/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

[PATCH 18/22] NTB AMD: Add T-Platforms copyrights to AMD NTB driver

2016-11-29 Thread Serge Semin
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

[PATCH 14/22] NTB AMD: Move link-related methods being first in the driver

2016-11-29 Thread Serge Semin
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/

[PATCH 20/22] NTB Tool: Alter driver to work with two-ports NTB API

2016-11-29 Thread Serge Semin
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.

[PATCH 17/22] NTB AMD: Alter Scratchpads interface to fit new NTB API

2016-11-29 Thread Serge Semin
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/

[PATCH 15/22] NTB AMD: Add port-related NTB API callback methods

2016-11-29 Thread Serge Semin
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/

[PATCH 13/22] NTB Intel: Add T-Platforms copyrights to Intel NTB driver

2016-11-29 Thread Serge Semin
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

[PATCH 21/22] NTB Perf: Alter driver to work with two-ports NTB API

2016-11-29 Thread Serge Semin
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.

[PATCH 22/22] NTB Transport: Alter driver to work with two-ports NTB API

2016-11-29 Thread Serge Semin
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.

[PATCH 16/22] NTB AMD: Alter MW interface to fit new NTB API

2016-11-29 Thread Serge Semin
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

[PATCH 19/22] NTB PingPong: Alter driver to work with two-ports NTB API

2016-11-29 Thread Serge Semin
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

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-05 Thread Serge Semin
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

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-05 Thread Serge Semin
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

[PATCH 05/21] MIPS memblock: Alter initrd memory reservation method

2016-12-18 Thread Serge Semin
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

[PATCH 19/21] MIPS memblock: Add print out method of kernel virtual memory layout

2016-12-18 Thread Serge Semin
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

[PATCH 06/21] MIPS memblock: Alter kexec-crashkernel parameters parser

2016-12-18 Thread Serge Semin
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

[PATCH 07/21] MIPS memblock: Alter elfcorehdr parameters parser

2016-12-18 Thread Serge Semin
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

[PATCH 08/21] MIPS memblock: Move kernel parameters parser into individual method

2016-12-18 Thread Serge Semin
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

[PATCH 09/21] MIPS memblock: Move kernel memory reservation to individual method

2016-12-18 Thread Serge Semin
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 +++--

[PATCH 20/21] MIPS memblock: Add free low memory test method call

2016-12-18 Thread Serge Semin
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/

[PATCH 21/21] MIPS memblock: Deactivate old bootmem allocator

2016-12-18 Thread Serge Semin
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

[PATCH 04/21] MIPS memblock: Alter user-defined memory parameter parser

2016-12-18 Thread Serge Semin
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   2   3   4   5   6   7   8   9   10   >