Message ID | 20190715084442.14686-1-hemant.agrawal@nxp.com |
---|---|
Headers | show |
Series | FSLMC bus enchancements | expand |
15/07/2019 10:44, Hemant Agrawal: > Nipun Gupta (1): > bus/fslmc: use cinh read for eqcr ci on ls1088 platform > > Sachin Saxena (1): > mempool/dpaa2: vfio dmamap for user allocated memory > > Shreyansh Jain (3): > bus/fslmc: support device iteration > bus/fslmc: enhance error handling for dev parsing > bus/fslmc: dynamic iommu mode detection I had the following comments on v1: The title should start with a verb. VFIO and DMA should be uppercase. I tried to fix it. Applied, thanks
On 7/15/2019 10:53 PM, Thomas Monjalon wrote: > 15/07/2019 10:44, Hemant Agrawal: >> Nipun Gupta (1): >> bus/fslmc: use cinh read for eqcr ci on ls1088 platform >> >> Sachin Saxena (1): >> mempool/dpaa2: vfio dmamap for user allocated memory >> >> Shreyansh Jain (3): >> bus/fslmc: support device iteration >> bus/fslmc: enhance error handling for dev parsing >> bus/fslmc: dynamic iommu mode detection > > I had the following comments on v1: > The title should start with a verb. > VFIO and DMA should be uppercase. > I tried to fix it. > > Applied, thanks > > Getting build error with "ppc_64-power8-linuxapp-gcc" target [1], related to the wrong format specifier. Not sure it is only ppc one. $ /opt/ppc/bin/powerpc64le-linux-gcc --version powerpc64le-linux-gcc.br_real (Buildroot 2018.08-git-00807-g0184fa3) 8.2.0 [1] In file included from .../drivers/bus/fslmc/fslmc_vfio.c:37: [75/3669] .../drivers/bus/fslmc/fslmc_vfio.c: In function ‘rte_fslmc_vfio_mem_dmamap’: .../drivers/bus/fslmc/fslmc_logs.h:18:44: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=] rte_log(RTE_LOG_DEBUG, dpaa2_logtype_bus, "fslmc: %s(): " fmt "\n", \ ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:2: note: in expansion of macro ‘DPAA2_BUS_DEBUG’ DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:36: note: format string is defined here DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ~~~^ %lx In file included from .../drivers/bus/fslmc/fslmc_vfio.c:37: .../drivers/bus/fslmc/fslmc_logs.h:18:44: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=] rte_log(RTE_LOG_DEBUG, dpaa2_logtype_bus, "fslmc: %s(): " fmt "\n", \ ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:2: note: in expansion of macro ‘DPAA2_BUS_DEBUG’ DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:43: note: format string is defined here DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ~~~^ %lx In file included from .../drivers/bus/fslmc/fslmc_vfio.c:37: .../drivers/bus/fslmc/fslmc_logs.h:18:44: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=] rte_log(RTE_LOG_DEBUG, dpaa2_logtype_bus, "fslmc: %s(): " fmt "\n", \ ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:2: note: in expansion of macro ‘DPAA2_BUS_DEBUG’ DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ^~~~~~~~~~~~~~~ .../drivers/bus/fslmc/fslmc_vfio.c:387:56: note: format string is defined here DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", ~~~^ %lx
16/07/2019 13:40, Ferruh Yigit: > On 7/15/2019 10:53 PM, Thomas Monjalon wrote: > > 15/07/2019 10:44, Hemant Agrawal: > >> Nipun Gupta (1): > >> bus/fslmc: use cinh read for eqcr ci on ls1088 platform > >> > >> Sachin Saxena (1): > >> mempool/dpaa2: vfio dmamap for user allocated memory > >> > >> Shreyansh Jain (3): > >> bus/fslmc: support device iteration > >> bus/fslmc: enhance error handling for dev parsing > >> bus/fslmc: dynamic iommu mode detection > > > > I had the following comments on v1: > > The title should start with a verb. > > VFIO and DMA should be uppercase. > > I tried to fix it. > > > > Applied, thanks > > Getting build error with "ppc_64-power8-linuxapp-gcc" target [1], related to the > wrong format specifier. Not sure it is only ppc one. It's so disappointing. I don't know how many times I tried to explain the issue with %lx. Should we just forbid %lx and %llx usage?
On Tue, Jul 16, 2019 at 03:36:53PM +0200, Thomas Monjalon wrote: > 16/07/2019 13:40, Ferruh Yigit: > > On 7/15/2019 10:53 PM, Thomas Monjalon wrote: > > > 15/07/2019 10:44, Hemant Agrawal: > > >> Nipun Gupta (1): > > >> bus/fslmc: use cinh read for eqcr ci on ls1088 platform > > >> > > >> Sachin Saxena (1): > > >> mempool/dpaa2: vfio dmamap for user allocated memory > > >> > > >> Shreyansh Jain (3): > > >> bus/fslmc: support device iteration > > >> bus/fslmc: enhance error handling for dev parsing > > >> bus/fslmc: dynamic iommu mode detection > > > > > > I had the following comments on v1: > > > The title should start with a verb. > > > VFIO and DMA should be uppercase. > > > I tried to fix it. > > > > > > Applied, thanks > > > > Getting build error with "ppc_64-power8-linuxapp-gcc" target [1], related to the > > wrong format specifier. Not sure it is only ppc one. > > It's so disappointing. > I don't know how many times I tried to explain the issue with %lx. > Should we just forbid %lx and %llx usage? > We could, I suppose, so long as there never is a case where we actually do use long, or long long variables. A checkpatch-style warning when one is used probably is the best option, since it may help with catching these earlier, while still allowing flexibility and human judgement as to whether an instance is correct or not. /Bruce
On 7/16/2019 2:36 PM, Thomas Monjalon wrote: > 16/07/2019 13:40, Ferruh Yigit: >> On 7/15/2019 10:53 PM, Thomas Monjalon wrote: >>> 15/07/2019 10:44, Hemant Agrawal: >>>> Nipun Gupta (1): >>>> bus/fslmc: use cinh read for eqcr ci on ls1088 platform >>>> >>>> Sachin Saxena (1): >>>> mempool/dpaa2: vfio dmamap for user allocated memory >>>> >>>> Shreyansh Jain (3): >>>> bus/fslmc: support device iteration >>>> bus/fslmc: enhance error handling for dev parsing >>>> bus/fslmc: dynamic iommu mode detection >>> >>> I had the following comments on v1: >>> The title should start with a verb. >>> VFIO and DMA should be uppercase. >>> I tried to fix it. >>> >>> Applied, thanks >> >> Getting build error with "ppc_64-power8-linuxapp-gcc" target [1], related to the >> wrong format specifier. Not sure it is only ppc one. > > It's so disappointing. > I don't know how many times I tried to explain the issue with %lx. > Should we just forbid %lx and %llx usage? > Hi Hemant, Is there any update on this? Has any fix sent?
Hi Ferruh, > > On 7/16/2019 2:36 PM, Thomas Monjalon wrote: > > 16/07/2019 13:40, Ferruh Yigit: > >> On 7/15/2019 10:53 PM, Thomas Monjalon wrote: > >>> 15/07/2019 10:44, Hemant Agrawal: > >>>> Nipun Gupta (1): > >>>> bus/fslmc: use cinh read for eqcr ci on ls1088 platform > >>>> > >>>> Sachin Saxena (1): > >>>> mempool/dpaa2: vfio dmamap for user allocated memory > >>>> > >>>> Shreyansh Jain (3): > >>>> bus/fslmc: support device iteration > >>>> bus/fslmc: enhance error handling for dev parsing > >>>> bus/fslmc: dynamic iommu mode detection > >>> > >>> I had the following comments on v1: > >>> The title should start with a verb. > >>> VFIO and DMA should be uppercase. > >>> I tried to fix it. > >>> > >>> Applied, thanks > >> > >> Getting build error with "ppc_64-power8-linuxapp-gcc" target [1], > >> related to the wrong format specifier. Not sure it is only ppc one. > > > > It's so disappointing. > > I don't know how many times I tried to explain the issue with %lx. > > Should we just forbid %lx and %llx usage? > > > > Hi Hemant, > > Is there any update on this? Has any fix sent? [Hemant] I have just sent the fix. Regards, Hemant