Restricted DMA
Subsystems (14)
v7 cover Restricted DMA
This series implements mitigations for lack of DMA access control on systems without an IOMMU, which could result in the DMA accessing the system memory at unexpected times and/or unexpected addresses, possibly leading to data leakage or corruption.
For example, we plan to use the PCI-e bus for Wi-Fi and that PCI-e bus is not behind an IOMMU. As PCI-e, by design, gives the device full access to system memory, a vulnerability in the Wi-Fi firmware could easily escalate to a full system exploit (remote wifi exploits: [1a], [1b] that shows a full chain of exploits; [2], [3]).
To mitigate the security concerns, we introduce restricted DMA. Restricted DMA utilizes the existing swiotlb to bounce streaming DMA in and out of a specially allocated region and does memory allocation from the same region. The feature on its own provides a basic level of protection against the DMA overwriting buffer contents at unexpected times. However, to protect against general data leakage and system memory corruption, the system needs to provide a way to restrict the DMA to a predefined memory region (this is usually done at firmware level, e.g. MPU in ATF on some ARM platforms [4]).
[1a] https://googleprojectzero.blogspot.com/2017/04/over-air-exploiting-broadcoms-wi-fi_4.html
[1b] https://googleprojectzero.blogspot.com/2017/04/over-air-exploiting-broadcoms-wi-fi_11.html
[2] https://blade.tencent.com/en/advisories/qualpwn/
[3] https://www.bleepingcomputer.com/news/security/vulnerabilities-found-in-highly-popular-firmware-for-wifi-chips/
[4] https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/mediatek/mt8183/drivers/emi_mpu/emi_mpu.c#L132
v7:
Fix debugfs, PageHighMem and comment style in rmem_swiotlb_device_init
v6:
Address the comments in v5
https://lore.kernel.org/patchwork/cover/1423201/
v5:
Rebase on latest linux-next
https://lore.kernel.org/patchwork/cover/1416899/
v4:
- Fix spinlock bad magic
- Use rmem->name for debugfs entry
- Address the comments in v3
https://lore.kernel.org/patchwork/cover/1378113/
v3:
Using only one reserved memory region for both streaming DMA and memory allocation.
https://lore.kernel.org/patchwork/cover/1360992/
v2:
Building on top of swiotlb.
https://lore.kernel.org/patchwork/cover/1280705/
v1:
Using dma_map_ops.
https://lore.kernel.org/patchwork/cover/1271660/
Claire Chang (15):
swiotlb: Refactor swiotlb init functions
swiotlb: Refactor swiotlb_create_debugfs
swiotlb: Add DMA_RESTRICTED_POOL
swiotlb: Add restricted DMA pool initialization
swiotlb: Add a new get_io_tlb_mem getter
swiotlb: Update is_swiotlb_buffer to add a struct device argument
swiotlb: Update is_swiotlb_active to add a struct device argument
swiotlb: Bounce data from/to restricted DMA pool if available
swiotlb: Move alloc_size to find_slots
swiotlb: Refactor swiotlb_tbl_unmap_single
dma-direct: Add a new wrapper __dma_direct_free_pages()
swiotlb: Add restricted DMA alloc/free support.
dma-direct: Allocate memory from restricted DMA pool if available
dt-bindings: of: Add restricted DMA pool
of: Add plumbing for restricted DMA pool
.../reserved-memory/reserved-memory.txt | 27 ++ drivers/gpu/drm/i915/gem/i915_gem_internal.c | 2 +- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- drivers/iommu/dma-iommu.c | 12 +- drivers/of/address.c | 25 ++ drivers/of/device.c | 3 + drivers/of/of_private.h | 5 + drivers/pci/xen-pcifront.c | 2 +- drivers/xen/swiotlb-xen.c | 2 +- include/linux/device.h | 4 + include/linux/swiotlb.h | 41 ++- kernel/dma/Kconfig | 14 + kernel/dma/direct.c | 63 +++-- kernel/dma/direct.h | 9 +- kernel/dma/swiotlb.c | 242 +++++++++++++----- 15 files changed, 356 insertions(+), 97 deletions(-)
Signature · 6 lines
2.31.1.751.gd2f1c929bd-goog _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 1/15 swiotlb: Refactor swiotlb init functions
Add a new function, swiotlb_init_io_tlb_mem, for the io_tlb_mem struct initialization to make the code reusable.
Note that we now also call set_memory_decrypted in swiotlb_init_with_tbl.
--- kernel/dma/swiotlb.c | 51 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 26 deletions(-)
kernel/dma/swiotlb.c +25 -26
@@ -168,9 +168,30 @@ void __init swiotlb_update_mem_attributes(void)memset (vaddr,0 , bytes); } -int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +static void swiotlb_init_io_tlb_mem (struct io_tlb_mem *mem,phys_addr_t start, +unsigned long nslabs,bool late_alloc) { +void *vaddr =phys_to_virt (start);unsigned long bytes = nslabs <<IO_TLB_SHIFT , i; + + mem->nslabs = nslabs; + mem->start = start; + mem->end = mem->start + bytes; + mem->index =0 ; + mem->late_alloc = late_alloc; +spin_lock_init (&mem->lock); +for (i =0 ; i < mem->nslabs; i++) { + mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); + mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; + mem->slots[i].alloc_size =0 ; + } + +set_memory_decrypted ((unsigned long )vaddr, bytes >>PAGE_SHIFT ); +memset (vaddr,0 , bytes); +} + +int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +{struct io_tlb_mem *mem;size_t alloc_size;
@@ -186,16 +207,8 @@ int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose)if (!mem)panic ("%s: Failed to allocate %zu bytes align=0x%lx\n" , __func__, alloc_size,PAGE_SIZE ); - mem->nslabs = nslabs; - mem->start =__pa (tlb); - mem->end = mem->start + bytes; - mem->index =0 ; -spin_lock_init (&mem->lock); -for (i =0 ; i < mem->nslabs; i++) { - mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); - mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; - mem->slots[i].alloc_size =0 ; - } + +swiotlb_init_io_tlb_mem (mem,__pa (tlb), nslabs, false); io_tlb_default_mem = mem;if (verbose)
@@ -282,7 +295,6 @@ swiotlb_late_init_with_default_size(size_t default_size)int swiotlb_late_init_with_tbl (char *tlb,unsigned long nslabs) { -unsigned long bytes = nslabs <<IO_TLB_SHIFT , i;struct io_tlb_mem *mem;if (swiotlb_force ==SWIOTLB_NO_FORCE )
@@ -297,20 +309,7 @@ swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs)if (!mem)return -ENOMEM ; - mem->nslabs = nslabs; - mem->start =virt_to_phys (tlb); - mem->end = mem->start + bytes; - mem->index =0 ; - mem->late_alloc =1 ; -spin_lock_init (&mem->lock); -for (i =0 ; i < mem->nslabs; i++) { - mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); - mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; - mem->slots[i].alloc_size =0 ; - } - -set_memory_decrypted ((unsigned long )tlb, bytes >>PAGE_SHIFT ); -memset (tlb,0 , bytes); +swiotlb_init_io_tlb_mem (mem,virt_to_phys (tlb), nslabs, true); io_tlb_default_mem = mem;swiotlb_print_info ();
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 29 lines · Claire Chang
Add a new function,
swiotlb_init_io_tlb_mem, for theio_tlb_memstruct initialization to make the code reusable.Note that we now also call
set_memory_decryptedinswiotlb_init_with_tbl.Signed-off-by Claire Chang <[email protected]>--- kernel/dma/swiotlb.c | 51 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 26 deletions(-)kernel/dma/swiotlb.c +8
-1@@ -168,9 +168,30 @@ void __init swiotlb_update_mem_attributes(void)memset (vaddr,0 , bytes); } -int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +static void swiotlb_init_io_tlb_mem (struct io_tlb_mem *mem,phys_addr_t start, +unsigned long nslabs,bool late_alloc) { +void *vaddr =phys_to_virt (start);unsigned long bytes = nslabs <<IO_TLB_SHIFT , i; + + mem->nslabs = nslabs; + mem->start = start; + mem->end = mem->start + bytes; + mem->index =0 ;
kernel/dma/swiotlb.c void __init swiotlb_update_mem_attributes(void) · line 190
Quoted 10 lines
kernel/dma/swiotlb.c +10
-0+ mem->late_alloc = late_alloc; +spin_lock_init (&mem->lock); +for (i =0 ; i < mem->nslabs; i++) { + mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); + mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; + mem->slots[i].alloc_size =0 ; + } + +set_memory_decrypted ((unsigned long )vaddr, bytes >>PAGE_SHIFT ); +memset (vaddr,0 , bytes);
You are doing an unconditional set_memory_decrypted() followed by a memset here, and then:
Quoted 13 lines
kernel/dma/swiotlb.c +4
-2+} + +int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +{struct io_tlb_mem *mem;size_t alloc_size;@@ -186,16 +207,8 @@ int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose)if (!mem)panic ("%s: Failed to allocate %zu bytes align=0x%lx\n" , __func__, alloc_size,PAGE_SIZE ); - mem->nslabs = nslabs; - mem->start =__pa (tlb);
kernel/dma/swiotlb.c int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose) · line 211
Quoted 10 lines
kernel/dma/swiotlb.c +2
-8- mem->end = mem->start + bytes; - mem->index =0 ; -spin_lock_init (&mem->lock); -for (i =0 ; i < mem->nslabs; i++) { - mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); - mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; - mem->slots[i].alloc_size =0 ; - } + +swiotlb_init_io_tlb_mem (mem,__pa (tlb), nslabs, false);
You convert this call site with swiotlb_init_io_tlb_mem() which did not do the set_memory_decrypted()+memset(). Is this okay or should swiotlb_init_io_tlb_mem() add an additional argument to do this conditionally?
Signature · 1 line
Florian
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 67 lines · Florian Fainelli
Quoted 29 lines · Claire Chang
Add a new function,
swiotlb_init_io_tlb_mem, for theio_tlb_memstruct initialization to make the code reusable.Note that we now also call
set_memory_decryptedinswiotlb_init_with_tbl.Signed-off-by Claire Chang <[email protected]>--- kernel/dma/swiotlb.c | 51 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 26 deletions(-)kernel/dma/swiotlb.c +8
-1@@ -168,9 +168,30 @@ void __init swiotlb_update_mem_attributes(void)memset (vaddr,0 , bytes); } -int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +static void swiotlb_init_io_tlb_mem (struct io_tlb_mem *mem,phys_addr_t start, +unsigned long nslabs,bool late_alloc) { +void *vaddr =phys_to_virt (start);unsigned long bytes = nslabs <<IO_TLB_SHIFT , i; + + mem->nslabs = nslabs; + mem->start = start; + mem->end = mem->start + bytes; + mem->index =0 ;kernel/dma/swiotlb.c void __init swiotlb_update_mem_attributes(void) · line 190
Quoted 10 lines
kernel/dma/swiotlb.c +10
-0+ mem->late_alloc = late_alloc; +spin_lock_init (&mem->lock); +for (i =0 ; i < mem->nslabs; i++) { + mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); + mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; + mem->slots[i].alloc_size =0 ; + } + +set_memory_decrypted ((unsigned long )vaddr, bytes >>PAGE_SHIFT ); +memset (vaddr,0 , bytes);You are doing an unconditional
set_memory_decrypted()followed by a memset here, and then:Quoted 20 lines
kernel/dma/swiotlb.c +4
-9+} + +int __init swiotlb_init_with_tbl (char *tlb,unsigned long nslabs,int verbose) +{struct io_tlb_mem *mem;size_t alloc_size;@@ -186,16 +207,8 @@ int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose)if (!mem)panic ("%s: Failed to allocate %zu bytes align=0x%lx\n" , __func__, alloc_size,PAGE_SIZE ); - mem->nslabs = nslabs; - mem->start =__pa (tlb); - mem->end = mem->start + bytes; - mem->index =0 ; -spin_lock_init (&mem->lock); -for (i =0 ; i < mem->nslabs; i++) { - mem->slots[i].list =IO_TLB_SEGSIZE -io_tlb_offset (i); - mem->slots[i].orig_addr =INVALID_PHYS_ADDR ; - mem->slots[i].alloc_size =0 ;
Quoted 8 lines
kernel/dma/swiotlb.c int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose) · line 211
Quoted 3 lines
kernel/dma/swiotlb.c +2
-1- } + +swiotlb_init_io_tlb_mem (mem,__pa (tlb), nslabs, false);You convert this call site with
swiotlb_init_io_tlb_mem()which did not do the set_memory_decrypted()+memset(). Is this okay or shouldswiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?
I'm actually not sure if this it okay. If not, will add an additional argument for it.
Quoted 2 lines
--
Florian
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 6 lines
Quoted 3 lines
do the set_memory_decrypted()+memset(). Is this okay or should
swiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?I'm actually not sure if this it okay. If not, will add an additional argument for it.
Any observations discovered? (Want to make sure my memory-cache has the correct semantics for set_memory_decrypted in mind).
Quoted 3 lines
Quoted 3 lines
--
Florian
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 7 lines
Quoted 4 lines
do the set_memory_decrypted()+memset(). Is this okay or should
swiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?I'm actually not sure if this it okay. If not, will add an additional argument for it.
Any observations discovered? (Want to make sure my memory-cache has the correct semantics for
set_memory_decryptedin mind).
It works fine on my arm64 device.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
--
Florian
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
In reply to Florian FainelliQuoted 4 lines · Florian Fainelli
You convert this call site with
swiotlb_init_io_tlb_mem()which did not do the set_memory_decrypted()+memset(). Is this okay or shouldswiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?
The zeroing is useful and was missing before. I think having a clean state here is the right thing.
Not sure about the set_memory_decrypted, swiotlb_update_mem_attributes kinda suggests it is too early to set the memory decrupted.
Adding Tom who should now about all this.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 6 lines · Christoph Hellwig
Quoted 4 lines · Florian Fainelli
You convert this call site with
swiotlb_init_io_tlb_mem()which did not do the set_memory_decrypted()+memset(). Is this okay or shouldswiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?
Quoted 7 lines
The zeroing is useful and was missing before. I think having a clean state here is the right thing.
Not sure about the
set_memory_decrypted,swiotlb_update_mem_attributeskinda suggests it is too early to set the memory decrupted.Adding Tom who should now about all this.
The reason for adding swiotlb_update_mem_attributes() was because having the call to set_memory_decrypted() in swiotlb_init_with_tbl() triggered a BUG_ON() related to interrupts not being enabled yet during boot. So that call had to be delayed until interrupts were enabled.
Thanks,
Tom
Quoted 1 line
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 13 lines · Tom Lendacky
Quoted 12 lines · Christoph Hellwig
Quoted 4 lines · Florian Fainelli
You convert this call site with
swiotlb_init_io_tlb_mem()which did not do the set_memory_decrypted()+memset(). Is this okay or shouldswiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?The zeroing is useful and was missing before. I think having a clean state here is the right thing.
Not sure about the
set_memory_decrypted,swiotlb_update_mem_attributeskinda suggests it is too early to set the memory decrupted.
Quoted 6 lines
Quoted 1 line
Adding Tom who should now about all this.
The reason for adding
swiotlb_update_mem_attributes()was because having the call toset_memory_decrypted()inswiotlb_init_with_tbl()triggered aBUG_ON()related to interrupts not being enabled yet during boot. So that call had to be delayed until interrupts were enabled.
I pulled down and tested the patch set and booted with SME enabled. The following was seen during the boot:
[ 0.134184] BUG: Bad page state in process swapper pfn:108002 [ 0.134196] page:(____ptrval____) refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x108002 [ 0.134201] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 0.134208] raw: 0017ffffc0000000 ffff88847f355e28 ffff88847f355e28 0000000000000000 [ 0.134210] raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000 [ 0.134212] page dumped because: nonzero mapcount [ 0.134213] Modules linked in: [ 0.134218] CPU: 0 PID: 0 Comm: swapper Not tainted 5.13.0-rc2-sos-custom #3 [ 0.134221] Hardware name: ... [ 0.134224] Call Trace: [ 0.134233] dump_stack+0x76/0x94 [ 0.134244] bad_page+0xa6/0xf0 [ 0.134252] __free_pages_ok+0x331/0x360 [ 0.134256] memblock_free_all+0x158/0x1c1 [ 0.134267] mem_init+0x1f/0x14c [ 0.134273] start_kernel+0x290/0x574 [ 0.134279] secondary_startup_64_no_verify+0xb0/0xbb
I see this about 40 times during the boot, each with a different PFN. The system boots (which seemed odd), but I don't know if there will be side effects to this (I didn't stress the system).
I modified the code to add a flag to not do the set_memory_decrypted(), as suggested by Florian, when invoked from swiotlb_init_with_tbl(), and that eliminated the bad page state BUG.
Thanks,
Tom
Quoted 5 lines
Thanks,
TomQuoted 1 line
Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions
Quoted 43 lines · Tom Lendacky
Quoted 13 lines · Tom Lendacky
Quoted 12 lines · Christoph Hellwig
Quoted 4 lines · Florian Fainelli
You convert this call site with
swiotlb_init_io_tlb_mem()which did not do the set_memory_decrypted()+memset(). Is this okay or shouldswiotlb_init_io_tlb_mem()add an additional argument to do this conditionally?The zeroing is useful and was missing before. I think having a clean state here is the right thing.
Not sure about the
set_memory_decrypted,swiotlb_update_mem_attributeskinda suggests it is too early to set the memory decrupted.Quoted 6 lines
Quoted 1 line
Adding Tom who should now about all this.
The reason for adding
swiotlb_update_mem_attributes()was because having the call toset_memory_decrypted()inswiotlb_init_with_tbl()triggered aBUG_ON()related to interrupts not being enabled yet during boot. So that call had to be delayed until interrupts were enabled.I pulled down and tested the patch set and booted with SME enabled. The following was seen during the boot:
[ 0.134184] BUG: Bad page state in process swapper pfn:108002 [ 0.134196] page:(____ptrval____) refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x108002 [ 0.134201] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 0.134208] raw: 0017ffffc0000000 ffff88847f355e28 ffff88847f355e28 0000000000000000 [ 0.134210] raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000 [ 0.134212] page dumped because: nonzero mapcount [ 0.134213] Modules linked in: [ 0.134218] CPU: 0 PID: 0 Comm: swapper Not tainted 5.13.0-rc2-sos-custom #3 [ 0.134221] Hardware name: ... [ 0.134224] Call Trace: [ 0.134233] dump_stack+0x76/0x94 [ 0.134244] bad_page+0xa6/0xf0 [ 0.134252] __free_pages_ok+0x331/0x360 [ 0.134256] memblock_free_all+0x158/0x1c1 [ 0.134267] mem_init+0x1f/0x14c [ 0.134273] start_kernel+0x290/0x574 [ 0.134279] secondary_startup_64_no_verify+0xb0/0xbb
Quoted 7 lines
I see this about 40 times during the boot, each with a different PFN. The system boots (which seemed odd), but I don't know if there will be side effects to this (I didn't stress the system).
I modified the code to add a flag to not do the
set_memory_decrypted(), as suggested by Florian, when invoked fromswiotlb_init_with_tbl(), and that eliminated the bad page state BUG.
Thanks. Will add a flag to skip set_memory_decrypted() in v9.
Quoted 9 lines
Thanks,
TomQuoted 5 lines
Thanks,
TomQuoted 1 line
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 2/15 swiotlb: Refactor swiotlb_create_debugfs
In reply to Claire ChangSplit the debugfs creation to make the code reusable for supporting different bounce buffer pools, e.g. restricted DMA pool.
--- kernel/dma/swiotlb.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-)
kernel/dma/swiotlb.c +19 -6
@@ -64,6 +64,7 @@enum swiotlb_force swiotlb_force;struct io_tlb_mem *io_tlb_default_mem; +static struct dentry *debugfs_dir;/* * Max segment that we can provide which (if pages are contingous) will
@@ -662,18 +663,30 @@ EXPORT_SYMBOL_GPL(is_swiotlb_active);#ifdef CONFIG_DEBUG_FS -static int __init swiotlb_create_debugfs (void ) +static void swiotlb_create_debugfs (struct io_tlb_mem *mem,const char *name) { -struct io_tlb_mem *mem = io_tlb_default_mem; -if (!mem) -return 0 ; - mem->debugfs =debugfs_create_dir ("swiotlb" ,NULL ); +return ; + + mem->debugfs =debugfs_create_dir (name, debugfs_dir);debugfs_create_ulong ("io_tlb_nslabs" ,0400 , mem->debugfs, &mem->nslabs);debugfs_create_ulong ("io_tlb_used" ,0400 , mem->debugfs, &mem->used); +} + +static int __init swiotlb_create_default_debugfs (void ) +{ +struct io_tlb_mem *mem = io_tlb_default_mem; + +if (mem) { +swiotlb_create_debugfs (mem,"swiotlb" ); + debugfs_dir = mem->debugfs; + }else { + debugfs_dir =debugfs_create_dir ("swiotlb" ,NULL ); + } +return 0 ; } -late_initcall (swiotlb_create_debugfs); +late_initcall (swiotlb_create_default_debugfs);#endif
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 02/15] swiotlb: Refactor swiotlb_create_debugfs
Quoted 4 lines · Claire Chang
Split the debugfs creation to make the code reusable for supporting different bounce buffer pools, e.g. restricted DMA pool.
Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
Re: [PATCH v7 02/15] swiotlb: Refactor swiotlb_create_debugfs
In reply to Claire Changkernel/dma/swiotlb.c EXPORT_SYMBOL_GPL(is_swiotlb_active); · line 669
Quoted 13 lines · Claire Chang
struct
io_tlb_mem*io_tlb_default_mem;kernel/dma/swiotlb.c +3
-0+static struct dentry *debugfs_dir;/* * Max segment that we can provide which (if pages are contingous) will @@ -662,18 +663,30 @@ EXPORT_SYMBOL_GPL(is_swiotlb_active);#ifdef CONFIG_DEBUG_FS +static void swiotlb_create_debugfs (struct io_tlb_mem *mem,const char *name) {if (!mem) +return ;
I don't think this check makes much sense here.
kernel/dma/swiotlb.c EXPORT_SYMBOL_GPL(is_swiotlb_active); · line 685
Quoted 12 lines
kernel/dma/swiotlb.c +12
-0+} + +static int __init swiotlb_create_default_debugfs (void ) +{ +struct io_tlb_mem *mem = io_tlb_default_mem; + +if (mem) { +swiotlb_create_debugfs (mem,"swiotlb" ); + debugfs_dir = mem->debugfs; + }else { + debugfs_dir =debugfs_create_dir ("swiotlb" ,NULL ); + }
This also looks rather strange. I'd much rather create move the directory creation of out swiotlb_create_debugfs. E.g. something like:
static void swiotlb_create_debugfs_file(struct io_tlb_mem *mem)
{
debugfs_create_ulong("io_tlb_nslabs", 0400, mem->debugfs, &mem->nslabs);
debugfs_create_ulong("io_tlb_used", 0400, mem->debugfs, &mem->used);
}static int __init swiotlb_init_debugfs(void)
{
debugfs_dir = debugfs_create_dir("swiotlb", NULL);
if (io_tlb_default_mem) {
io_tlb_default_mem->debugfs = debugfs_dir;
swiotlb_create_debugfs_files(io_tlb_default_mem);
}
return 0;
}late_initcall(swiotlb_init_debugfs);
...
static int rmem_swiotlb_device_init(struct reserved_mem *rmem,
struct device *dev)
{
...
mem->debugfs = debugfs_create_dir(rmem->name, debugfs_dir);
swiotlb_create_debugfs_files(mem->debugfs);}
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 3/15 swiotlb: Add DMA_RESTRICTED_POOL
In reply to Claire ChangAdd a new kconfig symbol, DMA_RESTRICTED_POOL, for restricted DMA pool.
--- kernel/dma/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
kernel/dma/Kconfig +14 -0
@@ -80,6 +80,20 @@ config SWIOTLB bool select NEED_DMA_MAP_STATE +config DMA_RESTRICTED_POOL + bool "DMA Restricted Pool" + depends on OF && OF_RESERVED_MEM + select SWIOTLB + help + This enables support for restricted DMA pools which provide a level of + DMA memory protection on systems with limited hardware protection + capabilities, such as those lacking an IOMMU. + + For more information see + <Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt> + and <kernel/dma/swiotlb.c>. + If unsure, say "n". + # # Should be selected if we can mmap non-coherent mappings to userspace. # The only thing that is really required is a way to set an uncached bit
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 03/15] swiotlb: Add DMA_RESTRICTED_POOL
Quoted 3 lines · Claire Chang
Add a new kconfig symbol,
DMA_RESTRICTED_POOL, for restricted DMA pool.Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
Re: [PATCH v7 03/15] swiotlb: Add DMA_RESTRICTED_POOL
In reply to Claire ChangQuoted 1 line · Claire Chang
Add a new kconfig symbol,
DMA_RESTRICTED_POOL, for restricted DMA pool.
Please merge this with the actual code that is getting added.
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 4/15 swiotlb: Add restricted DMA pool initialization
In reply to Claire ChangAdd the initialization function to create restricted DMA pools from matching reserved-memory nodes.
--- include/linux/device.h | 4 +++ include/linux/swiotlb.h | 3 +- kernel/dma/swiotlb.c | 76 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-)
include/linux/device.h +4 -0
@@ -416,6 +416,7 @@ struct dev_links_info {* @dma_pools: Dma pools (if dma'ble device). * @dma_mem: Internal for coherent mem override. * @cma_area: Contiguous memory area for dma allocations +* @dma_io_tlb_mem: Internal for swiotlb io_tlb_mem override. * @archdata: For arch-specific additions. * @of_node: Associated device tree node. * @fwnode: Associated device node supplied by platform firmware.
@@ -521,6 +522,9 @@ struct device {#ifdef CONFIG_DMA_CMA struct cma *cma_area;/* contiguous memory area for dma allocations */ +#endif +#ifdef CONFIG_DMA_RESTRICTED_POOL +struct io_tlb_mem *dma_io_tlb_mem;#endif /* arch specific additions */ struct dev_archdata archdata;
include/linux/swiotlb.h +2 -1
@@ -72,7 +72,8 @@ extern enum swiotlb_force swiotlb_force;* range check to see if the memory was in fact allocated by this * API. * @nslabs: The number of IO TLB blocks (in groups of 64) between @start and -* @end. This is command line adjustable via setup_io_tlb_npages. +* @end. For default swiotlb, this is command line adjustable via +* setup_io_tlb_npages. * @used: The number of used IO TLB block. * @list: The free list describing the number of free entries available * from each index.
kernel/dma/swiotlb.c +76 -0
85 lines not on this page · raw message
Signature · 6 lines
2.31.1.751.gd2f1c929bd-goog _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static).
Maybe instead of moving to a separate file, we can try to come up with a better naming?
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
Quoted 5 lines · Claire Chang
I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static).
Maybe instead of moving to a separate file, we can try to come up with a better naming?
I think you are referring to:
rmem_swiotlb_setup
?
Which is ARM specific and inside the generic code?
<sigh>
Christopher wants to unify it in all the code so there is one single source, but the "you seperate arch code out from generic" saying makes me want to move it out.
I agree that if you move it out from generic to arch-specific we have to expose more of the swiotlb functions, which will undo's Christopher cleanup code.
How about this - lets leave it as is now, and when there are more use-cases we can revisit it and then if need to move the code?
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Claire Chang
I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static).
Maybe instead of moving to a separate file, we can try to come up with a better naming?
Quoted 5 lines
I think you are referring to:
rmem_swiotlb_setup?
Yes, and the following swiotlb_alloc/free.
Quoted 9 lines
Which is ARM specific and inside the generic code?
<sigh>
Christopher wants to unify it in all the code so there is one single source, but the "you seperate arch code out from generic" saying makes me want to move it out.
Quoted 7 lines
I agree that if you move it out from generic to arch-specific we have to expose more of the swiotlb functions, which will undo's Christopher cleanup code.
How about this - lets leave it as is now, and when there are more use-cases we can revisit it and then if need to move the code?
Ok! Sounds good!
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
In reply to Konrad Rzeszutek WilkQuoted 5 lines · Konrad Rzeszutek Wilk
rmem_swiotlb_setup?
Which is ARM specific and inside the generic code?
I don't think it is arm specific at all. It is OF specific, but just about every platform but x86 uses OF. And I can think of an ACPI version of this as well.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
In reply to Claire ChangQuoted 82 lines · Claire Chang
Add the initialization function to create restricted DMA pools from matching reserved-memory nodes.
Signed-off-by Claire Chang <[email protected]>--- include/linux/device.h | 4 +++ include/linux/swiotlb.h | 3 +- kernel/dma/swiotlb.c | 76 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-)include/linux/device.h +4
-0@@ -416,6 +416,7 @@ struct dev_links_info {* @dma_pools: Dma pools (if dma'ble device). * @dma_mem: Internal for coherent mem override. * @cma_area: Contiguous memory area for dma allocations +* @dma_io_tlb_mem: Internal for swiotlb io_tlb_mem override. * @archdata: For arch-specific additions. * @of_node: Associated device tree node. * @fwnode: Associated device node supplied by platform firmware. @@ -521,6 +522,9 @@ struct device {#ifdef CONFIG_DMA_CMA struct cma *cma_area;/* contiguous memory area for dma allocations */ +#endif +#ifdef CONFIG_DMA_RESTRICTED_POOL +struct io_tlb_mem *dma_io_tlb_mem;#endif /* arch specific additions */ struct dev_archdata archdata;include/linux/swiotlb.h +2
-1@@ -72,7 +72,8 @@ extern enum swiotlb_force swiotlb_force;* range check to see if the memory was in fact allocated by this * API. * @nslabs: The number of IO TLB blocks (in groups of 64) between @start and -* @end. This is command line adjustable via setup_io_tlb_npages. +* @end. For default swiotlb, this is command line adjustable via +* setup_io_tlb_npages. * @used: The number of used IO TLB block. * @list: The free list describing the number of free entries available * from each index. kernel/dma/swiotlb.c +21
-0@@ -39,6 +39,13 @@#ifdef CONFIG_DEBUG_FS #include <linux/debugfs.h> #endif +#ifdef CONFIG_DMA_RESTRICTED_POOL +#include <linux/io.h> +#include <linux/of.h> +#include <linux/of_fdt.h> +#include <linux/of_reserved_mem.h> +#include <linux/slab.h> +#endif #include <asm/io.h> #include <asm/dma.h> @@ -690,3 +697,72 @@ static int __init swiotlb_create_default_debugfs(void)late_initcall (swiotlb_create_default_debugfs);#endif + +#ifdef CONFIG_DMA_RESTRICTED_POOL +static int rmem_swiotlb_device_init (struct reserved_mem *rmem, +struct device *dev) +{ +struct io_tlb_mem *mem = rmem->priv; +unsigned long nslabs = rmem->size >>IO_TLB_SHIFT ; + +if (dev->dma_io_tlb_mem) +return 0 ; + +/* +* Since multiple devices can share the same pool, the private data, +* io_tlb_mem struct, will be initialized by the first device attached
kernel/dma/swiotlb.c static int __init swiotlb_create_default_debugfs(void) · line 723
Quoted 10 lines
kernel/dma/swiotlb.c +10
-0+* to it. +*/ +if (!mem) { + mem =kzalloc (struct_size (mem, slots, nslabs),GFP_KERNEL ); +if (!mem) +return -ENOMEM ; + +if (PageHighMem (pfn_to_page (PHYS_PFN (rmem->base)))) { +kfree (mem); +return -EINVAL ;
This could probably deserve a warning here to indicate that the reserved area must be accessible within the linear mapping as I would expect a lot of people to trip over that.
Signature · 1 line
Florian
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
Quoted 92 lines · Florian Fainelli
Quoted 88 lines · Claire Chang
Add the initialization function to create restricted DMA pools from matching reserved-memory nodes.
Signed-off-by Claire Chang <[email protected]>--- include/linux/device.h | 4 +++ include/linux/swiotlb.h | 3 +- kernel/dma/swiotlb.c | 76 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-)include/linux/device.h +4
-0@@ -416,6 +416,7 @@ struct dev_links_info {* @dma_pools: Dma pools (if dma'ble device). * @dma_mem: Internal for coherent mem override. * @cma_area: Contiguous memory area for dma allocations +* @dma_io_tlb_mem: Internal for swiotlb io_tlb_mem override. * @archdata: For arch-specific additions. * @of_node: Associated device tree node. * @fwnode: Associated device node supplied by platform firmware. @@ -521,6 +522,9 @@ struct device {#ifdef CONFIG_DMA_CMA struct cma *cma_area;/* contiguous memory area for dma allocations */ +#endif +#ifdef CONFIG_DMA_RESTRICTED_POOL +struct io_tlb_mem *dma_io_tlb_mem;#endif /* arch specific additions */ struct dev_archdata archdata;include/linux/swiotlb.h +2
-1@@ -72,7 +72,8 @@ extern enum swiotlb_force swiotlb_force;* range check to see if the memory was in fact allocated by this * API. * @nslabs: The number of IO TLB blocks (in groups of 64) between @start and -* @end. This is command line adjustable via setup_io_tlb_npages. +* @end. For default swiotlb, this is command line adjustable via +* setup_io_tlb_npages. * @used: The number of used IO TLB block. * @list: The free list describing the number of free entries available * from each index. kernel/dma/swiotlb.c +27
-0@@ -39,6 +39,13 @@#ifdef CONFIG_DEBUG_FS #include <linux/debugfs.h> #endif +#ifdef CONFIG_DMA_RESTRICTED_POOL +#include <linux/io.h> +#include <linux/of.h> +#include <linux/of_fdt.h> +#include <linux/of_reserved_mem.h> +#include <linux/slab.h> +#endif #include <asm/io.h> #include <asm/dma.h> @@ -690,3 +697,72 @@ static int __init swiotlb_create_default_debugfs(void)late_initcall (swiotlb_create_default_debugfs);#endif + +#ifdef CONFIG_DMA_RESTRICTED_POOL +static int rmem_swiotlb_device_init (struct reserved_mem *rmem, +struct device *dev) +{ +struct io_tlb_mem *mem = rmem->priv; +unsigned long nslabs = rmem->size >>IO_TLB_SHIFT ; + +if (dev->dma_io_tlb_mem) +return 0 ; + +/* +* Since multiple devices can share the same pool, the private data, +* io_tlb_mem struct, will be initialized by the first device attached +* to it. +*/ +if (!mem) { + mem =kzalloc (struct_size (mem, slots, nslabs),GFP_KERNEL ); +if (!mem) +return -ENOMEM ;
Quoted 8 lines
kernel/dma/swiotlb.c static int __init swiotlb_create_default_debugfs(void) · line 723
Quoted 4 lines
kernel/dma/swiotlb.c +4
-0+ +if (PageHighMem (pfn_to_page (PHYS_PFN (rmem->base)))) { +kfree (mem); +return -EINVAL ;This could probably deserve a warning here to indicate that the reserved area must be accessible within the linear mapping as I would expect a lot of people to trip over that.
Ok. Will add it.
Quoted 4 lines
Reviewed-by Florian Fainelli <[email protected]>--
Florian
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization
In reply to Claire ChangI'd still much prefer to always have the pointer in struct device. Especially as we're also looking into things like a global 64-bit bounce buffer. Something like this untested patch ontop of your series:
drivers/base/core.c +4 -0
@@ -29,6 +29,7 @@#include <linux/sched/mm.h> #include <linux/sysfs.h> #include <linux/dma-map-ops.h> /* for dma_default_coherent */ +#include <linux/swiotlb.h> #include "base.h" #include "power/power.h"
@@ -2814,6 +2815,9 @@ void device_initialize(struct device *dev)defined (CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL) dev->dma_coherent = dma_default_coherent;#endif +#ifdef CONFIG_SWIOTLB + dev->dma_io_tlb_mem = &io_tlb_default_mem; +#endif }EXPORT_SYMBOL_GPL (device_initialize);
include/linux/device.h +2 -2
@@ -416,7 +416,7 @@ struct dev_links_info {* @dma_pools: Dma pools (if dma'ble device). * @dma_mem: Internal for coherent mem override. * @cma_area: Contiguous memory area for dma allocations -* @dma_io_tlb_mem: Internal for swiotlb io_tlb_mem override. +* @dma_io_tlb_mem: Pointer to the swiotlb pool used. Not for driver use. * @archdata: For arch-specific additions. * @of_node: Associated device tree node. * @fwnode: Associated device node supplied by platform firmware.
@@ -523,7 +523,7 @@ struct device {struct cma *cma_area;/* contiguous memory area for dma allocations */ #endif -#ifdef CONFIG_DMA_RESTRICTED_POOL +#ifdef CONFIG_SWIOTLB struct io_tlb_mem *dma_io_tlb_mem;#endif /* arch specific additions */
include/linux/swiotlb.h +3 -18
@@ -95,6 +95,7 @@ struct io_tlb_mem {spinlock_t lock;struct dentry *debugfs;bool late_alloc; +bool force_swiotlb;struct io_tlb_slot {phys_addr_t orig_addr;size_t alloc_size;
@@ -103,30 +104,16 @@ struct io_tlb_mem { };extern struct io_tlb_mem *io_tlb_default_mem; -static inline struct io_tlb_mem *get_io_tlb_mem (struct device *dev) -{ -#ifdef CONFIG_DMA_RESTRICTED_POOL -if (dev && dev->dma_io_tlb_mem) -return dev->dma_io_tlb_mem; -#endif /* CONFIG_DMA_RESTRICTED_POOL */ - -return io_tlb_default_mem; -} -static inline bool is_swiotlb_buffer (struct device *dev,phys_addr_t paddr) { -struct io_tlb_mem *mem =get_io_tlb_mem (dev); +struct io_tlb_mem *mem = dev->dma_io_tlb_mem;return mem && paddr >= mem->start && paddr < mem->end; }static inline bool is_dev_swiotlb_force (struct device *dev) { -#ifdef CONFIG_DMA_RESTRICTED_POOL -if (dev->dma_io_tlb_mem) -return true; -#endif /* CONFIG_DMA_RESTRICTED_POOL */ -return false; +return dev->dma_io_tlb_mem->force_swiotlb; }void __init swiotlb_exit (void );
@@ -134,10 +121,8 @@ unsigned int swiotlb_max_segment(void);size_t swiotlb_max_mapping_size (struct device *dev);bool is_swiotlb_active (struct device *dev);void __init swiotlb_adjust_size (unsigned long size); -#ifdef CONFIG_DMA_RESTRICTED_POOL struct page *swiotlb_alloc (struct device *dev,size_t size);bool swiotlb_free (struct device *dev,struct page *page,size_t size); -#endif /* CONFIG_DMA_RESTRICTED_POOL */ #else #define swiotlb_force SWIOTLB_NO_FORCEstatic inline bool is_swiotlb_buffer (struct device *dev,phys_addr_t paddr)
kernel/dma/swiotlb.c +8 -9
@@ -347,7 +347,7 @@ void __init swiotlb_exit(void)static void swiotlb_bounce (struct device *dev,phys_addr_t tlb_addr,size_t size,enum dma_data_direction dir) { -struct io_tlb_mem *mem =get_io_tlb_mem (dev); +struct io_tlb_mem *mem = dev->dma_io_tlb_mem;int index = (tlb_addr - mem->start) >>IO_TLB_SHIFT ;phys_addr_t orig_addr = mem->slots[index].orig_addr;size_t alloc_size = mem->slots[index].alloc_size;
@@ -429,7 +429,7 @@ static unsigned int wrap_index(struct io_tlb_mem *mem, unsigned int index)static int find_slots (struct device *dev,phys_addr_t orig_addr,size_t alloc_size) { -struct io_tlb_mem *mem =get_io_tlb_mem (dev); +struct io_tlb_mem *mem = dev->dma_io_tlb_mem;unsigned long boundary_mask =dma_get_seg_boundary (dev);dma_addr_t tbl_dma_addr =phys_to_dma_unencrypted (dev, mem->start) & boundary_mask;
@@ -510,7 +510,7 @@ phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr, size_t mapping_size, size_t alloc_size, enum dma_data_direction dir, unsigned long attrs) { - struct io_tlb_mem *mem = get_io_tlb_mem(dev); + struct io_tlb_mem *mem = dev->dma_io_tlb_mem;unsigned int offset =swiotlb_align_offset (dev, orig_addr);unsigned int i;int index;
@@ -553,7 +553,7 @@ phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr,static void release_slots (struct device *dev,phys_addr_t tlb_addr) { -struct io_tlb_mem *mem =get_io_tlb_mem (dev); +struct io_tlb_mem *mem = dev->dma_io_tlb_mem;unsigned long flags;unsigned int offset =swiotlb_align_offset (dev, tlb_addr);int index = (tlb_addr - offset - mem->start) >>IO_TLB_SHIFT ;
@@ -670,7 +670,7 @@ size_t swiotlb_max_mapping_size(struct device *dev)bool is_swiotlb_active (struct device *dev) { -return get_io_tlb_mem (dev) !=NULL ; +return dev->dma_io_tlb_mem; }EXPORT_SYMBOL_GPL (is_swiotlb_active);
@@ -741,7 +741,7 @@ static int rmem_swiotlb_device_init(struct reserved_mem *rmem,struct io_tlb_mem *mem = rmem->priv;unsigned long nslabs = rmem->size >>IO_TLB_SHIFT ; -if (dev->dma_io_tlb_mem) +if (dev->dma_io_tlb_mem != io_tlb_default_mem)return 0 ;/*
@@ -760,6 +760,7 @@ static int rmem_swiotlb_device_init(struct reserved_mem *rmem, }swiotlb_init_io_tlb_mem (mem, rmem->base, nslabs, false); + mem->force_swiotlb = true; rmem->priv = mem;
@@ -768,15 +769,13 @@ static int rmem_swiotlb_device_init(struct reserved_mem *rmem, } dev->dma_io_tlb_mem = mem; -return 0 ; }static void rmem_swiotlb_device_release (struct reserved_mem *rmem,struct device *dev) { -if (dev) - dev->dma_io_tlb_mem =NULL ; + dev->dma_io_tlb_mem = io_tlb_default_mem; }static const struct reserved_mem_ops rmem_swiotlb_ops = {
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 5/15 swiotlb: Add a new get_io_tlb_mem getter
In reply to Claire ChangAdd a new getter, get_io_tlb_mem, to help select the io_tlb_mem struct. The restricted DMA pool is preferred if available.
--- include/linux/swiotlb.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
include/linux/swiotlb.h +11 -0
@@ -2,6 +2,7 @@#ifndef __LINUX_SWIOTLB_H#define __LINUX_SWIOTLB_H +#include <linux/device.h> #include <linux/dma-direction.h> #include <linux/init.h> #include <linux/types.h>
@@ -102,6 +103,16 @@ struct io_tlb_mem { };extern struct io_tlb_mem *io_tlb_default_mem; +static inline struct io_tlb_mem *get_io_tlb_mem (struct device *dev) +{ +#ifdef CONFIG_DMA_RESTRICTED_POOL +if (dev && dev->dma_io_tlb_mem) +return dev->dma_io_tlb_mem; +#endif /* CONFIG_DMA_RESTRICTED_POOL */ + +return io_tlb_default_mem; +} +static inline bool is_swiotlb_buffer (phys_addr_t paddr) {struct io_tlb_mem *mem = io_tlb_default_mem;
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 05/15] swiotlb: Add a new get_io_tlb_mem getter
Still keep this function because directly using dev->dma_io_tlb_mem will cause issues for memory allocation for existing devices. The pool can't support atomic coherent allocation so we need to distinguish the per device pool and the default pool in swiotlb_alloc.
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Re: [PATCH v7 05/15] swiotlb: Add a new get_io_tlb_mem getter
Quoted 4 lines · Claire Chang
Still keep this function because directly using
dev->dma_io_tlb_memwill cause issues for memory allocation for existing devices. The pool can't support atomic coherent allocation so we need to distinguish the per device pool and the default pool inswiotlb_alloc.
This above should really be rolled in the commit. You can prefix it by "The reason it was done this way was because directly using .."
Re: [PATCH v7 05/15] swiotlb: Add a new get_io_tlb_mem getter
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Claire Chang
Still keep this function because directly using
dev->dma_io_tlb_memwill cause issues for memory allocation for existing devices. The pool can't support atomic coherent allocation so we need to distinguish the per device pool and the default pool inswiotlb_alloc.This above should really be rolled in the commit. You can prefix it by "The reason it was done this way was because directly using .."
Will add it.
Re: [PATCH v7 05/15] swiotlb: Add a new get_io_tlb_mem getter
In reply to Claire ChangQuoted 4 lines · Claire Chang
Add a new getter,
get_io_tlb_mem, to help select theio_tlb_memstruct. The restricted DMA pool is preferred if available.Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
PATCH v7 6/15 swiotlb: Update is_swiotlb_buffer to add a struct device argument
In reply to Claire ChangUpdate is_swiotlb_buffer to add a struct device argument. This will be useful later to allow for restricted DMA pool.
--- drivers/iommu/dma-iommu.c | 12 ++++++------ drivers/xen/swiotlb-xen.c | 2 +- include/linux/swiotlb.h | 6 +++--- kernel/dma/direct.c | 6 +++--- kernel/dma/direct.h | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-)
drivers/iommu/dma-iommu.c +6 -6
@@ -504,7 +504,7 @@ static void __iommu_dma_unmap_swiotlb(struct device *dev, dma_addr_t dma_addr,__iommu_dma_unmap (dev, dma_addr, size); -if (unlikely (is_swiotlb_buffer (phys))) +if (unlikely (is_swiotlb_buffer (dev, phys)))swiotlb_tbl_unmap_single (dev, phys, size, dir, attrs); }
@@ -575,7 +575,7 @@ static dma_addr_t __iommu_dma_map_swiotlb(struct device *dev, phys_addr_t phys, } iova =__iommu_dma_map (dev, phys, aligned_size, prot, dma_mask); -if (iova ==DMA_MAPPING_ERROR &&is_swiotlb_buffer (phys)) +if (iova ==DMA_MAPPING_ERROR &&is_swiotlb_buffer (dev, phys))swiotlb_tbl_unmap_single (dev, phys, org_size, dir, attrs);return iova; }
@@ -781,7 +781,7 @@ static void iommu_dma_sync_single_for_cpu(struct device *dev,if (!dev_is_dma_coherent (dev))arch_sync_dma_for_cpu (phys, size, dir); -if (is_swiotlb_buffer (phys)) +if (is_swiotlb_buffer (dev, phys))swiotlb_sync_single_for_cpu (dev, phys, size, dir); }
@@ -794,7 +794,7 @@ static void iommu_dma_sync_single_for_device(struct device *dev,return ; phys =iommu_iova_to_phys (iommu_get_dma_domain (dev), dma_handle); -if (is_swiotlb_buffer (phys)) +if (is_swiotlb_buffer (dev, phys))swiotlb_sync_single_for_device (dev, phys, size, dir);if (!dev_is_dma_coherent (dev))
@@ -815,7 +815,7 @@ static void iommu_dma_sync_sg_for_cpu(struct device *dev,if (!dev_is_dma_coherent (dev))arch_sync_dma_for_cpu (sg_phys (sg), sg->length, dir); -if (is_swiotlb_buffer (sg_phys (sg))) +if (is_swiotlb_buffer (dev,sg_phys (sg)))swiotlb_sync_single_for_cpu (dev,sg_phys (sg), sg->length, dir); }
@@ -832,7 +832,7 @@ static void iommu_dma_sync_sg_for_device(struct device *dev,return ;for_each_sg (sgl, sg, nelems, i) { -if (is_swiotlb_buffer (sg_phys (sg))) +if (is_swiotlb_buffer (dev,sg_phys (sg)))swiotlb_sync_single_for_device (dev,sg_phys (sg), sg->length, dir);
drivers/xen/swiotlb-xen.c +1 -1
@@ -100,7 +100,7 @@ static int is_xen_swiotlb_buffer(struct device *dev, dma_addr_t dma_addr)* in our domain. Therefore _only_ check address within our domain. */ if (pfn_valid (PFN_DOWN (paddr))) -return is_swiotlb_buffer (paddr); +return is_swiotlb_buffer (dev, paddr);return 0 ; }
include/linux/swiotlb.h +3 -3
@@ -113,9 +113,9 @@ static inline struct io_tlb_mem *get_io_tlb_mem(struct device *dev)return io_tlb_default_mem; } -static inline bool is_swiotlb_buffer (phys_addr_t paddr) +static inline bool is_swiotlb_buffer (struct device *dev,phys_addr_t paddr) { -struct io_tlb_mem *mem = io_tlb_default_mem; +struct io_tlb_mem *mem =get_io_tlb_mem (dev);return mem && paddr >= mem->start && paddr < mem->end; }
@@ -127,7 +127,7 @@ bool is_swiotlb_active(void);void __init swiotlb_adjust_size (unsigned long size);#else #define swiotlb_force SWIOTLB_NO_FORCE -static inline bool is_swiotlb_buffer (phys_addr_t paddr) +static inline bool is_swiotlb_buffer (struct device *dev,phys_addr_t paddr) {return false; }
kernel/dma/direct.c +3 -3
@@ -343,7 +343,7 @@ void dma_direct_sync_sg_for_device(struct device *dev,for_each_sg (sgl, sg, nents, i) {phys_addr_t paddr =dma_to_phys (dev,sg_dma_address (sg)); -if (unlikely (is_swiotlb_buffer (paddr))) +if (unlikely (is_swiotlb_buffer (dev, paddr)))swiotlb_sync_single_for_device (dev, paddr, sg->length, dir);
@@ -369,7 +369,7 @@ void dma_direct_sync_sg_for_cpu(struct device *dev,if (!dev_is_dma_coherent (dev))arch_sync_dma_for_cpu (paddr, sg->length, dir); -if (unlikely (is_swiotlb_buffer (paddr))) +if (unlikely (is_swiotlb_buffer (dev, paddr)))swiotlb_sync_single_for_cpu (dev, paddr, sg->length, dir);
@@ -504,7 +504,7 @@ size_t dma_direct_max_mapping_size(struct device *dev)bool dma_direct_need_sync (struct device *dev,dma_addr_t dma_addr) {return !dev_is_dma_coherent (dev) || -is_swiotlb_buffer (dma_to_phys (dev, dma_addr)); +is_swiotlb_buffer (dev,dma_to_phys (dev, dma_addr)); }/**
kernel/dma/direct.h +3 -3
@@ -56,7 +56,7 @@ static inline void dma_direct_sync_single_for_device(struct device *dev, {phys_addr_t paddr =dma_to_phys (dev, addr); -if (unlikely (is_swiotlb_buffer (paddr))) +if (unlikely (is_swiotlb_buffer (dev, paddr)))swiotlb_sync_single_for_device (dev, paddr, size, dir);if (!dev_is_dma_coherent (dev))
@@ -73,7 +73,7 @@ static inline void dma_direct_sync_single_for_cpu(struct device *dev,arch_sync_dma_for_cpu_all (); } -if (unlikely (is_swiotlb_buffer (paddr))) +if (unlikely (is_swiotlb_buffer (dev, paddr)))swiotlb_sync_single_for_cpu (dev, paddr, size, dir);if (dir ==DMA_FROM_DEVICE )
@@ -113,7 +113,7 @@ static inline void dma_direct_unmap_page(struct device *dev, dma_addr_t addr,if (!(attrs &DMA_ATTR_SKIP_CPU_SYNC ))dma_direct_sync_single_for_cpu (dev, addr, size, dir); -if (unlikely (is_swiotlb_buffer (phys))) +if (unlikely (is_swiotlb_buffer (dev, phys))) swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs); }#endif /* _KERNEL_DMA_DIRECT_H */
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 06/15] swiotlb: Update is_swiotlb_buffer to add a struct device argument
Quoted 4 lines · Claire Chang
Update
is_swiotlb_bufferto add a struct device argument. This will be useful later to allow for restricted DMA pool.Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
PATCH v7 7/15 swiotlb: Update is_swiotlb_active to add a struct device argument
In reply to Claire ChangUpdate is_swiotlb_active to add a struct device argument. This will be useful later to allow for restricted DMA pool.
--- drivers/gpu/drm/i915/gem/i915_gem_internal.c | 2 +- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- drivers/pci/xen-pcifront.c | 2 +- include/linux/swiotlb.h | 4 ++-- kernel/dma/direct.c | 2 +- kernel/dma/swiotlb.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_internal.c +1 -1
@@ -42,7 +42,7 @@ static int i915_gem_object_get_pages_internal(struct drm_i915_gem_object *obj) max_order =MAX_ORDER ;#ifdef CONFIG_SWIOTLB -if (is_swiotlb_active ()) { +if (is_swiotlb_active (NULL )) {unsigned int max_segment; max_segment =swiotlb_max_segment ();
drivers/gpu/drm/nouveau/nouveau_ttm.c +1 -1
@@ -321,7 +321,7 @@ nouveau_ttm_init(struct nouveau_drm *drm) }#if IS_ENABLED (CONFIG_SWIOTLB ) &&IS_ENABLED (CONFIG_X86 ) - need_swiotlb =is_swiotlb_active (); + need_swiotlb =is_swiotlb_active (NULL );#endif ret = ttm_device_init(&drm->ttm.bdev, &nouveau_bo_driver, drm->dev->dev,
drivers/pci/xen-pcifront.c +1 -1
@@ -693,7 +693,7 @@ static int pcifront_connect_and_init_dma(struct pcifront_device *pdev)spin_unlock (&pcifront_dev_lock); -if (!err && !is_swiotlb_active ()) { +if (!err && !is_swiotlb_active (NULL )) { err =pci_xen_swiotlb_init_late ();if (err)dev_err (&pdev->xdev->dev,"Could not setup SWIOTLB!\n" );
include/linux/swiotlb.h +2 -2
@@ -123,7 +123,7 @@ static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr)void __init swiotlb_exit (void );unsigned int swiotlb_max_segment (void );size_t swiotlb_max_mapping_size (struct device *dev); -bool is_swiotlb_active (void ); +bool is_swiotlb_active (struct device *dev);void __init swiotlb_adjust_size (unsigned long size);#else #define swiotlb_force SWIOTLB_NO_FORCE
@@ -143,7 +143,7 @@ static inline size_t swiotlb_max_mapping_size(struct device *dev)return SIZE_MAX ; } -static inline bool is_swiotlb_active (void ) +static inline bool is_swiotlb_active (struct device *dev) {return false; }
kernel/dma/direct.c +1 -1
@@ -495,7 +495,7 @@ int dma_direct_supported(struct device *dev, u64 mask)size_t dma_direct_max_mapping_size (struct device *dev) {/* If SWIOTLB is active, use its maximum mapping size */ -if (is_swiotlb_active () && +if (is_swiotlb_active (dev) && (dma_addressing_limited (dev) || swiotlb_force ==SWIOTLB_FORCE ))return swiotlb_max_mapping_size (dev);return SIZE_MAX ;
kernel/dma/swiotlb.c +2 -2
@@ -662,9 +662,9 @@ size_t swiotlb_max_mapping_size(struct device *dev)return ((size_t )IO_TLB_SIZE ) *IO_TLB_SEGSIZE ; } -bool is_swiotlb_active (void ) +bool is_swiotlb_active (struct device *dev) { -return io_tlb_default_mem !=NULL ; +return get_io_tlb_mem (dev) !=NULL ; }EXPORT_SYMBOL_GPL (is_swiotlb_active);
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 07/15] swiotlb: Update is_swiotlb_active to add a struct device argument
Quoted 4 lines · Claire Chang
Update
is_swiotlb_activeto add a struct device argument. This will be useful later to allow for restricted DMA pool.Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
Re: [PATCH v7 07/15] swiotlb: Update is_swiotlb_active to add a struct device argument
In reply to Claire Changdrivers/gpu/drm/i915/gem/i915_gem_internal.c static int i915_gem_object_get_pages_internal(struct drm_i915_gem_object *obj) · line 45
Quoted 1 line
drivers/gpu/drm/i915/gem/i915_gem_internal.c +1
-0+if (is_swiotlb_active (NULL )) {
Passing a NULL argument to this doesn't make sense. They all should have a struct device at hand, you'll just need to dig for it.
And this function should be about to go away anyway, but until then we need to do this properly.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 8/15 swiotlb: Bounce data from/to restricted DMA pool if available
In reply to Claire ChangRegardless of swiotlb setting, the restricted DMA pool is preferred if available.
The restricted DMA pools provide a basic level of protection against the DMA overwriting buffer contents at unexpected times. However, to protect against general data leakage and system memory corruption, the system needs to provide a way to lock down the memory access, e.g., MPU.
Note that is_dev_swiotlb_force doesn't check if swiotlb_force == SWIOTLB_FORCE. Otherwise the memory allocation behavior with default swiotlb will be changed by the following patche ("dma-direct: Allocate memory from restricted DMA pool if available").
--- include/linux/swiotlb.h | 13 +++++++++++++ kernel/dma/direct.c | 3 ++- kernel/dma/direct.h | 3 ++- kernel/dma/swiotlb.c | 8 ++++---- 4 files changed, 21 insertions(+), 6 deletions(-)
include/linux/swiotlb.h +13 -0
@@ -120,6 +120,15 @@ static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr)return mem && paddr >= mem->start && paddr < mem->end; } +static inline bool is_dev_swiotlb_force (struct device *dev) +{ +#ifdef CONFIG_DMA_RESTRICTED_POOL +if (dev->dma_io_tlb_mem) +return true; +#endif /* CONFIG_DMA_RESTRICTED_POOL */ +return false; +} +void __init swiotlb_exit (void );unsigned int swiotlb_max_segment (void );size_t swiotlb_max_mapping_size (struct device *dev);
@@ -131,6 +140,10 @@ static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr) {return false; } +static inline bool is_dev_swiotlb_force (struct device *dev) +{ +return false; +}static inline void swiotlb_exit (void ) { }
kernel/dma/direct.c +2 -1
@@ -496,7 +496,8 @@ size_t dma_direct_max_mapping_size(struct device *dev) {/* If SWIOTLB is active, use its maximum mapping size */ if (is_swiotlb_active (dev) && - (dma_addressing_limited (dev) || swiotlb_force ==SWIOTLB_FORCE )) + (dma_addressing_limited (dev) || swiotlb_force ==SWIOTLB_FORCE || +is_dev_swiotlb_force (dev)))return swiotlb_max_mapping_size (dev);return SIZE_MAX ; }
kernel/dma/direct.h +2 -1
@@ -87,7 +87,8 @@ static inline dma_addr_t dma_direct_map_page(struct device *dev,phys_addr_t phys =page_to_phys (page) + offset;dma_addr_t dma_addr =phys_to_dma (dev, phys); -if (unlikely (swiotlb_force ==SWIOTLB_FORCE )) +if (unlikely (swiotlb_force ==SWIOTLB_FORCE ) || +is_dev_swiotlb_force (dev))return swiotlb_map (dev, phys, size, dir, attrs);if (unlikely (!dma_capable (dev, dma_addr, size, true))) {
kernel/dma/swiotlb.c +4 -4
@@ -347,7 +347,7 @@ void __init swiotlb_exit(void)static void swiotlb_bounce (struct device *dev,phys_addr_t tlb_addr,size_t size,enum dma_data_direction dir) { -struct io_tlb_mem *mem = io_tlb_default_mem; +struct io_tlb_mem *mem =get_io_tlb_mem (dev);int index = (tlb_addr - mem->start) >>IO_TLB_SHIFT ;phys_addr_t orig_addr = mem->slots[index].orig_addr;size_t alloc_size = mem->slots[index].alloc_size;
@@ -429,7 +429,7 @@ static unsigned int wrap_index(struct io_tlb_mem *mem, unsigned int index)static int find_slots (struct device *dev,phys_addr_t orig_addr,size_t alloc_size) { -struct io_tlb_mem *mem = io_tlb_default_mem; +struct io_tlb_mem *mem =get_io_tlb_mem (dev);unsigned long boundary_mask =dma_get_seg_boundary (dev);dma_addr_t tbl_dma_addr =phys_to_dma_unencrypted (dev, mem->start) & boundary_mask;
@@ -506,7 +506,7 @@ phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr, size_t mapping_size, size_t alloc_size, enum dma_data_direction dir, unsigned long attrs) { - struct io_tlb_mem *mem = io_tlb_default_mem; + struct io_tlb_mem *mem = get_io_tlb_mem(dev);unsigned int offset =swiotlb_align_offset (dev, orig_addr);unsigned int i;int index;
@@ -557,7 +557,7 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr, size_t mapping_size, enum dma_data_direction dir, unsigned long attrs) { - struct io_tlb_mem *mem = io_tlb_default_mem; + struct io_tlb_mem *mem = get_io_tlb_mem(hwdev);unsigned long flags;unsigned int offset =swiotlb_align_offset (hwdev, tlb_addr);int index = (tlb_addr - offset - mem->start) >>IO_TLB_SHIFT ;
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
PATCH v7 9/15 swiotlb: Move alloc_size to find_slots
In reply to Claire ChangMove the maintenance of alloc_size to find_slots for better code reusability later.
--- kernel/dma/swiotlb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
kernel/dma/swiotlb.c +5 -5
@@ -482,8 +482,11 @@ static int find_slots(struct device *dev, phys_addr_t orig_addr,return -1 ; found: -for (i = index; i < index + nslots; i++) +for (i = index; i < index + nslots; i++) { mem->slots[i].list =0 ; + mem->slots[i].alloc_size = + alloc_size - ((i - index) <<IO_TLB_SHIFT ); + }for (i = index -1 ;io_tlb_offset (i) !=IO_TLB_SEGSIZE -1 && mem->slots[i].list; i--)
@@ -538,11 +541,8 @@ phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr,* This is needed when we sync the memory. Then we sync the buffer if * needed. */ -for (i =0 ; i <nr_slots (alloc_size + offset); i++) { +for (i =0 ; i <nr_slots (alloc_size + offset); i++) mem->slots[index + i].orig_addr =slot_addr (orig_addr, i); - mem->slots[index + i].alloc_size = - alloc_size - (i <<IO_TLB_SHIFT ); - } tlb_addr =slot_addr (mem->start, index) + offset;if (!(attrs &DMA_ATTR_SKIP_CPU_SYNC ) && (dir ==DMA_TO_DEVICE || dir ==DMA_BIDIRECTIONAL ))
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
PATCH v7 10/15 swiotlb: Refactor swiotlb_tbl_unmap_single
In reply to Claire ChangAdd a new function, release_slots, to make the code reusable for supporting different bounce buffer pools, e.g. restricted DMA pool.
--- kernel/dma/swiotlb.c | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-)
kernel/dma/swiotlb.c +20 -15
@@ -550,27 +550,15 @@ phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr,return tlb_addr; } -/* -* tlb_addr is the physical address of the bounce buffer to unmap. -*/ -void swiotlb_tbl_unmap_single (struct device *hwdev,phys_addr_t tlb_addr, -size_t mapping_size,enum dma_data_direction dir, -unsigned long attrs) +static void release_slots (struct device *dev,phys_addr_t tlb_addr) { -struct io_tlb_mem *mem =get_io_tlb_mem (hwdev); +struct io_tlb_mem *mem =get_io_tlb_mem (dev);unsigned long flags; -unsigned int offset =swiotlb_align_offset (hwdev, tlb_addr); +unsigned int offset =swiotlb_align_offset (dev, tlb_addr);int index = (tlb_addr - offset - mem->start) >>IO_TLB_SHIFT ;int nslots =nr_slots (mem->slots[index].alloc_size + offset);int count, i; -/* -* First, sync the memory before unmapping the entry -*/ -if (!(attrs &DMA_ATTR_SKIP_CPU_SYNC ) && - (dir ==DMA_FROM_DEVICE || dir ==DMA_BIDIRECTIONAL )) -swiotlb_bounce (hwdev, tlb_addr, mapping_size,DMA_FROM_DEVICE ); -/* * Return the buffer to the free list by setting the corresponding * entries to indicate the number of contiguous entries available.
@@ -605,6 +593,23 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr,spin_unlock_irqrestore (&mem->lock, flags); } +/* +* tlb_addr is the physical address of the bounce buffer to unmap. +*/ +void swiotlb_tbl_unmap_single (struct device *dev,phys_addr_t tlb_addr, +size_t mapping_size,enum dma_data_direction dir, +unsigned long attrs) +{ +/* +* First, sync the memory before unmapping the entry +*/ +if (!(attrs &DMA_ATTR_SKIP_CPU_SYNC ) && + (dir ==DMA_FROM_DEVICE || dir ==DMA_BIDIRECTIONAL )) +swiotlb_bounce (dev, tlb_addr, mapping_size,DMA_FROM_DEVICE ); + +release_slots (dev, tlb_addr); +} +void swiotlb_sync_single_for_device (struct device *dev,phys_addr_t tlb_addr,size_t size,enum dma_data_direction dir) {
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
PATCH v7 11/15 dma-direct: Add a new wrapper __dma_direct_free_pages()
In reply to Claire ChangAdd a new wrapper __dma_direct_free_pages() that will be useful later for swiotlb_free().
--- kernel/dma/direct.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
kernel/dma/direct.c +10 -4
@@ -75,6 +75,12 @@ static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size)min_not_zero (dev->coherent_dma_mask, dev->bus_dma_limit); } +static void __dma_direct_free_pages (struct device *dev,struct page *page, +size_t size) +{ +dma_free_contiguous (dev, page, size); +} +static struct page *__dma_direct_alloc_pages (struct device *dev,size_t size,gfp_t gfp) {
@@ -237,7 +243,7 @@ void *dma_direct_alloc(struct device *dev, size_t size,return NULL ; } out_free_pages: -dma_free_contiguous (dev, page, size); +__dma_direct_free_pages (dev, page, size);return NULL ; }
@@ -273,7 +279,7 @@ void dma_direct_free(struct device *dev, size_t size,else if (IS_ENABLED (CONFIG_ARCH_HAS_DMA_CLEAR_UNCACHED ))arch_dma_clear_uncached (cpu_addr, size); -dma_free_contiguous (dev,dma_direct_to_page (dev, dma_addr), size); +__dma_direct_free_pages (dev,dma_direct_to_page (dev, dma_addr), size); } struct page *dma_direct_alloc_pages(struct device *dev, size_t size,
@@ -310,7 +316,7 @@ struct page *dma_direct_alloc_pages(struct device *dev, size_t size, *dma_handle =phys_to_dma_direct (dev,page_to_phys (page));return page; out_free_pages: -dma_free_contiguous (dev, page, size); +__dma_direct_free_pages (dev, page, size);return NULL ; }
@@ -329,7 +335,7 @@ void dma_direct_free_pages(struct device *dev, size_t size,if (force_dma_unencrypted (dev))set_memory_encrypted ((unsigned long )vaddr,1 << page_order); -dma_free_contiguous (dev, page, size); +__dma_direct_free_pages (dev, page, size); } #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Re: [PATCH v7 11/15] dma-direct: Add a new wrapper __dma_direct_free_pages()
Quoted 4 lines · Claire Chang
Add a new wrapper
__dma_direct_free_pages()that will be useful later forswiotlb_free().Signed-off-by Claire Chang <[email protected]>
Signature · 1 line
Florian
PATCH v7 12/15 swiotlb: Add restricted DMA alloc/free support.
In reply to Claire ChangAdd the functions, swiotlb_{alloc,free} to support the memory allocation from restricted DMA pool.
--- include/linux/swiotlb.h | 4 ++++ kernel/dma/swiotlb.c | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-)
include/linux/swiotlb.h +4 -0
@@ -134,6 +134,10 @@ unsigned int swiotlb_max_segment(void);size_t swiotlb_max_mapping_size (struct device *dev);bool is_swiotlb_active (struct device *dev);void __init swiotlb_adjust_size (unsigned long size); +#ifdef CONFIG_DMA_RESTRICTED_POOL +struct page *swiotlb_alloc (struct device *dev,size_t size); +bool swiotlb_free (struct device *dev,struct page *page,size_t size); +#endif /* CONFIG_DMA_RESTRICTED_POOL */ #else #define swiotlb_force SWIOTLB_NO_FORCEstatic inline bool is_swiotlb_buffer (struct device *dev,phys_addr_t paddr)
kernel/dma/swiotlb.c +33 -2
@@ -457,8 +457,9 @@ static int find_slots(struct device *dev, phys_addr_t orig_addr, index = wrap =wrap_index (mem,ALIGN (mem->index, stride)); do { - if ((slot_addr(tbl_dma_addr, index) & iotlb_align_mask) != - (orig_addr & iotlb_align_mask)) { + if (orig_addr && + (slot_addr(tbl_dma_addr, index) & iotlb_align_mask) != + (orig_addr & iotlb_align_mask)) { index = wrap_index(mem, index + 1); continue; }
@@ -704,6 +705,36 @@ late_initcall(swiotlb_create_default_debugfs);#endif #ifdef CONFIG_DMA_RESTRICTED_POOL +struct page *swiotlb_alloc (struct device *dev,size_t size) +{ +struct io_tlb_mem *mem = dev->dma_io_tlb_mem; +phys_addr_t tlb_addr; +int index; + +if (!mem) +return NULL ; + + index =find_slots (dev,0 , size); +if (index ==-1 ) +return NULL ; + + tlb_addr =slot_addr (mem->start, index); + +return pfn_to_page (PFN_DOWN (tlb_addr)); +} + +bool swiotlb_free (struct device *dev,struct page *page,size_t size) +{ +phys_addr_t tlb_addr =page_to_phys (page); + +if (!is_swiotlb_buffer (dev, tlb_addr)) +return false; + +release_slots (dev, tlb_addr); + +return true; +} +static int rmem_swiotlb_device_init (struct reserved_mem *rmem,struct device *dev) {
Signature · 6 lines
2.31.1.751.gd2f1c929bd-goog _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 13/15 dma-direct: Allocate memory from restricted DMA pool if available
In reply to Claire ChangThe restricted DMA pool is preferred if available.
The restricted DMA pools provide a basic level of protection against the DMA overwriting buffer contents at unexpected times. However, to protect against general data leakage and system memory corruption, the system needs to provide a way to lock down the memory access, e.g., MPU.
Note that since coherent allocation needs remapping, one must set up another device coherent pool by shared-dma-pool and use dma_alloc_from_dev_coherent instead for atomic coherent allocation.
--- kernel/dma/direct.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-)
kernel/dma/direct.c +29 -9
@@ -78,6 +78,10 @@ static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size)static void __dma_direct_free_pages (struct device *dev,struct page *page,size_t size) { +#ifdef CONFIG_DMA_RESTRICTED_POOL +if (swiotlb_free (dev, page, size)) +return ; +#endif dma_free_contiguous (dev, page, size); }
@@ -92,7 +96,17 @@ static struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, gfp |=dma_direct_optimal_gfp_mask (dev, dev->coherent_dma_mask, &phys_limit); - page =dma_alloc_contiguous (dev, size, gfp); + +#ifdef CONFIG_DMA_RESTRICTED_POOL + page =swiotlb_alloc (dev, size); +if (page && !dma_coherent_ok (dev,page_to_phys (page), size)) { +__dma_direct_free_pages (dev, page, size); + page =NULL ; + } +#endif + +if (!page) + page =dma_alloc_contiguous (dev, size, gfp);if (page && !dma_coherent_ok (dev,page_to_phys (page), size)) {dma_free_contiguous (dev, page, size); page =NULL ;
@@ -148,7 +162,7 @@ void *dma_direct_alloc(struct device *dev, size_t size, gfp |= __GFP_NOWARN;if ((attrs &DMA_ATTR_NO_KERNEL_MAPPING ) && - !force_dma_unencrypted (dev)) { + !force_dma_unencrypted (dev) && !is_dev_swiotlb_force (dev)) { page =__dma_direct_alloc_pages (dev, size, gfp & ~__GFP_ZERO);if (!page)return NULL ;
@@ -161,18 +175,23 @@ void *dma_direct_alloc(struct device *dev, size_t size, }if (!IS_ENABLED (CONFIG_ARCH_HAS_DMA_SET_UNCACHED ) && - !IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && - !dev_is_dma_coherent (dev)) + !IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && !dev_is_dma_coherent (dev) && + !is_dev_swiotlb_force (dev))return arch_dma_alloc (dev, size, dma_handle, gfp, attrs);/* * Remapping or decrypting memory may block. If either is required and * we can't block, allocate the memory from the atomic pools. +* If restricted DMA (i.e., is_dev_swiotlb_force) is required, one must +* set up another device coherent pool by shared-dma-pool and use +* dma_alloc_from_dev_coherent instead. */ if (IS_ENABLED (CONFIG_DMA_COHERENT_POOL ) && !gfpflags_allow_blocking (gfp) && (force_dma_unencrypted (dev) || - (IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && !dev_is_dma_coherent (dev)))) + (IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && + !dev_is_dma_coherent (dev))) && + !is_dev_swiotlb_force (dev))return dma_direct_alloc_from_pool (dev, size, dma_handle, gfp);/* we always manually zero the memory once we are done */
@@ -253,15 +272,15 @@ void dma_direct_free(struct device *dev, size_t size,unsigned int page_order =get_order (size);if ((attrs &DMA_ATTR_NO_KERNEL_MAPPING ) && - !force_dma_unencrypted (dev)) { + !force_dma_unencrypted (dev) && !is_dev_swiotlb_force (dev)) {/* cpu_addr is a struct page cookie, not a kernel address */ dma_free_contiguous (dev, cpu_addr, size);return ; }if (!IS_ENABLED (CONFIG_ARCH_HAS_DMA_SET_UNCACHED ) && - !IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && - !dev_is_dma_coherent (dev)) { + !IS_ENABLED (CONFIG_DMA_DIRECT_REMAP ) && !dev_is_dma_coherent (dev) && + !is_dev_swiotlb_force (dev)) {arch_dma_free (dev, size, cpu_addr, dma_addr, attrs);return ; }
@@ -289,7 +308,8 @@ struct page *dma_direct_alloc_pages(struct device *dev, size_t size,void *ret;if (IS_ENABLED (CONFIG_DMA_COHERENT_POOL ) && -force_dma_unencrypted (dev) && !gfpflags_allow_blocking (gfp)) +force_dma_unencrypted (dev) && !gfpflags_allow_blocking (gfp) && + !is_dev_swiotlb_force (dev))return dma_direct_alloc_from_pool (dev, size, dma_handle, gfp); page =__dma_direct_alloc_pages (dev, size, gfp);
Signature · 6 lines
2.31.1.751.gd2f1c929bd-goog _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 13/15] dma-direct: Allocate memory from restricted DMA pool if available
kernel/dma/direct.c static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size) · line 84
Quoted 4 lines
kernel/dma/direct.c +4
-0+#ifdef CONFIG_DMA_RESTRICTED_POOL +if (swiotlb_free (dev, page, size)) +return ; +#endif
Please avoid the ifdefs by either stubbing out the function to be a no-op or by using IS_ENABLED.
kernel/dma/direct.c static struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, · line 106
Quoted 7 lines
kernel/dma/direct.c +7
-0+#ifdef CONFIG_DMA_RESTRICTED_POOL + page =swiotlb_alloc (dev, size); +if (page && !dma_coherent_ok (dev,page_to_phys (page), size)) { +__dma_direct_free_pages (dev, page, size); + page =NULL ; + } +#endif
Same here, for the stub it would just return NULL.
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 14/15 dt-bindings: of: Add restricted DMA pool
In reply to Claire ChangIntroduce the new compatible string, restricted-dma-pool, for restricted DMA. One can specify the address and length of the restricted DMA memory region by restricted-dma-pool in the reserved-memory node.
--- .../reserved-memory/reserved-memory.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt +27 -0
@@ -51,6 +51,23 @@ compatible (optional) - standard definition used as a shared pool of DMA buffers for a set of devices. It can be used by an operating system to instantiate the necessary pool management subsystem if necessary. + - restricted-dma-pool: This indicates a region of memory meant to be + used as a pool of restricted DMA buffers for a set of devices. The + memory region would be the only region accessible to those devices. + When using this, the no-map and reusable properties must not be set, + so the operating system can create a virtual mapping that will be used + for synchronization. The main purpose for restricted DMA is to + mitigate the lack of DMA access control on systems without an IOMMU, + which could result in the DMA accessing the system memory at + unexpected times and/or unexpected addresses, possibly leading to data + leakage or corruption. The feature on its own provides a basic level + of protection against the DMA overwriting buffer contents at + unexpected times. However, to protect against general data leakage and + system memory corruption, the system needs to provide way to lock down + the memory access, e.g., MPU. Note that since coherent allocation + needs remapping, one must set up another device coherent pool by + shared-dma-pool and use dma_alloc_from_dev_coherent instead for atomic + coherent allocation. - vendor specific string in the form <vendor>,[<device>-]<usage> no-map (optional) - empty property - Indicates the operating system must not create a virtual mapping
@@ -120,6 +137,11 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). compatible = "acme,multimedia-memory"; reg = <0x77000000 0x4000000>; }; + + restricted_dma_mem_reserved: restricted_dma_mem_reserved { + compatible = "restricted-dma-pool"; + reg = <0x50000000 0x400000>; + }; }; /* ... */
@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + }; };
Signature · 1 line
2.31.1.751.gd2f1c929bd-goog
Will Deacon
maintainerRe: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Hi Claire,
Quoted 38 lines · Claire Chang
Introduce the new compatible string, restricted-dma-pool, for restricted DMA. One can specify the address and length of the restricted DMA memory region by restricted-dma-pool in the reserved-memory node.
Signed-off-by Claire Chang <[email protected]>--- .../reserved-memory/reserved-memory.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt +17
-0@@ -51,6 +51,23 @@ compatible (optional) - standard definition used as a shared pool of DMA buffers for a set of devices. It can be used by an operating system to instantiate the necessary pool management subsystem if necessary. + - restricted-dma-pool: This indicates a region of memory meant to be + used as a pool of restricted DMA buffers for a set of devices. The + memory region would be the only region accessible to those devices. + When using this, the no-map and reusable properties must not be set, + so the operating system can create a virtual mapping that will be used + for synchronization. The main purpose for restricted DMA is to + mitigate the lack of DMA access control on systems without an IOMMU, + which could result in the DMA accessing the system memory at + unexpected times and/or unexpected addresses, possibly leading to data + leakage or corruption. The feature on its own provides a basic level + of protection against the DMA overwriting buffer contents at + unexpected times. However, to protect against general data leakage and + system memory corruption, the system needs to provide way to lock down + the memory access, e.g., MPU. Note that since coherent allocation + needs remapping, one must set up another device coherent pool by + shared-dma-pool and use dma_alloc_from_dev_coherent instead for atomic + coherent allocation. - vendor specific string in the form <vendor>,[<device>-]<usage> no-map (optional) - empty property - Indicates the operating system must not create a virtual mapping
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 144
Quoted 8 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt +5
-0@@ -120,6 +137,11 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). compatible = "acme,multimedia-memory"; reg = <0x77000000 0x4000000>; }; + + restricted_dma_mem_reserved: restricted_dma_mem_reserved { + compatible = "restricted-dma-pool"; + reg = <0x50000000 0x400000>; + };
nit: You need to update the old text that states "This example defines 3 contiguous regions ...".
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 12 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt +5
-0}; /* ... */@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };
I still don't understand how this works for individual PCIe devices -- how is dev->of_node set to point at the node you have above?
I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
| pci-host-generic 40000000.pci: assigned reserved memory node restricted_dma_mem_reserved
but none of the actual PCI devices end up with 'dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.
What am I missing to make this work with PCIe devices?
Thanks,
Will
Will Deacon
maintainerRe: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Quoted 17 lines · Will Deacon
Review one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 9 lines · Claire Chang
(quoted diff) +5
-0@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };I still don't understand how this works for individual PCIe devices -- how is
dev->of_nodeset to point at the node you have above?I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
Quoted 6 lines
| pci-host-generic 40000000.pci: assigned reserved memory node
restricted_dma_mem_reservedbut none of the actual PCI devices end up with '
dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.What am I missing to make this work with PCIe devices?
Aha, looks like we're just missing the logic to inherit the DMA configuration. The diff below gets things working for me.
Will
--->8
drivers/of/address.c +8 -8
@@ -1113,25 +1113,25 @@ bool of_dma_is_coherent(struct device_node *np) }EXPORT_SYMBOL_GPL (of_dma_is_coherent); -int of_dma_set_restricted_buffer (struct device *dev) +int of_dma_set_restricted_buffer (struct device *dev,struct device_node *np) { -struct device_node *node;int count, i; -if (!dev->of_node) +if (!np)return 0 ; - count =of_property_count_elems_of_size (dev->of_node,"memory-region" , + count =of_property_count_elems_of_size (np,"memory-region" ,sizeof (phandle));for (i =0 ; i < count; i++) { - node =of_parse_phandle (dev->of_node,"memory-region" , i); +struct device_node *node; + + node =of_parse_phandle (np,"memory-region" , i);/* There might be multiple memory regions, but only one -* restriced-dma-pool region is allowed. +* restricted-dma-pool region is allowed. */ if (of_device_is_compatible (node,"restricted-dma-pool" ) &&of_device_is_available (node)) -return of_reserved_mem_device_init_by_idx ( - dev, dev->of_node, i); +return of_reserved_mem_device_init_by_idx (dev, np, i); }return 0 ;
drivers/of/device.c +1 -1
@@ -166,7 +166,7 @@ int of_dma_configure_id(struct device *dev, struct device_node *np,arch_setup_dma_ops (dev, dma_start, size, iommu, coherent);if (!iommu) -return of_dma_set_restricted_buffer (dev); +return of_dma_set_restricted_buffer (dev, np);return 0 ; }
drivers/of/of_private.h +3 -2
@@ -163,14 +163,15 @@ struct bus_dma_region;#if defined(CONFIG_OF_ADDRESS ) && defined(CONFIG_HAS_DMA )int of_dma_get_range (struct device_node *np,const struct bus_dma_region **map); -int of_dma_set_restricted_buffer (struct device *dev); +int of_dma_set_restricted_buffer (struct device *dev,struct device_node *np);#else static inline int of_dma_get_range (struct device_node *np,const struct bus_dma_region **map) {return -ENODEV ; } -static inline int of_dma_set_restricted_buffer (struct device *dev) +static inline int of_dma_set_restricted_buffer (struct device *dev, +struct device_node *np) {return -ENODEV ; }
Re: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Quoted 21 lines · Will Deacon
Quoted 19 lines · Will Deacon
Review one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 9 lines · Claire Chang
(quoted diff) +5
-0@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };I still don't understand how this works for individual PCIe devices -- how is
dev->of_nodeset to point at the node you have above?I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
| pci-host-generic 40000000.pci: assigned reserved memory node
restricted_dma_mem_reserved
Quoted 7 lines
Quoted 4 lines
but none of the actual PCI devices end up with '
dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.What am I missing to make this work with PCIe devices?
Aha, looks like we're just missing the logic to inherit the DMA configuration. The diff below gets things working for me.
I guess what was missing is the reg property in the pcie_device node. Will update the example dts.
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Will Deacon
maintainerRe: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Quoted 25 lines · Claire Chang
Quoted 24 lines · Will Deacon
Quoted 22 lines · Will Deacon
Review one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 9 lines · Claire Chang
(quoted diff) +5
-0@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };I still don't understand how this works for individual PCIe devices -- how is
dev->of_nodeset to point at the node you have above?I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
| pci-host-generic 40000000.pci: assigned reserved memory node
restricted_dma_mem_reservedbut none of the actual PCI devices end up with '
dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
What am I missing to make this work with PCIe devices?
Aha, looks like we're just missing the logic to inherit the DMA configuration. The diff below gets things working for me.
I guess what was missing is the reg property in the
pcie_devicenode. Will update the example dts.
Thanks. I still think something like my diff makes sense, if you wouldn't mind including it, as it allows restricted DMA to be used for situations where the PCIe topology is not static.
Perhaps we should prefer dev->of_node if it exists, but then use the node of the host bridge's parent node otherwise?
Will
Re: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Quoted 35 lines · Will Deacon
Quoted 25 lines · Claire Chang
Quoted 24 lines · Will Deacon
Quoted 22 lines · Will Deacon
Review one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 9 lines · Claire Chang
(quoted diff) +5
-0@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };I still don't understand how this works for individual PCIe devices -- how is
dev->of_nodeset to point at the node you have above?I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
| pci-host-generic 40000000.pci: assigned reserved memory node
restricted_dma_mem_reservedbut none of the actual PCI devices end up with '
dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
What am I missing to make this work with PCIe devices?
Aha, looks like we're just missing the logic to inherit the DMA configuration. The diff below gets things working for me.
I guess what was missing is the reg property in the
pcie_devicenode. Will update the example dts.
Quoted 6 lines
Thanks. I still think something like my diff makes sense, if you wouldn't mind including it, as it allows restricted DMA to be used for situations where the PCIe topology is not static.
Perhaps we should prefer
dev->of_nodeif it exists, but then use the node of the host bridge's parent node otherwise?
Sure. Let me add in the next version.
Quoted 2 lines
Will
Will Deacon
maintainerRe: [PATCH v7 14/15] dt-bindings: of: Add restricted DMA pool
Quoted 36 lines · Claire Chang
Quoted 35 lines · Will Deacon
Quoted 32 lines · Claire Chang
Quoted 21 lines · Will Deacon
Quoted 19 lines · Will Deacon
Review one for multimedia processing (named multimedia-memory@77000000, 64MiB). · line 167
Quoted 9 lines · Claire Chang
(quoted diff) +5
-0@@ -138,4 +160,9 @@ one for multimedia processing (named multimedia-memory@77000000, 64MiB). memory-region = <&multimedia_reserved>; /* ... */ }; + + pcie_device: pcie_device@0,0 { + memory-region = <&restricted_dma_mem_reserved>; + /* ... */ + };I still don't understand how this works for individual PCIe devices -- how is
dev->of_nodeset to point at the node you have above?I tried adding the memory-region to the host controller instead, and then I see it crop up in dmesg:
| pci-host-generic 40000000.pci: assigned reserved memory node
restricted_dma_mem_reservedQuoted 7 lines
Quoted 4 lines
but none of the actual PCI devices end up with '
dma_io_tlb_mem' set, and so the restricted DMA area is not used. In fact, swiotlb isn't used at all.What am I missing to make this work with PCIe devices?
Aha, looks like we're just missing the logic to inherit the DMA configuration. The diff below gets things working for me.
I guess what was missing is the reg property in the
pcie_devicenode. Will update the example dts.
Quoted 8 lines
Quoted 6 lines
Thanks. I still think something like my diff makes sense, if you wouldn't mind including it, as it allows restricted DMA to be used for situations where the PCIe topology is not static.
Perhaps we should prefer
dev->of_nodeif it exists, but then use the node of the host bridge's parent node otherwise?Sure. Let me add in the next version.
Brill, thanks! I'll take it for a spin once it lands on the list.
Will
PATCH v7 15/15 of: Add plumbing for restricted DMA pool
In reply to Claire ChangIf a device is not behind an IOMMU, we look up the device node and set up the restricted DMA when the restricted-dma-pool is presented.
--- drivers/of/address.c | 25 +++++++++++++++++++++++++ drivers/of/device.c | 3 +++ drivers/of/of_private.h | 5 +++++ 3 files changed, 33 insertions(+)
drivers/of/address.c +25 -0
@@ -8,6 +8,7 @@#include <linux/logic_pio.h> #include <linux/module.h> #include <linux/of_address.h> +#include <linux/of_reserved_mem.h> #include <linux/pci.h> #include <linux/pci_regs.h> #include <linux/sizes.h>
@@ -1112,6 +1113,30 @@ bool of_dma_is_coherent(struct device_node *np) }EXPORT_SYMBOL_GPL (of_dma_is_coherent); +int of_dma_set_restricted_buffer (struct device *dev) +{ +struct device_node *node; +int count, i; + +if (!dev->of_node) +return 0 ; + + count =of_property_count_elems_of_size (dev->of_node,"memory-region" , +sizeof (phandle)); +for (i =0 ; i < count; i++) { + node =of_parse_phandle (dev->of_node,"memory-region" , i); +/* There might be multiple memory regions, but only one +* restriced-dma-pool region is allowed. +*/ +if (of_device_is_compatible (node,"restricted-dma-pool" ) && +of_device_is_available (node)) +return of_reserved_mem_device_init_by_idx ( + dev, dev->of_node, i); + } + +return 0 ; +} +/** * of_mmio_is_nonposted - Check if device uses non-posted MMIO * @np: device node
drivers/of/device.c +3 -0
@@ -165,6 +165,9 @@ int of_dma_configure_id(struct device *dev, struct device_node *np,arch_setup_dma_ops (dev, dma_start, size, iommu, coherent); +if (!iommu) +return of_dma_set_restricted_buffer (dev); +return 0 ; }EXPORT_SYMBOL_GPL (of_dma_configure_id);
drivers/of/of_private.h +5 -0
@@ -163,12 +163,17 @@ struct bus_dma_region;#if defined(CONFIG_OF_ADDRESS ) && defined(CONFIG_HAS_DMA )int of_dma_get_range (struct device_node *np,const struct bus_dma_region **map); +int of_dma_set_restricted_buffer (struct device *dev);#else static inline int of_dma_get_range (struct device_node *np,const struct bus_dma_region **map) {return -ENODEV ; } +static inline int of_dma_set_restricted_buffer (struct device *dev) +{ +return -ENODEV ; +}#endif #endif /* _LINUX_OF_PRIVATE_H */
Signature · 6 lines
2.31.1.751.gd2f1c929bd-goog _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Restricted DMA (rev3)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev3)
URL : https://patchwork.freedesktop.org/series/89341/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 4970ae013adb swiotlb: Refactor swiotlb init functions e6b601b9629d swiotlb: Refactor swiotlb_create_debugfs e86662fadedf swiotlb: Add DMA_RESTRICTED_POOL fde662bbf776 swiotlb: Add restricted DMA pool initialization 4d855565f52f swiotlb: Add a new get_io_tlb_mem getter 0e604cae8fe2 swiotlb: Update is_swiotlb_buffer to add a struct device argument 3bf813727fea swiotlb: Update is_swiotlb_active to add a struct device argument -:98: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "get_io_tlb_mem" #98: FILE: kernel/dma/swiotlb.c:667: + return get_io_tlb_mem(dev) != NULL;
total: 0 errors, 0 warnings, 1 checks, 59 lines checkedbc49eee520f6 swiotlb: Bounce data from/to restricted DMA pool if available
-:45: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #45: FILE: include/linux/swiotlb.h:143:
}
+static inline bool is_dev_swiotlb_force(struct device *dev)
total: 0 errors, 0 warnings, 1 checks, 75 lines checked 68eb3a4c3085 swiotlb: Move alloc_size to find_slotsaec185368af0 swiotlb: Refactor swiotlb_tbl_unmap_single 5c880be08fa6 dma-direct: Add a new wrapper __dma_direct_free_pages() 454814aa7406 swiotlb: Add restricted DMA alloc/free support. 162bfd59d8cd dma-direct: Allocate memory from restricted DMA pool if available 38df8d208cac dt-bindings: of: Add restricted DMA pool e79ad0f25fff of: Add plumbing for restricted DMA pool
-:44: CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#44: FILE: drivers/of/address.c:1133:
+ return of_reserved_mem_device_init_by_idx(
-:83: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #83: FILE: drivers/of/of_private.h:173:
}
+static inline int of_dma_set_restricted_buffer(struct device *dev)
total: 0 errors, 0 warnings, 2 checks, 63 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Restricted DMA (rev3)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev3)
URL : https://patchwork.freedesktop.org/series/89341/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:274:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1345:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1345:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1345:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1346:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1346:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1346:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1405:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1405:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1405:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:287:16: error: incompatible types in comparison expression (different type sizes): +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:287:16: unsigned long * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:287:16: unsigned long long * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:329:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:329:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:329:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c:37:6: warning: symbol 'amdgpu_kms_compat_ioctl' was not declared. Should it be static? +drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h:90:56: error: marked inline, but without a definition +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:270:49: error: static assertion failed: "amd_sriov_msg_v
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Restricted DMA (rev3)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev3)
URL : https://patchwork.freedesktop.org/series/89341/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10094 -> Patchwork_20141
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20141:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@runner@aborted:
- {fi-rkl-11500t}: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-rkl-11500t/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20141 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-compute0:
- fi-ilk-650: NOTRUN -> [SKIP][2] ([fdo#109271]) +30 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@amdgpu/[email protected]
* igt@gem_busy@busy@all:
- fi-elk-e7500: [PASS][3] -> [FAIL][4] ([i915#3457])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-elk-e7500/igt@gem_busy@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-elk-e7500/igt@gem_busy@[email protected]
* igt@gem_exec_fence@basic-await@bcs0:
- fi-bsw-n3050: [PASS][5] -> [FAIL][6] ([i915#3457]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@basic-await@vecs0:
- fi-bsw-kefka: [PASS][7] -> [FAIL][8] ([i915#3457]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@bcs0:
- fi-bsw-nick: [PASS][9] -> [FAIL][10] ([i915#3457]) +4 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-nick/igt@gem_exec_fence@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-nick/igt@gem_exec_fence@[email protected]
* igt@i915_selftest@live@mman:
- fi-ilk-650: NOTRUN -> [DMESG-FAIL][11] ([i915#3457]) +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@i915_selftest@[email protected]
* igt@kms_chamelium@dp-hpd-fast:
- fi-ilk-650: NOTRUN -> [SKIP][12] ([fdo#109271] / [fdo#111827]) +8 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-ilk-650: NOTRUN -> [FAIL][13] ([i915#3457]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-b:
- fi-elk-e7500: [PASS][14] -> [FAIL][15] ([i915#53])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-elk-e7500/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-elk-e7500/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
- fi-ilk-650: NOTRUN -> [FAIL][16] ([i915#53]) +7 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_fence@nb-await@bcs0:
- fi-bsw-n3050: [FAIL][17] ([i915#3457]) -> [PASS][18] +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
* igt@gem_wait@busy@all:
- fi-bsw-nick: [FAIL][19] ([i915#3177] / [i915#3457]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-nick/igt@gem_wait@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-nick/igt@gem_wait@[email protected]
* igt@kms_busy@basic@flip:
- fi-ilk-650: [INCOMPLETE][21] ([i915#3457]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-ilk-650/igt@kms_busy@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@kms_busy@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
- fi-elk-e7500: [FAIL][23] ([i915#53]) -> [PASS][24] +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-elk-e7500/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-elk-e7500/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
- fi-bsw-kefka: [FAIL][25] ([i915#53]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-kefka/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-kefka/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-bwr-2160: [FAIL][27] ([i915#53]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bwr-2160/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bwr-2160/igt@[email protected]
#### Warnings ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [FAIL][29] ([i915#3472]) -> [FAIL][30] ([i915#3457] / [i915#3472])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-pnv-d510/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-pnv-d510/igt@[email protected]
- fi-ilk-650: [FAIL][31] ([i915#3472]) -> [FAIL][32] ([i915#3457] / [i915#3472])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-ilk-650/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-ilk-650/igt@[email protected]
* igt@i915_module_load@reload:
- fi-bsw-kefka: [DMESG-WARN][33] ([i915#1982] / [i915#3457]) -> [DMESG-FAIL][34] ([i915#1982] / [i915#3457])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-kefka/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-kefka/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-nick: [FAIL][35] ([i915#1436] / [i915#2722]) -> [FAIL][36] ([i915#1436])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/fi-bsw-nick/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/fi-bsw-nick/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#2932]: https://gitlab.freedesktop.org/drm/intel/issues/2932
[i915#2966]: https://gitlab.freedesktop.org/drm/intel/issues/2966
[i915#3177]: https://gitlab.freedesktop.org/drm/intel/issues/3177
[i915#3276]: https://gitlab.freedesktop.org/drm/intel/issues/3276
[i915#3277]: https://gitlab.freedesktop.org/drm/intel/issues/3277
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3283]: https://gitlab.freedesktop.org/drm/intel/issues/3283
[i915#3457]: https://gitlab.freedesktop.org/drm/intel/issues/3457
[i915#3468]: https://gitlab.freedesktop.org/drm/intel/issues/3468
[i915#3472]: https://gitlab.freedesktop.org/drm/intel/issues/3472
[i915#53]: https://gitlab.freedesktop.org/drm/intel/issues/53
Participating hosts (24 -> 21)
------------------------------
Additional (1): fi-rkl-11500t
Missing (4): fi-kbl-x1275 fi-bsw-cyan fi-ivb-3770 fi-snb-2520m
Build changes
-------------
* Linux: CI_DRM_10094 -> Patchwork_20141
CI-20190529: 20190529
CI_DRM_10094: 8c6b35ef6a4accca881b1142b3a73ba3725797c7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6085: aacb1384378131b87121219a6a7ccd8b8f1e5d8d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_20141: e79ad0f25fff3249f55ec358d8b6b3542059dc45 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
e79ad0f25fff of: Add plumbing for restricted DMA pool 38df8d208cac dt-bindings: of: Add restricted DMA pool 162bfd59d8cd dma-direct: Allocate memory from restricted DMA pool if available 454814aa7406 swiotlb: Add restricted DMA alloc/free support. 5c880be08fa6 dma-direct: Add a new wrapper __dma_direct_free_pages() aec185368af0 swiotlb: Refactor swiotlb_tbl_unmap_single 68eb3a4c3085 swiotlb: Move alloc_size to find_slotsbc49eee520f6 swiotlb: Bounce data from/to restricted DMA pool if available 3bf813727fea swiotlb: Update is_swiotlb_active to add a struct device argument 0e604cae8fe2 swiotlb: Update is_swiotlb_buffer to add a struct device argument 4d855565f52f swiotlb: Add a new get_io_tlb_mem getter fde662bbf776 swiotlb: Add restricted DMA pool initialization e86662fadedf swiotlb: Add DMA_RESTRICTED_POOLe6b601b9629d swiotlb: Refactor swiotlb_create_debugfs 4970ae013adb swiotlb: Refactor swiotlb init functions
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for Restricted DMA (rev3)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev3)
URL : https://patchwork.freedesktop.org/series/89341/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10094_full -> Patchwork_20141_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20141_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20141_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20141_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_mmap_gtt@cpuset-basic-small-copy-odd:
- shard-snb: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb6/igt@[email protected]
#### Warnings ####
* igt@gem_mmap_gtt@fault-concurrent-y:
- shard-glk: [INCOMPLETE][2] ([i915#3468]) -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk4/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk8/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes}:
- shard-glk: [PASS][4] -> [FAIL][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk4/igt@kms_plane@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk1/igt@kms_plane@[email protected]
### Piglit changes ###
#### Possible regressions ####
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_mat4x2-position-double_dvec4 (NEW):
- {pig-icl-1065g7}: NOTRUN -> [INCOMPLETE][6] +7 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/pig-icl-1065g7/spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_mat4x2-position-double_dvec4.html
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_vec2-position-double_double_array2 (NEW):
- {pig-icl-1065g7}: NOTRUN -> [CRASH][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/pig-icl-1065g7/spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_vec2-position-double_double_array2.html
New tests
---------
New tests have been introduced between CI_DRM_10094_full and Patchwork_20141_full:
### New Piglit tests (9) ###
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-double_dmat3x2-position-float_mat3_array3:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-double_dvec4-double_dmat2x4_array2-position:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_mat4x2-position-double_dvec4:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-float_vec2-position-double_double_array2:
- Statuses : 1 crash(s)
- Exec time: [0.96] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-position-double_dmat2x3-float_vec3_array3:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-position-int_int_array3-double_dmat2x3_array2:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-position-int_ivec3_array3-double_dvec4:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-position-uint_uvec2-double_dmat4x3_array2:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_vertex_attrib_64bit@execution@vs_in@vs-input-ubyte_uvec4-short_ivec2-double_dmat3-position:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_20141_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@api_intel_allocator@execbuf-with-allocator:
- shard-kbl: NOTRUN -> [DMESG-WARN][8] ([i915#3457]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
* igt@api_intel_bb@blit-noreloc-keep-cache-random:
- shard-glk: NOTRUN -> [DMESG-FAIL][9] ([i915#3457])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
- shard-skl: NOTRUN -> [DMESG-WARN][10] ([i915#3457])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@api_intel_bb@blit-noreloc-purge-cache:
- shard-apl: NOTRUN -> [DMESG-FAIL][11] ([i915#3457])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl1/igt@[email protected]
* igt@api_intel_bb@delta-check:
- shard-apl: NOTRUN -> [DMESG-WARN][12] ([i915#3457]) +2 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@[email protected]
* igt@gem_ctx_persistence@engines-persistence@vecs0:
- shard-apl: [PASS][13] -> [FAIL][14] ([i915#3457])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-apl6/igt@gem_ctx_persistence@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl1/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@smoketest:
- shard-snb: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#1099]) +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb5/igt@[email protected]
* igt@gem_ctx_ringsize@active@bcs0:
- shard-skl: [PASS][16] -> [INCOMPLETE][17] ([i915#3316] / [i915#3457])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-skl3/igt@gem_ctx_ringsize@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl4/igt@gem_ctx_ringsize@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [PASS][18] -> [FAIL][19] ([i915#2846] / [i915#3457])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl1/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl1/igt@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: [PASS][20] -> [FAIL][21] ([i915#2842] / [i915#3457])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl1/igt@gem_exec_fair@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][22] ([i915#2842] / [i915#3457])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fence@keep-in-fence@rcs0:
- shard-glk: [PASS][23] -> [INCOMPLETE][24] ([i915#3457])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk3/igt@gem_exec_fence@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk8/igt@gem_exec_fence@[email protected]
* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-snb: NOTRUN -> [SKIP][25] ([fdo#109271]) +253 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb2/igt@[email protected]
* igt@gem_exec_reloc@basic-wide-active@vcs1:
- shard-iclb: NOTRUN -> [FAIL][26] ([i915#2389] / [i915#3457])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb4/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_schedule@preemptive-hang@rcs0:
- shard-glk: [PASS][27] -> [FAIL][28] ([i915#3457]) +30 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk4/igt@gem_exec_schedule@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk8/igt@gem_exec_schedule@[email protected]
* igt@gem_mmap_gtt@big-copy-xy:
- shard-glk: [PASS][29] -> [FAIL][30] ([i915#307])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk4/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk8/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-xy:
- shard-snb: NOTRUN -> [INCOMPLETE][31] ([i915#3468]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb2/igt@[email protected]
* igt@gem_mmap_gtt@fault-concurrent-y:
- shard-skl: NOTRUN -> [INCOMPLETE][32] ([i915#3468]) +1 similar issue
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-linear:
- shard-skl: NOTRUN -> [INCOMPLETE][33] ([i915#198] / [i915#3468])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl4/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-y-tiled-ccs:
- shard-apl: NOTRUN -> [INCOMPLETE][34] ([i915#3468]) +2 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled:
- shard-glk: NOTRUN -> [INCOMPLETE][35] ([i915#3468])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
* igt@gem_spin_batch@legacy@default:
- shard-apl: NOTRUN -> [FAIL][36] ([i915#2898] / [i915#3457]) +3 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl1/igt@gem_spin_batch@[email protected]
* igt@gem_userptr_blits@set-cache-level:
- shard-snb: NOTRUN -> [FAIL][37] ([i915#3324])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb2/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-kbl: NOTRUN -> [FAIL][38] ([i915#3318] / [i915#3457])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl1/igt@[email protected]
* igt@gem_wait@write-busy@vecs0:
- shard-glk: NOTRUN -> [FAIL][39] ([i915#3457]) +11 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@gem_wait@[email protected]
* igt@gem_wait@write-wait@bcs0:
- shard-apl: NOTRUN -> [FAIL][40] ([i915#3457]) +19 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@gem_wait@[email protected]
* igt@gen7_exec_parse@basic-offset:
- shard-skl: NOTRUN -> [SKIP][41] ([fdo#109271]) +26 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [PASS][42] -> [DMESG-WARN][43] ([i915#1436] / [i915#716])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-skl1/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl10/igt@[email protected]
* igt@i915_hangman@error-state-capture@vcs1:
- shard-iclb: NOTRUN -> [DMESG-WARN][44] ([i915#3457])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb4/igt@i915_hangman@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-kbl: NOTRUN -> [FAIL][45] ([i915#454])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][46] -> [FAIL][47] ([i915#454])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-iclb7/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb4/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#1937])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rpm@cursor:
- shard-kbl: [PASS][49] -> [DMESG-WARN][50] ([i915#3457])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl7/igt@[email protected]
- shard-glk: [PASS][51] -> [DMESG-WARN][52] ([i915#3457]) +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk3/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk4/igt@[email protected]
* igt@i915_pm_rpm@gem-mmap-type@uc:
- shard-glk: [PASS][53] -> [DMESG-WARN][54] ([i915#3475])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk6/igt@i915_pm_rpm@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk6/igt@i915_pm_rpm@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-snb: NOTRUN -> [DMESG-WARN][55] ([i915#3457]) +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb7/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-kbl: [PASS][56] -> [DMESG-WARN][57] ([i915#180]) +3 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl1/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl1/igt@[email protected]
* igt@kms_big_joiner@basic:
- shard-apl: NOTRUN -> [SKIP][58] ([fdo#109271] / [i915#2705])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_ccs@pipe-c-bad-pixel-format:
- shard-skl: NOTRUN -> [SKIP][59] ([fdo#109271] / [fdo#111304])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-storm:
- shard-kbl: NOTRUN -> [SKIP][60] ([fdo#109271] / [fdo#111827]) +12 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl1/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-degamma:
- shard-glk: NOTRUN -> [SKIP][61] ([fdo#109271] / [fdo#111827]) +5 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][62] ([fdo#109271] / [fdo#111827]) +1 similar issue
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes:
- shard-snb: NOTRUN -> [SKIP][63] ([fdo#109271] / [fdo#111827]) +14 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb2/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-degamma-lut-sizes:
- shard-apl: NOTRUN -> [SKIP][64] ([fdo#109271] / [fdo#111827]) +18 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-apl: NOTRUN -> [TIMEOUT][65] ([i915#1319])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-128x128-sliding:
- shard-apl: NOTRUN -> [FAIL][66] ([i915#3444] / [i915#3457]) +5 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x256-onscreen:
- shard-snb: NOTRUN -> [FAIL][67] ([i915#3457])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-sliding:
- shard-snb: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#3457]) +41 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x170-offscreen:
- shard-glk: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#3457]) +6 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-512x512-offscreen:
- shard-skl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#3457]) +3 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-dpms:
- shard-iclb: [PASS][71] -> [FAIL][72] ([i915#3457]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-iclb8/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: NOTRUN -> [FAIL][73] ([i915#3444] / [i915#3457]) +4 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-128x128-onscreen:
- shard-kbl: NOTRUN -> [FAIL][74] ([i915#3444] / [i915#3457]) +10 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding:
- shard-glk: NOTRUN -> [FAIL][75] ([i915#3444] / [i915#3457]) +4 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-512x170-rapid-movement:
- shard-kbl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#3457]) +17 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x64-sliding:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#3457]) +27 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl6/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [PASS][78] -> [FAIL][79] ([i915#2346] / [i915#3457] / [i915#533])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-skl10/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_draw_crc@draw-method-rgb565-pwrite-xtiled:
- shard-glk: [PASS][80] -> [DMESG-WARN][81] ([i915#118] / [i915#95])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk8/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-blt:
- shard-kbl: NOTRUN -> [SKIP][82] ([fdo#109271]) +124 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-wc:
- shard-glk: NOTRUN -> [SKIP][83] ([fdo#109271]) +36 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-skl: [PASS][84] -> [FAIL][85] ([i915#2546] / [i915#49])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-skl7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl10/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu.html
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][86] ([fdo#109271] / [i915#533]) +1 similar issue
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#533]) +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-kbl: NOTRUN -> [DMESG-WARN][88] ([i915#180])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][89] ([i915#265])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][90] ([fdo#108145] / [i915#265]) +3 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-glk: NOTRUN -> [FAIL][91] ([i915#265]) +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][92] ([i915#265])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb:
- shard-kbl: NOTRUN -> [FAIL][93] ([fdo#108145] / [i915#265]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
* igt@kms_plane_cursor@pipe-b-overlay-size-256:
- shard-snb: NOTRUN -> [FAIL][94] ([i915#2657])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb5/igt@[email protected]
* igt@kms_plane_cursor@pipe-b-overlay-size-64:
- shard-kbl: NOTRUN -> [FAIL][95] ([i915#2657] / [i915#3457]) +1 similar issue
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl3/igt@[email protected]
* igt@kms_plane_cursor@pipe-b-viewport-size-256:
- shard-glk: NOTRUN -> [FAIL][96] ([i915#2657]) +2 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][97] ([i915#2657])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@kms_plane_cursor@pipe-c-viewport-size-128:
- shard-kbl: NOTRUN -> [FAIL][98] ([i915#2657]) +1 similar issue
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-3:
- shard-skl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#658]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#658]) +1 similar issue
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk5/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-kbl: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#658]) +4 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-2:
- shard-apl: NOTRUN -> [SKIP][102] ([fdo#109271] / [i915#658]) +4 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@[email protected]
* igt@kms_setmode@basic:
- shard-snb: NOTRUN -> [FAIL][103] ([i915#31])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-snb5/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-forked-hang:
- shard-apl: NOTRUN -> [SKIP][104] ([fdo#109271]) +181 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-skl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#2437])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl4/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-apl: NOTRUN -> [SKIP][106] ([fdo#109271] / [i915#2437]) +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl8/igt@[email protected]
* igt@perf_pmu@busy-idle-no-semaphores@rcs0:
- shard-glk: [PASS][107] -> [WARN][108] ([i915#3457])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk1/igt@perf_pmu@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk1/igt@perf_pmu@[email protected]
* igt@perf_pmu@render-node-busy-idle@rcs0:
- shard-apl: NOTRUN -> [WARN][109] ([i915#3457]) +3 similar issues
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl1/igt@perf_pmu@[email protected]
* igt@sysfs_clients@sema-25:
- shard-skl: NOTRUN -> [SKIP][110] ([fdo#109271] / [i915#2994])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-skl1/igt@[email protected]
* igt@sysfs_clients@sema-50:
- shard-kbl: NOTRUN -> [SKIP][111] ([fdo#109271] / [i915#2994])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#2994])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl6/igt@[email protected]
* igt@sysfs_heartbeat_interval@mixed@vecs0:
- shard-apl: NOTRUN -> [FAIL][113] ([i915#1731] / [i915#3457]) +3 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-apl7/igt@sysfs_heartbeat_interval@[email protected]
#### Possible fixes ####
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-iclb: [FAIL][114] ([i915#2842] / [i915#3457]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-iclb8/igt@gem_exec_fair@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-glk: [FAIL][116] ([i915#3209] / [i915#3457]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk6/igt@gem_exec_fair@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [FAIL][118] ([i915#2842] / [i915#3457]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl1/igt@gem_exec_fair@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_schedule@submit-golden-slice@rcs0:
- shard-glk: [FAIL][120] ([i915#3457]) -> [PASS][121] +17 similar issues
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-glk1/igt@gem_exec_schedule@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/shard-glk3/igt@gem_exec_schedule@[email protected]
* igt@gem_exec_suspend@basic-s3:
- shard-kbl: [DMESG-WARN][122] ([i915#180]) -> [PASS][123] +2 similar issues
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10094/shard-kbl2/igt@gem_exec_su
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20141/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
v8 here: https://lore.kernel.org/patchwork/cover/1437112/
_______________________________________________
iommu mailing list [email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for Restricted DMA (rev4)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev4)
URL : https://patchwork.freedesktop.org/series/89341/
State : failure
== Summary ==
Applying: swiotlb: Refactor swiotlb init functions
Applying: swiotlb: Refactor swiotlb_create_debugfs
Applying: swiotlb: Add DMA_RESTRICTED_POOL
Applying: swiotlb: Add restricted DMA pool initialization Using index info to reconstruct a base tree...
M include/linux/device.h
M include/linux/swiotlb.h
M kernel/dma/swiotlb.c
Falling back to patching base and 3-way merge... Auto-merging kernel/dma/swiotlb.c
CONFLICT (content): Merge conflict in kernel/dma/swiotlb.c Auto-merging include/linux/swiotlb.h
CONFLICT (content): Merge conflict in include/linux/swiotlb.h Auto-merging include/linux/device.h
CONFLICT (content): Merge conflict in include/linux/device.h
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0004 swiotlb: Add restricted DMA pool initialization When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for Restricted DMA (rev5)
In reply to Claire Chang== Series Details ==
== Series Details ==
Series: Restricted DMA (rev5)
URL : https://patchwork.freedesktop.org/series/89341/
State : failure
== Summary ==
Applying: swiotlb: Refactor swiotlb init functions
Applying: swiotlb: Refactor swiotlb_create_debugfs
Applying: swiotlb: Add DMA_RESTRICTED_POOL
Applying: swiotlb: Add restricted DMA pool initialization Using index info to reconstruct a base tree...
M drivers/base/core.c
M include/linux/device.h
M include/linux/swiotlb.h
M kernel/dma/swiotlb.c
Falling back to patching base and 3-way merge... Auto-merging kernel/dma/swiotlb.c
CONFLICT (content): Merge conflict in kernel/dma/swiotlb.c Auto-merging include/linux/swiotlb.h
CONFLICT (content): Merge conflict in include/linux/swiotlb.h Auto-merging include/linux/device.h
CONFLICT (content): Merge conflict in include/linux/device.h Auto-merging drivers/base/core.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0004 swiotlb: Add restricted DMA pool initialization When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx