Re: [PATCH] dma-debug: fix displaying of dma allocation type

2020-04-08 Thread Christoph Hellwig
On Wed, Apr 08, 2020 at 10:13:55PM +0300, Grygorii Strashko wrote: >>> -static const char *type2name[5] = { "single", "page", >>> +static const char *type2name[5] = { "single", >>> "scather-gather", "coherent", >>> "resource" }; >> >

Re: [PATCH] dma-debug: fix displaying of dma allocation type

2020-04-08 Thread Grygorii Strashko via iommu
On 08/04/2020 21:49, Christoph Hellwig wrote: On Wed, Apr 08, 2020 at 09:48:04PM +0300, Grygorii Strashko wrote: The commit 2e05ea5cdc1a ("dma-mapping: implement dma_map_single_attrs using dma_map_page_attrs") removed "dma_debug_page" enum, but missed to update type2name string table. This ca

Re: [PATCH] dma-debug: fix displaying of dma allocation type

2020-04-08 Thread Christoph Hellwig
On Wed, Apr 08, 2020 at 09:48:04PM +0300, Grygorii Strashko wrote: > The commit 2e05ea5cdc1a ("dma-mapping: implement dma_map_single_attrs using > dma_map_page_attrs") removed "dma_debug_page" enum, but missed to update > type2name string table. This causes incorrect displaying of dma allocation >

[PATCH] dma-debug: fix displaying of dma allocation type

2020-04-08 Thread Grygorii Strashko via iommu
The commit 2e05ea5cdc1a ("dma-mapping: implement dma_map_single_attrs using dma_map_page_attrs") removed "dma_debug_page" enum, but missed to update type2name string table. This causes incorrect displaying of dma allocation type. Fix it by removing "page" string from type2name string table. Before