Re: [PATCH] vme: remove unneeded kfree

2018-09-07 Thread Martyn Welch
On Thu, 2018-09-06 at 22:04 -0700, Linus Torvalds wrote: > On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang > wrote: > > > > put_device will call vme_dev_release to free vdev, kfree is > > unnecessary here. > > That does seem to be the case.  I think "unnecessary" is overly kind, > it does seem to be

Re: [PATCH] vme: ca91cx42: remove redundant variable i

2018-07-14 Thread Martyn Welch
able] > > Signed-off-by: Colin Ian King Reviewed-by: Martyn Welch > --- > drivers/vme/bridges/vme_ca91cx42.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/vme/bridges/vme_ca91cx42.c > b/drivers/vme/bridges/vme_ca91cx42.c > index 5dd284008630.

[PATCH] staging: VME: Remove PIO2 driver

2017-10-24 Thread Martyn Welch
The PIO2 device is (as far as I know) no longer manufactured. I no longer have access to the device and this seems unlikely to change. The only changes to this driver in a long time have been as a result of API changes else where. Time to remove it... Signed-off-by: Martyn Welch <martyn

[PATCH] VME: Return -EBUSY when DMA list in use

2017-10-24 Thread Martyn Welch
From: Martyn Welch <mar...@welchs.me.uk> The VME subsystem currently returns -EBUSY when trying to free a DMA resource that is busy, but returns -EINVAL when trying to free a DMA list that is in use. Switch to returning -EBUSY when trying to free a DMA list that is in use for consi

Re: [GIT PULL] VME Subsystem patches for 4.14-rc4

2017-10-14 Thread Martyn Welch
On Sat, 2017-10-14 at 14:08 +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 13, 2017 at 10:09:19PM +0100, Martyn Welch wrote: > > The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: > > > > Linux 4.14-rc4 (2017-10-08 20:53:29 -0700) > > &

[GIT PULL] VME Subsystem patches for 4.14-rc4

2017-10-13 Thread Martyn Welch
The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: Linux 4.14-rc4 (2017-10-08 20:53:29 -0700) are available in the git repository at: https://gitlab.collabora.com/martyn/linux.git tags/vme-next-4.14-rc4 for you to fetch changes up to

Re: [PATCH] staging:vme Fix use BIT macro

2017-09-21 Thread Martyn Welch
On 21 September 2017 at 06:52, Janani Sankara Babu wrote: > This patch is created to solve the following warning shown by the checkpatch > script Warning: Replace all occurences of (1< > Signed-off-by: Janani Sankara Babu > --- >

[GIT PULL] VME Subsystem patches for 4.13-rc7

2017-09-01 Thread Martyn Welch
The following changes since commit 0f9b011d3321ca1079c7a46c18cb1956fbdb7bcb: driver core: bus: Fix a potential double free (2017-08-31 18:57:30 +0200) are available in the git repository at: https://gitlab.collabora.com/martyn/linux.git tags/vme-next-4.13-rc7 for you to fetch changes up to

Re: [PATCH 13/14] vme: tsi148: Improve 17 size determinations

2017-08-30 Thread Martyn Welch
On 26 August 2017 at 08:00, SF Markus Elfring wrote: >>> @@ -2363,5 +2364,5 @@ static int tsi148_probe(struct pci_dev *pdev, const >>> struct pci_device_id *id) >>> master_num--; >>> >>> tsi148_device->flush_image = >>> -

Re: [PATCH 00/14] VME: Adjustments for several function implementations

2017-08-25 Thread Martyn Welch
On Fri, Aug 25, 2017 at 05:41:13PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 25 Aug 2017 13:15:43 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (14): > Delete 11

Re: [PATCH 13/14] vme: tsi148: Improve 17 size determinations

2017-08-25 Thread Martyn Welch
On Fri, Aug 25, 2017 at 06:15:08PM +0200, SF Markus Elfring wrote: > @@ -2363,5 +2364,5 @@ static int tsi148_probe(struct pci_dev *pdev, const > struct pci_device_id *id) > master_num--; > > tsi148_device->flush_image = > -

Re: [PATCH] staging: vme: Use BIT macro for bit definitions

2017-05-19 Thread Martyn Welch
> to be 1) rather than a "single bit" (1 << n), so keeping the value as is > in the code makes it more readable that using a combination of BIT > macros. > > Signed-off-by: Ricardo Silva <rjpdasi...@gmail.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> &

[PATCH 1/2] docs: Add kernel-doc comments to VME driver API

2017-03-03 Thread Martyn Welch
Add kernel-doc comments to the VME driver API and structures. This documentation will be integrated into the RST documentation in a later patch. Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> --- drivers/vme/vme.c | 469 i

[PATCH 2/2] docs: Update VME documentation to include kerneldoc comments

2017-03-03 Thread Martyn Welch
Update VME documentation given that kerneldoc comments are now provided. Add "VME API" section to VME RST to pull in kerneldoc comments. Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> --- Documentation/driver-api/vme.rst | 363 ++-

Re: [PATCH] vme: Fix wrong pointer utilization in ca91cx42_slave_get

2017-01-11 Thread Martyn Welch
cast from pointer to > integer of different size [-Wpointer-to-int-cast] > *pci_base = (dma_addr_t)vme_base + pci_offset; > > Signed-off-by: Augusto Mecking Caringi <augustocari...@gmail.com> Acked-By: Martyn Welch <mar...@welchs.me.uk> > --- > drivers/vme/bridges/v

[PATCH] VME: Remove node entry from vme_driver

2016-12-10 Thread Martyn Welch
The vme_driver structure currently has a "node" entry. This entry is never used and it's intended purpose has been lost to the mists of time. Remove the entry from vme_driver to avoid confusion. Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> --- include/linux/vme

[PATCH] VME: Remove shutdown entry from vme_driver

2016-12-03 Thread Martyn Welch
no in-tree drivers use it (hardly surprising, given it'd never be called). Remove the entry from vme_driver to avoid confusion. Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> --- include/linux/vme.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/vme.h b/include/l

Re: [PATCH v2] [STYLE]staging:vme:vme_user.c Correct spelling mistakes

2016-11-14 Thread Martyn Welch
On Sun, Nov 13, 2016 at 08:28:34PM -0500, Walt Feasel wrote: > Make spelling corrections for 'correctly' and > 'unregister'. > > Signed-off-by: Walt Feasel <waltfea...@gmail.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> > --- > > Removed the p

[PATCH] vme: Convert documentation to reStructuredText, move under driver APIs

2016-10-21 Thread Martyn Welch
From: Martyn Welch <mar...@welchs.me.uk> Perform a relatively simple conversion of vme_api.txt to reStructuredText and move under driver-api, which seems the most logical place for this documentation. Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> --- Documentatio

[PATCH] vme: vme_get_size potentially returning incorrect value on failure

2016-10-21 Thread Martyn Welch
The function vme_get_size returns the size of the window to the caller, however it doesn't check the return value of the call to vme_master_get. Return 0 on failure rather than anything else. Suggested-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Martyn Welch <

Re: [bug report] vme: Adding Fake VME driver

2016-10-21 Thread Martyn Welch
On Fri, Sep 30, 2016 at 02:37:01PM +0300, Dan Carpenter wrote: > Hello Martyn Welch, > > The patch 658bcdae9c67: "vme: Adding Fake VME driver" from Jul 7, > 2016, leads to the following static checker warning: > > drivers/vme/bridges/vme_fake.c:338 fa

Re: [PATCH] vme: fake: mark symbols static where possible

2016-09-23 Thread Martyn Welch
vmewrite32' [-Wmissing-prototypes] > > In fact, these functions are only used in the file in which they are > declared and don't need a declaration, but can be made static. > so this patch marks these functions with 'static'. > > Signed-off-by: Baoyou Xie <baoyou@li

Re: [PATCH 3/3] staging: vme_user: alloc buffer when setting slave

2016-09-09 Thread Martyn Welch
On Fri, Sep 09, 2016 at 02:41:43PM -0500, Aaron Sierra wrote: > - Original Message - > > From: "Martyn Welch" <mar...@welchs.me.uk> > > To: "Aaron Sierra" <asie...@xes-inc.com> > > Cc: "Manohar Vanga" <manohar.va...@gmail.co

Re: [PATCH 3/3] staging: vme_user: alloc buffer when setting slave

2016-09-08 Thread Martyn Welch
On Fri, Sep 02, 2016 at 04:17:01PM -0500, Aaron Sierra wrote: > Some bridges support a minimum slave window larger than this driver's > 128 KB default buffer size. Also bridges typically require the PCI and > VME bases to be aligned to the size of the window. > Which bridge has a minimum slave

Re: staging: vme_user: accept bus_num of zero

2016-09-08 Thread Martyn Welch
On Fri, Sep 02, 2016 at 03:59:45PM -0500, Aaron Sierra wrote: > The driver's bus_num parameter is used to select a VME bus during probe. > This parameter is used both as a boolean to indicate that probing should > occur as well as which bus should be probed. However, the first bus in > the system

Re: [PATCH 2/3] staging: vme_user: look up image once in ioctl

2016-09-08 Thread Martyn Welch
On Fri, Sep 02, 2016 at 04:16:55PM -0500, Aaron Sierra wrote: > Assign a pointer to the image descriptor once at the beginning of > the ioctl to help keep code concise. > Same with this patch. I'm not sure what's gained by doing this. > Signed-off-by: Aaron Sierra > --- >

Re: [PATCH 1/3] staging: vme_user: return retval in vme_user_ioctl

2016-09-08 Thread Martyn Welch
On Fri, Sep 02, 2016 at 04:16:48PM -0500, Aaron Sierra wrote: > Update each case to set retval and return that value at the end of the > function. This also replaces most case statement returns with breaks > and collapses some whitespace. > Sorry if I'm being dense, but is there an advantage to

Re: [PATCH] vme: fake: fix build for 64-bit dma_addr_t

2016-09-08 Thread Martyn Welch
clearer while fixing the warning, I'm adding > a set of helper functions for the type conversion. > > Signed-off-by: Arnd Bergmann <a...@arndb.de> Acked-by: Martyn Welch <mar...@welchs.me.uk> > --- > drivers/vme/bridges/vme_fake.c | 26 ++ > 1

Re: [PATCH v2] vme: Adding Fake VME driver

2016-07-07 Thread Martyn Welch
obot wrote: Hi, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.7-rc6 next-20160707] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Martyn-Welch/vme-Addin

[PATCH v2] vme: Adding Fake VME driver

2016-07-07 Thread Martyn Welch
This patch introduces a fake VME bridge driver. This driver currently emulates a subset of the VME bridge functionality. This allows some VME subsystem development and even some VME device driver development to be carried out in the absence of a proper VME bus. Signed-off-by: Martyn Welch <

Re: [PATCH 1/1] vme: Fix module autoload

2016-07-07 Thread Martyn Welch
On 14/06/16 15:36, Alessio Igor Bogani wrote: These drivers have a PCI device ID table but the PCI module alias information is not created so module autoloading won't work. Signed-off-by: Alessio Igor Bogani <alessio.bog...@elettra.eu> Acked-by: Martyn Welch <mar...@wel

Re: [PATCH] vme: make core vme support explicitly non-modular

2016-07-07 Thread Martyn Welch
, we don't have any ".suppress_bind_attrs" to be concerned about when we drop the ".remove" code from this file. Since module_init was not in use by this code, the init ordering remains unchanged with this commit. Cc: Martyn Welch <mar...@welchs.me.uk> Cc: Manohar Vang

Re: [PATCH v2] vme: change LM callback argument to void pointer

2016-07-07 Thread Martyn Welch
, but the CA91Cx42 changes have only been compiled. Signed-off-by: Aaron Sierra <asie...@xes-inc.com> Sorry for the long delay - I've only just found time to write the test module I wanted to validate this. Acked-by: Martyn Welch <mar...@welchs.me.uk> --- v2 - change new argume

[PATCH] vme: Update documentation to match api

2016-06-05 Thread Martyn Welch
The vme_register_driver() api changed in commit 5d6abf379d73 ("staging: vme: make match() driver specific to improve non-VME64x support") but the documentation wasn't updated. Update the documentation to match the API. Signed-off-by: Martyn Welch <mar...@welchs.me.uk> --

Re: [PATCH v2] vme: change LM callback argument to void pointer

2016-05-25 Thread Martyn Welch
Sorry it's taken me so long to get to this, I've wanted to write some test code to prove this out to myself and I've been struggling to find the time. On 29/04/16 22:41, Aaron Sierra wrote: diff --git a/Documentation/vme_api.txt b/Documentation/vme_api.txt index ca5b827..4ca63a6 100644 ---

Re: Staging: VME Framework for the Linux Kernel

2016-04-28 Thread Martyn Welch
On 14/04/16 10:42, Dan Carpenter wrote: Hello Martyn Welch, The patch a17a75e2666f: "Staging: VME Framework for the Linux Kernel" from Jul 31, 2009, leads to the following static checker warning: drivers/vme/vme.c:161 vme_get_size() error: uninitialized vari

Re: [PATCH] vme: add vme_init_bridge for common bridge init

2016-04-27 Thread Martyn Welch
this: bridge = vme_init_bridge(>bridge); Signed-off-by: Aaron Sierra <asie...@xes-inc.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> --- drivers/vme/bridges/vme_ca91cx42.c | 9 + drivers/vme/bridges/vme_tsi148.c | 9 + drivers/vme/vme.c

Re: [PATCH] vme: change LM callback argument to void pointer

2016-04-27 Thread Martyn Welch
Hi Aaron, On 24/04/16 00:03, Aaron Sierra wrote: Make the location monitor callback function prototype more useful by changing the argument from an integer to a void pointer. All VME bridge drivers were simply passing the location monitor index (e.g. 0-3) as the argument to these callbacks. It

Re: [PATCH] vme: trivial spelling and capitalization fixes

2016-04-22 Thread Martyn Welch
On 21/04/16 17:18, Aaron Sierra wrote: Fix a typo in the spurious interrupt warning and consistently capitalize VME, PCI, and DMA acronyms. Signed-off-by: Aaron Sierra <asie...@xes-inc.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> --- drivers/vme/vme.c | 12 ++---

Re: [PATCH] staging: vme: fix bare use of 'unsigned'

2016-04-03 Thread Martyn Welch
On 31/03/16 23:53, Clifton Barnes wrote: fix checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of 'unsigned'' Signed-off-by: Clifton Barnes <clifton.a.bar...@gmail.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> Greg: Whilst this patch seems valid and comp

[PATCH] VME: Adding Fake VME driver

2016-04-02 Thread Martyn Welch
This patch introduces a fake VME bridge driver. This driver currently emulates a subset of the VME bridge functionality. This allows some VME subsystem development and even some VME device driver development to be carried out in the absence of a proper VME bus. Signed-off-by: Martyn Welch <

Re: [PATCH 8/9] vme: vme_ca91cx42.c: use to_pci_dev()

2015-12-27 Thread Martyn Welch
On 27/12/15 10:46, Geliang Tang wrote: Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang <geliangt...@163.com> Acked-by: Martyn Welch <mar...@welchs.me.uk> --- drivers/vme/bridges/vme_ca91cx42.c | 11 +-- 1 file changed, 5 insertions(+), 6 deleti

Re: [PATCH 172/182] staging: vme: use gpiochip data pointer

2015-12-14 Thread Martyn Welch
On 14/12/15 14:14, Linus Walleij wrote: On Fri, Dec 11, 2015 at 7:58 AM, Martyn Welch <mar...@welchs.me.uk> wrote: On 09/12/15 13:50, Linus Walleij wrote: This makes the driver use the data pointer added to the gpio_chip to store a pointer to the state container instead of r

Re: [PATCH 172/182] staging: vme: use gpiochip data pointer

2015-12-10 Thread Martyn Welch
On 09/12/15 13:50, Linus Walleij wrote: This makes the driver use the data pointer added to the gpio_chip to store a pointer to the state container instead of relying on container_of(). Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Martyn Welch <mar...@welchs.me.uk>

Re: [PATCHv5] staging: vme_user: provide DMA functionality

2015-10-18 Thread Martyn Welch
On 18/10/15 18:53, Dmitry Kalinkin wrote: On Sun, Oct 18, 2015 at 10:31 AM, Martyn Welch <mar...@welchs.me.uk> wrote: On 11/10/15 01:13, Dmitry Kalinkin wrote: This introduces a new dma device that provides a single ioctl call that provides DMA read and write functionality to the user

Re: [PATCH] vme: 8-bit status/id takes 256 values, not 255

2015-10-18 Thread Martyn Welch
On 10 October 2015 at 23:00, Dmitry Kalinkin wrote: > Fixes an off by one array size. > The Status/ID is an 8-bit value (OK, the standard states it can be a 8, 16 or 32-bit value, however both of the chipsets we support at this point in time support an 8-bit value),

Re: [PATCHv5] staging: vme_user: provide DMA functionality

2015-10-18 Thread Martyn Welch
On 11/10/15 01:13, Dmitry Kalinkin wrote: This introduces a new dma device that provides a single ioctl call that provides DMA read and write functionality to the user space. Signed-off-by: Dmitry Kalinkin Cc: Igor Alekseev ---

Re: [PATCH] vme: 8-bit status/id takes 256 values, not 255

2015-10-18 Thread Martyn Welch
On 18/10/15 18:07, Dmitry Kalinkin wrote: On Sun, Oct 18, 2015 at 9:30 AM, Martyn Welch <mar...@welchs.me.uk> wrote: On 10 October 2015 at 23:00, Dmitry Kalinkin <dmitry.kalin...@gmail.com> wrote: Fixes an off by one array size. The Status/ID is an 8-bit value (OK, the sta

Re: [PATCH] vme: tsi148: silence uninitialized variable warning

2015-10-10 Thread Martyn Welch
On 5 October 2015 at 04:59, Dmitry Kalinkin wrote: > The warning is a false positive. > That seems very likely. Please could you role this into the original patch (vme: change bus error handling scheme)? Martyn > drivers/vme/bridges/vme_tsi148.c: In function

Re: [RESEND 2/4] vme: include address space in error filtering

2015-09-18 Thread Martyn Welch
try.kalin...@gmail.com> Cc: Igor Alekseev <igor.aleks...@itep.ru> Acked-by: Martyn Welch <mar...@welchs.me.uk> --- drivers/vme/bridges/vme_tsi148.c |4 ++- drivers/vme/vme.c| 61 +- drivers/vme/vme_bridge.h |4 +

Re: [RESEND 1/4] vme: move tsi148 error handling into VME subsystem

2015-09-18 Thread Martyn Welch
reuse this code if it is shared. This introduces a slight behavior change: vme error message won't be triggered in a rare case when err_chk=1 and kmalloc fails. Signed-off-by: Dmitry Kalinkin <dmitry.kalin...@gmail.com> Cc: Igor Alekseev <igor.aleks...@itep.ru> Acked-by: Martyn Welch &l

Re: [RESEND 4/4] vme: print unhandled VME access errors

2015-09-18 Thread Martyn Welch
On 18/09/15 00:01, dmitry.kalin...@gmail.com wrote: From: Dmitry Kalinkin <dmitry.kalin...@gmail.com> This will enable error messages for accesses done through mmap. Signed-off-by: Dmitry Kalinkin <dmitry.kalin...@gmail.com> Acked-by: Martyn Welch <mar...@welchs.me.uk>

Re: [RESEND 3/4] vme: change bus error handling scheme

2015-09-18 Thread Martyn Welch
On 18/09/15 00:01, dmitry.kalin...@gmail.com wrote: From: Dmitry Kalinkin The current VME bus error handler adds errors to the bridge error list. vme_master_{read,write} then traverses that list to look for relevant errors. Such scheme didn't work well for

[PATCH] Update email address for Martyn Welch

2015-09-17 Thread Martyn Welch
I have recently left GE and the email address listed for me in the maintainers file is no longer valid. Updating email address. Signed-off-by: Martyn Welch <mar...@welchs.me.uk> --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS

Re: Generic VME UIO driver

2015-07-20 Thread Martyn Welch
On 08/07/15 16:02, Dmitry Kalinkin wrote: On 08 Jul 2015, at 16:22, Martyn Welch martyn.we...@ge.com wrote: On 06/07/15 18:24, Dmitry Kalinkin wrote: Some functionality was dropped as it was not good practice (such as receiving VME interrupts in user space, it's not really doable

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-08 Thread Martyn Welch
having been allocated gracefully, which it doesn't at the moment) then it doesn't load. Dynamic allocation would leave unused resources available rather than prospectively hogging them. -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-08 Thread Martyn Welch
of the existing API. Does that seem workable to you? -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-08 Thread Martyn Welch
this is more of a problem on 32-bit systems, but... -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-08 Thread Martyn Welch
allocated at the time at which an interrupt came in. Martyn -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCHv2 6/9] staging: vme_user: return -EFAULT on __copy_*_user errors

2015-07-06 Thread Martyn Welch
On 25/06/15 13:05, Dmitry Kalinkin wrote: This is why I think this is not a “we broke userspace” situation. The vme_user module is also in the staging tree and (almost) by definition the API shouldn't be considered as stable. Martyn -- Martyn Welch (Lead Software Engineer) | Registered

Re: [PATCHv3 6/9] staging: vme_user: switch to returning -EFAULT on __copy_*_user errors

2015-07-06 Thread Martyn Welch
, char __user *buf, size_t count, -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com | VAT:GB

Re: [PATCH 0/3] VME bus error handling overhaul

2015-07-06 Thread Martyn Welch
changed, 147 insertions(+), 130 deletions(-) -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCHv3 6/9] staging: vme_user: switch to returning -EFAULT on __copy_*_user errors

2015-07-06 Thread Martyn Welch
On 06/07/15 14:10, Dmitry Kalinkin wrote: On Mon, Jul 6, 2015 at 3:51 PM, Martyn Welch martyn.we...@ge.com wrote: On 26/06/15 21:39, Dmitry Kalinkin wrote: Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 47

Re: [PATCH] vme: print unhandled VME access errors

2015-07-06 Thread Martyn Welch
, + Unhandled VME access error at address 0x%llx\n, + address); } EXPORT_SYMBOL(vme_bus_error_handler); -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-06 Thread Martyn Welch
the user space application not just use the control device? -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality

2015-07-06 Thread Martyn Welch
On 06/07/15 14:50, Dmitry Kalinkin wrote: On Mon, Jul 6, 2015 at 4:22 PM, Martyn Welch martyn.we...@ge.com wrote: Sorry about the *really* late reply, loads of emails some how missed my periodic search of the mailing list. I'm happy with the addition of DMA, just not sure whether it's worth

Re: [PATCHv2 2/3] staging: vme: mmap() support for vme_user

2015-03-09 Thread Martyn Welch
(struct vme_dev *, u32); -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com | VAT:GB 927559189

Re: [PATCH 1/1] staging: vme: removed useless breaks in vme_user.c

2014-07-24 Thread Martyn Welch
On 23/07/14 17:17, Tom Jorquera wrote: vme_user.c contained unnecessary breaks after gotos, which increased code size and caused code style warning. This is now fixed. Signed-off-by: Tom Jorquera tom.jorqu...@gmail.com Acked-by: Martyn Welch martyn.we...@ge.com --- drivers/staging/vme

Re: XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-07-24 Thread Martyn Welch
don't think you've even told me what SBC you are using) there's a limit to how much I can help I'm afraid. Hope that helps, Martyn On Wed, Jul 16, 2014 at 12:47 AM, Martyn Welch martyn.we...@ge.com wrote: On 14/07/14 19:29, Maurice Moss wrote: Hi all, I have updated my Linux Kernel

Re: [PATCH 2/3] staging: vme: Add missing CR in error message

2014-07-22 Thread Martyn Welch
On 18/07/14 16:33, Masanari Iida wrote: This patch adds missing CR in dev_err message. Signed-off-by: Masanari Iida standby2...@gmail.com Acked-by: Martyn Welch martyn.we...@ge.com --- drivers/staging/vme/devices/vme_pio2_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 1/3] staging: vme: Fix typo in vme_pio2_gpio.c

2014-07-22 Thread Martyn Welch
On 18/07/14 16:33, Masanari Iida wrote: This patch fix spelling typo in printk message. Signed-off-by: Masanari Iida standby2...@gmail.com Acked-by: Martyn Welch martyn.we...@ge.com --- drivers/staging/vme/devices/vme_pio2_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH 3/3] staging: vme: Add missing CR in printk messages in vme_pio2_core.c

2014-07-22 Thread Martyn Welch
On 18/07/14 16:33, Masanari Iida wrote: This patch add missing CR in messages within vme_pio2_core.c Signed-off-by: Masanari Iida standby2...@gmail.com Acked-by: Martyn Welch martyn.we...@ge.com --- drivers/staging/vme/devices/vme_pio2_core.c | 12 ++-- 1 file changed, 6

Re: XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-07-16 Thread Martyn Welch
. Sorry!! On Thu, Jul 3, 2014 at 3:47 AM, Martyn Welch martyn.we...@ge.com wrote: On 03/07/14 00:47, Maurice Moss wrote: I upgraded to linux kernel 3.14.9 (on Fedora). Re-compiled the kernel with the vme support etc. I now get the below in my log, and don't see any vme related files in /dev

Re: XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-07-03 Thread Martyn Welch
=aee6e594-4be8-46d4-abe6-7c054ef239b0 ro vconsole.font=latarcyrheb-sun16 vme_user.bus=0vme_tsi148.err_chk=1 rhgb quiet Unless this is a copy and paste issue, you seem to be missing a space between vme_user.bus=0 and vme_tsi148.err_chk=1. Martyn -- Martyn Welch (Lead Software Engineer) | Registered

Re: XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-06-24 Thread Martyn Welch
, Martyn Welch martyn.we...@ge.com wrote: Hi Maurice, On 04/06/14 22:43, Maurice Moss wrote: Dear All, I came across the link here and decided to write to you, as I am facing a very similar problem: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-May/037941.html

Re: [PATCH] vme_tsi148: Allow setting VMEbus Global Timeout

2014-06-16 Thread Martyn Welch
)/* Disabled */ +#define TSI148_LCSR_VCTRL_GTO_1024 (70)/* 1024 us */ +#define TSI148_LCSR_VCTRL_GTO_2048 (80)/* 2048 us (default) */ +#define TSI148_LCSR_VCTRL_GTO_DIS (0xf0) /* Disabled */ /* * VMEbus Status Register CRG + $23C -- Martyn Welch (Lead Software Engineer

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏‏

2014-06-16 Thread Martyn Welch
On 16/06/14 10:56, Dan Carpenter wrote: On Mon, Jun 16, 2014 at 10:47:25AM +0100, Martyn Welch wrote: Nick, Sorry for the delay in responding. I'm staring at the manual for the ca91c142 and the relevant bits in the VSIx_CTL registers definitely need to be set to 0 for A16, likewise

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏‏

2014-06-16 Thread Martyn Welch
) -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com | VAT:GB 927559189

Re: [PATCH] VME: Stop using memcpy_[to|from]io() due to unwanted behaviour

2014-02-12 Thread Martyn Welch
On 12/02/14 16:43, Greg Kroah-Hartman wrote: On Wed, Feb 12, 2014 at 01:20:33PM +, Martyn Welch wrote: Hmm, can't see this patch on the mailing list, though get send-mail cc'ed me and I got it that way. As you've added a later patch that I wrote and not this one, can I assume that you

[PATCH] VME: Stop using memcpy_[to|from]io() due to unwanted behaviour

2014-02-12 Thread Martyn Welch
() and memcpy_fromio() functions do not provide sufficient control, so instead loop using ioread functions. Reported-by: Michael Kenney mfken...@gmail.com Signed-off-by: Martyn Welch martyn.we...@ge.com --- drivers/vme/bridges/vme_ca91cx42.c | 29 ++--- drivers/vme/bridges

Re: vme_tsi148 question

2014-02-06 Thread Martyn Welch
On 05/02/14 23:21, Michael Kenney wrote: On Wed, Feb 5, 2014 at 1:38 PM, Michael Kenney mfken...@gmail.com wrote: On Wed, Feb 5, 2014 at 1:22 PM, Martyn Welch mar...@welchs.me.uk wrote: On 5 February 2014 17:41, Greg KH gre...@linuxfoundation.org wrote: On Tue, Feb 04, 2014 at 06:34

Re: vme_tsi148 question

2014-02-04 Thread Martyn Welch
On 28/12/13 00:34, Michael Kenney wrote: Hi Martyn, On Fri, Dec 27, 2013 at 4:23 PM, Martyn Welch mar...@welchs.me.uk wrote: On 27/12/13 20:15, Michael Kenney wrote: We are using the vme_tsi148 bridge driver along with the vme_user driver to access the VME boards. The A/D board requires D32

Re: vme_tsi148 question

2014-02-04 Thread Martyn Welch
On 04/02/14 16:34, Michael Kenney wrote: Hi Martyn, On Tue, Feb 4, 2014 at 7:28 AM, Martyn Welch martyn.we...@ge.com mailto:martyn.we...@ge.com wrote: On 28/12/13 00:34, Michael Kenney wrote: Hi Martyn, On Fri, Dec 27, 2013 at 4:23 PM, Martyn Welch mar

Re: vme_tsi148 question

2014-01-14 Thread Martyn Welch
of the VME lines when the error occurred (Address lines, data strobes), it says that there was an error, in one case it shows an exception overflow and that it happened on the VME bus. Martyn -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms

Re: vme_tsi148 question

2014-01-13 Thread Martyn Welch
On 07/01/14 16:14, Michael Kenney wrote: Hi Martyn, On Fri, Dec 27, 2013 at 4:34 PM, Michael Kenney mfken...@gmail.com wrote: Hi Martyn, On Fri, Dec 27, 2013 at 4:23 PM, Martyn Welch mar...@welchs.me.uk wrote: On 27/12/13 20:15, Michael Kenney wrote: We are using the vme_tsi148 bridge

Re: vme_tsi148 question

2013-12-27 Thread Martyn Welch
On 27/12/13 20:15, Michael Kenney wrote: We are using the vme_tsi148 bridge driver along with the vme_user driver to access the VME boards. The A/D board requires D32 bus cycles and the VME master window is configured accordingly, however, when monitoring the bus cycles with a logic analyzer, we

Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME bridges

2013-12-11 Thread Martyn Welch
me doing so. No problem here. Martyn -Aaron -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com

Re: [PATCH v2] vme_user: Update API to work in mixed environments

2013-12-11 Thread Martyn Welch
on ioctl signatures from _IOR and _IOW). Signed-off-by: Aaron Sierra asie...@xes-inc.com If Greg's happy with this (he'd suggested re-arranging to avoid the need for packing): Acked-by: Martyn Welch martyn.we...@ge.com --- drivers/staging/vme/devices/vme_user.h | 20

[PATCH 1/2] VME: Provide access to VME bus enumeration and fix vme_user match function

2013-11-08 Thread Martyn Welch
the slot to which the bridge was attached in the VME system and to the bus(es) provided via the bus module parameter. To do this cleanly (i.e. without poking arround in the subsystems internal stuctures) a functionality has been added to provide access to the bus enumeration. Signed-off-by: Martyn

Re: [PATCH 1/2] VME: Provide access to VME bus enumeration and fix vme_user match function

2013-11-08 Thread Martyn Welch
My appologies - the script I had to send patches had got a bit broken and I'd completely forgotten... Martyn On 08/11/13 11:55, y wrote: From: Martyn Welch martyn.we...@ge.com The match function for vme_user is completely wrong. It will blindly bind against the first VME slot on each bus

Re: [PATCH 3/3] vme_user: Remove superfluous bus module parameter

2013-11-07 Thread Martyn Welch
On 07/11/13 15:25, Aaron Sierra wrote: From: Martyn Welch martyn.we...@ge.com This patch removes the bus parameter since its primary function in practice is to prevent the driver from registering itself with the VME subsystem entirely unless some (any) value is passed via the parameter

Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME bridges

2013-11-05 Thread Martyn Welch
)+= ../staging/vme/ -- Martyn Welch (Lead Software Engineer) | Registered in England and Wales GE Intelligent Platforms | (3828642) at 100 Barbirolli Square T +44(0)1327322748 | Manchester, M2 3AB E martyn.we...@ge.com | VAT:GB 927559189