Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-09-20 Thread Dave Hansen
On 09/20/2017 03:47 PM, Tycho Andersen wrote: > >>> static inline void *skcipher_map(struct scatter_walk *walk) >>> { >>> struct page *page = scatterwalk_page(walk); >>> >>> return (PageHighMem(page) ? kmap_atomic(page) : page_address(page)) >>> + >>>offset_in_page

Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-09-20 Thread Tycho Andersen
On Wed, Sep 20, 2017 at 09:19:56AM -0700, Dave Hansen wrote: > On 08/09/2017 01:07 PM, Tycho Andersen wrote: > > --- a/lib/swiotlb.c > > +++ b/lib/swiotlb.c > > @@ -420,8 +420,9 @@ static void swiotlb_bounce(phys_addr_t orig_addr, > > phys_addr_t tlb_addr, > > { > > unsigned long pfn = PFN_DO

Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-09-20 Thread Dave Hansen
On 08/09/2017 01:07 PM, Tycho Andersen wrote: > --- a/lib/swiotlb.c > +++ b/lib/swiotlb.c > @@ -420,8 +420,9 @@ static void swiotlb_bounce(phys_addr_t orig_addr, > phys_addr_t tlb_addr, > { > unsigned long pfn = PFN_DOWN(orig_addr); > unsigned char *vaddr = phys_to_virt(tlb_addr); > +

Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-08-10 Thread Tycho Andersen
On Thu, Aug 10, 2017 at 09:01:06AM -0400, Konrad Rzeszutek Wilk wrote: > On Wed, Aug 09, 2017 at 02:07:48PM -0600, Tycho Andersen wrote: > > +inline bool xpfo_page_is_unmapped(struct page *page) > > +{ > > + if (!static_branch_unlikely(&xpfo_inited)) > > + return false; > > + > > + re

Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-08-10 Thread Konrad Rzeszutek Wilk
On Wed, Aug 09, 2017 at 02:07:48PM -0600, Tycho Andersen wrote: > From: Juerg Haefliger > > Signed-off-by: Juerg Haefliger > Tested-by: Tycho Andersen > --- > include/linux/xpfo.h | 4 > lib/swiotlb.c| 3 ++- > mm/xpfo.c| 9 + > 3 files changed, 15 insertions(+

[PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-08-09 Thread Tycho Andersen
From: Juerg Haefliger Signed-off-by: Juerg Haefliger Tested-by: Tycho Andersen --- include/linux/xpfo.h | 4 lib/swiotlb.c| 3 ++- mm/xpfo.c| 9 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/linux/xpfo.h b/include/linux/xpfo.h index 1