Re: [PATCH v1 1/3] swiotlb: Use %pa to print phys_addr_t variables

2020-08-19 Thread Fabio Estevam
Hi Andy, On Wed, Aug 19, 2020 at 2:16 PM Andy Shevchenko wrote: > - unsigned long bytes = io_tlb_nslabs << IO_TLB_SHIFT; > + unsigned long mb = (io_tlb_nslabs << IO_TLB_SHIFT) >> 20; Looks like an unrelated change. ___ iommu mailing list

Re: [PATCH v1 1/3] swiotlb: Use %pa to print phys_addr_t variables

2020-08-19 Thread Andy Shevchenko
On Wed, Aug 19, 2020 at 02:24:10PM -0300, Fabio Estevam wrote: > On Wed, Aug 19, 2020 at 2:16 PM Andy Shevchenko > wrote: > > > - unsigned long bytes = io_tlb_nslabs << IO_TLB_SHIFT; > > + unsigned long mb = (io_tlb_nslabs << IO_TLB_SHIFT) >> 20; > > Looks like an unrelated change.

[PATCH v1 1/3] swiotlb: Use %pa to print phys_addr_t variables

2020-08-19 Thread Andy Shevchenko
There is an extension to a %p to print phys_addr_t type of variables. Use it here. Signed-off-by: Andy Shevchenko --- kernel/dma/swiotlb.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index c19379fabd20..676ccf0e49d3