userptr support in drm drivers
Hi all,
While checking the openSUSE kernel configuration, I noticed a couple oddities regarding userptr support in the i915, radeon and amdgpu drm drivers. I'll like to discuss the current situation and come up with an agreement on how this could be cleaned up.
Firstly, i915. This driver has userptr code under #if defined(CONFIG_MMU_NOTIFIER), however it neither selects this option nor depends on it. Given that CONFIG_MMU_NOTIFIER is not a user-visible option (it can only be selected by other kernel configuration options), it means that you get full userptr support or not depending on other unrelated kernel options. This isn't good.
Secondly, radeon and amdgpu. They are slightly better in that they have Kconfig options selecting CONFIG_MMU_NOTIFIER (DRM_RADEON_USERPTR and DRM_AMDGPU_USERPTR respectively.) However I still find it confusing that full userptr support is under #if defined(CONFIG_MMU_NOTIFIER), and not under #if defined(CONFIG_RADEON_USERPTR), resp. #if defined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.
I am not too familiar with MMU and this userptr stuff, but from where I stand, only two approaches make sense:
* Either there is a good reason why people may want to disable full userptr support. In this case options CONFIG_RADEON_USERPTR and CONFIG_AMDGPU_USERPTR should really enable the code in question, it should not be built without these options. And a similar option should be introduced for the i915 driver to the same effect. Or alternatively a single option for the whole DRM subsystem may make more sense, as I doubt anyone would want to enable support in one driver and disable it in another.
* Or there is no specific reason why people would want to disable full userptr support, in which case options CONFIG_RADEON_USERPTR and CONFIG_AMDGPU_USERPTR should be removed and all 3 drivers should unconditionally select CONFIG_MMU_NOTIFIER.
If the sole purpose of these these settings is for development or debugging purposes, I'd go for option 1 with a run-time option to disable full userptr (drm.userptr=ro or some such.)
As a general rule, fewer configuration options is better.
Once a decision is made, I volunteer to write the patches.
Thanks,
Signature · 6 lines
Jean Delvare SUSE L3 Support _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
At least for Radeon and Amdgpu the current situation is actually what we want.
Quoted 5 lines
However I still find it confusing
that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.
Which is perfectly fine. Userptr support should be enabled when MMU_NOTIFIER is available.
How this becomes available is a different story. You can explicitly enable it which then pulls in the MMU_NOTIFIER dependency or you just enable it when you have the notfier anyway because of some other dependency.
That we have two options doing the same is just a matter of branching of amdgpu from radeon and not cleaning up the configuration options. So feel free to cleaning this up and write a patch which makes pulling in MMU_NOTIFIER as a general DRM option.
Regards,
Christian.
Am 16.02.2016 um 20:58 schrieb Jean Delvare:
Quoted 43 lines
Hi all,
While checking the openSUSE kernel configuration, I noticed a couple oddities regarding userptr support in the i915, radeon and amdgpu drm drivers. I'll like to discuss the current situation and come up with an agreement on how this could be cleaned up.
Firstly, i915. This driver has userptr code under #if
defined(CONFIG_MMU_NOTIFIER), however it neither selects this option nor depends on it. Given thatCONFIG_MMU_NOTIFIERis not a user-visible option (it can only be selected by other kernel configuration options), it means that you get full userptr support or not depending on other unrelated kernel options. This isn't good.Secondly, radeon and amdgpu. They are slightly better in that they have
Kconfigoptions selectingCONFIG_MMU_NOTIFIER(DRM_RADEON_USERPTRandDRM_AMDGPU_USERPTRrespectively.) However I still find it confusing that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.I am not too familiar with MMU and this userptr stuff, but from where I stand, only two approaches make sense:
* Either there is a good reason why people may want to disable full userptr support. In this case options
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRshould really enable the code in question, it should not be built without these options. And a similar option should be introduced for the i915 driver to the same effect. Or alternatively a single option for the whole DRM subsystem may make more sense, as I doubt anyone would want to enable support in one driver and disable it in another.* Or there is no specific reason why people would want to disable full userptr support, in which case options
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRshould be removed and all 3 drivers should unconditionally selectCONFIG_MMU_NOTIFIER.If the sole purpose of these these settings is for development or debugging purposes, I'd go for option 1 with a run-time option to disable full userptr (drm.userptr=ro or some such.)
Quoted 5 lines
As a general rule, fewer configuration options is better.
Once a decision is made, I volunteer to write the patches.
Thanks,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Christian König
At least for Radeon and Amdgpu the current situation is actually what we want.
Quoted 5 lines
However I still find it confusing
that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.Which is perfectly fine. Userptr support should be enabled when
MMU_NOTIFIERis available.
Quoted 8 lines
How this becomes available is a different story. You can explicitly enable it which then pulls in the
MMU_NOTIFIERdependency or you just enable it when you have the notfier anyway because of some other dependency.That we have two options doing the same is just a matter of branching of amdgpu from radeon and not cleaning up the configuration options. So feel free to cleaning this up and write a patch which makes pulling in
MMU_NOTIFIERas a general DRM option.
Yeah I like that flow. Jean, if you want to bring i915 into alignment with radone by adding a I915_USERPTR option that selects MMU_NOTIFIER (probably default y since vulkan needs this), then I very much want will merge it. Distro kernels pretty much all select MMU_NOTIFIER already for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.
Thanks, Daniel
Quoted 58 lines
Regards,
Christian.Am 16.02.2016 um 20:58 schrieb Jean Delvare:
Quoted 43 lines
Hi all,
While checking the openSUSE kernel configuration, I noticed a couple oddities regarding userptr support in the i915, radeon and amdgpu drm drivers. I'll like to discuss the current situation and come up with an agreement on how this could be cleaned up.
Firstly, i915. This driver has userptr code under #if
defined(CONFIG_MMU_NOTIFIER), however it neither selects this option nor depends on it. Given thatCONFIG_MMU_NOTIFIERis not a user-visible option (it can only be selected by other kernel configuration options), it means that you get full userptr support or not depending on other unrelated kernel options. This isn't good.Secondly, radeon and amdgpu. They are slightly better in that they have
Kconfigoptions selectingCONFIG_MMU_NOTIFIER(DRM_RADEON_USERPTRandDRM_AMDGPU_USERPTRrespectively.) However I still find it confusing that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.I am not too familiar with MMU and this userptr stuff, but from where I stand, only two approaches make sense:
* Either there is a good reason why people may want to disable full userptr support. In this case options
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRshould really enable the code in question, it should not be built without these options. And a similar option should be introduced for the i915 driver to the same effect. Or alternatively a single option for the whole DRM subsystem may make more sense, as I doubt anyone would want to enable support in one driver and disable it in another.* Or there is no specific reason why people would want to disable full userptr support, in which case options
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRshould be removed and all 3 drivers should unconditionally selectCONFIG_MMU_NOTIFIER.If the sole purpose of these these settings is for development or debugging purposes, I'd go for option 1 with a run-time option to disable full userptr (drm.userptr=ro or some such.)
Quoted 5 lines
As a general rule, fewer configuration options is better.
Once a decision is made, I volunteer to write the patches.
Thanks,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Daniel,
Quoted 16 lines · Daniel Vetter
Quoted 15 lines · Christian König
At least for Radeon and Amdgpu the current situation is actually what we want.
Quoted 5 lines
However I still find it confusing
that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.Which is perfectly fine. Userptr support should be enabled when
MMU_NOTIFIERis available.How this becomes available is a different story. You can explicitly enable it which then pulls in the
MMU_NOTIFIERdependency or you just enable it when you have the notfier anyway because of some other dependency.
Quoted 8 lines
Quoted 4 lines
That we have two options doing the same is just a matter of branching of amdgpu from radeon and not cleaning up the configuration options. So feel free to cleaning this up and write a patch which makes pulling in
MMU_NOTIFIERas a general DRM option.Yeah I like that flow. Jean, if you want to bring i915 into alignment with radone by adding a
I915_USERPTRoption that selectsMMU_NOTIFIER(probably default y since vulkan needs this), then I very much want will merge it.
Maybe I was not clear enough in my original post, but I am really advocating for FEWER kconfig options, not more. Plus I just explained why I think the radeon and amdgpu drivers do it wrong, so I'm certainly not going to align i915 on that.
Quoted 3 lines
Distro kernels pretty much all select
MMU_NOTIFIERalready for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.
The current situation is actually very surprising and this is what I would like to change. The options of one driver depending on choices made somewhere else is utterly confusing. CONFIG_RADEON_USERPTR and CONFIG_AMDGPU_USERPTR give the user a little more control where i915 gives none, but that's only in one direction (you can force full userptr support in, but you can't force it out.)
I'm still waiting for someone to explain why we can't just unconditionally select MMU_NOTIFIER in these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it.
Signature · 6 lines
Jean Delvare SUSE L3 Support _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Jean,
Am 18.02.2016 um 09:59 schrieb Jean Delvare:
Quoted 34 lines
Hi Daniel,
Quoted 16 lines · Daniel Vetter
Quoted 15 lines · Christian König
At least for Radeon and Amdgpu the current situation is actually what we want.
Quoted 5 lines
However I still find it confusing
that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.Which is perfectly fine. Userptr support should be enabled when
MMU_NOTIFIERis available.How this becomes available is a different story. You can explicitly enable it which then pulls in the
MMU_NOTIFIERdependency or you just enable it when you have the notfier anyway because of some other dependency.Quoted 7 lines
Quoted 4 lines
That we have two options doing the same is just a matter of branching of amdgpu from radeon and not cleaning up the configuration options. So feel free to cleaning this up and write a patch which makes pulling in
MMU_NOTIFIERas a general DRM option.Yeah I like that flow. Jean, if you want to bring i915 into alignment with radone by adding a
I915_USERPTRoption that selectsMMU_NOTIFIER(probably default y since vulkan needs this), then I very much want will merge it.Maybe I was not clear enough in my original post, but I am really advocating for FEWER kconfig options, not more. Plus I just explained why I think the radeon and amdgpu drivers do it wrong, so I'm certainly not going to align i915 on that.
Quoted 3 lines
Distro kernels pretty much all select
MMU_NOTIFIERalready for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.
Quoted 6 lines
The current situation is actually very surprising and this is what I would like to change. The options of one driver depending on choices made somewhere else is utterly confusing.
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRgive the user a little more control where i915 gives none, but that's only in one direction (you can force full userptr support in, but you can't force it out.)
As I said, that is perfectly fine and exactly what we want.
Quoted 6 lines
I'm still waiting for someone to explain why we can't just unconditionally select
MMU_NOTIFIERin these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it.
Adding the MMU Notifier causes overhead in the MM which people want to avoid when they don't need userptr support.
We used to select MMU_NOTIFIER unconditionally before and explicitly added this option on user request. So yes it is clearly necessary.
The additional userptr support code in the drivers are negligible so always enabling the code when the MMU Notifier is available is also perfectly fine.
So if you want to clean it up make a common DRM option which selects MMU Notifier if it isn't already selected.
Regards,
Christian.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Christian,
Quoted 9 lines · Christian König
Am 18.02.2016 um 09:59 schrieb Jean Delvare:
Quoted 8 lines
Maybe I was not clear enough in my original post, but I am really advocating for FEWER kconfig options, not more. Plus I just explained why I think the radeon and amdgpu drivers do it wrong, so I'm certainly not going to align i915 on that.
Quoted 3 lines
Distro kernels pretty much all select
MMU_NOTIFIERalready for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.
Quoted 8 lines
Quoted 6 lines
The current situation is actually very surprising and this is what I would like to change. The options of one driver depending on choices made somewhere else is utterly confusing.
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRgive the user a little more control where i915 gives none, but that's only in one direction (you can force full userptr support in, but you can't force it out.)As I said, that is perfectly fine and exactly what we want.
I don't know what "we" represent in your sentence, but I doubt a majority of users want that.
Quoted 7 lines
Quoted 6 lines
I'm still waiting for someone to explain why we can't just unconditionally select
MMU_NOTIFIERin these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it.
Quoted 5 lines
Adding the MMU Notifier causes overhead in the MM which people want to avoid when they don't need userptr support.
We used to select
MMU_NOTIFIERunconditionally before and explicitly added this option on user request. So yes it is clearly necessary.
Thanks for the explanation.
Can you tell me more about the overhead? Is it actually measurable? Which people need this degree of optimization?
Are the i915, radeon or amdgpu drm drivers used on embedded systems?
Just because people asked for something doesn't mean that implementing it is a good idea. Keeping things simple is a valid goal on its own. Anyone could ask for features they don't need to become options they can disable, but in the long run this approach can't be sustained.
Quoted 3 lines
The additional userptr support code in the drivers are negligible so always enabling the code when the MMU Notifier is available is also perfectly fine.
Indeed this is a small amount of code. OTOH you have ifdefs in place anyway. Using the right ones would turn the option into a real option, i.e. the user decides to enable a feature or not. Not a "you may or may not get the feature" option as we have at the moment. More control to the user and less confusion.
Quoted 2 lines
So if you want to clean it up make a common DRM option which selects MMU Notifier if it isn't already selected.
I will, as it will still be an improvement compared to the current situation. But I still believe this is confusing in its current form.
If a minority of users need to opt out from MMU_NOTIFIER, then DRM_RADEON_USERPTR and friends should default to y and be hidden behind EXPERT. That way you avoid asking yet more questions to everyone else. Would that work for you?
Signature · 6 lines
Jean Delvare SUSE L3 Support _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines
If a minority of users need to opt out from
MMU_NOTIFIER, thenDRM_RADEON_USERPTRand friends should default to y and be hidden behind EXPERT. That way you avoid asking yet more questions to everyone else. Would that work for you?
No, just the other way around.
When MMU_NOTIFIER is selected anyway we actually don't want to display the option, but that's not possible for none menu entries IIRC the Kconfig correctly.
If somebody configures the kernel and don't selects any of the other dependencies for MMU_NOTIFIER the feature should not be available by default.
Making it an expert option is fine with me.
Regards,
Christian.
Am 19.02.2016 um 15:11 schrieb Jean Delvare:
Quoted 56 lines
Hi Christian,
Quoted 9 lines · Christian König
Am 18.02.2016 um 09:59 schrieb Jean Delvare:
Quoted 8 lines
Maybe I was not clear enough in my original post, but I am really advocating for FEWER kconfig options, not more. Plus I just explained why I think the radeon and amdgpu drivers do it wrong, so I'm certainly not going to align i915 on that.
Quoted 3 lines
Distro kernels pretty much all select
MMU_NOTIFIERalready for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.Quoted 7 lines
Quoted 6 lines
The current situation is actually very surprising and this is what I would like to change. The options of one driver depending on choices made somewhere else is utterly confusing.
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRgive the user a little more control where i915 gives none, but that's only in one direction (you can force full userptr support in, but you can't force it out.)As I said, that is perfectly fine and exactly what we want.
I don't know what "we" represent in your sentence, but I doubt a majority of users want that.
Quoted 11 lines
Quoted 6 lines
I'm still waiting for someone to explain why we can't just unconditionally select
MMU_NOTIFIERin these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it.Adding the MMU Notifier causes overhead in the MM which people want to avoid when they don't need userptr support.
We used to select
MMU_NOTIFIERunconditionally before and explicitly added this option on user request. So yes it is clearly necessary.Thanks for the explanation.
Can you tell me more about the overhead? Is it actually measurable? Which people need this degree of optimization?
Are the i915, radeon or amdgpu drm drivers used on embedded systems?
Just because people asked for something doesn't mean that implementing it is a good idea. Keeping things simple is a valid goal on its own. Anyone could ask for features they don't need to become options they can disable, but in the long run this approach can't be sustained.
Quoted 3 lines
The additional userptr support code in the drivers are negligible so always enabling the code when the MMU Notifier is available is also perfectly fine.
Indeed this is a small amount of code. OTOH you have ifdefs in place anyway. Using the right ones would turn the option into a real option, i.e. the user decides to enable a feature or not. Not a "you may or may not get the feature" option as we have at the moment. More control to the user and less confusion.
Quoted 2 lines
So if you want to clean it up make a common DRM option which selects MMU Notifier if it isn't already selected.
Quoted 8 lines
I will, as it will still be an improvement compared to the current situation. But I still believe this is confusing in its current form.
If a minority of users need to opt out from
MMU_NOTIFIER, thenDRM_RADEON_USERPTRand friends should default to y and be hidden behind EXPERT. That way you avoid asking yet more questions to everyone else. Would that work for you?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Christian König
Quoted 4 lines
If a minority of users need to opt out from
MMU_NOTIFIER, thenDRM_RADEON_USERPTRand friends should default to y and be hidden behind EXPERT. That way you avoid asking yet more questions to everyone else. Would that work for you?No, just the other way around.
When
MMU_NOTIFIERis selected anyway we actually don't want to display the option, but that's not possible for none menu entries IIRC theKconfigcorrectly.
Quoted 5 lines
If somebody configures the kernel and don't selects any of the other dependencies for
MMU_NOTIFIERthe feature should not be available by default.Making it an expert option is fine with me.
Concurred, if we do this across all drivers supporting userptr. -Daniel
Quoted 70 lines
Regards,
Christian.Am 19.02.2016 um 15:11 schrieb Jean Delvare:
Quoted 64 lines
Hi Christian,
Quoted 9 lines · Christian König
Am 18.02.2016 um 09:59 schrieb Jean Delvare:
Quoted 8 lines
Maybe I was not clear enough in my original post, but I am really advocating for FEWER kconfig options, not more. Plus I just explained why I think the radeon and amdgpu drivers do it wrong, so I'm certainly not going to align i915 on that.
Quoted 3 lines
Distro kernels pretty much all select
MMU_NOTIFIERalready for unrelated reasons, but it's good to be less suprising for everyone who builds their own custom kernel.Quoted 7 lines
Quoted 6 lines
The current situation is actually very surprising and this is what I would like to change. The options of one driver depending on choices made somewhere else is utterly confusing.
CONFIG_RADEON_USERPTRandCONFIG_AMDGPU_USERPTRgive the user a little more control where i915 gives none, but that's only in one direction (you can force full userptr support in, but you can't force it out.)As I said, that is perfectly fine and exactly what we want.
I don't know what "we" represent in your sentence, but I doubt a majority of users want that.
Quoted 11 lines
Quoted 6 lines
I'm still waiting for someone to explain why we can't just unconditionally select
MMU_NOTIFIERin these 3 drivers and be done with it. That's less work at kernel configuration time AND fewer preprocessing conditionals within the code, so easier/better testing coverage and more readable code. We would need a very good reason for NOT doing it.Adding the MMU Notifier causes overhead in the MM which people want to avoid when they don't need userptr support.
We used to select
MMU_NOTIFIERunconditionally before and explicitly added this option on user request. So yes it is clearly necessary.Thanks for the explanation.
Can you tell me more about the overhead? Is it actually measurable? Which people need this degree of optimization?
Are the i915, radeon or amdgpu drm drivers used on embedded systems?
Just because people asked for something doesn't mean that implementing it is a good idea. Keeping things simple is a valid goal on its own. Anyone could ask for features they don't need to become options they can disable, but in the long run this approach can't be sustained.
Quoted 3 lines
The additional userptr support code in the drivers are negligible so always enabling the code when the MMU Notifier is available is also perfectly fine.
Indeed this is a small amount of code. OTOH you have ifdefs in place anyway. Using the right ones would turn the option into a real option, i.e. the user decides to enable a feature or not. Not a "you may or may not get the feature" option as we have at the moment. More control to the user and less confusion.
Quoted 2 lines
So if you want to clean it up make a common DRM option which selects MMU Notifier if it isn't already selected.
I will, as it will still be an improvement compared to the current situation. But I still believe this is confusing in its current form.
If a minority of users need to opt out from
MMU_NOTIFIER, thenDRM_RADEON_USERPTRand friends should default to y and be hidden behind EXPERT. That way you avoid asking yet more questions to everyone else. Would that work for you?
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Christian,
Quoted 8 lines · Christian König
At least for Radeon and Amdgpu the current situation is actually what we want.
Quoted 5 lines
However I still find it confusing
that full userptr support is under #ifdefined(CONFIG_MMU_NOTIFIER), and not under #ifdefined(CONFIG_RADEON_USERPTR), resp. #ifdefined(CONFIG_AMDGPU_USERPTR). It means that full userptr support may be included even if these options are disabled.
Quoted 6 lines
Which is perfectly fine. Userptr support should be enabled when
MMU_NOTIFIERis available.How this becomes available is a different story. You can explicitly enable it which then pulls in the
MMU_NOTIFIERdependency or you just enable it when you have the notfier anyway because of some other dependency.
Again, how is this any better than just selecting MMU_NOTIFIER unconditionally?
The proliferation of kconfig options is not helping.
Quoted 4 lines
That we have two options doing the same is just a matter of branching of amdgpu from radeon and not cleaning up the configuration options. So feel free to cleaning this up and write a patch which makes pulling in
MMU_NOTIFIERas a general DRM option.
Signature · 6 lines
Jean Delvare SUSE L3 Support _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel