OpenCloudOS-Kernel/drivers/net/ipa
Alex Elder 437c78f976 net: ipa: avoid 64-bit modulus
It is possible for a 32 bit x86 build to use a 64 bit DMA address.

There are two remaining spots where the IPA driver does a modulo
operation to check alignment of a DMA address, and under certain
conditions this can lead to a build error on i386 (at least).

The alignment checks we're doing are for power-of-2 values, and this
means the lower 32 bits of the DMA address can be used.  This ensures
both operands to the modulo operator are 32 bits wide.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-23 17:15:23 -07:00
..
Kconfig net: ipa: relax 64-bit build requirement 2021-03-18 16:20:35 -07:00
Makefile soc: qcom: ipa: support build of IPA code 2020-03-08 22:07:10 -07:00
gsi.c net: ipa: avoid 64-bit modulus 2021-03-23 17:15:23 -07:00
gsi.h net: ipa: use a separate pointer for adjusted GSI memory 2021-02-12 16:54:16 -08:00
gsi_private.h net: ipa: fix kerneldoc comments 2020-07-13 17:11:53 -07:00
gsi_reg.h net: ipa: use a separate pointer for adjusted GSI memory 2021-02-12 16:54:16 -08:00
gsi_trans.c net: ipa: pass the correct size when freeing DMA memory 2020-12-04 14:38:44 -08:00
gsi_trans.h net: ipa: declare the page pointer type in "gsi_trans.h" 2021-01-09 13:51:37 -08:00
ipa.h net: ipa: signal when tag transfer completes 2021-01-28 20:23:26 -08:00
ipa_clock.c net: ipa: use dev_err_probe() in ipa_clock.c 2021-02-12 16:54:17 -08:00
ipa_clock.h net: ipa: define clock and interconnect data 2020-11-20 18:44:59 -08:00
ipa_cmd.c net: ipa: introduce ipa_table_hash_support() 2021-02-12 16:54:17 -08:00
ipa_cmd.h net: ipa: signal when tag transfer completes 2021-01-28 20:23:26 -08:00
ipa_data-sc7180.c net: ipa: sequencer type is for TX endpoints only 2021-03-20 18:56:18 -07:00
ipa_data-sdm845.c net: ipa: sequencer type is for TX endpoints only 2021-03-20 18:56:18 -07:00
ipa_data.h net: ipa: update some comments in "ipa_data.h" 2021-03-20 18:56:18 -07:00
ipa_endpoint.c net: ipa: sequencer type is for TX endpoints only 2021-03-20 18:56:18 -07:00
ipa_endpoint.h net: ipa: sequencer type is for TX endpoints only 2021-03-20 18:56:18 -07:00
ipa_gsi.c net: ipa: include declarations in "ipa_gsi.c" 2020-07-07 12:43:18 -07:00
ipa_gsi.h net: ipa: fix kerneldoc comments 2020-07-13 17:11:53 -07:00
ipa_interrupt.c net: ipa: fix two inconsistent IPA register names 2020-11-18 15:53:48 -08:00
ipa_interrupt.h net: ipa: move definition of enum ipa_irq_id 2020-11-18 15:53:49 -08:00
ipa_main.c net: ipa: implement MAX_READS_BEATS QSB data 2021-03-20 18:56:18 -07:00
ipa_mem.c net: ipa: fix two format specifier errors 2021-02-02 08:48:15 -08:00
ipa_mem.h net: ipa: define some new memory regions 2021-03-19 13:35:54 -07:00
ipa_modem.c net: ipa: modem: add missing SET_NETDEV_DEV() for proper sysfs links 2021-01-08 18:45:35 -08:00
ipa_modem.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_qmi.c net: ipa: define some new memory regions 2021-03-19 13:35:54 -07:00
ipa_qmi.h soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_qmi_msg.c net: ipa: extend the INDICATION_REGISTER request 2021-03-16 11:17:59 -07:00
ipa_qmi_msg.h net: ipa: extend the INDICATION_REGISTER request 2021-03-16 11:17:59 -07:00
ipa_reg.c
ipa_reg.h net: ipa: sequencer type is for TX endpoints only 2021-03-20 18:56:18 -07:00
ipa_smp2p.c drivers: ipa: fix typos for ipa_smp2p structure doc 2020-05-14 13:06:55 -07:00
ipa_smp2p.h net: ipa: fix kerneldoc comments 2020-07-13 17:11:53 -07:00
ipa_table.c net: ipa: avoid 64-bit modulus 2021-03-23 17:15:23 -07:00
ipa_table.h net: ipa: make ipa_table_hash_support() inline 2021-03-15 14:51:53 -07:00
ipa_uc.c net: ipa: a few last IPA register cleanups 2020-11-18 15:53:49 -08:00
ipa_uc.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_version.h net: ipa: update IPA registers for IPA v4.5 2020-11-28 12:13:54 -08:00