Re: [PATCH] Documentation: coding-style: don't encourage WARN*()

2024-04-18 Thread Jason Gunthorpe
On Mon, Apr 15, 2024 at 09:26:40AM -0700, Kees Cook wrote: > On Mon, Apr 15, 2024 at 10:35:21AM +0200, Greg KH wrote: > > On Mon, Apr 15, 2024 at 01:07:41AM -0700, Christoph Hellwig wrote: > > > No, this advice is wronger than wrong. If you set panic_on_warn you > > > get to keep the pieces. > >

Re: [PATCH v5 8/8] device-dax: compound devmap support

2021-11-19 Thread Jason Gunthorpe
On Fri, Nov 19, 2021 at 07:26:44PM +, Joao Martins wrote: > On 11/19/21 16:55, Jason Gunthorpe wrote: > > On Fri, Nov 19, 2021 at 04:12:18PM +, Joao Martins wrote: > > > >>> Dan, any thoughts (see also below) ? You probably hold all that > >>>

Re: [PATCH v5 8/8] device-dax: compound devmap support

2021-11-19 Thread Jason Gunthorpe
On Fri, Nov 19, 2021 at 04:12:18PM +, Joao Martins wrote: > > Dan, any thoughts (see also below) ? You probably hold all that > > history since its inception on commit 2232c6382a4 ("device-dax: Enable > > page_mapping()") > > and commit 35de299547d1 ("device-dax: Set page->index"). > > > Bel

Re: [PATCH v5 8/8] device-dax: compound devmap support

2021-11-15 Thread Jason Gunthorpe
On Mon, Nov 15, 2021 at 01:11:32PM +0100, Joao Martins wrote: > On 11/12/21 16:34, Jason Gunthorpe wrote: > > On Fri, Nov 12, 2021 at 04:08:24PM +0100, Joao Martins wrote: > > > >> diff --git a/drivers/dax/device.c b/drivers/dax/device.c > >> index a65c67ab5ee

Re: [PATCH v5 0/8] mm, dax: Introduce compound pages in devmap

2021-11-12 Thread Jason Gunthorpe
On Fri, Nov 12, 2021 at 04:08:16PM +0100, Joao Martins wrote: > This series converts device-dax to use compound pages, and moves away from the > 'struct page per basepage on PMD/PUD' that is done today. Doing so, unlocks a > few noticeable improvements on unpin_user_pages() and makes device-dax+al

Re: [PATCH v5 8/8] device-dax: compound devmap support

2021-11-12 Thread Jason Gunthorpe
On Fri, Nov 12, 2021 at 04:08:24PM +0100, Joao Martins wrote: > diff --git a/drivers/dax/device.c b/drivers/dax/device.c > index a65c67ab5ee0..0c2ac97d397d 100644 > +++ b/drivers/dax/device.c > @@ -192,6 +192,42 @@ static vm_fault_t __dev_dax_pud_fault(struct dev_dax > *dev_dax, > } > #endif /*

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-18 Thread Jason Gunthorpe
On Wed, Sep 29, 2021 at 12:50:15PM +0100, Joao Martins wrote: > On 9/28/21 19:01, Jason Gunthorpe wrote: > > On Thu, Sep 23, 2021 at 05:51:04PM +0100, Joao Martins wrote: > >> So ... if pgmap accounting was removed from gup-fast then this patch > >> would be a lot simple

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-18 Thread Jason Gunthorpe
On Thu, Sep 30, 2021 at 01:01:14PM +1000, Alistair Popple wrote: > On Thursday, 30 September 2021 5:34:05 AM AEST Jason Gunthorpe wrote: > > On Wed, Sep 29, 2021 at 12:50:15PM +0100, Joao Martins wrote: > > > > > > If the get_dev_pagemap has to remain then it just mea

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-14 Thread Jason Gunthorpe
On Thu, Oct 14, 2021 at 06:56:51PM +0100, Joao Martins wrote: > > And I would document this relationship in the GUP side "This do/while > > is required because insert_pfn_pmd/pud() is used with compound pages > > smaller than the PUD/PMD size" so it isn't so confused with just > > "devmap" > > Al

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-13 Thread Jason Gunthorpe
On Wed, Oct 13, 2021 at 08:18:08PM +0100, Joao Martins wrote: > On 10/13/21 18:41, Jason Gunthorpe wrote: > > On Mon, Oct 11, 2021 at 04:53:29PM +0100, Joao Martins wrote: > >> On 10/8/21 12:54, Jason Gunthorpe wrote: > > > >>> The only optimization that might

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-13 Thread Jason Gunthorpe
On Mon, Oct 11, 2021 at 04:53:29PM +0100, Joao Martins wrote: > On 10/8/21 12:54, Jason Gunthorpe wrote: > > The only optimization that might work here is to grab the head, then > > compute the extent of tail pages and amalgamate them. Holding a ref on > > the head a

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-10-08 Thread Jason Gunthorpe
On Fri, Aug 27, 2021 at 03:58:13PM +0100, Joao Martins wrote: > @@ -2252,16 +2265,25 @@ static int __gup_device_huge(unsigned long pfn, > unsigned long addr, > ret = 0; > break; > } > - SetPageReferenced(page); > - p

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-09-30 Thread Jason Gunthorpe
On Thu, Sep 30, 2021 at 06:54:05PM +0100, Joao Martins wrote: > On 9/30/21 04:01, Alistair Popple wrote: > > On Thursday, 30 September 2021 5:34:05 AM AEST Jason Gunthorpe wrote: > >> On Wed, Sep 29, 2021 at 12:50:15PM +0100, Joao Martins wrote: > >> > >>>

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-09-29 Thread Jason Gunthorpe
On Wed, Sep 29, 2021 at 12:50:15PM +0100, Joao Martins wrote: > > If the get_dev_pagemap has to remain then it just means we have to > > flush before changing pagemap pointers > Right -- I don't think we should need it as that discussion on the other > thread goes. > > OTOH, using @pgmap might be

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-09-28 Thread Jason Gunthorpe
On Thu, Sep 23, 2021 at 05:51:04PM +0100, Joao Martins wrote: > On 8/31/21 6:05 PM, Jason Gunthorpe wrote: > >> Switching to similar iteration logic to unpin would look something like > >> this (still untested): > >> > >> for_each_compound

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-08-31 Thread Jason Gunthorpe
On Tue, Aug 31, 2021 at 01:34:04PM +0100, Joao Martins wrote: > On 8/30/21 2:07 PM, Jason Gunthorpe wrote: > > On Fri, Aug 27, 2021 at 07:34:54PM +0100, Joao Martins wrote: > >> On 8/27/21 5:25 PM, Jason Gunthorpe wrote: > >>> On Fri, Aug 27, 2021 at 03:58:

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-08-30 Thread Jason Gunthorpe
On Fri, Aug 27, 2021 at 07:34:54PM +0100, Joao Martins wrote: > On 8/27/21 5:25 PM, Jason Gunthorpe wrote: > > On Fri, Aug 27, 2021 at 03:58:13PM +0100, Joao Martins wrote: > > > >> #if defined(CONFIG_ARCH_HAS_PTE_DEVMAP) && > >> defined(CONF

Re: [PATCH v4 08/14] mm/gup: grab head page refcount once for group of subpages

2021-08-27 Thread Jason Gunthorpe
On Fri, Aug 27, 2021 at 03:58:13PM +0100, Joao Martins wrote: > #if defined(CONFIG_ARCH_HAS_PTE_DEVMAP) && > defined(CONFIG_TRANSPARENT_HUGEPAGE) > static int __gup_device_huge(unsigned long pfn, unsigned long addr, >unsigned long end, unsigned int flags, >

Re: [PATCH 00/12] infiniband kernel-doc fixes & driver-api/ chapter

2019-10-23 Thread Jason Gunthorpe
On Wed, Oct 23, 2019 at 07:54:46AM -0400, Dennis Dalessandro wrote: > On 10/22/2019 2:41 PM, Jason Gunthorpe wrote: > > On Wed, Oct 09, 2019 at 08:52:39PM -0700, rd.dun...@gmail.com wrote: > > > > > > This patch series cleans up lots of kernel-doc in drivers/infinib

Re: [PATCH 00/12] infiniband kernel-doc fixes & driver-api/ chapter

2019-10-22 Thread Jason Gunthorpe
On Wed, Oct 09, 2019 at 08:52:39PM -0700, rd.dun...@gmail.com wrote: > > This patch series cleans up lots of kernel-doc in drivers/infiniband/ > and then adds an infiniband.rst file. > > It also changes a few instances of non-exported functions from kernel-doc > notation back to non-kernel-doc co

Re: [PATCH 05/12] infiniband: fix ulp/opa_vnic/opa_vnic_encap.h kernel-doc notation

2019-10-22 Thread Jason Gunthorpe
On Wed, Oct 09, 2019 at 08:52:44PM -0700, rd.dun...@gmail.com wrote: > Make reserved struct fields "private:" so that they don't need to > be added to the kernel-doc notation. This removes 24 warnings. > +++ linux-next-20191009/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h > @@ -129,21 +129,31

Re: [PATCH 12/12] infiniband: add a Documentation driver-api chapter for Infiniband

2019-10-21 Thread Jason Gunthorpe
Randy, What do you want to do with this series? Is this error below related needing respin, or just noise? Thanks, Jason On Thu, Oct 10, 2019 at 11:45:28PM +0800, kbuild test robot wrote: > Hi, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on rdma/for-

Re: [PATCH] Documentation/infiniband: update name of some functions

2019-09-12 Thread Jason Gunthorpe
On Tue, Sep 03, 2019 at 02:45:19PM +0200, Guoqing Jiang wrote: > Update the document since those functions had been renamed in below. > > commit 0a18cfe4f6d7d ("IB/core: Rename ib_create_ah to rdma_create_ah") > commit 67b985b6c7553 ("IB/core: Rename ib_modify_ah to rdma_modify_ah") > commit bfbfd

Re: [PATCH 35/39] docs: infiniband: add it to the driver-api bookset

2019-07-08 Thread Jason Gunthorpe
On Sat, Jul 06, 2019 at 08:19:50AM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 3 Jul 2019 15:08:02 -0300 > Jason Gunthorpe escreveu: > > > On Fri, Jun 28, 2019 at 09:30:28AM -0300, Mauro Carvalho Chehab wrote: > > > While this contains some uAPI stuff, it was intend

Re: [PATCH 35/39] docs: infiniband: add it to the driver-api bookset

2019-07-03 Thread Jason Gunthorpe
On Fri, Jun 28, 2019 at 09:30:28AM -0300, Mauro Carvalho Chehab wrote: > While this contains some uAPI stuff, it was intended to be > read by a kernel doc. So, let's not move it to a different > dir, but, instead, just add it to the driver-api bookset. > > Signed-off-by: Mauro Carvalho Chehab >

Re: [PATCH 01/43] docs: infiniband: convert docs to ReST and rename to *.rst

2019-07-03 Thread Jason Gunthorpe
is not linked to the main index.rst file, in order to avoid build warnings. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jason Gunthorpe Thanks, Jason

Re: [PATCH v3 13/33] docs: infiniband: convert docs to ReST and rename to *.rst

2019-06-25 Thread Jason Gunthorpe
On Sat, Jun 08, 2019 at 11:27:03PM -0300, Mauro Carvalho Chehab wrote: > The InfiniBand docs are plain text with no markups. > So, all we needed to do were to add the title markups and > some markup sequences in order to properly parse tables, > lists and literal blocks. > > At its new index.rst,

Re: [PATCH v3 13/33] docs: infiniband: convert docs to ReST and rename to *.rst

2019-06-10 Thread Jason Gunthorpe
On Sat, Jun 08, 2019 at 11:27:03PM -0300, Mauro Carvalho Chehab wrote: > The InfiniBand docs are plain text with no markups. > So, all we needed to do were to add the title markups and > some markup sequences in order to properly parse tables, > lists and literal blocks. > > At its new index.rst,

Re: [PATCH v3 2/3] docs-rst: driver-api: Add infiniband interface documentation

2019-02-01 Thread Jason Gunthorpe
On Tue, Jan 22, 2019 at 12:00:34PM +0200, Joel Nider wrote: > A short document regarding the user verbs interface implementation on > the kernel side. Also, the corresponding index entry in the > documentation tree. > > Signed-off-by: Joel Nider > Documentation/driver-api/index.rst | 1 + >

Re: [PATCH v3 0/3] update infiniband uverbs documentation

2019-02-01 Thread Jason Gunthorpe
On Tue, Jan 22, 2019 at 12:00:32PM +0200, Joel Nider wrote: > A small patchset to update the verbs API documentation with some > information regarding the ioctl syscall. First patch converts the > file format to ReST, since this is the new preferred format, moves > the file to Documentation/userspa

[PATCH v5] coding-style: Clarify the expectations around bool

2019-01-18 Thread Jason Gunthorpe
checkpatch warning. Link: https://lkml.kernel.org/r/ca+55afwvzk1ofb9t2v014ptakfhtvan_zj2dojncy3x6e4u...@mail.gmail.com Signed-off-by: Joe Perches Acked-by: Joe Perches Reviewed-by: Bart Van Assche Acked-by: Jani Nikula Reviewed-by: Joey Pabalinas Signed-off-by: Jason Gunthorpe

Re: [PATCH v2 1/2] docs-rst: Convert user verbs doc to rst

2019-01-15 Thread Jason Gunthorpe
On Tue, Jan 15, 2019 at 12:26:30PM +0200, Joel Nider wrote: > Move user_verbs from infiniband to userspace while changing the > format. Replace the existing Documentation/infiniband/user_verbs.txt > with Documentation/userspace-api/user_verbs.rst. No substantial changes > to the content - just some

Re: [PATCH 1/3] docs-rst: infiniband: Convert user verbs doc to rst

2019-01-14 Thread Jason Gunthorpe
On Mon, Jan 14, 2019 at 08:52:14PM +0200, Joel Nider wrote: > > > Jonathan/linux-doc: Can you Ack at least the build system parts of > > > this please? I can take it through the rdma tree, unless you prefer > > > otherwise? > > > > Can I make a request? This appears to be user-oriented documentat

Re: [PATCH v4] coding-style: Clarify the expectations around bool

2019-01-14 Thread Jason Gunthorpe
On Sun, Jan 13, 2019 at 05:01:39PM +0100, Federico Vaga wrote: > > -17) Don't re-invent the kernel macros > > +17) Using bool > > +-- > > + > > +The Linux kernel bool type is an alias for the C99 _Bool type. bool > > values can > > +only evaluate to 0 or 1, and implicit or explicit con

Re: [PATCH v4] coding-style: Clarify the expectations around bool

2019-01-14 Thread Jason Gunthorpe
On Sun, Jan 13, 2019 at 08:49:36AM -0800, Matthew Wilcox wrote: > On Thu, Jan 10, 2019 at 11:48:13PM +0000, Jason Gunthorpe wrote: > > +The Linux kernel bool type is an alias for the C99 _Bool type. bool values > > can > > +only evaluate to 0 or 1, and implicit or explic

Re: [PATCH v4] coding-style: Clarify the expectations around bool

2019-01-14 Thread Jason Gunthorpe
On Fri, Jan 11, 2019 at 07:29:40AM -1000, Joey Pabalinas wrote: > On Thu, Jan 10, 2019 at 11:48:13PM +0000, Jason Gunthorpe wrote: > > There has been some confusion since checkpatch started warning about bool > > use in structures, and people have been avoiding using it. > >

Re: [PATCH 1/3] docs-rst: infiniband: Convert user verbs doc to rst

2019-01-14 Thread Jason Gunthorpe
On Mon, Jan 14, 2019 at 11:00:49AM +0200, Joel Nider wrote: > Replace the existing Documentation/infiniband/user_verbs.txt with > Documentation/infiniband/user_verbs.rst. No substantial changes to > the content - just some minor reformatting to have the rendering > come out nicely. > This is in pre

Re: [PATCH 2/3] docs-rst: update index file with infiniband docs

2019-01-14 Thread Jason Gunthorpe
On Mon, Jan 14, 2019 at 11:00:50AM +0200, Joel Nider wrote: > Link the previously converted Documentation/infiniband/user_verbs.rst > to the main index by creating a new subsystem (Infiniband) under the > root document. This manifests as a new section under "Kernel API > Documentation" in the index

[PATCH v4] coding-style: Clarify the expectations around bool

2019-01-10 Thread Jason Gunthorpe
checkpatch warning. Link: https://lkml.kernel.org/r/ca+55afwvzk1ofb9t2v014ptakfhtvan_zj2dojncy3x6e4u...@mail.gmail.com Signed-off-by: Joe Perches Acked-by: Joe Perches Reviewed-by: Bart Van Assche Signed-off-by: Jason Gunthorpe --- Documentation/process/coding-style.rst | 38

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-23 Thread Jason Gunthorpe
On Fri, Nov 23, 2018 at 04:02:42PM +0800, Kenneth Lee wrote: > It is already part of Jean's patchset. And that's why I built my solution on > VFIO in the first place. But I think the concept of SVA and PASID is not > compatible with the original VFIO concept space. You would not share your > whol

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-21 Thread Jason Gunthorpe
On Wed, Nov 21, 2018 at 02:08:05PM +0800, Kenneth Lee wrote: > > But considering Jean's SVA stuff seems based on mmu notifiers, I have > > a hard time believing that it has any different behavior from RDMA's > > ODP, and if it does have different behavior, then it is probably just > > a bug in the

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Tue, Nov 20, 2018 at 11:07:02AM +0800, Kenneth Lee wrote: > On Mon, Nov 19, 2018 at 11:49:54AM -0700, Jason Gunthorpe wrote: > > Date: Mon, 19 Nov 2018 11:49:54 -0700 > > From: Jason Gunthorpe > > To: Kenneth Lee > > CC: Leon Romanovsky , Kenneth Lee

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 04:33:20PM -0500, Jerome Glisse wrote: > On Mon, Nov 19, 2018 at 02:26:38PM -0700, Jason Gunthorpe wrote: > > On Mon, Nov 19, 2018 at 03:26:15PM -0500, Jerome Glisse wrote: > > > On Mon, Nov 19, 2018 at 01:11:56PM -0700, Jason Gunthorpe wrote: > >

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 03:26:15PM -0500, Jerome Glisse wrote: > On Mon, Nov 19, 2018 at 01:11:56PM -0700, Jason Gunthorpe wrote: > > On Mon, Nov 19, 2018 at 02:46:32PM -0500, Jerome Glisse wrote: > > > > > > ?? How can O_DIRECT be fine but RDMA not

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 02:46:32PM -0500, Jerome Glisse wrote: > > ?? How can O_DIRECT be fine but RDMA not? They use exactly the same > > get_user_pages flow, right? Can we do what O_DIRECT does in RDMA and > > be fine too? > > > > AFAIK the only difference is the length of the race window. You'

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 02:17:21PM -0500, Jerome Glisse wrote: > On Mon, Nov 19, 2018 at 11:53:33AM -0700, Jason Gunthorpe wrote: > > On Mon, Nov 19, 2018 at 01:42:16PM -0500, Jerome Glisse wrote: > > > On Mon, Nov 19, 2018 at 11:27:52AM -0700, Jason Gunthorpe wrote: > >

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 01:42:16PM -0500, Jerome Glisse wrote: > On Mon, Nov 19, 2018 at 11:27:52AM -0700, Jason Gunthorpe wrote: > > On Mon, Nov 19, 2018 at 11:48:54AM -0500, Jerome Glisse wrote: > > > > > Just to comment on this, any infiniband driver which use umem a

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 05:14:05PM +0800, Kenneth Lee wrote: > If the hardware cannot share page table with the CPU, we then need to have > some way to change the device page table. This is what happen in ODP. It > invalidates the page table in device upon mmu_notifier call back. But this > cann

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jason Gunthorpe
On Mon, Nov 19, 2018 at 11:48:54AM -0500, Jerome Glisse wrote: > Just to comment on this, any infiniband driver which use umem and do > not have ODP (here ODP for me means listening to mmu notifier so all > infiniband driver except mlx5) will be affected by same issue AFAICT. > > AFAICT there is

Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-01 Thread Jason Gunthorpe
On Thu, Feb 01, 2018 at 07:02:33PM +0530, Aishwarya Pant wrote: > Add documentation for core and hardware specific infiniband interfaces. > The descriptions have been collected from git commit logs, reading > through code and data sheets. Some drivers have incomplete doc and are > annotated with th

Re: Documentation: infiniband: move sysfs interface to ABI

2018-01-09 Thread Jason Gunthorpe
On Mon, Jan 08, 2018 at 02:23:42PM +0530, Aishwarya Pant wrote: > Hi > > In Documentation/infiniband/sysfs.txt, there is a description of the > infiniband > sysfs interface and there also exists > Documentation/ABI/testing/sysfs-class-infiniband which is out of date. > > Would it be useful to mo

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

2017-12-18 Thread Jason Gunthorpe
On Mon, Dec 18, 2017 at 02:05:15PM +0100, Knut Omang wrote: > https://github.com/torvalds/linux/compare/master...knuto:runchecks Several of these to rdma/core do not look so big, you should think about sending them.. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-doc"

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

2017-12-18 Thread Jason Gunthorpe
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. > > Here is a list of the checkpatch messages for drivers/infiniband > sorted by type. > > Many of these might be corrected by using >

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

2017-12-17 Thread Jason Gunthorpe
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 against > > the policy that all subsystems should be treated equally. > > This is a tool to enable

Re: [PATCH v5 0/4] New Microsemi PCI Switch Management Driver

2017-03-01 Thread Jason Gunthorpe
On Wed, Mar 01, 2017 at 05:23:38PM -0700, Logan Gunthorpe wrote: > > That could help, but this would mean cdev would have to insert a shim > > to grab locks around the various file ops. > > Hmm, I was hoping something more along the lines of actually killing the > processes instead of just shimmi

Re: [PATCH v5 0/4] New Microsemi PCI Switch Management Driver

2017-03-01 Thread Jason Gunthorpe
On Wed, Mar 01, 2017 at 03:49:04PM -0700, Logan Gunthorpe wrote: > Seems to me like an elegant solution would be to implement a 'cdev_kill' > function which could kill all the processes using a cdev. Thus, during > an unbind, a driver could call it and be sure that there are no users > left and it

Re: [PATCH] switchtec: cleanup cdev init

2017-02-21 Thread Jason Gunthorpe
On Sun, Feb 19, 2017 at 09:22:35PM -0700, Logan Gunthorpe wrote: > Really, in any situation where there's a cdev and a device in the same > structure, the life cycles of the two become linked but their reference > counts are not and that is the problem here. Yes, the cdev must hold a kref on the

Re: [v7, 1/3] nand: pl353: Add basic driver for arm pl353 smc nand interface

2016-10-21 Thread Jason Gunthorpe
On Mon, Jun 08, 2015 at 11:38:36PM +0530, Punnaiah Choudary Kalluri wrote: > Add driver for arm pl353 static memory controller nand interface with > HW ECC support. This controller is used in xilinx zynq soc for interfacing > the nand flash memory. > > Signed-off-by: Punnaiah Choudary Kalluri > C

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Jason Gunthorpe
On Sun, Sep 11, 2016 at 07:24:45PM +0200, Christoph Hellwig wrote: > > > > I've posted some initial work toward a) a while ago, and once we > > > > Did it get merged? Do you have a pointer? > > http://www.spinics.net/lists/linux-rdma/msg31958.html Right, I remember that. Certainly the right dire

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Jason Gunthorpe
On Sun, Sep 11, 2016 at 05:35:22PM +0300, Leon Romanovsky wrote: > > We stil always have the common structure first. And at least for > > cgroups supports that's what matters. > > > > Re the actual structures - we'll really need to make sure we > > > > a) expose proper userspace abi headers in t

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-10 Thread Jason Gunthorpe
On Sat, Sep 10, 2016 at 06:14:42PM +0200, Christoph Hellwig wrote: > OFVWG meetings have absolutely zero relevance for Linux development. Well, to be fair there are a fair number of kernel developers on that particular call.. > More "flexibility" for drivers just means giving up on designing a >

Re: [PATCH v10 4/5] tpm: Initialize TPM and get durations and timeouts

2016-04-15 Thread Jason Gunthorpe
uf, size_t > count) > { > struct proxy_dev *proxy_dev = dev_get_drvdata(&chip->dev); > if (!proxy_dev) > return -EIO; Is that actually possible? It shouldn't be. If not please drop it an related. For both: Reviewed-by: Jason Gunthorpe Jason -- To uns

Re: [PATCH v9 2/4] tpm: Proxy driver for supporting multiple emulated TPMs

2016-04-11 Thread Jason Gunthorpe
On Mon, Apr 11, 2016 at 11:43:58AM +0300, Jarkko Sakkinen wrote: > On Thu, Apr 07, 2016 at 11:49:44AM -0400, Stefan Berger wrote: > > On 04/07/2016 08:35 AM, Jarkko Sakkinen wrote: > > >On Tue, Mar 29, 2016 at 02:19:12PM -0400, Stefan Berger wrote: > > >>This patch implements a proxy driver for sup

Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-19 Thread Jason Gunthorpe
On Wed, Mar 16, 2016 at 02:09:16PM +0200, Jarkko Sakkinen wrote: > On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote: > Alternative to this would be to have /dev/vtpmx create: > > * /dev/vtpm0 for the server > * /dev/tpm0 for the client > > This is how David Howell's PoC worked and t

Re: [PATCH v6 08/11] tpm: Driver for supporting multiple emulated TPMs

2016-03-10 Thread Jason Gunthorpe
On Thu, Mar 10, 2016 at 06:39:15PM +0200, Jarkko Sakkinen wrote: > Some might want to use this in a way that the created virtual device > is not closed when /dev/vtpmx is closed. No, there is no reason to create an API like that - TPM's are stateful, one cannot close the server side and re-connect