Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 29 Dec 2019 14:38:20 -0800
On 2019-Dec-29, at 14:04, Hans Petter Selasky <hps at selasky.org> wrote:

> On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote:
>> 0xd2630510: at uma_zalloc_arg+0x1b4
>> 0xd2630540: at malloc+0xfc
>> 0xd2630580: at alloc_bounce_pages+0x7c
>> 0xd26305c0: at bus_dmamap_create+0x1e8
> 
> Do you know what drivers are using bounce pages?

No clue. Looking around a bit I see that there is:

        if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) && newtag->iommu == NULL)
                newtag->flags |= BUS_DMA_COULD_BOUNCE;

        if (newtag->alignment > 1)
                newtag->flags |= BUS_DMA_COULD_BOUNCE;

in bus_dma_tag_create (in sys/powerpc/powerpc/busdma_machdep.c ).
But that does not indicate what all specifically might have met
one of those 2 conditions for some tag creation. (The material
is not familiar.)


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Sun Dec 29 2019 - 21:38:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC