aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorNeil Armstrong <[email protected]>2021-04-26 17:55:59 +0000
committerUlf Hansson <[email protected]>2021-05-10 12:29:39 +0000
commit9b81354d7ebc1fd17f666a168dcabf27dae290bd (patch)
tree0236eae1ea67378247912a6777c3352129660253 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentmmc: meson-gx: make replace WARN_ONCE with dev_warn_once about scatterlist of... (diff)
downloadkernel-9b81354d7ebc1fd17f666a168dcabf27dae290bd.tar.gz
kernel-9b81354d7ebc1fd17f666a168dcabf27dae290bd.zip
mmc: meson-gx: also check SD_IO_RW_EXTENDED for scatterlist size alignment
The brcmfmac driver can generate a scatterlist from a skb with each packets not aligned to the block size. This is not supported by the Amlogic Descriptor dma engine where each descriptor must match a multiple of the block size. The sg list is valid, since the sum of the sg buffers is a multiple of the block size, but we must discard those when in SD_IO_RW_EXTENDED mode since SDIO block mode can be used under the hood even with data->blocks == 1. Those transfers are very rare, thus can be replaced by a bounce buffer without real performance loss. Fixes: 7412dee9f1fd ("mmc: meson-gx: replace WARN_ONCE with dev_warn_once about scatterlist size alignment in block mode") Cc: [email protected] Reported-by: Christian Hewitt <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions