linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <Conor.Dooley@microchip.com>
To: <hch@lst.de>
Cc: <sfr@canb.auug.org.au>, <linux-next@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
	<rppt@kernel.org>
Subject: Re: linux-next: Tree for May 3
Date: Fri, 13 May 2022 07:55:14 +0000	[thread overview]
Message-ID: <09a503cb-db09-db2b-ce7f-9797497028c5@microchip.com> (raw)
In-Reply-To: <20220511123724.GA25121@lst.de>

On 11/05/2022 13:37, Christoph Hellwig wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Wed, May 11, 2022 at 10:10:40AM +0000, Conor.Dooley@microchip.com wrote:
>> Without even trying the patch, I double checked the boot log from
>> 3f70356edf56 and I get a "software IO TLB: Cannot allocate buffer"
>> With the patch its a "software IO TLB: swiotlb_init_remap: failed
>> to allocate tlb structure". So spot on & I feel like an idiot for
>> not spotting that before!
>>
>> Is failing being fatal valid, or should it fail gracefully like it
>> used to do? To me, blissfully unaware about swiotlb, the "current"
>> behaviour of failing gracefully makes more sense.
> 
> Given that we're at -rc6 I think the most important thing for now is to
> avoid a regression and restore the old behavior.  I'll send out a
> series with this and the nslab related fixes for Xen today.
> 
> But we should look into why allocating the memory fails for your
> plaforms.  Does it have very little memory?  I can't really think
> of why else the memblock allocation for swiotlb would fail.

My assumption would be that it is the complete lack of usable memory
at 32 bit bit addresses? Even though there is memory physically there
it is just being ignored as you can see in the boot log (because it's
below the entry point?).

My question is, does failing to even boot make sense if that buffer
can't be allocated? Can argue that SWIOTLB should'nt be enabled in the
first place if there is no DMA32, but if it is enabled in error would
it not be better to at least let the system boot & spit out an uglier
warning?
(Obviously I missed the current warning, hence the "uglier" bit.)

Thanks,
Conor.

(readding log for context)
[    0.000000] OF: fdt: Ignoring memory block 0x80000000 - 0xae000000
[    0.000000] OF: fdt: Ignoring memory range 0x1000000000 - 0x1000200000
[    0.000000] Machine model: Microchip PolarFire-SoC Icicle Kit
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000001000200000-0x000000103fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000001000200000-0x000000103fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000001000200000-0x000000103fffffff]

  parent reply	other threads:[~2022-05-13  7:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03  7:29 linux-next: Tree for May 3 Stephen Rothwell
2022-05-04  8:32 ` Conor.Dooley
2022-05-09 13:33   ` Conor.Dooley
2022-05-09 14:11     ` Christoph Hellwig
2022-05-09 14:39       ` Conor.Dooley
2022-05-10 11:20         ` Conor.Dooley
2022-05-11  6:22           ` Christoph Hellwig
2022-05-11  6:44             ` Conor.Dooley
2022-05-11  6:48               ` Christoph Hellwig
2022-05-11 10:10                 ` Conor.Dooley
2022-05-11 12:37                   ` Christoph Hellwig
2022-05-11 14:08                     ` Mike Rapoport
2022-05-11 14:10                       ` Christoph Hellwig
2022-05-11 14:37                         ` Mike Rapoport
2022-05-11 14:40                           ` Christoph Hellwig
2022-05-13  7:55                     ` Conor.Dooley [this message]
2022-05-14 12:18                   ` Geert Uytterhoeven
2022-05-16  9:47                     ` Conor.Dooley
  -- strict thread matches above, loose matches on Subject: below --
2021-05-03  2:59 Stephen Rothwell
2019-05-03 10:00 Stephen Rothwell
2018-05-03  5:13 Stephen Rothwell
2017-05-03  5:54 Stephen Rothwell
2016-05-03  9:37 Stephen Rothwell
2013-05-03  4:10 Stephen Rothwell
2012-05-03  6:38 Stephen Rothwell
2011-05-03  5:47 Stephen Rothwell
2010-05-03  5:16 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09a503cb-db09-db2b-ce7f-9797497028c5@microchip.com \
    --to=conor.dooley@microchip.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=rppt@kernel.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).