linux-stable/drivers/net/ipa
Alex Elder 19aaf72c0c net: ipa: DMA addresses are nicely aligned
A recent patch avoided doing 64-bit modulo operations by checking
the alignment of some DMA allocations using only the lower 32 bits
of the address.

David Laight pointed out (after the fix was committed) that DMA
allocations might already satisfy the alignment requirements.  And
he was right.

Remove the alignment checks that occur after DMA allocation requests,
and update comments to explain why the constraint is satisfied.  The
only place IPA_TABLE_ALIGN was used was to check the alignment; it is
therefore no longer needed, so get rid of it.

Add comments where GSI_RING_ELEMENT_SIZE and the tre_count and
event_count channel data fields are defined to make explicit they
are required to be powers of 2.

Revise a comment in gsi_trans_pool_init_dma(), taking into account
that dma_alloc_coherent() guarantees its result is aligned to a page
size (or order thereof).

Don't bother printing an error if a DMA allocation fails.

Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-28 18:12:03 -07:00
..
gsi.c net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
gsi.h net: ipa: increase channels and events 2021-03-24 16:52:47 -07:00
gsi_private.h net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
gsi_reg.h net: ipa: expand GSI channel types 2021-03-25 17:22:30 -07:00
gsi_trans.c net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
gsi_trans.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07: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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
ipa_cmd.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_data-v3.5.1.c net: ipa: switch to version based configuration 2021-03-28 18:12:03 -07:00
ipa_data-v4.2.c net: ipa: use version based configuration for SC7180 2021-03-28 18:12:03 -07:00
ipa_data.h net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
ipa_endpoint.c net: ipa: define the ENDP_INIT_NAT register 2021-03-24 16:52:47 -07:00
ipa_endpoint.h net: ipa: don't define endpoints unnecessarily 2021-03-28 18:12:03 -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: support IPA interrupt addresses for IPA v4.7 2021-03-25 17:22:30 -07:00
ipa_interrupt.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_main.c net: ipa: use version based configuration for SC7180 2021-03-28 18:12:03 -07:00
ipa_mem.c net: ipa: limit local processing context address 2021-03-24 16:52:47 -07:00
ipa_mem.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
ipa_qmi.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -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: store BCR register values in config data 2021-03-28 18:12:03 -07:00
ipa_resource.c net: ipa: support more than 6 resource groups 2021-03-26 15:02:39 -07:00
ipa_resource.h net: ipa: introduce ipa_resource.c 2021-03-26 15:02:38 -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 all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_table.c net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
ipa_table.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_uc.c net: ipa: support IPA interrupt addresses for IPA v4.7 2021-03-25 17:22:30 -07:00
ipa_uc.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_version.h net: ipa: update version definitions 2021-03-24 16:52:47 -07:00
Kconfig net: ipa: switch to version based configuration 2021-03-28 18:12:03 -07:00
Makefile net: ipa: use version based configuration for SC7180 2021-03-28 18:12:03 -07:00