lkml.org 
[lkml]   [2021]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 04/18] driver core: platform: Add driver dma ownership management
On Mon, Dec 06, 2021 at 06:36:27AM -0800, Christoph Hellwig wrote:
> I really hate the amount of boilerplate code that having this in each
> bus type causes.

+1

I liked the first version of this series better with the code near
really_probe().

Can we go back to that with some device_configure_dma() wrapper
condtionally called by really_probe as we discussed?

> Between that and the suggestion from Joerg I wonder if we could do the
> following again:
>
> - add new no_kernel_dma flag to struct device_driver
> - set this flag for the various vfio drivers
> - skip claiming the kernel dma ownership for those (or rather release
> it if the suggestion from Joerg works out)

v1 did exactly this.

Jason

\
 
 \ /
  Last update: 2021-12-06 16:10    [W:0.158 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site