Re: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Ingo Molnar
* Paolo Bonzini wrote: > On 04/12/2015 13:33, Igor Mammedov wrote: > > That doesn't pass strict type check: > > > > include/linux/kernel.h:730:17: warning: comparison of distinct pointer > > types lacks a cast [enabled by default] > > (void) (&_max1 == &_max2); \ > > ^ > >

Re: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Paolo Bonzini
On 04/12/2015 13:33, Igor Mammedov wrote: > That doesn't pass strict type check: > > include/linux/kernel.h:730:17: warning: comparison of distinct pointer types > lacks a cast [enabled by default] > (void) (&_max1 == &_max2); \ > ^ > arch/x86/mm/srat.c:206:21: note: in expa

Re: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Igor Mammedov
On Fri, 4 Dec 2015 12:49:49 +0100 Ingo Molnar wrote: > > * Igor Mammedov wrote: > > > when memory hotplug enabled system is booted with less > > than 4GB of RAM and then later more RAM is hotplugged > > 32-bit devices stop functioning with following error: > > > > nommu_map_single: overflow

Re: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Igor Mammedov
On Fri, 4 Dec 2015 12:49:49 +0100 Ingo Molnar wrote: > > * Igor Mammedov wrote: > > > when memory hotplug enabled system is booted with less > > than 4GB of RAM and then later more RAM is hotplugged > > 32-bit devices stop functioning with following error: > > > > nommu_map_single: overflow

Re: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Ingo Molnar
* Igor Mammedov wrote: > when memory hotplug enabled system is booted with less > than 4GB of RAM and then later more RAM is hotplugged > 32-bit devices stop functioning with following error: > > nommu_map_single: overflow 327b4f8c0+1522 of device mask > > the reason for this is that

[PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN

2015-12-04 Thread Igor Mammedov
when memory hotplug enabled system is booted with less than 4GB of RAM and then later more RAM is hotplugged 32-bit devices stop functioning with following error: nommu_map_single: overflow 327b4f8c0+1522 of device mask the reason for this is that if x86_64 system were booted with RAM l