Re: [RFC 02/19] ktf: Introduce the main part of the kernel side of ktf

2019-09-09 Thread Knut Omang
On Sun, 2019-09-08 at 18:23 -0700, Brendan Higgins wrote: > On Tue, Aug 13, 2019 at 08:09:17AM +0200, Knut Omang wrote: > > Sorry, it's taken me way too long to get down to a proper code review on > this. I was hoping to send you something a couple weeks ago in > preparatio

Re: [RFC 06/19] ktf: A simple debugfs interface to test results

2019-08-14 Thread Knut Omang
On Tue, 2019-08-13 at 10:21 +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 13, 2019 at 08:09:21AM +0200, Knut Omang wrote: > > From: Alan Maguire > > > > While test results is available via netlink from user space, sometimes > > it may be useful to be able to access

[RFC 02/19] ktf: Introduce the main part of the kernel side of ktf

2019-08-12 Thread Knut Omang
very simple additional example tests. ktf.h: Defines the KTF user API for kernel clients ktf_test.c: Kernel side code for tracking and reporting ktf test results Signed-off-by: Knut Omang --- tools/testing/selftests/ktf/kernel/Makefile | 15 +- tools/testing/selftests/ktf/kernel/

Re: Linux Testing Microconference at LPC

2019-05-22 Thread Knut Omang
On Wed, 2019-05-22 at 14:02 -0700, Brendan Higgins wrote: > On Wed, May 15, 2019 at 08:36:49PM -0400, Sasha Levin wrote: > > On Wed, May 15, 2019 at 04:44:19PM -0600, shuah wrote: > > > Hi Sasha and Dhaval, > > > > > > On 4/11/19 11:37 AM, Dhaval Giani wrote: > > > > Hi Folks, > > > > > > > > Thi

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-09 Thread Knut Omang
On Wed, 2019-05-08 at 23:20 -0400, Theodore Ts'o wrote: > On Wed, May 08, 2019 at 07:13:59PM -0700, Frank Rowand wrote: > > > If you want to use vice grips as a hammer, screwdriver, monkey wrench, > > > etc. there's nothing stopping you from doing that. But it's not fair > > > to object to other

Re: Linux Testing Microconference at LPC

2019-04-23 Thread Knut Omang
Hi, On Thu, 2019-04-11 at 10:37 -0700, Dhaval Giani wrote: > Hi Folks, > > This is a call for participation for the Linux Testing microconference > at LPC this year. > > For those who were at LPC last year, as the closing panel mentioned, > testing is probably the next big push needed to improve

Re: [RFC v4 08/17] kunit: test: add support for test abort

2019-03-26 Thread Knut Omang
On Mon, 2019-03-25 at 15:32 -0700, Brendan Higgins wrote: > On Fri, Mar 22, 2019 at 12:11 AM Knut Omang wrote: > > On Thu, 2019-03-21 at 18:41 -0700, Brendan Higgins wrote: > > > On Thu, Mar 21, 2019 at 6:10 PM Frank Rowand > > > wrote: > > > > On

Re: [Announce] LPC 2018: Testing and Fuzzing Microconference

2018-10-30 Thread Knut Omang
On Wed, 2018-09-19 at 10:14 -0700, Dhaval Giani wrote: > Hi folks, > > Sasha and I are pleased to announce the Testing and Fuzzing track at > LPC [ 1 ]. We are planning to continue the discussions from last > year's microconference [2]. Many discussions from the Automated > Testing Summit [3] will

Re: [Announce] LPC 2018: Testing and Fuzzing Microconference

2018-09-24 Thread Knut Omang
On Mon, 2018-09-24 at 15:42 +0200, Dmitry Vyukov wrote: > On Sat, Sep 22, 2018 at 2:52 PM, Matthew Wilcox wrote: > > On Wed, Sep 19, 2018 at 10:13:15AM -0700, Dhaval Giani wrote: > >> Sasha and I are pleased to announce the Testing and Fuzzing track at > >> LPC [ 1 ]. We are planning to continue t

Re: [PATCH v4 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-03-19 Thread Knut Omang
On Mon, 2018-02-05 at 08:20 +0100, Knut Omang wrote: > On Mon, 2018-02-05 at 16:03 +0900, Masahiro Yamada wrote: Hi Masahiro, I know these are busy times but any hope of getting forward on this? Anything more I can do to ease the process? Thanks for your time, Knut > > 2018-02-05 15:

Re: [PATCH v4 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-02-04 Thread Knut Omang
On Mon, 2018-02-05 at 16:03 +0900, Masahiro Yamada wrote: > 2018-02-05 15:41 GMT+09:00 Knut Omang : > > On Fri, 2018-01-19 at 11:14 +0100, Knut Omang wrote: > >> Add scripts/runchecks which has generic support for running > >> checker tools in a convenient and user

Re: [PATCH v4 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-02-04 Thread Knut Omang
On Fri, 2018-01-19 at 11:14 +0100, Knut Omang wrote: > Add scripts/runchecks which has generic support for running > checker tools in a convenient and user friendly way that > the author hopes can contribute to rein in issues detected > by these tools in a manageable and co

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Knut Omang
On Fri, 2018-02-02 at 16:50 +0100, Greg KH wrote: > On Fri, Feb 02, 2018 at 04:37:55PM +0200, Jani Nikula wrote: > > On Fri, 02 Feb 2018, Greg KH wrote: > > > On Fri, Feb 02, 2018 at 12:44:38PM +0200, Jani Nikula wrote: > > >> > > >> +Knut, Fengguang > > >> > > >> On Fri, 02 Feb 2018, Greg KH w

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Knut Omang
On Fri, 2018-02-02 at 12:44 +0200, Jani Nikula wrote: > +Knut, Fengguang > > On Fri, 02 Feb 2018, Greg KH wrote: > > - If clang now builds the kernel "cleanly", yes, I want to take > > warning fixes in the stable tree. And even better yet, if you > > keep working to ensure the tr

[PATCH v4 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-19 Thread Knut Omang
e coccinelle documentation also had the behaviour of C=1 and C=2 swapped. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold Reviewed-by: John Haxby Reviewed-by: Tom Saeger --- Documentation/dev-tools/coccinelle.rst | 12 +- Documentation/dev-tools/index.rst

[PATCH v4 0/1] Support for generalized use of make C={1,2} via a wrapper program

2018-01-19 Thread Knut Omang
r in cases where types either are not available at all (checkdoc) or where only a few can be filtered out (sparse) With this in place it also became almost trivial to make the look and feel similar for sparse, smatch and checkdoc as for checkpatch, with some optional color support too, to make fi

Re: [PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-07 Thread Knut Omang
On Sun, 2018-01-07 at 08:12 -0200, Mauro Carvalho Chehab wrote: > Em Fri, 05 Jan 2018 20:41:41 +0100 > Knut Omang escreveu: > > > On Fri, 2018-01-05 at 16:08 -0200, Mauro Carvalho Chehab wrote: > > > Em Thu, 04 Jan 2018 21:15:31 +0100 > > > Knut Omang escreveu:

Re: [PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-07 Thread Knut Omang
On Sun, 2018-01-07 at 13:03 +0100, Philippe Ombredanne wrote: > Knut, > > On Fri, Jan 5, 2018 at 3:30 PM, Jani Nikula > wrote: > > On Thu, 04 Jan 2018, Knut Omang wrote: > >> On Thu, 2018-01-04 at 17:50 +0200, Jani Nikula wrote: > >>> On Thu, 04 Jan 2018,

Re: [PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-05 Thread Knut Omang
On Fri, 2018-01-05 at 16:08 -0200, Mauro Carvalho Chehab wrote: > Em Thu, 04 Jan 2018 21:15:31 +0100 > Knut Omang escreveu: > > > > I'm surprised the commit message and the provided documentation say > > > nothing about using CHECK=foo on the command line. That

Re: [PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-04 Thread Knut Omang
On Thu, 2018-01-04 at 17:50 +0200, Jani Nikula wrote: > On Thu, 04 Jan 2018, Knut Omang wrote: > > Add scripts/runchecks which has generic support for running > > checker tools in a convenient and user friendly way that > > the author hopes can contribute to rein in issues

[PATCH v3 1/1] runchecks: Generalize make C={1,2} to support multiple checkers

2018-01-04 Thread Knut Omang
n also had the behaviour of C=1 and C=2 swapped. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold Reviewed-by: John Haxby --- Documentation/dev-tools/coccinelle.rst | 12 +- Documentation/dev-tools/index.rst | 1 +- Documentation/dev-tools/runchecks.rst |

[PATCH v3 0/1] Support for generalized use of make C={1,2} via a wrapper program

2018-01-04 Thread Knut Omang
c as for checkpatch, with some optional color support too, to make fixing issues in the code, the goal of this whole exercise, much more pleasant IMHO :-) Thanks, Knut Knut Omang (1): runchecks: Generalize make C={1,2} to support multiple checkers Documentation/dev-tools/coccinelle.rs

Re: [PATCH v4 72/73] xfs: Convert mru cache to XArray

2017-12-21 Thread Knut Omang
Joe Perches writes: > On Tue, 2017-12-12 at 08:43 +1100, Dave Chinner wrote: >> On Sat, Dec 09, 2017 at 09:00:18AM -0800, Joe Perches wrote: >> > On Sat, 2017-12-09 at 09:36 +1100, Dave Chinner wrote: >> > > 1. Using lockdep_set_novalidate_class() for anything other >> > > than device->mutex wi

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 17:56 +, Bart Van Assche wrote: > On Mon, 2017-12-18 at 10:46 -0700, Jason Gunthorpe wrote: > > On Sun, Dec 17, 2017 at 10:00:17PM -0800, Joe Perches wrote: > > > > > > Today when we run checkers we get so many warnings it is too hard to > > > > make any sense of it. > >

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 16:04 +0200, Leon Romanovsky wrote: > On Mon, Dec 18, 2017 at 01:36:26PM +0100, Knut Omang wrote: > > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > > > On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > > > > Add a runch

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 07:30 -0800, Joe Perches wrote: > On Mon, 2017-12-18 at 14:05 +0100, Knut Omang wrote: > > > Here is a list of the checkpatch messages for drivers/infiniband > > > sorted by type. > > > > > > Many of these might be corrected by using &g

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > I like the ability to add more checkers and keep then in the main > > > upstream tree. But adding overrides for specific subsystems goes again

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Sun, 2017-12-17 at 22:00 -0800, Joe Perches wrote: > On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > > > I like the ability to add more checkers and keep then in the main > &

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > > Add a runchecks.cfg to drivers/infiniband/core > > to start "reining in" future checker errors, > > and making it easier to selective

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 09:47 -0800, Stephen Hemminger wrote: > On Sat, 16 Dec 2017 15:42:25 +0100 > Knut Omang wrote: > > > This patch series implements features to make it easier to run checkers on > > the > > entire kernel as part of automatic and developer testin

Re: [PATCH v2 4/5] rds: Add runchecks.cfg for net/rds

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 10:24 -0800, Joe Perches wrote: > On Sat, 2017-12-16 at 09:45 -0800, Stephen Hemminger wrote: > > On Sat, 16 Dec 2017 15:42:29 +0100 Knut Omang wrote: > > > +# Code simplification: > > > +# > > > +except ALLOC_WITH_MULTIPLY ib.c &

Re: [PATCH v2 4/5] rds: Add runchecks.cfg for net/rds

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 12:00 -0800, santosh.shilim...@oracle.com wrote: > On 12/16/17 10:24 AM, Joe Perches wrote: > > On Sat, 2017-12-16 at 09:45 -0800, Stephen Hemminger wrote: > >> On Sat, 16 Dec 2017 15:42:29 +0100 Knut Omang > >> wrote: > >>> +# Code

Re: [PATCH v2 4/5] rds: Add runchecks.cfg for net/rds

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 09:45 -0800, Stephen Hemminger wrote: > On Sat, 16 Dec 2017 15:42:29 +0100 > Knut Omang wrote: > > > + > > +# Important to fix from a quality perspective: > > +# > > +except AVOID_BUG connection.c ib.c ib_cm.c ib_rdma.c ib_recv.c ib_ring

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 09:00 -0800, Joe Perches wrote: > On Sat, 2017-12-16 at 17:27 +0100, Knut Omang wrote: > > On Sat, 2017-12-16 at 07:21 -0800, Joe Perches wrote: > > > On Sat, 2017-12-16 at 15:42 +0100, Knut Omang wrote: > > > > This patch series implements fea

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 07:21 -0800, Joe Perches wrote: > On Sat, 2017-12-16 at 15:42 +0100, Knut Omang wrote: > > This patch series implements features to make it easier to run checkers on > > the > > entire kernel as part of automatic and developer testing. > > T

Re: [PATCH v2 3/5] checkpatch: Improve --fix-inplace for TABSTOP

2017-12-16 Thread Knut Omang
On Sat, 2017-12-16 at 07:13 -0800, Joe Perches wrote: > On Sat, 2017-12-16 at 15:42 +0100, Knut Omang wrote: > > If the --fix-inplace option for TABSTOP encounters a sitation with several > > spaces (but less than 8) at the end of an indentation, it will assume that > >

Re: [PATCH v2 2/5] Documentation: Add doc for runchecks, a checker runner

2017-12-16 Thread Knut Omang
/runchecks.rst > > @@ -0,0 +1,215 @@ > > +.. Copyright 2017 Knut Omang > > + > > +Makefile support for running checkers > > += > > + > > +Tools like sparse, coccinelle and scripts/checkpatch.pl is able to detect a > >

[PATCH v2 2/5] Documentation: Add doc for runchecks, a checker runner

2017-12-16 Thread Knut Omang
ess sparse specific and more generic. The coccinelle documentation also had the behaviour of C=1 and C=2 swapped. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold Reviewed-by: John Haxby --- Documentation/dev-tools/coccinelle.rst | 12 +- Documentation/dev-tools

[PATCH v2 3/5] checkpatch: Improve --fix-inplace for TABSTOP

2017-12-16 Thread Knut Omang
le TAB, which is visually worse IMO. Reported-by: Håkon Bugge Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 040aa79..febe010 100755 --- a/

[PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-16 Thread Knut Omang
checks.rst for motivation and details. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold --- drivers/infiniband/core/runchecks.cfg | 83 - 1 file changed, 83 insertions(+) create mode 100644 drivers/infiniband/core/runchecks.cfg di

[PATCH v2 4/5] rds: Add runchecks.cfg for net/rds

2017-12-16 Thread Knut Omang
nd details. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold --- net/rds/runchecks.cfg | 76 - 1 file changed, 76 insertions(+) create mode 100644 net/rds/runchecks.cfg diff --git a/net/rds/runchecks.cfg b/net/rds/runchec

[PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-16 Thread Knut Omang
eck type space of the checker in cases where types either are not available at all (checkdoc) or where only a few can be filtered out (sparse) With this in place it also became trivial to make the look and feel similar for sparse and checkdoc as for checkpatch, with some optional color support too, to m

[PATCH v2 1/5] runchecks: Generalize make C={1,2} to support multiple checkers

2017-12-16 Thread Knut Omang
default right now. The code is designed to be easily extensible to support more checkers as they emerge, and some generic checker support is even available just via simple additions to "scripts/runchecks.cfg". Signed-off-by: Knut Omang --- Makefile | 23 +- scri

Re: [PATCH 2/7] kbuild: Add P= command line flag to run checkpatch

2017-11-21 Thread Knut Omang
On Mon, 2017-11-20 at 17:00 -0700, Jim Davis wrote: > On Mon, Nov 20, 2017 at 2:22 PM, Luc Van Oostenryck > wrote: > > > Should it be possible to somehow keep the distinction between > > the flags coming from KBUILD_CFLAGS and the pure CHECKFLAGS? > > Well, the practical problem seems to be that

Re: [PATCH 2/7] kbuild: Add P= command line flag to run checkpatch

2017-11-20 Thread Knut Omang
On Mon, 2017-11-20 at 21:08 +0100, Luc Van Oostenryck wrote: > On Mon, Nov 20, 2017 at 12:48:35PM -0700, Jim Davis wrote: > > > > I'd be nice if people could just specify CHECK and CHECKFLAGS to run > > their favorite checker, but currently CHECKFLAGS seems hardwired for > > running sparse. So so

Re: [PATCH 2/7] kbuild: Add P= command line flag to run checkpatch

2017-11-20 Thread Knut Omang
On Tue, 2017-11-21 at 01:18 +0900, Masahiro Yamada wrote: > 2017-11-17 2:01 GMT+09:00 Knut Omang : > > Add interpretation of a new environment variable P={1,2} in spirit of the > > C= option, but executing checkpatch instead of sparse. > > > > Signed-off-by: Knut Om

Re: [PATCH 0/7] Support for automatic checkpatch running in the kernel

2017-11-17 Thread Knut Omang
-checkpatch.html Thanks, Knut On Thu, 2017-11-16 at 18:01 +0100, Knut Omang wrote: > This patch series implements features to facilitate running checkpatch on the > entire kernel as part of automatic testing. > > This is done by by adding a few small features to checkpatch and put these > fea

Re: [PATCH 0/7] Support for automatic checkpatch running in the kernel

2017-11-16 Thread Knut Omang
On Thu, 2017-11-16 at 14:57 -0800, Kees Cook wrote: > On Thu, Nov 16, 2017 at 9:01 AM, Knut Omang wrote: > > The most important checkpatch feature added is the --ignore-cfg feature, > > which > > takes a file argument and parses that file according to this

Re: [PATCH 1/7] checkpatch: Implement new --ignore-cfg parameter

2017-11-16 Thread Knut Omang
On Thu, 2017-11-16 at 09:09 -0800, Joe Perches wrote: > (adding Andrew Morton) > > On Thu, 2017-11-16 at 18:01 +0100, Knut Omang wrote: > > This parameter is intended to be used in a subsequent commit to kbuild to > > allow > > a convenient way to run checkpatch fr

[PATCH 6/7] checkpatch: Make --ignore-cfg look recursively for the file

2017-11-16 Thread Knut Omang
-by: Knut Omang --- scripts/checkpatch.pl | 44 ++-- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c17178e..a276eca 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl

[PATCH 1/7] checkpatch: Implement new --ignore-cfg parameter

2017-11-16 Thread Knut Omang
in) and as documentation of TODOs and dont's if there are well justified exceptions. Signed-off-by: Knut Omang Acked-by: Håkon Bugge Acked-by: Åsmund Østvold --- scripts/checkpatch.pl | 57 - 1 file changed, 57 insertions(+) diff --git a/sc

[PATCH 2/7] kbuild: Add P= command line flag to run checkpatch

2017-11-16 Thread Knut Omang
Add interpretation of a new environment variable P={1,2} in spirit of the C= option, but executing checkpatch instead of sparse. Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Acked-by: Åsmund Østvold --- Makefile | 20 +++- scripts/Makefile.build | 13

[PATCH 4/7] Documentation: Add documentation for the new P= Makefile option

2017-11-16 Thread Knut Omang
Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge Reviewed-by: Åsmund Østvold Reviewed-by: John Haxby Signed-off-by: Knut Omang --- Documentation/dev-tools/index.rst | 1 +- Documentation/dev-tools/run-checkpatch.rst | 105 ++- 2 files changed, 106 insertions

[PATCH 5/7] checkpatch: Improve --fix-inplace for TABSTOP

2017-11-16 Thread Knut Omang
le TAB, which is visually worse IMO. Reported-by: Håkon Bugge Signed-off-by: Knut Omang Reviewed-by: Håkon Bugge --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 387292f..c17178e 100755 --- a/

[PATCH 7/7] Documentation: Update checkpatch --ignore-cfg description

2017-11-16 Thread Knut Omang
When running checkpatch with --ignore-cfg it will now traverse the directories above the source file until a match is found. Reflect this enhanced behaviour in the documentation. Signed-off-by: Knut Omang --- Documentation/dev-tools/run-checkpatch.rst | 48 --- 1 file

[PATCH 0/7] Support for automatic checkpatch running in the kernel

2017-11-16 Thread Knut Omang
the checkpatch.cfg file(s) to have 0 errors or warnings at any commit boundary. The combined set is available here: git://github.com/knuto/linux.git branch checkpatch Comments and suggestions appreciated! Thanks, Knut Knut Omang (7): checkpatch: Implement new --ignore-cfg parameter kbui

[PATCH 3/7] checkpatch: Add a few convenience options to disable/modify features

2017-11-16 Thread Knut Omang
for directories that are "clean" according to the configuration. Signed-off-by: Knut Omang Acked-by: Håkon Bugge Acked-by: Åsmund Østvold --- scripts/checkpatch.pl | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-24 Thread Knut Omang
On Mon, 2017-04-24 at 10:14 -0600, Logan Gunthorpe wrote: > > On 24/04/17 01:36 AM, Knut Omang wrote: > > My first reflex when reading this thread was to think that this whole domain > > lends it self excellently to testing via Qemu. Could it be that doing this > > in  &g

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-24 Thread Knut Omang
On Mon, 2017-04-17 at 08:31 +1000, Benjamin Herrenschmidt wrote: > On Sun, 2017-04-16 at 10:34 -0600, Logan Gunthorpe wrote: > >  > > On 16/04/17 09:53 AM, Dan Williams wrote: > > > ZONE_DEVICE allows you to redirect via get_dev_pagemap() to retrieve > > > context about the physical address in ques

Re: [PATCH v2 2/8] ib_umem: Add a new, more generic ib_umem_get_attrs

2017-04-05 Thread Knut Omang
:31 +0200, Knut Omang wrote: > This call allows a full range of DMA attributes and also > DMA direction to be supplied and is just a refactor of the old ib_umem_get. > Reimplement ib_umem_get using the new generic call, > now a trivial implementation. > --- >  drivers/infiniban

Re: [PATCH v2 5/8] ib_uverbs: Add padding to end align ib_uverbs_reg_mr_resp

2016-09-20 Thread Knut Omang
On Tue, 2016-09-20 at 13:45 +0300, Yishai Hadas wrote: > On 9/16/2016 9:31 PM, Knut Omang wrote: > > > > The ib_uverbs_reg_mr_resp structure was not 64 bit end aligned > > as required by the protocol. This causes alignment issues > > if a device specific driver needs

Re: [PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered

2016-09-16 Thread Knut Omang
On Fri, 2016-09-16 at 13:28 -0700, Santosh Shilimkar wrote: > On 9/16/2016 11:31 AM, Knut Omang wrote: > > From: Dag Moxnes > > > > The process_mad function is an optional IB driver entry point > > allows a driver to intercept or modify MAD traffic. > > > &

Re: [PATCH v2 0/8] SIF related verbs patches

2016-09-16 Thread Knut Omang
On Fri, 2016-09-16 at 13:30 -0700, Santosh Shilimkar wrote: > Hi Knut, > > On 9/16/2016 11:31 AM, Knut Omang wrote: > > This patch set contains the changes and bug fixes necessary > > to support Oracle's new Infiniband HCA (SIF) from the kernel side. > > > &g

Re: [PATCH v2 8/8] ib_uverbs: Support for kernel implementation of XRC

2016-09-16 Thread Knut Omang
On Fri, 2016-09-16 at 13:31 -0600, Jason Gunthorpe wrote: > On Fri, Sep 16, 2016 at 08:31:19PM +0200, Knut Omang wrote: > > +++ b/include/uapi/rdma/ib_user_verbs.h > > @@ -725,6 +725,8 @@ struct ib_uverbs_send_wr { > > __u32 reserved; > >

[PATCH v2 6/8] ib_uverbs: Avoid vendor specific masking of attributes in query_qp

2016-09-16 Thread Knut Omang
This commit removes the implementation and use of the modify_qp_mask helper function from the generic OFED implementation and into individual device drivers. Like with use of the ib_modify_qp_is_ok function it should be up to each device driver how to handle bits set in the attribute masks. With

[PATCH v2 4/8] ib: Add udata argument to create_ah

2016-09-16 Thread Knut Omang
Most of the ib device driver entry points supports optional device specific parameter transfer between user space and kernel space via the udata argument - add a similar argument for ib_create_ah. Update all infiniband drivers to include this agument in their driver entry point implementation. ---

[PATCH v2 8/8] ib_uverbs: Support for kernel implementation of XRC

2016-09-16 Thread Knut Omang
e: struct ib_xrc_wr { ; struct ib_send_wr wr; } < subtype extensions will still extend ib_send_wr down here > Signed-off-by: Knut Omang --- drivers/infiniband/core/uverbs_cmd.c | 40 +++-- include/rdma/ib_verbs.h | 12 +- include/uapi/rdma/ib_user

[PATCH v2 7/8] ib_{uverbs/core}: add new ib_create_qp_ex with udata arg

2016-09-16 Thread Knut Omang
Necessary to get device specific arguments through to XRC QPs. Added new local header file to serve as support interface between ib_core and ib_uverbs. Right now there is a lot of duplicate setup code in uverbs_cmd.c on the ib_uverbs side and verbs.c on the ib_core side. This commit is a quick fix

[PATCH v2 5/8] ib_uverbs: Add padding to end align ib_uverbs_reg_mr_resp

2016-09-16 Thread Knut Omang
ib_uverbs_reg_mr to consider the case where the kernel has been updated, but user space still has the old length without padding. Signed-off-by: Knut Omang --- drivers/infiniband/core/uverbs_cmd.c | 10 ++ include/uapi/rdma/ib_user_verbs.h| 1 + 2 files changed, 7 insertions(+), 4 deletions

[PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered

2016-09-16 Thread Knut Omang
From: Dag Moxnes The process_mad function is an optional IB driver entry point allows a driver to intercept or modify MAD traffic. This fix allows MAD traffic to flow down to the device also when MAD traffic is completely handled by the device and no process_mad function is provided. SIF, the n

[PATCH v2 2/8] ib_umem: Add a new, more generic ib_umem_get_attrs

2016-09-16 Thread Knut Omang
This call allows a full range of DMA attributes and also DMA direction to be supplied and is just a refactor of the old ib_umem_get. Reimplement ib_umem_get using the new generic call, now a trivial implementation. --- drivers/infiniband/core/umem.c | 23 +++ include/rdma/ib_um

[PATCH v2 3/8] ib_umem: With the new ib_umem_get_attrs, simplify ib_umem_get

2016-09-16 Thread Knut Omang
d also dma direction, and eliminate the dmasync parameter from the ib_umem_get call, Signed-off-by: Knut Omang --- drivers/infiniband/core/umem.c | 8 ++-- drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 +- drivers/infiniband/hw/cxgb4/mem.c| 2 +- drivers/infiniban

[PATCH v2 0/8] SIF related verbs patches

2016-09-16 Thread Knut Omang
avoid breaking binary compatibility with user space provider libraries built with old libibverbs. - Removed "ib_verbs: Add a new qp create flag to request features for Ethernet over IB" Dag Moxnes (1): ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registe

Re: [PATCH v4 0/6] virtio core DMA API conversion

2015-11-10 Thread Knut Omang
On Tue, 2015-11-10 at 13:04 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2015-11-09 at 16:46 -0800, Andy Lutomirski wrote: > > The problem here is that in some of the problematic cases the > > virtio > > driver may not even be loaded. If someone runs an L1 guest with an > > IOMMU-bypassing virti