lkml.org 
[lkml]   [2019]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] swiotlb: Return error from swiotlb_init_with_tbl()
On Thu, Jan 31, 2019 at 05:24:24PM +0100, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@suse.de>
>
> The only reason why swiotlb_init_with_tbl() can fail is an
> allocation failure in the memblock_alloc() function. But
> this function just calls panic() in case it can't fulfill
> the request and never returns an error, therefore
> swiotlb_init_with_tbl() also never actually returns an
> error.

Please use up all 72 characters per line available in the commit log
format.

> - io_tlb_list = memblock_alloc(
> + io_tlb_list = memblock_alloc_nopanic(
> PAGE_ALIGN(io_tlb_nslabs * sizeof(int)),
> PAGE_SIZE);

Mike just killed the _nopanic versions and made the normal ones not
panic.

\
 
 \ /
  Last update: 2019-02-01 09:12    [W:0.111 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site