DRM GPUVA Manager & Nouveau VM_BIND UAPI
Subsystems (5)
Re: [PATCH drm-next 03/14] drm: manager to keep track of GPUs VA mappings
In reply to Matthew BrostQuoted 21 lines · Matthew Brost
Quoted 11 lines · Danilo Krummrich
This adds the infrastructure for a manager implementation to keep track of GPU virtual address (VA) mappings.
New UAPIs, motivated by Vulkan sparse memory bindings graphics drivers start implementing, allow userspace applications to request multiple and arbitrary GPU VA mappings of buffer objects. The DRM GPU VA manager is intended to serve the following purposes in this context.
1) Provide a dedicated range allocator to track GPU VA allocations and mappings, making use of the
drm_mmrange allocator.Quoted 8 lines
2) Generically connect GPU VA mappings to their backing buffers, in particular DRM GEM objects.
3) Provide a common implementation to perform more complex mapping operations on the GPU VA space. In particular splitting and merging of GPU VA mappings, e.g. for intersecting mapping requests or partial unmap requests.
Quoted 8 lines
Over the past week I've hacked together a PoC port of Xe to GPUVA [1], so far it seems really promising. 95% of the way to being feature equivalent of the current Xe VM bind implementation and have line of sight to getting sparse bindings implemented on top of GPUVA too. IMO this has basically everything we need for Xe with a few tweaks.
I am out until 2/14 but wanted to get my thoughts / suggestions out on the list before I leave.
Thanks for your work on that!
Quoted 32 lines
1. GPUVA post didn't support the way Xe does userptrs - a NULL GEM. I believe with [2], [3], and [4] GPUVA will support NULL GEMs. Also my thinking sparse binds will also have NULL GEMs, more on sparse bindings below.
2. I agree with Christian that
drm_mmprobably isn't what we want to base the GPUVA implementation on, rather a RB tree or Maple tree has been discussed. The implementation should be fairly easy to tune once we have benchmarks running so not to concerned here as we can figure this out down the line.3. In Xe we want create
xe_vm_oplist which inherits fromdrm_gpuva_opI've done this with a hack [5], I believe when we rebase we can do this with a custom callback to allocate a large op size.4. I'd like add user bits to
drm_gpuva_flagslike I do in [6]. This is similar toDMA_FENCE_FLAG_USER_BITS.5. In Xe we have VM prefetch operation which is needed for our compute UMD with page faults. I'd like add prefetch type of operation like we do in [7].
6. In Xe we have VM unbind all mappings for a GEM IOCTL, I'd like to add support to generate this operation list to GPUVA like we do in [8].
7. I've thought about how Xe will implement sparse mappings (read 0, writes dropped). My current thinking is a sparse mapping will be represented as a
drm_gpuvarather than region like in Nouveau. Making regions optional to me seems likes good idea rather than forcing the user of GPUVA code to create 1 large region for the manager as I currently do in the Xe PoC.
Quoted 5 lines
8. Personally I'd like the caller to own the locking for GEM
drm_gpuvalist (drm_gpuva_link_*, drm_gpuva_unlink_* functions). In Xe we almost certainly will have the GEM dma-resv lock when we touch this list so an extra lock here is redundant. Also it kinda goofy that caller owns the fordrm_gpuvainsertion / removal but not the locking for this list.
You really mean having the dma-resv lock aquired or have a fence on the dma_resv obj?
In Nouveau I map/unmap gpuvas in the ttm_device_funcs' move() callback. I only validate() and add a dma_resv fence to GEMs of new mappings. For unmap / remap operations I just take the GEMs gpuva list lock and check whether the GEM is evicted currently. If it is evicted currently (and hence unmapped) and I'm on a remap operation I can just do the update on the GPUVA space, since latest on the next EXEC ioctl() the corresponding GEM is validated and hence re-mapped correctly. If it's an unmap operation I just need to remove the GPUVA, since the corresponding mapping is already unmapped when it's GEM is evicted. If it's not evicted I proceed as usual.
Anyway, drm_gpuva_insert() and drm_gpuva_remove() (was drm_gpuva_destroy() before) do *not* implicitly add the gpuva to the GEM's gpuva list anymore. Instead there is only drm_gpuva_link() and drm_gpuva_unlink(), not doing any lockdep checks, but clearly documenting that the caller is resposible to take care of mutual exclusion.
Quoted 6 lines
WRT to Christian thoughts on a common uAPI rules for VM binds, I kinda like that idea but I don't think that is necessary. All of pur uAPI should be close but also the GPUVA implementation should be flexible enough to fit all of our needs and I think for the most part it is.
Quoted 6 lines
Let me know what everything thinks about this. It would be great if when I'm back on 2/14 I can rebase the Xe port to GPUVA on another version of the GPUVA code and get sparse binding support implementation. Also I'd like to get GPUVA merged in the Xe repo ASAP as our VM bind code badly needed to be cleaned and this was the push we needed to make this happen.
All those are great improvements and some of I will pick up for Nouveau as well.
Except for switching from drm_mm to maple_tree I implemented all other suggestions. You can find them here: https://gitlab.freedesktop.org/nouvelles/kernel/-/tree/new-uapi-drm-next-fixes
I'm just about to start moving the GPUVA Manager to use maple_tree instead and plan to send a V2 by end of this week.
- Danilo
Quoted 2,075 lines
Matt
[1] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314
[2] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=2ae21d7a3f52e5eb2c105ed8ae231471274bdc36
[3] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=49fca9f5d96201f5cbd1b19c7ff17eedfac65cdc
[4] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=61fa6b1e1f10e791ae82358fa971b04421d53024
[5] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=87fc08dcf0840e794b38269fe4c6a95d088d79ec
[6] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=a4826c22f6788bc29906ffa263c1cd3c4661fa77
[7] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=f008bbb55b213868e52c7b9cda4c1bfb95af6aee
[8] https://gitlab.freedesktop.org/drm/xe/kernel/-/merge_requests/314/diffs?commit_id=41f4f71c05d04d2b17d988dd95369b5df2d7f681Quoted 2,062 lines
Idea-suggested-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/drm-mm.rst | 31 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_gem.c | 3 + drivers/gpu/drm/drm_gpuva_mgr.c | 1323 +++++++++++++++++++++++++++++++ include/drm/drm_drv.h | 6 + include/drm/drm_gem.h | 75 ++ include/drm/drm_gpuva_mgr.h | 527 ++++++++++++ 7 files changed, 1966 insertions(+)create mode 100644
drivers/gpu/drm/drm_gpuva_mgr.ccreate mode 100644include/drm/drm_gpuva_mgr.hDocumentation/gpu/drm-mm.rst +31
-0@@ -466,6 +466,37 @@ DRM MM Range Allocator Function References .. kernel-doc:: drivers/gpu/drm/drm_mm.c :export: +DRM GPU VA Manager +================== + +Overview +-------- + +.. kernel-doc:: drivers/gpu/drm/drm_gpuva_mgr.c + :doc: Overview + +Split and Merge +--------------- + +.. kernel-doc:: drivers/gpu/drm/drm_gpuva_mgr.c + :doc: Split and Merge + +Locking +------- + +.. kernel-doc:: drivers/gpu/drm/drm_gpuva_mgr.c + :doc: Locking + + +DRM GPU VA Manager Function References +-------------------------------------- + +.. kernel-doc:: include/drm/drm_gpuva_mgr.h + :internal: + +.. kernel-doc:: drivers/gpu/drm/drm_gpuva_mgr.c + :export: + DRM Buddy Allocator ===================drivers/gpu/drm/Makefile +1
-0@@ -45,6 +45,7 @@ drm-y := \ drm_vblank.o \ drm_vblank_work.o \ drm_vma_manager.o \ + drm_gpuva_mgr.o \ drm_writeback.o drm-$(CONFIG_DRM_LEGACY) += \ drm_agpsupport.o \drivers/gpu/drm/drm_gem.c +3
-0@@ -164,6 +164,9 @@ void drm_gem_private_object_init(struct drm_device *dev,if (!obj->resv) obj->resv = &obj->_resv; +if (drm_core_check_feature (dev,DRIVER_GEM_GPUVA )) +drm_gem_gpuva_init (obj); +drm_vma_node_reset (&obj->vma_node);INIT_LIST_HEAD (&obj->lru_node); }drivers/gpu/drm/drm_gpuva_mgr.c new file +1323
-0@@ -0,0 +1,1323 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Copyright (c) 2022 Red Hat. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: +* Danilo Krummrich <[email protected]> +* +*/ + +#include <drm/drm_gem.h> +#include <drm/drm_gpuva_mgr.h> + +/** +* DOC: Overview +* +* The DRM GPU VA Manager, represented by struct drm_gpuva_manager keeps track +* of a GPU's virtual address (VA) space and manages the corresponding virtual +* mappings represented by &drm_gpuva objects. It also keeps track of the +* mapping's backing &drm_gem_object buffers. +* +* &drm_gem_object buffers maintain a list (and a corresponding list lock) of +* &drm_gpuva objects representing all existent GPU VA mappings using this +* &drm_gem_object as backing buffer. +* +* A GPU VA mapping can only be created within a previously allocated +* &drm_gpuva_region, which represents a reserved portion of the GPU VA space. +* GPU VA mappings are not allowed to span over a &drm_gpuva_region's boundary. +* +* GPU VA regions can also be flagged as sparse, which allows drivers to create +* sparse mappings for a whole GPU VA region in order to support Vulkan +* 'Sparse Resources'. +* +* The GPU VA manager internally uses the &drm_mm range allocator to manage the +* &drm_gpuva mappings and the &drm_gpuva_regions within a GPU's virtual address +* space. +* +* Besides the GPU VA space regions (&drm_gpuva_region) allocated by a driver +* the &drm_gpuva_manager contains a special region representing the portion of +* VA space reserved by the kernel. This node is initialized together with the +* GPU VA manager instance and removed when the GPU VA manager is destroyed. +* +* In a typical application drivers would embed struct drm_gpuva_manager, +* struct drm_gpuva_region and struct drm_gpuva within their own driver +* specific structures, there won't be any memory allocations of it's own nor +* memory allocations of &drm_gpuva or &drm_gpuva_region entries. +*/ + +/** +* DOC: Split and Merge +* +* The DRM GPU VA manager also provides an algorithm implementing splitting and +* merging of existent GPU VA mappings with the ones that are requested to be +* mapped or unmapped. This feature is required by the Vulkan API to implement +* Vulkan 'Sparse Memory Bindings' - drivers UAPIs often refer to this as +* VM BIND. +* +* Drivers can call drm_gpuva_sm_map_ops_create() to obtain a list of map, unmap +* and remap operations for a given newly requested mapping. This list +* represents the set of operations to execute in order to integrate the new +* mapping cleanly into the current state of the GPU VA space. +* +* Depending on how the new GPU VA mapping intersects with the existent mappings +* of the GPU VA space the &drm_gpuva_ops contain an arbitrary amount of unmap +* operations, a maximum of two remap operations and a single map operation. +* The set of operations can also be empty if no operation is required, e.g. if +* the requested mapping already exists in the exact same way. +* +* The single map operation, if existent, represents the original map operation +* requested by the caller. Please note that this operation might be altered +* comparing it with the original map operation, e.g. because it was merged with +* an already existent mapping. Hence, drivers must execute this map operation +* instead of the original one they passed to drm_gpuva_sm_map_ops_create(). +* +* &drm_gpuva_op_unmap contains a 'keep' field, which indicates whether the +* &drm_gpuva to unmap is physically contiguous with the original mapping +* request. Optionally, if 'keep' is set, drivers may keep the actual page table +* entries for this &drm_gpuva, adding the missing page table entries only and +* update the &drm_gpuva_manager's view of things accordingly. +* +* Drivers may do the same optimization, namely delta page table updates, also +* for remap operations. This is possible since &drm_gpuva_op_remap consists of +* one unmap operation and one or two map operations, such that drivers can +* derive the page table update delta accordingly. +* +* Note that there can't be more than two existent mappings to split up, one at +* the beginning and one at the end of the new mapping, hence there is a +* maximum of two remap operations. +* +* Generally, the DRM GPU VA manager never merges mappings across the +* boundaries of &drm_gpuva_regions. This is the case since merging between +* GPU VA regions would result into unmap and map operations to be issued for +* both regions involved although the original mapping request was referred to +* one specific GPU VA region only. Since the other GPU VA region, the one not +* explicitly requested to be altered, might be in use by the GPU, we are not +* allowed to issue any map/unmap operations for this region. +* +* Note that before calling drm_gpuva_sm_map_ops_create() again with another +* mapping request it is necessary to update the &drm_gpuva_manager's view of +* the GPU VA space. The previously obtained operations must be either fully +* processed or completely abandoned. +* +* To update the &drm_gpuva_manager's view of the GPU VA space +* drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or +* drm_gpuva_destroy_unlocked() should be used. +* +* Analogue to drm_gpuva_sm_map_ops_create() drm_gpuva_sm_unmap_ops_create() +* provides drivers a the list of operations to be executed in order to unmap +* a range of GPU VA space. The logic behind this functions is way simpler +* though: For all existent mappings enclosed by the given range unmap +* operations are created. For mappings which are only partically located within +* the given range, remap operations are created such that those mappings are +* split up and re-mapped partically. +* +* The following paragraph depicts the basic constellations of existent GPU VA +* mappings, a newly requested mapping and the resulting mappings as implemented +* by drm_gpuva_sm_map_ops_create() - it doesn't cover arbitrary combinations +* of those constellations. +* +* :: +* +* 1) Existent mapping is kept. +* ---------------------------- +* +* 0 a 1 +* old: |-----------| (bo_offset=n) +* +* 0 a 1 +* req: |-----------| (bo_offset=n) +* +* 0 a 1 +* new: |-----------| (bo_offset=n) +* +* +* 2) Existent mapping is replaced. +* -------------------------------- +* +* 0 a 1 +* old: |-----------| (bo_offset=n) +* +* 0 a 1 +* req: |-----------| (bo_offset=m) +* +* 0 a 1 +* new: |-----------| (bo_offset=m) +* +* +* 3) Existent mapping is replaced. +* -------------------------------- +* +* 0 a 1 +* old: |-----------| (bo_offset=n) +* +* 0 b 1 +* req: |-----------| (bo_offset=n) +* +* 0 b 1 +* new: |-----------| (bo_offset=n) +* +* +* 4) Existent mapping is replaced. +* -------------------------------- +* +* 0 a 1 +* old: |-----| (bo_offset=n) +* +* 0 a 2 +* req: |-----------| (bo_offset=n) +* +* 0 a 2 +* new: |-----------| (bo_offset=n) +* +* Note: We expect to see the same result for a request with a different bo +* and/or bo_offset. +* +* +* 5) Existent mapping is split. +* ----------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 0 b 1 +* req: |-----| (bo_offset=n) +* +* 0 b 1 a' 2 +* new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1) +* +* Note: We expect to see the same result for a request with a different bo +* and/or non-contiguous bo_offset. +* +* +* 6) Existent mapping is kept. +* ---------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 0 a 1 +* req: |-----| (bo_offset=n) +* +* 0 a 2 +* new: |-----------| (bo_offset=n) +* +* +* 7) Existent mapping is split. +* ----------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 1 b 2 +* req: |-----| (bo_offset=m) +* +* 0 a 1 b 2 +* new: |-----|-----| (a.bo_offset=n,b.bo_offset=m) +* +* +* 8) Existent mapping is kept. +* ---------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 1 a 2 +* req: |-----| (bo_offset=n+1) +* +* 0 a 2 +* new: |-----------| (bo_offset=n) +* +* +* 9) Existent mapping is split. +* ----------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 1 b 3 +* req: |-----------| (bo_offset=m) +* +* 0 a 1 b 3 +* new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m) +* +* +* 10) Existent mapping is merged. +* ------------------------------- +* +* 0 a 2 +* old: |-----------| (bo_offset=n) +* +* 1 a 3 +* req: |-----------| (bo_offset=n+1) +* +* 0 a 3 +* new: |-----------------| (bo_offset=n) +* +* +* 11) Existent mapping is split. +* ------------------------------ +* +* 0 a 3 +* old: |-----------------| (bo_offset=n) +* +* 1 b 2 +* req: |-----| (bo_offset=m) +* +* 0 a 1 b 2 a' 3 +* new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2) +* +* +* 12) Existent mapping is kept. +* ----------------------------- +* +* 0 a 3 +* old: |-----------------| (bo_offset=n) +* +* 1 a 2 +* req: |-----| (bo_offset=n+1) +* +* 0 a 3 +* old: |-----------------| (bo_offset=n) +* +* +* 13) Existent mapping is replaced. +* --------------------------------- +* +* 1 a 2 +* old: |-----| (bo_offset=n) +* +* 0 a 2 +* req: |-----------| (bo_offset=n) +* +* 0 a 2 +* new: |-----------| (bo_offset=n) +* +* Note: We expect to see the same result for a request with a different bo +* and/or non-contiguous bo_offset. +* +* +* 14) Existent mapping is replaced. +* --------------------------------- +* +* 1 a 2 +* old: |-----| (bo_offset=n) +* +* 0 a 3 +* req: |----------------| (bo_offset=n) +* +* 0 a 3 +* new: |----------------| (bo_offset=n) +* +* Note: We expect to see the same result for a request with a different bo +* and/or non-contiguous bo_offset. +* +* +* 15) Existent mapping is split. +* ------------------------------ +* +* 1 a 3 +* old: |-----------| (bo_offset=n) +* +* 0 b 2 +* req: |-----------| (bo_offset=m) +* +* 0 b 2 a' 3 +* new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2) +* +* +* 16) Existent mappings are merged. +* --------------------------------- +* +* 0 a 1 +* old: |-----------| (bo_offset=n) +* +* 2 a 3 +* old': |-----------| (bo_offset=n+2) +* +* 1 a 2 +* req: |-----------| (bo_offset=n+1) +* +* a +* new: |----------------------------------| (bo_offset=n) +*/ + +/** +* DOC: Locking +* +* Generally, the GPU VA manager does not take care of locking itself, it is +* the drivers responsibility to take care about locking. Drivers might want to +* protect the following operations: inserting, destroying and iterating +* &drm_gpuva and &drm_gpuva_region objects as well as generating split and merge +* operations. +* +* The GPU VA manager does take care of the locking of the backing +* &drm_gem_object buffers GPU VA lists though, unless the provided functions +* documentation claims otherwise. +*/ + +/** +* drm_gpuva_manager_init - initialize a &drm_gpuva_manager +* @mgr: pointer to the &drm_gpuva_manager to initialize +* @name: the name of the GPU VA space +* @start_offset: the start offset of the GPU VA space +* @range: the size of the GPU VA space +* @reserve_offset: the start of the kernel reserved GPU VA area +* @reserve_range: the size of the kernel reserved GPU VA area +* +* The &drm_gpuva_manager must be initialized with this function before use. +* +* Note that @mgr must be cleared to 0 before calling this function. The given +* &name is expected to be managed by the surrounding driver structures. +*/ +void +drm_gpuva_manager_init (struct drm_gpuva_manager *mgr, +const char *name, +u64 start_offset,u64 range, +u64 reserve_offset,u64 reserve_range) +{ +drm_mm_init (&mgr->va_mm, start_offset, range); +drm_mm_init (&mgr->region_mm, start_offset, range); + + mgr->mm_start = start_offset; + mgr->mm_range = range; + + mgr->name = name ? name :"unknown" ; + +memset (&mgr->kernel_alloc_node,0 ,sizeof (struct drm_mm_node )); + mgr->kernel_alloc_node.start = reserve_offset; + mgr->kernel_alloc_node.size = reserve_range; +drm_mm_reserve_node (&mgr->region_mm, &mgr->kernel_alloc_node); +} +EXPORT_SYMBOL (drm_gpuva_manager_init); + +/** +* drm_gpuva_manager_destroy - cleanup a &drm_gpuva_manager +* @mgr: pointer to the &drm_gpuva_manager to clean up +* +* Note that it is a bug to call this function on a manager that still +* holds GPU VA mappings. +*/ +void +drm_gpuva_manager_destroy (struct drm_gpuva_manager *mgr) +{ + mgr->name =NULL ; +drm_mm_remove_node (&mgr->kernel_alloc_node); +drm_mm_takedown (&mgr->va_mm); +drm_mm_takedown (&mgr->region_mm); +} +EXPORT_SYMBOL (drm_gpuva_manager_destroy); + +static struct drm_gpuva_region * +drm_gpuva_in_region (struct drm_gpuva_manager *mgr,u64 addr,u64 range) +{ +struct drm_gpuva_region *reg; + +/* Find the VA region the requested range is strictly enclosed by. */ +drm_gpuva_for_each_region_in_range (reg, mgr, addr, addr + range) { +if (reg->node.start <= addr && + reg->node.start + reg->node.size >= addr + range && + ®->node != &mgr->kernel_alloc_node) +return reg; + } + +return NULL ; +} + +static bool +drm_gpuva_in_any_region (struct drm_gpuva_manager *mgr,u64 addr,u64 range) +{ +return !!drm_gpuva_in_region (mgr, addr, range); +} + +/** +* drm_gpuva_insert - insert a &drm_gpuva +* @mgr: the &drm_gpuva_manager to insert the &drm_gpuva in +* @va: the &drm_gpuva to insert +* @addr: the start address of the GPU VA +* @range: the range of the GPU VA +* +* Insert a &drm_gpuva with a given address and range into a +* &drm_gpuva_manager. +* +* The function assumes the caller does not hold the &drm_gem_object's +* GPU VA list mutex. +* +* Returns: 0 on success, negative error code on failure. +*/ +int +drm_gpuva_insert (struct drm_gpuva_manager *mgr, +struct drm_gpuva *va, +u64 addr,u64 range) +{ +struct drm_gpuva_region *reg; +int ret; + +if (!va->gem.obj) +return -EINVAL ; + + reg =drm_gpuva_in_region (mgr, addr, range); +if (!reg) +return -EINVAL ; + + ret =drm_mm_insert_node_in_range (&mgr->va_mm, &va->node, + range,0 , +0 , addr, + addr + range, +DRM_MM_INSERT_LOW |DRM_MM_INSERT_ONCE ); +if (ret) +return ret; + + va->mgr = mgr; + va->region = reg; + +return 0 ; +} +EXPORT_SYMBOL (drm_gpuva_insert); + +/** +* drm_gpuva_link_locked - link a &drm_gpuva +* @va: the &drm_gpuva to link +* +* This adds the given &va to the GPU VA list of the &drm_gem_object it is +* associated with. +* +* The function assumes the caller already holds the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_link_locked (struct drm_gpuva *va) +{ +lockdep_assert_held (&va->gem.obj->gpuva.mutex); +list_add_tail (&va->head, &va->gem.obj->gpuva.list); +} +EXPORT_SYMBOL (drm_gpuva_link_locked); + +/** +* drm_gpuva_link_unlocked - unlink a &drm_gpuva +* @va: the &drm_gpuva to unlink +* +* This adds the given &va to the GPU VA list of the &drm_gem_object it is +* associated with. +* +* The function assumes the caller does not hold the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_link_unlocked (struct drm_gpuva *va) +{ +drm_gem_gpuva_lock (va->gem.obj); +drm_gpuva_link_locked (va); +drm_gem_gpuva_unlock (va->gem.obj); +} +EXPORT_SYMBOL (drm_gpuva_link_unlocked); + +/** +* drm_gpuva_unlink_locked - unlink a &drm_gpuva +* @va: the &drm_gpuva to unlink +* +* This removes the given &va from the GPU VA list of the &drm_gem_object it is +* associated with. +* +* The function assumes the caller already holds the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_unlink_locked (struct drm_gpuva *va) +{ +lockdep_assert_held (&va->gem.obj->gpuva.mutex); +list_del_init (&va->head); +} +EXPORT_SYMBOL (drm_gpuva_unlink_locked); + +/** +* drm_gpuva_unlink_unlocked - unlink a &drm_gpuva +* @va: the &drm_gpuva to unlink +* +* This removes the given &va from the GPU VA list of the &drm_gem_object it is +* associated with. +* +* The function assumes the caller does not hold the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_unlink_unlocked (struct drm_gpuva *va) +{ +drm_gem_gpuva_lock (va->gem.obj); +drm_gpuva_unlink_locked (va); +drm_gem_gpuva_unlock (va->gem.obj); +} +EXPORT_SYMBOL (drm_gpuva_unlink_unlocked); + +/** +* drm_gpuva_destroy_locked - destroy a &drm_gpuva +* @va: the &drm_gpuva to destroy +* +* This removes the given &va from GPU VA list of the &drm_gem_object it is +* associated with and removes it from the underlaying range allocator. +* +* The function assumes the caller already holds the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_destroy_locked (struct drm_gpuva *va) +{ +lockdep_assert_held (&va->gem.obj->gpuva.mutex); + +list_del (&va->head); +drm_mm_remove_node (&va->node); +} +EXPORT_SYMBOL (drm_gpuva_destroy_locked); + +/** +* drm_gpuva_destroy_unlocked - destroy a &drm_gpuva +* @va: the &drm_gpuva to destroy +* +* This removes the given &va from GPU VA list of the &drm_gem_object it is +* associated with and removes it from the underlaying range allocator. +* +* The function assumes the caller does not hold the &drm_gem_object's +* GPU VA list mutex. +*/ +void +drm_gpuva_destroy_unlocked (struct drm_gpuva *va) +{ +drm_gem_gpuva_lock (va->gem.obj); +list_del (&va->head); +drm_gem_gpuva_unlock (va->gem.obj); + +drm_mm_remove_node (&va->node); +} +EXPORT_SYMBOL (drm_gpuva_destroy_unlocked); + +/** +* drm_gpuva_find - find a &drm_gpuva +* @mgr: the &drm_gpuva_manager to search in +* @addr: the &drm_gpuvas address +* @range: the &drm_gpuvas range +* +* Returns: the &drm_gpuva at a given &addr and with a given &range +*/ +struct drm_gpuva * +drm_gpuva_find (struct drm_gpuva_manager *mgr, +u64 addr,u64 range) +{ +struct drm_gpuva *va; + +drm_gpuva_for_each_va_in_range (va, mgr, addr, range) { +if (va->node.start == addr && + va->node.size == range) +return va; + } + +return NULL ; +} +EXPORT_SYMBOL (drm_gpuva_find); + +/** +* drm_gpuva_find_prev - find the &drm_gpuva before the given address +* @mgr: the &drm_gpuva_manager to search in +* @start: the given GPU VA's start address +* +* Find the adjacent &drm_gpuva before the GPU VA with given &start address. +* +* Note that if there is any free space between the GPU VA mappings no mapping +* is returned. +* +* Returns: a pointer to the found &drm_gpuva or NULL if none was found +*/ +struct drm_gpuva * +drm_gpuva_find_prev (struct drm_gpuva_manager *mgr,u64 start) +{ +struct drm_mm_node *node; + +if (start <= mgr->mm_start || + start > (mgr->mm_start + mgr->mm_range)) +return NULL ; + + node =__drm_mm_interval_first (&mgr->va_mm, start -1 , start); +if (node == &mgr->va_mm.head_node) +return NULL ; + +return (struct drm_gpuva *)node; +} +EXPORT_SYMBOL (drm_gpuva_find_prev); + +/** +* drm_gpuva_find_next - find the &drm_gpuva after the given address +* @mgr: the &drm_gpuva_manager to search in +* @end: the given GPU VA's end address +* +* Find the adjacent &drm_gpuva after the GPU VA with given &end address. +* +* Note that if there is any free space between the GPU VA mappings no mapping +* is returned. +* +* Returns: a pointer to the found &drm_gpuva or NULL if none was found +*/ +struct drm_gpuva * +drm_gpuva_find_next (struct drm_gpuva_manager *mgr,u64 end) +{ +struct drm_mm_node *node; + +if (end < mgr->mm_start || + end >= (mgr->mm_start + mgr->mm_range)) +return NULL ; + + node =__drm_mm_interval_first (&mgr->va_mm, end, end +1 ); +if (node == &mgr->va_mm.head_node) +return NULL ; + +return (struct drm_gpuva *)node; +} +EXPORT_SYMBOL (drm_gpuva_find_next); + +/** +* drm_gpuva_region_insert - insert a &drm_gpuva_region +* @mgr: the &drm_gpuva_manager to insert the &drm_gpuva in +* @reg: the &drm_gpuva_region to insert +* @addr: the start address of the GPU VA +* @range: the range of the GPU VA +* +* Insert a &drm_gpuva_region with a given address and range into a +* &drm_gpuva_manager. +* +* Returns: 0 on success, negative error code on failure. +*/ +int +drm_gpuva_region_insert (struct drm_gpuva_manager *mgr, +struct drm_gpuva_region *reg, +u64 addr,u64 range) +{ +int ret; + + ret =drm_mm_insert_node_in_range (&mgr->region_mm, ®->node, + range,0 , +0 , addr, + addr + range, +DRM_MM_INSERT_LOW | +DRM_MM_INSERT_ONCE ); +if (ret) +return ret; + + reg->mgr = mgr; + +return 0 ; +} +EXPORT_SYMBOL (drm_gpuva_region_insert); + +/** +* drm_gpuva_region_destroy - destroy a &drm_gpuva_region +* @mgr: the &drm_gpuva_manager holding the region +* @reg: the &drm_gpuva to destroy +* +* This removes the given ® from the underlaying range allocator. +*/ +void +drm_gpuva_region_destroy (struct drm_gpuva_manager *mgr, +struct drm_gpuva_region *reg) +{ +struct drm_gpuva *va; + +drm_gpuva_for_each_va_in_range (va, mgr, + reg->node.start, + reg->node.size) { +WARN (1 ,"GPU VA region must be empty on destroy.\n" ); +return ; + } + +if (®->node == &mgr->kernel_alloc_node) { +WARN (1 ,"Can't destroy kernel reserved region.\n" ); +return ; + } + +drm_mm_remove_node (®->node); +} +EXPORT_SYMBOL (drm_gpuva_region_destroy); + +/** +* drm_gpuva_region_find - find a &drm_gpuva_region +* @mgr: the &drm_gpuva_manager to search in +* @addr: the &drm_gpuva_regions address +* @range: the &drm_gpuva_regions range +* +* Returns: the &drm_gpuva_region at a given &addr and with a given &range +*/ +struct drm_gpuva_region * +drm_gpuva_region_find (struct drm_gpuva_manager *mgr, +u64 addr,u64 range) +{ +struct drm_gpuva_region *reg; + +drm_gpuva_for_each_region_in_range (reg, mgr, addr, addr + range) +if (reg->node.start == addr && + reg->node.size == range) +return reg; + +return NULL ; +} +EXPORT_SYMBOL (drm_gpuva_region_find); + +static int +gpuva_op_map_new (struct drm_gpuva_op **pop, +u64 addr,u64 range, +struct drm_gem_object *obj,u64 offset) +{ +struct drm_gpuva_op *op; + + op = *pop =kzalloc (sizeof (*op),GFP_KERNEL ); +if (!op) +return -ENOMEM ; + + op->op =DRM_GPUVA_OP_MAP ; + op->map.va.addr = addr; + op->map.va.range = range; + op->map.gem.obj = obj; + op->map.gem.offset = offset; + +return 0 ; +} + +static int +gpuva_op_remap_new (struct drm_gpuva_op **pop, +struct drm_gpuva_op_map *prev, +struct drm_gpuva_op_map *next, +struct drm_gpuva_op_unmap *unmap) +{ +struct drm_gpuva_op *op; +struct drm_gpuva_op_remap *r; + + op = *pop =kzalloc (sizeof (*op),GFP_KERNEL ); +if (!op) +return -ENOMEM ; + + op->op =DRM_GPUVA_OP_REMAP ; + r = &op->remap; + +if (prev) { + r->prev =kmemdup (prev,sizeof (*prev),GFP_KERNEL ); +if (!r->prev) + goto err_free_op; + } + +if (next) { + r->next =kmemdup (next,sizeof (*next),GFP_KERNEL ); +if (!r->next) + goto err_free_prev; + } + + r->unmap =kmemdup (unmap,sizeof (*unmap),GFP_KERNEL ); +if (!r->unmap) + goto err_free_next; + +return 0 ; + +err_free_next: +if (next) +kfree (r->next); +err_free_prev: +if (prev) +kfree (r->prev); +err_free_op: +kfree (op); + *pop =NULL ; + +return -ENOMEM ; +} + +static int +gpuva_op_unmap_new (struct drm_gpuva_op **pop, +struct drm_gpuva *va,bool merge) +{ +struct drm_gpuva_op *op; + + op = *pop =kzalloc (sizeof (*op),GFP_KERNEL ); +if (!op) +return -ENOMEM ; + + op->op =DRM_GPUVA_OP_UNMAP ; + op->unmap.va = va; + op->unmap.keep = merge; + +return 0 ; +} + +#define op_map_new_to_list (_ops, _addr, _range, \ + _obj, _offset) \ +do { \ + struct drm_gpuva_op *op; \ + \ + ret = gpuva_op_map_new(&op, _addr, _range, \ + _obj, _offset); \ + if (ret) \ + goto err_free_ops; \ + \ + list_add_tail(&op->entry, _ops); \ +} while (0) + +#define op_remap_new_to_list (_ops, _prev, _next, \ + _unmap) \ +do { \ + struct drm_gpuva_op *op; \ + \ + ret = gpuva_op_remap_new(&op, _prev, _next, \ + _unmap); \ + if (ret) \ + goto err_free_ops; \ + \ + list_add_tail(&op->entry, _ops); \ +} while (0) + +#define op_unmap_new_to_list (_ops, _gpuva, _merge) \ +do { \ + struct drm_gpuva_op *op; \ + \ + ret = gpuva_op_unmap_new(&op, _gpuva, _merge); \ + if (ret) \ + goto err_free_ops; \ + \ + list_add_tail(&op->entry, _ops); \ +} while (0) + +/** +* drm_gpuva_sm_map_ops_create - creates the &drm_gpuva_ops to split and merge +* @mgr: the &drm_gpuva_manager representing the GPU VA space +* @req_addr: the start address of the new mapping +* @req_range: the range of the new mapping +* @req_obj: the &drm_gem_object to map +* @req_offset: the offset within the &drm_gem_object +* +* This function creates a list of operations to perform splitting and merging +* of existent mapping(s) with the newly requested one. +* +* The list can be iterated with &drm_gpuva_for_each_op and must be processed +* in the given order. It can contain map, unmap and remap operations, but it +* also can be empty if no operation is required, e.g. if the requested mapping +* already exists is the exact same way. +* +* There can be an arbitrary amount of unmap operations, a maximum of two remap +* operations and a single map operation. The latter one, if existent, +* represents the original map operation requested by the caller. Please note +* that the map operation might has been modified, e.g. if it was +* merged with an existent mapping. +* +* Note that before calling this function again with another mapping request it +* is necessary to update the &drm_gpuva_manager's view of the GPU VA space. +* The previously obtained operations must be either processed or abandoned. +* To update the &drm_gpuva_manager's view of the GPU VA space +* drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or +* drm_gpuva_destroy_unlocked() should be used. +* +* After the caller finished processing the returned &drm_gpuva_ops, they must +* be freed with &drm_gpuva_ops_free. +* +* Returns: a pointer to the &drm_gpuva_ops on success, an ERR_PTR on failure +*/ +struct drm_gpuva_ops * +drm_gpuva_sm_map_ops_create (struct drm_gpuva_manager *mgr, +u64 req_addr,u64 req_range, +struct drm_gem_object *req_obj,u64 req_offset) +{ +struct drm_gpuva_ops *ops; +struct drm_gpuva *va, *prev =NULL ; +u64 req_end = req_addr + req_range; +bool skip_pmerge = false, skip_nmerge = false; +int ret; + +if (!drm_gpuva_in_any_region (mgr, req_addr, req_range)) +return ERR_PTR (-EINVAL ); + + ops =kzalloc (sizeof (*ops),GFP_KERNEL ); +if (!ops) +return ERR_PTR (-ENOMEM ); + +INIT_LIST_HEAD (&ops->list); + +drm_gpuva_for_each_va_in_range (va, mgr, req_addr, req_end) { +struct drm_gem_object *obj = va->gem.obj; +u64 offset = va->gem.offset; +u64 addr = va->node.start; +u64 range = va->node.size; +u64 end = addr + range; + +/* Generally, we want to skip merging with potential mappings +* left and right of the requested one when we found a +* collision, since merging happens in this loop already. +* +* However, there is one exception when the requested mapping +* spans into a free VM area. If this is the case we might +* still hit the boundary of another mapping before and/or +* after the free VM area. +*/ + skip_pmerge = true; + skip_nmerge = true; + +if (addr == req_addr) { +bool merge = obj == req_obj && + offset == req_offset; +if (end == req_end) { +if (merge) + goto done; + +op_unmap_new_to_list (&ops->list, va, false); +break ; + } + +if (end < req_end) { + skip_nmerge = false; +op_unmap_new_to_list (&ops->list, va, merge); + goto next; + } + +if (end > req_end) { +struct drm_gpuva_op_map n = { + .va.addr = req_end, + .va.range = range - req_range, + .gem.obj = obj, + .gem.offset = offset + req_range, + }; +struct drm_gpuva_op_unmap u = { .va = va }; + +if (merge) + goto done; + +op_remap_new_to_list (&ops->list,NULL , &n, &u); +break ; + } + }else if (addr < req_addr) { +u64 ls_range = req_addr - addr; +struct drm_gpuva_op_map p = { + .va.addr = addr, + .va.range = ls_range, + .gem.obj = obj, + .gem.offset = offset, + }; +struct drm_gpuva_op_unmap u = { .va = va }; +bool merge = obj == req_obj && + offset + ls_range == req_offset; + +if (end == req_end) { +if (merge) + goto done; + +op_remap_new_to_list (&ops->list, &p,NULL , &u); +break ; + } + +if (end < req_end) { +u64 new_addr = addr; +u64 new_range = req_range + ls_range; +u64 new_offset = offset; + +/* We validated that the requested mapping is +* within a single VA region already. +* Since it overlaps the current mapping (which +* can't cross a VA region boundary) we can be +* sure that we're still within the boundaries +* of the same VA region after merging. +*/ +if (merge) { + req_offset = new_offset; + req_addr = new_addr; + req_range = new_range; +op_unmap_new_to_list (&ops->list, va, true); + goto next; + } + +op_remap_new_to_list (&ops->list, &p,NULL , &u); + goto next; + } + +if (end > req_end) { +struct drm_gpuva_op_map n = { + .va.addr = req_end, + .va.range = end - req_end, + .gem.obj = obj, + .gem.offset = offset + ls_range + + req_range, + }; + +if (merge) + goto done; + +op_remap_new_to_list (&ops->list, &p, &n, &u); +break ; + } + }else if (addr > req_addr) { +bool merge = obj == req_obj && + offset == req_offset + + (addr - req_addr); +if (!prev) + skip_pmerge = false; + +if (end == req_end) { +op_unmap_new_to_list (&ops->list, va, merge); +break ; + } + +if (end < req_end) { + skip_nmerge = false; +op_unmap_new_to_list (&ops->list, va, merge); + goto next; + } + +if (end > req_end) { +struct drm_gpuva_op_map n = { + .va.addr = req_end, + .va.range = end - req_end, + .gem.obj = obj, + .gem.offset = offset + req_end - addr, + }; +struct drm_gpuva_op_unmap u = { .va = va }; +u64 new_end = end; +u64 new_range = new_end - req_addr; + +/* We validated that the requested mapping is +* within a single VA region already. +* Since it overlaps the current mapping (which +* can't cross a VA region boundary) we can be +* sure that we're still within the boundaries +* of the same VA region after merging. +*/ +if (merge) { + req_end = new_end; + req_range = new_range; +op_unmap_new_to_list (&ops->list, va, true); +break ; + } + +op_remap_new_to_list (&ops->list,NULL , &n, &u); +break ; + } + } +next: + prev = va; + } + + va = skip_pmerge ?NULL :drm_gpuva_find_prev (mgr, req_addr); +if (va) { +struct drm_gem_object *obj = va->gem.obj; +u64 offset = va->gem.offset; +u64 addr = va->node.start; +u64 range = va->node.size; +u64 new_offset = offset; +u64 new_addr = addr; +u64 new_range = req_range + range; +bool merge = obj == req_obj && + offset + range == req_offset; + +/* Don't merge over VA region boundaries. */ + merge &=drm_gpuva_in_any_region (mgr, new_addr, new_range); +if (merge) { +op_unmap_new_to_list (&ops->list, va, true); + + req_offset = new_offset; + req_addr = new_addr; + req_range = new_range; + } + } + + va = skip_nmerge ?NULL :drm_gpuva_find_next (mgr, req_end); +if (va) { +struct drm_gem_object *obj = va->gem.obj; +u64 offset = va->gem.offset; +u64 addr = va->node.start; +u64 range = va->node.size; +u64 end = addr + range; +u64 new_range = req_range + range; +u64 new_end = end; +bool merge = obj == req_obj && + offset == req_offset + req_range; + +/* Don't merge over VA region boundaries. */ + merge &=drm_gpuva_in_any_region (mgr, req_addr, new_range); +if (merge) { +op_unmap_new_to_list (&ops->list, va, true); + + req_range = new_range; + req_end = new_end; + } + } + +op_map_new_to_list (&ops->list, + req_addr, req_range, + req_obj, req_offset); + +done: +return ops; + +err_free_ops: +drm_gpuva_ops_free (ops); +return ERR_PTR (ret); +} +EXPORT_SYMBOL (drm_gpuva_sm_map_ops_create); + +#undef op_map_new_to_list +#undef op_remap_new_to_list +#undef op_unmap_new_to_list + +/** +* drm_gpuva_sm_unmap_ops_create - creates the &drm_gpuva_ops to split on unmap +* @mgr: the &drm_gpuva_manager representing the GPU VA space +* @req_addr: the start address of the range to unmap +* @req_range: the range of the mappings to unmap +* +* This function creates a list of operations to perform unmapping and, if +* required, splitting of the mappings overlapping the unmap range. +* +* The list can be iterated with &drm_gpuva_for_each_op and must be processed +* in the given order. It can contain unmap and remap operations, depending on +* whether there are actual overlapping mappings to split. +* +* There can be an arbitrary amount of unmap operations and a maximum of two +* remap operations. +* +* Note that before calling this function again with another range to unmap it +* is necessary to update the &drm_gpuva_manager's view of the GPU VA space. +* The previously obtained operations must be processed or abandoned. +* To update the &drm_gpuva_manager's view of the GPU VA space +* drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or +* drm_gpuva_destroy_unlocked() should be used. +* +* After the caller finished processing the returned &drm_gpuva_ops, they must +* be freed with &drm_gpuva_ops_free. +* +* Returns: a pointer to the &drm_gpuva_ops on success, an ERR_PTR on failure +*/ +struct drm_gpuva_ops * +drm_gpuva_sm_unmap_ops_create (struct drm_gpuva_manager *mgr, +u64 req_addr,u64 req_range) +{ +struct drm_gpuva_ops *ops; +struct drm_gpuva_op *op; +struct drm_gpuva_op_remap *r; +struct drm_gpuva *va; +u64 req_end = req_addr + req_range; +int ret; + + ops =kzalloc (sizeof (*ops),GFP_KERNEL ); +if (!ops) +return ERR_PTR (-ENOMEM ); + +INIT_LIST_HEAD (&ops->list); + +drm_gpuva_for_each_va_in_range (va, mgr, req_addr, req_end) { +struct drm_gem_object *obj = va->gem.obj; +u64 offset = va->gem.offset; +u64 addr = va->node.start; +u64 range = va->node.size; +u64 end = addr + range; + + op =kzalloc (sizeof (*op),GFP_KERNEL ); +if (!op) { + ret = -ENOMEM ; + goto err_free_ops; + } + + r = &op->remap; + +if (addr < req_addr) { + r->prev =kzalloc (sizeof (*r->prev),GFP_KERNEL ); +if (!r->prev) { + ret = -ENOMEM ; + goto err_free_op; + } + + r->prev->va.addr = addr; + r->prev->va.range = req_addr - addr; + r->prev->gem.obj = obj; + r->prev->gem.offset = offset; + } + +if (end > req_end) { + r->next =kzalloc (sizeof (*r->next),GFP_KERNEL ); +if (!r->next) { + ret = -ENOMEM ; + goto err_free_prev; + } + + r->next->va.addr = req_end; + r->next->va.range = end - req_end; + r->next->gem.obj = obj; + r->next->gem.offset = offset + (req_end - addr); + } + +if (op->remap.prev || op->remap.next) { + op->op =DRM_GPUVA_OP_REMAP ; + r->unmap =kzalloc (sizeof (*r->unmap),GFP_KERNEL ); +if (!r->unmap) { + ret = -ENOMEM ; + goto err_free_next; + } + + r->unmap->va = va; + }else { + op->op =DRM_GPUVA_OP_UNMAP ; + op->unmap.va = va; + } + +list_add_tail (&op->entry, &ops->list); + } + +return ops; + +err_free_next: +if (r->next) +kfree (r->next); +err_free_prev: +if (r->prev) +kfree (r->prev); +err_free_op: +kfree (op); +err_free_ops: +drm_gpuva_ops_free (ops); +return ERR_PTR (ret); +} +EXPORT_SYMBOL (drm_gpuva_sm_unmap_ops_create); + +/** +* drm_gpuva_ops_free - free the given &drm_gpuva_ops +* @ops: the &drm_gpuva_ops to free +* +* Frees the given &drm_gpuva_ops structure including all the ops associated +* with it. +*/ +void +drm_gpuva_ops_free (struct drm_gpuva_ops *ops) +{ +struct drm_gpuva_op *op, *next; + +drm_gpuva_for_each_op_safe (op, next, ops) { +list_del (&op->entry); +if (op->op ==DRM_GPUVA_OP_REMAP ) { +if (op->remap.prev) +kfree (op->remap.prev); + +if (op->remap.next) +kfree (op->remap.next); + +kfree (op->remap.unmap); + } +kfree (op); + } + +kfree (ops); +} +EXPORT_SYMBOL (drm_gpuva_ops_free);include/drm/drm_drv.h +6
-0@@ -104,6 +104,12 @@ enum drm_driver_feature {* acceleration should be handled by two drivers that are connected using auxiliary bus. */ DRIVER_COMPUTE_ACCEL =BIT (7 ), +/** +* @DRIVER_GEM_GPUVA: +* +* Driver supports user defined GPU VA bindings for GEM objects. +*/ + DRIVER_GEM_GPUVA = BIT(8),/* IMPORTANT: Below are all the legacy flags, add new ones above. */ include/drm/drm_gem.h +75
-0@@ -36,6 +36,8 @@#include <linux/kref.h> #include <linux/dma-resv.h> +#include <linux/list.h> +#include <linux/mutex.h> #include <drm/drm_vma_manager.h> @@ -337,6 +339,17 @@ struct drm_gem_object {*/ struct dma_resv _resv; +/** +* @gpuva: +* +* Provides the list and list mutex of GPU VAs attached to this +* GEM object. +*/ +struct { +struct list_head list; +struct mutex mutex; + } gpuva; +/** * @funcs: * @@ -479,4 +492,66 @@ void drm_gem_lru_move_tail(struct drm_gem_lru *lru, struct drm_gem_object *obj);unsigned long drm_gem_lru_scan (struct drm_gem_lru *lru,unsigned nr_to_scan,bool (*shrink)(struct drm_gem_object *obj)); +/** +* drm_gem_gpuva_init - initialize the gpuva list of a GEM object +* @obj: the &drm_gem_object +* +* This initializes the &drm_gem_object's &drm_gpuva list and the mutex +* protecting it. +* +* Calling this function is only necessary for drivers intending to support the +* &drm_driver_feature DRIVER_GEM_GPUVA. +*/ +static inline void drm_gem_gpuva_init (struct drm_gem_object *obj) +{ +INIT_LIST_HEAD (&obj->gpuva.list); +mutex_init (&obj->gpuva.mutex); +} + +/** +* drm_gem_gpuva_lock - lock the GEM's gpuva list mutex +* @obj: the &drm_gem_object +* +* This unlocks the mutex protecting the &drm_gem_object's &drm_gpuva list. +*/ +static inline void drm_gem_gpuva_lock (struct drm_gem_object *obj) +{ +mutex_lock (&obj->gpuva.mutex); +} + +/** +* drm_gem_gpuva_unlock - unlock the GEM's gpuva list mutex +* @obj: the &drm_gem_object +* +* This unlocks the mutex protecting the &drm_gem_object's &drm_gpuva list. +*/ +static inline void drm_gem_gpuva_unlock (struct drm_gem_object *obj) +{ +mutex_unlock (&obj->gpuva.mutex); +} + +/** +* drm_gem_for_each_gpuva - iternator to walk over a list of gpuvas +* @entry: &drm_gpuva structure to assign to in each iteration step +* @obj: the &drm_gem_object the &drm_gpuvas to walk are associated with +* +* This iterator walks over all &drm_gpuva structures associated with the +* &drm_gpuva_manager. +*/ +#define drm_gem_for_each_gpuva (entry, obj) \ + list_for_each_entry(entry, &obj->gpuva.list, head) + +/** +* drm_gem_for_each_gpuva_safe - iternator to safely walk over a list of gpuvas +* @entry: &drm_gpuva structure to assign to in each iteration step +* @next: &next &drm_gpuva to store the next step +* @obj: the &drm_gem_object the &drm_gpuvas to walk are associated with +* +* This iterator walks over all &drm_gpuva structures associated with the +* &drm_gem_object. It is implemented with list_for_each_entry_safe(), hence +* it is save against removal of elements. +*/ +#define drm_gem_for_each_gpuva_safe (entry, next, obj) \ + list_for_each_entry_safe(entry, next, &obj->gpuva.list, head) +#endif /* __DRM_GEM_H__ */ include/drm/drm_gpuva_mgr.h new file +527
-0@@ -0,0 +1,527 @@ +// SPDX-License-Identifier: GPL-2.0 + +#ifndef __DRM_GPUVA_MGR_H__ +#define __DRM_GPUVA_MGR_H__ + +/* +* Copyright (c) 2022 Red Hat. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include <drm/drm_mm.h> +#include <linux/mm.h> +#include <linux/rbtree.h> +#include <linux/spinlock.h> +#include <linux/types.h> + +struct drm_gpuva_region ; +struct drm_gpuva ; +struct drm_gpuva_ops ; + +/** +* struct drm_gpuva_manager - DRM GPU VA Manager +* +* The DRM GPU VA Manager keeps track of a GPU's virtual address space by using +* the &drm_mm range allocator. Typically, this structure is embedded in bigger +* driver structures. +* +* Drivers can pass addresses and ranges in an arbitrary unit, e.g. bytes or +* pages. +* +* There should be one manager instance per GPU virtual address space. +*/ +struct drm_gpuva_manager { +/** +* @name: the name of the DRM GPU VA space +*/ +const char *name; + +/** +* @mm_start: start of the VA space +*/ +u64 mm_start; + +/** +* @mm_range: length of the VA space +*/ +u64 mm_range; + +/** +* @region_mm: the &drm_mm range allocator to track GPU VA regions +*/ +struct drm_mm region_mm; + +/** +* @va_mm: the &drm_mm range allocator to track GPU VA mappings +*/ +struct drm_mm va_mm; + +/** +* @kernel_alloc_node: +* +* &drm_mm_node representing the address space cutout reserved for +* the kernel +*/ +struct drm_mm_node kernel_alloc_node; +}; + +void drm_gpuva_manager_init (struct drm_gpuva_manager *mgr, +const char *name, +u64 start_offset,u64 range, +u64 reserve_offset,u64 reserve_range); +void drm_gpuva_manager_destroy (struct drm_gpuva_manager *mgr); + +/** +* struct drm_gpuva_region - structure to track a portion of GPU VA space +* +* This structure represents a portion of a GPUs VA space and is associated +* with a &drm_gpuva_manager. Internally it is based on a &drm_mm_node. +* +* GPU VA mappings, represented by &drm_gpuva objects, are restricted to be +* placed within a &drm_gpuva_region. +*/ +struct drm_gpuva_region { +/** +* @node: the &drm_mm_node to track the GPU VA region +*/ +struct drm_mm_node node; + +/** +* @mgr: the &drm_gpuva_manager this object is associated with +*/ +struct drm_gpuva_manager *mgr; + +/** +* @sparse: indicates whether this region is sparse +*/ +bool sparse; +}; + +struct drm_gpuva_region * +drm_gpuva_region_find (struct drm_gpuva_manager *mgr, +u64 addr,u64 range); +int drm_gpuva_region_insert (struct drm_gpuva_manager *mgr, +struct drm_gpuva_region *reg, +u64 addr,u64 range); +void drm_gpuva_region_destroy (struct drm_gpuva_manager *mgr, +struct drm_gpuva_region *reg); + +int drm_gpuva_insert (struct drm_gpuva_manager *mgr, +struct drm_gpuva *va, +u64 addr,u64 range); +/** +* drm_gpuva_for_each_region_in_range - iternator to walk over a range of nodes +* @node__: &drm_gpuva_region structure to assign to in each iteration step +* @gpuva__: &drm_gpuva_manager structure to walk +* @start__: starting offset, the first node will overlap this +* @end__: ending offset, the last node will start before this (but may overlap) +* +* This iterator walks over all nodes in the range allocator that lie +* between @start and @end. It is implemented similarly to list_for_each(), +* but is using &drm_mm's internal interval tree to accelerate the search for +* the starting node, and hence isn't safe against removal of elements. It +* assumes that @end is within (or is the upper limit of) the &drm_gpuva_manager. +* If [@start, @end] are beyond the range of the &drm_gpuva_manager, the +* iterator may walk over the special _unallocated_ &drm_mm.head_node of the +* backing &drm_mm, and may even continue indefinitely. +*/ +#define drm_gpuva_for_each_region_in_range (node__, gpuva__, start__, end__) \ + for (node__ = (struct drm_gpuva_region *)__drm_mm_interval_first(&(gpuva__)->region_mm, \ + (start__), (end__)-1); \ + node__->node.start < (end__); \ + node__ = (struct drm_gpuva_region *)list_next_entry(&node__->node, node_list)) + +/** +* drm_gpuva_for_each_region - iternator to walk over a range of nodes +* @entry: &drm_gpuva_region structure to assign to in each iteration step +* @gpuva: &drm_gpuva_manager structure to walk +* +* This iterator walks over all &drm_gpuva_region structures associated with the +* &drm_gpuva_manager. +*/ +#define drm_gpuva_for_each_region (entry, gpuva) \ + list_for_each_entry(entry, drm_mm_nodes(&(gpuva)->region_mm), node.node_list) + +/** +* drm_gpuva_for_each_region_safe - iternator to safely walk over a range of +* nodes +* @entry: &drm_gpuva_region structure to assign to in each iteration step +* @next: &next &drm_gpuva_region to store the next step +* @gpuva: &drm_gpuva_manager structure to walk +* +* This iterator walks over all &drm_gpuva_region structures associated with the +* &drm_gpuva_manager. It is implemented with list_for_each_safe(), so save +* against removal of elements. +*/ +#define drm_gpuva_for_each_region_safe (entry, next, gpuva) \ + list_for_each_entry_safe(entry, next, drm_mm_nodes(&(gpuva)->region_mm), node.node_list) + + +/** +* enum drm_gpuva_flags - flags for struct drm_gpuva +*/ +enum drm_gpuva_flags { +/** +* @DRM_GPUVA_SWAPPED: flag indicating that the &drm_gpuva is swapped +*/ +DRM_GPUVA_SWAPPED = (1 <<0 ), +}; + +/** +* struct drm_gpuva - structure to track a GPU VA mapping +* +* This structure represents a GPU VA mapping and is associated with a +* &drm_gpuva_manager. Internally it is based on a &drm_mm_node. +* +* Typically, this structure is embedded in bigger driver structures. +*/ +struct drm_gpuva { +/** +* @node: the &drm_mm_node to track the GPU VA mapping +*/ +struct drm_mm_node node; + +/** +* @mgr: the &drm_gpuva_manager this object is associated with +*/ +struct drm_gpuva_manager *mgr; + +/** +* @region: the &drm_gpuva_region the &drm_gpuva is mapped in +*/ +struct drm_gpuva_region *region; + +/** +* @head: the &list_head to attach this object to a &drm_gem_object +*/ +struct list_head head; + +/** +* @flags: the &drm_gpuva_flags for this mapping +*/ +enum drm_gpuva_flags flags; + +/** +* @gem: structure containing the &drm_gem_object and it's offset +*/ +struct { +/** +* @offset: the offset within the &drm_gem_object +*/ +u64 offset; + +/** +* @obj: the mapped &drm_gem_object +*/ +struct drm_gem_object *obj; + } gem; +}; + +void drm_gpuva_link_locked (struct drm_gpuva *va); +void drm_gpuva_link_unlocked (struct drm_gpuva *va); +void drm_gpuva_unlink_locked (struct drm_gpuva *va); +void drm_gpuva_unlink_unlocked (struct drm_gpuva *va); + +void drm_gpuva_destroy_locked (struct drm_gpuva *va); +void drm_gpuva_destroy_unlocked (struct drm_gpuva *va); + +struct drm_gpuva *drm_gpuva_find (struct drm_gpuva_manager *mgr, +u64 addr,u64 range); +struct drm_gpuva *drm_gpuva_find_prev (struct drm_gpuva_manager *mgr,u64 start); +struct drm_gpuva *drm_gpuva_find_next (struct drm_gpuva_manager *mgr,u64 end); + +/** +* drm_gpuva_swap - sets whether the backing BO of this &drm_gpuva is swapped +* @va: the &drm_gpuva to set the swap flag of +* @swap: indicates whether the &drm_gpuva is swapped +*/ +static inline void drm_gpuva_swap (struct drm_gpuva *va,bool swap) +{ +if (swap) + va->flags |=DRM_GPUVA_SWAPPED ; +else + va->flags &= ~DRM_GPUVA_SWAPPED ; +} + +/** +* drm_gpuva_swapped - indicates whether the backing BO of this &drm_gpuva +* is swapped +* @va: the &drm_gpuva to check +*/ +static inline bool drm_gpuva_swapped (struct drm_gpuva *va) +{ +return va->flags &DRM_GPUVA_SWAPPED ; +} + +/** +* drm_gpuva_for_each_va_in_range - iternator to walk over a range of nodes +* @node__: &drm_gpuva structure to assign to in each iteration step +* @gpuva__: &drm_gpuva_manager structure to walk +* @start__: starting offset, the first node will overlap this +* @end__: ending offset, the last node will start before this (but may overlap) +* +* This iterator walks over all nodes in the range allocator that lie +* between @start and @end. It is implemented similarly to list_for_each(), +* but is using &drm_mm's internal interval tree to accelerate the search for +* the starting node, and hence isn't safe against removal of elements. It +* assumes that @end is within (or is the upper limit of) the &drm_gpuva_manager. +* If [@start, @end] are beyond the range of the &drm_gpuva_manager, the +* iterator may walk over the special _unallocated_ &drm_mm.head_node of the +* backing &drm_mm, and may even continue indefinitely. +*/ +#define drm_gpuva_for_each_va_in_range (node__, gpuva__, start__, end__) \ + for (node__ = (struct drm_gpuva *)__drm_mm_interval_first(&(gpuva__)->va_mm, \ + (start__), (end__)-1); \ + node__->node.start < (end__); \ + node__ = (struct drm_gpuva *)list_next_entry(&node__->node, node_list)) + +/** +* drm_gpuva_for_each_va - iternator to walk over a range of nodes +* @entry: &drm_gpuva structure to assign to in each iteration step +* @gpuva: &drm_gpuva_manager structure to walk +* +* This iterator walks over all &drm_gpuva structures associated with the +* &drm_gpuva_manager. +*/ +#define drm_gpuva_for_each_va (entry, gpuva) \ + list_for_each_entry(entry, drm_mm_nodes(&(gpuva)->va_mm), node.node_list) + +/** +* drm_gpuva_for_each_va_safe - iternator to safely walk over a range of +* nodes +* @entry: &drm_gpuva structure to assign to in each iteration step +* @next: &next &drm_gpuva to store the next step +* @gpuva: &drm_gpuva_manager structure to walk +* +* This iterator walks over all &drm_gpuva structures associated with the +* &drm_gpuva_manager. It is implemented with list_for_each_safe(), so save +* against removal of elements. +*/ +#define drm_gpuva_for_each_va_safe (entry, next, gpuva) \ + list_for_each_entry_safe(entry, next, drm_mm_nodes(&(gpuva)->va_mm), node.node_list) + +/** +* enum drm_gpuva_op_type - GPU VA operation type +* +* Operations to alter the GPU VA mappings tracked by the &drm_gpuva_manager +* can be map, remap or unmap operations. +*/ +enum drm_gpuva_op_type { +/** +* @DRM_GPUVA_OP_MAP: the map op type +*/ +DRM_GPUVA_OP_MAP , + +/** +* @DRM_GPUVA_OP_REMAP: the remap op type +*/ +DRM_GPUVA_OP_REMAP , + +/** +* @DRM_GPUVA_OP_UNMAP: the unmap op type +*/ +DRM_GPUVA_OP_UNMAP , +}; + +/** +* struct drm_gpuva_op_map - GPU VA map operation +* +* This structure represents a single map operation generated by the +* DRM GPU VA manager. +*/ +struct drm_gpuva_op_map { +/** +* @va: structure containing address and range of a map +* operation +*/ +struct { +/** +* @addr: the base address of the new mapping +*/ +u64 addr; + +/** +* @range: the range of the new mapping +*/ +u64 range; + } va; + +/** +* @gem: structure containing the &drm_gem_object and it's offset +*/ +struct { +/** +* @offset: the offset within the &drm_gem_object +*/ +u64 offset; + +/** +* @obj: the &drm_gem_object to map +*/ +struct drm_gem_object *obj; + } gem; +}; + +/** +* struct drm_gpuva_op_unmap - GPU VA unmap operation +* +* This structure represents a single unmap operation generated by the +* DRM GPU VA manager. +*/ +struct drm_gpuva_op_unmap { +/** +* @va: the &drm_gpuva to unmap +*/ +struct drm_gpuva *va; + +/** +* @keep: +* +* Indicates whether this &drm_gpuva is physically contiguous with the +* original mapping request. +* +* Optionally, if &keep is set, drivers may keep the actual page table +* mappings for this &drm_gpuva, adding the missing page table entries +* only and update the &drm_gpuva_manager accordingly. +*/ +bool keep; +}; + +/** +* struct drm_gpuva_op_remap - GPU VA remap operation +* +* This represents a single remap operation generated by the DRM GPU VA manager. +* +* A remap operation is generated when an existing GPU VA mmapping is split up +* by inserting a new GPU VA mapping or by partially unmapping existent +* mapping(s), hence it consists of a maximum of two map and one unmap +* operation. +* +* The @unmap operation takes care of removing the original existing mapping. +* @prev is used to remap the preceding part, @next the subsequent part. +* +* If either a new mapping's start address is aligned with the start address +* of the old mapping or the new mapping's end address is aligned with the +* end address of the old mapping, either @prev or @next is NULL. +* +* Note, the reason for a dedicated remap operation, rather than arbitrary +* unmap and map operations, is to give drivers the chance of extracting driver +* specific data for creating the new mappings from the unmap operations's +* &drm_gpuva structure which typically is embedded in larger driver specific +* structures. +*/ +struct drm_gpuva_op_remap { +/** +* @prev: the preceding part of a split mapping +*/ +struct drm_gpuva_op_map *prev; + +/** +* @next: the subsequent part of a split mapping +*/ +struct drm_gpuva_op_map *next; + +/** +* @unmap: the unmap operation for the original existing mapping +*/ +struct drm_gpuva_op_unmap *unmap; +}; + +/** +* struct drm_gpuva_op - GPU VA operation +* +* This structure represents a single generic operation, which can be either +* map, unmap or remap. +* +* The particular type of the operation is defined by @op. +*/ +struct drm_gpuva_op { +/** +* @entry: +* +* The &list_head used to distribute instances of this struct within +* &drm_gpuva_ops. +*/ +struct list_head entry; + +/** +* @op: the type of the operation +*/ +enum drm_gpuva_op_type op; + +union { +/** +* @map: the map operation +*/ +struct drm_gpuva_op_map map; + +/** +* @unmap: the unmap operation +*/ +struct drm_gpuva_op_unmap unmap; + +/** +* @remap: the remap operation +*/ +struct drm_gpuva_op_remap remap; + }; +}; + +/** +* struct drm_gpuva_ops - wraps a list of &drm_gpuva_op +*/ +struct drm_gpuva_ops { +/** +* @list: the &list_head +*/ +struct list_head list; +}; + +/** +* drm_gpuva_for_each_op - iterator to walk over all ops +* @op: &drm_gpuva_op to assign in each iteration step +* @ops: &drm_gpuva_ops to walk +* +* This iterator walks over all ops within a given list of operations. +*/ +#define drm_gpuva_for_each_op (op, ops) list_for_each_entry(op, &(ops)->list, entry) + +/** +* drm_gpuva_for_each_op_safe - iterator to safely walk over all ops +* @op: &drm_gpuva_op to assign in each iteration step +* @next: &next &drm_gpuva_op to store the next step +* @ops: &drm_gpuva_ops to walk +* +* This iterator walks over all ops within a given list of operations. It is +* implemented with list_for_each_safe(), so save against removal of elements. +*/ +#define drm_gpuva_for_each_op_safe (op, next, ops) \ + list_for_each_entry_safe(op, next, &(ops)->list, entry) + +struct drm_gpuva_ops * +drm_gpuva_sm_map_ops_create (struct drm_gpuva_manager *mgr, +u64 addr,u64 range, +struct drm_gem_object *obj,u64 offset); +struct drm_gpuva_ops * +drm_gpuva_sm_unmap_ops_create (struct drm_gpuva_manager *mgr, +u64 addr,u64 range); +void drm_gpuva_ops_free (struct drm_gpuva_ops *ops); + +#endif /* __DRM_GPUVA_MGR_H__ */ Signature · 1 line
2.39.0
PATCH 4/14 drm: debugfs: provide infrastructure to dump a DRM GPU VA space
In reply to Danilo KrummrichThis commit adds a function to dump a DRM GPU VA space and a macro for drivers to register the struct drm_info_list 'gpuvas' entry.
Most likely, most drivers might maintain one DRM GPU VA space per struct drm_file, but there might also be drivers not having a fixed relation between DRM GPU VA spaces and a DRM core infrastructure, hence we need the indirection via the driver iterating it's maintained DRM GPU VA spaces.
--- drivers/gpu/drm/drm_debugfs.c | 56 +++++++++++++++++++++++++++++++++++ include/drm/drm_debugfs.h | 25 ++++++++++++++++ 2 files changed, 81 insertions(+)
drivers/gpu/drm/drm_debugfs.c +56 -0
@@ -39,6 +39,7 @@#include <drm/drm_file.h> #include <drm/drm_gem.h> #include <drm/drm_managed.h> +#include <drm/drm_gpuva_mgr.h> #include "drm_crtc_internal.h" #include "drm_internal.h"
@@ -175,6 +176,61 @@ static const struct file_operations drm_debugfs_fops = { .release = single_release, }; +/** +* drm_debugfs_gpuva_info - dump the given DRM GPU VA space +* @m: pointer to the &seq_file to write +* @mgr: the &drm_gpuva_manager representing the GPU VA space +* +* Dumps the GPU VA regions and mappings of a given DRM GPU VA manager. +* +* For each DRM GPU VA space drivers should call this function from their +* &drm_info_list's show callback. +* +* Returns: 0 on success, -ENODEV if the &mgr is not initialized +*/ +int drm_debugfs_gpuva_info (struct seq_file *m, +struct drm_gpuva_manager *mgr) +{ +struct drm_gpuva_region *reg; +struct drm_gpuva *va; + +if (!mgr->name) +return -ENODEV ; + +seq_printf (m,"DRM GPU VA space (%s)\n" , mgr->name); +seq_puts (m,"\n" ); +seq_puts (m," VA regions | start | range | end | sparse\n" ); +seq_puts (m,"------------------------------------------------------------------------------------\n" ); +seq_printf (m," VA space | 0x%016llx | 0x%016llx | 0x%016llx | -\n" , + mgr->mm_start, mgr->mm_range, mgr->mm_start + mgr->mm_range); +seq_puts (m,"-----------------------------------------------------------------------------------\n" ); +drm_gpuva_for_each_region (reg, mgr) { +struct drm_mm_node *node = ®->node; + +if (node == &mgr->kernel_alloc_node) { +seq_printf (m," kernel node | 0x%016llx | 0x%016llx | 0x%016llx | -\n" , + node->start, node->size, node->start + node->size); +continue ; + } + +seq_printf (m," | 0x%016llx | 0x%016llx | 0x%016llx | %s\n" , + node->start, node->size, node->start + node->size, + reg->sparse ?"true" :"false" ); + } +seq_puts (m,"\n" ); +seq_puts (m," VAs | start | range | end | object | object offset\n" ); +seq_puts (m,"-------------------------------------------------------------------------------------------------------------\n" ); +drm_gpuva_for_each_va (va, mgr) { +struct drm_mm_node *node = &va->node; + +seq_printf (m," | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n" , + node->start, node->size, node->start + node->size, + (u64 )va->gem.obj, va->gem.offset); + } + +return 0 ; +} +EXPORT_SYMBOL (drm_debugfs_gpuva_info);/** * drm_debugfs_create_files - Initialize a given set of debugfs files for DRM
include/drm/drm_debugfs.h +25 -0
@@ -34,6 +34,22 @@#include <linux/types.h> #include <linux/seq_file.h> + +#include <drm/drm_gpuva_mgr.h> + +/** +* DRM_DEBUGFS_GPUVA_INFO - &drm_info_list entry to dump a GPU VA space +* @show: the &drm_info_list's show callback +* @data: driver private data +* +* Drivers should use this macro to define a &drm_info_list entry to provide a +* debugfs file for dumping the GPU VA space regions and mappings. +* +* For each DRM GPU VA space drivers should call drm_debugfs_gpuva_info() from +* their @show callback. +*/ +#define DRM_DEBUGFS_GPUVA_INFO (show, data) {"gpuvas", show, DRIVER_GEM_GPUVA, data} +/** * struct drm_info_list - debugfs info list entry *
@@ -134,6 +150,9 @@ void drm_debugfs_add_file(struct drm_device *dev, const char *name,void drm_debugfs_add_files (struct drm_device *dev,const struct drm_debugfs_info *files,int count); + +int drm_debugfs_gpuva_info (struct seq_file *m, +struct drm_gpuva_manager *mgr);#else static inline void drm_debugfs_create_files(const struct drm_info_list *files, int count, struct dentry *root,
@@ -155,6 +174,12 @@ static inline void drm_debugfs_add_files(struct drm_device *dev, const struct drm_debugfs_info *files, int count) {} + +static inline int drm_debugfs_gpuva_info (struct seq_file *m, +struct drm_gpuva_manager *mgr) +{ +return 0 ; +}#endif #endif /* _DRM_DEBUGFS_H_ */
Signature · 1 line
2.39.0
kernel test robot
build botRe: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space
Thank you for the patch! Perhaps something to improve:
Hi Danilo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d]
url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 base: 0b45ac1170ea6416bc1d36798414c04870cd356d patch link: https://lore.kernel.org/r/20230118061256.2689-5-dakr%40redhat.com patch subject: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20230118/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/e00f79934034ce7eb4e7fc0d722a3d28d75d44bf
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 git checkout e00f79934034ce7eb4e7fc0d722a3d28d75d44bf
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_debugfs.c: In function 'drm_debugfs_gpuva_info':
>> drivers/gpu/drm/drm_debugfs.c:228:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
228 | (u64)va->gem.obj, va->gem.offset);
| ^vim +228 drivers/gpu/drm/drm_debugfs.c
178
179 /**
180 * drm_debugfs_gpuva_info - dump the given DRM GPU VA space
181 * @m: pointer to the &seq_file to write
182 * @mgr: the &drm_gpuva_manager representing the GPU VA space
183 *
184 * Dumps the GPU VA regions and mappings of a given DRM GPU VA manager.
185 *
186 * For each DRM GPU VA space drivers should call this function from their
187 * &drm_info_list's show callback.
188 *
189 * Returns: 0 on success, -ENODEV if the &mgr is not initialized
190 */
191 int drm_debugfs_gpuva_info(struct seq_file *m,
192 struct drm_gpuva_manager *mgr)
193 {
194 struct drm_gpuva_region *reg;
195 struct drm_gpuva *va;
196
197 if (!mgr->name)
198 return -ENODEV;
199
200 seq_printf(m, "DRM GPU VA space (%s)\n", mgr->name);
201 seq_puts (m, "\n");
202 seq_puts (m, " VA regions | start | range | end | sparse\n");
203 seq_puts (m, "------------------------------------------------------------------------------------\n");
204 seq_printf(m, " VA space | 0x%016llx | 0x%016llx | 0x%016llx | -\n",
205 mgr->mm_start, mgr->mm_range, mgr->mm_start + mgr->mm_range);
206 seq_puts (m, "-----------------------------------------------------------------------------------\n");
207 drm_gpuva_for_each_region(reg, mgr) {
208 struct drm_mm_node *node = ®->node;
209
210 if (node == &mgr->kernel_alloc_node) {
211 seq_printf(m, " kernel node | 0x%016llx | 0x%016llx | 0x%016llx | -\n",
212 node->start, node->size, node->start + node->size);
213 continue;
214 }
215
216 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | %s\n",
217 node->start, node->size, node->start + node->size,
218 reg->sparse ? "true" : "false");
219 }
220 seq_puts(m, "\n");
221 seq_puts(m, " VAs | start | range | end | object | object offset\n");
222 seq_puts(m, "-------------------------------------------------------------------------------------------------------------\n");
223 drm_gpuva_for_each_va(va, mgr) {
224 struct drm_mm_node *node = &va->node;
225
226 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n",
227 node->start, node->size, node->start + node->size,
> 228 (u64)va->gem.obj, va->gem.offset); 229 }
230
231 return 0;
232 }
233 EXPORT_SYMBOL(drm_debugfs_gpuva_info);
234
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
kernel test robot
build botRe: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space
In reply to Danilo KrummrichThank you for the patch! Perhaps something to improve:
Hi Danilo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d]
url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 base: 0b45ac1170ea6416bc1d36798414c04870cd356d patch link: https://lore.kernel.org/r/20230118061256.2689-5-dakr%40redhat.com patch subject: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space config: parisc-randconfig-s041-20230115 (https://download.01.org/0day-ci/archive/20230118/[email protected]/config) compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/intel-lab-lkp/linux/commit/e00f79934034ce7eb4e7fc0d722a3d28d75d44bf
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552
git checkout e00f79934034ce7eb4e7fc0d722a3d28d75d44bf
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/drm_debugfs.c:228:33: sparse: sparse: non size-preserving pointer to integer cast
vim +228 drivers/gpu/drm/drm_debugfs.c
178
179 /**
180 * drm_debugfs_gpuva_info - dump the given DRM GPU VA space
181 * @m: pointer to the &seq_file to write
182 * @mgr: the &drm_gpuva_manager representing the GPU VA space
183 *
184 * Dumps the GPU VA regions and mappings of a given DRM GPU VA manager.
185 *
186 * For each DRM GPU VA space drivers should call this function from their
187 * &drm_info_list's show callback.
188 *
189 * Returns: 0 on success, -ENODEV if the &mgr is not initialized
190 */
191 int drm_debugfs_gpuva_info(struct seq_file *m,
192 struct drm_gpuva_manager *mgr)
193 {
194 struct drm_gpuva_region *reg;
195 struct drm_gpuva *va;
196
197 if (!mgr->name)
198 return -ENODEV;
199
200 seq_printf(m, "DRM GPU VA space (%s)\n", mgr->name);
201 seq_puts (m, "\n");
202 seq_puts (m, " VA regions | start | range | end | sparse\n");
203 seq_puts (m, "------------------------------------------------------------------------------------\n");
204 seq_printf(m, " VA space | 0x%016llx | 0x%016llx | 0x%016llx | -\n",
205 mgr->mm_start, mgr->mm_range, mgr->mm_start + mgr->mm_range);
206 seq_puts (m, "-----------------------------------------------------------------------------------\n");
207 drm_gpuva_for_each_region(reg, mgr) {
208 struct drm_mm_node *node = ®->node;
209
210 if (node == &mgr->kernel_alloc_node) {
211 seq_printf(m, " kernel node | 0x%016llx | 0x%016llx | 0x%016llx | -\n",
212 node->start, node->size, node->start + node->size);
213 continue;
214 }
215
216 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | %s\n",
217 node->start, node->size, node->start + node->size,
218 reg->sparse ? "true" : "false");
219 }
220 seq_puts(m, "\n");
221 seq_puts(m, " VAs | start | range | end | object | object offset\n");
222 seq_puts(m, "-------------------------------------------------------------------------------------------------------------\n");
223 drm_gpuva_for_each_va(va, mgr) {
224 struct drm_mm_node *node = &va->node;
225
226 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n",
227 node->start, node->size, node->start + node->size,
> 228 (u64)va->gem.obj, va->gem.offset); 229 }
230
231 return 0;
232 }
233 EXPORT_SYMBOL(drm_debugfs_gpuva_info);
234
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
PATCH 5/14 drm/nouveau: new VM_BIND uapi interfaces
In reply to Danilo KrummrichThis commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new DRM_IOCTL_NOUVEAU_VM_INIT ioctl. UMDs can provide a kernel reserved VA area.
2) Bind and unbind GPU VA space mappings via the new DRM_IOCTL_NOUVEAU_VM_BIND ioctl.
3) Execute push buffers with the new DRM_IOCTL_NOUVEAU_EXEC ioctl.
Both, DRM_IOCTL_NOUVEAU_VM_BIND and DRM_IOCTL_NOUVEAU_EXEC support asynchronous processing with DRM syncobjs as synchronization mechanism.
The default DRM_IOCTL_NOUVEAU_VM_BIND is synchronous processing, DRM_IOCTL_NOUVEAU_EXEC supports asynchronous processing only.
--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)
Documentation/gpu/driver-uapi.rst +8 -0
@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.h
include/uapi/drm/nouveau_drm.h +216 -0
234 lines not on this page · raw message
Signature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 104 lines · Danilo Krummrich
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +8
-0@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +55
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini {__u32 handle; }; +/** +* struct drm_nouveau_sync - sync object +* +* This structure serves as synchronization mechanism for (potentially) +* asynchronous operations such as EXEC or VM_BIND. +*/ +struct drm_nouveau_sync { +/** +* @flags: the flags for a sync object +* +* The first 8 bits are used to determine the type of the sync object. +*/ +__u32 flags; +#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf +/** +* @handle: the handle of the sync object +*/ +__u32 handle; +/** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of +* type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. +*/ +__u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel +* which portion of the VA space is managed by the UMD and kernel respectively. +*/ +struct drm_nouveau_vm_init { +/** +* @unmanaged_addr: start address of the kernel managed VA space region +*/ +__u64 unmanaged_addr; +/** +* @unmanaged_size: size of the kernel managed VA space region in bytes +*/ +__u64 unmanaged_size; +}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass +* an array of this structure via struct drm_nouveau_vm_bind's &op_ptr field. +*/ +struct drm_nouveau_vm_bind_op { +/** +* @op: the operation type
include/uapi/drm/nouveau_drm.h struct drm_nouveau_gem_cpu_fini { · line 193
Quoted 10 lines
include/uapi/drm/nouveau_drm.h +10
-0+*/ +__u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA +* space. Optionally, the &DRM_NOUVEAU_VM_BIND_SPARSE flag can be passed to +* instruct the kernel to create sparse mappings for the given region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_ALLOC 0x0
Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing after drm_gpuva_manager_init is calling drm_gpuva_region_insert on the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.
Matt
Quoted 171 lines
include/uapi/drm/nouveau_drm.h +151
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by +* a previously allocated VA space region. If the region is sparse, existing +* sparse mappings are overwritten. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping +* is located in is a sparse region, new sparse mappings are created where the +* unmapped (memory backed) mapping was mapped previously. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 +/** +* @flags: the flags for a &drm_nouveau_vm_bind_op +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) +/** +* @handle: the handle of the DRM GEM object to map +*/ +__u32 handle; +/** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to +*/ +__u64 addr; +/** +* @bo_offset: the offset within the BO backing the mapping +*/ +__u64 bo_offset; +/** +* @range: the size of the requested mapping in bytes +*/ +__u64 range; +}; + +/** +* struct drm_nouveau_vm_bind - structure for DRM_IOCTL_NOUVEAU_VM_BIND +*/ +struct drm_nouveau_vm_bind { +/** +* @op_count: the number of &drm_nouveau_vm_bind_op +*/ +__u32 op_count; +/** +* @flags: the flags for a &drm_nouveau_vm_bind ioctl +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously +* by the kernel. +* +* If this flag is not supplied the kernel executes the associated operations +* synchronously and doesn't accept any &drm_nouveau_sync objects. +*/ +#define DRM_NOUVEAU_VM_BIND_RUN_ASYNC 0x1 +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @op_ptr: pointer to the &drm_nouveau_vm_bind_ops to execute +*/ +__u64 op_ptr; +}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an +* array of this structure via struct drm_nouveau_exec's &push_ptr field. +*/ +struct drm_nouveau_exec_push { +/** +* @va: the virtual address of the push buffer mapping +*/ +__u64 va; +/** +* @va_len: the length of the push buffer mapping +*/ +__u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { +/** +* @channel: the channel to execute the push buffer in +*/ +__u32 channel; +/** +* @push_count: the number of &drm_nouveau_exec_push ops +*/ +__u32 push_count; +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @push_ptr: pointer to &drm_nouveau_exec_push ops +*/ +__u64 push_ptr; +}; +#define DRM_NOUVEAU_GETPARAM 0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM 0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02/* deprecated */ @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini {#define DRM_NOUVEAU_NVIF 0x07#define DRM_NOUVEAU_SVM_INIT 0x08#define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12#define DRM_NOUVEAU_GEM_NEW 0x40#define DRM_NOUVEAU_GEM_PUSHBUF 0x41#define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind {#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec)#if defined(__cplusplus) }#endif Signature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 111 lines · Matthew Brost
Quoted 110 lines · Danilo Krummrich
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +8
-0@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +61
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini {__u32 handle; }; +/** +* struct drm_nouveau_sync - sync object +* +* This structure serves as synchronization mechanism for (potentially) +* asynchronous operations such as EXEC or VM_BIND. +*/ +struct drm_nouveau_sync { +/** +* @flags: the flags for a sync object +* +* The first 8 bits are used to determine the type of the sync object. +*/ +__u32 flags; +#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf +/** +* @handle: the handle of the sync object +*/ +__u32 handle; +/** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of +* type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. +*/ +__u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel +* which portion of the VA space is managed by the UMD and kernel respectively. +*/ +struct drm_nouveau_vm_init { +/** +* @unmanaged_addr: start address of the kernel managed VA space region +*/ +__u64 unmanaged_addr; +/** +* @unmanaged_size: size of the kernel managed VA space region in bytes +*/ +__u64 unmanaged_size; +}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass +* an array of this structure via struct drm_nouveau_vm_bind's &op_ptr field. +*/ +struct drm_nouveau_vm_bind_op { +/** +* @op: the operation type +*/ +__u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA
Quoted 8 lines
include/uapi/drm/nouveau_drm.h struct drm_nouveau_gem_cpu_fini { · line 193
Quoted 4 lines
include/uapi/drm/nouveau_drm.h +4
-0+* space. Optionally, the &DRM_NOUVEAU_VM_BIND_SPARSE flag can be passed to +* instruct the kernel to create sparse mappings for the given region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_ALLOC 0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
The idea for alloc/free is to let UMDs allocate a portion of the VA space (which I call a region), basically the same thing Vulkan represents with a VKBuffer.
It serves two purposes:
1. It gives the kernel (in particular the GPUVA manager) the bounds in which it is allowed to merge mappings. E.g. when a user request asks for a new mapping and we detect we could merge this mapping with an existing one (used in another VKBuffer than the mapping request came for) the driver is not allowed to change the page table for the existing mapping we want to merge with (assuming that some drivers would need to do this in order to merge), because the existing mapping could already be in use and by re-mapping it we'd potentially cause a fault on the GPU.
2. It is used for sparse residency in a way that such an allocated VA space region can be flagged as sparse, such that the kernel always keeps sparse mappings around for the parts of the region that do not contain actual memory backed mappings.
If for your driver merging is always OK, creating a single huge region would do the trick I guess. Otherwise, we could also add an option to the GPUVA manager (or a specific region, which could also be a single huge one) within which it never merges.
Quoted 182 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.Matt
Quoted 171 lines
include/uapi/drm/nouveau_drm.h +151
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by +* a previously allocated VA space region. If the region is sparse, existing +* sparse mappings are overwritten. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping +* is located in is a sparse region, new sparse mappings are created where the +* unmapped (memory backed) mapping was mapped previously. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 +/** +* @flags: the flags for a &drm_nouveau_vm_bind_op +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) +/** +* @handle: the handle of the DRM GEM object to map +*/ +__u32 handle; +/** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to +*/ +__u64 addr; +/** +* @bo_offset: the offset within the BO backing the mapping +*/ +__u64 bo_offset; +/** +* @range: the size of the requested mapping in bytes +*/ +__u64 range; +}; + +/** +* struct drm_nouveau_vm_bind - structure for DRM_IOCTL_NOUVEAU_VM_BIND +*/ +struct drm_nouveau_vm_bind { +/** +* @op_count: the number of &drm_nouveau_vm_bind_op +*/ +__u32 op_count; +/** +* @flags: the flags for a &drm_nouveau_vm_bind ioctl +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously +* by the kernel. +* +* If this flag is not supplied the kernel executes the associated operations +* synchronously and doesn't accept any &drm_nouveau_sync objects. +*/ +#define DRM_NOUVEAU_VM_BIND_RUN_ASYNC 0x1 +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @op_ptr: pointer to the &drm_nouveau_vm_bind_ops to execute +*/ +__u64 op_ptr; +}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an +* array of this structure via struct drm_nouveau_exec's &push_ptr field. +*/ +struct drm_nouveau_exec_push { +/** +* @va: the virtual address of the push buffer mapping +*/ +__u64 va; +/** +* @va_len: the length of the push buffer mapping +*/ +__u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { +/** +* @channel: the channel to execute the push buffer in +*/ +__u32 channel; +/** +* @push_count: the number of &drm_nouveau_exec_push ops +*/ +__u32 push_count; +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @push_ptr: pointer to &drm_nouveau_exec_push ops +*/ +__u64 push_ptr; +}; +#define DRM_NOUVEAU_GETPARAM 0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM 0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02/* deprecated */ @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini {#define DRM_NOUVEAU_NVIF 0x07#define DRM_NOUVEAU_SVM_INIT 0x08#define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12#define DRM_NOUVEAU_GEM_NEW 0x40#define DRM_NOUVEAU_GEM_PUSHBUF 0x41#define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind {#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec)#if defined(__cplusplus) }#endif Signature · 1 line
2.39.0
Christian König
maintainerRe: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 27.01.23 um 02:26 schrieb Danilo Krummrich:
Quoted 130 lines · Matthew Brost
Quoted 120 lines · Danilo Krummrich
Quoted 119 lines
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>---
Documentation/gpu/driver-uapi.rst| 8 ++
include/uapi/drm/nouveau_drm.h | 216
++++++++++++++++++++++++++++++2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +0
-0@@ -6,3 +6,11 @@ drm/i915 uAPI=============
.. kernel-doc::include/uapi/drm/i915_drm.hDocumentation/gpu/driver-uapi.rst +8
-0+ +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +0
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini { __u32 handle; };+/**
+ * structdrm_nouveau_sync- sync object
+ *
+ * This structure serves as synchronization mechanism for (potentially)
+ * asynchronous operations such as EXEC orVM_BIND.
+ */
+structdrm_nouveau_sync{
+ /**
+ * @flags: the flags for a sync object
+ *
+ * The first 8 bits are used to determine the type of the sync object.
+ */
+__u32flags;include/uapi/drm/nouveau_drm.h +20
-0+#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf + /** + * @handle: the handle of the sync object + */ + __u32 handle; + /** + * @timeline_value: + * + * The timeline point of the sync object in case the syncobj is of + * type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. + */ + __u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel
+ * which portion of the VA space is managed by the UMD and kernel respectively.
+ */
+structdrm_nouveau_vm_init{
+ /**
+ * @unmanaged_addr: start address of the kernel managed VA space region
+ */
+__u64unmanaged_addr;
+ /**
+ * @unmanaged_size: size of the kernel managed VA space region in bytes
+ */
+__u64unmanaged_size;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass
+ * an array of this structure via struct drm_nouveau_vm_bind's&op_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +9
-0+struct drm_nouveau_vm_bind_op { + /** + * @op: the operation type + */ + __u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA
+ * space. Optionally, the&DRM_NOUVEAU_VM_BIND_SPARSEflag can beQuoted 8 lines
Quoted 4 lines
passed to
+ * instruct the kernel to create sparse mappings for the given region.
+ */
+#defineDRM_NOUVEAU_VM_BIND_OP_ALLOC0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 1 line
The idea for alloc/free is to let UMDs allocate a portion of the VA space (which I call a region), basically the same thing Vulkan represents with a VKBuffer.
If that's mangled into the same component/interface then I can say from experience that this is a pretty bad idea. We have tried something similar with radeon and it turned out horrible.
What you want is one component for tracking the VA allocations (drm_mm based) and a different component/interface for tracking the VA mappings (probably rb tree based).
amdgpu has even gotten so far that the VA allocations are tracked in libdrm in userspace.
Regards,
Christian.
Quoted 205 lines
It serves two purposes:
1. It gives the kernel (in particular the GPUVA manager) the bounds in which it is allowed to merge mappings. E.g. when a user request asks for a new mapping and we detect we could merge this mapping with an existing one (used in another VKBuffer than the mapping request came for) the driver is not allowed to change the page table for the existing mapping we want to merge with (assuming that some drivers would need to do this in order to merge), because the existing mapping could already be in use and by re-mapping it we'd potentially cause a fault on the GPU.
2. It is used for sparse residency in a way that such an allocated VA space region can be flagged as sparse, such that the kernel always keeps sparse mappings around for the parts of the region that do not contain actual memory backed mappings.
If for your driver merging is always OK, creating a single huge region would do the trick I guess. Otherwise, we could also add an option to the GPUVA manager (or a specific region, which could also be a single huge one) within which it never merges.
Quoted 195 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.Matt
Quoted 184 lines
include/uapi/drm/nouveau_drm.h +8
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by
+ * a previously allocated VA space region. If the region is sparse, existing
+ * sparse mappings are overwritten.
+ */include/uapi/drm/nouveau_drm.h +5
-0+#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping
+ * is located in is a sparse region, new sparse mappings are created where the
+ * unmapped (memory backed) mapping was mapped previously.
+ */include/uapi/drm/nouveau_drm.h +19
-0+#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 + /** + * @flags: the flags for a &drm_nouveau_vm_bind_op + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) + /** + * @handle: the handle of the DRM GEM object to map + */ + __u32 handle; + /** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to
+ */
+__u64addr;
+ /**
+ * @bo_offset: the offset within the BO backing the mapping + */
+__u64bo_offset;
+ /**
+ * @range: the size of the requested mapping in bytes + */
+__u64range;include/uapi/drm/nouveau_drm.h +4
-0+}; + +/** +* struct drm_nouveau_vm_bind - structure for
DRM_IOCTL_NOUVEAU_VM_BIND
+ */include/uapi/drm/nouveau_drm.h +13
-0+struct drm_nouveau_vm_bind { + /** + * @op_count: the number of &drm_nouveau_vm_bind_op + */ + __u32 op_count; + /** + * @flags: the flags for a &drm_nouveau_vm_bind ioctl + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously
+ * by the kernel.
+ *
+ * If this flag is not supplied the kernel executes the associated operations
+ * synchronously and doesn't accept any&drm_nouveau_syncobjects.
+ */
+#defineDRM_NOUVEAU_VM_BIND_RUN_ASYNC0x1
+ /**
+ * @wait_count: the number of wait&drm_nouveau_syncs
+ */
+__u32wait_count;
+ /**
+ * @sig_count: the number of&drm_nouveau_syncsto signal when finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished + */
+__u64sig_ptr;
+ /**
+ * @op_ptr: pointer to the&drm_nouveau_vm_bind_opsto execute + */
+__u64op_ptr;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an
+ * array of this structure via struct drm_nouveau_exec's&push_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +29
-0+struct drm_nouveau_exec_push { + /** + * @va: the virtual address of the push buffer mapping + */ + __u64 va; + /** + * @va_len: the length of the push buffer mapping + */ + __u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { + /** + * @channel: the channel to execute the push buffer in + */ + __u32 channel; + /** + * @push_count: the number of &drm_nouveau_exec_push ops + */ + __u32 push_count; + /** + * @wait_count: the number of wait &drm_nouveau_syncs + */ + __u32 wait_count; + /** + * @sig_count: the number of &drm_nouveau_syncs to signal whenfinished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished + */
+__u64sig_ptr;
+ /**
+ * @push_ptr: pointer to&drm_nouveau_exec_pushops
+ */
+__u64push_ptr;include/uapi/drm/nouveau_drm.h +2
-0+}; +#define DRM_NOUVEAU_GETPARAM
0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC0x02/* deprecated */include/uapi/drm/nouveau_drm.h +5
-0@@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_NOUVEAU_NVIF 0x07 #define DRM_NOUVEAU_SVM_INIT 0x08 #define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12 #define DRM_NOUVEAU_GEM_NEW 0x40 #define DRM_NOUVEAU_GEM_PUSHBUF 0x41 #define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind { #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini) #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec) #if defined(__cplusplus)}
#endifSignature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 131 lines · Christian König
Am 27.01.23 um 02:26 schrieb Danilo Krummrich:
Quoted 130 lines · Matthew Brost
Quoted 128 lines · Danilo Krummrich
Quoted 117 lines
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>---
Documentation/gpu/driver-uapi.rst| 8 ++
include/uapi/drm/nouveau_drm.h | 216
++++++++++++++++++++++++++++++2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +0
-0@@ -6,3 +6,11 @@ drm/i915 uAPI=============
.. kernel-doc::include/uapi/drm/i915_drm.hDocumentation/gpu/driver-uapi.rst +8
-0+ +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +0
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini { __u32 handle; };+/**
+ * structdrm_nouveau_sync- sync object
+ *
+ * This structure serves as synchronization mechanism for (potentially)
+ * asynchronous operations such as EXEC orVM_BIND.
+ */
+structdrm_nouveau_sync{
+ /**
+ * @flags: the flags for a sync object
+ *
+ * The first 8 bits are used to determine the type of the sync object.
+ */
+__u32flags;include/uapi/drm/nouveau_drm.h +20
-0+#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf + /** + * @handle: the handle of the sync object + */ + __u32 handle; + /** + * @timeline_value: + * + * The timeline point of the sync object in case the syncobj is of + * type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. + */ + __u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel
+ * which portion of the VA space is managed by the UMD and kernel respectively.
+ */
+structdrm_nouveau_vm_init{
+ /**
+ * @unmanaged_addr: start address of the kernel managed VA space region
+ */
+__u64unmanaged_addr;
+ /**
+ * @unmanaged_size: size of the kernel managed VA space region in bytes
+ */
+__u64unmanaged_size;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass
+ * an array of this structure via struct drm_nouveau_vm_bind's&op_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +9
-0+struct drm_nouveau_vm_bind_op { + /** + * @op: the operation type + */ + __u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within Quoted 6 lines
the GPU's VA
+ * space. Optionally, the&DRM_NOUVEAU_VM_BIND_SPARSEflag can be passed to
+ * instruct the kernel to create sparse mappings for the given region.
+ */
+#defineDRM_NOUVEAU_VM_BIND_OP_ALLOC0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 3 lines
Quoted 1 line
The idea for alloc/free is to let UMDs allocate a portion of the VA space (which I call a region), basically the same thing Vulkan represents with a VKBuffer.
If that's mangled into the same component/interface then I can say from experience that this is a pretty bad idea. We have tried something similar with radeon and it turned out horrible.
What was the exact constellation in radeon and which problems did arise from it?
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).
That's what the GPUVA manager is doing. There are gpuva_regions which correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separate drm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
Quoted 212 lines
amdgpu has even gotten so far that the VA allocations are tracked in libdrm in userspace
Regards,
Christian.Quoted 205 lines
It serves two purposes:
1. It gives the kernel (in particular the GPUVA manager) the bounds in which it is allowed to merge mappings. E.g. when a user request asks for a new mapping and we detect we could merge this mapping with an existing one (used in another VKBuffer than the mapping request came for) the driver is not allowed to change the page table for the existing mapping we want to merge with (assuming that some drivers would need to do this in order to merge), because the existing mapping could already be in use and by re-mapping it we'd potentially cause a fault on the GPU.
2. It is used for sparse residency in a way that such an allocated VA space region can be flagged as sparse, such that the kernel always keeps sparse mappings around for the parts of the region that do not contain actual memory backed mappings.
If for your driver merging is always OK, creating a single huge region would do the trick I guess. Otherwise, we could also add an option to the GPUVA manager (or a specific region, which could also be a single huge one) within which it never merges.
Quoted 195 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.Matt
Quoted 184 lines
include/uapi/drm/nouveau_drm.h +8
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by
+ * a previously allocated VA space region. If the region is sparse, existing
+ * sparse mappings are overwritten.
+ */include/uapi/drm/nouveau_drm.h +5
-0+#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping
+ * is located in is a sparse region, new sparse mappings are created where the
+ * unmapped (memory backed) mapping was mapped previously.
+ */include/uapi/drm/nouveau_drm.h +19
-0+#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 + /** + * @flags: the flags for a &drm_nouveau_vm_bind_op + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) + /** + * @handle: the handle of the DRM GEM object to map + */ + __u32 handle; + /** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to
+ */
+__u64addr;
+ /**
+ * @bo_offset: the offset within the BO backing the mapping + */
+__u64bo_offset;
+ /**
+ * @range: the size of the requested mapping in bytes + */
+__u64range;include/uapi/drm/nouveau_drm.h +4
-0+}; + +/** +* struct drm_nouveau_vm_bind - structure for
DRM_IOCTL_NOUVEAU_VM_BIND
+ */include/uapi/drm/nouveau_drm.h +13
-0+struct drm_nouveau_vm_bind { + /** + * @op_count: the number of &drm_nouveau_vm_bind_op + */ + __u32 op_count; + /** + * @flags: the flags for a &drm_nouveau_vm_bind ioctl + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously
+ * by the kernel.
+ *
+ * If this flag is not supplied the kernel executes the associated operations
+ * synchronously and doesn't accept any&drm_nouveau_syncobjects.
+ */
+#defineDRM_NOUVEAU_VM_BIND_RUN_ASYNC0x1
+ /**
+ * @wait_count: the number of wait&drm_nouveau_syncs
+ */
+__u32wait_count;
+ /**
+ * @sig_count: the number of&drm_nouveau_syncsto signal when finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished + */
+__u64sig_ptr;
+ /**
+ * @op_ptr: pointer to the&drm_nouveau_vm_bind_opsto execute + */
+__u64op_ptr;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an
+ * array of this structure via struct drm_nouveau_exec's&push_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +29
-0+struct drm_nouveau_exec_push { + /** + * @va: the virtual address of the push buffer mapping + */ + __u64 va; + /** + * @va_len: the length of the push buffer mapping + */ + __u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { + /** + * @channel: the channel to execute the push buffer in + */ + __u32 channel; + /** + * @push_count: the number of &drm_nouveau_exec_push ops + */ + __u32 push_count; + /** + * @wait_count: the number of wait &drm_nouveau_syncs + */ + __u32 wait_count; + /** + * @sig_count: the number of &drm_nouveau_syncs to signal whenfinished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished + */
+__u64sig_ptr;
+ /**
+ * @push_ptr: pointer to&drm_nouveau_exec_pushops
+ */
+__u64push_ptr;include/uapi/drm/nouveau_drm.h +2
-0+}; +#define DRM_NOUVEAU_GETPARAM
0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC0x02/* deprecated */include/uapi/drm/nouveau_drm.h +5
-0@@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_NOUVEAU_NVIF 0x07 #define DRM_NOUVEAU_SVM_INIT 0x08 #define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12 #define DRM_NOUVEAU_GEM_NEW 0x40 #define DRM_NOUVEAU_GEM_PUSHBUF 0x41 #define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind { #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini) #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec) #if defined(__cplusplus)}
#endifSignature · 1 line
2.39.0
Christian König
maintainerRe: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 27.01.23 um 14:12 schrieb Danilo Krummrich:
Quoted 136 lines · Christian König
Quoted 135 lines
Am 27.01.23 um 02:26 schrieb Danilo Krummrich:
Quoted 133 lines · Matthew Brost
Quoted 122 lines · Danilo Krummrich
Quoted 121 lines
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>---
Documentation/gpu/driver-uapi.rst| 8 ++
include/uapi/drm/nouveau_drm.h | 216
++++++++++++++++++++++++++++++2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +0
-0@@ -6,3 +6,11 @@ drm/i915 uAPI=============
.. kernel-doc::include/uapi/drm/i915_drm.hDocumentation/gpu/driver-uapi.rst +8
-0+ +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +0
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini { __u32 handle; };+/**
+ * structdrm_nouveau_sync- sync object
+ *
+ * This structure serves as synchronization mechanism for (potentially)
+ * asynchronous operations such as EXEC orVM_BIND.
+ */
+structdrm_nouveau_sync{
+ /**
+ * @flags: the flags for a sync object
+ *
+ * The first 8 bits are used to determine the type of the sync object.
+ */
+__u32flags;include/uapi/drm/nouveau_drm.h +11
-0+#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf + /** + * @handle: the handle of the sync object + */ + __u32 handle; + /** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of
+ * typeDRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ.
+ */
+__u64timeline_value;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel
+ * which portion of the VA space is managed by the UMD and kernel respectively.
+ */
+structdrm_nouveau_vm_init{
+ /**
+ * @unmanaged_addr: start address of the kernel managed VA space region
+ */
+__u64unmanaged_addr;
+ /**
+ * @unmanaged_size: size of the kernel managed VA space region in bytes
+ */
+__u64unmanaged_size;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass
+ * an array of this structure via struct drm_nouveau_vm_bind's&op_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +9
-0+struct drm_nouveau_vm_bind_op { + /** + * @op: the operation type + */ + __u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA
+ * space. Optionally, the&DRM_NOUVEAU_VM_BIND_SPARSEflag can be passed toQuoted 8 lines
Quoted 4 lines
+ * instruct the kernel to create sparse mappings for the given region.
+ */
+#defineDRM_NOUVEAU_VM_BIND_OP_ALLOC0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
The idea for alloc/free is to let UMDs allocate a portion of the VA space (which I call a region), basically the same thing Vulkan represents with a VKBuffer.
Quoted 8 lines
Quoted 1 line
If that's mangled into the same component/interface then I can say from experience that this is a pretty bad idea. We have tried something similar with radeon and it turned out horrible.
What was the exact constellation in radeon and which problems did arise from it?
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.
That are two completely different things and shouldn't be handled in a single component.
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
Quoted 2 lines
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
Regards,
Christian.
Quoted 216 lines
Quoted 215 lines
amdgpu has even gotten so far that the VA allocations are tracked in libdrm in userspace
Regards,
Christian.Quoted 207 lines
It serves two purposes:
1. It gives the kernel (in particular the GPUVA manager) the bounds in which it is allowed to merge mappings. E.g. when a user request asks for a new mapping and we detect we could merge this mapping with an existing one (used in another VKBuffer than the mapping request came for) the driver is not allowed to change the page table for the existing mapping we want to merge with (assuming that some drivers would need to do this in order to merge), because the existing mapping could already be in use and by re-mapping it we'd potentially cause a fault on the GPU.
2. It is used for sparse residency in a way that such an allocated VA space region can be flagged as sparse, such that the kernel always keeps sparse mappings around for the parts of the region that do not contain actual memory backed mappings.
If for your driver merging is always OK, creating a single huge region would do the trick I guess. Otherwise, we could also add an option to the GPUVA manager (or a specific region, which could also be a single huge one) within which it never merges.
Quoted 197 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.Matt
Quoted 186 lines
include/uapi/drm/nouveau_drm.h +8
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by
+ * a previously allocated VA space region. If the region is sparse, existing
+ * sparse mappings are overwritten.
+ */include/uapi/drm/nouveau_drm.h +5
-0+#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping
+ * is located in is a sparse region, new sparse mappings are created where the
+ * unmapped (memory backed) mapping was mapped previously.
+ */include/uapi/drm/nouveau_drm.h +19
-0+#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 + /** + * @flags: the flags for a &drm_nouveau_vm_bind_op + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) + /** + * @handle: the handle of the DRM GEM object to map + */ + __u32 handle; + /** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to
+ */
+__u64addr;
+ /**
+ * @bo_offset: the offset within the BO backing the mapping + */
+__u64bo_offset;
+ /**
+ * @range: the size of the requested mapping in bytes + */
+__u64range;include/uapi/drm/nouveau_drm.h +4
-0+}; + +/** +* struct drm_nouveau_vm_bind - structure for
DRM_IOCTL_NOUVEAU_VM_BIND
+ */include/uapi/drm/nouveau_drm.h +13
-0+struct drm_nouveau_vm_bind { + /** + * @op_count: the number of &drm_nouveau_vm_bind_op + */ + __u32 op_count; + /** + * @flags: the flags for a &drm_nouveau_vm_bind ioctl + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously
+ * by the kernel.
+ *
+ * If this flag is not supplied the kernel executes the associated operations
+ * synchronously and doesn't accept any&drm_nouveau_syncobjects.
+ */
+#defineDRM_NOUVEAU_VM_BIND_RUN_ASYNC0x1
+ /**
+ * @wait_count: the number of wait&drm_nouveau_syncs+ */
+__u32wait_count;
+ /**
+ * @sig_count: the number of&drm_nouveau_syncsto signal when finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished
+ */
+__u64sig_ptr;
+ /**
+ * @op_ptr: pointer to the&drm_nouveau_vm_bind_opsto execute + */
+__u64op_ptr;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an
+ * array of this structure via struct drm_nouveau_exec's&push_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +29
-0+struct drm_nouveau_exec_push { + /** + * @va: the virtual address of the push buffer mapping + */ + __u64 va; + /** + * @va_len: the length of the push buffer mapping + */ + __u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { + /** + * @channel: the channel to execute the push buffer in + */ + __u32 channel; + /** + * @push_count: the number of &drm_nouveau_exec_push ops + */ + __u32 push_count; + /** + * @wait_count: the number of wait &drm_nouveau_syncs + */ + __u32 wait_count; + /** + * @sig_count: the number of &drm_nouveau_syncs to signalwhen finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished
+ */
+__u64sig_ptr;
+ /**
+ * @push_ptr: pointer to&drm_nouveau_exec_pushops + */
+__u64push_ptr;include/uapi/drm/nouveau_drm.h +2
-0+}; +#define DRM_NOUVEAU_GETPARAM
0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC0x02/* deprecated */include/uapi/drm/nouveau_drm.h +5
-0@@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_NOUVEAU_NVIF 0x07 #define DRM_NOUVEAU_SVM_INIT 0x08 #define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12 #define DRM_NOUVEAU_GEM_NEW 0x40 #define DRM_NOUVEAU_GEM_PUSHBUF 0x41 #define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind { #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini) #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec) #if defined(__cplusplus)}
#endifSignature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 141 lines · Christian König
Am 27.01.23 um 14:12 schrieb Danilo Krummrich:
Quoted 138 lines · Christian König
Quoted 136 lines
Am 27.01.23 um 02:26 schrieb Danilo Krummrich:
Quoted 132 lines · Matthew Brost
Quoted 122 lines · Danilo Krummrich
Quoted 121 lines
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>---
Documentation/gpu/driver-uapi.rst| 8 ++
include/uapi/drm/nouveau_drm.h | 216
++++++++++++++++++++++++++++++2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +0
-0@@ -6,3 +6,11 @@ drm/i915 uAPI=============
.. kernel-doc::include/uapi/drm/i915_drm.hDocumentation/gpu/driver-uapi.rst +8
-0+ +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +0
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini { __u32 handle; };+/**
+ * structdrm_nouveau_sync- sync object
+ *
+ * This structure serves as synchronization mechanism for (potentially)
+ * asynchronous operations such as EXEC orVM_BIND.
+ */
+structdrm_nouveau_sync{
+ /**
+ * @flags: the flags for a sync object
+ *
+ * The first 8 bits are used to determine the type of the sync object.
+ */
+__u32flags;include/uapi/drm/nouveau_drm.h +11
-0+#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf + /** + * @handle: the handle of the sync object + */ + __u32 handle; + /** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of
+ * typeDRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ.
+ */
+__u64timeline_value;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel
+ * which portion of the VA space is managed by the UMD and kernel respectively.
+ */
+structdrm_nouveau_vm_init{
+ /**
+ * @unmanaged_addr: start address of the kernel managed VA space region
+ */
+__u64unmanaged_addr;
+ /**
+ * @unmanaged_size: size of the kernel managed VA space region in bytes
+ */
+__u64unmanaged_size;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass
+ * an array of this structure via struct drm_nouveau_vm_bind's&op_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +9
-0+struct drm_nouveau_vm_bind_op { + /** + * @op: the operation type + */ + __u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA
+ * space. Optionally, the&DRM_NOUVEAU_VM_BIND_SPARSEflag can be passed toQuoted 8 lines
Quoted 4 lines
+ * instruct the kernel to create sparse mappings for the given region.
+ */
+#defineDRM_NOUVEAU_VM_BIND_OP_ALLOC0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 1 line
The idea for alloc/free is to let UMDs allocate a portion of the VA space (which I call a region), basically the same thing Vulkan represents with a VKBuffer.
If that's mangled into the same component/interface then I can say from experience that this is a pretty bad idea. We have tried something similar with radeon and it turned out horrible.
Quoted 8 lines
Quoted 6 lines
What was the exact constellation in radeon and which problems did arise from it?
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Maybe the non-ideal choice of using drm_mm was implying something else.
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Quoted 5 lines
Quoted 3 lines
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the VK_BUFFER_CREATE_SPARSE_BINDING_BIT the kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.
Currently, the implementation does this the following way:
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Quoted 221 lines
Regards,
Christian.Quoted 216 lines
Quoted 215 lines
amdgpu has even gotten so far that the VA allocations are tracked in libdrm in userspace
Regards,
Christian.Quoted 207 lines
It serves two purposes:
1. It gives the kernel (in particular the GPUVA manager) the bounds in which it is allowed to merge mappings. E.g. when a user request asks for a new mapping and we detect we could merge this mapping with an existing one (used in another VKBuffer than the mapping request came for) the driver is not allowed to change the page table for the existing mapping we want to merge with (assuming that some drivers would need to do this in order to merge), because the existing mapping could already be in use and by re-mapping it we'd potentially cause a fault on the GPU.
2. It is used for sparse residency in a way that such an allocated VA space region can be flagged as sparse, such that the kernel always keeps sparse mappings around for the parts of the region that do not contain actual memory backed mappings.
If for your driver merging is always OK, creating a single huge region would do the trick I guess. Otherwise, we could also add an option to the GPUVA manager (or a specific region, which could also be a single huge one) within which it never merges.
Quoted 197 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space. To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.Matt
Quoted 186 lines
include/uapi/drm/nouveau_drm.h +8
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by
+ * a previously allocated VA space region. If the region is sparse, existing
+ * sparse mappings are overwritten.
+ */include/uapi/drm/nouveau_drm.h +5
-0+#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping
+ * is located in is a sparse region, new sparse mappings are created where the
+ * unmapped (memory backed) mapping was mapped previously.
+ */include/uapi/drm/nouveau_drm.h +19
-0+#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 + /** + * @flags: the flags for a &drm_nouveau_vm_bind_op + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) + /** + * @handle: the handle of the DRM GEM object to map + */ + __u32 handle; + /** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to
+ */
+__u64addr;
+ /**
+ * @bo_offset: the offset within the BO backing the mapping + */
+__u64bo_offset;
+ /**
+ * @range: the size of the requested mapping in bytes + */
+__u64range;include/uapi/drm/nouveau_drm.h +4
-0+}; + +/** +* struct drm_nouveau_vm_bind - structure for
DRM_IOCTL_NOUVEAU_VM_BIND
+ */include/uapi/drm/nouveau_drm.h +13
-0+struct drm_nouveau_vm_bind { + /** + * @op_count: the number of &drm_nouveau_vm_bind_op + */ + __u32 op_count; + /** + * @flags: the flags for a &drm_nouveau_vm_bind ioctl + */ + __u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously
+ * by the kernel.
+ *
+ * If this flag is not supplied the kernel executes the associated operations
+ * synchronously and doesn't accept any&drm_nouveau_syncobjects.
+ */
+#defineDRM_NOUVEAU_VM_BIND_RUN_ASYNC0x1
+ /**
+ * @wait_count: the number of wait&drm_nouveau_syncs+ */
+__u32wait_count;
+ /**
+ * @sig_count: the number of&drm_nouveau_syncsto signal when finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished
+ */
+__u64sig_ptr;
+ /**
+ * @op_ptr: pointer to the&drm_nouveau_vm_bind_opsto execute + */
+__u64op_ptr;include/uapi/drm/nouveau_drm.h +6
-0+}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an
+ * array of this structure via struct drm_nouveau_exec's&push_ptrfield.
+ */include/uapi/drm/nouveau_drm.h +29
-0+struct drm_nouveau_exec_push { + /** + * @va: the virtual address of the push buffer mapping + */ + __u64 va; + /** + * @va_len: the length of the push buffer mapping + */ + __u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { + /** + * @channel: the channel to execute the push buffer in + */ + __u32 channel; + /** + * @push_count: the number of &drm_nouveau_exec_push ops + */ + __u32 push_count; + /** + * @wait_count: the number of wait &drm_nouveau_syncs + */ + __u32 wait_count; + /** + * @sig_count: the number of &drm_nouveau_syncs to signalwhen finished
+ */
+__u32sig_count;
+ /**
+ * @wait_ptr: pointer to&drm_nouveau_syncsto wait for + */
+__u64wait_ptr;
+ /**
+ * @sig_ptr: pointer to&drm_nouveau_syncsto signal when finished
+ */
+__u64sig_ptr;
+ /**
+ * @push_ptr: pointer to&drm_nouveau_exec_pushops + */
+__u64push_ptr;include/uapi/drm/nouveau_drm.h +2
-0+}; +#define DRM_NOUVEAU_GETPARAM
0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC0x02/* deprecated */include/uapi/drm/nouveau_drm.h +5
-0@@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_NOUVEAU_NVIF 0x07 #define DRM_NOUVEAU_SVM_INIT 0x08 #define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12 #define DRM_NOUVEAU_GEM_NEW 0x40 #define DRM_NOUVEAU_GEM_PUSHBUF 0x41 #define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind { #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini) #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec) #if defined(__cplusplus)}
#endifSignature · 1 line
2.39.0
Christian König
maintainerRe: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 8 lines
[SNIP]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
Quoted 7 lines
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Maybe the non-ideal choice of using
drm_mmwas implying something else.
Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
Quoted 3 lines
Quoted 1 line
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
Quoted 7 lines
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Then I would start with the VA allocation manager. You could probably base that on drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.
Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 103 lines · Christian König
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 28 lines
[SNIP]
Quoted 15 lines
Quoted 5 lines
Quoted 4 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).Quoted 9 lines
That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.Quoted 2 lines
That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
Quoted 4 lines
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
Quoted 5 lines
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
Quoted 25 lines
Quoted 4 lines
Quoted 2 lines
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
Quoted 6 lines
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA. x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.
Quoted 7 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.
There are NO plans to have drm_mm do VA region management, VA region management will be in userspace in Mesa. Can we just not bring that up again? This is for GPU VA tracking not management if that makes it easier we could rename it.
Quoted 6 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
3.5?
Userspace asks the kernel to unmap A+1 so it can later map something else in there?
What happens in that case, with a set of queued binds, do you just do a new sparse mapping for A+1, does userspace decide that?
Dave.
Quoted 29 lines
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Christian König
maintainerRe: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 27.01.23 um 21:25 schrieb David Airlie:
Quoted 17 lines
[SNIP]
Quoted 16 lines
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA. x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.All this is plus some hw specific caching flags.
Quoted 7 lines
Quoted 5 lines
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.There are NO plans to have
drm_mmdo VA region management, VA region management will be in userspace in Mesa. Can we just not bring that up again?
If we are talking about Mesa drivers then yes that should work because they can then implement all the hw specific quirks you need for VA allocation. If the VA allocation should be hw independent then we have a major problem here.
At least on AMD hw we have four different address spaces and even if you know of hand from which one you want to allocate you need to share your address space between Vulkan, VA-API and potentially even things like ROCm/OpenCL.
If we don't properly do that then the AMD user space tools for debugging and profiling (RMV, UMR etc...) won't work any more.
Quoted 8 lines
This is for GPU VA tracking not management if that makes it easier we could rename it.
Quoted 5 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
Quoted 7 lines
3.5?
Userspace asks the kernel to unmap A+1 so it can later map something else in there?
What happens in that case, with a set of queued binds, do you just do a new sparse mapping for A+1, does userspace decide that?
Yes, exactly that. Essentially there are no unmap operation from the kernel pov.
You just tell the kernel what should happen when the hw tries to resolve address X.
This what can happen can potentially be resolve to some buffer memory, ignored for sparse binding or generate a fault. This is stuff which is most likely common to all drivers.
But then at least on newer AMD hardware we also have things like raise a debug trap on access, wait forever until a debugger tells you to continue.....
It would be great if we could have the common stuff for a VA update IOCTL common for all drivers, e.g. in/out fences, range description (start, offset, end....), GEM handle in a standardized structure while still be able to handle all that hw specific stuff as well.
Christian.
Quoted 31 lines
Dave.
Quoted 28 lines
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
In reply to Christian KönigQuoted 15 lines · Christian König
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 14 lines
[SNIP]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Quoted 7 lines
Quoted 1 line
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
A range in the sense of the GPUVA manager simply represents a VA space allocation (which in case of Nouveau is taken in userspace). Userspace allocates the portion of VA space and lets the kernel know about it. The current implementation needs that for the named reasons. So, I think there is no reason why this would work with one GPU, but not with another. It's just part of the design choice of the manager.
And I'm absolutely happy to discuss the details of the manager implementation though.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
And those are the ones I'm looking for. Do you mind sharing the requirements for amdgpu in particular?
Quoted 29 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
Quoted 7 lines
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.
Quoted 5 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.
Right, for Nouveau we have this in userspace as well.
Quoted 6 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
Until here this seems to be identical to what I'm doing.
It'd be interesting to know how amdgpu handles everything that potentially happens between your 3) and 4). More specifically, how are the page tables changed when memory backed mappings are mapped on a sparse range? What happens when the memory backed mappings are unmapped, but the VKBuffer isn't de-allocated, and hence sparse mappings need to be re-deployed?
Let's assume the sparse VKBuffer (and hence the VA space allocation) is pretty large. In Nouveau the corresponding PTEs would have a rather huge page size to cover this. Now, if small memory backed mappings are mapped to this huge sparse buffer, in Nouveau we'd allocate a new PT with a corresponding smaller page size overlaying the sparse mappings PTEs.
How would this look like in amdgpu?
Quoted 4 lines
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Why do you consider tracking single PTEs superior to tracking VMAs? All the properties for a page you mentioned above should be equal for the entirety of pages of a whole (memory backed) mapping, aren't they?
Quoted 2 lines
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.
It was not my intention to come up with an actual allocator for the VA space in the sense of actually finding a free and fitting hole in the VA space.
For Nouveau (and XE, I think) we have this in userspace and from what you've written previously I thought the same applies for amdgpu?
Quoted 2 lines
Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Considering what you wrote above I assume that small structures / mappings in this paragraph refer to PTEs.
Immediately, I don't really see how this fine grained resolution of single PTEs would help implementing this in Nouveau. Actually, I think it would even complicate the handling of PTs, but I would need to think about this a bit more.
Quoted 6 lines
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 82 lines · Danilo Krummrich
Quoted 15 lines · Christian König
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 14 lines
[SNIP]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Quoted 7 lines
Quoted 1 line
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
A range in the sense of the GPUVA manager simply represents a VA space allocation (which in case of Nouveau is taken in userspace). Userspace allocates the portion of VA space and lets the kernel know about it. The current implementation needs that for the named reasons. So, I think there is no reason why this would work with one GPU, but not with another. It's just part of the design choice of the manager.
And I'm absolutely happy to discuss the details of the manager implementation though.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
And those are the ones I'm looking for. Do you mind sharing the requirements for amdgpu in particular?
Quoted 29 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
Quoted 7 lines
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.Quoted 5 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.Right, for Nouveau we have this in userspace as well.
Quoted 6 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
Quoted 11 lines
Until here this seems to be identical to what I'm doing.
It'd be interesting to know how amdgpu handles everything that potentially happens between your 3) and 4). More specifically, how are the page tables changed when memory backed mappings are mapped on a sparse range? What happens when the memory backed mappings are unmapped, but the VKBuffer isn't de-allocated, and hence sparse mappings need to be re-deployed?
Let's assume the sparse VKBuffer (and hence the VA space allocation) is pretty large. In Nouveau the corresponding PTEs would have a rather huge page size to cover this. Now, if small memory backed mappings are mapped to this huge sparse buffer, in Nouveau we'd allocate a new PT with a corresponding smaller page size overlaying the sparse mappings PTEs.
How would this look like in amdgpu?
Quoted 3 lines
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
I just took some time digging into amdgpu and, surprisingly, aside from the gpuva_regions it seems like amdgpu basically does exactly the same as I do in the GPU VA manager. As explained, those region boundaries are needed for merging only and, depending on the driver, might be useful for sparse mappings.
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those gpuva_regions optional.
Quoted 24 lines
Quoted 1 line
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Why do you consider tracking single PTEs superior to tracking VMAs? All the properties for a page you mentioned above should be equal for the entirety of pages of a whole (memory backed) mapping, aren't they?
Quoted 2 lines
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.It was not my intention to come up with an actual allocator for the VA space in the sense of actually finding a free and fitting hole in the VA space.
For Nouveau (and XE, I think) we have this in userspace and from what you've written previously I thought the same applies for amdgpu?
Quoted 2 lines
Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Considering what you wrote above I assume that small structures / mappings in this paragraph refer to PTEs.
Immediately, I don't really see how this fine grained resolution of single PTEs would help implementing this in Nouveau. Actually, I think it would even complicate the handling of PTs, but I would need to think about this a bit more.
Quoted 6 lines
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Christian König
maintainerRe: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 29.01.23 um 19:46 schrieb Danilo Krummrich:
Quoted 92 lines · Danilo Krummrich
Quoted 91 lines · Christian König
Quoted 15 lines
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 14 lines
[SNIP]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Quoted 7 lines
Quoted 1 line
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
A range in the sense of the GPUVA manager simply represents a VA space allocation (which in case of Nouveau is taken in userspace). Userspace allocates the portion of VA space and lets the kernel know about it. The current implementation needs that for the named reasons. So, I think there is no reason why this would work with one GPU, but not with another. It's just part of the design choice of the manager.
And I'm absolutely happy to discuss the details of the manager implementation though.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
And those are the ones I'm looking for. Do you mind sharing the requirements for amdgpu in particular?
Quoted 29 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
Quoted 7 lines
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.Quoted 5 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.Right, for Nouveau we have this in userspace as well.
Quoted 6 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
Until here this seems to be identical to what I'm doing.
It'd be interesting to know how amdgpu handles everything that potentially happens between your 3) and 4). More specifically, how are the page tables changed when memory backed mappings are mapped on a sparse range? What happens when the memory backed mappings are unmapped, but the VKBuffer isn't de-allocated, and hence sparse mappings need to be re-deployed?
Let's assume the sparse VKBuffer (and hence the VA space allocation) is pretty large. In Nouveau the corresponding PTEs would have a rather huge page size to cover this. Now, if small memory backed mappings are mapped to this huge sparse buffer, in Nouveau we'd allocate a new PT with a corresponding smaller page size overlaying the sparse mappings PTEs.
How would this look like in amdgpu?
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
I just took some time digging into amdgpu and, surprisingly, aside from the
gpuva_regionsit seems like amdgpu basically does exactly the same as I do in the GPU VA manager. As explained, those region boundaries are needed for merging only and, depending on the driver, might be useful for sparse mappings.For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.
Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
Let me ask the other way around how does the hw implementation of a sparse mapping looks like for NVidia based hardware?
For newer AMD hw its a flag in the page tables, for older hw its a register where you can specify ranges A..B. We don't really support the later with AMDGPU any more, but from this interface I would guess you have the second variant, right?
Christian.
Quoted 26 lines
Quoted 25 lines
Quoted 2 lines
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Why do you consider tracking single PTEs superior to tracking VMAs? All the properties for a page you mentioned above should be equal for the entirety of pages of a whole (memory backed) mapping, aren't they?
Quoted 2 lines
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.It was not my intention to come up with an actual allocator for the VA space in the sense of actually finding a free and fitting hole in the VA space.
For Nouveau (and XE, I think) we have this in userspace and from what you've written previously I thought the same applies for amdgpu?
Quoted 2 lines
Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Considering what you wrote above I assume that small structures / mappings in this paragraph refer to PTEs.
Immediately, I don't really see how this fine grained resolution of single PTEs would help implementing this in Nouveau. Actually, I think it would even complicate the handling of PTs, but I would need to think about this a bit more.
Quoted 6 lines
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 93 lines · Christian König
Am 29.01.23 um 19:46 schrieb Danilo Krummrich:
Quoted 92 lines · Danilo Krummrich
Quoted 91 lines · Christian König
Quoted 15 lines
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 14 lines
[SNIP]
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Quoted 7 lines
Quoted 1 line
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
A range in the sense of the GPUVA manager simply represents a VA space allocation (which in case of Nouveau is taken in userspace). Userspace allocates the portion of VA space and lets the kernel know about it. The current implementation needs that for the named reasons. So, I think there is no reason why this would work with one GPU, but not with another. It's just part of the design choice of the manager.
And I'm absolutely happy to discuss the details of the manager implementation though.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
And those are the ones I'm looking for. Do you mind sharing the requirements for amdgpu in particular?
Quoted 29 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
Quoted 7 lines
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.Quoted 5 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.Right, for Nouveau we have this in userspace as well.
Quoted 6 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
Until here this seems to be identical to what I'm doing.
It'd be interesting to know how amdgpu handles everything that potentially happens between your 3) and 4). More specifically, how are the page tables changed when memory backed mappings are mapped on a sparse range? What happens when the memory backed mappings are unmapped, but the VKBuffer isn't de-allocated, and hence sparse mappings need to be re-deployed?
Let's assume the sparse VKBuffer (and hence the VA space allocation) is pretty large. In Nouveau the corresponding PTEs would have a rather huge page size to cover this. Now, if small memory backed mappings are mapped to this huge sparse buffer, in Nouveau we'd allocate a new PT with a corresponding smaller page size overlaying the sparse mappings PTEs.
How would this look like in amdgpu?
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
I just took some time digging into amdgpu and, surprisingly, aside from the
gpuva_regionsit seems like amdgpu basically does exactly the same as I do in the GPU VA manager. As explained, those region boundaries are needed for merging only and, depending on the driver, might be useful for sparse mappings.For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
That's probably a question of interpretation and I'd rather see it as an optional feature. Probably 80% to 90% of the code is for tracking mappings, generating split / merge steps on bind / unbind and connect the mappings to GEM objects. This would be the same for all the drivers and some might opt-in for using the feature of additionally tracking regions on top and other won't.
Quoted 4 lines
Let me ask the other way around how does the hw implementation of a sparse mapping looks like for NVidia based hardware?
For newer AMD hw its a flag in the page tables, for older hw its a register where you can specify ranges A..B. We don't really support the later with AMDGPU any more, but from this interface I would guess you have the second variant, right?
No, it's a flag in the PTEs as well.
However, for a rather huge sparse region the sparse PTEs might have a different (larger) page size than the PTEs of the (smaller) memory backed mappings. Hence, it might be that when trying to map a small memory backed mapping within a huge sparse region, we can *not* just change the sparse PTE to point to actual memory, but rather create a new PT with a smaller page size kind of overlaying the page table containing the sparse PTEs with a greater page size.
In such a situation, tracking the whole (sparse) region (representing the whole VA allocation) separately comes in handy.
And of course, as mentioned, tracking regions gives us the bounds for merging, which e.g. might be useful to pick a greater page size for merged mappings. It might also keep the amount of mappings to track down by a little bit, however, this would probably only be relevant if we actually have quite a few to merge.
Quoted 30 lines
Christian.
Quoted 26 lines
Quoted 25 lines
Quoted 2 lines
First of all don't think about those mappings as VMAs, that won't work because VMAs are usually something large. Think of this as individual PTEs controlled by the application. similar how COW mappings and struct pages are handled inside the kernel.
Why do you consider tracking single PTEs superior to tracking VMAs? All the properties for a page you mentioned above should be equal for the entirety of pages of a whole (memory backed) mapping, aren't they?
Quoted 2 lines
Then I would start with the VA allocation manager. You could probably base that on
drm_mm. We handle it differently in amdgpu currently, but I think this is something we could change.It was not my intention to come up with an actual allocator for the VA space in the sense of actually finding a free and fitting hole in the VA space.
For Nouveau (and XE, I think) we have this in userspace and from what you've written previously I thought the same applies for amdgpu?
Quoted 2 lines
Then come up with something close to the amdgpu VM system. I'm pretty sure that should work for Nouveau and Intel XA as well. In other words you just have a bunch of very very small structures which represents mappings and a larger structure which combine all mappings of a specific type, e.g. all mappings of a BO or all sparse mappings etc...
Considering what you wrote above I assume that small structures / mappings in this paragraph refer to PTEs.
Immediately, I don't really see how this fine grained resolution of single PTEs would help implementing this in Nouveau. Actually, I think it would even complicate the handling of PTs, but I would need to think about this a bit more.
Quoted 6 lines
Merging of regions is actually not mandatory. We don't do it in amdgpu and can live with the additional mappings pretty well. But I think this can differ between drivers.
Regards,
Christian.
Dave Airlie
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
In reply to Christian KönigQuoted 178 lines · Christian König
Am 29.01.23 um 19:46 schrieb Danilo Krummrich:
Quoted 176 lines · Danilo Krummrich
Quoted 155 lines · Christian König
Quoted 39 lines
Am 27.01.23 um 15:44 schrieb Danilo Krummrich:
Quoted 28 lines
[SNIP]
Quoted 15 lines
Quoted 5 lines
Quoted 4 lines
What you want is one component for tracking the VA allocations (
drm_mmbased) and a different component/interface for tracking the VA mappings (probably rb tree based).Quoted 9 lines
That's what the GPUVA manager is doing. There are
gpuva_regionswhich correspond to VA allocations and gpuvas which represent the mappings. Both are tracked separately (currently both with a separatedrm_mm, though). However, the GPUVA manager needs to take regions into account when dealing with mappings to make sure the GPUVA manager doesn't propose drivers to merge over region boundaries. Speaking from userspace PoV, the kernel wouldn't merge mappings from different VKBuffer objects even if they're virtually and physically contiguous.Quoted 2 lines
That are two completely different things and shouldn't be handled in a single component.
They are different things, but they're related in a way that for handling the mappings (in particular merging and sparse) the GPUVA manager needs to know the VA allocation (or region) boundaries.
I have the feeling there might be a misunderstanding. Userspace is in charge to actually allocate a portion of VA space and manage it. The GPUVA manager just needs to know about those VA space allocations and hence keeps track of them.
Quoted 5 lines
The GPUVA manager is not meant to be an allocator in the sense of finding and providing a hole for a given request.
Maybe the non-ideal choice of using
drm_mmwas implying something else.Uff, well long story short that doesn't even remotely match the requirements. This way the GPUVA manager won't be usable for a whole bunch of use cases.
Quoted 5 lines
What we have are mappings which say X needs to point to Y with this and hw dependent flags.
The whole idea of having ranges is not going to fly. Neither with AMD GPUs and I strongly think not with Intels XA either.
A range in the sense of the GPUVA manager simply represents a VA space allocation (which in case of Nouveau is taken in userspace). Userspace allocates the portion of VA space and lets the kernel know about it. The current implementation needs that for the named reasons. So, I think there is no reason why this would work with one GPU, but not with another. It's just part of the design choice of the manager.
And I'm absolutely happy to discuss the details of the manager implementation though.
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
We should probably talk about the design of the GPUVA manager once more when this should be applicable to all GPU drivers.
That's what I try to figure out with this RFC, how to make it appicable for all GPU drivers, so I'm happy to discuss this. :-)
Yeah, that was really good idea :) That proposal here is really far away from the actual requirements.
And those are the ones I'm looking for. Do you mind sharing the requirements for amdgpu in particular?
Quoted 52 lines
Quoted 25 lines
Quoted 4 lines
Quoted 2 lines
For sparse residency the kernel also needs to know the region boundaries to make sure that it keeps sparse mappings around.
What?
When userspace creates a new VKBuffer with the
VK_BUFFER_CREATE_SPARSE_BINDING_BITthe kernel may need to create sparse mappings in order to ensure that using this buffer without any memory backed mappings doesn't fault the GPU.Currently, the implementation does this the following way:
1. Userspace creates a new VKBuffer and hence allocates a portion of the VA space for it. It calls into the kernel indicating the new VA space region and the fact that the region is sparse.
2. The kernel picks up the region and stores it in the GPUVA manager, the driver creates the corresponding sparse mappings / page table entries.
3. Userspace might ask the driver to create a couple of memory backed mappings for this particular VA region. The GPUVA manager stores the mapping parameters, the driver creates the corresponding page table entries.
Quoted 6 lines
4. Userspace might ask to unmap all the memory backed mappings from this particular VA region. The GPUVA manager removes the mapping parameters, the driver cleans up the corresponding page table entries. However, the driver also needs to re-create the sparse mappings, since it's a sparse buffer, hence it needs to know the boundaries of the region it needs to create the sparse mappings in.
Again, this is not how things are working. First of all the kernel absolutely should *NOT* know about those regions.
What we have inside the kernel is the information what happens if an address X is accessed. On AMD HW this can be:
1. Route to the PCIe bus because the mapped BO is stored in system memory.
2. Route to the internal MC because the mapped BO is stored in local memory.
3. Route to other GPUs in the same hive.
4. Route to some doorbell to kick of other work.
...
x. Ignore write, return 0 on reads (this is what is used for sparse mappings).
x+1. Trigger a recoverable page fault. This is used for things like SVA.
x+2. Trigger a non-recoverable page fault. This is used for things like unmapped regions where access is illegal.Quoted 8 lines
All this is plus some hw specific caching flags.
When Vulkan allocates a sparse VKBuffer what should happen is the following:
1. The Vulkan driver somehow figures out a VA region A..B for the buffer. This can be in userspace (
libdrm_amdgpu) or kernel (drm_mm), but essentially is currently driver specific.Right, for Nouveau we have this in userspace as well.
Quoted 11 lines
2. The kernel gets a request to map the VA range A..B as sparse, meaning that it updates the page tables from A..B with the sparse setting.
3. User space asks kernel to map a couple of memory backings at location A+1, A+10, A+15 etc....
4. The VKBuffer is de-allocated, userspace asks kernel to update region A..B to not map anything (usually triggers a non-recoverable fault).
Until here this seems to be identical to what I'm doing.
It'd be interesting to know how amdgpu handles everything that potentially happens between your 3) and 4). More specifically, how are the page tables changed when memory backed mappings are mapped on a sparse range? What happens when the memory backed mappings are unmapped, but the VKBuffer isn't de-allocated, and hence sparse mappings need to be re-deployed?
Quoted 13 lines
Let's assume the sparse VKBuffer (and hence the VA space allocation) is pretty large. In Nouveau the corresponding PTEs would have a rather huge page size to cover this. Now, if small memory backed mappings are mapped to this huge sparse buffer, in Nouveau we'd allocate a new PT with a corresponding smaller page size overlaying the sparse mappings PTEs.
How would this look like in amdgpu?
Quoted 4 lines
When you want to unify this between hw drivers I strongly suggest to completely start from scratch once more.
I just took some time digging into amdgpu and, surprisingly, aside from the
gpuva_regionsit seems like amdgpu basically does exactly the same as I do in the GPU VA manager. As explained, those region boundaries are needed for merging only and, depending on the driver, might be useful for sparse mappings.
Quoted 6 lines
Quoted 3 lines
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
I think you are running a few steps ahead here. The plan isn't to have an independent interface, it's to provide a set of routines and tracking that will be consistent across drivers, so that all drivers once using them will operate in mostly the same fashion with respect to GPU VA tracking and VA/BO lifetimes. Already in the tree we have amdgpu and freedreno which I think end up operating slightly different around lifetimes. I'd like to save future driver writers the effort of dealing with those decisions and this should drive their user api design so to enable vulkan sparse bindings.
Now if merging is a feature that makes sense to one driver maybe it makes sense to all, however there may be reasons amdgpu gets away without merging that other drivers might not benefit from, there might also be a benefit to amdgpu from merging that you haven't looked at yet, so I think we could leave merging as an optional extra driver knob here. The userspace API should operate the same, it would just be the gpu pagetables that would end up different sizes.
Dave.
Christian König
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 01.02.23 um 09:10 schrieb Dave Airlie:
Quoted 6 lines
[SNIP]
Quoted 5 lines
Quoted 3 lines
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
Quoted 9 lines
I think you are running a few steps ahead here. The plan isn't to have an independent interface, it's to provide a set of routines and tracking that will be consistent across drivers, so that all drivers once using them will operate in mostly the same fashion with respect to GPU VA tracking and VA/BO lifetimes. Already in the tree we have amdgpu and freedreno which I think end up operating slightly different around lifetimes. I'd like to save future driver writers the effort of dealing with those decisions and this should drive their user api design so to enable vulkan sparse bindings.
Ok in this case I'm pretty sure this is *NOT* a good idea.
See this means that we define the UAPI implicitly by saying to drivers to use a common framework for their VM implementation which then results in behavior A,B,C,D....
If a driver strides away from this common framework because it has different requirements based on how his hw work you certainly get different behavior again (and you have tons of hw specific requirements in here).
What we should do instead if we want to have some common handling among drivers (which I totally agree on makes sense) then we should define the UAPI explicitly.
For example we could have a DRM_IOCTL_GPU_VM which takes both driver independent as well as driver dependent information and then has the documented behavior:
a) VAs do (or don't) vanish automatically when the GEM handle is closed.
b) GEM BOs do (or don't) get an additional reference for each VM they are used in.
c) Can handle some common use cases driver independent (BO mappings, readonly, writeonly, sparse etc...).
d) Has a well defined behavior when the operation is executed async. E.g. in/out fences.
e) Can still handle hw specific stuff like (for example) trap on access etc....
...
Especially d is what Bas and I have pretty much already created a prototype for the amdgpu specific IOCTL for, but essentially this is completely driver independent and actually the more complex stuff. Compared to that common lifetime of BOs is just nice to have.
I strongly think we should concentrate on getting this right as well.
Quoted 7 lines
Now if merging is a feature that makes sense to one driver maybe it makes sense to all, however there may be reasons amdgpu gets away without merging that other drivers might not benefit from, there might also be a benefit to amdgpu from merging that you haven't looked at yet, so I think we could leave merging as an optional extra driver knob here. The userspace API should operate the same, it would just be the gpu pagetables that would end up different sizes.
Yeah, agree completely. The point is that we should not have complexity inside the kernel which is not necessarily needed in the kernel.
So merging or not is something we have gone back and forth for amdgpu, one the one hand it reduces the memory footprint of the housekeeping overhead on the other hand it makes the handling more complex, error prone and use a few more CPU cycles.
For amdgpu merging is mostly beneficial when you can get rid of a whole page tables layer in the hierarchy, but for this you need to merge at least 2MiB or 1GiB together. And since that case doesn't happen that often we stopped doing it.
But for my understanding why you need the ranges for the merging? Isn't it sufficient to check that the mappings have the same type, flags, BO, whatever backing them?
Regards,
Christian.
Quoted 2 lines
Dave.
Re: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 17 lines · Christian König
Am 01.02.23 um 09:10 schrieb Dave Airlie:
Quoted 6 lines
[SNIP]
Quoted 5 lines
Quoted 3 lines
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
Quoted 9 lines
I think you are running a few steps ahead here. The plan isn't to have an independent interface, it's to provide a set of routines and tracking that will be consistent across drivers, so that all drivers once using them will operate in mostly the same fashion with respect to GPU VA tracking and VA/BO lifetimes. Already in the tree we have amdgpu and freedreno which I think end up operating slightly different around lifetimes. I'd like to save future driver writers the effort of dealing with those decisions and this should drive their user api design so to enable vulkan sparse bindings.
Quoted 7 lines
Ok in this case I'm pretty sure this is *NOT* a good idea.
See this means that we define the UAPI implicitly by saying to drivers to use a common framework for their VM implementation which then results in behavior A,B,C,D....
If a driver strides away from this common framework because it has different requirements based on how his hw work you certainly get different behavior again (and you have tons of hw specific requirements in here).
What we should do instead if we want to have some common handling among drivers (which I totally agree on makes sense) then we should define the UAPI explicitly.
By asking that I don't want to say I'm against this idea, I'm just wondering how it becomes easier to deal with "tons of hw specific requirements" by generalizing things even more?
What makes us think that we do a better job in considering all hw specific requirements with a unified UAPI than with a more lightweight generic component for tracking VA mappings?
Also, wouldn't we need something like the GPUVA manager as part of a unified UAPI?
Quoted 21 lines
For example we could have a
DRM_IOCTL_GPU_VMwhich takes both driver independent as well as driver dependent information and then has the documented behavior:
a) VAs do (or don't) vanish automatically when the GEM handle is closed.
b) GEM BOs do (or don't) get an additional reference for each VM they are used in.
c) Can handle some common use cases driver independent (BO mappings, readonly, writeonly, sparse etc...).
d) Has a well defined behavior when the operation is executed async. E.g. in/out fences.
e) Can still handle hw specific stuff like (for example) trap on access etc....
...Especially d is what Bas and I have pretty much already created a prototype for the amdgpu specific IOCTL for, but essentially this is completely driver independent and actually the more complex stuff. Compared to that common lifetime of BOs is just nice to have.
I strongly think we should concentrate on getting this right as well.
Quoted 7 lines
Now if merging is a feature that makes sense to one driver maybe it makes sense to all, however there may be reasons amdgpu gets away without merging that other drivers might not benefit from, there might also be a benefit to amdgpu from merging that you haven't looked at yet, so I think we could leave merging as an optional extra driver knob here. The userspace API should operate the same, it would just be the gpu pagetables that would end up different sizes.
Quoted 7 lines
Yeah, agree completely. The point is that we should not have complexity inside the kernel which is not necessarily needed in the kernel.
So merging or not is something we have gone back and forth for amdgpu, one the one hand it reduces the memory footprint of the housekeeping overhead on the other hand it makes the handling more complex, error prone and use a few more CPU cycles.
For amdgpu merging is mostly beneficial when you can get rid of a whole page tables layer in the hierarchy, but for this you need to merge at least 2MiB or 1GiB together. And since that case doesn't happen that often we stopped doing it.
But for my understanding why you need the ranges for the merging? Isn't it sufficient to check that the mappings have the same type, flags, BO, whatever backing them?
Not entirely. Let's assume userspace creates two virtually contiguous buffers (VKBuffer) A and B. Userspace could bind a BO with BO offset 0 to A (binding 1) and afterwards bind the same BO with BO offset length(A) to B (binding 2), maybe unlikely but AFAIK not illegal.
If we don't know about the bounds of A and B in the kernel, we detect that both bindings are virtually and physically contiguous and we merge them.
In the best case this was simply useless, because we'll need to split them anyway later on when A or B is destroyed, but in the worst case we could fault the GPU, e.g. if merging leads to a change of the page tables that are backing binding 1, but buffer A is already in use by userspace.
In Nouveau, I think we could also get rid of regions and do something driver specific for the handling of the dual page tables, which I want to use for sparse regions *and* just don't merge (at least for now). But exactly for the sake of not limiting drivers in their HW specifics I thought it'd be great if merging is supported in case it makes sense for a specific HW, especially given the fact that memory sizes are increasing.
Quoted 8 lines
Regards,
Christian.Quoted 2 lines
Dave.
Christian König
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 02.02.23 um 19:31 schrieb Danilo Krummrich:
Quoted 20 lines · Christian König
Quoted 19 lines
Am 01.02.23 um 09:10 schrieb Dave Airlie:
Quoted 6 lines
[SNIP]
Quoted 5 lines
Quoted 3 lines
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
Quoted 9 lines
I think you are running a few steps ahead here. The plan isn't to have an independent interface, it's to provide a set of routines and tracking that will be consistent across drivers, so that all drivers once using them will operate in mostly the same fashion with respect to GPU VA tracking and VA/BO lifetimes. Already in the tree we have amdgpu and freedreno which I think end up operating slightly different around lifetimes. I'd like to save future driver writers the effort of dealing with those decisions and this should drive their user api design so to enable vulkan sparse bindings.
Ok in this case I'm pretty sure this is *NOT* a good idea.
Quoted 7 lines
Quoted 5 lines
See this means that we define the UAPI implicitly by saying to drivers to use a common framework for their VM implementation which then results in behavior A,B,C,D....
If a driver strides away from this common framework because it has different requirements based on how his hw work you certainly get different behavior again (and you have tons of hw specific requirements in here).
What we should do instead if we want to have some common handling among drivers (which I totally agree on makes sense) then we should define the UAPI explicitly.
By asking that I don't want to say I'm against this idea, I'm just wondering how it becomes easier to deal with "tons of hw specific requirements" by generalizing things even more?
I'm already maintaining two different GPU VM solutions in the GPU drivers in the kernel, radeon and amdgpu. The hw they driver is identical, just the UAPI is different. And only because of the different UAPI they can't have the same VM backend implementation.
The hw stuff is completely abstract able. That's just stuff you need to consider when defining the structures you pass around.
But a messed up UAPI is sometimes impossible to fix because of backward compatibility.
We learned that the hard way with radeon and mostly fixed it by coming up with a completely new implementation for amdgpu.
Quoted 1 line
What makes us think that we do a better job in considering all hw specific requirements with a unified UAPI than with a more lightweight generic component for tracking VA mappings?
Because this defines the UAPI implicitly and that's seldom a good idea.
As I said before tracking is the easy part of the job. Defining this generic component helps a little bit writing new drivers, but it leaves way to much room for speculations on the UAPI.
Quoted 1 line
Also, wouldn't we need something like the GPUVA manager as part of a unified UAPI?
Not necessarily. We can write components to help drivers implement the UAPI, but this isn't mandatory.
Quoted 26 lines
Quoted 26 lines
For example we could have a
DRM_IOCTL_GPU_VMwhich takes both driver independent as well as driver dependent information and then has the documented behavior:
a) VAs do (or don't) vanish automatically when the GEM handle is closed.
b) GEM BOs do (or don't) get an additional reference for each VM they are used in.
c) Can handle some common use cases driver independent (BO mappings, readonly, writeonly, sparse etc...).
d) Has a well defined behavior when the operation is executed async. E.g. in/out fences.
e) Can still handle hw specific stuff like (for example) trap on access etc....
...Especially d is what Bas and I have pretty much already created a prototype for the amdgpu specific IOCTL for, but essentially this is completely driver independent and actually the more complex stuff. Compared to that common lifetime of BOs is just nice to have.
I strongly think we should concentrate on getting this right as well.
Quoted 7 lines
Now if merging is a feature that makes sense to one driver maybe it makes sense to all, however there may be reasons amdgpu gets away without merging that other drivers might not benefit from, there might also be a benefit to amdgpu from merging that you haven't looked at yet, so I think we could leave merging as an optional extra driver knob here. The userspace API should operate the same, it would just be the gpu pagetables that would end up different sizes.
Yeah, agree completely. The point is that we should not have complexity inside the kernel which is not necessarily needed in the kernel.
So merging or not is something we have gone back and forth for amdgpu, one the one hand it reduces the memory footprint of the housekeeping overhead on the other hand it makes the handling more complex, error prone and use a few more CPU cycles.
Quoted 7 lines
Quoted 3 lines
For amdgpu merging is mostly beneficial when you can get rid of a whole page tables layer in the hierarchy, but for this you need to merge at least 2MiB or 1GiB together. And since that case doesn't happen that often we stopped doing it.
But for my understanding why you need the ranges for the merging? Isn't it sufficient to check that the mappings have the same type, flags, BO, whatever backing them?
Not entirely. Let's assume userspace creates two virtually contiguous buffers (VKBuffer) A and B. Userspace could bind a BO with BO offset 0 to A (binding 1) and afterwards bind the same BO with BO offset length(A) to B (binding 2), maybe unlikely but AFAIK not illegal.
If we don't know about the bounds of A and B in the kernel, we detect that both bindings are virtually and physically contiguous and we merge them.
Well as far as I can see this is actually legal and desirable.
Quoted 2 lines
In the best case this was simply useless, because we'll need to split them anyway later on when A or B is destroyed, but in the worst case we could fault the GPU, e.g. if merging leads to a change of the page tables that are backing binding 1, but buffer A is already in use by userspace.
WOW wait a second, regions absolutely don't help you with that anyway.
You need to keep track which mappings are used or otherwise any modification could lead to problems.
In other words when the GPU already uses A you *must* have a fence on the page tables backing A to prevent their destruction.
Quoted 2 lines
In Nouveau, I think we could also get rid of regions and do something driver specific for the handling of the dual page tables, which I want to use for sparse regions *and* just don't merge (at least for now). But exactly for the sake of not limiting drivers in their HW specifics I thought it'd be great if merging is supported in case it makes sense for a specific HW, especially given the fact that memory sizes are increasing.
What do you mean with that?
If you want your page tables to be modifiable while the GPU is using them (which is basically a standard requirement from sparse bindings in Vulkan) you need double housekeeping anyway.
Those regions strongly sound like you are pushing stuff which should be handled in userspace inside the kernel.
Regards,
Christian.
Quoted 11 lines
Quoted 10 lines
Regards,
Christian.Quoted 2 lines
Dave.
Re: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 25 lines · Christian König
Am 02.02.23 um 19:31 schrieb Danilo Krummrich:
Quoted 24 lines · Christian König
Quoted 23 lines
Am 01.02.23 um 09:10 schrieb Dave Airlie:
Quoted 6 lines
[SNIP]
Quoted 5 lines
Quoted 3 lines
For drivers that don't intend to merge at all and (somehow) are capable of dealing with sparse regions without knowing the sparse region's boundaries, it'd be easy to make those
gpuva_regionsoptional.Yeah, but this then defeats the approach of having the same hw independent interface/implementation for all drivers.
Quoted 9 lines
I think you are running a few steps ahead here. The plan isn't to have an independent interface, it's to provide a set of routines and tracking that will be consistent across drivers, so that all drivers once using them will operate in mostly the same fashion with respect to GPU VA tracking and VA/BO lifetimes. Already in the tree we have amdgpu and freedreno which I think end up operating slightly different around lifetimes. I'd like to save future driver writers the effort of dealing with those decisions and this should drive their user api design so to enable vulkan sparse bindings.
Ok in this case I'm pretty sure this is *NOT* a good idea.
See this means that we define the UAPI implicitly by saying to drivers to use a common framework for their VM implementation which then results in behavior A,B,C,D....
If a driver strides away from this common framework because it has different requirements based on how his hw work you certainly get different behavior again (and you have tons of hw specific requirements in here).
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
What we should do instead if we want to have some common handling among drivers (which I totally agree on makes sense) then we should define the UAPI explicitly.
By asking that I don't want to say I'm against this idea, I'm just wondering how it becomes easier to deal with "tons of hw specific requirements" by generalizing things even more?
I'm already maintaining two different GPU VM solutions in the GPU drivers in the kernel, radeon and amdgpu. The hw they driver is identical, just the UAPI is different. And only because of the different UAPI they can't have the same VM backend implementation.
The hw stuff is completely abstract able. That's just stuff you need to consider when defining the structures you pass around.
Wouldn't we need to have strict limitations on that, such that HW specific structures / fields are not allowed to break the semantics of the UAPI? Because otherwise we wouldn't be able to attach generalized components to the unified UAPI which ultimately would be the whole purpose. So, if this consideration is correct, I'd still see a risk of drivers striding away from it because of their requirements. Again, I think a unified UAPI is a good idea, but it sounds more difficult to me than this last paragraph implies.
Quoted 11 lines
But a messed up UAPI is sometimes impossible to fix because of backward compatibility.
We learned that the hard way with radeon and mostly fixed it by coming up with a completely new implementation for amdgpu.
Quoted 1 line
What makes us think that we do a better job in considering all hw specific requirements with a unified UAPI than with a more lightweight generic component for tracking VA mappings?
Because this defines the UAPI implicitly and that's seldom a good idea.
As I said before tracking is the easy part of the job. Defining this generic component helps a little bit writing new drivers, but it leaves way to much room for speculations on the UAPI.
Trying to move forward, I agree that a unified UAPI would improve the situation regarding the problems you mentioned and the examples you have given.
However, not having the GPUVA manager wouldn't give us a unified UAPI either. And as long as it delivers a generic component to solve a problem while not making the overall situation worse or preventing us from reaching this desirable goal of having a unified UAPI I tend to think it's fine to have such a component.
Quoted 3 lines
Quoted 1 line
Also, wouldn't we need something like the GPUVA manager as part of a unified UAPI?
Not necessarily. We can write components to help drivers implement the UAPI, but this isn't mandatory.
Well, yes, not necessarily. However, as mentioned above, wouldn't it be a major goal of a unified UAPI to be able to attach generic components to it?
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
For example we could have a
DRM_IOCTL_GPU_VMwhich takes both driver independent as well as driver dependent information and then has the documented behavior:
a) VAs do (or don't) vanish automatically when the GEM handle is closed.
b) GEM BOs do (or don't) get an additional reference for each VM they are used in.
c) Can handle some common use cases driver independent (BO mappings, readonly, writeonly, sparse etc...).
d) Has a well defined behavior when the operation is executed async. E.g. in/out fences.
e) Can still handle hw specific stuff like (for example) trap on access etc....
...Especially d is what Bas and I have pretty much already created a prototype for the amdgpu specific IOCTL for, but essentially this is completely driver independent and actually the more complex stuff. Compared to that common lifetime of BOs is just nice to have.
I strongly think we should concentrate on getting this right as well.
Quoted 7 lines
Now if merging is a feature that makes sense to one driver maybe it makes sense to all, however there may be reasons amdgpu gets away without merging that other drivers might not benefit from, there might also be a benefit to amdgpu from merging that you haven't looked at yet, so I think we could leave merging as an optional extra driver knob here. The userspace API should operate the same, it would just be the gpu pagetables that would end up different sizes.
Yeah, agree completely. The point is that we should not have complexity inside the kernel which is not necessarily needed in the kernel.
So merging or not is something we have gone back and forth for amdgpu, one the one hand it reduces the memory footprint of the housekeeping overhead on the other hand it makes the handling more complex, error prone and use a few more CPU cycles.
For amdgpu merging is mostly beneficial when you can get rid of a whole page tables layer in the hierarchy, but for this you need to merge at least 2MiB or 1GiB together. And since that case doesn't happen that often we stopped doing it.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
But for my understanding why you need the ranges for the merging? Isn't it sufficient to check that the mappings have the same type, flags, BO, whatever backing them?
Not entirely. Let's assume userspace creates two virtually contiguous buffers (VKBuffer) A and B. Userspace could bind a BO with BO offset 0 to A (binding 1) and afterwards bind the same BO with BO offset length(A) to B (binding 2), maybe unlikely but AFAIK not illegal.
If we don't know about the bounds of A and B in the kernel, we detect that both bindings are virtually and physically contiguous and we merge them.
Well as far as I can see this is actually legal and desirable.
Legal, not sure, may depend on the semantics of the UAPI. (More on that below your next paragraph.)
Desirable, I don't think so. Since those mappings are associated with different VKBuffers they get split up later on anyway, hence why bother merging?
Quoted 10 lines
Quoted 3 lines
In the best case this was simply useless, because we'll need to split them anyway later on when A or B is destroyed, but in the worst case we could fault the GPU, e.g. if merging leads to a change of the page tables that are backing binding 1, but buffer A is already in use by userspace.
WOW wait a second, regions absolutely don't help you with that anyway.
You need to keep track which mappings are used or otherwise any modification could lead to problems.
In other words when the GPU already uses A you *must* have a fence on the page tables backing A to prevent their destruction.
As mentioned above, I'm not entirely sure about that and it might just depend on the semantics of the UAPI.
My understanding is that userspace is fully responsible on the parts of the GPU VA space it owns. This means that userspace needs to take care to *not* ask the kernel to modify mappings that are in use currently. Hence, the kernel is in charge to not modify mappings it set up on behalf of userspace unless userspace explicitly asks the kernel to do so.
If those are valid preconditions, and based on them we want to support merging, the kernel must know about the VA space allocations (or VKBuffers in userspace terminology) to make sure it never merges across their boundaries, which might not make much sense anyway.
Quoted 8 lines
Quoted 2 lines
In Nouveau, I think we could also get rid of regions and do something driver specific for the handling of the dual page tables, which I want to use for sparse regions *and* just don't merge (at least for now). But exactly for the sake of not limiting drivers in their HW specifics I thought it'd be great if merging is supported in case it makes sense for a specific HW, especially given the fact that memory sizes are increasing.
What do you mean with that?
If you want your page tables to be modifiable while the GPU is using them (which is basically a standard requirement from sparse bindings in Vulkan) you need double housekeeping anyway.
Those regions strongly sound like you are pushing stuff which should be handled in userspace inside the kernel.
1. userspace allocates a new VKBuffer with the sparse bit set (0x0 - 0x800000)
2. kernel creates a new region structure with the range 0x800000 and creates a new PT (A) with 4 PTEs with the sparse flag set (page shift is 21)
3. userspace requests a memory backed mapping at 0x200000 with size 0x2000
4. kernel creates a new mapping structure with base address 0x200000 and range 0x2000 and creates a new PT (B) with 2 PTEs (page shift is 12) "overlaying" PT A
5. userspace crashes unexpectedly for some reason
6. kernel needs to clean things up, iterates the list of mappings and unmaps them (PT B is freed); kernel iterates all regions and removes them (PT A is freed)
Quoted 16 lines
Regards,
Christian.Quoted 11 lines
Quoted 10 lines
Regards,
Christian.Quoted 2 lines
Dave.
Christian König
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Concentrating this discussion on a very big misunderstanding first.
Am 06.02.23 um 14:27 schrieb Danilo Krummrich:
Quoted 2 lines
[SNIP]
My understanding is that userspace is fully responsible on the parts of the GPU VA space it owns. This means that userspace needs to take care to *not* ask the kernel to modify mappings that are in use currently.
This is a completely wrong assumption! Take a look at what games like Forza Horizzon are doing.
Basically that game allocates a very big sparse area and fills it with pages from BOs while shaders are accessing it. And yes, as far as I know this is completely valid behavior.
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Re: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 9 lines · Christian König
Concentrating this discussion on a very big misunderstanding first.
Am 06.02.23 um 14:27 schrieb Danilo Krummrich:
Quoted 2 lines
[SNIP]
My understanding is that userspace is fully responsible on the parts of the GPU VA space it owns. This means that userspace needs to take care to *not* ask the kernel to modify mappings that are in use currently.This is a completely wrong assumption! Take a look at what games like Forza Horizzon are doing.
Basically that game allocates a very big sparse area and fills it with pages from BOs while shaders are accessing it. And yes, as far as I know this is completely valid behavior.
I also think this is valid behavior. That's not the problem I'm trying to describe. In this case userspace modifies the VA space *intentionally* while shaders are accessing it, because it knows that the shaders can deal with reading 0s.
Just to have it all in place, the example I gave was:
- two virtually contiguous buffers A and B
- binding 1 mapped to A with BO offset 0
- binding 2 mapped to B with BO offset length(A)
What I did not mention both A and B aren't sparse buffers in this example, although it probably doesn't matter too much.
Since the conditions to do so are given, we merge binding 1 and binding 2 right at the time when binding 2 is requested. To do so a driver might unmap binding 1 for a very short period of time (e.g. to (re-)map the freshly merged binding with a different page size if possible).
From userspace perspective buffer A is ready to use before applying binding 2 to buffer B, hence it would be illegal to touch binding 1 again when userspace asks the kernel to map binding 2 to buffer B.
Besides that I think there is no point in merging between buffers anyway because we'd end up splitting such a merged mapping anyway later on when one of the two buffers is destroyed.
Also, I think the same applies to sparse buffers as well, a mapping within A isn't expected to be re-mapped just because something is mapped to B.
However, in this context I start wondering if re-mapping in the context of merge and split is allowed at all, even within the same sparse buffer (and even with a separate page table for sparse mappings as described in my last mail; shaders would never fault).
Quoted 6 lines
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Christian König
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 06.02.23 um 19:20 schrieb Danilo Krummrich:
Quoted 12 lines · Christian König
Quoted 9 lines
Concentrating this discussion on a very big misunderstanding first.
Am 06.02.23 um 14:27 schrieb Danilo Krummrich:
Quoted 2 lines
[SNIP]
My understanding is that userspace is fully responsible on the parts of the GPU VA space it owns. This means that userspace needs to take care to *not* ask the kernel to modify mappings that are in use currently.This is a completely wrong assumption! Take a look at what games like Forza Horizzon are doing.
Basically that game allocates a very big sparse area and fills it with pages from BOs while shaders are accessing it. And yes, as far as I know this is completely valid behavior.
I also think this is valid behavior. That's not the problem I'm trying to describe. In this case userspace modifies the VA space *intentionally* while shaders are accessing it, because it knows that the shaders can deal with reading 0s.
No, it's perfectly valid for userspace to modify the VA space even if shaders are not supposed to deal with reading 0s.
Quoted 10 lines
Just to have it all in place, the example I gave was:
- two virtually contiguous buffers A and B
- binding 1 mapped to A with BO offset 0
- binding 2 mapped to B with BO offset length(A)What I did not mention both A and B aren't sparse buffers in this example, although it probably doesn't matter too much.
Since the conditions to do so are given, we merge binding 1 and binding 2 right at the time when binding 2 is requested. To do so a driver might unmap binding 1 for a very short period of time (e.g. to (re-)map the freshly merged binding with a different page size if possible).
Nope, that's not correct handling.
Quoted 8 lines
From userspace perspective buffer A is ready to use before applying binding 2 to buffer B, hence it would be illegal to touch binding 1 again when userspace asks the kernel to map binding 2 to buffer B.
Besides that I think there is no point in merging between buffers anyway because we'd end up splitting such a merged mapping anyway later on when one of the two buffers is destroyed.
Also, I think the same applies to sparse buffers as well, a mapping within A isn't expected to be re-mapped just because something is mapped to B.
However, in this context I start wondering if re-mapping in the context of merge and split is allowed at all, even within the same sparse buffer (and even with a separate page table for sparse mappings as described in my last mail; shaders would never fault).
See, your assumption is that userspace/applications don't modify the VA space intentionally while the GPU is accessing it is just bluntly speaking incorrect.
When you have a VA address which is mapped to buffer A and accessed by some GPU shaders it is perfectly valid for the application to say "map it again to the same buffer A".
It is also perfectly valid for an application to re-map this region to a different buffer B, it's just not defined when the access then transits from A to B. (AFAIK this is currently worked on in a new specification).
So when your page table updates result in the shader to intermediately get 0s in return, because you change the underlying mapping you simply have some implementation bug in Nouveau.
I don't know how Nvidia hw handles this, and yes it's quite complicated on AMD hw as well because our TLBs are not really made for this use case, but I'm 100% sure that this is possible since it is still part of some of the specifications (mostly Vulkan I think).
To sum it up as far as I can see by giving the regions to the kernel is not something you would want for Nouveau either.
Regards,
Christian.
Quoted 8 lines
Quoted 7 lines
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Re: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 23 lines · Christian König
Am 06.02.23 um 19:20 schrieb Danilo Krummrich:
Quoted 12 lines · Christian König
Quoted 9 lines
Concentrating this discussion on a very big misunderstanding first.
Am 06.02.23 um 14:27 schrieb Danilo Krummrich:
Quoted 2 lines
[SNIP]
My understanding is that userspace is fully responsible on the parts of the GPU VA space it owns. This means that userspace needs to take care to *not* ask the kernel to modify mappings that are in use currently.This is a completely wrong assumption! Take a look at what games like Forza Horizzon are doing.
Basically that game allocates a very big sparse area and fills it with pages from BOs while shaders are accessing it. And yes, as far as I know this is completely valid behavior.
I also think this is valid behavior. That's not the problem I'm trying to describe. In this case userspace modifies the VA space *intentionally* while shaders are accessing it, because it knows that the shaders can deal with reading 0s.
No, it's perfectly valid for userspace to modify the VA space even if shaders are not supposed to deal with reading 0s.
Quoted 7 lines
Just to have it all in place, the example I gave was:
- two virtually contiguous buffers A and B
- binding 1 mapped to A with BO offset 0
- binding 2 mapped to B with BO offset length(A)
Quoted 5 lines
Quoted 3 lines
What I did not mention both A and B aren't sparse buffers in this example, although it probably doesn't matter too much.
Since the conditions to do so are given, we merge binding 1 and binding 2 right at the time when binding 2 is requested. To do so a driver might unmap binding 1 for a very short period of time (e.g. to (re-)map the freshly merged binding with a different page size if possible).
Nope, that's not correct handling.
I agree, and that's exactly what I'm trying to say. However, I start noticing that this is not correct if it happens within the same buffer as well.
Quoted 4 lines
Quoted 4 lines
From userspace perspective buffer A is ready to use before applying binding 2 to buffer B, hence it would be illegal to touch binding 1 again when userspace asks the kernel to map binding 2 to buffer B.
Quoted 8 lines
Quoted 5 lines
Besides that I think there is no point in merging between buffers anyway because we'd end up splitting such a merged mapping anyway later on when one of the two buffers is destroyed.
Also, I think the same applies to sparse buffers as well, a mapping within A isn't expected to be re-mapped just because something is mapped to B.
However, in this context I start wondering if re-mapping in the context of merge and split is allowed at all, even within the same sparse buffer (and even with a separate page table for sparse mappings as described in my last mail; shaders would never fault).
See, your assumption is that userspace/applications don't modify the VA space intentionally while the GPU is accessing it is just bluntly speaking incorrect.
I don't assume that. The opposite is the case. My assumption is that it's always OK for userspace to intentionally modify the VA space.
However, I also assumed that if userspace asks for e.g. a new mapping within a certain buffer it is OK for the kernel to apply further changes (e.g. re-organize PTs to split or merge) to the VA space of which userspace isn't aware of. At least as long as they happen within the bounds of this particular buffer, but not for other buffers.
I think the reasoning I had in mind was that I thought if userspace asks for any modification of a given portion of the VA space (that is a VKBuffer) userspace must assume that until this modification (e.g. re-organization of PTs) is complete reading 0s intermediately may happen. This seems to be clearly wrong.
Quoted 5 lines
When you have a VA address which is mapped to buffer A and accessed by some GPU shaders it is perfectly valid for the application to say "map it again to the same buffer A".
It is also perfectly valid for an application to re-map this region to a different buffer B, it's just not defined when the access then transits from A to B. (AFAIK this is currently worked on in a new specification).
So when your page table updates result in the shader to intermediately get 0s in return, because you change the underlying mapping you simply have some implementation bug in Nouveau.
Luckily that's not the case (anymore).
Quoted 4 lines
I don't know how Nvidia hw handles this, and yes it's quite complicated on AMD hw as well because our TLBs are not really made for this use case, but I'm 100% sure that this is possible since it is still part of some of the specifications (mostly Vulkan I think).
To sum it up as far as I can see by giving the regions to the kernel is not something you would want for Nouveau either.
If, as it turns out, it's also not allowed to do what I described above within the same VKBuffer, I agree the bounds aren't needed for merging.
However, I still don't see why we would want to merge over buffer boundaries, because ultimately we'll end up splitting such a merged mapping later on anyway once one of the buffers is destroyed.
Also, as explained in one of the previous mails in nouveau we can have separate PTs for sparse mappings with large page sizes and separate PTs for memory backed mappings with smaller page sizes overlaying them. Hence, I need to track a single sparse mapping per buffer spanning the whole buffer (which I do with a region) and the actual memory backed mappings within the same range.
Now, this might or might not be unique for Nvidia hardware. If nouveau would be the only potential user, plus we don't care about potentially merging mappings over buffer boundaries and hence producing foreseeable splits of those merged mappings, we could get rid of regions entirely.
Quoted 14 lines
Regards,
Christian.Quoted 8 lines
Quoted 7 lines
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Christian König
maintainerRe: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Am 07.02.23 um 11:50 schrieb Danilo Krummrich:
Quoted 1 line · Christian König
[SNIP]
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Just to have it all in place, the example I gave was:
- two virtually contiguous buffers A and B
- binding 1 mapped to A with BO offset 0
- binding 2 mapped to B with BO offset length(A)
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
What I did not mention both A and B aren't sparse buffers in this example, although it probably doesn't matter too much.
Since the conditions to do so are given, we merge binding 1 and binding 2 right at the time when binding 2 is requested. To do so a driver might unmap binding 1 for a very short period of time (e.g. to (re-)map the freshly merged binding with a different page size if possible).
Nope, that's not correct handling.
I agree, and that's exactly what I'm trying to say. However, I start noticing that this is not correct if it happens within the same buffer as well.
Yes, exactly that's my point.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
From userspace perspective buffer A is ready to use before applying binding 2 to buffer B, hence it would be illegal to touch binding 1 again when userspace asks the kernel to map binding 2 to buffer B.
Besides that I think there is no point in merging between buffers anyway because we'd end up splitting such a merged mapping anyway later on when one of the two buffers is destroyed.
Also, I think the same applies to sparse buffers as well, a mapping within A isn't expected to be re-mapped just because something is mapped to B.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
However, in this context I start wondering if re-mapping in the context of merge and split is allowed at all, even within the same sparse buffer (and even with a separate page table for sparse mappings as described in my last mail; shaders would never fault).
See, your assumption is that userspace/applications don't modify the VA space intentionally while the GPU is accessing it is just bluntly speaking incorrect.
I don't assume that. The opposite is the case. My assumption is that it's always OK for userspace to intentionally modify the VA space.
However, I also assumed that if userspace asks for e.g. a new mapping within a certain buffer it is OK for the kernel to apply further changes (e.g. re-organize PTs to split or merge) to the VA space of which userspace isn't aware of. At least as long as they happen within the bounds of this particular buffer, but not for other buffers.
Well when this somehow affects shaders which accesses other parts of the buffer at the same time then that won't work.
Quoted 11 lines
I think the reasoning I had in mind was that I thought if userspace asks for any modification of a given portion of the VA space (that is a VKBuffer) userspace must assume that until this modification (e.g. re-organization of PTs) is complete reading 0s intermediately may happen. This seems to be clearly wrong.
Quoted 5 lines
When you have a VA address which is mapped to buffer A and accessed by some GPU shaders it is perfectly valid for the application to say "map it again to the same buffer A".
It is also perfectly valid for an application to re-map this region to a different buffer B, it's just not defined when the access then transits from A to B. (AFAIK this is currently worked on in a new specification).
So when your page table updates result in the shader to intermediately get 0s in return, because you change the underlying mapping you simply have some implementation bug in Nouveau.
Luckily that's not the case (anymore).
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
I don't know how Nvidia hw handles this, and yes it's quite complicated on AMD hw as well because our TLBs are not really made for this use case, but I'm 100% sure that this is possible since it is still part of some of the specifications (mostly Vulkan I think).
To sum it up as far as I can see by giving the regions to the kernel is not something you would want for Nouveau either.
If, as it turns out, it's also not allowed to do what I described above within the same VKBuffer, I agree the bounds aren't needed for merging.
However, I still don't see why we would want to merge over buffer boundaries, because ultimately we'll end up splitting such a merged mapping later on anyway once one of the buffers is destroyed.
Well the key point is all approaches have some pros and cons.
If we merge and decide to only do that inside certain boundaries then those boundaries needs to be provided and checked against. This burns quite some CPU cycles
If we just merge what we can we might have extra page table updates which cost time and could result in undesired side effects.
If we don't merge at all we have additional housekeeping for the mappings and maybe hw restrictions.
Quoted 3 lines
Also, as explained in one of the previous mails in nouveau we can have separate PTs for sparse mappings with large page sizes and separate PTs for memory backed mappings with smaller page sizes overlaying them. Hence, I need to track a single sparse mapping per buffer spanning the whole buffer (which I do with a region) and the actual memory backed mappings within the same range.
Now, this might or might not be unique for Nvidia hardware. If nouveau would be the only potential user, plus we don't care about potentially merging mappings over buffer boundaries and hence producing foreseeable splits of those merged mappings, we could get rid of regions entirely.
This sounds similar to what AMD hw used to have up until gfx8 (I think), basically sparse resources where defined through a separate mechanism to the address resolution of the page tables. I won't rule out that other hardware has similar approaches.
On the other hand when you have separate page tables for address translation and sparse handling then why not instantiate two separate VM manager instances for them?
Regards,
Christian.
Quoted 16 lines
Quoted 15 lines
Regards,
Christian.Quoted 8 lines
Quoted 7 lines
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Re: [Nouveau] [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 4 lines · Christian König
Am 07.02.23 um 11:50 schrieb Danilo Krummrich:
Quoted 1 line · Christian König
<snip>
Quoted 9 lines
Quoted 1 line
However, I still don't see why we would want to merge over buffer boundaries, because ultimately we'll end up splitting such a merged mapping later on anyway once one of the buffers is destroyed.
Well the key point is all approaches have some pros and cons.
If we merge and decide to only do that inside certain boundaries then those boundaries needs to be provided and checked against. This burns quite some CPU cycles
If we just merge what we can we might have extra page table updates which cost time and could result in undesired side effects.
If we don't merge at all we have additional housekeeping for the mappings and maybe hw restrictions.
Absolutely agree, hence I think it would be beneficial to leave the decision to the driver which approach to pick.
For instance, if a driver needs to keep track of these bounds anyway because it needs to track separate page tables for sparse regions, there is no additional overhead, but the nice effect of being able not avoid unnecessary merges and subsequent splits.
Quoted 8 lines
Quoted 4 lines
Also, as explained in one of the previous mails in nouveau we can have separate PTs for sparse mappings with large page sizes and separate PTs for memory backed mappings with smaller page sizes overlaying them. Hence, I need to track a single sparse mapping per buffer spanning the whole buffer (which I do with a region) and the actual memory backed mappings within the same range.
Now, this might or might not be unique for Nvidia hardware. If nouveau would be the only potential user, plus we don't care about potentially merging mappings over buffer boundaries and hence producing foreseeable splits of those merged mappings, we could get rid of regions entirely.
This sounds similar to what AMD hw used to have up until gfx8 (I think), basically sparse resources where defined through a separate mechanism to the address resolution of the page tables. I won't rule out that other hardware has similar approaches.
On the other hand when you have separate page tables for address translation and sparse handling then why not instantiate two separate VM manager instances for them?
As mentioned above, for some drivers there could be a synergy between keeping track of those separate page tables and using these boundaries for merge decisions.
Also, having a separate manager instance would lead to have less lightweight nodes for sparse regions, since we'd also carry the fields needed for memory backed mappings. Furthermore there wouldn't be a "generic relationship" between the nodes of the two separate manager instances, like a mapping node has a pointer to the region it resides in. This may be useful to e.g. do some sanity checks, unmap all mappings of a given region, etc.
Of course drivers could code this relationship within the driver specific structures around the mapping nodes, but I think it would be nice to generalize that and have this built-in.
Quoted 21 lines
Regards,
Christian.Quoted 16 lines
Quoted 15 lines
Regards,
Christian.Quoted 8 lines
Quoted 7 lines
So you need to be able to handle this case anyway and the approach with the regions won't help you at all preventing that.
Regards,
Christian.
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
In reply to Matthew BrostQuoted 120 lines · Matthew Brost
Quoted 104 lines · Danilo Krummrich
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +8
-0@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +55
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini {__u32 handle; }; +/** +* struct drm_nouveau_sync - sync object +* +* This structure serves as synchronization mechanism for (potentially) +* asynchronous operations such as EXEC or VM_BIND. +*/ +struct drm_nouveau_sync { +/** +* @flags: the flags for a sync object +* +* The first 8 bits are used to determine the type of the sync object. +*/ +__u32 flags; +#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf +/** +* @handle: the handle of the sync object +*/ +__u32 handle; +/** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of +* type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. +*/ +__u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel +* which portion of the VA space is managed by the UMD and kernel respectively. +*/ +struct drm_nouveau_vm_init { +/** +* @unmanaged_addr: start address of the kernel managed VA space region +*/ +__u64 unmanaged_addr; +/** +* @unmanaged_size: size of the kernel managed VA space region in bytes +*/ +__u64 unmanaged_size; +}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass +* an array of this structure via struct drm_nouveau_vm_bind's &op_ptr field. +*/ +struct drm_nouveau_vm_bind_op { +/** +* @op: the operation type include/uapi/drm/nouveau_drm.h struct drm_nouveau_gem_cpu_fini { · line 193
Quoted 10 lines
include/uapi/drm/nouveau_drm.h +10
-0+*/ +__u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA +* space. Optionally, the &DRM_NOUVEAU_VM_BIND_SPARSE flag can be passed to +* instruct the kernel to create sparse mappings for the given region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_ALLOC 0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 5 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space.
Also, since you've been starting to use the code, this [1] is the branch I'm pushing my fixes for a v2 to. It already contains the changes for the GPUVA manager except for switching away from drm_mm.
[1] https://gitlab.freedesktop.org/nouvelles/kernel/-/tree/new-uapi-drm-next-fixes
Quoted 177 lines
To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.
Matt
Quoted 171 lines
include/uapi/drm/nouveau_drm.h +151
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by +* a previously allocated VA space region. If the region is sparse, existing +* sparse mappings are overwritten. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping +* is located in is a sparse region, new sparse mappings are created where the +* unmapped (memory backed) mapping was mapped previously. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 +/** +* @flags: the flags for a &drm_nouveau_vm_bind_op +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) +/** +* @handle: the handle of the DRM GEM object to map +*/ +__u32 handle; +/** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to +*/ +__u64 addr; +/** +* @bo_offset: the offset within the BO backing the mapping +*/ +__u64 bo_offset; +/** +* @range: the size of the requested mapping in bytes +*/ +__u64 range; +}; + +/** +* struct drm_nouveau_vm_bind - structure for DRM_IOCTL_NOUVEAU_VM_BIND +*/ +struct drm_nouveau_vm_bind { +/** +* @op_count: the number of &drm_nouveau_vm_bind_op +*/ +__u32 op_count; +/** +* @flags: the flags for a &drm_nouveau_vm_bind ioctl +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously +* by the kernel. +* +* If this flag is not supplied the kernel executes the associated operations +* synchronously and doesn't accept any &drm_nouveau_sync objects. +*/ +#define DRM_NOUVEAU_VM_BIND_RUN_ASYNC 0x1 +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @op_ptr: pointer to the &drm_nouveau_vm_bind_ops to execute +*/ +__u64 op_ptr; +}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an +* array of this structure via struct drm_nouveau_exec's &push_ptr field. +*/ +struct drm_nouveau_exec_push { +/** +* @va: the virtual address of the push buffer mapping +*/ +__u64 va; +/** +* @va_len: the length of the push buffer mapping +*/ +__u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { +/** +* @channel: the channel to execute the push buffer in +*/ +__u32 channel; +/** +* @push_count: the number of &drm_nouveau_exec_push ops +*/ +__u32 push_count; +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @push_ptr: pointer to &drm_nouveau_exec_push ops +*/ +__u64 push_ptr; +}; +#define DRM_NOUVEAU_GETPARAM 0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM 0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02/* deprecated */ @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini {#define DRM_NOUVEAU_NVIF 0x07#define DRM_NOUVEAU_SVM_INIT 0x08#define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12#define DRM_NOUVEAU_GEM_NEW 0x40#define DRM_NOUVEAU_GEM_PUSHBUF 0x41#define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind {#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec)#if defined(__cplusplus) }#endif Signature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 127 lines · Danilo Krummrich
Quoted 118 lines · Matthew Brost
Quoted 102 lines · Danilo Krummrich
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +8
-0@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +55
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini {__u32 handle; }; +/** +* struct drm_nouveau_sync - sync object +* +* This structure serves as synchronization mechanism for (potentially) +* asynchronous operations such as EXEC or VM_BIND. +*/ +struct drm_nouveau_sync { +/** +* @flags: the flags for a sync object +* +* The first 8 bits are used to determine the type of the sync object. +*/ +__u32 flags; +#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf +/** +* @handle: the handle of the sync object +*/ +__u32 handle; +/** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of +* type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. +*/ +__u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel +* which portion of the VA space is managed by the UMD and kernel respectively. +*/ +struct drm_nouveau_vm_init { +/** +* @unmanaged_addr: start address of the kernel managed VA space region +*/ +__u64 unmanaged_addr; +/** +* @unmanaged_size: size of the kernel managed VA space region in bytes +*/ +__u64 unmanaged_size; +}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass +* an array of this structure via struct drm_nouveau_vm_bind's &op_ptr field. +*/ +struct drm_nouveau_vm_bind_op { +/** +* @op: the operation type include/uapi/drm/nouveau_drm.h struct drm_nouveau_gem_cpu_fini { · line 192
Quoted 10 lines
include/uapi/drm/nouveau_drm.h +10
-0+*/ +__u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA +* space. Optionally, the &DRM_NOUVEAU_VM_BIND_SPARSE flag can be passed to +* instruct the kernel to create sparse mappings for the given region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_ALLOC 0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 5 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space.
Quoted 6 lines
Also, since you've been starting to use the code, this [1] is the branch I'm pushing my fixes for a v2 to. It already contains the changes for the GPUVA manager except for switching away from
drm_mm.[1] https://gitlab.freedesktop.org/nouvelles/kernel/-/tree/new-uapi-drm-next-fixes
I will take a look at this branch. I believe you are on our Xe gitlab project (working on getting this public) so you can comment on any MR I post there, I expect to have something posted early next week to port Xe to the gpuva.
Also I assume you are dri-devel IRC, what is your handle? Mine is mbrost. It might be useful to chat in real time.
Matt
Quoted 177 lines
Quoted 176 lines
To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.
Matt
Quoted 170 lines
include/uapi/drm/nouveau_drm.h +151
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by +* a previously allocated VA space region. If the region is sparse, existing +* sparse mappings are overwritten. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping +* is located in is a sparse region, new sparse mappings are created where the +* unmapped (memory backed) mapping was mapped previously. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 +/** +* @flags: the flags for a &drm_nouveau_vm_bind_op +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) +/** +* @handle: the handle of the DRM GEM object to map +*/ +__u32 handle; +/** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to +*/ +__u64 addr; +/** +* @bo_offset: the offset within the BO backing the mapping +*/ +__u64 bo_offset; +/** +* @range: the size of the requested mapping in bytes +*/ +__u64 range; +}; + +/** +* struct drm_nouveau_vm_bind - structure for DRM_IOCTL_NOUVEAU_VM_BIND +*/ +struct drm_nouveau_vm_bind { +/** +* @op_count: the number of &drm_nouveau_vm_bind_op +*/ +__u32 op_count; +/** +* @flags: the flags for a &drm_nouveau_vm_bind ioctl +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously +* by the kernel. +* +* If this flag is not supplied the kernel executes the associated operations +* synchronously and doesn't accept any &drm_nouveau_sync objects. +*/ +#define DRM_NOUVEAU_VM_BIND_RUN_ASYNC 0x1 +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @op_ptr: pointer to the &drm_nouveau_vm_bind_ops to execute +*/ +__u64 op_ptr; +}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an +* array of this structure via struct drm_nouveau_exec's &push_ptr field. +*/ +struct drm_nouveau_exec_push { +/** +* @va: the virtual address of the push buffer mapping +*/ +__u64 va; +/** +* @va_len: the length of the push buffer mapping +*/ +__u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { +/** +* @channel: the channel to execute the push buffer in +*/ +__u32 channel; +/** +* @push_count: the number of &drm_nouveau_exec_push ops +*/ +__u32 push_count; +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @push_ptr: pointer to &drm_nouveau_exec_push ops +*/ +__u64 push_ptr; +}; +#define DRM_NOUVEAU_GETPARAM 0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM 0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02/* deprecated */ @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini {#define DRM_NOUVEAU_NVIF 0x07#define DRM_NOUVEAU_SVM_INIT 0x08#define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12#define DRM_NOUVEAU_GEM_NEW 0x40#define DRM_NOUVEAU_GEM_PUSHBUF 0x41#define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind {#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec)#if defined(__cplusplus) }#endif Signature · 1 line
2.39.0
Re: [PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
Quoted 132 lines · Matthew Brost
Quoted 131 lines · Danilo Krummrich
Quoted 118 lines · Matthew Brost
Quoted 102 lines · Danilo Krummrich
This commit provides the interfaces for the new UAPI motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new
DRM_IOCTL_NOUVEAU_VM_INITioctl. UMDs can provide a kernel reserved VA area.2) Bind and unbind GPU VA space mappings via the new
DRM_IOCTL_NOUVEAU_VM_BINDioctl.3) Execute push buffers with the new
DRM_IOCTL_NOUVEAU_EXECioctl.Both,
DRM_IOCTL_NOUVEAU_VM_BINDandDRM_IOCTL_NOUVEAU_EXECsupport asynchronous processing with DRM syncobjs as synchronization mechanism.The default
DRM_IOCTL_NOUVEAU_VM_BINDis synchronous processing,DRM_IOCTL_NOUVEAU_EXECsupports asynchronous processing only.Co-authored-by Dave Airlie <[email protected]>Signed-off-by Danilo Krummrich <[email protected]>--- Documentation/gpu/driver-uapi.rst | 8 ++ include/uapi/drm/nouveau_drm.h | 216 ++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+)Documentation/gpu/driver-uapi.rst +8
-0@@ -6,3 +6,11 @@ drm/i915 uAPI ============= .. kernel-doc:: include/uapi/drm/i915_drm.h + +drm/nouveau uAPI +================ + +VM_BIND / EXEC uAPI +------------------- + +.. kernel-doc:: include/uapi/drm/nouveau_drm.hinclude/uapi/drm/nouveau_drm.h +55
-0@@ -126,6 +126,216 @@ struct drm_nouveau_gem_cpu_fini {__u32 handle; }; +/** +* struct drm_nouveau_sync - sync object +* +* This structure serves as synchronization mechanism for (potentially) +* asynchronous operations such as EXEC or VM_BIND. +*/ +struct drm_nouveau_sync { +/** +* @flags: the flags for a sync object +* +* The first 8 bits are used to determine the type of the sync object. +*/ +__u32 flags; +#define DRM_NOUVEAU_SYNC_SYNCOBJ 0x0 +#define DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_NOUVEAU_SYNC_TYPE_MASK 0xf +/** +* @handle: the handle of the sync object +*/ +__u32 handle; +/** +* @timeline_value: +* +* The timeline point of the sync object in case the syncobj is of +* type DRM_NOUVEAU_SYNC_TIMELINE_SYNCOBJ. +*/ +__u64 timeline_value; +}; + +/** +* struct drm_nouveau_vm_init - GPU VA space init structure +* +* Used to initialize the GPU's VA space for a user client, telling the kernel +* which portion of the VA space is managed by the UMD and kernel respectively. +*/ +struct drm_nouveau_vm_init { +/** +* @unmanaged_addr: start address of the kernel managed VA space region +*/ +__u64 unmanaged_addr; +/** +* @unmanaged_size: size of the kernel managed VA space region in bytes +*/ +__u64 unmanaged_size; +}; + +/** +* struct drm_nouveau_vm_bind_op - VM_BIND operation +* +* This structure represents a single VM_BIND operation. UMDs should pass +* an array of this structure via struct drm_nouveau_vm_bind's &op_ptr field. +*/ +struct drm_nouveau_vm_bind_op { +/** +* @op: the operation type include/uapi/drm/nouveau_drm.h struct drm_nouveau_gem_cpu_fini { · line 192
Quoted 10 lines
include/uapi/drm/nouveau_drm.h +10
-0+*/ +__u32 op; +/** +* @DRM_NOUVEAU_VM_BIND_OP_ALLOC: +* +* The alloc operation is used to reserve a VA space region within the GPU's VA +* space. Optionally, the &DRM_NOUVEAU_VM_BIND_SPARSE flag can be passed to +* instruct the kernel to create sparse mappings for the given region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_ALLOC 0x0Do you really need this operation? We have no concept of this in Xe, e.g. we can create a VM and the entire address space is managed exactly the same.
Quoted 5 lines
If this can be removed then the entire concept of regions in the GPUVA can be removed too (drop struct
drm_gpuva_region). I say this because in Xe as I'm porting over to GPUVA the first thing I'm doing afterdrm_gpuva_manager_initis callingdrm_gpuva_region_inserton the entire address space.Also, since you've been starting to use the code, this [1] is the branch I'm pushing my fixes for a v2 to. It already contains the changes for the GPUVA manager except for switching away from
drm_mm.
Quoted 8 lines
I will take a look at this branch. I believe you are on our Xe gitlab project (working on getting this public) so you can comment on any MR I post there, I expect to have something posted early next week to port Xe to the gpuva.
Yes, I am.
Quoted 2 lines
Also I assume you are dri-devel IRC, what is your handle? Mine is mbrost. It might be useful to chat in real time.
Mine is dakr, I just pinged you in #dri-devel, but it seems your client timed out shortly after, so I expect it didn't reach you.
- Danilo
Quoted 181 lines
Matt
Quoted 177 lines
Quoted 176 lines
To me this seems kinda useless but maybe I'm missing why you need this for Nouveau.
Matt
Quoted 170 lines
include/uapi/drm/nouveau_drm.h +151
-0+/** +* @DRM_NOUVEAU_VM_BIND_OP_FREE: Free a reserved VA space region. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_FREE 0x1 +/** +* @DRM_NOUVEAU_VM_BIND_OP_MAP: +* +* Map a GEM object to the GPU's VA space. The mapping must be fully enclosed by +* a previously allocated VA space region. If the region is sparse, existing +* sparse mappings are overwritten. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_MAP 0x2 +/** +* @DRM_NOUVEAU_VM_BIND_OP_UNMAP: +* +* Unmap an existing mapping in the GPU's VA space. If the region the mapping +* is located in is a sparse region, new sparse mappings are created where the +* unmapped (memory backed) mapping was mapped previously. +*/ +#define DRM_NOUVEAU_VM_BIND_OP_UNMAP 0x3 +/** +* @flags: the flags for a &drm_nouveau_vm_bind_op +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_SPARSE: +* +* Indicates that an allocated VA space region should be sparse. +*/ +#define DRM_NOUVEAU_VM_BIND_SPARSE (1 << 8) +/** +* @handle: the handle of the DRM GEM object to map +*/ +__u32 handle; +/** +* @addr: +* +* the address the VA space region or (memory backed) mapping should be mapped to +*/ +__u64 addr; +/** +* @bo_offset: the offset within the BO backing the mapping +*/ +__u64 bo_offset; +/** +* @range: the size of the requested mapping in bytes +*/ +__u64 range; +}; + +/** +* struct drm_nouveau_vm_bind - structure for DRM_IOCTL_NOUVEAU_VM_BIND +*/ +struct drm_nouveau_vm_bind { +/** +* @op_count: the number of &drm_nouveau_vm_bind_op +*/ +__u32 op_count; +/** +* @flags: the flags for a &drm_nouveau_vm_bind ioctl +*/ +__u32 flags; +/** +* @DRM_NOUVEAU_VM_BIND_RUN_ASYNC: +* +* Indicates that the given VM_BIND operation should be executed asynchronously +* by the kernel. +* +* If this flag is not supplied the kernel executes the associated operations +* synchronously and doesn't accept any &drm_nouveau_sync objects. +*/ +#define DRM_NOUVEAU_VM_BIND_RUN_ASYNC 0x1 +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @op_ptr: pointer to the &drm_nouveau_vm_bind_ops to execute +*/ +__u64 op_ptr; +}; + +/** +* struct drm_nouveau_exec_push - EXEC push operation +* +* This structure represents a single EXEC push operation. UMDs should pass an +* array of this structure via struct drm_nouveau_exec's &push_ptr field. +*/ +struct drm_nouveau_exec_push { +/** +* @va: the virtual address of the push buffer mapping +*/ +__u64 va; +/** +* @va_len: the length of the push buffer mapping +*/ +__u64 va_len; +}; + +/** +* struct drm_nouveau_exec - structure for DRM_IOCTL_NOUVEAU_EXEC +*/ +struct drm_nouveau_exec { +/** +* @channel: the channel to execute the push buffer in +*/ +__u32 channel; +/** +* @push_count: the number of &drm_nouveau_exec_push ops +*/ +__u32 push_count; +/** +* @wait_count: the number of wait &drm_nouveau_syncs +*/ +__u32 wait_count; +/** +* @sig_count: the number of &drm_nouveau_syncs to signal when finished +*/ +__u32 sig_count; +/** +* @wait_ptr: pointer to &drm_nouveau_syncs to wait for +*/ +__u64 wait_ptr; +/** +* @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished +*/ +__u64 sig_ptr; +/** +* @push_ptr: pointer to &drm_nouveau_exec_push ops +*/ +__u64 push_ptr; +}; +#define DRM_NOUVEAU_GETPARAM 0x00/* deprecated */ #define DRM_NOUVEAU_SETPARAM 0x01/* deprecated */ #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02/* deprecated */ @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini {#define DRM_NOUVEAU_NVIF 0x07#define DRM_NOUVEAU_SVM_INIT 0x08#define DRM_NOUVEAU_SVM_BIND 0x09 +#define DRM_NOUVEAU_VM_INIT 0x10 +#define DRM_NOUVEAU_VM_BIND 0x11 +#define DRM_NOUVEAU_EXEC 0x12#define DRM_NOUVEAU_GEM_NEW 0x40#define DRM_NOUVEAU_GEM_PUSHBUF 0x41#define DRM_NOUVEAU_GEM_CPU_PREP 0x42@@ -197,6 +410,9 @@ struct drm_nouveau_svm_bind {#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#define DRM_IOCTL_NOUVEAU_VM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_INIT, struct drm_nouveau_vm_init) +#define DRM_IOCTL_NOUVEAU_VM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_VM_BIND, struct drm_nouveau_vm_bind) +#define DRM_IOCTL_NOUVEAU_EXEC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_EXEC, struct drm_nouveau_exec)#if defined(__cplusplus) }#endif Signature · 1 line
2.39.0
PATCH 6/14 drm/nouveau: get vmm via nouveau_cli_vmm()
In reply to Danilo KrummrichProvide a getter function for the client's current vmm context. Since we'll add a new (u)vmm context for UMD bindings in subsequent commits, this will keep the code clean.
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +- drivers/gpu/drm/nouveau/nouveau_chan.c | 2 +- drivers/gpu/drm/nouveau/nouveau_drv.h | 9 +++++++++ drivers/gpu/drm/nouveau/nouveau_gem.c | 6 +++--- 4 files changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +1 -1
@@ -204,7 +204,7 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 *size, int *align, u32 domain,struct nouveau_drm *drm = cli->drm;struct nouveau_bo *nvbo;struct nvif_mmu *mmu = &cli->mmu; -struct nvif_vmm *vmm = cli->svm.cli ? &cli->svm.vmm : &cli->vmm.vmm; +struct nvif_vmm *vmm = &nouveau_cli_vmm (cli)->vmm;int i, pi =-1 ;if (!*size) {
drivers/gpu/drm/nouveau/nouveau_chan.c +1 -1
@@ -148,7 +148,7 @@ nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device, chan->device = device; chan->drm = drm; - chan->vmm = cli->svm.cli ? &cli->svm : &cli->vmm; + chan->vmm =nouveau_cli_vmm (cli);atomic_set (&chan->killed,0 );/* allocate memory for dma push buffer */
drivers/gpu/drm/nouveau/nouveau_drv.h +9 -0
@@ -112,6 +112,15 @@ struct nouveau_cli_work {struct dma_fence_cb cb; }; +static inline struct nouveau_vmm * +nouveau_cli_vmm (struct nouveau_cli *cli) +{ +if (cli->svm.cli) +return &cli->svm; + +return &cli->vmm; +} +void nouveau_cli_work_queue (struct nouveau_cli *,struct dma_fence *,struct nouveau_cli_work *);
drivers/gpu/drm/nouveau/nouveau_gem.c +3 -3
@@ -103,7 +103,7 @@ nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv)struct nouveau_bo *nvbo =nouveau_gem_object (gem);struct nouveau_drm *drm =nouveau_bdev (nvbo->bo.bdev);struct device *dev = drm->dev->dev; -struct nouveau_vmm *vmm = cli->svm.cli ? &cli->svm : &cli->vmm; +struct nouveau_vmm *vmm =nouveau_cli_vmm (cli);struct nouveau_vma *vma;int ret;
@@ -180,7 +180,7 @@ nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv)struct nouveau_bo *nvbo =nouveau_gem_object (gem);struct nouveau_drm *drm =nouveau_bdev (nvbo->bo.bdev);struct device *dev = drm->dev->dev; -struct nouveau_vmm *vmm = cli->svm.cli ? &cli->svm : & cli->vmm; +struct nouveau_vmm *vmm =nouveau_cli_vmm (cli);struct nouveau_vma *vma;int ret;
@@ -269,7 +269,7 @@ nouveau_gem_info(struct drm_file *file_priv, struct drm_gem_object *gem, {struct nouveau_cli *cli =nouveau_cli (file_priv);struct nouveau_bo *nvbo =nouveau_gem_object (gem); -struct nouveau_vmm *vmm = cli->svm.cli ? &cli->svm : &cli->vmm; +struct nouveau_vmm *vmm =nouveau_cli_vmm (cli);struct nouveau_vma *vma;if (is_power_of_2 (nvbo->valid_domains))
Signature · 1 line
2.39.0
PATCH 7/14 drm/nouveau: bo: initialize GEM GPU VA interface
In reply to Danilo KrummrichInitialize the GEM's DRM GPU VA manager interface in preparation for the (u)vmm implementation, provided by subsequent commits, to make use of it.
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/nouveau/nouveau_bo.c +3 -0
@@ -215,11 +215,14 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 *size, int *align, u32 domain, nvbo =kzalloc (sizeof (struct nouveau_bo ),GFP_KERNEL );if (!nvbo)return ERR_PTR (-ENOMEM ); +INIT_LIST_HEAD (&nvbo->head);INIT_LIST_HEAD (&nvbo->entry);INIT_LIST_HEAD (&nvbo->vma_list); nvbo->bo.bdev = &drm->ttm.bdev; +drm_gem_gpuva_init (&nvbo->bo.base); +/* This is confusing, and doesn't actually mean we want an uncached * mapping, but is what NOUVEAU_GEM_DOMAIN_COHERENT gets translated * into in nouveau_gem_new().
Signature · 1 line
2.39.0
PATCH 8/14 drm/nouveau: move usercopy helpers to nouveau_drv.h
In reply to Danilo KrummrichMove the usercopy helpers to a common driver header file to make it usable for the new API added in subsequent commits.
--- drivers/gpu/drm/nouveau/nouveau_drv.h | 26 ++++++++++++++++++++++++++ drivers/gpu/drm/nouveau/nouveau_gem.c | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-)
drivers/gpu/drm/nouveau/nouveau_drv.h +26 -0
@@ -130,6 +130,32 @@ nouveau_cli(struct drm_file *fpriv)return fpriv ? fpriv->driver_priv :NULL ; } +static inline void +u_free (void *addr) +{ +kvfree (addr); +} + +static inline void * +u_memcpya (uint64_t user,unsigned nmemb,unsigned size) +{ +void *mem; +void __user *userptr = (void __force __user *)(uintptr_t )user; + + size *= nmemb; + + mem =kvmalloc (size,GFP_KERNEL ); +if (!mem) +return ERR_PTR (-ENOMEM ); + +if (copy_from_user (mem, userptr, size)) { +u_free (mem); +return ERR_PTR (-EFAULT ); + } + +return mem; +} +#include <nvif/object.h> #include <nvif/parent.h>
drivers/gpu/drm/nouveau/nouveau_gem.c +0 -26
@@ -613,32 +613,6 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,return 0 ; } -static inline void -u_free (void *addr) -{ -kvfree (addr); -} - -static inline void * -u_memcpya (uint64_t user,unsigned nmemb,unsigned size) -{ -void *mem; -void __user *userptr = (void __force __user *)(uintptr_t )user; - - size *= nmemb; - - mem =kvmalloc (size,GFP_KERNEL ); -if (!mem) -return ERR_PTR (-ENOMEM ); - -if (copy_from_user (mem, userptr, size)) { -u_free (mem); -return ERR_PTR (-EFAULT ); - } - -return mem; -} - static int nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli, struct drm_nouveau_gem_pushbuf *req,
Signature · 1 line
2.39.0
PATCH 9/14 drm/nouveau: fence: fail to emit when fence context is killed
In reply to Danilo KrummrichThe new VM_BIND UAPI implementation introduced in subsequent commits will allow asynchronous jobs processing push buffers and emitting fences.
If a fence context is killed, e.g. due to a channel fault, jobs which are already queued for execution might still emit new fences. In such a case a job would hang forever.
To fix that, fail to emit a new fence on a killed fence context with -ENODEV to unblock the job.
--- drivers/gpu/drm/nouveau/nouveau_fence.c | 7 +++++++ drivers/gpu/drm/nouveau/nouveau_fence.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_fence.c +7 -0
@@ -96,6 +96,7 @@ nouveau_fence_context_kill(struct nouveau_fence_chan *fctx, int error)if (nouveau_fence_signal (fence))nvif_event_block (&fctx->event); } + fctx->killed =1 ;spin_unlock_irqrestore (&fctx->lock, flags); }
@@ -226,6 +227,12 @@ nouveau_fence_emit(struct nouveau_fence *fence, struct nouveau_channel *chan)dma_fence_get (&fence->base);spin_lock_irq (&fctx->lock); +if (unlikely (fctx->killed)) { +spin_unlock_irq (&fctx->lock); +dma_fence_put (&fence->base); +return -ENODEV ; + } +if (nouveau_fence_update (chan, fctx))nvif_event_block (&fctx->event);
drivers/gpu/drm/nouveau/nouveau_fence.h +1 -1
@@ -45,7 +45,7 @@ struct nouveau_fence_chan {char name[32 ];struct nvif_event event; -int notify_ref, dead; +int notify_ref, dead, killed; };struct nouveau_fence_priv {
Signature · 1 line
2.39.0
PATCH 10/14 drm/nouveau: chan: provide nouveau_channel_kill()
In reply to Danilo KrummrichThe new VM_BIND UAPI implementation introduced in subsequent commits will allow asynchronous jobs processing push buffers and emitting fences.
If a job times out, we need a way to recover from this situation. For now, simply kill the channel to unblock all hung up jobs and signal userspace that the device is dead on the next EXEC or VM_BIND ioctl.
--- drivers/gpu/drm/nouveau/nouveau_chan.c | 14 +++++++++++--- drivers/gpu/drm/nouveau/nouveau_chan.h | 1 + 2 files changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/nouveau/nouveau_chan.c +11 -3
@@ -40,6 +40,14 @@ MODULE_PARM_DESC(vram_pushbuf, "Create DMA push buffers in VRAM");int nouveau_vram_pushbuf;module_param_named (vram_pushbuf, nouveau_vram_pushbuf, int,0400 ); +void +nouveau_channel_kill (struct nouveau_channel *chan) +{ +atomic_set (&chan->killed,1 ); +if (chan->fence) +nouveau_fence_context_kill (chan->fence, -ENODEV ); +} +static int nouveau_channel_killed (struct nvif_event *event,void *repv,u32 repc) {
@@ -47,9 +55,9 @@ nouveau_channel_killed(struct nvif_event *event, void *repv, u32 repc)struct nouveau_cli *cli = (void *)chan->user.client;NV_PRINTK (warn, cli,"channel %d killed!\n" , chan->chid); -atomic_set (&chan->killed,1 ); -if (chan->fence) -nouveau_fence_context_kill (chan->fence, -ENODEV ); + +if (unlikely (!atomic_read (&chan->killed))) +nouveau_channel_kill (chan);return NVIF_EVENT_DROP ; }
drivers/gpu/drm/nouveau/nouveau_chan.h +1 -0
@@ -65,6 +65,7 @@ int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *, bool priv, u32 vram, u32 gart, struct nouveau_channel **); void nouveau_channel_del(struct nouveau_channel **);int nouveau_channel_idle (struct nouveau_channel *); +void nouveau_channel_kill (struct nouveau_channel *);extern int nouveau_vram_pushbuf;
Signature · 1 line
2.39.0
PATCH 11/14 drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm
In reply to Danilo KrummrichThe new VM_BIND UAPI uses the DRM GPU VA manager to manage the VA space. Hence, we a need a way to manipulate the MMUs page tables without going through the internal range allocator implemented by nvkm/vmm.
This patch adds a raw interface for nvkm/vmm to pass the resposibility for managing the address space and the corresponding map/unmap/sparse operations to the upper layers.
--- drivers/gpu/drm/nouveau/include/nvif/if000c.h | 23 ++- drivers/gpu/drm/nouveau/include/nvif/vmm.h | 17 +- .../gpu/drm/nouveau/include/nvkm/subdev/mmu.h | 10 ++ drivers/gpu/drm/nouveau/nouveau_svm.c | 2 +- drivers/gpu/drm/nouveau/nouveau_vmm.c | 4 +- drivers/gpu/drm/nouveau/nvif/vmm.c | 73 +++++++- .../gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c | 168 +++++++++++++++++- .../gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.h | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c | 32 +++- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h | 3 + 10 files changed, 319 insertions(+), 14 deletions(-)
drivers/gpu/drm/nouveau/include/nvif/if000c.h +22 -1
@@ -3,7 +3,10 @@struct nvif_vmm_v0 {__u8 version;__u8 page_nr; -__u8 managed; +#define NVIF_VMM_V0_TYPE_UNMANAGED 0x00 +#define NVIF_VMM_V0_TYPE_MANAGED 0x01 +#define NVIF_VMM_V0_TYPE_RAW 0x02 +__u8 type;__u8 pad03[5 ];__u64 addr;__u64 size;
@@ -17,6 +20,7 @@ struct nvif_vmm_v0 {#define NVIF_VMM_V0_UNMAP 0x04#define NVIF_VMM_V0_PFNMAP 0x05#define NVIF_VMM_V0_PFNCLR 0x06 +#define NVIF_VMM_V0_RAW 0x07#define NVIF_VMM_V0_MTHD (i) ((i) + 0x80)struct nvif_vmm_page_v0 {
@@ -66,6 +70,23 @@ struct nvif_vmm_unmap_v0 {__u64 addr; }; +struct nvif_vmm_raw_v0 { +__u8 version; +#define NVIF_VMM_RAW_V0_MAP 0x0 +#define NVIF_VMM_RAW_V0_UNMAP 0x1 +#define NVIF_VMM_RAW_V0_SPARSE 0x2 +__u8 op; +__u8 sparse; +__u8 ref; +__u8 pad04[4 ]; +__u64 addr; +__u64 size; +__u64 offset; +__u64 memory; +__u64 handle; +__u8 data[]; +}; +struct nvif_vmm_pfnmap_v0 {__u8 version;__u8 page;
drivers/gpu/drm/nouveau/include/nvif/vmm.h +15 -2
@@ -4,6 +4,12 @@struct nvif_mem ;struct nvif_mmu ; +enum nvif_vmm_type { +UNMANAGED , +MANAGED , +RAW , +}; +enum nvif_vmm_get {ADDR ,PTES ,
@@ -30,8 +36,9 @@ struct nvif_vmm {int page_nr; }; -int nvif_vmm_ctor (struct nvif_mmu *,const char *name,s32 oclass,bool managed, -u64 addr,u64 size,void *argv,u32 argc,struct nvif_vmm *); +int nvif_vmm_ctor (struct nvif_mmu *,const char *name,s32 oclass, +enum nvif_vmm_type ,u64 addr,u64 size,void *argv,u32 argc, +struct nvif_vmm *);void nvif_vmm_dtor (struct nvif_vmm *);int nvif_vmm_get (struct nvif_vmm *,enum nvif_vmm_get ,bool sparse,u8 page,u8 align,u64 size,struct nvif_vma *);
@@ -39,4 +46,10 @@ void nvif_vmm_put(struct nvif_vmm *, struct nvif_vma *);int nvif_vmm_map (struct nvif_vmm *,u64 addr,u64 size,void *argv,u32 argc,struct nvif_mem *,u64 offset);int nvif_vmm_unmap (struct nvif_vmm *,u64 ); +int nvif_vmm_raw_unmap (struct nvif_vmm *vmm,u64 handle,bool sparse); +int nvif_vmm_raw_map (struct nvif_vmm *vmm,u64 addr,u64 size, +void *argv,u32 argc, +struct nvif_mem *mem,u64 offset, +u64 *handle); +int nvif_vmm_raw_sparse (struct nvif_vmm *vmm,u64 addr,u64 size,bool ref);#endif
drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h +10 -0
@@ -31,6 +31,16 @@ struct nvkm_vmm {u64 start;u64 limit; +struct { +struct { +u64 addr; +u64 size; + } p; +struct { +u64 addr; +u64 size; + } n; + } managed;struct nvkm_vmm_pt *pd;struct list_head join;
drivers/gpu/drm/nouveau/nouveau_svm.c +1 -1
@@ -350,7 +350,7 @@ nouveau_svmm_init(struct drm_device *dev, void *data,* VMM instead of the standard one. */ ret = nvif_vmm_ctor(&cli->mmu, "svmVmm", - cli->vmm.vmm.object.oclass, true, + cli->vmm.vmm.object.oclass, MANAGED, args->unmanaged_addr, args->unmanaged_size, &(struct gp100_vmm_v0) { .fault_replay = true,
drivers/gpu/drm/nouveau/nouveau_vmm.c +2 -2
@@ -128,8 +128,8 @@ nouveau_vmm_fini(struct nouveau_vmm *vmm)int nouveau_vmm_init (struct nouveau_cli *cli,s32 oclass,struct nouveau_vmm *vmm) { -int ret =nvif_vmm_ctor (&cli->mmu,"drmVmm" , oclass, false,PAGE_SIZE , -0 ,NULL ,0 , &vmm->vmm); +int ret =nvif_vmm_ctor (&cli->mmu,"drmVmm" , oclass,UNMANAGED , +PAGE_SIZE ,0 ,NULL ,0 , &vmm->vmm);if (ret)return ret;
drivers/gpu/drm/nouveau/nvif/vmm.c +70 -3
93 lines not on this page · raw message
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c +164 -4
228 lines not on this page · raw message
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.h +1 -0
@@ -7,6 +7,7 @@struct nvkm_uvmm {struct nvkm_object object;struct nvkm_vmm *vmm; +bool raw; }; int nvkm_uvmm_new(const struct nvkm_oclass *, void *argv, u32 argc,
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c +31 -1
@@ -744,7 +744,7 @@ nvkm_vmm_ptes_get(struct nvkm_vmm *vmm, const struct nvkm_vmm_page *page,return 0 ; } -static inline struct nvkm_vma * +struct nvkm_vma *nvkm_vma_new (u64 addr,u64 size) {struct nvkm_vma *vma =kzalloc (sizeof (*vma),GFP_KERNEL );
@@ -1101,6 +1101,9 @@ nvkm_vmm_ctor(const struct nvkm_vmm_func *func, struct nvkm_mmu *mmu,if (addr && (ret =nvkm_vmm_ctor_managed (vmm,0 , addr)))return ret; + vmm->managed.p.addr =0 ; + vmm->managed.p.size = addr; +/* NVKM-managed area. */ if (size) {if (!(vma =nvkm_vma_new (addr, size)))
@@ -1114,6 +1117,9 @@ nvkm_vmm_ctor(const struct nvkm_vmm_func *func, struct nvkm_mmu *mmu, size = vmm->limit - addr;if (size && (ret =nvkm_vmm_ctor_managed (vmm, addr, size)))return ret; + + vmm->managed.n.addr = addr; + vmm->managed.n.size = size; }else {/* Address-space fully managed by NVKM, requiring calls to * nvkm_vmm_get()/nvkm_vmm_put() to allocate address-space.
@@ -1326,6 +1332,19 @@ nvkm_vmm_pfn_map(struct nvkm_vmm *vmm, u8 shift, u64 addr, u64 size, u64 *pfn)return 0 ; } +void +nvkm_vmm_raw_unmap_locked (struct nvkm_vmm *vmm,struct nvkm_vma *vma) +{ +const struct nvkm_vmm_page *page = &vmm->func->page[vma->refd]; + +nvkm_vmm_ptes_unmap_put (vmm, page, vma->addr, vma->size, vma->sparse, false); + vma->refd =NVKM_VMA_PAGE_NONE ; + +nvkm_memory_tags_put (vma->memory, vmm->mmu->subdev.device, &vma->tags); +nvkm_memory_unref (&vma->memory); + vma->mapped = false; +} +void nvkm_vmm_unmap_region (struct nvkm_vmm *vmm,struct nvkm_vma *vma) {
@@ -1775,6 +1794,17 @@ nvkm_vmm_get(struct nvkm_vmm *vmm, u8 page, u64 size, struct nvkm_vma **pvma)return ret; } +int nvkm_vmm_raw_sparse_locked (struct nvkm_vmm *vmm,u64 addr,u64 size,bool ref) +{ +int ret; + + ret =nvkm_vmm_ptes_sparse (vmm, addr, size, ref); +if (ret) +return ret; + +return 0 ; +} +void nvkm_vmm_part (struct nvkm_vmm *vmm,struct nvkm_memory *inst) {
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h +3 -0
@@ -163,6 +163,7 @@ int nvkm_vmm_new_(const struct nvkm_vmm_func *, struct nvkm_mmu *, u32 pd_header, bool managed, u64 addr, u64 size, struct lock_class_key *, const char *name, struct nvkm_vmm **); +struct nvkm_vma *nvkm_vma_new (u64 addr,u64 size);struct nvkm_vma *nvkm_vmm_node_search (struct nvkm_vmm *,u64 addr);struct nvkm_vma *nvkm_vmm_node_split (struct nvkm_vmm *,struct nvkm_vma *,u64 addr,u64 size);
@@ -172,6 +173,8 @@ int nvkm_vmm_get_locked(struct nvkm_vmm *, bool getref, bool mapref,void nvkm_vmm_put_locked (struct nvkm_vmm *,struct nvkm_vma *);void nvkm_vmm_unmap_locked (struct nvkm_vmm *,struct nvkm_vma *,bool pfn);void nvkm_vmm_unmap_region (struct nvkm_vmm *,struct nvkm_vma *); +void nvkm_vmm_raw_unmap_locked (struct nvkm_vmm *vmm,struct nvkm_vma *vma); +int nvkm_vmm_raw_sparse_locked (struct nvkm_vmm *,u64 addr,u64 size,bool ref);#define NVKM_VMM_PFN_ADDR 0xfffffffffffff000ULL#define NVKM_VMM_PFN_ADDR_SHIFT 12
Signature · 1 line
2.39.0
kernel test robot
build botRe: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm
Thank you for the patch! Perhaps something to improve:
Hi Danilo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d]
url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 base: 0b45ac1170ea6416bc1d36798414c04870cd356d patch link: https://lore.kernel.org/r/20230118061256.2689-12-dakr%40redhat.com patch subject: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm config: arc-allyesconfig compiler: arceb-elf-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/5fca471110e52d7c8db10f9ff483134a546174a1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 git checkout 5fca471110e52d7c8db10f9ff483134a546174a1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c: In function 'nvkm_uvmm_mthd_raw_unmap':
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c:413:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
413 | vma = (struct nvkm_vma *)args->handle;
| ^vim +413 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
406
407 static int
408 nvkm_uvmm_mthd_raw_unmap(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
409 {
410 struct nvkm_vmm *vmm = uvmm->vmm;
411 struct nvkm_vma *vma;
412
> 413 vma = (struct nvkm_vma *)args->handle;
414 if (!vma)
415 return -EINVAL;
416
417 mutex_lock(&vmm->mutex);
418 if (vma->busy) {
419 VMM_DEBUG(vmm, "denied %016llx: %d", vma->addr, vma->busy);
420 mutex_unlock(&vmm->mutex);
421 return -ENOENT;
422 }
423 vma->sparse = args->sparse;
424 nvkm_vmm_raw_unmap_locked(vmm, vma);
425 mutex_unlock(&vmm->mutex);
426
427 args->handle = 0;
428 kfree(vma);
429 return 0;
430 }
431
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
#
# Automatically generated file; DO NOT EDIT. # Linux/arc 6.2.0-rc2 Kernel Configuration #CONFIG_CC_VERSION_TEXT="arceb-elf-gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23800CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23800 CONFIG_LLD_VERSION=0 CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 CONFIG_CONSTRUCTORS=yCONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_LZMA is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_WATCH_QUEUE=yCONFIG_CROSS_MEMORY_ATTACH=yCONFIG_USELIB=yCONFIG_AUDIT=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem
CONFIG_GENERIC_CLOCKEVENTS=yCONFIG_TIME_KUNIT_TEST=yCONFIG_CONTEXT_TRACKING=yCONFIG_CONTEXT_TRACKING_IDLE=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
CONFIG_BPF=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=yCONFIG_BPF_UNPRIV_DEFAULT_OFF=yCONFIG_USERMODE_DRIVER=y
# end of BPF subsystem
CONFIG_PREEMPT_NONE_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=yCONFIG_PSI=yCONFIG_PSI_DEFAULT_DISABLED=y
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=yCONFIG_RCU_EXPERT=yCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_FORCE_TASKS_RCU=yCONFIG_TASKS_RCU=yCONFIG_FORCE_TASKS_RUDE_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_FORCE_TASKS_TRACE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_FANOUT=32CONFIG_RCU_FANOUT_LEAF=2CONFIG_RCU_NOCB_CPU=yCONFIG_RCU_NOCB_CPU_DEFAULT_ALL=yCONFIG_TASKS_TRACE_RCU_READ_MB=yCONFIG_RCU_LAZY=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_IKHEADERS=yCONFIG_LOG_BUF_SHIFT=17CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_PRINTK_INDEX=yCONFIG_GENERIC_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC12_NO_ARRAY_BOUNDS=y CONFIG_CC_NO_ARRAY_BOUNDS=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y CONFIG_CGROUP_FAVOR_DYNMODS=yCONFIG_MEMCG=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=yCONFIG_CGROUP_MISC=yCONFIG_CGROUP_DEBUG=yCONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_CHECKPOINT_RESTORE=y CONFIG_SCHED_AUTOGROUP=y CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=yCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=yCONFIG_BOOT_CONFIG=yCONFIG_BOOT_CONFIG_EMBED=y CONFIG_BOOT_CONFIG_EMBED_FILE="" CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SYSCTL=yCONFIG_EXPERT=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_SELFTEST=yCONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_KCMP=yCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=yCONFIG_PC104=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=yCONFIG_DEBUG_PERF_USE_VMALLOC=y
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_ARC=yCONFIG_LOCKDEP_SUPPORT=yCONFIG_SCHED_OMIT_FRAME_POINTER=yCONFIG_GENERIC_CSUM=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_MMU=yCONFIG_NO_IOPORT_MAP=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_GENERIC_HWEIGHT=yCONFIG_STACKTRACE_SUPPORT=y
#
# ARC Architecture Configuration
#
#
# ARC Platform/SoC/Board
#CONFIG_ARC_PLAT_TB10X=yCONFIG_ARC_PLAT_AXS10X=yCONFIG_AXS103=yCONFIG_ARC_SOC_HSDK=y
# end of ARC Platform/SoC/Board
# CONFIG_ISA_ARCOMPACT is not setCONFIG_ISA_ARCV2=y
#
# ARC CPU Configuration
#CONFIG_ARC_CPU_HS=yCONFIG_ARC_TUNE_MCPU=""CONFIG_CPU_BIG_ENDIAN=yCONFIG_SMP=yCONFIG_NR_CPUS=4CONFIG_ARC_SMP_HALT_ON_RESET=yCONFIG_ARC_MCIP=yCONFIG_ARC_CACHE=yCONFIG_ARC_CACHE_LINE_SHIFT=6CONFIG_ARC_HAS_ICACHE=yCONFIG_ARC_HAS_DCACHE=yCONFIG_ARC_CACHE_PAGES=yCONFIG_ARC_HAS_ICCM=yCONFIG_ARC_ICCM_SZ=64CONFIG_ARC_HAS_DCCM=yCONFIG_ARC_DCCM_SZ=64CONFIG_ARC_DCCM_BASE=0xA0000000CONFIG_ARC_MMU_V4=yCONFIG_ARC_PAGE_SIZE_8K=y
# CONFIG_ARC_PAGE_SIZE_16K is not set
# CONFIG_ARC_PAGE_SIZE_4K is not setCONFIG_ARC_HUGEPAGE_2M=y
# CONFIG_ARC_HUGEPAGE_16M is not setCONFIG_PGTABLE_LEVELS=2CONFIG_ARC_FPU_SAVE_RESTORE=yCONFIG_ARC_HAS_LLSC=yCONFIG_ARC_HAS_SWAPE=yCONFIG_ARC_USE_UNALIGNED_MEM_ACCESS=yCONFIG_ARC_HAS_LL64=yCONFIG_ARC_HAS_DIV_REM=yCONFIG_ARC_HAS_ACCL_REGS=yCONFIG_ARC_DSP_NONE=y
# CONFIG_ARC_DSP_KERNEL is not set
# CONFIG_ARC_DSP_USERSPACE is not set
# CONFIG_ARC_DSP_AGU_USERSPACE is not setCONFIG_ARC_IRQ_NO_AUTOSAVE=yCONFIG_ARC_LPB_DISABLE=y
# end of ARC CPU Configuration
CONFIG_LINUX_LINK_BASE=0x80000000CONFIG_LINUX_RAM_BASE=0x80000000CONFIG_HIGHMEM=yCONFIG_ARC_HAS_PAE40=yCONFIG_ARC_KVADDR_SIZE=256CONFIG_ARC_CURR_IN_REG=yCONFIG_HZ=100CONFIG_ARC_METAWARE_HLINK=yCONFIG_ARC_DBG=yCONFIG_ARC_DW2_UNWIND=yCONFIG_ARC_DBG_JUMP_LABEL=yCONFIG_ARC_BUILTIN_DTB_NAME=""
# end of ARC Architecture Configuration
CONFIG_ARCH_FORCE_MAX_ORDER=11CONFIG_PM=yCONFIG_PM_DEBUG=yCONFIG_PM_ADVANCED_DEBUG=yCONFIG_DPM_WATCHDOG=yCONFIG_DPM_WATCHDOG_TIMEOUT=120CONFIG_PM_CLK=yCONFIG_PM_GENERIC_DOMAINS=yCONFIG_WQ_POWER_EFFICIENT_DEFAULT=yCONFIG_PM_GENERIC_DOMAINS_OF=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=yCONFIG_STATIC_KEYS_SELFTEST=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_KRETPROBES=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_32BIT_OFF_T=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_LTO_NONE=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_RELA=yCONFIG_PAGE_SIZE_LESS_THAN_64KB=yCONFIG_PAGE_SIZE_LESS_THAN_256KB=yCONFIG_ISA_BUS_API=yCONFIG_CLONE_BACKWARDS=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_LOCK_EVENT_COUNTS=yCONFIG_HAVE_ARCH_PFN_VALID=y
#
# GCOV-based kernel profiling
#CONFIG_GCOV_KERNEL=y
# end of GCOV-based kernel profiling
CONFIG_FUNCTION_ALIGNMENT_64B=yCONFIG_FUNCTION_ALIGNMENT=64
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_MODULE_UNLOAD_TAINT_TRACKING=yCONFIG_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_MODULE_SIG=yCONFIG_MODULE_SIG_FORCE=yCONFIG_MODULE_SIG_ALL=yCONFIG_MODULE_SIG_SHA1=y
# CONFIG_MODULE_SIG_SHA224 is not set
# CONFIG_MODULE_SIG_SHA256 is not set
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not setCONFIG_MODULE_SIG_HASH="sha1"CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not setCONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=yCONFIG_MODPROBE_PATH="/sbin/modprobe"CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=yCONFIG_BLK_RQ_ALLOC_TIME=yCONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=yCONFIG_BLK_DEV_INTEGRITY_T10=yCONFIG_BLK_DEV_ZONED=yCONFIG_BLK_DEV_THROTTLING=yCONFIG_BLK_DEV_THROTTLING_LOW=yCONFIG_BLK_WBT=yCONFIG_BLK_WBT_MQ=yCONFIG_BLK_CGROUP_IOLATENCY=yCONFIG_BLK_CGROUP_FC_APPID=yCONFIG_BLK_CGROUP_IOCOST=yCONFIG_BLK_CGROUP_IOPRIO=yCONFIG_BLK_DEBUG_FS=yCONFIG_BLK_DEBUG_FS_ZONED=yCONFIG_BLK_SED_OPAL=yCONFIG_BLK_INLINE_ENCRYPTION=yCONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=yCONFIG_ACORN_PARTITION_CUMANA=yCONFIG_ACORN_PARTITION_EESOX=yCONFIG_ACORN_PARTITION_ICS=yCONFIG_ACORN_PARTITION_ADFS=yCONFIG_ACORN_PARTITION_POWERTEC=yCONFIG_ACORN_PARTITION_RISCIX=yCONFIG_AIX_PARTITION=yCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=yCONFIG_LDM_DEBUG=yCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_CMDLINE_PARTITION=y
# end of Partition Types
CONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_MQ_RDMA=yCONFIG_BLK_PM=yCONFIG_BLOCK_HOLDER_DEPRECATED=yCONFIG_BLK_MQ_STACKING=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=yCONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers
CONFIG_PADATA=yCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_BINFMT_ELF_KUNIT_TEST=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_ZPOOL=yCONFIG_SWAP=yCONFIG_ZSWAP=yCONFIG_ZSWAP_DEFAULT_ON=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo" CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud" CONFIG_ZBUD=yCONFIG_Z3FOLD=yCONFIG_ZSMALLOC=yCONFIG_ZSMALLOC_STAT=y
#
# SLAB allocator options
#
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB_DEPRECATED is not setCONFIG_SLUB_TINY=yCONFIG_SLAB_MERGE_DEFAULT=y
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_COMPAT_BRK=yCONFIG_FLATMEM=yCONFIG_MEMORY_ISOLATION=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_MEMORY_BALLOON=yCONFIG_BALLOON_COMPACTION=yCONFIG_COMPACTION=yCONFIG_COMPACT_UNEVICTABLE_DEFAULT=1CONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_CONTIG_ALLOC=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_BOUNCE=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_TRANSPARENT_HUGEPAGE=yCONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not setCONFIG_READ_ONLY_THP_FOR_FS=yCONFIG_FRONTSWAP=yCONFIG_CMA=yCONFIG_CMA_DEBUG=yCONFIG_CMA_DEBUGFS=yCONFIG_CMA_SYSFS=yCONFIG_CMA_AREAS=7CONFIG_PAGE_IDLE_FLAG=yCONFIG_IDLE_PAGE_TRACKING=yCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_HMM_MIRROR=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PERCPU_STATS=yCONFIG_GUP_TEST=yCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_KMAP_LOCAL=yCONFIG_ANON_VMA_NAME=yCONFIG_USERFAULTFD=yCONFIG_LRU_GEN=yCONFIG_LRU_GEN_ENABLED=yCONFIG_LRU_GEN_STATS=y
#
# Data Access Monitoring
#CONFIG_DAMON=yCONFIG_DAMON_KUNIT_TEST=yCONFIG_DAMON_VADDR=yCONFIG_DAMON_PADDR=yCONFIG_DAMON_VADDR_KUNIT_TEST=yCONFIG_DAMON_SYSFS=yCONFIG_DAMON_DBGFS=yCONFIG_DAMON_DBGFS_KUNIT_TEST=yCONFIG_DAMON_RECLAIM=yCONFIG_DAMON_LRU_SORT=y
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=yCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=yCONFIG_TLS=yCONFIG_TLS_DEVICE=yCONFIG_TLS_TOE=yCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=yCONFIG_XFRM_INTERFACE=yCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=yCONFIG_XFRM_ESP=yCONFIG_XFRM_IPCOMP=yCONFIG_NET_KEY=yCONFIG_NET_KEY_MIGRATE=yCONFIG_XFRM_ESPINTCP=yCONFIG_SMC=yCONFIG_SMC_DIAG=yCONFIG_XDP_SOCKETS=yCONFIG_XDP_SOCKETS_DIAG=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE_DEMUX=yCONFIG_NET_IP_TUNNEL=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=yCONFIG_NET_UDP_TUNNEL=yCONFIG_NET_FOU=yCONFIG_NET_FOU_IP_TUNNELS=yCONFIG_INET_AH=yCONFIG_INET_ESP=yCONFIG_INET_ESP_OFFLOAD=yCONFIG_INET_ESPINTCP=yCONFIG_INET_IPCOMP=yCONFIG_INET_TABLE_PERTURB_ORDER=16CONFIG_INET_XFRM_TUNNEL=yCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=yCONFIG_INET_UDP_DIAG=yCONFIG_INET_RAW_DIAG=yCONFIG_INET_DIAG_DESTROY=yCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=yCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=yCONFIG_TCP_CONG_HTCP=yCONFIG_TCP_CONG_HSTCP=yCONFIG_TCP_CONG_HYBLA=yCONFIG_TCP_CONG_VEGAS=yCONFIG_TCP_CONG_NV=yCONFIG_TCP_CONG_SCALABLE=yCONFIG_TCP_CONG_LP=yCONFIG_TCP_CONG_VENO=yCONFIG_TCP_CONG_YEAH=yCONFIG_TCP_CONG_ILLINOIS=yCONFIG_TCP_CONG_DCTCP=yCONFIG_TCP_CONG_CDG=yCONFIG_TCP_CONG_BBR=y
# CONFIG_DEFAULT_BIC is not setCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_HYBLA is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_VENO is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_DCTCP is not set
# CONFIG_DEFAULT_CDG is not set
# CONFIG_DEFAULT_BBR is not set
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=yCONFIG_INET6_ESP=yCONFIG_INET6_ESP_OFFLOAD=yCONFIG_INET6_ESPINTCP=yCONFIG_INET6_IPCOMP=yCONFIG_IPV6_MIP6=yCONFIG_IPV6_ILA=yCONFIG_INET6_XFRM_TUNNEL=yCONFIG_INET6_TUNNEL=yCONFIG_IPV6_VTI=yCONFIG_IPV6_SIT=yCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=yCONFIG_IPV6_GRE=yCONFIG_IPV6_FOU=yCONFIG_IPV6_FOU_TUNNEL=yCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=yCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=yCONFIG_IPV6_SEG6_LWTUNNEL=yCONFIG_IPV6_SEG6_HMAC=yCONFIG_IPV6_SEG6_BPF=yCONFIG_IPV6_RPL_LWTUNNEL=yCONFIG_IPV6_IOAM6_LWTUNNEL=yCONFIG_NETLABEL=yCONFIG_MPTCP=yCONFIG_INET_MPTCP_DIAG=yCONFIG_MPTCP_IPV6=yCONFIG_MPTCP_KUNIT_TEST=yCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_EGRESS=yCONFIG_NETFILTER_SKIP_EGRESS=yCONFIG_NETFILTER_NETLINK=yCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=yCONFIG_NETFILTER_NETLINK_HOOK=yCONFIG_NETFILTER_NETLINK_ACCT=yCONFIG_NETFILTER_NETLINK_QUEUE=yCONFIG_NETFILTER_NETLINK_LOG=yCONFIG_NETFILTER_NETLINK_OSF=yCONFIG_NF_CONNTRACK=yCONFIG_NF_LOG_SYSLOG=yCONFIG_NETFILTER_CONNCOUNT=yCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=yCONFIG_NF_CONNTRACK_FTP=yCONFIG_NF_CONNTRACK_H323=yCONFIG_NF_CONNTRACK_IRC=yCONFIG_NF_CONNTRACK_BROADCAST=yCONFIG_NF_CONNTRACK_NETBIOS_NS=yCONFIG_NF_CONNTRACK_SNMP=yCONFIG_NF_CONNTRACK_PPTP=yCONFIG_NF_CONNTRACK_SANE=yCONFIG_NF_CONNTRACK_SIP=yCONFIG_NF_CONNTRACK_TFTP=yCONFIG_NF_CT_NETLINK=yCONFIG_NF_CT_NETLINK_TIMEOUT=yCONFIG_NF_CT_NETLINK_HELPER=yCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=yCONFIG_NF_NAT_AMANDA=yCONFIG_NF_NAT_FTP=yCONFIG_NF_NAT_IRC=yCONFIG_NF_NAT_SIP=yCONFIG_NF_NAT_TFTP=yCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NF_NAT_OVS=yCONFIG_NETFILTER_SYNPROXY=yCONFIG_NF_TABLES=yCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=yCONFIG_NFT_CT=yCONFIG_NFT_FLOW_OFFLOAD=yCONFIG_NFT_CONNLIMIT=yCONFIG_NFT_LOG=yCONFIG_NFT_LIMIT=yCONFIG_NFT_MASQ=yCONFIG_NFT_REDIR=yCONFIG_NFT_NAT=yCONFIG_NFT_TUNNEL=yCONFIG_NFT_QUEUE=yCONFIG_NFT_QUOTA=yCONFIG_NFT_REJECT=yCONFIG_NFT_REJECT_INET=yCONFIG_NFT_COMPAT=yCONFIG_NFT_HASH=yCONFIG_NFT_FIB=yCONFIG_NFT_FIB_INET=yCONFIG_NFT_XFRM=yCONFIG_NFT_SOCKET=yCONFIG_NFT_OSF=yCONFIG_NFT_TPROXY=yCONFIG_NFT_SYNPROXY=yCONFIG_NF_DUP_NETDEV=yCONFIG_NFT_DUP_NETDEV=yCONFIG_NFT_FWD_NETDEV=yCONFIG_NFT_FIB_NETDEV=yCONFIG_NFT_REJECT_NETDEV=yCONFIG_NF_FLOW_TABLE_INET=yCONFIG_NF_FLOW_TABLE=yCONFIG_NF_FLOW_TABLE_PROCFS=yCONFIG_NETFILTER_XTABLES=y
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=yCONFIG_NETFILTER_XT_CONNMARK=yCONFIG_NETFILTER_XT_SET=y
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=yCONFIG_NETFILTER_XT_TARGET_CHECKSUM=yCONFIG_NETFILTER_XT_TARGET_CLASSIFY=yCONFIG_NETFILTER_XT_TARGET_CONNMARK=yCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=yCONFIG_NETFILTER_XT_TARGET_CT=yCONFIG_NETFILTER_XT_TARGET_DSCP=yCONFIG_NETFILTER_XT_TARGET_HL=yCONFIG_NETFILTER_XT_TARGET_HMARK=yCONFIG_NETFILTER_XT_TARGET_IDLETIMER=yCONFIG_NETFILTER_XT_TARGET_LED=yCONFIG_NETFILTER_XT_TARGET_LOG=yCONFIG_NETFILTER_XT_TARGET_MARK=yCONFIG_NETFILTER_XT_NAT=yCONFIG_NETFILTER_XT_TARGET_NETMAP=yCONFIG_NETFILTER_XT_TARGET_NFLOG=yCONFIG_NETFILTER_XT_TARGET_NFQUEUE=yCONFIG_NETFILTER_XT_TARGET_NOTRACK=yCONFIG_NETFILTER_XT_TARGET_RATEEST=yCONFIG_NETFILTER_XT_TARGET_REDIRECT=yCONFIG_NETFILTER_XT_TARGET_MASQUERADE=yCONFIG_NETFILTER_XT_TARGET_TEE=yCONFIG_NETFILTER_XT_TARGET_TPROXY=yCONFIG_NETFILTER_XT_TARGET_TRACE=yCONFIG_NETFILTER_XT_TARGET_SECMARK=yCONFIG_NETFILTER_XT_TARGET_TCPMSS=yCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=yCONFIG_NETFILTER_XT_MATCH_BPF=yCONFIG_NETFILTER_XT_MATCH_CGROUP=yCONFIG_NETFILTER_XT_MATCH_CLUSTER=yCONFIG_NETFILTER_XT_MATCH_COMMENT=yCONFIG_NETFILTER_XT_MATCH_CONNBYTES=yCONFIG_NETFILTER_XT_MATCH_CONNLABEL=yCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=yCONFIG_NETFILTER_XT_MATCH_CONNMARK=yCONFIG_NETFILTER_XT_MATCH_CONNTRACK=yCONFIG_NETFILTER_XT_MATCH_CPU=yCONFIG_NETFILTER_XT_MATCH_DCCP=yCONFIG_NETFILTER_XT_MATCH_DEVGROUP=yCONFIG_NETFILTER_XT_MATCH_DSCP=yCONFIG_NETFILTER_XT_MATCH_ECN=yCONFIG_NETFILTER_XT_MATCH_ESP=yCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=yCONFIG_NETFILTER_XT_MATCH_HELPER=yCONFIG_NETFILTER_XT_MATCH_HL=yCONFIG_NETFILTER_XT_MATCH_IPCOMP=yCONFIG_NETFILTER_XT_MATCH_IPRANGE=yCONFIG_NETFILTER_XT_MATCH_IPVS=yCONFIG_NETFILTER_XT_MATCH_L2TP=yCONFIG_NETFILTER_XT_MATCH_LENGTH=yCONFIG_NETFILTER_XT_MATCH_LIMIT=yCONFIG_NETFILTER_XT_MATCH_MAC=yCONFIG_NETFILTER_XT_MATCH_MARK=yCONFIG_NETFILTER_XT_MATCH_MULTIPORT=yCONFIG_NETFILTER_XT_MATCH_NFACCT=yCONFIG_NETFILTER_XT_MATCH_OSF=yCONFIG_NETFILTER_XT_MATCH_OWNER=yCONFIG_NETFILTER_XT_MATCH_POLICY=yCONFIG_NETFILTER_XT_MATCH_PHYSDEV=yCONFIG_NETFILTER_XT_MATCH_PKTTYPE=yCONFIG_NETFILTER_XT_MATCH_QUOTA=yCONFIG_NETFILTER_XT_MATCH_RATEEST=yCONFIG_NETFILTER_XT_MATCH_REALM=yCONFIG_NETFILTER_XT_MATCH_RECENT=yCONFIG_NETFILTER_XT_MATCH_SCTP=yCONFIG_NETFILTER_XT_MATCH_SOCKET=yCONFIG_NETFILTER_XT_MATCH_STATE=yCONFIG_NETFILTER_XT_MATCH_STATISTIC=yCONFIG_NETFILTER_XT_MATCH_STRING=yCONFIG_NETFILTER_XT_MATCH_TCPMSS=yCONFIG_NETFILTER_XT_MATCH_TIME=yCONFIG_NETFILTER_XT_MATCH_U32=y
# end of Core Netfilter Configuration
CONFIG_IP_SET=yCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=yCONFIG_IP_SET_BITMAP_IPMAC=yCONFIG_IP_SET_BITMAP_PORT=yCONFIG_IP_SET_HASH_IP=yCONFIG_IP_SET_HASH_IPMARK=yCONFIG_IP_SET_HASH_IPPORT=yCONFIG_IP_SET_HASH_IPPORTIP=yCONFIG_IP_SET_HASH_IPPORTNET=yCONFIG_IP_SET_HASH_IPMAC=yCONFIG_IP_SET_HASH_MAC=yCONFIG_IP_SET_HASH_NETPORTNET=yCONFIG_IP_SET_HASH_NET=yCONFIG_IP_SET_HASH_NETNET=yCONFIG_IP_SET_HASH_NETPORT=yCONFIG_IP_SET_HASH_NETIFACE=yCONFIG_IP_SET_LIST_SET=yCONFIG_IP_VS=yCONFIG_IP_VS_IPV6=yCONFIG_IP_VS_DEBUG=yCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=yCONFIG_IP_VS_WRR=yCONFIG_IP_VS_LC=yCONFIG_IP_VS_WLC=yCONFIG_IP_VS_FO=yCONFIG_IP_VS_OVF=yCONFIG_IP_VS_LBLC=yCONFIG_IP_VS_LBLCR=yCONFIG_IP_VS_DH=yCONFIG_IP_VS_SH=yCONFIG_IP_VS_MH=yCONFIG_IP_VS_SED=yCONFIG_IP_VS_NQ=yCONFIG_IP_VS_TWOS=y
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=yCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=y
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=yCONFIG_NF_SOCKET_IPV4=yCONFIG_NF_TPROXY_IPV4=yCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=yCONFIG_NFT_DUP_IPV4=yCONFIG_NFT_FIB_IPV4=yCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=yCONFIG_NF_LOG_ARP=yCONFIG_NF_LOG_IPV4=yCONFIG_NF_REJECT_IPV4=yCONFIG_NF_NAT_SNMP_BASIC=yCONFIG_NF_NAT_PPTP=yCONFIG_NF_NAT_H323=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_AH=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_RPFILTER=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IP_NF_TARGET_SYNPROXY=yCONFIG_IP_NF_NAT=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_NETMAP=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_CLUSTERIP=yCONFIG_IP_NF_TARGET_ECN=yCONFIG_IP_NF_TARGET_TTL=yCONFIG_IP_NF_RAW=yCONFIG_IP_NF_SECURITY=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_IP_NF_ARP_MANGLE=y
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=yCONFIG_NF_TPROXY_IPV6=yCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=yCONFIG_NFT_DUP_IPV6=yCONFIG_NFT_FIB_IPV6=yCONFIG_NF_DUP_IPV6=yCONFIG_NF_REJECT_IPV6=yCONFIG_NF_LOG_IPV6=yCONFIG_IP6_NF_IPTABLES=yCONFIG_IP6_NF_MATCH_AH=yCONFIG_IP6_NF_MATCH_EUI64=yCONFIG_IP6_NF_MATCH_FRAG=yCONFIG_IP6_NF_MATCH_OPTS=yCONFIG_IP6_NF_MATCH_HL=yCONFIG_IP6_NF_MATCH_IPV6HEADER=yCONFIG_IP6_NF_MATCH_MH=yCONFIG_IP6_NF_MATCH_RPFILTER=yCONFIG_IP6_NF_MATCH_RT=yCONFIG_IP6_NF_MATCH_SRH=yCONFIG_IP6_NF_TARGET_HL=yCONFIG_IP6_NF_FILTER=yCONFIG_IP6_NF_TARGET_REJECT=yCONFIG_IP6_NF_TARGET_SYNPROXY=yCONFIG_IP6_NF_MANGLE=yCONFIG_IP6_NF_RAW=yCONFIG_IP6_NF_SECURITY=yCONFIG_IP6_NF_NAT=yCONFIG_IP6_NF_TARGET_MASQUERADE=yCONFIG_IP6_NF_TARGET_NPT=y
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=yCONFIG_NF_TABLES_BRIDGE=yCONFIG_NFT_BRIDGE_META=yCONFIG_NFT_BRIDGE_REJECT=yCONFIG_NF_CONNTRACK_BRIDGE=yCONFIG_BRIDGE_NF_EBTABLES=yCONFIG_BRIDGE_EBT_BROUTE=yCONFIG_BRIDGE_EBT_T_FILTER=yCONFIG_BRIDGE_EBT_T_NAT=yCONFIG_BRIDGE_EBT_802_3=yCONFIG_BRIDGE_EBT_AMONG=yCONFIG_BRIDGE_EBT_ARP=yCONFIG_BRIDGE_EBT_IP=yCONFIG_BRIDGE_EBT_IP6=yCONFIG_BRIDGE_EBT_LIMIT=yCONFIG_BRIDGE_EBT_MARK=yCONFIG_BRIDGE_EBT_PKTTYPE=yCONFIG_BRIDGE_EBT_STP=yCONFIG_BRIDGE_EBT_VLAN=yCONFIG_BRIDGE_EBT_ARPREPLY=yCONFIG_BRIDGE_EBT_DNAT=yCONFIG_BRIDGE_EBT_MARK_T=yCONFIG_BRIDGE_EBT_REDIRECT=yCONFIG_BRIDGE_EBT_SNAT=yCONFIG_BRIDGE_EBT_LOG=yCONFIG_BRIDGE_EBT_NFLOG=yCONFIG_BPFILTER=yCONFIG_IP_DCCP=yCONFIG_INET_DCCP_DIAG=y
#
# DCCP CCIDs Configuration
#CONFIG_IP_DCCP_CCID2_DEBUG=yCONFIG_IP_DCCP_CCID3=yCONFIG_IP_DCCP_CCID3_DEBUG=yCONFIG_IP_DCCP_TFRC_LIB=yCONFIG_IP_DCCP_TFRC_DEBUG=y
# end of DCCP CCIDs Configuration
#
# DCCP Kernel Hacking
#CONFIG_IP_DCCP_DEBUG=y
# end of DCCP Kernel Hacking
CONFIG_IP_SCTP=yCONFIG_SCTP_DBG_OBJCNT=yCONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not setCONFIG_SCTP_COOKIE_HMAC_MD5=yCONFIG_SCTP_COOKIE_HMAC_SHA1=yCONFIG_INET_SCTP_DIAG=yCONFIG_RDS=yCONFIG_RDS_RDMA=yCONFIG_RDS_TCP=yCONFIG_RDS_DEBUG=yCONFIG_TIPC=yCONFIG_TIPC_MEDIA_IB=yCONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=yCONFIG_ATM=yCONFIG_ATM_CLIP=yCONFIG_ATM_CLIP_NO_ICMP=yCONFIG_ATM_LANE=yCONFIG_ATM_MPOA=yCONFIG_ATM_BR2684=yCONFIG_ATM_BR2684_IPFILTER=yCONFIG_L2TP=yCONFIG_L2TP_DEBUGFS=yCONFIG_L2TP_V3=yCONFIG_L2TP_IP=yCONFIG_L2TP_ETH=yCONFIG_STP=yCONFIG_GARP=yCONFIG_MRP=yCONFIG_BRIDGE=yCONFIG_BRIDGE_IGMP_SNOOPING=yCONFIG_BRIDGE_VLAN_FILTERING=yCONFIG_BRIDGE_MRP=yCONFIG_BRIDGE_CFM=yCONFIG_NET_DSA=yCONFIG_NET_DSA_TAG_NONE=yCONFIG_NET_DSA_TAG_AR9331=yCONFIG_NET_DSA_TAG_BRCM_COMMON=yCONFIG_NET_DSA_TAG_BRCM=yCONFIG_NET_DSA_TAG_BRCM_LEGACY=yCONFIG_NET_DSA_TAG_BRCM_PREPEND=yCONFIG_NET_DSA_TAG_HELLCREEK=yCONFIG_NET_DSA_TAG_GSWIP=yCONFIG_NET_DSA_TAG_DSA_COMMON=yCONFIG_NET_DSA_TAG_DSA=yCONFIG_NET_DSA_TAG_EDSA=yCONFIG_NET_DSA_TAG_MTK=yCONFIG_NET_DSA_TAG_KSZ=yCONFIG_NET_DSA_TAG_OCELOT=yCONFIG_NET_DSA_TAG_OCELOT_8021Q=yCONFIG_NET_DSA_TAG_QCA=yCONFIG_NET_DSA_TAG_RTL4_A=yCONFIG_NET_DSA_TAG_RTL8_4=yCONFIG_NET_DSA_TAG_RZN1_A5PSW=yCONFIG_NET_DSA_TAG_LAN9303=yCONFIG_NET_DSA_TAG_SJA1105=yCONFIG_NET_DSA_TAG_TRAILER=yCONFIG_NET_DSA_TAG_XRS700X=yCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=yCONFIG_VLAN_8021Q_MVRP=yCONFIG_LLC=yCONFIG_LLC2=yCONFIG_ATALK=yCONFIG_DEV_APPLETALK=yCONFIG_IPDDP=yCONFIG_IPDDP_ENCAP=yCONFIG_X25=yCONFIG_LAPB=yCONFIG_PHONET=yCONFIG_6LOWPAN=yCONFIG_6LOWPAN_DEBUGFS=yCONFIG_6LOWPAN_NHC=yCONFIG_6LOWPAN_NHC_DEST=yCONFIG_6LOWPAN_NHC_FRAGMENT=yCONFIG_6LOWPAN_NHC_HOP=yCONFIG_6LOWPAN_NHC_IPV6=yCONFIG_6LOWPAN_NHC_MOBILITY=yCONFIG_6LOWPAN_NHC_ROUTING=yCONFIG_6LOWPAN_NHC_UDP=yCONFIG_6LOWPAN_GHC_EXT_HDR_HOP=yCONFIG_6LOWPAN_GHC_UDP=yCONFIG_6LOWPAN_GHC_ICMPV6=yCONFIG_6LOWPAN_GHC_EXT_HDR_DEST=yCONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=yCONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=yCONFIG_IEEE802154=yCONFIG_IEEE802154_NL802154_EXPERIMENTAL=yCONFIG_IEEE802154_SOCKET=yCONFIG_IEEE802154_6LOWPAN=yCONFIG_MAC802154=yCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_HFSC=yCONFIG_NET_SCH_ATM=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_MULTIQ=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFB=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_CBS=yCONFIG_NET_SCH_ETF=yCONFIG_NET_SCH_TAPRIO=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_NETEM=yCONFIG_NET_SCH_DRR=yCONFIG_NET_SCH_MQPRIO=yCONFIG_NET_SCH_SKBPRIO=yCONFIG_NET_SCH_CHOKE=yCONFIG_NET_SCH_QFQ=yCONFIG_NET_SCH_CODEL=yCONFIG_NET_SCH_FQ_CODEL=yCONFIG_NET_SCH_CAKE=yCONFIG_NET_SCH_FQ=yCONFIG_NET_SCH_HHF=yCONFIG_NET_SCH_PIE=yCONFIG_NET_SCH_FQ_PIE=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_SCH_PLUG=yCONFIG_NET_SCH_ETS=yCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not set
# CONFIG_DEFAULT_FQ_CODEL is not set
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not setCONFIG_DEFAULT_PFIFO_FAST=yCONFIG_DEFAULT_NET_SCH="pfifo_fast"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_FLOW=yCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=yCONFIG_NET_CLS_FLOWER=yCONFIG_NET_CLS_MATCHALL=yCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=yCONFIG_NET_EMATCH_NBYTE=yCONFIG_NET_EMATCH_U32=yCONFIG_NET_EMATCH_META=yCONFIG_NET_EMATCH_TEXT=yCONFIG_NET_EMATCH_CANID=yCONFIG_NET_EMATCH_IPSET=yCONFIG_NET_EMATCH_IPT=yCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=yCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=yCONFIG_NET_ACT_SAMPLE=yCONFIG_NET_ACT_IPT=yCONFIG_NET_ACT_NAT=yCONFIG_NET_ACT_PEDIT=yCONFIG_NET_ACT_SIMP=yCONFIG_NET_ACT_SKBEDIT=yCONFIG_NET_ACT_CSUM=yCONFIG_NET_ACT_MPLS=yCONFIG_NET_ACT_VLAN=yCONFIG_NET_ACT_BPF=yCONFIG_NET_ACT_CONNMARK=yCONFIG_NET_ACT_CTINFO=yCONFIG_NET_ACT_SKBMOD=yCONFIG_NET_ACT_IFE=yCONFIG_NET_ACT_TUNNEL_KEY=yCONFIG_NET_ACT_CT=yCONFIG_NET_ACT_GATE=yCONFIG_NET_IFE_SKBMARK=yCONFIG_NET_IFE_SKBPRIO=yCONFIG_NET_IFE_SKBTCINDEX=yCONFIG_NET_TC_SKB_EXT=yCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=yCONFIG_BATMAN_ADV_BATMAN_V=yCONFIG_BATMAN_ADV_BLA=yCONFIG_BATMAN_ADV_DAT=yCONFIG_BATMAN_ADV_NC=yCONFIG_BATMAN_ADV_MCAST=yCONFIG_BATMAN_ADV_DEBUG=yCONFIG_BATMAN_ADV_TRACING=yCONFIG_OPENVSWITCH=yCONFIG_OPENVSWITCH_GRE=yCONFIG_OPENVSWITCH_VXLAN=yCONFIG_OPENVSWITCH_GENEVE=yCONFIG_VSOCKETS=yCONFIG_VSOCKETS_DIAG=yCONFIG_VSOCKETS_LOOPBACK=yCONFIG_VIRTIO_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS_COMMON=yCONFIG_NETLINK_DIAG=yCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=yCONFIG_MPLS_ROUTING=yCONFIG_MPLS_IPTUNNEL=yCONFIG_NET_NSH=yCONFIG_HSR=yCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=yCONFIG_QRTR=yCONFIG_QRTR_SMD=yCONFIG_QRTR_TUN=yCONFIG_QRTR_MHI=yCONFIG_NET_NCSI=yCONFIG_NCSI_OEM_CMD_GET_MAC=yCONFIG_NCSI_OEM_CMD_KEEP_PHY=yCONFIG_PCPU_DEV_REFCNT=yCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=yCONFIG_HWBM=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=yCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
CONFIG_HAMRADIO=y
#
# Packet Radio protocols
#CONFIG_AX25=yCONFIG_AX25_DAMA_SLAVE=yCONFIG_NETROM=yCONFIG_ROSE=y
#
# AX.25 network device drivers
#CONFIG_MKISS=yCONFIG_6PACK=yCONFIG_BPQETHER=yCONFIG_BAYCOM_SER_FDX=yCONFIG_BAYCOM_SER_HDX=yCONFIG_BAYCOM_PAR=yCONFIG_BAYCOM_EPP=yCONFIG_YAM=y
# end of AX.25 network device drivers
CONFIG_CAN=yCONFIG_CAN_RAW=yCONFIG_CAN_BCM=yCONFIG_CAN_GW=yCONFIG_CAN_J1939=yCONFIG_CAN_ISOTP=yCONFIG_BT=yCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=yCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=yCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_CMTP=yCONFIG_BT_HIDP=yCONFIG_BT_HS=yCONFIG_BT_LE=yCONFIG_BT_LE_L2CAP_ECRED=yCONFIG_BT_6LOWPAN=yCONFIG_BT_LEDS=yCONFIG_BT_MSFTEXT=yCONFIG_BT_AOSPEXT=yCONFIG_BT_DEBUGFS=yCONFIG_BT_SELFTEST=yCONFIG_BT_SELFTEST_ECDH=yCONFIG_BT_SELFTEST_SMP=y
#
# Bluetooth device drivers
#CONFIG_BT_INTEL=yCONFIG_BT_BCM=yCONFIG_BT_RTL=yCONFIG_BT_QCA=yCONFIG_BT_MTK=yCONFIG_BT_HCIBTUSB=yCONFIG_BT_HCIBTUSB_AUTOSUSPEND=yCONFIG_BT_HCIBTUSB_POLL_SYNC=yCONFIG_BT_HCIBTUSB_BCM=yCONFIG_BT_HCIBTUSB_MTK=yCONFIG_BT_HCIBTUSB_RTL=yCONFIG_BT_HCIBTSDIO=yCONFIG_BT_HCIUART=yCONFIG_BT_HCIUART_SERDEV=yCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_NOKIA=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=yCONFIG_BT_HCIUART_LL=yCONFIG_BT_HCIUART_3WIRE=yCONFIG_BT_HCIUART_INTEL=yCONFIG_BT_HCIUART_BCM=yCONFIG_BT_HCIUART_RTL=yCONFIG_BT_HCIUART_QCA=yCONFIG_BT_HCIUART_AG6XX=yCONFIG_BT_HCIUART_MRVL=yCONFIG_BT_HCIBCM203X=yCONFIG_BT_HCIBCM4377=yCONFIG_BT_HCIBPA10X=yCONFIG_BT_HCIBFUSB=yCONFIG_BT_HCIDTL1=yCONFIG_BT_HCIBT3C=yCONFIG_BT_HCIBLUECARD=yCONFIG_BT_HCIVHCI=yCONFIG_BT_MRVL=yCONFIG_BT_MRVL_SDIO=yCONFIG_BT_ATH3K=yCONFIG_BT_MTKSDIO=yCONFIG_BT_MTKUART=yCONFIG_BT_QCOMSMD=yCONFIG_BT_HCIRSI=yCONFIG_BT_VIRTIO=y
# end of Bluetooth device drivers
CONFIG_AF_RXRPC=yCONFIG_AF_RXRPC_IPV6=yCONFIG_AF_RXRPC_INJECT_LOSS=yCONFIG_AF_RXRPC_DEBUG=yCONFIG_RXKAD=yCONFIG_RXPERF=yCONFIG_AF_KCM=yCONFIG_STREAM_PARSER=yCONFIG_MCTP=yCONFIG_MCTP_TEST=yCONFIG_MCTP_FLOWS=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WIRELESS_EXT=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_WEXT_SPY=yCONFIG_WEXT_PRIV=yCONFIG_CFG80211=yCONFIG_NL80211_TESTMODE=yCONFIG_CFG80211_DEVELOPER_WARNINGS=yCONFIG_CFG80211_CERTIFICATION_ONUS=yCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_EXTRA_REGDB_KEYDIR=""CONFIG_CFG80211_REG_CELLULAR_HINTS=yCONFIG_CFG80211_REG_RELAX_NO_IR=yCONFIG_CFG80211_DEFAULT_PS=yCONFIG_CFG80211_DEBUGFS=yCONFIG_CFG80211_CRDA_SUPPORT=yCONFIG_CFG80211_WEXT=yCONFIG_CFG80211_WEXT_EXPORT=yCONFIG_LIB80211=yCONFIG_LIB80211_CRYPT_WEP=yCONFIG_LIB80211_CRYPT_CCMP=yCONFIG_LIB80211_CRYPT_TKIP=yCONFIG_LIB80211_DEBUG=yCONFIG_MAC80211=yCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=yCONFIG_MAC80211_MESSAGE_TRACING=yCONFIG_MAC80211_DEBUG_MENU=yCONFIG_MAC80211_NOINLINE=yCONFIG_MAC80211_VERBOSE_DEBUG=yCONFIG_MAC80211_MLME_DEBUG=yCONFIG_MAC80211_STA_DEBUG=yCONFIG_MAC80211_HT_DEBUG=yCONFIG_MAC80211_OCB_DEBUG=yCONFIG_MAC80211_IBSS_DEBUG=yCONFIG_MAC80211_PS_DEBUG=yCONFIG_MAC80211_MPL_DEBUG=yCONFIG_MAC80211_MPATH_DEBUG=yCONFIG_MAC80211_MHWMP_DEBUG=yCONFIG_MAC80211_MESH_SYNC_DEBUG=yCONFIG_MAC80211_MESH_CSA_DEBUG=yCONFIG_MAC80211_MESH_PS_DEBUG=yCONFIG_MAC80211_TDLS_DEBUG=yCONFIG_MAC80211_DEBUG_COUNTERS=yCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=yCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=yCONFIG_NET_9P=yCONFIG_NET_9P_FD=yCONFIG_NET_9P_VIRTIO=yCONFIG_NET_9P_RDMA=yCONFIG_NET_9P_DEBUG=yCONFIG_CAIF=yCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=yCONFIG_CAIF_USB=yCONFIG_CEPH_LIB=yCONFIG_CEPH_LIB_PRETTYDEBUG=yCONFIG_CEPH_LIB_USE_DNS_RESOLVER=yCONFIG_NFC=yCONFIG_NFC_DIGITAL=yCONFIG_NFC_NCI=yCONFIG_NFC_NCI_SPI=yCONFIG_NFC_NCI_UART=yCONFIG_NFC_HCI=yCONFIG_NFC_SHDLC=y
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_TRF7970A=yCONFIG_NFC_SIM=yCONFIG_NFC_PORT100=yCONFIG_NFC_VIRTUAL_NCI=yCONFIG_NFC_FDP=yCONFIG_NFC_FDP_I2C=yCONFIG_NFC_PN544=yCONFIG_NFC_PN544_I2C=yCONFIG_NFC_PN533=yCONFIG_NFC_PN533_USB=yCONFIG_NFC_PN533_I2C=yCONFIG_NFC_PN532_UART=yCONFIG_NFC_MICROREAD=yCONFIG_NFC_MICROREAD_I2C=yCONFIG_NFC_MRVL=yCONFIG_NFC_MRVL_USB=yCONFIG_NFC_MRVL_UART=yCONFIG_NFC_MRVL_I2C=yCONFIG_NFC_MRVL_SPI=yCONFIG_NFC_ST21NFCA=yCONFIG_NFC_ST21NFCA_I2C=yCONFIG_NFC_ST_NCI=yCONFIG_NFC_ST_NCI_I2C=yCONFIG_NFC_ST_NCI_SPI=yCONFIG_NFC_NXP_NCI=yCONFIG_NFC_NXP_NCI_I2C=yCONFIG_NFC_S3FWRN5=yCONFIG_NFC_S3FWRN5_I2C=yCONFIG_NFC_S3FWRN82_UART=yCONFIG_NFC_ST95HF=y
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=yCONFIG_NET_IFE=yCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_PAGE_POOL_STATS=yCONFIG_FAILOVER=yCONFIG_ETHTOOL_NETLINK=yCONFIG_NETDEV_ADDR_LIST_TEST=y
#
# Device Drivers
#CONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_SYSCALL=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=yCONFIG_PCIE_ECRC=yCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PME=yCONFIG_PCIE_DPC=yCONFIG_PCIE_PTM=yCONFIG_PCI_MSI=yCONFIG_PCI_QUIRKS=yCONFIG_PCI_DEBUG=yCONFIG_PCI_REALLOC_ENABLE_AUTO=yCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_DOE=yCONFIG_PCI_ECAM=yCONFIG_PCI_BRIDGE_EMUL=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=y
# CONFIG_PCIE_BUS_TUNE_OFF is not setCONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16CONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_CPCI=yCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_PCI_AARDVARK=yCONFIG_PCIE_XILINX_NWL=yCONFIG_PCI_FTPCI100=yCONFIG_PCI_TEGRA=yCONFIG_PCIE_RCAR_HOST=yCONFIG_PCIE_RCAR_EP=yCONFIG_PCI_HOST_COMMON=yCONFIG_PCI_HOST_GENERIC=yCONFIG_PCIE_XILINX=yCONFIG_PCIE_XILINX_CPM=yCONFIG_PCI_XGENE=yCONFIG_PCI_XGENE_MSI=yCONFIG_PCI_V3_SEMI=yCONFIG_PCI_VERSATILE=yCONFIG_PCIE_ALTERA=yCONFIG_PCIE_ALTERA_MSI=yCONFIG_PCI_HOST_THUNDER_PEM=yCONFIG_PCI_HOST_THUNDER_ECAM=yCONFIG_PCIE_ROCKCHIP=yCONFIG_PCIE_ROCKCHIP_HOST=yCONFIG_PCIE_ROCKCHIP_EP=yCONFIG_PCIE_MEDIATEK=yCONFIG_PCIE_MEDIATEK_GEN3=yCONFIG_PCIE_BRCMSTB=yCONFIG_PCI_LOONGSON=yCONFIG_PCIE_MICROCHIP_HOST=yCONFIG_PCIE_APPLE_MSI_DOORBELL_ADDR=0xfffff000CONFIG_PCIE_APPLE=yCONFIG_PCIE_MT7621=y
#
# DesignWare PCI Core Support
#CONFIG_PCIE_DW=yCONFIG_PCIE_DW_HOST=yCONFIG_PCIE_DW_EP=yCONFIG_PCI_DRA7XX=yCONFIG_PCI_DRA7XX_HOST=yCONFIG_PCI_DRA7XX_EP=yCONFIG_PCIE_DW_PLAT=yCONFIG_PCIE_DW_PLAT_HOST=yCONFIG_PCIE_DW_PLAT_EP=yCONFIG_PCI_EXYNOS=yCONFIG_PCI_IMX6=yCONFIG_PCIE_SPEAR13XX=yCONFIG_PCI_KEYSTONE=yCONFIG_PCI_KEYSTONE_HOST=yCONFIG_PCI_KEYSTONE_EP=yCONFIG_PCI_LAYERSCAPE=yCONFIG_PCI_LAYERSCAPE_EP=yCONFIG_PCI_HISI=yCONFIG_PCIE_QCOM=yCONFIG_PCIE_QCOM_EP=yCONFIG_PCIE_ARMADA_8K=yCONFIG_PCIE_ARTPEC6=yCONFIG_PCIE_ARTPEC6_HOST=yCONFIG_PCIE_ARTPEC6_EP=yCONFIG_PCIE_ROCKCHIP_DW_HOST=yCONFIG_PCIE_INTEL_GW=yCONFIG_PCIE_KEEMBAY=yCONFIG_PCIE_KEEMBAY_HOST=yCONFIG_PCIE_KEEMBAY_EP=yCONFIG_PCIE_KIRIN=yCONFIG_PCIE_HISI_STB=yCONFIG_PCI_MESON=yCONFIG_PCIE_TEGRA194=yCONFIG_PCIE_TEGRA194_HOST=yCONFIG_PCIE_TEGRA194_EP=yCONFIG_PCIE_VISCONTI_HOST=yCONFIG_PCIE_UNIPHIER=yCONFIG_PCIE_UNIPHIER_EP=yCONFIG_PCIE_AL=yCONFIG_PCIE_FU740=y
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#CONFIG_PCIE_MOBIVEIL=yCONFIG_PCIE_MOBIVEIL_HOST=yCONFIG_PCIE_MOBIVEIL_PLAT=yCONFIG_PCIE_LAYERSCAPE_GEN4=y
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#CONFIG_PCIE_CADENCE=yCONFIG_PCIE_CADENCE_HOST=yCONFIG_PCIE_CADENCE_EP=yCONFIG_PCIE_CADENCE_PLAT=yCONFIG_PCIE_CADENCE_PLAT_HOST=yCONFIG_PCIE_CADENCE_PLAT_EP=yCONFIG_PCI_J721E=yCONFIG_PCI_J721E_HOST=yCONFIG_PCI_J721E_EP=y
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=yCONFIG_PCI_ENDPOINT_CONFIGFS=yCONFIG_PCI_EPF_TEST=yCONFIG_PCI_EPF_NTB=yCONFIG_PCI_EPF_VNTB=y
# end of PCI Endpoint
#
# PCI switch controller drivers
#CONFIG_PCI_SW_SWITCHTEC=y
# end of PCI switch controller drivers
CONFIG_CXL_BUS=yCONFIG_CXL_PCI=yCONFIG_CXL_MEM_RAW_COMMANDS=yCONFIG_CXL_PMEM=yCONFIG_CXL_MEM=yCONFIG_CXL_PORT=yCONFIG_PCCARD=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=yCONFIG_YENTA_O2=yCONFIG_YENTA_RICOH=yCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=yCONFIG_PD6729=yCONFIG_I82092=yCONFIG_PCCARD_NONSTATIC=yCONFIG_RAPIDIO=yCONFIG_RAPIDIO_TSI721=yCONFIG_RAPIDIO_DISC_TIMEOUT=30CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS=yCONFIG_RAPIDIO_DMA_ENGINE=yCONFIG_RAPIDIO_DEBUG=yCONFIG_RAPIDIO_ENUM_BASIC=yCONFIG_RAPIDIO_CHMAN=yCONFIG_RAPIDIO_MPORT_CDEV=y
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_CPS_GEN2=yCONFIG_RAPIDIO_RXS_GEN3=y
# end of RapidIO Switch drivers
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=yCONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_DEVTMPFS_SAFE=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=yCONFIG_FW_LOADER_PAGED_BUF=yCONFIG_FW_LOADER_SYSFS=yCONFIG_EXTRA_FIRMWARE=""CONFIG_FW_LOADER_USER_HELPER=yCONFIG_FW_LOADER_USER_HELPER_FALLBACK=yCONFIG_FW_LOADER_COMPRESS=yCONFIG_FW_LOADER_COMPRESS_XZ=yCONFIG_FW_LOADER_COMPRESS_ZSTD=yCONFIG_FW_UPLOAD=y
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=yCONFIG_ALLOW_DEV_COREDUMP=yCONFIG_DEV_COREDUMP=yCONFIG_DEBUG_DRIVER=yCONFIG_DEBUG_DEVRES=yCONFIG_DEBUG_TEST_DRIVER_REMOVE=yCONFIG_PM_QOS_KUNIT_TEST=yCONFIG_TEST_ASYNC_DRIVER_PROBE=mCONFIG_DRIVER_PE_KUNIT_TEST=yCONFIG_SOC_BUS=yCONFIG_REGMAP=yCONFIG_REGMAP_AC97=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SLIMBUS=yCONFIG_REGMAP_SPI=yCONFIG_REGMAP_SPMI=yCONFIG_REGMAP_W1=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_REGMAP_SOUNDWIRE=yCONFIG_REGMAP_SOUNDWIRE_MBQ=yCONFIG_REGMAP_SCCB=yCONFIG_REGMAP_I3C=yCONFIG_REGMAP_SPI_AVMM=yCONFIG_DMA_SHARED_BUFFER=yCONFIG_DMA_FENCE_TRACE=y
# end of Generic Driver Options
#
# Bus devices
#CONFIG_ARM_INTEGRATOR_LM=yCONFIG_BT1_APB=yCONFIG_BT1_AXI=yCONFIG_MOXTET=yCONFIG_HISILICON_LPC=yCONFIG_INTEL_IXP4XX_EB=yCONFIG_QCOM_EBI2=yCONFIG_MHI_BUS=yCONFIG_MHI_BUS_DEBUG=yCONFIG_MHI_BUS_PCI_GENERIC=yCONFIG_MHI_BUS_EP=y
# end of Bus devices
CONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #CONFIG_ARM_SCMI_PROTOCOL=y CONFIG_ARM_SCMI_HAVE_TRANSPORT=y CONFIG_ARM_SCMI_HAVE_SHMEM=y CONFIG_ARM_SCMI_HAVE_MSG=y CONFIG_ARM_SCMI_TRANSPORT_MAILBOX=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE=y CONFIG_ARM_SCMI_POWER_DOMAIN=y CONFIG_ARM_SCMI_POWER_CONTROL=y
# end of ARM System Control and Management Interface Protocol
CONFIG_ARM_SCPI_PROTOCOL=yCONFIG_ARM_SCPI_POWER_DOMAIN=yCONFIG_FIRMWARE_MEMMAP=yCONFIG_MTK_ADSP_IPC=yCONFIG_QCOM_SCM=yCONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT=yCONFIG_TURRIS_MOX_RWTM=yCONFIG_BCM47XX_NVRAM=yCONFIG_BCM47XX_SPROM=yCONFIG_TEE_BNXT_FW=yCONFIG_FW_CS_DSP=yCONFIG_GOOGLE_FIRMWARE=yCONFIG_GOOGLE_CBMEM=yCONFIG_GOOGLE_COREBOOT_TABLE=yCONFIG_GOOGLE_MEMCONSOLE=yCONFIG_GOOGLE_MEMCONSOLE_COREBOOT=yCONFIG_GOOGLE_VPD=yCONFIG_IMX_DSP=yCONFIG_IMX_SCU=yCONFIG_IMX_SCU_PD=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_GNSS=yCONFIG_GNSS_SERIAL=yCONFIG_GNSS_MTK_SERIAL=yCONFIG_GNSS_SIRF_SERIAL=yCONFIG_GNSS_UBX_SERIAL=yCONFIG_GNSS_USB=yCONFIG_MTD=yCONFIG_MTD_TESTS=m
#
# Partition parsers
#CONFIG_MTD_AR7_PARTS=yCONFIG_MTD_BCM63XX_PARTS=yCONFIG_MTD_BRCM_U_BOOT=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_OF_PARTS=yCONFIG_MTD_OF_PARTS_BCM4908=yCONFIG_MTD_OF_PARTS_LINKSYS_NS=yCONFIG_MTD_PARSER_IMAGETAG=yCONFIG_MTD_PARSER_TPLINK_SAFELOADER=yCONFIG_MTD_PARSER_TRX=yCONFIG_MTD_SHARPSL_PARTS=yCONFIG_MTD_REDBOOT_PARTS=yCONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=yCONFIG_MTD_REDBOOT_PARTS_READONLY=yCONFIG_MTD_QCOMSMEM_PARTS=y
# end of Partition parsers
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=yCONFIG_MTD_BLOCK=y
#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK. #CONFIG_FTL=yCONFIG_NFTL=yCONFIG_NFTL_RW=yCONFIG_INFTL=yCONFIG_RFD_FTL=yCONFIG_SSFDC=yCONFIG_SM_FTL=yCONFIG_MTD_OOPS=yCONFIG_MTD_PSTORE=yCONFIG_MTD_SWAP=yCONFIG_MTD_PARTITIONED_MASTER=y
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=yCONFIG_MTD_JEDECPROBE=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_MTD_CFI_GEOMETRY=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_MAP_BANK_WIDTH_8=yCONFIG_MTD_MAP_BANK_WIDTH_16=yCONFIG_MTD_MAP_BANK_WIDTH_32=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_I4=yCONFIG_MTD_CFI_I8=yCONFIG_MTD_OTP=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_STAA=yCONFIG_MTD_CFI_UTIL=yCONFIG_MTD_RAM=yCONFIG_MTD_ROM=yCONFIG_MTD_ABSENT=y
# end of RAM/ROM/Flash chip drivers
#
# Mapping drivers for chip access
#CONFIG_MTD_COMPLEX_MAPPINGS=yCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_COMPAT=yCONFIG_MTD_PHYSMAP_START=0x8000000CONFIG_MTD_PHYSMAP_LEN=0CONFIG_MTD_PHYSMAP_BANKWIDTH=2CONFIG_MTD_PHYSMAP_OF=yCONFIG_MTD_PHYSMAP_BT1_ROM=yCONFIG_MTD_PHYSMAP_VERSATILE=yCONFIG_MTD_PHYSMAP_GEMINI=yCONFIG_MTD_PHYSMAP_GPIO_ADDR=yCONFIG_MTD_SC520CDP=yCONFIG_MTD_NETSC520=yCONFIG_MTD_TS5500=yCONFIG_MTD_PCI=yCONFIG_MTD_PCMCIA=yCONFIG_MTD_PCMCIA_ANONYMOUS=yCONFIG_MTD_INTEL_VR_NOR=yCONFIG_MTD_PLATRAM=y
# end of Mapping drivers for chip access
#
# Self-contained MTD device drivers
#CONFIG_MTD_PMC551=yCONFIG_MTD_PMC551_BUGFIX=yCONFIG_MTD_PMC551_DEBUG=yCONFIG_MTD_DATAFLASH=yCONFIG_MTD_DATAFLASH_WRITE_VERIFY=yCONFIG_MTD_DATAFLASH_OTP=yCONFIG_MTD_MCHP23K256=yCONFIG_MTD_MCHP48L640=yCONFIG_MTD_SPEAR_SMI=yCONFIG_MTD_SST25L=yCONFIG_MTD_SLRAM=yCONFIG_MTD_PHRAM=yCONFIG_MTD_MTDRAM=yCONFIG_MTDRAM_TOTAL_SIZE=4096CONFIG_MTDRAM_ERASE_SIZE=128CONFIG_MTD_BLOCK2MTD=y
#
# Disk-On-Chip Device Drivers
#CONFIG_MTD_DOCG3=yCONFIG_BCH_CONST_M=14CONFIG_BCH_CONST_T=4
# end of Self-contained MTD device drivers
#
# NAND
#CONFIG_MTD_NAND_CORE=yCONFIG_MTD_ONENAND=yCONFIG_MTD_ONENAND_VERIFY_WRITE=yCONFIG_MTD_ONENAND_GENERIC=yCONFIG_MTD_ONENAND_SAMSUNG=yCONFIG_MTD_ONENAND_OTP=yCONFIG_MTD_ONENAND_2X_PROGRAM=yCONFIG_MTD_RAW_NAND=y
#
# Raw/parallel NAND flash controllers
#CONFIG_MTD_NAND_DENALI=yCONFIG_MTD_NAND_DENALI_PCI=yCONFIG_MTD_NAND_DENALI_DT=yCONFIG_MTD_NAND_AMS_DELTA=yCONFIG_MTD_NAND_OMAP2=yCONFIG_MTD_NAND_OMAP_BCH=yCONFIG_MTD_NAND_OMAP_BCH_BUILD=yCONFIG_MTD_NAND_SHARPSL=yCONFIG_MTD_NAND_CAFE=yCONFIG_MTD_NAND_ATMEL=yCONFIG_MTD_NAND_MARVELL=yCONFIG_MTD_NAND_SLC_LPC32XX=yCONFIG_MTD_NAND_MLC_LPC32XX=yCONFIG_MTD_NAND_BRCMNAND=yCONFIG_MTD_NAND_BRCMNAND_BCM63XX=yCONFIG_MTD_NAND_BRCMNAND_BCMA=yCONFIG_MTD_NAND_BRCMNAND_BCMBCA=yCONFIG_MTD_NAND_BRCMNAND_BRCMSTB=yCONFIG_MTD_NAND_BRCMNAND_IPROC=yCONFIG_MTD_NAND_BCM47XXNFLASH=yCONFIG_MTD_NAND_OXNAS=yCONFIG_MTD_NAND_GPMI_NAND=yCONFIG_MTD_NAND_FSL_IFC=yCONFIG_MTD_NAND_VF610_NFC=yCONFIG_MTD_NAND_MXC=yCONFIG_MTD_NAND_SH_FLCTL=yCONFIG_MTD_NAND_DAVINCI=yCONFIG_MTD_NAND_TXX9NDFMC=yCONFIG_MTD_NAND_JZ4780=yCONFIG_MTD_NAND_INGENIC_ECC=yCONFIG_MTD_NAND_JZ4740_ECC=yCONFIG_MTD_NAND_JZ4725B_BCH=yCONFIG_MTD_NAND_JZ4780_BCH=yCONFIG_MTD_NAND_FSMC=yCONFIG_MTD_NAND_SUNXI=yCONFIG_MTD_NAND_HISI504=yCONFIG_MTD_NAND_QCOM=yCONFIG_MTD_NAND_MTK=yCONFIG_MTD_NAND_MXIC=yCONFIG_MTD_NAND_TEGRA=yCONFIG_MTD_NAND_STM32_FMC2=yCONFIG_MTD_NAND_MESON=yCONFIG_MTD_NAND_GPIO=yCONFIG_MTD_NAND_PLATFORM=yCONFIG_MTD_NAND_CADENCE=yCONFIG_MTD_NAND_ARASAN=yCONFIG_MTD_NAND_INTEL_LGM=yCONFIG_MTD_NAND_RENESAS=y
#
# Misc
#CONFIG_MTD_SM_COMMON=yCONFIG_MTD_NAND_NANDSIM=yCONFIG_MTD_NAND_RICOH=yCONFIG_MTD_NAND_DISKONCHIP=yCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED=yCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0CONFIG_MTD_NAND_DISKONCHIP_PROBE_HIGH=yCONFIG_MTD_NAND_DISKONCHIP_BBTWRITE=yCONFIG_MTD_SPI_NAND=y
#
# ECC engine support
#CONFIG_MTD_NAND_ECC=yCONFIG_MTD_NAND_ECC_SW_HAMMING=yCONFIG_MTD_NAND_ECC_SW_HAMMING_SMC=yCONFIG_MTD_NAND_ECC_SW_BCH=yCONFIG_MTD_NAND_ECC_MXIC=yCONFIG_MTD_NAND_ECC_MEDIATEK=y
# end of ECC engine support # end of NAND
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=yCONFIG_MTD_QINFO_PROBE=y
# end of LPDDR & LPDDR2 PCM memory drivers
CONFIG_MTD_SPI_NOR=yCONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_MTD_SPI_NOR_SWP_DISABLE is not setCONFIG_MTD_SPI_NOR_SWP_DISABLE_ON_VOLATILE=y
# CONFIG_MTD_SPI_NOR_SWP_KEEP is not setCONFIG_SPI_HISI_SFC=yCONFIG_SPI_NXP_SPIFI=yCONFIG_MTD_UBI=yCONFIG_MTD_UBI_WL_THRESHOLD=4096CONFIG_MTD_UBI_BEB_LIMIT=20CONFIG_MTD_UBI_FASTMAP=yCONFIG_MTD_UBI_GLUEBI=yCONFIG_MTD_UBI_BLOCK=yCONFIG_MTD_HYPERBUS=yCONFIG_HBMC_AM654=yCONFIG_DTC=yCONFIG_OF=yCONFIG_OF_UNITTEST=yCONFIG_OF_ALL_DTBS=yCONFIG_OF_FLATTREE=yCONFIG_OF_EARLY_FLATTREE=yCONFIG_OF_KOBJ=yCONFIG_OF_DYNAMIC=yCONFIG_OF_ADDRESS=yCONFIG_OF_IRQ=yCONFIG_OF_RESERVED_MEM=yCONFIG_OF_RESOLVE=yCONFIG_OF_OVERLAY=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_SERIAL=yCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_PC_PCMCIA=yCONFIG_PARPORT_AX88796=yCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=yCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=yCONFIG_CDROM=yCONFIG_PARIDE=y
#
# Parallel IDE high-level drivers
#CONFIG_PARIDE_PD=yCONFIG_PARIDE_PCD=yCONFIG_PARIDE_PF=yCONFIG_PARIDE_PT=yCONFIG_PARIDE_PG=y
#
# Parallel IDE protocol modules
#CONFIG_PARIDE_ATEN=yCONFIG_PARIDE_BPCK=yCONFIG_PARIDE_BPCK6=yCONFIG_PARIDE_COMM=yCONFIG_PARIDE_DSTR=yCONFIG_PARIDE_FIT2=yCONFIG_PARIDE_FIT3=yCONFIG_PARIDE_EPAT=yCONFIG_PARIDE_EPATC8=yCONFIG_PARIDE_EPIA=yCONFIG_PARIDE_FRIQ=yCONFIG_PARIDE_FRPW=yCONFIG_PARIDE_KBIC=yCONFIG_PARIDE_KTTI=yCONFIG_PARIDE_ON20=yCONFIG_PARIDE_ON26=yCONFIG_BLK_DEV_PCIESSD_MTIP32XX=yCONFIG_ZRAM=yCONFIG_ZRAM_DEF_COMP_LZORLE=y
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
# CONFIG_ZRAM_DEF_COMP_LZO is not set
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
# CONFIG_ZRAM_DEF_COMP_842 is not setCONFIG_ZRAM_DEF_COMP="lzo-rle"CONFIG_ZRAM_WRITEBACK=yCONFIG_ZRAM_MEMORY_TRACKING=yCONFIG_ZRAM_MULTI_COMP=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_LOOP_MIN_COUNT=8CONFIG_BLK_DEV_DRBD=yCONFIG_DRBD_FAULT_INJECTION=yCONFIG_BLK_DEV_NBD=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_ATA_OVER_ETH=yCONFIG_VIRTIO_BLK=yCONFIG_BLK_DEV_RBD=yCONFIG_BLK_DEV_UBLK=yCONFIG_BLK_DEV_RNBD=yCONFIG_BLK_DEV_RNBD_CLIENT=yCONFIG_BLK_DEV_RNBD_SERVER=y
#
# NVME Support
#CONFIG_NVME_COMMON=yCONFIG_NVME_CORE=yCONFIG_BLK_DEV_NVME=yCONFIG_NVME_MULTIPATH=yCONFIG_NVME_VERBOSE_ERRORS=yCONFIG_NVME_HWMON=yCONFIG_NVME_FABRICS=yCONFIG_NVME_RDMA=yCONFIG_NVME_FC=yCONFIG_NVME_TCP=yCONFIG_NVME_AUTH=yCONFIG_NVME_APPLE=yCONFIG_NVME_TARGET=yCONFIG_NVME_TARGET_PASSTHRU=yCONFIG_NVME_TARGET_LOOP=yCONFIG_NVME_TARGET_RDMA=yCONFIG_NVME_TARGET_FC=yCONFIG_NVME_TARGET_FCLOOP=yCONFIG_NVME_TARGET_TCP=yCONFIG_NVME_TARGET_AUTH=y
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=yCONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_AD525X_DPOT_SPI=yCONFIG_DUMMY_IRQ=yCONFIG_PHANTOM=yCONFIG_TIFM_CORE=yCONFIG_TIFM_7XX1=yCONFIG_ICS932S401=yCONFIG_ATMEL_SSC=yCONFIG_ENCLOSURE_SERVICES=yCONFIG_SMPRO_ERRMON=yCONFIG_SMPRO_MISC=yCONFIG_GEHC_ACHC=yCONFIG_HI6421V600_IRQ=yCONFIG_HP_ILO=yCONFIG_QCOM_COINCELL=yCONFIG_QCOM_FASTRPC=yCONFIG_APDS9802ALS=yCONFIG_ISL29003=yCONFIG_ISL29020=yCONFIG_SENSORS_TSL2550=yCONFIG_SENSORS_BH1770=yCONFIG_SENSORS_APDS990X=yCONFIG_HMC6352=yCONFIG_DS1682=yCONFIG_PCH_PHUB=yCONFIG_LATTICE_ECP3_CONFIG=yCONFIG_SRAM=yCONFIG_DW_XDATA_PCIE=yCONFIG_PCI_ENDPOINT_TEST=yCONFIG_XILINX_SDFEC=yCONFIG_MISC_RTSX=yCONFIG_HISI_HIKEY_USB=yCONFIG_OPEN_DICE=yCONFIG_VCPU_STALL_DETECTOR=yCONFIG_C2PORT=y
#
# EEPROM support
#CONFIG_EEPROM_AT24=yCONFIG_EEPROM_AT25=yCONFIG_EEPROM_LEGACY=yCONFIG_EEPROM_MAX6875=yCONFIG_EEPROM_93CX6=yCONFIG_EEPROM_93XX46=yCONFIG_EEPROM_IDT_89HPESX=yCONFIG_EEPROM_EE1004=y
# end of EEPROM support
CONFIG_CB710_CORE=yCONFIG_CB710_DEBUG=yCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #CONFIG_TI_ST=y
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_SPI=yCONFIG_SENSORS_LIS3_I2C=yCONFIG_ALTERA_STAPL=yCONFIG_ECHO=yCONFIG_BCM_VK=yCONFIG_BCM_VK_TTY=yCONFIG_MISC_ALCOR_PCI=yCONFIG_MISC_RTSX_PCI=yCONFIG_MISC_RTSX_USB=yCONFIG_HABANA_AI=yCONFIG_UACCE=yCONFIG_PVPANIC=yCONFIG_PVPANIC_MMIO=yCONFIG_PVPANIC_PCI=yCONFIG_GP_PCI1XXXX=y
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=yCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_CHR_DEV_SG=yCONFIG_BLK_DEV_BSG=yCONFIG_CHR_DEV_SCH=yCONFIG_SCSI_ENCLOSURE=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_FC_ATTRS=yCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=yCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=y
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=yCONFIG_ISCSI_BOOT_SYSFS=yCONFIG_SCSI_CXGB3_ISCSI=yCONFIG_SCSI_CXGB4_ISCSI=yCONFIG_SCSI_BNX2_ISCSI=yCONFIG_SCSI_BNX2X_FCOE=yCONFIG_BE2ISCSI=yCONFIG_BLK_DEV_3W_XXXX_RAID=yCONFIG_SCSI_HPSA=yCONFIG_SCSI_3W_9XXX=yCONFIG_SCSI_3W_SAS=yCONFIG_SCSI_ACARD=yCONFIG_SCSI_AACRAID=yCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC79XX=yCONFIG_AIC79XX_CMDS_PER_DEVICE=32CONFIG_AIC79XX_RESET_DELAY_MS=5000CONFIG_AIC79XX_DEBUG_ENABLE=yCONFIG_AIC79XX_DEBUG_MASK=0CONFIG_AIC79XX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC94XX=yCONFIG_AIC94XX_DEBUG=yCONFIG_SCSI_HISI_SAS=yCONFIG_SCSI_HISI_SAS_DEBUGFS_DEFAULT_ENABLE=yCONFIG_SCSI_MVSAS=yCONFIG_SCSI_MVSAS_DEBUG=yCONFIG_SCSI_MVSAS_TASKLET=yCONFIG_SCSI_MVUMI=yCONFIG_SCSI_ADVANSYS=yCONFIG_SCSI_ARCMSR=yCONFIG_SCSI_ESAS2R=yCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=yCONFIG_MEGARAID_MAILBOX=yCONFIG_MEGARAID_LEGACY=yCONFIG_MEGARAID_SAS=yCONFIG_SCSI_MPT3SAS=yCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128CONFIG_SCSI_MPT2SAS=yCONFIG_SCSI_MPI3MR=yCONFIG_SCSI_SMARTPQI=yCONFIG_SCSI_HPTIOP=yCONFIG_SCSI_BUSLOGIC=yCONFIG_SCSI_FLASHPOINT=yCONFIG_SCSI_MYRB=yCONFIG_SCSI_MYRS=yCONFIG_LIBFC=yCONFIG_LIBFCOE=yCONFIG_FCOE=yCONFIG_SCSI_SNIC=yCONFIG_SCSI_SNIC_DEBUG_FS=yCONFIG_SCSI_DMX3191D=yCONFIG_SCSI_FDOMAIN=yCONFIG_SCSI_FDOMAIN_PCI=yCONFIG_SCSI_IPS=yCONFIG_SCSI_INITIO=yCONFIG_SCSI_INIA100=yCONFIG_SCSI_PPA=yCONFIG_SCSI_IMM=yCONFIG_SCSI_IZIP_EPP16=yCONFIG_SCSI_IZIP_SLOW_CTR=yCONFIG_SCSI_STEX=yCONFIG_SCSI_SYM53C8XX_2=yCONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64CONFIG_SCSI_SYM53C8XX_MMIO=yCONFIG_SCSI_IPR=yCONFIG_SCSI_IPR_TRACE=yCONFIG_SCSI_IPR_DUMP=yCONFIG_SCSI_QLOGIC_1280=yCONFIG_SCSI_QLA_FC=yCONFIG_TCM_QLA2XXX=yCONFIG_TCM_QLA2XXX_DEBUG=yCONFIG_SCSI_QLA_ISCSI=yCONFIG_QEDI=yCONFIG_QEDF=yCONFIG_SCSI_EFCT=y
CONFIG_SCSI_DC395x=yCONFIG_SCSI_AM53C974=yCONFIG_SCSI_NSP32=yCONFIG_SCSI_WD719X=yCONFIG_SCSI_DEBUG=yCONFIG_SCSI_PMCRAID=yCONFIG_SCSI_PM8001=yCONFIG_SCSI_BFA_FC=yCONFIG_SCSI_VIRTIO=yCONFIG_SCSI_CHELSIO_FCOE=yCONFIG_SCSI_LOWLEVEL_PCMCIA=yCONFIG_PCMCIA_AHA152X=mCONFIG_PCMCIA_FDOMAIN=mCONFIG_PCMCIA_NINJA_SCSI=mCONFIG_PCMCIA_QLOGIC=mCONFIG_PCMCIA_SYM53C500=mCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
CONFIG_ATA=yCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=yCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=yCONFIG_AHCI_BRCM=yCONFIG_AHCI_DA850=yCONFIG_AHCI_DM816=yCONFIG_AHCI_DWC=yCONFIG_AHCI_ST=yCONFIG_AHCI_IMX=yCONFIG_AHCI_CEVA=yCONFIG_AHCI_MTK=yCONFIG_AHCI_MVEBU=yCONFIG_AHCI_SUNXI=yCONFIG_AHCI_TEGRA=yCONFIG_AHCI_XGENE=yCONFIG_AHCI_QORIQ=yCONFIG_SATA_FSL=yCONFIG_SATA_GEMINI=yCONFIG_SATA_AHCI_SEATTLE=yCONFIG_SATA_INIC162X=yCONFIG_SATA_ACARD_AHCI=yCONFIG_SATA_SIL24=yCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#CONFIG_PDC_ADMA=yCONFIG_SATA_QSTOR=yCONFIG_SATA_SX4=yCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=yCONFIG_SATA_DWC=yCONFIG_SATA_DWC_OLD_DMA=yCONFIG_SATA_HIGHBANK=yCONFIG_SATA_MV=yCONFIG_SATA_NV=yCONFIG_SATA_PROMISE=yCONFIG_SATA_RCAR=yCONFIG_SATA_SIL=yCONFIG_SATA_SIS=yCONFIG_SATA_SVW=yCONFIG_SATA_ULI=yCONFIG_SATA_VIA=yCONFIG_SATA_VITESSE=y
#
# PATA SFF controllers with BMDMA
#CONFIG_PATA_ALI=yCONFIG_PATA_AMD=yCONFIG_PATA_ARASAN_CF=yCONFIG_PATA_ARTOP=yCONFIG_PATA_ATIIXP=yCONFIG_PATA_ATP867X=yCONFIG_PATA_CMD64X=yCONFIG_PATA_CS5520=yCONFIG_PATA_CS5530=yCONFIG_PATA_CS5536=yCONFIG_PATA_CYPRESS=yCONFIG_PATA_EFAR=yCONFIG_PATA_FTIDE010=yCONFIG_PATA_HPT366=yCONFIG_PATA_HPT37X=yCONFIG_PATA_HPT3X2N=yCONFIG_PATA_HPT3X3=yCONFIG_PATA_HPT3X3_DMA=yCONFIG_PATA_IMX=yCONFIG_PATA_IT8213=yCONFIG_PATA_IT821X=yCONFIG_PATA_JMICRON=yCONFIG_PATA_MARVELL=yCONFIG_PATA_NETCELL=yCONFIG_PATA_NINJA32=yCONFIG_PATA_NS87415=yCONFIG_PATA_OLDPIIX=yCONFIG_PATA_OPTIDMA=yCONFIG_PATA_PDC2027X=yCONFIG_PATA_PDC_OLD=yCONFIG_PATA_RADISYS=yCONFIG_PATA_RDC=yCONFIG_PATA_SC1200=yCONFIG_PATA_SCH=yCONFIG_PATA_SERVERWORKS=yCONFIG_PATA_SIL680=yCONFIG_PATA_SIS=yCONFIG_PATA_TOSHIBA=yCONFIG_PATA_TRIFLEX=yCONFIG_PATA_VIA=yCONFIG_PATA_PXA=yCONFIG_PATA_WINBOND=y
#
# PIO-only SFF controllers
#CONFIG_PATA_CMD640_PCI=yCONFIG_PATA_IXP4XX_CF=yCONFIG_PATA_MPIIX=yCONFIG_PATA_NS87410=yCONFIG_PATA_OPTI=yCONFIG_PATA_PCMCIA=yCONFIG_PATA_PLATFORM=yCONFIG_PATA_OF_PLATFORM=yCONFIG_PATA_RZ1000=yCONFIG_PATA_SAMSUNG_CF=y
#
# Generic fallback / legacy drivers
#CONFIG_ATA_GENERIC=yCONFIG_PATA_LEGACY=yCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID10=yCONFIG_MD_RAID456=yCONFIG_MD_MULTIPATH=yCONFIG_MD_FAULTY=yCONFIG_MD_CLUSTER=yCONFIG_BCACHE=yCONFIG_BCACHE_DEBUG=y CONFIG_BCACHE_CLOSURES_DEBUG=y CONFIG_BCACHE_ASYNC_REGISTRATION=y CONFIG_BLK_DEV_DM_BUILTIN=yCONFIG_BLK_DEV_DM=yCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=y CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING=y CONFIG_DM_DEBUG_BLOCK_STACK_TRACING=y CONFIG_DM_BIO_PRISON=y CONFIG_DM_PERSISTENT_DATA=y CONFIG_DM_UNSTRIPED=yCONFIG_DM_CRYPT=yCONFIG_DM_SNAPSHOT=y CONFIG_DM_THIN_PROVISIONING=yCONFIG_DM_CACHE=yCONFIG_DM_CACHE_SMQ=yCONFIG_DM_WRITECACHE=yCONFIG_DM_ERA=yCONFIG_DM_CLONE=yCONFIG_DM_MIRROR=yCONFIG_DM_LOG_USERSPACE=yCONFIG_DM_RAID=yCONFIG_DM_ZERO=yCONFIG_DM_MULTIPATH=yCONFIG_DM_MULTIPATH_QL=y CONFIG_DM_MULTIPATH_ST=y CONFIG_DM_MULTIPATH_HST=y CONFIG_DM_MULTIPATH_IOA=yCONFIG_DM_DELAY=yCONFIG_DM_DUST=yCONFIG_DM_INIT=yCONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=yCONFIG_DM_VERITY=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING=y CONFIG_DM_VERITY_FEC=yCONFIG_DM_SWITCH=yCONFIG_DM_LOG_WRITES=yCONFIG_DM_INTEGRITY=yCONFIG_DM_ZONED=yCONFIG_DM_AUDIT=yCONFIG_TARGET_CORE=yCONFIG_TCM_IBLOCK=yCONFIG_TCM_FILEIO=yCONFIG_TCM_PSCSI=yCONFIG_TCM_USER2=yCONFIG_LOOPBACK_TARGET=yCONFIG_TCM_FC=yCONFIG_ISCSI_TARGET=y CONFIG_ISCSI_TARGET_CXGB4=yCONFIG_SBP_TARGET=yCONFIG_FUSION=yCONFIG_FUSION_SPI=yCONFIG_FUSION_FC=yCONFIG_FUSION_SAS=yCONFIG_FUSION_MAX_SGE=128CONFIG_FUSION_CTL=yCONFIG_FUSION_LAN=yCONFIG_FUSION_LOGGING=y
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=yCONFIG_FIREWIRE_OHCI=yCONFIG_FIREWIRE_SBP2=yCONFIG_FIREWIRE_NET=yCONFIG_FIREWIRE_NOSY=y
# end of IEEE 1394 (FireWire) support
CONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=yCONFIG_BONDING=yCONFIG_DUMMY=yCONFIG_WIREGUARD=yCONFIG_WIREGUARD_DEBUG=yCONFIG_EQUALIZER=yCONFIG_NET_FC=yCONFIG_IFB=yCONFIG_NET_TEAM=yCONFIG_NET_TEAM_MODE_BROADCAST=yCONFIG_NET_TEAM_MODE_ROUNDROBIN=yCONFIG_NET_TEAM_MODE_RANDOM=yCONFIG_NET_TEAM_MODE_ACTIVEBACKUP=yCONFIG_NET_TEAM_MODE_LOADBALANCE=yCONFIG_MACVLAN=yCONFIG_MACVTAP=yCONFIG_IPVLAN_L3S=yCONFIG_IPVLAN=yCONFIG_IPVTAP=yCONFIG_VXLAN=yCONFIG_GENEVE=yCONFIG_BAREUDP=yCONFIG_GTP=yCONFIG_AMT=yCONFIG_MACSEC=yCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_NTB_NETDEV=yCONFIG_RIONET=yCONFIG_RIONET_TX_SIZE=128CONFIG_RIONET_RX_SIZE=128CONFIG_TUN=yCONFIG_TAP=yCONFIG_TUN_VNET_CROSS_LE=yCONFIG_VETH=yCONFIG_VIRTIO_NET=yCONFIG_NLMON=yCONFIG_NET_VRF=yCONFIG_VSOCKMON=yCONFIG_MHI_NET=yCONFIG_SUNGEM_PHY=yCONFIG_ARCNET=yCONFIG_ARCNET_1201=yCONFIG_ARCNET_1051=yCONFIG_ARCNET_RAW=yCONFIG_ARCNET_CAP=y
CONFIG_ARCNET_COM90xx=y
CONFIG_ARCNET_COM90xxIO=yCONFIG_ARCNET_RIM_I=yCONFIG_ARCNET_COM20020=yCONFIG_ARCNET_COM20020_PCI=yCONFIG_ARCNET_COM20020_CS=yCONFIG_ATM_DRIVERS=yCONFIG_ATM_DUMMY=yCONFIG_ATM_TCP=yCONFIG_ATM_LANAI=yCONFIG_ATM_ENI=yCONFIG_ATM_ENI_DEBUG=yCONFIG_ATM_ENI_TUNE_BURST=yCONFIG_ATM_ENI_BURST_TX_16W=yCONFIG_ATM_ENI_BURST_TX_8W=yCONFIG_ATM_ENI_BURST_TX_4W=yCONFIG_ATM_ENI_BURST_TX_2W=yCONFIG_ATM_ENI_BURST_RX_16W=yCONFIG_ATM_ENI_BURST_RX_8W=yCONFIG_ATM_ENI_BURST_RX_4W=yCONFIG_ATM_ENI_BURST_RX_2W=yCONFIG_ATM_NICSTAR=yCONFIG_ATM_NICSTAR_USE_SUNI=yCONFIG_ATM_NICSTAR_USE_IDT77105=yCONFIG_ATM_IDT77252=yCONFIG_ATM_IDT77252_DEBUG=yCONFIG_ATM_IDT77252_RCV_ALL=yCONFIG_ATM_IDT77252_USE_SUNI=yCONFIG_ATM_IA=yCONFIG_ATM_IA_DEBUG=yCONFIG_ATM_FORE200E=yCONFIG_ATM_FORE200E_USE_TASKLET=yCONFIG_ATM_FORE200E_TX_RETRY=16CONFIG_ATM_FORE200E_DEBUG=0CONFIG_ATM_HE=yCONFIG_ATM_HE_USE_SUNI=yCONFIG_ATM_SOLOS=yCONFIG_CAIF_DRIVERS=yCONFIG_CAIF_TTY=yCONFIG_CAIF_VIRTIO=y
#
# Distributed Switch Architecture drivers
#CONFIG_B53=yCONFIG_B53_SPI_DRIVER=yCONFIG_B53_MDIO_DRIVER=yCONFIG_B53_MMAP_DRIVER=yCONFIG_B53_SRAB_DRIVER=yCONFIG_B53_SERDES=yCONFIG_NET_DSA_BCM_SF2=yCONFIG_NET_DSA_LOOP=yCONFIG_NET_DSA_HIRSCHMANN_HELLCREEK=yCONFIG_NET_DSA_LANTIQ_GSWIP=yCONFIG_NET_DSA_MT7530=yCONFIG_NET_DSA_MV88E6060=yCONFIG_NET_DSA_MICROCHIP_KSZ_COMMON=yCONFIG_NET_DSA_MICROCHIP_KSZ9477_I2C=yCONFIG_NET_DSA_MICROCHIP_KSZ_SPI=yCONFIG_NET_DSA_MICROCHIP_KSZ8863_SMI=yCONFIG_NET_DSA_MV88E6XXX=yCONFIG_NET_DSA_MV88E6XXX_PTP=yCONFIG_NET_DSA_MSCC_FELIX=yCONFIG_NET_DSA_MSCC_SEVILLE=yCONFIG_NET_DSA_AR9331=yCONFIG_NET_DSA_QCA8K=yCONFIG_NET_DSA_SJA1105=yCONFIG_NET_DSA_SJA1105_PTP=yCONFIG_NET_DSA_SJA1105_TAS=yCONFIG_NET_DSA_SJA1105_VL=yCONFIG_NET_DSA_XRS700X=yCONFIG_NET_DSA_XRS700X_I2C=yCONFIG_NET_DSA_XRS700X_MDIO=yCONFIG_NET_DSA_REALTEK=yCONFIG_NET_DSA_REALTEK_MDIO=yCONFIG_NET_DSA_REALTEK_SMI=yCONFIG_NET_DSA_REALTEK_RTL8365MB=yCONFIG_NET_DSA_REALTEK_RTL8366RB=yCONFIG_NET_DSA_SMSC_LAN9303=yCONFIG_NET_DSA_SMSC_LAN9303_I2C=yCONFIG_NET_DSA_SMSC_LAN9303_MDIO=yCONFIG_NET_DSA_VITESSE_VSC73XX=yCONFIG_NET_DSA_VITESSE_VSC73XX_SPI=yCONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM=y
# end of Distributed Switch Architecture drivers
CONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_NET_VENDOR_3COM=yCONFIG_PCMCIA_3C574=yCONFIG_PCMCIA_3C589=yCONFIG_TYPHOON=yCONFIG_NET_VENDOR_ACTIONS=yCONFIG_OWL_EMAC=yCONFIG_NET_VENDOR_ADAPTEC=yCONFIG_ADAPTEC_STARFIRE=yCONFIG_NET_VENDOR_AGERE=yCONFIG_ET131X=yCONFIG_NET_VENDOR_ALACRITECH=yCONFIG_SLICOSS=yCONFIG_NET_VENDOR_ALTEON=yCONFIG_ACENIC=yCONFIG_ACENIC_OMIT_TIGON_I=yCONFIG_ALTERA_TSE=yCONFIG_NET_VENDOR_AMAZON=yCONFIG_NET_VENDOR_AMD=yCONFIG_AMD8111_ETH=yCONFIG_PCNET32=yCONFIG_PCMCIA_NMCLAN=yCONFIG_AMD_XGBE=yCONFIG_AMD_XGBE_DCB=yCONFIG_NET_XGENE=yCONFIG_NET_XGENE_V2=yCONFIG_NET_VENDOR_AQUANTIA=yCONFIG_AQTION=yCONFIG_NET_VENDOR_ARC=yCONFIG_ARC_EMAC_CORE=yCONFIG_ARC_EMAC=yCONFIG_EMAC_ROCKCHIP=yCONFIG_NET_VENDOR_ASIX=yCONFIG_SPI_AX88796C=yCONFIG_SPI_AX88796C_COMPRESSION=yCONFIG_NET_VENDOR_ATHEROS=yCONFIG_ATL2=yCONFIG_ATL1=yCONFIG_ATL1E=yCONFIG_ATL1C=yCONFIG_ALX=yCONFIG_CX_ECAT=yCONFIG_NET_VENDOR_BROADCOM=yCONFIG_B44=yCONFIG_B44_PCI_AUTOSELECT=yCONFIG_B44_PCICORE_AUTOSELECT=yCONFIG_B44_PCI=yCONFIG_BCM4908_ENET=yCONFIG_BCMGENET=yCONFIG_BNX2=yCONFIG_CNIC=yCONFIG_TIGON3=yCONFIG_TIGON3_HWMON=yCONFIG_BNX2X=yCONFIG_BNX2X_SRIOV=yCONFIG_BGMAC=yCONFIG_BGMAC_BCMA=yCONFIG_BGMAC_PLATFORM=yCONFIG_SYSTEMPORT=yCONFIG_BNXT=yCONFIG_BNXT_SRIOV=yCONFIG_BNXT_FLOWER_OFFLOAD=yCONFIG_BNXT_DCB=yCONFIG_BNXT_HWMON=yCONFIG_NET_VENDOR_CADENCE=yCONFIG_MACB=yCONFIG_MACB_USE_HWSTAMP=yCONFIG_MACB_PCI=yCONFIG_NET_CALXEDA_XGMAC=yCONFIG_NET_VENDOR_CAVIUM=yCONFIG_NET_VENDOR_CHELSIO=yCONFIG_CHELSIO_T1=yCONFIG_CHELSIO_T1_1G=yCONFIG_CHELSIO_T3=yCONFIG_CHELSIO_T4=yCONFIG_CHELSIO_T4_DCB=yCONFIG_CHELSIO_T4_FCOE=yCONFIG_CHELSIO_T4VF=yCONFIG_CHELSIO_LIB=yCONFIG_CHELSIO_INLINE_CRYPTO=yCONFIG_CRYPTO_DEV_CHELSIO_TLS=yCONFIG_CHELSIO_IPSEC_INLINE=yCONFIG_CHELSIO_TLS_DEVICE=yCONFIG_NET_VENDOR_CIRRUS=y
CONFIG_CS89x0=y
CONFIG_CS89x0_PLATFORM=yCONFIG_EP93XX_ETH=yCONFIG_NET_VENDOR_CISCO=yCONFIG_ENIC=yCONFIG_NET_VENDOR_CORTINA=yCONFIG_GEMINI_ETHERNET=yCONFIG_NET_VENDOR_DAVICOM=yCONFIG_DM9000=yCONFIG_DM9000_FORCE_SIMPLE_PHY_POLL=yCONFIG_DM9051=yCONFIG_DNET=yCONFIG_NET_VENDOR_DEC=yCONFIG_NET_TULIP=yCONFIG_DE2104X=yCONFIG_DE2104X_DSL=0CONFIG_TULIP=yCONFIG_TULIP_MWI=yCONFIG_TULIP_MMIO=yCONFIG_TULIP_NAPI=yCONFIG_TULIP_NAPI_HW_MITIGATION=yCONFIG_WINBOND_840=yCONFIG_DM9102=yCONFIG_ULI526X=yCONFIG_PCMCIA_XIRCOM=yCONFIG_NET_VENDOR_DLINK=yCONFIG_DL2K=yCONFIG_SUNDANCE=yCONFIG_SUNDANCE_MMIO=yCONFIG_NET_VENDOR_EMULEX=yCONFIG_BE2NET=yCONFIG_BE2NET_HWMON=yCONFIG_BE2NET_BE2=yCONFIG_BE2NET_BE3=yCONFIG_BE2NET_LANCER=yCONFIG_BE2NET_SKYHAWK=yCONFIG_NET_VENDOR_ENGLEDER=yCONFIG_TSNEP=yCONFIG_TSNEP_SELFTESTS=yCONFIG_NET_VENDOR_EZCHIP=yCONFIG_EZCHIP_NPS_MANAGEMENT_ENET=yCONFIG_NET_VENDOR_FARADAY=yCONFIG_FTMAC100=yCONFIG_FTGMAC100=yCONFIG_NET_VENDOR_FREESCALE=yCONFIG_FEC=yCONFIG_FSL_FMAN=yCONFIG_FSL_PQ_MDIO=yCONFIG_FSL_XGMAC_MDIO=yCONFIG_GIANFAR=yCONFIG_FSL_DPAA2_SWITCH=yCONFIG_FSL_ENETC=yCONFIG_FSL_ENETC_VF=yCONFIG_FSL_ENETC_IERB=yCONFIG_FSL_ENETC_MDIO=yCONFIG_FSL_ENETC_PTP_CLOCK=yCONFIG_FSL_ENETC_QOS=yCONFIG_NET_VENDOR_FUJITSU=yCONFIG_PCMCIA_FMVJ18X=yCONFIG_NET_VENDOR_FUNGIBLE=yCONFIG_FUN_CORE=yCONFIG_FUN_ETH=yCONFIG_NET_VENDOR_GOOGLE=yCONFIG_NET_VENDOR_HISILICON=yCONFIG_HIX5HD2_GMAC=yCONFIG_HISI_FEMAC=yCONFIG_HIP04_ETH=yCONFIG_HI13X1_GMAC=yCONFIG_HNS_MDIO=yCONFIG_HNS=yCONFIG_HNS_DSAF=yCONFIG_HNS_ENET=yCONFIG_HNS3=yCONFIG_HNS3_HCLGE=yCONFIG_HNS3_DCB=yCONFIG_HNS3_HCLGEVF=yCONFIG_NET_VENDOR_HUAWEI=yCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=yCONFIG_E100=yCONFIG_E1000=yCONFIG_E1000E=yCONFIG_IGB=yCONFIG_IGB_HWMON=yCONFIG_IGBVF=yCONFIG_IXGB=yCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=yCONFIG_IXGBE_DCB=yCONFIG_IXGBE_IPSEC=yCONFIG_IXGBEVF=yCONFIG_IXGBEVF_IPSEC=yCONFIG_I40E=yCONFIG_I40E_DCB=yCONFIG_IAVF=yCONFIG_I40EVF=yCONFIG_ICE=yCONFIG_ICE_SWITCHDEV=yCONFIG_FM10K=yCONFIG_IGC=yCONFIG_NET_VENDOR_WANGXUN=yCONFIG_LIBWX=yCONFIG_NGBE=yCONFIG_TXGBE=yCONFIG_JME=yCONFIG_KORINA=yCONFIG_NET_VENDOR_ADI=yCONFIG_ADIN1110=yCONFIG_NET_VENDOR_LITEX=yCONFIG_LITEX_LITEETH=yCONFIG_NET_VENDOR_MARVELL=yCONFIG_MV643XX_ETH=yCONFIG_MVMDIO=yCONFIG_MVNETA_BM_ENABLE=yCONFIG_MVNETA=yCONFIG_MVNETA_BM=yCONFIG_MVPP2=yCONFIG_MVPP2_PTP=yCONFIG_PXA168_ETH=yCONFIG_SKGE=yCONFIG_SKGE_DEBUG=yCONFIG_SKGE_GENESIS=yCONFIG_SKY2=yCONFIG_SKY2_DEBUG=yCONFIG_PRESTERA=yCONFIG_PRESTERA_PCI=yCONFIG_NET_VENDOR_MEDIATEK=yCONFIG_NET_MEDIATEK_SOC_WED=yCONFIG_NET_MEDIATEK_SOC=yCONFIG_NET_MEDIATEK_STAR_EMAC=yCONFIG_NET_VENDOR_MELLANOX=yCONFIG_MLX4_EN=yCONFIG_MLX4_EN_DCB=yCONFIG_MLX4_CORE=yCONFIG_MLX4_DEBUG=yCONFIG_MLX4_CORE_GEN2=yCONFIG_MLX5_CORE=yCONFIG_MLX5_FPGA=yCONFIG_MLX5_CORE_EN=yCONFIG_MLX5_EN_ARFS=yCONFIG_MLX5_EN_RXNFC=yCONFIG_MLX5_MPFS=yCONFIG_MLX5_ESWITCH=yCONFIG_MLX5_BRIDGE=yCONFIG_MLX5_CLS_ACT=yCONFIG_MLX5_TC_CT=yCONFIG_MLX5_TC_SAMPLE=yCONFIG_MLX5_CORE_EN_DCB=yCONFIG_MLX5_CORE_IPOIB=yCONFIG_MLX5_EN_MACSEC=yCONFIG_MLX5_EN_IPSEC=yCONFIG_MLX5_EN_TLS=yCONFIG_MLX5_SW_STEERING=yCONFIG_MLX5_SF=yCONFIG_MLX5_SF_MANAGER=yCONFIG_MLXSW_CORE=yCONFIG_MLXSW_CORE_HWMON=yCONFIG_MLXSW_CORE_THERMAL=yCONFIG_MLXSW_PCI=yCONFIG_MLXSW_I2C=yCONFIG_MLXSW_SPECTRUM=yCONFIG_MLXSW_SPECTRUM_DCB=yCONFIG_MLXSW_MINIMAL=yCONFIG_MLXFW=yCONFIG_MLXBF_GIGE=yCONFIG_NET_VENDOR_MICREL=yCONFIG_KS8842=yCONFIG_KS8851=yCONFIG_KS8851_MLL=yCONFIG_KSZ884X_PCI=yCONFIG_NET_VENDOR_MICROCHIP=yCONFIG_ENC28J60=yCONFIG_ENC28J60_WRITEVERIFY=yCONFIG_ENCX24J600=yCONFIG_LAN743X=yCONFIG_LAN966X_SWITCH=yCONFIG_SPARX5_SWITCH=yCONFIG_SPARX5_DCB=yCONFIG_VCAP=yCONFIG_VCAP_KUNIT_TEST=yCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_MSCC_OCELOT_SWITCH_LIB=yCONFIG_MSCC_OCELOT_SWITCH=yCONFIG_NET_VENDOR_MICROSOFT=yCONFIG_NET_VENDOR_MYRI=yCONFIG_MYRI10GE=yCONFIG_NET_VENDOR_NI=yCONFIG_NI_XGE_MANAGEMENT_ENET=yCONFIG_NET_VENDOR_NATSEMI=yCONFIG_NATSEMI=yCONFIG_NS83820=yCONFIG_NET_VENDOR_NETERION=yCONFIG_S2IO=yCONFIG_NET_VENDOR_NETRONOME=yCONFIG_NFP=yCONFIG_NFP_APP_FLOWER=yCONFIG_NFP_APP_ABM_NIC=yCONFIG_NFP_NET_IPSEC=yCONFIG_NFP_DEBUG=yCONFIG_NET_VENDOR_8390=yCONFIG_PCMCIA_AXNET=yCONFIG_AX88796=yCONFIG_AX88796_93CX6=yCONFIG_NE2K_PCI=yCONFIG_PCMCIA_PCNET=yCONFIG_NET_VENDOR_NVIDIA=yCONFIG_FORCEDETH=yCONFIG_LPC_ENET=yCONFIG_NET_VENDOR_OKI=yCONFIG_PCH_GBE=yCONFIG_ETHOC=yCONFIG_NET_VENDOR_PACKET_ENGINES=yCONFIG_HAMACHI=yCONFIG_YELLOWFIN=yCONFIG_NET_VENDOR_PENSANDO=yCONFIG_NET_VENDOR_QLOGIC=yCONFIG_QLA3XXX=yCONFIG_QLCNIC=yCONFIG_QLCNIC_SRIOV=yCONFIG_QLCNIC_DCB=yCONFIG_QLCNIC_HWMON=yCONFIG_NETXEN_NIC=yCONFIG_QED=yCONFIG_QED_LL2=yCONFIG_QED_SRIOV=yCONFIG_QEDE=yCONFIG_QED_ISCSI=yCONFIG_QED_FCOE=yCONFIG_QED_OOO=yCONFIG_NET_VENDOR_BROCADE=yCONFIG_BNA=yCONFIG_NET_VENDOR_QUALCOMM=yCONFIG_QCA7000=yCONFIG_QCA7000_SPI=yCONFIG_QCA7000_UART=yCONFIG_QCOM_EMAC=yCONFIG_RMNET=yCONFIG_NET_VENDOR_RDC=yCONFIG_R6040=yCONFIG_NET_VENDOR_REALTEK=yCONFIG_8139CP=yCONFIG_8139TOO=yCONFIG_8139TOO_PIO=yCONFIG_8139TOO_TUNE_TWISTER=yCONFIG_8139TOO_8129=yCONFIG_8139_OLD_RX_RESET=yCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_SH_ETH=yCONFIG_RAVB=yCONFIG_RENESAS_ETHER_SWITCH=yCONFIG_NET_VENDOR_ROCKER=yCONFIG_ROCKER=yCONFIG_NET_VENDOR_SAMSUNG=yCONFIG_SXGBE_ETH=yCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SILAN=yCONFIG_SC92031=yCONFIG_NET_VENDOR_SIS=yCONFIG_SIS900=yCONFIG_SIS190=yCONFIG_NET_VENDOR_SOLARFLARE=yCONFIG_SFC=yCONFIG_SFC_MTD=yCONFIG_SFC_MCDI_MON=yCONFIG_SFC_SRIOV=yCONFIG_SFC_MCDI_LOGGING=yCONFIG_SFC_FALCON=yCONFIG_SFC_FALCON_MTD=yCONFIG_SFC_SIENA=yCONFIG_SFC_SIENA_MTD=yCONFIG_SFC_SIENA_MCDI_MON=yCONFIG_SFC_SIENA_SRIOV=yCONFIG_SFC_SIENA_MCDI_LOGGING=yCONFIG_NET_VENDOR_SMSC=yCONFIG_SMC91X=yCONFIG_PCMCIA_SMC91C92=yCONFIG_EPIC100=yCONFIG_SMSC911X=yCONFIG_SMSC9420=yCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_SNI_AVE=yCONFIG_SNI_NETSEC=yCONFIG_NET_VENDOR_STMICRO=yCONFIG_STMMAC_ETH=yCONFIG_STMMAC_SELFTESTS=yCONFIG_STMMAC_PLATFORM=yCONFIG_DWMAC_DWC_QOS_ETH=yCONFIG_DWMAC_GENERIC=yCONFIG_DWMAC_ANARION=yCONFIG_DWMAC_INGENIC=yCONFIG_DWMAC_IPQ806X=yCONFIG_DWMAC_LPC18XX=yCONFIG_DWMAC_MEDIATEK=yCONFIG_DWMAC_MESON=yCONFIG_DWMAC_OXNAS=yCONFIG_DWMAC_QCOM_ETHQOS=yCONFIG_DWMAC_ROCKCHIP=yCONFIG_DWMAC_SOCFPGA=yCONFIG_DWMAC_STI=yCONFIG_DWMAC_STM32=yCONFIG_DWMAC_SUNXI=yCONFIG_DWMAC_SUN8I=yCONFIG_DWMAC_IMX8=yCONFIG_DWMAC_INTEL_PLAT=yCONFIG_DWMAC_TEGRA=yCONFIG_DWMAC_VISCONTI=yCONFIG_DWMAC_LOONGSON=yCONFIG_STMMAC_PCI=yCONFIG_NET_VENDOR_SUN=yCONFIG_HAPPYMEAL=yCONFIG_SUNGEM=yCONFIG_CASSINI=yCONFIG_NIU=yCONFIG_NET_VENDOR_SUNPLUS=yCONFIG_SP7021_EMAC=yCONFIG_NET_VENDOR_SYNOPSYS=yCONFIG_DWC_XLGMAC=yCONFIG_DWC_XLGMAC_PCI=yCONFIG_NET_VENDOR_TEHUTI=yCONFIG_TEHUTI=yCONFIG_NET_VENDOR_TI=yCONFIG_TI_DAVINCI_EMAC=yCONFIG_TI_DAVINCI_MDIO=yCONFIG_TI_CPSW_PHY_SEL=yCONFIG_TI_CPSW=yCONFIG_TI_CPSW_SWITCHDEV=yCONFIG_TI_CPTS=yCONFIG_TLAN=yCONFIG_NET_VENDOR_VERTEXCOM=yCONFIG_MSE102X=yCONFIG_NET_VENDOR_VIA=yCONFIG_VIA_RHINE=yCONFIG_VIA_RHINE_MMIO=yCONFIG_VIA_VELOCITY=yCONFIG_NET_VENDOR_WIZNET=yCONFIG_WIZNET_W5100=yCONFIG_WIZNET_W5300=y
# CONFIG_WIZNET_BUS_DIRECT is not set
# CONFIG_WIZNET_BUS_INDIRECT is not setCONFIG_WIZNET_BUS_ANY=yCONFIG_WIZNET_W5100_SPI=yCONFIG_NET_VENDOR_XILINX=yCONFIG_XILINX_EMACLITE=yCONFIG_XILINX_AXI_EMAC=yCONFIG_XILINX_LL_TEMAC=yCONFIG_NET_VENDOR_XIRCOM=yCONFIG_PCMCIA_XIRC2PS=yCONFIG_FDDI=yCONFIG_DEFXX=yCONFIG_SKFP=yCONFIG_HIPPI=yCONFIG_ROADRUNNER=yCONFIG_ROADRUNNER_LARGE_RINGS=yCONFIG_QCOM_IPA=yCONFIG_PHYLINK=yCONFIG_PHYLIB=yCONFIG_SWPHY=yCONFIG_LED_TRIGGER_PHY=yCONFIG_FIXED_PHY=yCONFIG_SFP=y
#
# MII PHY device drivers
#CONFIG_AMD_PHY=yCONFIG_MESON_GXL_PHY=yCONFIG_ADIN_PHY=yCONFIG_ADIN1100_PHY=yCONFIG_AQUANTIA_PHY=yCONFIG_AX88796B_PHY=yCONFIG_BROADCOM_PHY=yCONFIG_BCM54140_PHY=yCONFIG_BCM63XX_PHY=yCONFIG_BCM7XXX_PHY=yCONFIG_BCM84881_PHY=yCONFIG_BCM87XX_PHY=yCONFIG_BCM_CYGNUS_PHY=yCONFIG_BCM_NET_PHYLIB=yCONFIG_BCM_NET_PHYPTP=yCONFIG_CICADA_PHY=yCONFIG_CORTINA_PHY=yCONFIG_DAVICOM_PHY=yCONFIG_ICPLUS_PHY=yCONFIG_LXT_PHY=yCONFIG_INTEL_XWAY_PHY=yCONFIG_LSI_ET1011C_PHY=yCONFIG_MARVELL_PHY=yCONFIG_MARVELL_10G_PHY=yCONFIG_MARVELL_88X2222_PHY=yCONFIG_MAXLINEAR_GPHY=yCONFIG_MEDIATEK_GE_PHY=yCONFIG_MICREL_PHY=yCONFIG_MICROCHIP_PHY=yCONFIG_MICROCHIP_T1_PHY=yCONFIG_MICROSEMI_PHY=yCONFIG_MOTORCOMM_PHY=yCONFIG_NATIONAL_PHY=yCONFIG_NXP_C45_TJA11XX_PHY=yCONFIG_NXP_TJA11XX_PHY=yCONFIG_AT803X_PHY=yCONFIG_QSEMI_PHY=yCONFIG_REALTEK_PHY=yCONFIG_RENESAS_PHY=yCONFIG_ROCKCHIP_PHY=yCONFIG_SMSC_PHY=yCONFIG_STE10XP=yCONFIG_TERANETICS_PHY=yCONFIG_DP83822_PHY=yCONFIG_DP83TC811_PHY=yCONFIG_DP83848_PHY=yCONFIG_DP83867_PHY=yCONFIG_DP83869_PHY=yCONFIG_DP83TD510_PHY=yCONFIG_VITESSE_PHY=yCONFIG_XILINX_GMII2RGMII=yCONFIG_MICREL_KS8995MA=yCONFIG_PSE_CONTROLLER=yCONFIG_PSE_REGULATOR=yCONFIG_CAN_DEV=yCONFIG_CAN_VCAN=yCONFIG_CAN_VXCAN=yCONFIG_CAN_NETLINK=yCONFIG_CAN_CALC_BITTIMING=yCONFIG_CAN_RX_OFFLOAD=yCONFIG_CAN_AT91=yCONFIG_CAN_CAN327=yCONFIG_CAN_FLEXCAN=yCONFIG_CAN_GRCAN=yCONFIG_CAN_JANZ_ICAN3=yCONFIG_CAN_KVASER_PCIEFD=yCONFIG_CAN_SLCAN=yCONFIG_CAN_SUN4I=yCONFIG_CAN_XILINXCAN=yCONFIG_CAN_C_CAN=yCONFIG_CAN_C_CAN_PLATFORM=yCONFIG_CAN_C_CAN_PCI=yCONFIG_CAN_CC770=yCONFIG_CAN_CC770_ISA=yCONFIG_CAN_CC770_PLATFORM=yCONFIG_CAN_CTUCANFD=yCONFIG_CAN_CTUCANFD_PCI=yCONFIG_CAN_CTUCANFD_PLATFORM=yCONFIG_CAN_IFI_CANFD=yCONFIG_CAN_M_CAN=yCONFIG_CAN_M_CAN_PCI=yCONFIG_CAN_M_CAN_PLATFORM=yCONFIG_CAN_M_CAN_TCAN4X5X=yCONFIG_CAN_PEAK_PCIEFD=yCONFIG_CAN_RCAR=yCONFIG_CAN_RCAR_CANFD=yCONFIG_CAN_SJA1000=yCONFIG_CAN_EMS_PCI=yCONFIG_CAN_EMS_PCMCIA=yCONFIG_CAN_F81601=yCONFIG_CAN_KVASER_PCI=yCONFIG_CAN_PEAK_PCI=yCONFIG_CAN_PEAK_PCIEC=yCONFIG_CAN_PLX_PCI=yCONFIG_CAN_SJA1000_ISA=yCONFIG_CAN_SJA1000_PLATFORM=yCONFIG_CAN_SOFTING=yCONFIG_CAN_SOFTING_CS=y
#
# CAN SPI interfaces
#CONFIG_CAN_HI311X=yCONFIG_CAN_MCP251X=yCONFIG_CAN_MCP251XFD=yCONFIG_CAN_MCP251XFD_SANITY=y
# end of CAN SPI interfaces
#
# CAN USB interfaces
#CONFIG_CAN_8DEV_USB=yCONFIG_CAN_EMS_USB=yCONFIG_CAN_ESD_USB=yCONFIG_CAN_ETAS_ES58X=yCONFIG_CAN_GS_USB=yCONFIG_CAN_KVASER_USB=yCONFIG_CAN_MCBA_USB=yCONFIG_CAN_PEAK_USB=yCONFIG_CAN_UCAN=y
# end of CAN USB interfaces
CONFIG_CAN_DEBUG_DEVICES=y
#
# MCTP Device Drivers
#CONFIG_MCTP_SERIAL=yCONFIG_MCTP_TRANSPORT_I2C=y
# end of MCTP Device Drivers
CONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_OF_MDIO=yCONFIG_MDIO_DEVRES=yCONFIG_MDIO_SUN4I=yCONFIG_MDIO_XGENE=yCONFIG_MDIO_ASPEED=yCONFIG_MDIO_BITBANG=yCONFIG_MDIO_BCM_IPROC=yCONFIG_MDIO_BCM_UNIMAC=yCONFIG_MDIO_CAVIUM=yCONFIG_MDIO_GPIO=yCONFIG_MDIO_HISI_FEMAC=yCONFIG_MDIO_I2C=yCONFIG_MDIO_MVUSB=yCONFIG_MDIO_MSCC_MIIM=yCONFIG_MDIO_MOXART=yCONFIG_MDIO_OCTEON=yCONFIG_MDIO_IPQ4019=yCONFIG_MDIO_IPQ8064=y
#
# MDIO Multiplexers
#CONFIG_MDIO_BUS_MUX=yCONFIG_MDIO_BUS_MUX_MESON_G12A=yCONFIG_MDIO_BUS_MUX_BCM6368=yCONFIG_MDIO_BUS_MUX_BCM_IPROC=yCONFIG_MDIO_BUS_MUX_GPIO=yCONFIG_MDIO_BUS_MUX_MULTIPLEXER=yCONFIG_MDIO_BUS_MUX_MMIOREG=y
#
# PCS device drivers
#CONFIG_PCS_XPCS=yCONFIG_PCS_LYNX=yCONFIG_PCS_RZN1_MIIC=yCONFIG_PCS_ALTERA_TSE=y
# end of PCS device drivers
CONFIG_PLIP=yCONFIG_PPP=yCONFIG_PPP_BSDCOMP=yCONFIG_PPP_DEFLATE=yCONFIG_PPP_FILTER=yCONFIG_PPP_MPPE=yCONFIG_PPP_MULTILINK=yCONFIG_PPPOATM=yCONFIG_PPPOE=yCONFIG_PPTP=yCONFIG_PPPOL2TP=yCONFIG_PPP_ASYNC=yCONFIG_PPP_SYNC_TTY=yCONFIG_SLIP=yCONFIG_SLHC=yCONFIG_SLIP_COMPRESSED=yCONFIG_SLIP_SMART=yCONFIG_SLIP_MODE_SLIP6=yCONFIG_USB_NET_DRIVERS=yCONFIG_USB_CATC=yCONFIG_USB_KAWETH=yCONFIG_USB_PEGASUS=yCONFIG_USB_RTL8150=yCONFIG_USB_RTL8152=yCONFIG_USB_LAN78XX=yCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=yCONFIG_USB_NET_CDCETHER=yCONFIG_USB_NET_CDC_EEM=yCONFIG_USB_NET_CDC_NCM=yCONFIG_USB_NET_HUAWEI_CDC_NCM=yCONFIG_USB_NET_CDC_MBIM=yCONFIG_USB_NET_DM9601=yCONFIG_USB_NET_SR9700=yCONFIG_USB_NET_SR9800=yCONFIG_USB_NET_SMSC75XX=yCONFIG_USB_NET_SMSC95XX=yCONFIG_USB_NET_GL620A=yCONFIG_USB_NET_NET1080=yCONFIG_USB_NET_PLUSB=yCONFIG_USB_NET_MCS7830=yCONFIG_USB_NET_RNDIS_HOST=yCONFIG_USB_NET_CDC_SUBSET_ENABLE=yCONFIG_USB_NET_CDC_SUBSET=yCONFIG_USB_ALI_M5632=yCONFIG_USB_AN2720=yCONFIG_USB_BELKIN=yCONFIG_USB_ARMLINUX=yCONFIG_USB_EPSON2888=yCONFIG_USB_KC2190=yCONFIG_USB_NET_ZAURUS=yCONFIG_USB_NET_CX82310_ETH=yCONFIG_USB_NET_KALMIA=yCONFIG_USB_NET_QMI_WWAN=yCONFIG_USB_HSO=yCONFIG_USB_NET_INT51X1=yCONFIG_USB_CDC_PHONET=yCONFIG_USB_IPHETH=yCONFIG_USB_SIERRA_NET=yCONFIG_USB_VL600=yCONFIG_USB_NET_CH9200=yCONFIG_USB_NET_AQC111=yCONFIG_USB_RTL8153_ECM=yCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=yCONFIG_ADM8211=yCONFIG_ATH_COMMON=yCONFIG_WLAN_VENDOR_ATH=yCONFIG_ATH_DEBUG=yCONFIG_ATH_TRACEPOINTS=yCONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS=yCONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING=yCONFIG_ATH5K=yCONFIG_ATH5K_DEBUG=yCONFIG_ATH5K_TRACER=yCONFIG_ATH5K_PCI=yCONFIG_ATH5K_TEST_CHANNELS=yCONFIG_ATH9K_HW=yCONFIG_ATH9K_COMMON=yCONFIG_ATH9K_COMMON_DEBUG=yCONFIG_ATH9K_DFS_DEBUGFS=yCONFIG_ATH9K_BTCOEX_SUPPORT=yCONFIG_ATH9K=yCONFIG_ATH9K_PCI=yCONFIG_ATH9K_AHB=yCONFIG_ATH9K_DEBUGFS=yCONFIG_ATH9K_STATION_STATISTICS=yCONFIG_ATH9K_TX99=yCONFIG_ATH9K_DFS_CERTIFIED=yCONFIG_ATH9K_DYNACK=yCONFIG_ATH9K_WOW=yCONFIG_ATH9K_RFKILL=yCONFIG_ATH9K_CHANNEL_CONTEXT=yCONFIG_ATH9K_PCOEM=yCONFIG_ATH9K_PCI_NO_EEPROM=yCONFIG_ATH9K_HTC=yCONFIG_ATH9K_HTC_DEBUGFS=yCONFIG_ATH9K_HWRNG=yCONFIG_ATH9K_COMMON_SPECTRAL=yCONFIG_CARL9170=yCONFIG_CARL9170_LEDS=yCONFIG_CARL9170_DEBUGFS=yCONFIG_CARL9170_WPC=yCONFIG_CARL9170_HWRNG=yCONFIG_ATH6KL=yCONFIG_ATH6KL_SDIO=yCONFIG_ATH6KL_USB=yCONFIG_ATH6KL_DEBUG=yCONFIG_ATH6KL_TRACING=yCONFIG_ATH6KL_REGDOMAIN=yCONFIG_AR5523=yCONFIG_WIL6210=yCONFIG_WIL6210_ISR_COR=yCONFIG_WIL6210_TRACING=yCONFIG_WIL6210_DEBUGFS=yCONFIG_ATH10K=yCONFIG_ATH10K_CE=yCONFIG_ATH10K_PCI=yCONFIG_ATH10K_AHB=yCONFIG_ATH10K_SDIO=yCONFIG_ATH10K_USB=yCONFIG_ATH10K_SNOC=yCONFIG_ATH10K_DEBUG=yCONFIG_ATH10K_DEBUGFS=yCONFIG_ATH10K_SPECTRAL=yCONFIG_ATH10K_TRACING=yCONFIG_ATH10K_DFS_CERTIFIED=yCONFIG_WCN36XX=yCONFIG_WCN36XX_DEBUGFS=yCONFIG_ATH11K=yCONFIG_ATH11K_AHB=yCONFIG_ATH11K_PCI=yCONFIG_ATH11K_DEBUG=yCONFIG_ATH11K_DEBUGFS=yCONFIG_ATH11K_TRACING=yCONFIG_ATH11K_SPECTRAL=yCONFIG_WLAN_VENDOR_ATMEL=yCONFIG_ATMEL=yCONFIG_PCI_ATMEL=yCONFIG_PCMCIA_ATMEL=yCONFIG_AT76C50X_USB=yCONFIG_WLAN_VENDOR_BROADCOM=yCONFIG_B43=yCONFIG_B43_BCMA=yCONFIG_B43_SSB=yCONFIG_B43_BUSES_BCMA_AND_SSB=y
# CONFIG_B43_BUSES_BCMA is not set
# CONFIG_B43_BUSES_SSB is not setCONFIG_B43_PCI_AUTOSELECT=yCONFIG_B43_PCICORE_AUTOSELECT=yCONFIG_B43_SDIO=yCONFIG_B43_BCMA_PIO=yCONFIG_B43_PIO=yCONFIG_B43_PHY_G=yCONFIG_B43_PHY_N=yCONFIG_B43_PHY_LP=yCONFIG_B43_PHY_HT=yCONFIG_B43_LEDS=yCONFIG_B43_HWRNG=yCONFIG_B43_DEBUG=yCONFIG_B43LEGACY=yCONFIG_B43LEGACY_PCI_AUTOSELECT=yCONFIG_B43LEGACY_PCICORE_AUTOSELECT=yCONFIG_B43LEGACY_LEDS=yCONFIG_B43LEGACY_HWRNG=yCONFIG_B43LEGACY_DEBUG=yCONFIG_B43LEGACY_DMA=yCONFIG_B43LEGACY_PIO=yCONFIG_B43LEGACY_DMA_AND_PIO_MODE=y
# CONFIG_B43LEGACY_DMA_MODE is not set
# CONFIG_B43LEGACY_PIO_MODE is not setCONFIG_BRCMUTIL=yCONFIG_BRCMSMAC=yCONFIG_BRCMSMAC_LEDS=yCONFIG_BRCMFMAC=yCONFIG_BRCMFMAC_PROTO_BCDC=yCONFIG_BRCMFMAC_PROTO_MSGBUF=yCONFIG_BRCMFMAC_SDIO=yCONFIG_BRCMFMAC_USB=yCONFIG_BRCMFMAC_PCIE=yCONFIG_BRCM_TRACING=yCONFIG_BRCMDBG=yCONFIG_WLAN_VENDOR_CISCO=yCONFIG_AIRO_CS=yCONFIG_WLAN_VENDOR_INTEL=yCONFIG_IPW2100=yCONFIG_IPW2100_MONITOR=yCONFIG_IPW2100_DEBUG=yCONFIG_IPW2200=yCONFIG_IPW2200_MONITOR=yCONFIG_IPW2200_RADIOTAP=yCONFIG_IPW2200_PROMISCUOUS=yCONFIG_IPW2200_QOS=yCONFIG_IPW2200_DEBUG=yCONFIG_LIBIPW=yCONFIG_LIBIPW_DEBUG=yCONFIG_IWLEGACY=yCONFIG_IWL4965=yCONFIG_IWL3945=y
#
# iwl3945 / iwl4965 Debugging Options # CONFIG_IWLEGACY_DEBUG=y CONFIG_IWLEGACY_DEBUGFS=y # end of iwl3945 / iwl4965 Debugging Options
CONFIG_IWLWIFI=yCONFIG_IWLWIFI_LEDS=yCONFIG_IWLDVM=yCONFIG_IWLMVM=y
#
# Debugging Options
#CONFIG_IWLWIFI_DEBUG=yCONFIG_IWLWIFI_DEBUGFS=yCONFIG_IWLWIFI_DEVICE_TRACING=y
# end of Debugging Options
CONFIG_WLAN_VENDOR_INTERSIL=yCONFIG_HOSTAP=yCONFIG_HOSTAP_FIRMWARE=yCONFIG_HOSTAP_FIRMWARE_NVRAM=yCONFIG_HOSTAP_PLX=yCONFIG_HOSTAP_PCI=yCONFIG_HOSTAP_CS=yCONFIG_HERMES=yCONFIG_HERMES_PRISM=yCONFIG_HERMES_CACHE_FW_ON_INIT=yCONFIG_PLX_HERMES=yCONFIG_TMD_HERMES=yCONFIG_NORTEL_HERMES=yCONFIG_PCI_HERMES=yCONFIG_ORINOCO_USB=yCONFIG_P54_COMMON=yCONFIG_P54_USB=yCONFIG_P54_PCI=yCONFIG_P54_SPI=yCONFIG_P54_SPI_DEFAULT_EEPROM=yCONFIG_P54_LEDS=yCONFIG_WLAN_VENDOR_MARVELL=yCONFIG_LIBERTAS=yCONFIG_LIBERTAS_USB=yCONFIG_LIBERTAS_SDIO=yCONFIG_LIBERTAS_SPI=yCONFIG_LIBERTAS_DEBUG=yCONFIG_LIBERTAS_MESH=yCONFIG_LIBERTAS_THINFIRM=yCONFIG_LIBERTAS_THINFIRM_DEBUG=yCONFIG_LIBERTAS_THINFIRM_USB=yCONFIG_MWIFIEX=yCONFIG_MWIFIEX_SDIO=yCONFIG_MWIFIEX_PCIE=yCONFIG_MWIFIEX_USB=yCONFIG_MWL8K=yCONFIG_WLAN_VENDOR_MEDIATEK=yCONFIG_MT7601U=yCONFIG_MT76_CORE=yCONFIG_MT76_LEDS=yCONFIG_MT76_USB=yCONFIG_MT76_SDIO=y
CONFIG_MT76x02_LIB=y
CONFIG_MT76x02_USB=yCONFIG_MT76_CONNAC_LIB=y
CONFIG_MT76x0_COMMON=y
CONFIG_MT76x0U=y
CONFIG_MT76x0E=y
CONFIG_MT76x2_COMMON=y
CONFIG_MT76x2E=y
CONFIG_MT76x2U=yCONFIG_MT7603E=yCONFIG_MT7615_COMMON=yCONFIG_MT7615E=yCONFIG_MT7622_WMAC=yCONFIG_MT7663_USB_SDIO_COMMON=yCONFIG_MT7663U=yCONFIG_MT7663S=yCONFIG_MT7915E=yCONFIG_MT7986_WMAC=yCONFIG_MT7921_COMMON=yCONFIG_MT7921E=yCONFIG_MT7921S=yCONFIG_MT7921U=yCONFIG_MT7996E=yCONFIG_WLAN_VENDOR_MICROCHIP=yCONFIG_WILC1000=yCONFIG_WILC1000_SDIO=yCONFIG_WILC1000_SPI=yCONFIG_WILC1000_HW_OOB_INTR=yCONFIG_WLAN_VENDOR_PURELIFI=yCONFIG_PLFXLC=yCONFIG_WLAN_VENDOR_RALINK=yCONFIG_RT2X00=yCONFIG_RT2400PCI=yCONFIG_RT2500PCI=yCONFIG_RT61PCI=yCONFIG_RT2800PCI=yCONFIG_RT2800PCI_RT33XX=yCONFIG_RT2800PCI_RT35XX=yCONFIG_RT2800PCI_RT53XX=yCONFIG_RT2800PCI_RT3290=yCONFIG_RT2500USB=yCONFIG_RT73USB=yCONFIG_RT2800USB=yCONFIG_RT2800USB_RT33XX=yCONFIG_RT2800USB_RT35XX=yCONFIG_RT2800USB_RT3573=yCONFIG_RT2800USB_RT53XX=yCONFIG_RT2800USB_RT55XX=yCONFIG_RT2800USB_UNKNOWN=yCONFIG_RT2800_LIB=yCONFIG_RT2800_LIB_MMIO=yCONFIG_RT2X00_LIB_MMIO=yCONFIG_RT2X00_LIB_PCI=yCONFIG_RT2X00_LIB_USB=yCONFIG_RT2X00_LIB=yCONFIG_RT2X00_LIB_FIRMWARE=yCONFIG_RT2X00_LIB_CRYPTO=yCONFIG_RT2X00_LIB_LEDS=yCONFIG_RT2X00_LIB_DEBUGFS=yCONFIG_RT2X00_DEBUG=yCONFIG_WLAN_VENDOR_REALTEK=yCONFIG_RTL8180=yCONFIG_RTL8187=yCONFIG_RTL8187_LEDS=yCONFIG_RTL_CARDS=yCONFIG_RTL8192CE=yCONFIG_RTL8192SE=yCONFIG_RTL8192DE=yCONFIG_RTL8723AE=yCONFIG_RTL8723BE=yCONFIG_RTL8188EE=yCONFIG_RTL8192EE=yCONFIG_RTL8821AE=yCONFIG_RTL8192CU=yCONFIG_RTLWIFI=yCONFIG_RTLWIFI_PCI=yCONFIG_RTLWIFI_USB=yCONFIG_RTLWIFI_DEBUG=yCONFIG_RTL8192C_COMMON=yCONFIG_RTL8723_COMMON=yCONFIG_RTLBTCOEXIST=yCONFIG_RTL8XXXU=yCONFIG_RTL8XXXU_UNTESTED=yCONFIG_RTW88=yCONFIG_RTW88_CORE=yCONFIG_RTW88_PCI=yCONFIG_RTW88_USB=yCONFIG_RTW88_8822B=yCONFIG_RTW88_8822C=yCONFIG_RTW88_8723D=yCONFIG_RTW88_8821C=yCONFIG_RTW88_8822BE=yCONFIG_RTW88_8822BU=yCONFIG_RTW88_8822CE=yCONFIG_RTW88_8822CU=yCONFIG_RTW88_8723DE=yCONFIG_RTW88_8723DU=yCONFIG_RTW88_8821CE=yCONFIG_RTW88_8821CU=yCONFIG_RTW88_DEBUG=yCONFIG_RTW88_DEBUGFS=yCONFIG_RTW89=yCONFIG_RTW89_CORE=yCONFIG_RTW89_PCI=yCONFIG_RTW89_8852A=yCONFIG_RTW89_8852B=yCONFIG_RTW89_8852C=yCONFIG_RTW89_8852AE=yCONFIG_RTW89_8852BE=yCONFIG_RTW89_8852CE=yCONFIG_RTW89_DEBUG=yCONFIG_RTW89_DEBUGMSG=yCONFIG_RTW89_DEBUGFS=yCONFIG_WLAN_VENDOR_RSI=yCONFIG_RSI_91X=yCONFIG_RSI_DEBUGFS=yCONFIG_RSI_SDIO=yCONFIG_RSI_USB=yCONFIG_RSI_COEX=yCONFIG_WLAN_VENDOR_SILABS=yCONFIG_WFX=yCONFIG_WLAN_VENDOR_ST=yCONFIG_CW1200=yCONFIG_CW1200_WLAN_SDIO=yCONFIG_CW1200_WLAN_SPI=yCONFIG_WLAN_VENDOR_TI=yCONFIG_WL1251=yCONFIG_WL1251_SPI=yCONFIG_WL1251_SDIO=yCONFIG_WL12XX=yCONFIG_WL18XX=yCONFIG_WLCORE=yCONFIG_WLCORE_SPI=yCONFIG_WLCORE_SDIO=yCONFIG_WLAN_VENDOR_ZYDAS=yCONFIG_USB_ZD1201=yCONFIG_ZD1211RW=yCONFIG_ZD1211RW_DEBUG=yCONFIG_WLAN_VENDOR_QUANTENNA=yCONFIG_QTNFMAC=yCONFIG_QTNFMAC_PCIE=yCONFIG_PCMCIA_RAYCS=yCONFIG_PCMCIA_WL3501=yCONFIG_MAC80211_HWSIM=yCONFIG_USB_NET_RNDIS_WLAN=yCONFIG_VIRT_WIFI=yCONFIG_WAN=yCONFIG_HDLC=yCONFIG_HDLC_RAW=yCONFIG_HDLC_RAW_ETH=yCONFIG_HDLC_CISCO=yCONFIG_HDLC_FR=yCONFIG_HDLC_PPP=yCONFIG_HDLC_X25=yCONFIG_PCI200SYN=yCONFIG_WANXL=yCONFIG_PC300TOO=yCONFIG_FARSYNC=yCONFIG_FSL_UCC_HDLC=yCONFIG_SLIC_DS26522=yCONFIG_LAPBETHER=yCONFIG_IEEE802154_DRIVERS=yCONFIG_IEEE802154_FAKELB=yCONFIG_IEEE802154_AT86RF230=yCONFIG_IEEE802154_MRF24J40=yCONFIG_IEEE802154_CC2520=yCONFIG_IEEE802154_ATUSB=yCONFIG_IEEE802154_ADF7242=yCONFIG_IEEE802154_CA8210=yCONFIG_IEEE802154_CA8210_DEBUGFS=yCONFIG_IEEE802154_MCR20A=yCONFIG_IEEE802154_HWSIM=y
#
# Wireless WAN
#CONFIG_WWAN=yCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=yCONFIG_MHI_WWAN_CTRL=yCONFIG_MHI_WWAN_MBIM=yCONFIG_QCOM_BAM_DMUX=yCONFIG_RPMSG_WWAN_CTRL=yCONFIG_IOSM=yCONFIG_MTK_T7XX=y
# end of Wireless WAN
CONFIG_VMXNET3=yCONFIG_USB4_NET=yCONFIG_NETDEVSIM=yCONFIG_NET_FAILOVER=yCONFIG_ISDN=yCONFIG_ISDN_CAPI=yCONFIG_CAPI_TRACE=yCONFIG_ISDN_CAPI_MIDDLEWARE=yCONFIG_MISDN=yCONFIG_MISDN_DSP=yCONFIG_MISDN_L1OIP=y
#
# mISDN hardware drivers
#CONFIG_MISDN_HFCPCI=yCONFIG_MISDN_HFCMULTI=yCONFIG_MISDN_HFCUSB=yCONFIG_MISDN_AVMFRITZ=yCONFIG_MISDN_SPEEDFAX=yCONFIG_MISDN_INFINEON=yCONFIG_MISDN_W6692=yCONFIG_MISDN_NETJET=yCONFIG_MISDN_HDLC=yCONFIG_MISDN_IPAC=yCONFIG_MISDN_ISAR=y
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=yCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=yCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADC=yCONFIG_KEYBOARD_ADP5520=yCONFIG_KEYBOARD_ADP5588=yCONFIG_KEYBOARD_ADP5589=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_QT1050=yCONFIG_KEYBOARD_QT1070=yCONFIG_KEYBOARD_QT2160=yCONFIG_KEYBOARD_CLPS711X=yCONFIG_KEYBOARD_DLINK_DIR685=yCONFIG_KEYBOARD_LKKBD=yCONFIG_KEYBOARD_EP93XX=yCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=yCONFIG_KEYBOARD_TCA6416=yCONFIG_KEYBOARD_TCA8418=yCONFIG_KEYBOARD_MATRIX=yCONFIG_KEYBOARD_LM8323=yCONFIG_KEYBOARD_LM8333=yCONFIG_KEYBOARD_LPC32XX=yCONFIG_KEYBOARD_MAX7359=yCONFIG_KEYBOARD_MCS=yCONFIG_KEYBOARD_MPR121=yCONFIG_KEYBOARD_SNVS_PWRKEY=yCONFIG_KEYBOARD_IMX=yCONFIG_KEYBOARD_IMX_SC_KEY=yCONFIG_KEYBOARD_NEWTON=yCONFIG_KEYBOARD_NOMADIK=yCONFIG_KEYBOARD_TEGRA=yCONFIG_KEYBOARD_OPENCORES=yCONFIG_KEYBOARD_PINEPHONE=y
CONFIG_KEYBOARD_PXA27x=yCONFIG_KEYBOARD_PMIC8XXX=yCONFIG_KEYBOARD_SAMSUNG=yCONFIG_KEYBOARD_GOLDFISH_EVENTS=yCONFIG_KEYBOARD_STOWAWAY=yCONFIG_KEYBOARD_ST_KEYSCAN=yCONFIG_KEYBOARD_SUNKBD=yCONFIG_KEYBOARD_SH_KEYSC=yCONFIG_KEYBOARD_STMPE=yCONFIG_KEYBOARD_IQS62X=yCONFIG_KEYBOARD_OMAP4=yCONFIG_KEYBOARD_SPEAR=yCONFIG_KEYBOARD_TC3589X=yCONFIG_KEYBOARD_TM2_TOUCHKEY=yCONFIG_KEYBOARD_TWL4030=yCONFIG_KEYBOARD_XTKBD=yCONFIG_KEYBOARD_CROS_EC=yCONFIG_KEYBOARD_CAP11XX=yCONFIG_KEYBOARD_BCM=yCONFIG_KEYBOARD_MT6779=yCONFIG_KEYBOARD_MTK_PMIC=yCONFIG_KEYBOARD_CYPRESS_SF=yCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=yCONFIG_MOUSE_PS2_TOUCHKIT=yCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=yCONFIG_MOUSE_APPLETOUCH=yCONFIG_MOUSE_BCM5974=yCONFIG_MOUSE_CYAPA=yCONFIG_MOUSE_ELAN_I2C=yCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_MOUSE_SYNAPTICS_I2C=yCONFIG_MOUSE_SYNAPTICS_USB=yCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=yCONFIG_JOYSTICK_A3D=yCONFIG_JOYSTICK_ADC=yCONFIG_JOYSTICK_ADI=yCONFIG_JOYSTICK_COBRA=yCONFIG_JOYSTICK_GF2K=yCONFIG_JOYSTICK_GRIP=yCONFIG_JOYSTICK_GRIP_MP=yCONFIG_JOYSTICK_GUILLEMOT=yCONFIG_JOYSTICK_INTERACT=yCONFIG_JOYSTICK_SIDEWINDER=yCONFIG_JOYSTICK_TMDC=yCONFIG_JOYSTICK_IFORCE=yCONFIG_JOYSTICK_IFORCE_USB=yCONFIG_JOYSTICK_IFORCE_232=yCONFIG_JOYSTICK_WARRIOR=yCONFIG_JOYSTICK_MAGELLAN=yCONFIG_JOYSTICK_SPACEORB=yCONFIG_JOYSTICK_SPACEBALL=yCONFIG_JOYSTICK_STINGER=yCONFIG_JOYSTICK_TWIDJOY=yCONFIG_JOYSTICK_ZHENHUA=yCONFIG_JOYSTICK_DB9=yCONFIG_JOYSTICK_GAMECON=yCONFIG_JOYSTICK_TURBOGRAFX=yCONFIG_JOYSTICK_AS5011=yCONFIG_JOYSTICK_JOYDUMP=yCONFIG_JOYSTICK_XPAD=yCONFIG_JOYSTICK_XPAD_FF=yCONFIG_JOYSTICK_XPAD_LEDS=yCONFIG_JOYSTICK_WALKERA0701=yCONFIG_JOYSTICK_PSXPAD_SPI=yCONFIG_JOYSTICK_PSXPAD_SPI_FF=yCONFIG_JOYSTICK_PXRC=yCONFIG_JOYSTICK_QWIIC=yCONFIG_JOYSTICK_FSIA6B=yCONFIG_JOYSTICK_SENSEHAT=yCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=yCONFIG_TABLET_USB_AIPTEK=yCONFIG_TABLET_USB_HANWANG=yCONFIG_TABLET_USB_KBTAB=yCONFIG_TABLET_USB_PEGASUS=yCONFIG_TABLET_SERIAL_WACOM4=yCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_88PM860X=yCONFIG_TOUCHSCREEN_ADS7846=yCONFIG_TOUCHSCREEN_AD7877=yCONFIG_TOUCHSCREEN_AD7879=yCONFIG_TOUCHSCREEN_AD7879_I2C=yCONFIG_TOUCHSCREEN_AD7879_SPI=yCONFIG_TOUCHSCREEN_ADC=yCONFIG_TOUCHSCREEN_AR1021_I2C=yCONFIG_TOUCHSCREEN_ATMEL_MXT=yCONFIG_TOUCHSCREEN_ATMEL_MXT_T37=yCONFIG_TOUCHSCREEN_AUO_PIXCIR=yCONFIG_TOUCHSCREEN_BU21013=yCONFIG_TOUCHSCREEN_BU21029=yCONFIG_TOUCHSCREEN_CHIPONE_ICN8318=yCONFIG_TOUCHSCREEN_CY8CTMA140=yCONFIG_TOUCHSCREEN_CY8CTMG110=yCONFIG_TOUCHSCREEN_CYTTSP_CORE=yCONFIG_TOUCHSCREEN_CYTTSP_I2C=yCONFIG_TOUCHSCREEN_CYTTSP_SPI=yCONFIG_TOUCHSCREEN_CYTTSP4_CORE=yCONFIG_TOUCHSCREEN_CYTTSP4_I2C=yCONFIG_TOUCHSCREEN_CYTTSP4_SPI=yCONFIG_TOUCHSCREEN_CYTTSP5=yCONFIG_TOUCHSCREEN_DA9034=yCONFIG_TOUCHSCREEN_DA9052=yCONFIG_TOUCHSCREEN_DYNAPRO=yCONFIG_TOUCHSCREEN_HAMPSHIRE=yCONFIG_TOUCHSCREEN_EETI=yCONFIG_TOUCHSCREEN_EGALAX=yCONFIG_TOUCHSCREEN_EGALAX_SERIAL=yCONFIG_TOUCHSCREEN_EXC3000=yCONFIG_TOUCHSCREEN_FUJITSU=yCONFIG_TOUCHSCREEN_GOODIX=yCONFIG_TOUCHSCREEN_HIDEEP=yCONFIG_TOUCHSCREEN_HYCON_HY46XX=yCONFIG_TOUCHSCREEN_HYNITRON_CSTXXX=yCONFIG_TOUCHSCREEN_ILI210X=yCONFIG_TOUCHSCREEN_ILITEK=yCONFIG_TOUCHSCREEN_IPROC=yCONFIG_TOUCHSCREEN_S6SY761=yCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_EKTF2127=yCONFIG_TOUCHSCREEN_ELAN=yCONFIG_TOUCHSCREEN_ELO=yCONFIG_TOUCHSCREEN_WACOM_W8001=yCONFIG_TOUCHSCREEN_WACOM_I2C=yCONFIG_TOUCHSCREEN_MAX11801=yCONFIG_TOUCHSCREEN_MCS5000=yCONFIG_TOUCHSCREEN_MMS114=yCONFIG_TOUCHSCREEN_MELFAS_MIP4=yCONFIG_TOUCHSCREEN_MSG2638=yCONFIG_TOUCHSCREEN_MTOUCH=yCONFIG_TOUCHSCREEN_IMAGIS=yCONFIG_TOUCHSCREEN_IMX6UL_TSC=yCONFIG_TOUCHSCREEN_INEXIO=yCONFIG_TOUCHSCREEN_MK712=yCONFIG_TOUCHSCREEN_PENMOUNT=yCONFIG_TOUCHSCREEN_EDT_FT5X06=yCONFIG_TOUCHSCREEN_RASPBERRYPI_FW=yCONFIG_TOUCHSCREEN_MIGOR=yCONFIG_TOUCHSCREEN_TOUCHRIGHT=yCONFIG_TOUCHSCREEN_TOUCHWIN=yCONFIG_TOUCHSCREEN_TI_AM335X_TSC=yCONFIG_TOUCHSCREEN_UCB1400=yCONFIG_TOUCHSCREEN_PIXCIR=yCONFIG_TOUCHSCREEN_WDT87XX_I2C=yCONFIG_TOUCHSCREEN_WM831X=yCONFIG_TOUCHSCREEN_WM97XX=yCONFIG_TOUCHSCREEN_WM9705=yCONFIG_TOUCHSCREEN_WM9712=yCONFIG_TOUCHSCREEN_WM9713=yCONFIG_TOUCHSCREEN_USB_COMPOSITE=yCONFIG_TOUCHSCREEN_MXS_LRADC=yCONFIG_TOUCHSCREEN_MX25=yCONFIG_TOUCHSCREEN_MC13783=yCONFIG_TOUCHSCREEN_USB_EGALAX=yCONFIG_TOUCHSCREEN_USB_PANJIT=yCONFIG_TOUCHSCREEN_USB_3M=yCONFIG_TOUCHSCREEN_USB_ITM=yCONFIG_TOUCHSCREEN_USB_ETURBO=yCONFIG_TOUCHSCREEN_USB_GUNZE=yCONFIG_TOUCHSCREEN_USB_DMC_TSC10=yCONFIG_TOUCHSCREEN_USB_IRTOUCH=yCONFIG_TOUCHSCREEN_USB_IDEALTEK=yCONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=yCONFIG_TOUCHSCREEN_USB_GOTOP=yCONFIG_TOUCHSCREEN_USB_JASTEC=yCONFIG_TOUCHSCREEN_USB_ELO=yCONFIG_TOUCHSCREEN_USB_E2I=yCONFIG_TOUCHSCREEN_USB_ZYTRONIC=yCONFIG_TOUCHSCREEN_USB_ETT_TC45USB=yCONFIG_TOUCHSCREEN_USB_NEXIO=yCONFIG_TOUCHSCREEN_USB_EASYTOUCH=yCONFIG_TOUCHSCREEN_TOUCHIT213=yCONFIG_TOUCHSCREEN_TS4800=yCONFIG_TOUCHSCREEN_TSC_SERIO=yCONFIG_TOUCHSCREEN_TSC200X_CORE=yCONFIG_TOUCHSCREEN_TSC2004=yCONFIG_TOUCHSCREEN_TSC2005=yCONFIG_TOUCHSCREEN_TSC2007=yCONFIG_TOUCHSCREEN_TSC2007_IIO=yCONFIG_TOUCHSCREEN_PCAP=yCONFIG_TOUCHSCREEN_RM_TS=yCONFIG_TOUCHSCREEN_SILEAD=yCONFIG_TOUCHSCREEN_SIS_I2C=yCONFIG_TOUCHSCREEN_ST1232=yCONFIG_TOUCHSCREEN_STMFTS=yCONFIG_TOUCHSCREEN_STMPE=yCONFIG_TOUCHSCREEN_SUN4I=yCONFIG_TOUCHSCREEN_SUR40=yCONFIG_TOUCHSCREEN_SURFACE3_SPI=yCONFIG_TOUCHSCREEN_SX8654=yCONFIG_TOUCHSCREEN_TPS6507X=yCONFIG_TOUCHSCREEN_ZET6223=yCONFIG_TOUCHSCREEN_ZFORCE=yCONFIG_TOUCHSCREEN_COLIBRI_VF50=yCONFIG_TOUCHSCREEN_ROHM_BU21023=yCONFIG_TOUCHSCREEN_IQS5XX=yCONFIG_TOUCHSCREEN_ZINITIX=yCONFIG_TOUCHSCREEN_HIMAX_HX83112B=yCONFIG_INPUT_MISC=yCONFIG_INPUT_88PM860X_ONKEY=yCONFIG_INPUT_88PM80X_ONKEY=yCONFIG_INPUT_AD714X=yCONFIG_INPUT_AD714X_I2C=yCONFIG_INPUT_AD714X_SPI=yCONFIG_INPUT_ARIEL_PWRBUTTON=yCONFIG_INPUT_ARIZONA_HAPTICS=yCONFIG_INPUT_ATC260X_ONKEY=yCONFIG_INPUT_ATMEL_CAPTOUCH=yCONFIG_INPUT_BMA150=yCONFIG_INPUT_E3X0_BUTTON=yCONFIG_INPUT_PM8941_PWRKEY=yCONFIG_INPUT_PM8XXX_VIBRATOR=yCONFIG_INPUT_PMIC8XXX_PWRKEY=yCONFIG_INPUT_MAX77650_ONKEY=yCONFIG_INPUT_MAX77693_HAPTIC=yCONFIG_INPUT_MAX8925_ONKEY=yCONFIG_INPUT_MAX8997_HAPTIC=yCONFIG_INPUT_MC13783_PWRBUTTON=yCONFIG_INPUT_MMA8450=yCONFIG_INPUT_GPIO_BEEPER=yCONFIG_INPUT_GPIO_DECODER=yCONFIG_INPUT_GPIO_VIBRA=yCONFIG_INPUT_CPCAP_PWRBUTTON=yCONFIG_INPUT_ATI_REMOTE2=yCONFIG_INPUT_KEYSPAN_REMOTE=yCONFIG_INPUT_KXTJ9=yCONFIG_INPUT_POWERMATE=yCONFIG_INPUT_YEALINK=yCONFIG_INPUT_CM109=yCONFIG_INPUT_REGULATOR_HAPTIC=yCONFIG_INPUT_RETU_PWRBUTTON=yCONFIG_INPUT_TPS65218_PWRBUTTON=yCONFIG_INPUT_TPS65219_PWRBUTTON=yCONFIG_INPUT_AXP20X_PEK=yCONFIG_INPUT_TWL4030_PWRBUTTON=yCONFIG_INPUT_TWL4030_VIBRA=yCONFIG_INPUT_TWL6040_VIBRA=yCONFIG_INPUT_UINPUT=yCONFIG_INPUT_PALMAS_PWRBUTTON=yCONFIG_INPUT_PCF50633_PMU=yCONFIG_INPUT_PCF8574=yCONFIG_INPUT_PWM_BEEPER=yCONFIG_INPUT_PWM_VIBRA=yCONFIG_INPUT_RK805_PWRKEY=yCONFIG_INPUT_GPIO_ROTARY_ENCODER=yCONFIG_INPUT_DA7280_HAPTICS=yCONFIG_INPUT_DA9052_ONKEY=yCONFIG_INPUT_DA9055_ONKEY=yCONFIG_INPUT_DA9063_ONKEY=yCONFIG_INPUT_WM831X_ON=yCONFIG_INPUT_PCAP=yCONFIG_INPUT_ADXL34X=yCONFIG_INPUT_ADXL34X_I2C=yCONFIG_INPUT_ADXL34X_SPI=yCONFIG_INPUT_IBM_PANEL=yCONFIG_INPUT_IMS_PCU=yCONFIG_INPUT_IQS269A=yCONFIG_INPUT_IQS626A=yCONFIG_INPUT_IQS7222=yCONFIG_INPUT_CMA3000=yCONFIG_INPUT_CMA3000_I2C=yCONFIG_INPUT_DRV260X_HAPTICS=yCONFIG_INPUT_DRV2665_HAPTICS=yCONFIG_INPUT_DRV2667_HAPTICS=yCONFIG_INPUT_HISI_POWERKEY=yCONFIG_INPUT_RAVE_SP_PWRBUTTON=yCONFIG_INPUT_SC27XX_VIBRA=yCONFIG_INPUT_RT5120_PWRKEY=yCONFIG_INPUT_STPMIC1_ONKEY=yCONFIG_RMI4_CORE=yCONFIG_RMI4_I2C=yCONFIG_RMI4_SPI=yCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=yCONFIG_RMI4_F3A=yCONFIG_RMI4_F54=yCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_PARKBD=yCONFIG_SERIO_PCIPS2=yCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=yCONFIG_SERIO_PS2MULT=yCONFIG_SERIO_ARC_PS2=yCONFIG_SERIO_APBPS2=yCONFIG_SERIO_OLPC_APSP=yCONFIG_SERIO_SUN4I_PS2=yCONFIG_SERIO_GPIO_PS2=yCONFIG_USERIO=yCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=yCONFIG_GAMEPORT_EMU10K1=yCONFIG_GAMEPORT_FM801=y
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LEGACY_TIOCSTI=yCONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_16550A_VARIANTS=yCONFIG_SERIAL_8250_FINTEK=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_EXAR=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_MEN_MCB=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_ASPEED_VUART=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_DWLIB=yCONFIG_SERIAL_8250_BCM2835AUX=yCONFIG_SERIAL_8250_FSL=yCONFIG_SERIAL_8250_DW=yCONFIG_SERIAL_8250_EM=yCONFIG_SERIAL_8250_IOC3=yCONFIG_SERIAL_8250_RT288X=yCONFIG_SERIAL_8250_OMAP=yCONFIG_SERIAL_8250_OMAP_TTYO_FIXUP=yCONFIG_SERIAL_8250_LPC18XX=yCONFIG_SERIAL_8250_MT6577=yCONFIG_SERIAL_8250_UNIPHIER=yCONFIG_SERIAL_8250_INGENIC=yCONFIG_SERIAL_8250_LPSS=yCONFIG_SERIAL_8250_MID=yCONFIG_SERIAL_8250_PERICOM=yCONFIG_SERIAL_8250_PXA=yCONFIG_SERIAL_8250_TEGRA=yCONFIG_SERIAL_8250_BCM7271=yCONFIG_SERIAL_OF_PLATFORM=y
#
# Non-8250 serial port support
#CONFIG_SERIAL_AMBA_PL010=yCONFIG_SERIAL_AMBA_PL010_CONSOLE=yCONFIG_SERIAL_ATMEL=yCONFIG_SERIAL_ATMEL_CONSOLE=yCONFIG_SERIAL_ATMEL_PDC=yCONFIG_SERIAL_ATMEL_TTYAT=yCONFIG_SERIAL_KGDB_NMI=yCONFIG_SERIAL_MESON=yCONFIG_SERIAL_MESON_CONSOLE=yCONFIG_SERIAL_CLPS711X=yCONFIG_SERIAL_CLPS711X_CONSOLE=yCONFIG_SERIAL_SAMSUNG=yCONFIG_SERIAL_SAMSUNG_UARTS_4=yCONFIG_SERIAL_SAMSUNG_UARTS=4CONFIG_SERIAL_SAMSUNG_CONSOLE=yCONFIG_SERIAL_TEGRA=yCONFIG_SERIAL_TEGRA_TCU=yCONFIG_SERIAL_TEGRA_TCU_CONSOLE=yCONFIG_SERIAL_MAX3100=yCONFIG_SERIAL_MAX310X=yCONFIG_SERIAL_IMX=yCONFIG_SERIAL_IMX_CONSOLE=yCONFIG_SERIAL_IMX_EARLYCON=yCONFIG_SERIAL_UARTLITE=yCONFIG_SERIAL_UARTLITE_CONSOLE=yCONFIG_SERIAL_UARTLITE_NR_UARTS=1CONFIG_SERIAL_SH_SCI=yCONFIG_SERIAL_SH_SCI_NR_UARTS=2CONFIG_SERIAL_SH_SCI_CONSOLE=yCONFIG_SERIAL_SH_SCI_EARLYCON=yCONFIG_SERIAL_SH_SCI_DMA=yCONFIG_SERIAL_HS_LPC32XX=yCONFIG_SERIAL_HS_LPC32XX_CONSOLE=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_CONSOLE_POLL=yCONFIG_SERIAL_ICOM=yCONFIG_SERIAL_JSM=yCONFIG_SERIAL_MSM=yCONFIG_SERIAL_MSM_CONSOLE=yCONFIG_SERIAL_QCOM_GENI=yCONFIG_SERIAL_QCOM_GENI_CONSOLE=yCONFIG_SERIAL_VT8500=yCONFIG_SERIAL_VT8500_CONSOLE=yCONFIG_SERIAL_OMAP=yCONFIG_SERIAL_OMAP_CONSOLE=yCONFIG_SERIAL_SIFIVE=yCONFIG_SERIAL_SIFIVE_CONSOLE=yCONFIG_SERIAL_LANTIQ=yCONFIG_SERIAL_LANTIQ_CONSOLE=yCONFIG_SERIAL_QE=yCONFIG_SERIAL_SCCNXP=yCONFIG_SERIAL_SCCNXP_CONSOLE=yCONFIG_SERIAL_SC16IS7XX_CORE=yCONFIG_SERIAL_SC16IS7XX=yCONFIG_SERIAL_SC16IS7XX_I2C=yCONFIG_SERIAL_SC16IS7XX_SPI=yCONFIG_SERIAL_TIMBERDALE=yCONFIG_SERIAL_BCM63XX=yCONFIG_SERIAL_BCM63XX_CONSOLE=yCONFIG_SERIAL_ALTERA_JTAGUART=yCONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE=yCONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE_BYPASS=yCONFIG_SERIAL_ALTERA_UART=yCONFIG_SERIAL_ALTERA_UART_MAXPORTS=4CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200CONFIG_SERIAL_ALTERA_UART_CONSOLE=yCONFIG_SERIAL_PCH_UART=yCONFIG_SERIAL_PCH_UART_CONSOLE=yCONFIG_SERIAL_MXS_AUART=yCONFIG_SERIAL_MXS_AUART_CONSOLE=yCONFIG_SERIAL_XILINX_PS_UART=yCONFIG_SERIAL_XILINX_PS_UART_CONSOLE=yCONFIG_SERIAL_MPS2_UART_CONSOLE=yCONFIG_SERIAL_MPS2_UART=yCONFIG_SERIAL_ARC=yCONFIG_SERIAL_ARC_CONSOLE=yCONFIG_SERIAL_ARC_NR_PORTS=1CONFIG_SERIAL_RP2=yCONFIG_SERIAL_RP2_NR_UARTS=32CONFIG_SERIAL_FSL_LPUART=yCONFIG_SERIAL_FSL_LPUART_CONSOLE=yCONFIG_SERIAL_FSL_LINFLEXUART=yCONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=yCONFIG_SERIAL_CONEXANT_DIGICOLOR=yCONFIG_SERIAL_CONEXANT_DIGICOLOR_CONSOLE=yCONFIG_SERIAL_ST_ASC=yCONFIG_SERIAL_ST_ASC_CONSOLE=yCONFIG_SERIAL_MEN_Z135=yCONFIG_SERIAL_SPRD=yCONFIG_SERIAL_SPRD_CONSOLE=yCONFIG_SERIAL_STM32=yCONFIG_SERIAL_STM32_CONSOLE=yCONFIG_SERIAL_MVEBU_UART=yCONFIG_SERIAL_MVEBU_CONSOLE=yCONFIG_SERIAL_OWL=yCONFIG_SERIAL_OWL_CONSOLE=yCONFIG_SERIAL_RDA=yCONFIG_SERIAL_RDA_CONSOLE=yCONFIG_SERIAL_MILBEAUT_USIO=yCONFIG_SERIAL_MILBEAUT_USIO_PORTS=4CONFIG_SERIAL_MILBEAUT_USIO_CONSOLE=yCONFIG_SERIAL_LITEUART=yCONFIG_SERIAL_LITEUART_MAX_PORTS=1CONFIG_SERIAL_LITEUART_CONSOLE=yCONFIG_SERIAL_SUNPLUS=yCONFIG_SERIAL_SUNPLUS_CONSOLE=y
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=yCONFIG_MOXA_INTELLIO=yCONFIG_MOXA_SMARTIO=yCONFIG_SYNCLINK_GT=yCONFIG_N_HDLC=yCONFIG_GOLDFISH_TTY=yCONFIG_GOLDFISH_TTY_EARLY_CONSOLE=yCONFIG_N_GSM=yCONFIG_NOZOMI=yCONFIG_NULL_TTY=yCONFIG_HVC_DRIVER=yCONFIG_RPMSG_TTY=yCONFIG_SERIAL_DEV_BUS=yCONFIG_SERIAL_DEV_CTRL_TTYPORT=yCONFIG_TTY_PRINTK=yCONFIG_TTY_PRINTK_LEVEL=6CONFIG_PRINTER=yCONFIG_LP_CONSOLE=yCONFIG_PPDEV=yCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_SSIF=yCONFIG_IPMI_IPMB=yCONFIG_IPMI_WATCHDOG=yCONFIG_IPMI_POWEROFF=yCONFIG_IPMI_KCS_BMC=yCONFIG_ASPEED_KCS_IPMI_BMC=yCONFIG_NPCM7XX_KCS_IPMI_BMC=yCONFIG_IPMI_KCS_BMC_CDEV_IPMI=yCONFIG_IPMI_KCS_BMC_SERIO=yCONFIG_ASPEED_BT_IPMI_BMC=yCONFIG_SSIF_IPMI_BMC=yCONFIG_IPMB_DEVICE_INTERFACE=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=yCONFIG_HW_RANDOM_ATMEL=yCONFIG_HW_RANDOM_BA431=yCONFIG_HW_RANDOM_BCM2835=yCONFIG_HW_RANDOM_IPROC_RNG200=yCONFIG_HW_RANDOM_IXP4XX=yCONFIG_HW_RANDOM_OMAP=yCONFIG_HW_RANDOM_OMAP3_ROM=yCONFIG_HW_RANDOM_VIRTIO=yCONFIG_HW_RANDOM_IMX_RNGC=yCONFIG_HW_RANDOM_NOMADIK=yCONFIG_HW_RANDOM_STM32=yCONFIG_HW_RANDOM_POLARFIRE_SOC=yCONFIG_HW_RANDOM_MESON=yCONFIG_HW_RANDOM_MTK=yCONFIG_HW_RANDOM_EXYNOS=yCONFIG_HW_RANDOM_NPCM=yCONFIG_HW_RANDOM_KEYSTONE=yCONFIG_HW_RANDOM_CCTRNG=yCONFIG_HW_RANDOM_XIPHERA=yCONFIG_APPLICOM=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=yCONFIG_CARDMAN_4000=yCONFIG_CARDMAN_4040=yCONFIG_SCR24X=yCONFIG_IPWIRELESS=y
# end of PCMCIA character devices
CONFIG_DEVMEM=yCONFIG_DEVPORT=yCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=yCONFIG_TCG_TIS_SPI=yCONFIG_TCG_TIS_SPI_CR50=yCONFIG_TCG_TIS_I2C=yCONFIG_TCG_TIS_SYNQUACER=yCONFIG_TCG_TIS_I2C_CR50=yCONFIG_TCG_TIS_I2C_ATMEL=yCONFIG_TCG_TIS_I2C_INFINEON=yCONFIG_TCG_TIS_I2C_NUVOTON=yCONFIG_TCG_VTPM_PROXY=yCONFIG_TCG_TIS_ST33ZP24=yCONFIG_TCG_TIS_ST33ZP24_I2C=yCONFIG_TCG_TIS_ST33ZP24_SPI=yCONFIG_XILLYBUS_CLASS=yCONFIG_XILLYBUS=yCONFIG_XILLYBUS_PCIE=yCONFIG_XILLYBUS_OF=yCONFIG_XILLYUSB=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_ARB_GPIO_CHALLENGE=yCONFIG_I2C_MUX_GPIO=yCONFIG_I2C_MUX_GPMUX=yCONFIG_I2C_MUX_LTC4306=yCONFIG_I2C_MUX_PCA9541=y
CONFIG_I2C_MUX_PCA954x=yCONFIG_I2C_MUX_PINCTRL=yCONFIG_I2C_MUX_REG=yCONFIG_I2C_DEMUX_PINCTRL=yCONFIG_I2C_MUX_MLXCPLD=y
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_CCGX_UCSI=yCONFIG_I2C_ALI1535=yCONFIG_I2C_ALI1563=yCONFIG_I2C_ALI15X3=yCONFIG_I2C_AMD756=yCONFIG_I2C_AMD8111=yCONFIG_I2C_HIX5HD2=yCONFIG_I2C_I801=yCONFIG_I2C_ISCH=yCONFIG_I2C_PIIX4=yCONFIG_I2C_NFORCE2=yCONFIG_I2C_NVIDIA_GPU=yCONFIG_I2C_SIS5595=yCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_ALTERA=yCONFIG_I2C_ASPEED=yCONFIG_I2C_AT91=y CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL=y CONFIG_I2C_AXXIA=yCONFIG_I2C_BCM2835=yCONFIG_I2C_BCM_IPROC=yCONFIG_I2C_BCM_KONA=yCONFIG_I2C_BRCMSTB=yCONFIG_I2C_CADENCE=yCONFIG_I2C_CBUS_GPIO=yCONFIG_I2C_DAVINCI=yCONFIG_I2C_DESIGNWARE_CORE=y CONFIG_I2C_DESIGNWARE_SLAVE=y CONFIG_I2C_DESIGNWARE_PLATFORM=y CONFIG_I2C_DESIGNWARE_PCI=yCONFIG_I2C_DIGICOLOR=yCONFIG_I2C_EG20T=yCONFIG_I2C_EMEV2=yCONFIG_I2C_EXYNOS5=yCONFIG_I2C_GPIO=yCONFIG_I2C_GPIO_FAULT_INJECTOR=y CONFIG_I2C_HIGHLANDER=yCONFIG_I2C_HISI=yCONFIG_I2C_IMG=yCONFIG_I2C_IMX=yCONFIG_I2C_IMX_LPI2C=yCONFIG_I2C_IOP3XX=yCONFIG_I2C_JZ4780=yCONFIG_I2C_KEMPLD=yCONFIG_I2C_LPC2K=yCONFIG_I2C_MESON=yCONFIG_I2C_MICROCHIP_CORE=yCONFIG_I2C_MT65XX=yCONFIG_I2C_MT7621=yCONFIG_I2C_MV64XXX=yCONFIG_I2C_MXS=yCONFIG_I2C_NPCM=yCONFIG_I2C_OCORES=yCONFIG_I2C_OMAP=yCONFIG_I2C_OWL=yCONFIG_I2C_APPLE=yCONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_PNX=yCONFIG_I2C_PXA=yCONFIG_I2C_PXA_SLAVE=yCONFIG_I2C_QCOM_CCI=yCONFIG_I2C_QCOM_GENI=yCONFIG_I2C_QUP=yCONFIG_I2C_RIIC=yCONFIG_I2C_RK3X=yCONFIG_I2C_RZV2M=yCONFIG_I2C_S3C2410=yCONFIG_I2C_SH_MOBILE=yCONFIG_I2C_SIMTEC=yCONFIG_I2C_SPRD=yCONFIG_I2C_ST=yCONFIG_I2C_STM32F4=yCONFIG_I2C_STM32F7=yCONFIG_I2C_SUN6I_P2WI=yCONFIG_I2C_SYNQUACER=yCONFIG_I2C_TEGRA=yCONFIG_I2C_TEGRA_BPMP=yCONFIG_I2C_UNIPHIER=yCONFIG_I2C_UNIPHIER_F=yCONFIG_I2C_VERSATILE=yCONFIG_I2C_WMT=yCONFIG_I2C_XILINX=yCONFIG_I2C_XLP9XX=yCONFIG_I2C_RCAR=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_DIOLAN_U2C=yCONFIG_I2C_DLN2=yCONFIG_I2C_CP2615=yCONFIG_I2C_PARPORT=yCONFIG_I2C_PCI1XXXX=yCONFIG_I2C_ROBOTFUZZ_OSIF=yCONFIG_I2C_TAOS_EVM=yCONFIG_I2C_TINY_USB=yCONFIG_I2C_VIPERBOARD=y
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=yCONFIG_I2C_CROS_EC_TUNNEL=yCONFIG_I2C_FSI=yCONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=mCONFIG_I2C_SLAVE=yCONFIG_I2C_SLAVE_EEPROM=yCONFIG_I2C_SLAVE_TESTUNIT=yCONFIG_I2C_DEBUG_CORE=yCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=y
# end of I2C support
CONFIG_I3C=yCONFIG_CDNS_I3C_MASTER=yCONFIG_DW_I3C_MASTER=yCONFIG_SVC_I3C_MASTER=yCONFIG_MIPI_I3C_HCI=yCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_ALTERA=yCONFIG_SPI_ALTERA_CORE=yCONFIG_SPI_ALTERA_DFL=yCONFIG_SPI_AR934X=yCONFIG_SPI_ATH79=yCONFIG_SPI_ARMADA_3700=yCONFIG_SPI_ASPEED_SMC=yCONFIG_SPI_ATMEL=yCONFIG_SPI_AT91_USART=yCONFIG_SPI_ATMEL_QUADSPI=yCONFIG_SPI_AXI_SPI_ENGINE=yCONFIG_SPI_BCM2835=yCONFIG_SPI_BCM2835AUX=yCONFIG_SPI_BCM63XX=yCONFIG_SPI_BCM63XX_HSSPI=yCONFIG_SPI_BCM_QSPI=yCONFIG_SPI_BITBANG=yCONFIG_SPI_BUTTERFLY=yCONFIG_SPI_CADENCE=yCONFIG_SPI_CADENCE_QUADSPI=yCONFIG_SPI_CADENCE_XSPI=yCONFIG_SPI_CLPS711X=yCONFIG_SPI_DESIGNWARE=yCONFIG_SPI_DW_DMA=yCONFIG_SPI_DW_PCI=yCONFIG_SPI_DW_MMIO=yCONFIG_SPI_DW_BT1=yCONFIG_SPI_DW_BT1_DIRMAP=yCONFIG_SPI_DLN2=yCONFIG_SPI_EP93XX=yCONFIG_SPI_FSI=yCONFIG_SPI_FSL_LPSPI=yCONFIG_SPI_FSL_QUADSPI=yCONFIG_SPI_GXP=yCONFIG_SPI_HISI_KUNPENG=yCONFIG_SPI_HISI_SFC_V3XX=yCONFIG_SPI_NXP_FLEXSPI=yCONFIG_SPI_GPIO=yCONFIG_SPI_IMG_SPFI=yCONFIG_SPI_IMX=yCONFIG_SPI_INGENIC=yCONFIG_SPI_INTEL=yCONFIG_SPI_INTEL_PCI=yCONFIG_SPI_INTEL_PLATFORM=yCONFIG_SPI_JCORE=yCONFIG_SPI_LM70_LLP=yCONFIG_SPI_LP8841_RTC=yCONFIG_SPI_FSL_LIB=yCONFIG_SPI_FSL_SPI=yCONFIG_SPI_FSL_DSPI=yCONFIG_SPI_MESON_SPICC=yCONFIG_SPI_MESON_SPIFC=yCONFIG_SPI_MICROCHIP_CORE=yCONFIG_SPI_MICROCHIP_CORE_QSPI=yCONFIG_SPI_MT65XX=yCONFIG_SPI_MT7621=yCONFIG_SPI_MTK_NOR=yCONFIG_SPI_MTK_SNFI=yCONFIG_SPI_WPCM_FIU=yCONFIG_SPI_NPCM_FIU=yCONFIG_SPI_NPCM_PSPI=yCONFIG_SPI_LANTIQ_SSC=yCONFIG_SPI_OC_TINY=yCONFIG_SPI_OMAP24XX=yCONFIG_SPI_TI_QSPI=yCONFIG_SPI_OMAP_100K=yCONFIG_SPI_ORION=yCONFIG_SPI_PCI1XXXX=yCONFIG_SPI_PIC32=yCONFIG_SPI_PIC32_SQI=yCONFIG_SPI_PXA2XX=yCONFIG_SPI_PXA2XX_PCI=yCONFIG_SPI_ROCKCHIP=yCONFIG_SPI_ROCKCHIP_SFC=yCONFIG_SPI_RPCIF=yCONFIG_SPI_RSPI=yCONFIG_SPI_QUP=yCONFIG_SPI_QCOM_GENI=yCONFIG_SPI_S3C64XX=yCONFIG_SPI_SC18IS602=yCONFIG_SPI_SH_MSIOF=yCONFIG_SPI_SH=yCONFIG_SPI_SH_HSPI=yCONFIG_SPI_SIFIVE=yCONFIG_SPI_SLAVE_MT27XX=yCONFIG_SPI_SN_F_OSPI=yCONFIG_SPI_SPRD=yCONFIG_SPI_SPRD_ADI=yCONFIG_SPI_STM32=yCONFIG_SPI_STM32_QSPI=yCONFIG_SPI_ST_SSC4=yCONFIG_SPI_SUN4I=yCONFIG_SPI_SUN6I=yCONFIG_SPI_SUNPLUS_SP7021=yCONFIG_SPI_SYNQUACER=yCONFIG_SPI_MXIC=yCONFIG_SPI_TEGRA210_QUAD=yCONFIG_SPI_TEGRA114=yCONFIG_SPI_TEGRA20_SFLASH=yCONFIG_SPI_TEGRA20_SLINK=yCONFIG_SPI_TOPCLIFF_PCH=yCONFIG_SPI_UNIPHIER=yCONFIG_SPI_XCOMM=yCONFIG_SPI_XILINX=yCONFIG_SPI_XLP=yCONFIG_SPI_XTENSA_XTFPGA=yCONFIG_SPI_ZYNQ_QSPI=yCONFIG_SPI_ZYNQMP_GQSPI=yCONFIG_SPI_AMD=y
#
# SPI Multiplexer support
#CONFIG_SPI_MUX=y
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=yCONFIG_SPI_LOOPBACK_TEST=mCONFIG_SPI_TLE62X0=yCONFIG_SPI_SLAVE=yCONFIG_SPI_SLAVE_TIME=yCONFIG_SPI_SLAVE_SYSTEM_CONTROL=yCONFIG_SPI_DYNAMIC=yCONFIG_SPMI=yCONFIG_SPMI_HISI3670=yCONFIG_SPMI_MSM_PMIC_ARB=yCONFIG_SPMI_MTK_PMIF=yCONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=yCONFIG_PPS=yCONFIG_PPS_DEBUG=y
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=yCONFIG_PPS_CLIENT_LDISC=yCONFIG_PPS_CLIENT_PARPORT=yCONFIG_PPS_CLIENT_GPIO=y
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=yCONFIG_PTP_1588_CLOCK_DTE=yCONFIG_PTP_1588_CLOCK_QORIQ=yCONFIG_DP83640_PHY=yCONFIG_PTP_1588_CLOCK_INES=yCONFIG_PTP_1588_CLOCK_PCH=yCONFIG_PTP_1588_CLOCK_IDT82P33=yCONFIG_PTP_1588_CLOCK_IDTCM=yCONFIG_PTP_1588_CLOCK_OCP=y
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_GENERIC_PINCTRL_GROUPS=yCONFIG_PINMUX=yCONFIG_GENERIC_PINMUX_FUNCTIONS=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=yCONFIG_PINCTRL_AMD=yCONFIG_PINCTRL_AS3722=yCONFIG_PINCTRL_AT91PIO4=yCONFIG_PINCTRL_AXP209=yCONFIG_PINCTRL_BM1880=yCONFIG_PINCTRL_CY8C95X0=yCONFIG_PINCTRL_DA850_PUPD=yCONFIG_PINCTRL_DA9062=yCONFIG_PINCTRL_EQUILIBRIUM=yCONFIG_PINCTRL_INGENIC=yCONFIG_PINCTRL_LOONGSON2=yCONFIG_PINCTRL_LPC18XX=yCONFIG_PINCTRL_MAX77620=yCONFIG_PINCTRL_MCP23S08_I2C=yCONFIG_PINCTRL_MCP23S08_SPI=yCONFIG_PINCTRL_MCP23S08=yCONFIG_PINCTRL_MICROCHIP_SGPIO=yCONFIG_PINCTRL_OCELOT=yCONFIG_PINCTRL_PALMAS=yCONFIG_PINCTRL_PISTACHIO=yCONFIG_PINCTRL_RK805=yCONFIG_PINCTRL_ROCKCHIP=yCONFIG_PINCTRL_SINGLE=yCONFIG_PINCTRL_STMFX=yCONFIG_PINCTRL_SX150X=yCONFIG_PINCTRL_TB10X=yCONFIG_PINCTRL_OWL=yCONFIG_PINCTRL_S500=yCONFIG_PINCTRL_S700=yCONFIG_PINCTRL_S900=yCONFIG_PINCTRL_ASPEED=yCONFIG_PINCTRL_ASPEED_G4=yCONFIG_PINCTRL_ASPEED_G5=yCONFIG_PINCTRL_ASPEED_G6=yCONFIG_PINCTRL_BCM281XX=yCONFIG_PINCTRL_BCM2835=yCONFIG_PINCTRL_BCM4908=yCONFIG_PINCTRL_BCM63XX=yCONFIG_PINCTRL_BCM6318=yCONFIG_PINCTRL_BCM6328=yCONFIG_PINCTRL_BCM6358=yCONFIG_PINCTRL_BCM6362=yCONFIG_PINCTRL_BCM6368=yCONFIG_PINCTRL_BCM63268=yCONFIG_PINCTRL_IPROC_GPIO=yCONFIG_PINCTRL_CYGNUS_MUX=yCONFIG_PINCTRL_NS=yCONFIG_PINCTRL_NSP_GPIO=yCONFIG_PINCTRL_NS2_MUX=yCONFIG_PINCTRL_NSP_MUX=yCONFIG_PINCTRL_BERLIN=yCONFIG_PINCTRL_AS370=yCONFIG_PINCTRL_BERLIN_BG4CT=yCONFIG_PINCTRL_LOCHNAGAR=yCONFIG_PINCTRL_MADERA=yCONFIG_PINCTRL_CS47L15=yCONFIG_PINCTRL_CS47L35=yCONFIG_PINCTRL_CS47L85=yCONFIG_PINCTRL_CS47L90=yCONFIG_PINCTRL_CS47L92=yCONFIG_PINCTRL_IMX=yCONFIG_PINCTRL_IMX8MM=yCONFIG_PINCTRL_IMX8MN=yCONFIG_PINCTRL_IMX8MP=yCONFIG_PINCTRL_IMX8MQ=y
#
# Intel pinctrl drivers
#
# end of Intel pinctrl drivers
#
# MediaTek pinctrl drivers
#CONFIG_EINT_MTK=yCONFIG_PINCTRL_MTK=yCONFIG_PINCTRL_MTK_V2=yCONFIG_PINCTRL_MTK_MOORE=yCONFIG_PINCTRL_MTK_PARIS=yCONFIG_PINCTRL_MT2701=yCONFIG_PINCTRL_MT7623=yCONFIG_PINCTRL_MT7629=yCONFIG_PINCTRL_MT8135=yCONFIG_PINCTRL_MT8127=yCONFIG_PINCTRL_MT2712=yCONFIG_PINCTRL_MT6765=yCONFIG_PINCTRL_MT6779=yCONFIG_PINCTRL_MT6795=yCONFIG_PINCTRL_MT6797=yCONFIG_PINCTRL_MT7622=yCONFIG_PINCTRL_MT7986=yCONFIG_PINCTRL_MT8167=yCONFIG_PINCTRL_MT8173=yCONFIG_PINCTRL_MT8183=yCONFIG_PINCTRL_MT8186=yCONFIG_PINCTRL_MT8188=yCONFIG_PINCTRL_MT8192=yCONFIG_PINCTRL_MT8195=yCONFIG_PINCTRL_MT8365=yCONFIG_PINCTRL_MT8516=yCONFIG_PINCTRL_MT6397=y
# end of MediaTek pinctrl drivers
CONFIG_PINCTRL_MESON=yCONFIG_PINCTRL_WPCM450=yCONFIG_PINCTRL_NPCM7XX=yCONFIG_PINCTRL_PXA=yCONFIG_PINCTRL_PXA25X=yCONFIG_PINCTRL_PXA27X=yCONFIG_PINCTRL_MSM=yCONFIG_PINCTRL_APQ8064=yCONFIG_PINCTRL_APQ8084=yCONFIG_PINCTRL_IPQ4019=yCONFIG_PINCTRL_IPQ8064=yCONFIG_PINCTRL_IPQ8074=yCONFIG_PINCTRL_IPQ6018=yCONFIG_PINCTRL_MSM8226=yCONFIG_PINCTRL_MSM8660=yCONFIG_PINCTRL_MSM8960=yCONFIG_PINCTRL_MDM9607=yCONFIG_PINCTRL_MDM9615=yCONFIG_PINCTRL_MSM8X74=yCONFIG_PINCTRL_MSM8909=yCONFIG_PINCTRL_MSM8916=yCONFIG_PINCTRL_MSM8953=yCONFIG_PINCTRL_MSM8976=yCONFIG_PINCTRL_MSM8994=yCONFIG_PINCTRL_MSM8996=yCONFIG_PINCTRL_MSM8998=yCONFIG_PINCTRL_QCM2290=yCONFIG_PINCTRL_QCS404=yCONFIG_PINCTRL_QCOM_SPMI_PMIC=yCONFIG_PINCTRL_QCOM_SSBI_PMIC=yCONFIG_PINCTRL_SC7180=yCONFIG_PINCTRL_SC7280=yCONFIG_PINCTRL_SC7280_LPASS_LPI=yCONFIG_PINCTRL_SC8180X=yCONFIG_PINCTRL_SC8280XP=yCONFIG_PINCTRL_SDM660=yCONFIG_PINCTRL_SDM670=yCONFIG_PINCTRL_SDM845=yCONFIG_PINCTRL_SDX55=yCONFIG_PINCTRL_SM6115=yCONFIG_PINCTRL_SM6125=yCONFIG_PINCTRL_SM6350=yCONFIG_PINCTRL_SM6375=yCONFIG_PINCTRL_SDX65=yCONFIG_PINCTRL_SM8150=yCONFIG_PINCTRL_SM8250=yCONFIG_PINCTRL_SM8250_LPASS_LPI=yCONFIG_PINCTRL_SM8350=yCONFIG_PINCTRL_SM8450=yCONFIG_PINCTRL_SM8450_LPASS_LPI=yCONFIG_PINCTRL_SC8280XP_LPASS_LPI=yCONFIG_PINCTRL_LPASS_LPI=y
#
# Renesas pinctrl drivers
#CONFIG_PINCTRL_RENESAS=yCONFIG_PINCTRL_SH_PFC=yCONFIG_PINCTRL_SH_PFC_GPIO=yCONFIG_PINCTRL_SH_FUNC_GPIO=yCONFIG_PINCTRL_PFC_EMEV2=yCONFIG_PINCTRL_PFC_R8A77995=yCONFIG_PINCTRL_PFC_R8A7794=yCONFIG_PINCTRL_PFC_R8A77990=yCONFIG_PINCTRL_PFC_R8A7779=yCONFIG_PINCTRL_PFC_R8A7790=yCONFIG_PINCTRL_PFC_R8A77950=yCONFIG_PINCTRL_PFC_R8A77951=yCONFIG_PINCTRL_PFC_R8A7778=yCONFIG_PINCTRL_PFC_R8A7793=yCONFIG_PINCTRL_PFC_R8A7791=yCONFIG_PINCTRL_PFC_R8A77965=yCONFIG_PINCTRL_PFC_R8A77960=yCONFIG_PINCTRL_PFC_R8A77961=yCONFIG_PINCTRL_PFC_R8A779F0=yCONFIG_PINCTRL_PFC_R8A7792=yCONFIG_PINCTRL_PFC_R8A77980=yCONFIG_PINCTRL_PFC_R8A77970=yCONFIG_PINCTRL_PFC_R8A779A0=yCONFIG_PINCTRL_PFC_R8A779G0=yCONFIG_PINCTRL_PFC_R8A7740=yCONFIG_PINCTRL_PFC_R8A73A4=yCONFIG_PINCTRL_RZA1=yCONFIG_PINCTRL_RZA2=yCONFIG_PINCTRL_RZG2L=yCONFIG_PINCTRL_PFC_R8A77470=yCONFIG_PINCTRL_PFC_R8A7745=yCONFIG_PINCTRL_PFC_R8A7742=yCONFIG_PINCTRL_PFC_R8A7743=yCONFIG_PINCTRL_PFC_R8A7744=yCONFIG_PINCTRL_PFC_R8A774C0=yCONFIG_PINCTRL_PFC_R8A774E1=yCONFIG_PINCTRL_PFC_R8A774A1=yCONFIG_PINCTRL_PFC_R8A774B1=yCONFIG_PINCTRL_RZN1=yCONFIG_PINCTRL_RZV2M=yCONFIG_PINCTRL_PFC_SH7203=yCONFIG_PINCTRL_PFC_SH7264=yCONFIG_PINCTRL_PFC_SH7269=yCONFIG_PINCTRL_PFC_SH7720=yCONFIG_PINCTRL_PFC_SH7722=yCONFIG_PINCTRL_PFC_SH7734=yCONFIG_PINCTRL_PFC_SH7757=yCONFIG_PINCTRL_PFC_SH7785=yCONFIG_PINCTRL_PFC_SH7786=yCONFIG_PINCTRL_PFC_SH73A0=yCONFIG_PINCTRL_PFC_SH7723=yCONFIG_PINCTRL_PFC_SH7724=yCONFIG_PINCTRL_PFC_SHX3=y
# end of Renesas pinctrl drivers
CONFIG_PINCTRL_SAMSUNG=yCONFIG_PINCTRL_EXYNOS=yCONFIG_PINCTRL_EXYNOS_ARM=yCONFIG_PINCTRL_EXYNOS_ARM64=yCONFIG_PINCTRL_S3C24XX=yCONFIG_PINCTRL_S3C64XX=yCONFIG_PINCTRL_SPRD=yCONFIG_PINCTRL_SPRD_SC9860=yCONFIG_PINCTRL_STARFIVE_JH7100=yCONFIG_PINCTRL_STM32=yCONFIG_PINCTRL_STM32F429=yCONFIG_PINCTRL_STM32F469=yCONFIG_PINCTRL_STM32F746=yCONFIG_PINCTRL_STM32F769=yCONFIG_PINCTRL_STM32H743=yCONFIG_PINCTRL_STM32MP135=yCONFIG_PINCTRL_STM32MP157=yCONFIG_PINCTRL_TI_IODELAY=yCONFIG_PINCTRL_UNIPHIER=yCONFIG_PINCTRL_UNIPHIER_LD4=yCONFIG_PINCTRL_UNIPHIER_PRO4=yCONFIG_PINCTRL_UNIPHIER_SLD8=yCONFIG_PINCTRL_UNIPHIER_PRO5=yCONFIG_PINCTRL_UNIPHIER_PXS2=yCONFIG_PINCTRL_UNIPHIER_LD6B=yCONFIG_PINCTRL_UNIPHIER_LD11=yCONFIG_PINCTRL_UNIPHIER_LD20=yCONFIG_PINCTRL_UNIPHIER_PXS3=yCONFIG_PINCTRL_UNIPHIER_NX1=yCONFIG_PINCTRL_VISCONTI=yCONFIG_PINCTRL_TMPV7700=yCONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_OF_GPIO=yCONFIG_GPIOLIB_IRQCHIP=yCONFIG_DEBUG_GPIO=yCONFIG_GPIO_SYSFS=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=yCONFIG_GPIO_REGMAP=yCONFIG_GPIO_MAX730X=yCONFIG_GPIO_IDIO_16=y
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_74XX_MMIO=yCONFIG_GPIO_ALTERA=yCONFIG_GPIO_ASPEED=yCONFIG_GPIO_ASPEED_SGPIO=yCONFIG_GPIO_ATH79=yCONFIG_GPIO_RASPBERRYPI_EXP=yCONFIG_GPIO_BCM_KONA=yCONFIG_GPIO_BCM_XGS_IPROC=yCONFIG_GPIO_BRCMSTB=yCONFIG_GPIO_CADENCE=yCONFIG_GPIO_CLPS711X=yCONFIG_GPIO_DWAPB=yCONFIG_GPIO_EIC_SPRD=yCONFIG_GPIO_EM=yCONFIG_GPIO_EXAR=yCONFIG_GPIO_FTGPIO010=yCONFIG_GPIO_GENERIC_PLATFORM=yCONFIG_GPIO_GRGPIO=yCONFIG_GPIO_HISI=yCONFIG_GPIO_HLWD=yCONFIG_GPIO_IMX_SCU=yCONFIG_GPIO_IOP=yCONFIG_GPIO_LOGICVC=yCONFIG_GPIO_LPC18XX=yCONFIG_GPIO_LPC32XX=yCONFIG_GPIO_MB86S7X=yCONFIG_GPIO_MENZ127=yCONFIG_GPIO_MPC8XXX=yCONFIG_GPIO_MT7621=yCONFIG_GPIO_MXC=yCONFIG_GPIO_MXS=yCONFIG_GPIO_PMIC_EIC_SPRD=yCONFIG_GPIO_PXA=yCONFIG_GPIO_RCAR=yCONFIG_GPIO_RDA=yCONFIG_GPIO_ROCKCHIP=yCONFIG_GPIO_SAMA5D2_PIOBU=yCONFIG_GPIO_SIFIVE=yCONFIG_GPIO_SIOX=yCONFIG_GPIO_SNPS_CREG=yCONFIG_GPIO_SPRD=yCONFIG_GPIO_STP_XWAY=yCONFIG_GPIO_SYSCON=yCONFIG_GPIO_TB10X=yCONFIG_GPIO_TEGRA=yCONFIG_GPIO_TEGRA186=yCONFIG_GPIO_TS4800=yCONFIG_GPIO_UNIPHIER=yCONFIG_GPIO_VISCONTI=yCONFIG_GPIO_VX855=yCONFIG_GPIO_WCD934X=yCONFIG_GPIO_XGENE_SB=yCONFIG_GPIO_XILINX=yCONFIG_GPIO_XLP=yCONFIG_GPIO_AMD_FCH=yCONFIG_GPIO_IDT3243X=y
# end of Memory mapped GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_ADNP=yCONFIG_GPIO_GW_PLD=yCONFIG_GPIO_MAX7300=yCONFIG_GPIO_MAX732X=yCONFIG_GPIO_MAX732X_IRQ=yCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCA953X_IRQ=yCONFIG_GPIO_PCA9570=yCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=yCONFIG_GPIO_TS4900=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#CONFIG_GPIO_ADP5520=yCONFIG_GPIO_ARIZONA=yCONFIG_GPIO_BD71815=yCONFIG_GPIO_BD71828=yCONFIG_GPIO_BD9571MWV=yCONFIG_GPIO_CRYSTAL_COVE=yCONFIG_GPIO_DA9052=yCONFIG_GPIO_DA9055=yCONFIG_GPIO_DLN2=yCONFIG_GPIO_JANZ_TTL=yCONFIG_GPIO_KEMPLD=yCONFIG_GPIO_LP3943=yCONFIG_GPIO_LP873X=yCONFIG_GPIO_LP87565=yCONFIG_GPIO_MADERA=yCONFIG_GPIO_MAX77620=yCONFIG_GPIO_MAX77650=yCONFIG_GPIO_PALMAS=yCONFIG_GPIO_RC5T583=yCONFIG_GPIO_SL28CPLD=yCONFIG_GPIO_STMPE=yCONFIG_GPIO_TC3589X=yCONFIG_GPIO_TIMBERDALE=yCONFIG_GPIO_TPS65086=yCONFIG_GPIO_TPS65218=yCONFIG_GPIO_TPS6586X=yCONFIG_GPIO_TPS65910=yCONFIG_GPIO_TPS65912=yCONFIG_GPIO_TWL4030=yCONFIG_GPIO_TWL6040=yCONFIG_GPIO_UCB1400=yCONFIG_GPIO_WM831X=yCONFIG_GPIO_WM8350=yCONFIG_GPIO_WM8994=y
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#CONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCH=yCONFIG_GPIO_PCI_IDIO_16=yCONFIG_GPIO_PCIE_IDIO_24=yCONFIG_GPIO_RDC321X=y
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#CONFIG_GPIO_74X164=yCONFIG_GPIO_MAX3191X=yCONFIG_GPIO_MAX7301=yCONFIG_GPIO_MC33880=yCONFIG_GPIO_PISOSR=yCONFIG_GPIO_XRA1403=yCONFIG_GPIO_MOXTET=y
# end of SPI GPIO expanders
#
# USB GPIO expanders
#CONFIG_GPIO_VIPERBOARD=y
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#CONFIG_GPIO_AGGREGATOR=yCONFIG_GPIO_LATCH=yCONFIG_GPIO_MOCKUP=yCONFIG_GPIO_VIRTIO=yCONFIG_GPIO_SIM=y
# end of Virtual GPIO drivers
CONFIG_W1=yCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=yCONFIG_W1_MASTER_DS2490=yCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_MXC=yCONFIG_W1_MASTER_DS1WM=yCONFIG_W1_MASTER_GPIO=yCONFIG_W1_MASTER_SGI=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=yCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2405=yCONFIG_W1_SLAVE_DS2408=yCONFIG_W1_SLAVE_DS2408_READBACK=yCONFIG_W1_SLAVE_DS2413=yCONFIG_W1_SLAVE_DS2406=yCONFIG_W1_SLAVE_DS2423=yCONFIG_W1_SLAVE_DS2805=yCONFIG_W1_SLAVE_DS2430=yCONFIG_W1_SLAVE_DS2431=yCONFIG_W1_SLAVE_DS2433=yCONFIG_W1_SLAVE_DS2433_CRC=yCONFIG_W1_SLAVE_DS2438=yCONFIG_W1_SLAVE_DS250X=yCONFIG_W1_SLAVE_DS2780=yCONFIG_W1_SLAVE_DS2781=yCONFIG_W1_SLAVE_DS28E04=yCONFIG_W1_SLAVE_DS28E17=y
# end of 1-wire Slaves
CONFIG_POWER_RESET=yCONFIG_POWER_RESET_AS3722=yCONFIG_POWER_RESET_ATC260X=yCONFIG_POWER_RESET_BRCMKONA=yCONFIG_POWER_RESET_BRCMSTB=yCONFIG_POWER_RESET_GEMINI_POWEROFF=yCONFIG_POWER_RESET_GPIO=yCONFIG_POWER_RESET_GPIO_RESTART=yCONFIG_POWER_RESET_LINKSTATION=yCONFIG_POWER_RESET_OCELOT_RESET=yCONFIG_POWER_RESET_PIIX4_POWEROFF=yCONFIG_POWER_RESET_LTC2952=yCONFIG_POWER_RESET_MT6323=yCONFIG_POWER_RESET_REGULATOR=yCONFIG_POWER_RESET_RESTART=yCONFIG_POWER_RESET_TPS65086=yCONFIG_POWER_RESET_KEYSTONE=yCONFIG_POWER_RESET_SYSCON=yCONFIG_POWER_RESET_SYSCON_POWEROFF=yCONFIG_POWER_RESET_RMOBILE=yCONFIG_REBOOT_MODE=yCONFIG_SYSCON_REBOOT_MODE=yCONFIG_POWER_RESET_SC27XX=yCONFIG_NVMEM_REBOOT_MODE=yCONFIG_POWER_SUPPLY=yCONFIG_POWER_SUPPLY_DEBUG=yCONFIG_POWER_SUPPLY_HWMON=yCONFIG_PDA_POWER=yCONFIG_GENERIC_ADC_BATTERY=yCONFIG_IP5XXX_POWER=yCONFIG_MAX8925_POWER=yCONFIG_WM831X_BACKUP=yCONFIG_WM831X_POWER=yCONFIG_WM8350_POWER=yCONFIG_TEST_POWER=yCONFIG_BATTERY_88PM860X=yCONFIG_CHARGER_ADP5061=yCONFIG_BATTERY_ACT8945A=yCONFIG_BATTERY_CPCAP=yCONFIG_BATTERY_CW2015=yCONFIG_BATTERY_DS2760=yCONFIG_BATTERY_DS2780=yCONFIG_BATTERY_DS2781=yCONFIG_BATTERY_DS2782=yCONFIG_BATTERY_LEGO_EV3=yCONFIG_BATTERY_OLPC=yCONFIG_BATTERY_SAMSUNG_SDI=yCONFIG_BATTERY_INGENIC=yCONFIG_BATTERY_WM97XX=yCONFIG_BATTERY_SBS=yCONFIG_CHARGER_SBS=yCONFIG_MANAGER_SBS=yCONFIG_BATTERY_BQ27XXX=yCONFIG_BATTERY_BQ27XXX_I2C=yCONFIG_BATTERY_BQ27XXX_HDQ=yCONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=yCONFIG_BATTERY_DA9030=yCONFIG_BATTERY_DA9052=yCONFIG_CHARGER_DA9150=yCONFIG_BATTERY_DA9150=yCONFIG_CHARGER_AXP20X=yCONFIG_BATTERY_AXP20X=yCONFIG_AXP20X_POWER=yCONFIG_BATTERY_MAX17040=yCONFIG_BATTERY_MAX17042=yCONFIG_BATTERY_MAX1721X=yCONFIG_BATTERY_TWL4030_MADC=yCONFIG_CHARGER_88PM860X=yCONFIG_CHARGER_PCF50633=yCONFIG_BATTERY_RX51=yCONFIG_CHARGER_CPCAP=yCONFIG_CHARGER_ISP1704=yCONFIG_CHARGER_MAX8903=yCONFIG_CHARGER_TWL4030=yCONFIG_CHARGER_LP8727=yCONFIG_CHARGER_LP8788=yCONFIG_CHARGER_GPIO=yCONFIG_CHARGER_MANAGER=yCONFIG_CHARGER_LT3651=yCONFIG_CHARGER_LTC4162L=yCONFIG_CHARGER_MAX14577=yCONFIG_CHARGER_DETECTOR_MAX14656=yCONFIG_CHARGER_MAX77650=yCONFIG_CHARGER_MAX77693=yCONFIG_CHARGER_MAX77976=yCONFIG_CHARGER_MAX8997=yCONFIG_CHARGER_MAX8998=yCONFIG_CHARGER_MP2629=yCONFIG_CHARGER_MT6360=yCONFIG_CHARGER_MT6370=yCONFIG_CHARGER_QCOM_SMBB=yCONFIG_CHARGER_BQ2415X=yCONFIG_CHARGER_BQ24190=yCONFIG_CHARGER_BQ24257=yCONFIG_CHARGER_BQ24735=yCONFIG_CHARGER_BQ2515X=yCONFIG_CHARGER_BQ25890=yCONFIG_CHARGER_BQ25980=yCONFIG_CHARGER_BQ256XX=yCONFIG_CHARGER_RK817=yCONFIG_CHARGER_SMB347=yCONFIG_CHARGER_TPS65090=yCONFIG_CHARGER_TPS65217=yCONFIG_BATTERY_GAUGE_LTC2941=yCONFIG_BATTERY_GOLDFISH=yCONFIG_BATTERY_RT5033=yCONFIG_CHARGER_RT9455=yCONFIG_CHARGER_CROS_USBPD=yCONFIG_CHARGER_CROS_PCHG=yCONFIG_CHARGER_SC2731=yCONFIG_FUEL_GAUGE_SC27XX=yCONFIG_CHARGER_UCS1002=yCONFIG_CHARGER_BD99954=yCONFIG_RN5T618_POWER=yCONFIG_BATTERY_ACER_A500=yCONFIG_BATTERY_UG3105=yCONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_SMPRO=y CONFIG_SENSORS_AD7314=y CONFIG_SENSORS_AD7414=y CONFIG_SENSORS_AD7418=y CONFIG_SENSORS_ADM1025=y CONFIG_SENSORS_ADM1026=y CONFIG_SENSORS_ADM1029=y CONFIG_SENSORS_ADM1031=y CONFIG_SENSORS_ADM1177=y CONFIG_SENSORS_ADM9240=y CONFIG_SENSORS_ADT7X10=y CONFIG_SENSORS_ADT7310=y CONFIG_SENSORS_ADT7410=y CONFIG_SENSORS_ADT7411=y CONFIG_SENSORS_ADT7462=y CONFIG_SENSORS_ADT7470=y CONFIG_SENSORS_ADT7475=y CONFIG_SENSORS_AHT10=y CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=y CONFIG_SENSORS_AS370=y CONFIG_SENSORS_ASC7621=y CONFIG_SENSORS_AXI_FAN_CONTROL=y CONFIG_SENSORS_ARM_SCMI=y CONFIG_SENSORS_ARM_SCPI=y CONFIG_SENSORS_ASB100=y CONFIG_SENSORS_ASPEED=y CONFIG_SENSORS_ATXP1=y CONFIG_SENSORS_BT1_PVT=y CONFIG_SENSORS_BT1_PVT_ALARMS=y CONFIG_SENSORS_CORSAIR_CPRO=y CONFIG_SENSORS_CORSAIR_PSU=y CONFIG_SENSORS_DRIVETEMP=y CONFIG_SENSORS_DS620=y CONFIG_SENSORS_DS1621=y CONFIG_SENSORS_DA9052_ADC=y CONFIG_SENSORS_DA9055=y CONFIG_SENSORS_I5K_AMB=y CONFIG_SENSORS_SPARX5=y CONFIG_SENSORS_F71805F=y CONFIG_SENSORS_F71882FG=y CONFIG_SENSORS_F75375S=y CONFIG_SENSORS_GSC=y CONFIG_SENSORS_MC13783_ADC=y CONFIG_SENSORS_FSCHMD=y CONFIG_SENSORS_FTSTEUTATES=y CONFIG_SENSORS_GL518SM=y CONFIG_SENSORS_GL520SM=y CONFIG_SENSORS_G760A=y CONFIG_SENSORS_G762=y CONFIG_SENSORS_GPIO_FAN=y CONFIG_SENSORS_HIH6130=y CONFIG_SENSORS_IBMAEM=y CONFIG_SENSORS_IBMPEX=y CONFIG_SENSORS_IIO_HWMON=y CONFIG_SENSORS_IT87=y CONFIG_SENSORS_JC42=y CONFIG_SENSORS_POWR1220=y CONFIG_SENSORS_LAN966X=y CONFIG_SENSORS_LINEAGE=y CONFIG_SENSORS_LOCHNAGAR=y CONFIG_SENSORS_LTC2945=y CONFIG_SENSORS_LTC2947=y CONFIG_SENSORS_LTC2947_I2C=y CONFIG_SENSORS_LTC2947_SPI=y CONFIG_SENSORS_LTC2990=y CONFIG_SENSORS_LTC2992=y CONFIG_SENSORS_LTC4151=y CONFIG_SENSORS_LTC4215=y CONFIG_SENSORS_LTC4222=y CONFIG_SENSORS_LTC4245=y CONFIG_SENSORS_LTC4260=y CONFIG_SENSORS_LTC4261=y CONFIG_SENSORS_MAX1111=y CONFIG_SENSORS_MAX127=y CONFIG_SENSORS_MAX16065=y CONFIG_SENSORS_MAX1619=y CONFIG_SENSORS_MAX1668=y CONFIG_SENSORS_MAX197=y CONFIG_SENSORS_MAX31722=y CONFIG_SENSORS_MAX31730=y CONFIG_SENSORS_MAX31760=y CONFIG_SENSORS_MAX6620=y CONFIG_SENSORS_MAX6621=y CONFIG_SENSORS_MAX6639=y CONFIG_SENSORS_MAX6650=y CONFIG_SENSORS_MAX6697=y CONFIG_SENSORS_MAX31790=y CONFIG_SENSORS_MCP3021=y CONFIG_SENSORS_MLXREG_FAN=y CONFIG_SENSORS_TC654=y CONFIG_SENSORS_TPS23861=y CONFIG_SENSORS_MENF21BMC_HWMON=y CONFIG_SENSORS_MR75203=y CONFIG_SENSORS_ADCXX=y CONFIG_SENSORS_LM63=y CONFIG_SENSORS_LM70=y CONFIG_SENSORS_LM73=y CONFIG_SENSORS_LM75=y CONFIG_SENSORS_LM77=y CONFIG_SENSORS_LM78=y CONFIG_SENSORS_LM80=y CONFIG_SENSORS_LM83=y CONFIG_SENSORS_LM85=y CONFIG_SENSORS_LM87=y CONFIG_SENSORS_LM90=y CONFIG_SENSORS_LM92=y CONFIG_SENSORS_LM93=y CONFIG_SENSORS_LM95234=y CONFIG_SENSORS_LM95241=y CONFIG_SENSORS_LM95245=y CONFIG_SENSORS_PC87360=y CONFIG_SENSORS_PC87427=y CONFIG_SENSORS_NTC_THERMISTOR=y CONFIG_SENSORS_NCT6683=y CONFIG_SENSORS_NCT6775_CORE=y CONFIG_SENSORS_NCT6775=y CONFIG_SENSORS_NCT6775_I2C=y CONFIG_SENSORS_NCT7802=y CONFIG_SENSORS_NCT7904=y CONFIG_SENSORS_NPCM7XX=y CONFIG_SENSORS_NSA320=y CONFIG_SENSORS_NZXT_KRAKEN2=y CONFIG_SENSORS_NZXT_SMART2=y CONFIG_SENSORS_OCC_P8_I2C=y CONFIG_SENSORS_OCC_P9_SBE=y CONFIG_SENSORS_OCC=y CONFIG_SENSORS_PCF8591=y CONFIG_SENSORS_PECI_CPUTEMP=y CONFIG_SENSORS_PECI_DIMMTEMP=y CONFIG_SENSORS_PECI=yCONFIG_PMBUS=yCONFIG_SENSORS_PMBUS=y CONFIG_SENSORS_ADM1266=y CONFIG_SENSORS_ADM1275=y CONFIG_SENSORS_BEL_PFE=y CONFIG_SENSORS_BPA_RS600=y CONFIG_SENSORS_DELTA_AHE50DC_FAN=y CONFIG_SENSORS_FSP_3Y=y CONFIG_SENSORS_IBM_CFFPS=y CONFIG_SENSORS_DPS920AB=y CONFIG_SENSORS_INSPUR_IPSPS=y CONFIG_SENSORS_IR35221=y CONFIG_SENSORS_IR36021=y CONFIG_SENSORS_IR38064=y CONFIG_SENSORS_IR38064_REGULATOR=y CONFIG_SENSORS_IRPS5401=y CONFIG_SENSORS_ISL68137=y CONFIG_SENSORS_LM25066=y CONFIG_SENSORS_LM25066_REGULATOR=y CONFIG_SENSORS_LT7182S=y CONFIG_SENSORS_LTC2978=y CONFIG_SENSORS_LTC2978_REGULATOR=y CONFIG_SENSORS_LTC3815=y CONFIG_SENSORS_MAX15301=y CONFIG_SENSORS_MAX16064=y CONFIG_SENSORS_MAX16601=y CONFIG_SENSORS_MAX20730=y CONFIG_SENSORS_MAX20751=y CONFIG_SENSORS_MAX31785=y CONFIG_SENSORS_MAX34440=y CONFIG_SENSORS_MAX8688=y CONFIG_SENSORS_MP2888=y CONFIG_SENSORS_MP2975=y CONFIG_SENSORS_MP5023=y CONFIG_SENSORS_PIM4328=y CONFIG_SENSORS_PLI1209BC=y CONFIG_SENSORS_PLI1209BC_REGULATOR=y CONFIG_SENSORS_PM6764TR=y CONFIG_SENSORS_PXE1610=y CONFIG_SENSORS_Q54SJ108A2=y CONFIG_SENSORS_STPDDC60=y CONFIG_SENSORS_TPS40422=y CONFIG_SENSORS_TPS53679=y CONFIG_SENSORS_TPS546D24=y CONFIG_SENSORS_UCD9000=y CONFIG_SENSORS_UCD9200=y CONFIG_SENSORS_XDPE152=y CONFIG_SENSORS_XDPE122=y CONFIG_SENSORS_XDPE122_REGULATOR=y CONFIG_SENSORS_ZL6100=y CONFIG_SENSORS_PWM_FAN=y CONFIG_SENSORS_RASPBERRYPI_HWMON=y CONFIG_SENSORS_SL28CPLD=y CONFIG_SENSORS_SBTSI=y CONFIG_SENSORS_SBRMI=y CONFIG_SENSORS_SHT15=y CONFIG_SENSORS_SHT21=y CONFIG_SENSORS_SHT3x=y CONFIG_SENSORS_SHT4x=y CONFIG_SENSORS_SHTC1=y CONFIG_SENSORS_SIS5595=y CONFIG_SENSORS_SY7636A=y CONFIG_SENSORS_DME1737=y CONFIG_SENSORS_EMC1403=y CONFIG_SENSORS_EMC2103=y CONFIG_SENSORS_EMC2305=y CONFIG_SENSORS_EMC6W201=y CONFIG_SENSORS_SMSC47M1=y CONFIG_SENSORS_SMSC47M192=y CONFIG_SENSORS_SMSC47B397=y CONFIG_SENSORS_SCH56XX_COMMON=y CONFIG_SENSORS_SCH5627=y CONFIG_SENSORS_SCH5636=y CONFIG_SENSORS_STTS751=y CONFIG_SENSORS_SMM665=y CONFIG_SENSORS_ADC128D818=y CONFIG_SENSORS_ADS7828=y CONFIG_SENSORS_ADS7871=y CONFIG_SENSORS_AMC6821=y CONFIG_SENSORS_INA209=y CONFIG_SENSORS_INA2XX=y CONFIG_SENSORS_INA238=y CONFIG_SENSORS_INA3221=y CONFIG_SENSORS_TC74=y CONFIG_SENSORS_THMC50=y CONFIG_SENSORS_TMP102=y CONFIG_SENSORS_TMP103=y CONFIG_SENSORS_TMP108=y CONFIG_SENSORS_TMP401=y CONFIG_SENSORS_TMP421=y CONFIG_SENSORS_TMP464=y CONFIG_SENSORS_TMP513=y CONFIG_SENSORS_VIA686A=y CONFIG_SENSORS_VT1211=y CONFIG_SENSORS_VT8231=y CONFIG_SENSORS_W83773G=y CONFIG_SENSORS_W83781D=y CONFIG_SENSORS_W83791D=y CONFIG_SENSORS_W83792D=y CONFIG_SENSORS_W83793=y CONFIG_SENSORS_W83795=y CONFIG_SENSORS_W83795_FANCTRL=y CONFIG_SENSORS_W83L785TS=y CONFIG_SENSORS_W83L786NG=y CONFIG_SENSORS_W83627HF=y CONFIG_SENSORS_W83627EHF=y CONFIG_SENSORS_WM831X=y CONFIG_SENSORS_WM8350=y CONFIG_SENSORS_INTEL_M10_BMC_HWMON=y CONFIG_THERMAL=yCONFIG_THERMAL_NETLINK=y CONFIG_THERMAL_STATISTICS=y CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=yCONFIG_THERMAL_OF=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set CONFIG_THERMAL_GOV_FAIR_SHARE=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_CPU_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_THERMAL_EMULATION=y CONFIG_THERMAL_MMIO=y CONFIG_HISI_THERMAL=yCONFIG_IMX_THERMAL=y CONFIG_IMX_SC_THERMAL=y CONFIG_IMX8MM_THERMAL=y CONFIG_K3_THERMAL=y CONFIG_MAX77620_THERMAL=y CONFIG_QORIQ_THERMAL=y CONFIG_SPEAR_THERMAL=y CONFIG_SUN8I_THERMAL=y CONFIG_ROCKCHIP_THERMAL=y CONFIG_RCAR_THERMAL=y CONFIG_RCAR_GEN3_THERMAL=y CONFIG_RZG2L_THERMAL=y CONFIG_KIRKWOOD_THERMAL=y CONFIG_DOVE_THERMAL=y CONFIG_ARMADA_THERMAL=y CONFIG_DA9062_THERMAL=y CONFIG_MTK_THERMAL=y
#
# Intel thermal drivers
#
#
# ACPI INT340X thermal drivers
#
# end of ACPI INT340X thermal drivers # end of Intel thermal drivers
#
# Broadcom thermal drivers
#CONFIG_BCM2711_THERMAL=yCONFIG_BCM2835_THERMAL=yCONFIG_BRCMSTB_THERMAL=yCONFIG_BCM_NS_THERMAL=yCONFIG_BCM_SR_THERMAL=y
# end of Broadcom thermal drivers
#
# Texas Instruments thermal drivers
#CONFIG_TI_SOC_THERMAL=yCONFIG_TI_THERMAL=yCONFIG_OMAP3_THERMAL=yCONFIG_OMAP4_THERMAL=yCONFIG_OMAP5_THERMAL=yCONFIG_DRA752_THERMAL=y
# end of Texas Instruments thermal drivers
#
# Samsung thermal drivers
#CONFIG_EXYNOS_THERMAL=y
# end of Samsung thermal drivers
#
# NVIDIA Tegra thermal drivers
#CONFIG_TEGRA_SOCTHERM=yCONFIG_TEGRA_BPMP_THERMAL=yCONFIG_TEGRA30_TSENSOR=y
# end of NVIDIA Tegra thermal drivers
CONFIG_GENERIC_ADC_THERMAL=y
#
# Qualcomm thermal drivers
#CONFIG_QCOM_TSENS=yCONFIG_QCOM_SPMI_ADC_TM5=yCONFIG_QCOM_SPMI_TEMP_ALARM=y
# end of Qualcomm thermal drivers
CONFIG_UNIPHIER_THERMAL=yCONFIG_SPRD_THERMAL=yCONFIG_KHADAS_MCU_FAN_THERMAL=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=yCONFIG_WATCHDOG_NOWAYOUT=yCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=yCONFIG_WATCHDOG_HRTIMER_PRETIMEOUT=y
#
# Watchdog Pretimeout Governors
#CONFIG_WATCHDOG_PRETIMEOUT_GOV=y CONFIG_WATCHDOG_PRETIMEOUT_GOV_SEL=m CONFIG_WATCHDOG_PRETIMEOUT_GOV_NOOP=y CONFIG_WATCHDOG_PRETIMEOUT_GOV_PANIC=y
# CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_NOOP is not set CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=yCONFIG_SOFT_WATCHDOG_PRETIMEOUT=yCONFIG_BD957XMUF_WATCHDOG=yCONFIG_DA9052_WATCHDOG=yCONFIG_DA9055_WATCHDOG=yCONFIG_DA9063_WATCHDOG=yCONFIG_DA9062_WATCHDOG=yCONFIG_GPIO_WATCHDOG=yCONFIG_GPIO_WATCHDOG_ARCH_INITCALL=yCONFIG_MENF21BMC_WATCHDOG=yCONFIG_MENZ069_WATCHDOG=yCONFIG_WM831X_WATCHDOG=yCONFIG_WM8350_WATCHDOG=yCONFIG_XILINX_WATCHDOG=yCONFIG_ZIIRAVE_WATCHDOG=yCONFIG_RAVE_SP_WATCHDOG=yCONFIG_MLX_WDT=yCONFIG_SL28CPLD_WATCHDOG=yCONFIG_ARMADA_37XX_WATCHDOG=yCONFIG_ASM9260_WATCHDOG=yCONFIG_AT91RM9200_WATCHDOG=yCONFIG_AT91SAM9X_WATCHDOG=yCONFIG_SAMA5D4_WATCHDOG=yCONFIG_CADENCE_WATCHDOG=yCONFIG_FTWDT010_WATCHDOG=yCONFIG_S3C2410_WATCHDOG=yCONFIG_DW_WATCHDOG=yCONFIG_EP93XX_WATCHDOG=yCONFIG_OMAP_WATCHDOG=yCONFIG_PNX4008_WATCHDOG=yCONFIG_DAVINCI_WATCHDOG=yCONFIG_K3_RTI_WATCHDOG=yCONFIG_RN5T618_WATCHDOG=yCONFIG_SUNXI_WATCHDOG=yCONFIG_NPCM7XX_WATCHDOG=yCONFIG_TWL4030_WATCHDOG=yCONFIG_STMP3XXX_RTC_WATCHDOG=yCONFIG_TS4800_WATCHDOG=yCONFIG_TS72XX_WATCHDOG=yCONFIG_MAX63XX_WATCHDOG=yCONFIG_MAX77620_WATCHDOG=yCONFIG_IMX2_WDT=yCONFIG_IMX7ULP_WDT=yCONFIG_RETU_WATCHDOG=yCONFIG_MOXART_WDT=yCONFIG_ST_LPC_WATCHDOG=yCONFIG_TEGRA_WATCHDOG=yCONFIG_QCOM_WDT=yCONFIG_MESON_GXBB_WATCHDOG=yCONFIG_MESON_WATCHDOG=yCONFIG_MEDIATEK_WATCHDOG=yCONFIG_DIGICOLOR_WATCHDOG=yCONFIG_LPC18XX_WATCHDOG=yCONFIG_RENESAS_WDT=yCONFIG_RENESAS_RZAWDT=yCONFIG_RENESAS_RZN1WDT=yCONFIG_RENESAS_RZG2LWDT=yCONFIG_ASPEED_WATCHDOG=yCONFIG_STPMIC1_WATCHDOG=yCONFIG_UNIPHIER_WATCHDOG=yCONFIG_RTD119X_WATCHDOG=yCONFIG_REALTEK_OTTO_WDT=yCONFIG_SPRD_WATCHDOG=yCONFIG_PM8916_WATCHDOG=yCONFIG_VISCONTI_WATCHDOG=yCONFIG_MSC313E_WATCHDOG=yCONFIG_APPLE_WATCHDOG=yCONFIG_SUNPLUS_WATCHDOG=yCONFIG_ALIM7101_WDT=yCONFIG_SC520_WDT=yCONFIG_I6300ESB_WDT=yCONFIG_KEMPLD_WDT=yCONFIG_RDC321X_WDT=yCONFIG_BCM47XX_WDT=yCONFIG_BCM2835_WDT=yCONFIG_BCM_KONA_WDT=yCONFIG_BCM_KONA_WDT_DEBUG=yCONFIG_BCM7038_WDT=yCONFIG_IMGPDC_WDT=yCONFIG_MPC5200_WDT=yCONFIG_MEN_A21_WDT=yCONFIG_UML_WATCHDOG=y
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=yCONFIG_WDTPCI=y
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=yCONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_BLOCKIO=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=yCONFIG_SSB_B43_PCI_BRIDGE=yCONFIG_SSB_PCMCIAHOST_POSSIBLE=yCONFIG_SSB_PCMCIAHOST=yCONFIG_SSB_SDIOHOST_POSSIBLE=yCONFIG_SSB_SDIOHOST=yCONFIG_SSB_HOST_SOC=yCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=yCONFIG_SSB_DRIVER_GPIO=yCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_BLOCKIO=yCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=yCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_PCI=yCONFIG_BCMA_DRIVER_MIPS=yCONFIG_BCMA_PFLASH=yCONFIG_BCMA_SFLASH=yCONFIG_BCMA_NFLASH=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=yCONFIG_BCMA_DEBUG=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_ACT8945A=yCONFIG_MFD_AS3711=yCONFIG_MFD_SMPRO=yCONFIG_MFD_AS3722=yCONFIG_PMIC_ADP5520=yCONFIG_MFD_AAT2870_CORE=yCONFIG_MFD_AT91_USART=yCONFIG_MFD_ATMEL_FLEXCOM=yCONFIG_MFD_ATMEL_HLCDC=yCONFIG_MFD_ATMEL_SMC=yCONFIG_MFD_BCM590XX=yCONFIG_MFD_BD9571MWV=yCONFIG_MFD_AXP20X=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_CROS_EC_DEV=yCONFIG_MFD_MADERA=yCONFIG_MFD_MADERA_I2C=yCONFIG_MFD_MADERA_SPI=yCONFIG_MFD_CS47L15=yCONFIG_MFD_CS47L35=yCONFIG_MFD_CS47L85=yCONFIG_MFD_CS47L90=yCONFIG_MFD_CS47L92=yCONFIG_MFD_ASIC3=yCONFIG_PMIC_DA903X=yCONFIG_PMIC_DA9052=yCONFIG_MFD_DA9052_SPI=yCONFIG_MFD_DA9052_I2C=yCONFIG_MFD_DA9055=yCONFIG_MFD_DA9062=yCONFIG_MFD_DA9063=yCONFIG_MFD_DA9150=yCONFIG_MFD_DLN2=yCONFIG_MFD_ENE_KB3930=yCONFIG_MFD_EXYNOS_LPASS=yCONFIG_MFD_GATEWORKS_GSC=yCONFIG_MFD_MC13XXX=yCONFIG_MFD_MC13XXX_SPI=yCONFIG_MFD_MC13XXX_I2C=yCONFIG_MFD_MP2629=yCONFIG_MFD_MXS_LRADC=yCONFIG_MFD_MX25_TSADC=yCONFIG_MFD_HI6421_PMIC=yCONFIG_MFD_HI6421_SPMI=yCONFIG_MFD_HI655X_PMIC=yCONFIG_HTC_PASIC3=yCONFIG_LPC_ICH=yCONFIG_LPC_SCH=yCONFIG_INTEL_SOC_PMIC=yCONFIG_MFD_IQS62X=yCONFIG_MFD_JANZ_CMODIO=yCONFIG_MFD_KEMPLD=yCONFIG_MFD_88PM800=yCONFIG_MFD_88PM805=yCONFIG_MFD_88PM860X=yCONFIG_MFD_MAX14577=yCONFIG_MFD_MAX77620=yCONFIG_MFD_MAX77650=yCONFIG_MFD_MAX77686=yCONFIG_MFD_MAX77693=yCONFIG_MFD_MAX77714=yCONFIG_MFD_MAX77843=yCONFIG_MFD_MAX8907=yCONFIG_MFD_MAX8925=yCONFIG_MFD_MAX8997=yCONFIG_MFD_MAX8998=yCONFIG_MFD_MT6360=yCONFIG_MFD_MT6370=yCONFIG_MFD_MT6397=yCONFIG_MFD_MENF21BMC=yCONFIG_MFD_OCELOT=yCONFIG_EZX_PCAP=yCONFIG_MFD_CPCAP=yCONFIG_MFD_VIPERBOARD=yCONFIG_MFD_NTXEC=yCONFIG_MFD_RETU=yCONFIG_MFD_PCF50633=yCONFIG_PCF50633_ADC=yCONFIG_PCF50633_GPIO=yCONFIG_UCB1400_CORE=yCONFIG_MFD_PM8XXX=yCONFIG_MFD_SPMI_PMIC=yCONFIG_MFD_SY7636A=yCONFIG_MFD_RDC321X=yCONFIG_MFD_RT4831=yCONFIG_MFD_RT5033=yCONFIG_MFD_RT5120=yCONFIG_MFD_RC5T583=yCONFIG_MFD_RK808=yCONFIG_MFD_RN5T618=yCONFIG_MFD_SEC_CORE=yCONFIG_MFD_SI476X_CORE=yCONFIG_MFD_SIMPLE_MFD_I2C=yCONFIG_MFD_SL28CPLD=yCONFIG_MFD_SM501=yCONFIG_MFD_SM501_GPIO=yCONFIG_MFD_SKY81452=yCONFIG_MFD_SC27XX_PMIC=yCONFIG_ABX500_CORE=yCONFIG_MFD_STMPE=y
#
# STMicroelectronics STMPE Interface Drivers
#CONFIG_STMPE_I2C=yCONFIG_STMPE_SPI=y
# end of STMicroelectronics STMPE Interface Drivers
7,639 lines not shown · raw message
Part of this message is not shown here. View the raw message.
kernel test robot
build botRe: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm
In reply to Danilo KrummrichThank you for the patch! Perhaps something to improve:
Hi Danilo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d]
url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 base: 0b45ac1170ea6416bc1d36798414c04870cd356d patch link: https://lore.kernel.org/r/20230118061256.2689-12-dakr%40redhat.com patch subject: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm config: arc-randconfig-s051-20230119 (https://download.01.org/0day-ci/archive/20230120/[email protected]/config) compiler: arc-elf-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/intel-lab-lkp/linux/commit/5fca471110e52d7c8db10f9ff483134a546174a1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552
git checkout 5fca471110e52d7c8db10f9ff483134a546174a1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c:413:34: sparse: sparse: non size-preserving integer to pointer cast
vim +413 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
406
407 static int
408 nvkm_uvmm_mthd_raw_unmap(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
409 {
410 struct nvkm_vmm *vmm = uvmm->vmm;
411 struct nvkm_vma *vma;
412
> 413 vma = (struct nvkm_vma *)args->handle;
414 if (!vma)
415 return -EINVAL;
416
417 mutex_lock(&vmm->mutex);
418 if (vma->busy) {
419 VMM_DEBUG(vmm, "denied %016llx: %d", vma->addr, vma->busy);
420 mutex_unlock(&vmm->mutex);
421 return -ENOENT;
422 }
423 vma->sparse = args->sparse;
424 nvkm_vmm_raw_unmap_locked(vmm, vma);
425 mutex_unlock(&vmm->mutex);
426
427 args->handle = 0;
428 kfree(vma);
429 return 0;
430 }
431
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
PATCH 12/14 drm/nouveau: implement uvmm for user mode bindings
In reply to Danilo Krummrichuvmm provides the driver abstraction around the DRM GPU VA manager connecting it to the nouveau infrastructure.
It handles the split and merge operations provided by the DRM GPU VA manager for map operations colliding with existent mappings and takes care of the driver specific locking around the DRM GPU VA manager.
--- drivers/gpu/drm/nouveau/Kbuild | 1 + drivers/gpu/drm/nouveau/nouveau_abi16.c | 7 + drivers/gpu/drm/nouveau/nouveau_bo.c | 147 +++--- drivers/gpu/drm/nouveau/nouveau_bo.h | 2 +- drivers/gpu/drm/nouveau/nouveau_drm.c | 2 + drivers/gpu/drm/nouveau/nouveau_drv.h | 48 ++ drivers/gpu/drm/nouveau/nouveau_gem.c | 51 ++- drivers/gpu/drm/nouveau/nouveau_mem.h | 5 + drivers/gpu/drm/nouveau/nouveau_prime.c | 2 +- drivers/gpu/drm/nouveau/nouveau_uvmm.c | 575 ++++++++++++++++++++++++ drivers/gpu/drm/nouveau/nouveau_uvmm.h | 68 +++ 11 files changed, 835 insertions(+), 73 deletions(-) create mode 100644 drivers/gpu/drm/nouveau/nouveau_uvmm.c create mode 100644 drivers/gpu/drm/nouveau/nouveau_uvmm.h
drivers/gpu/drm/nouveau/Kbuild +1 -0
@@ -47,6 +47,7 @@ nouveau-y += nouveau_prime.o nouveau-y += nouveau_sgdma.o nouveau-y += nouveau_ttm.o nouveau-y += nouveau_vmm.o +nouveau-y += nouveau_uvmm.o # DRM - modesetting nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
drivers/gpu/drm/nouveau/nouveau_abi16.c +7 -0
@@ -261,6 +261,13 @@ nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS)if (!drm->channel)return nouveau_abi16_put (abi16, -ENODEV ); +/* If uvmm wasn't initialized until now disable it completely to prevent +* userspace from mixing up UAPIs. +* +* The client lock is already acquired by nouveau_abi16_get(). +*/ +__nouveau_cli_uvmm_disable (cli); + device = &abi16->device; engine =NV_DEVICE_HOST_RUNLIST_ENGINES_GR ;
drivers/gpu/drm/nouveau/nouveau_bo.c +92 -55
185 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_bo.h +1 -1
@@ -73,7 +73,7 @@ extern struct ttm_device_funcs nouveau_bo_driver;void nouveau_bo_move_init (struct nouveau_drm *);struct nouveau_bo *nouveau_bo_alloc (struct nouveau_cli *,u64 *size,int *align, -u32 domain,u32 tile_mode,u32 tile_flags); +u32 domain,u32 tile_mode,u32 tile_flags,bool internal);int nouveau_bo_init (struct nouveau_bo *,u64 size,int align,u32 domain,struct sg_table *sg,struct dma_resv *robj); int nouveau_bo_new(struct nouveau_cli *, u64 size, int align, u32 domain,
drivers/gpu/drm/nouveau/nouveau_drm.c +2 -0
@@ -70,6 +70,7 @@#include "nouveau_platform.h" #include "nouveau_svm.h" #include "nouveau_dmem.h" +#include "nouveau_uvmm.h" DECLARE_DYNDBG_CLASSMAP(drm_debug_classes, DD_CLASS_TYPE_DISJOINT_BITS, 0, "DRM_UT_CORE",
@@ -192,6 +193,7 @@ nouveau_cli_fini(struct nouveau_cli *cli)WARN_ON (!list_empty (&cli->worker));usif_client_fini (cli); +nouveau_uvmm_fini (&cli->uvmm);nouveau_vmm_fini (&cli->svm);nouveau_vmm_fini (&cli->vmm);nvif_mmu_dtor (&cli->mmu);
drivers/gpu/drm/nouveau/nouveau_drv.h +48 -0
75 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_gem.c +35 -16
102 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_mem.h +5 -0
@@ -35,4 +35,9 @@ int nouveau_mem_vram(struct ttm_resource *, bool contig, u8 page);int nouveau_mem_host (struct ttm_resource *,struct ttm_tt *);void nouveau_mem_fini (struct nouveau_mem *);int nouveau_mem_map (struct nouveau_mem *,struct nvif_vmm *,struct nvif_vma *); +int +nouveau_mem_map_fixed (struct nouveau_mem *mem, +struct nvif_vmm *vmm, +u8 kind,u64 addr, +u64 offset,u64 range);#endif
drivers/gpu/drm/nouveau/nouveau_prime.c +1 -1
@@ -50,7 +50,7 @@ struct drm_gem_object *nouveau_gem_prime_import_sg_table(struct drm_device *dev,dma_resv_lock (robj,NULL ); nvbo =nouveau_bo_alloc (&drm->client, &size, &align, -NOUVEAU_GEM_DOMAIN_GART ,0 ,0 ); +NOUVEAU_GEM_DOMAIN_GART ,0 ,0 , true);if (IS_ERR (nvbo)) { obj =ERR_CAST (nvbo); goto unlock;
drivers/gpu/drm/nouveau/nouveau_uvmm.c new file +575 -0
575 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_uvmm.h new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.39.0
PATCH 13/14 drm/nouveau: implement new VM_BIND UAPI
In reply to Danilo KrummrichThis commit provides the implementation for the new uapi motivated by the Vulkan API. It allows user mode drivers (UMDs) to:
1) Initialize a GPU virtual address (VA) space via the new DRM_IOCTL_NOUVEAU_VM_INIT ioctl for UMDs to specify the portion of VA space managed by the kernel and userspace, respectively.
2) Allocate and free a VA space region as well as bind and unbind memory to the GPUs VA space via the new DRM_IOCTL_NOUVEAU_VM_BIND ioctl. UMDs can request the named operations to be processed either synchronously or asynchronously. It supports DRM syncobjs (incl. timelines) as synchronization mechanism. The management of the GPU VA mappings is implemented with the DRM GPU VA manager.
3) Execute push buffers with the new DRM_IOCTL_NOUVEAU_EXEC ioctl. The execution happens asynchronously. It supports DRM syncobj (incl. timelines) as synchronization mechanism. DRM GEM object locking is handled with drm_exec.
Both, DRM_IOCTL_NOUVEAU_VM_BIND and DRM_IOCTL_NOUVEAU_EXEC, use the DRM GPU scheduler for the asynchronous paths.
--- Documentation/gpu/driver-uapi.rst | 3 + drivers/gpu/drm/nouveau/Kbuild | 2 + drivers/gpu/drm/nouveau/Kconfig | 2 + drivers/gpu/drm/nouveau/nouveau_abi16.c | 16 + drivers/gpu/drm/nouveau/nouveau_abi16.h | 1 + drivers/gpu/drm/nouveau/nouveau_drm.c | 23 +- drivers/gpu/drm/nouveau/nouveau_drv.h | 9 +- drivers/gpu/drm/nouveau/nouveau_exec.c | 310 ++++++++++ drivers/gpu/drm/nouveau/nouveau_exec.h | 55 ++ drivers/gpu/drm/nouveau/nouveau_sched.c | 780 ++++++++++++++++++++++++ drivers/gpu/drm/nouveau/nouveau_sched.h | 98 +++ 11 files changed, 1295 insertions(+), 4 deletions(-) create mode 100644 drivers/gpu/drm/nouveau/nouveau_exec.c create mode 100644 drivers/gpu/drm/nouveau/nouveau_exec.h create mode 100644 drivers/gpu/drm/nouveau/nouveau_sched.c create mode 100644 drivers/gpu/drm/nouveau/nouveau_sched.h
Documentation/gpu/driver-uapi.rst +3 -0
@@ -13,4 +13,7 @@ drm/nouveau uAPI VM_BIND / EXEC uAPI ------------------- +.. kernel-doc:: drivers/gpu/drm/nouveau/nouveau_exec.c + :doc: Overview + .. kernel-doc:: include/uapi/drm/nouveau_drm.h
drivers/gpu/drm/nouveau/Kbuild +2 -0
@@ -47,6 +47,8 @@ nouveau-y += nouveau_prime.o nouveau-y += nouveau_sgdma.o nouveau-y += nouveau_ttm.o nouveau-y += nouveau_vmm.o +nouveau-y += nouveau_exec.o +nouveau-y += nouveau_sched.o nouveau-y += nouveau_uvmm.o # DRM - modesetting
drivers/gpu/drm/nouveau/Kconfig +2 -0
@@ -10,6 +10,8 @@ config DRM_NOUVEAU select DRM_KMS_HELPER select DRM_TTM select DRM_TTM_HELPER + select DRM_EXEC + select DRM_SCHED select I2C select I2C_ALGOBIT select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
drivers/gpu/drm/nouveau/nouveau_abi16.c +16 -0
@@ -35,6 +35,7 @@#include "nouveau_chan.h" #include "nouveau_abi16.h" #include "nouveau_vmm.h" +#include "nouveau_sched.h" static struct nouveau_abi16 *nouveau_abi16 (struct drm_file *file_priv)
@@ -125,6 +126,17 @@ nouveau_abi16_chan_fini(struct nouveau_abi16 *abi16, {struct nouveau_abi16_ntfy *ntfy, *temp; +/* When a client exits without waiting for it's queued up jobs to +* finish it might happen that we fault the channel. This is due to +* drm_file_free() calling drm_gem_release() before the postclose() +* callback. Hence, we can't tear down this scheduler entity before +* uvmm mappings are unmapped. Currently, we can't detect this case. +* +* However, this should be rare and harmless, since the channel isn't +* needed anymore. +*/ +nouveau_sched_entity_fini (&chan->sched_entity); +/* wait for all activity to stop before cleaning up */ if (chan->chan)nouveau_channel_idle (chan->chan);
@@ -311,6 +323,10 @@ nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS)if (ret) goto done; + ret =nouveau_sched_entity_init (&chan->sched_entity, &drm->sched); +if (ret) + goto done; + init->channel = chan->chan->chid;if (device->info.family >=NV_DEVICE_INFO_V0_TESLA )
drivers/gpu/drm/nouveau/nouveau_abi16.h +1 -0
@@ -26,6 +26,7 @@ struct nouveau_abi16_chan {struct nouveau_bo *ntfy;struct nouveau_vma *ntfy_vma;struct nvkm_mm heap; +struct nouveau_sched_entity sched_entity; };struct nouveau_abi16 {
drivers/gpu/drm/nouveau/nouveau_drm.c +21 -2
@@ -71,6 +71,7 @@#include "nouveau_svm.h" #include "nouveau_dmem.h" #include "nouveau_uvmm.h" +#include "nouveau_sched.h" DECLARE_DYNDBG_CLASSMAP(drm_debug_classes, DD_CLASS_TYPE_DISJOINT_BITS, 0, "DRM_UT_CORE",
@@ -192,6 +193,7 @@ nouveau_cli_fini(struct nouveau_cli *cli)flush_work (&cli->work);WARN_ON (!list_empty (&cli->worker)); +nouveau_sched_entity_fini (&cli->sched_entity);usif_client_fini (cli);nouveau_uvmm_fini (&cli->uvmm);nouveau_vmm_fini (&cli->svm);
@@ -299,6 +301,11 @@ nouveau_cli_init(struct nouveau_drm *drm, const char *sname, } cli->mem = &mems[ret]; + + ret =nouveau_sched_entity_init (&cli->sched_entity, &drm->sched); +if (ret) + goto done; +return 0 ; done:if (ret)
@@ -611,8 +618,13 @@ nouveau_drm_device_init(struct drm_device *dev)pm_runtime_put (dev->dev); } -return 0 ; + ret =nouveau_sched_init (&drm->sched, drm); +if (ret) + goto fail_sched_init; +return 0 ; +fail_sched_init: +nouveau_display_fini (dev, false, false); fail_dispinit:nouveau_display_destroy (dev); fail_dispctor:
@@ -637,6 +649,8 @@ nouveau_drm_device_fini(struct drm_device *dev)struct nouveau_cli *cli, *temp_cli;struct nouveau_drm *drm =nouveau_drm (dev); +nouveau_sched_fini (&drm->sched); +if (nouveau_pmops_runtime ()) {pm_runtime_get_sync (dev->dev);pm_runtime_forbid (dev->dev);
@@ -1177,6 +1191,9 @@ nouveau_ioctls[] = {DRM_IOCTL_DEF_DRV (NOUVEAU_GEM_CPU_PREP , nouveau_gem_ioctl_cpu_prep,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (NOUVEAU_GEM_CPU_FINI , nouveau_gem_ioctl_cpu_fini,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (NOUVEAU_GEM_INFO , nouveau_gem_ioctl_info,DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (NOUVEAU_VM_INIT , nouveau_ioctl_vm_init,DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (NOUVEAU_VM_BIND , nouveau_ioctl_vm_bind,DRM_RENDER_ALLOW ), + DRM_IOCTL_DEF_DRV(NOUVEAU_EXEC, nouveau_ioctl_exec, DRM_RENDER_ALLOW), };long
@@ -1224,7 +1241,9 @@ nouveau_driver_fops = {static struct drm_driver driver_stub = { .driver_features = -DRIVER_GEM |DRIVER_MODESET |DRIVER_RENDER +DRIVER_GEM |DRIVER_MODESET |DRIVER_RENDER | +DRIVER_SYNCOBJ |DRIVER_SYNCOBJ_TIMELINE | +DRIVER_GEM_GPUVA #if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT) |DRIVER_KMS_LEGACY_CONTEXT #endif
drivers/gpu/drm/nouveau/nouveau_drv.h +7 -2
@@ -10,8 +10,8 @@#define DRIVER_DATE "20120801"#define DRIVER_MAJOR 1 -#define DRIVER_MINOR 3 -#define DRIVER_PATCHLEVEL 1 +#define DRIVER_MINOR 4 +#define DRIVER_PATCHLEVEL 0/* * 1.1.1:
@@ -63,6 +63,7 @@ struct platform_device;#include "nouveau_fence.h" #include "nouveau_bios.h" +#include "nouveau_sched.h" #include "nouveau_vmm.h" #include "nouveau_uvmm.h"
@@ -94,6 +95,8 @@ struct nouveau_cli {struct nouveau_vmm svm;struct nouveau_uvmm uvmm; +struct nouveau_sched_entity sched_entity; +const struct nvif_mclass *mem;struct list_head head;
@@ -305,6 +308,8 @@ struct nouveau_drm {struct mutex lock;bool component_registered; } audio; + +struct drm_gpu_scheduler sched; }; static inline struct nouveau_drm *
drivers/gpu/drm/nouveau/nouveau_exec.c new file +310 -0
310 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_exec.h new file +55 -0
55 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_sched.c new file +780 -0
780 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_sched.h new file +98 -0
98 lines not on this page · raw message
Signature · 1 line
2.39.0