aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-28 17:54:33 +0100
committerDavid S. Miller <davem@davemloft.net>2016-01-29 19:40:02 -0800
commit59a557be385b66c1da20e9cfc6ff6c2e676c6804 (patch)
treed77ef312f7969b3f4318ee52103326df72bd63f4 /scripts/patch-kernel
parentipv4: ipconfig: avoid unused ic_proto_used symbol (diff)
downloadlinux-59a557be385b66c1da20e9cfc6ff6c2e676c6804.tar.gz
linux-59a557be385b66c1da20e9cfc6ff6c2e676c6804.zip
net: moxart: use correct accessors for DMA memory
The moxart ethernet driver confuses coherent DMA buffers with MMIO registers. moxart_ether.c: In function 'moxart_mac_setup_desc_ring': moxart_ether.c:146:428: error: passing argument 1 of '__fswab32' makes integer from pointer without a cast [-Werror=int-conversion] moxart_ether.c:74:39: warning: incorrect type in argument 3 (different address spaces) moxart_ether.c:74:39: expected void *cpu_addr moxart_ether.c:74:39: got void [noderef] <asn:2>*tx_desc_base This leaves the basic logic alone and uses normal pointers for the virtual address of the descriptor. As we cannot use readl/writel to access them, we also introduce our own moxart_desc_read moxart_desc_write helpers that perform the same endianess swap as the original code, but without the address space conversion. The barriers are made explicit here where needed: Even in the worst-case scenario, we just have to use a rmb() after checking ownership so we don't read any input data before we are sure it is value, and we use wmb() before transferring ownership back to the device. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
571e5d4450846b16a&follow=1'>gcc-plugins: Add support for plugin subdirectoriesEmese Revfy2-4/+8 2016-08-08gcc-plugins: Automate make rule generationEmese Revfy1-2/+1 2016-08-08gcc-plugins: Add support for passing plugin argumentsEmese Revfy1-1/+1 2016-08-08gcc-plugins: abort builds cleanly when not supportedKees Cook3-16/+39 2016-08-08kbuild: no gcc-plugins during cc-option testsEmese Revfy1-3/+7 2016-08-09drm/edid: Set 8 bpc color depth for displays with "DFP 1.x compliant TMDS".Mario Kleiner1-0/+14 2016-08-09drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is...Mario Kleiner1-15/+5 2016-08-09drm/edid: Add 6 bpc quirk for display AEO model 0.Mario Kleiner1-0/+8 2016-08-08unsafe_[get|put]_user: change interface to use a error target labelLinus Torvalds4-18/+17 2016-08-08printk: Remove unnecessary #ifdef CONFIG_PRINTKAndreas Ziegler1-2/+0 2016-08-08dell-wmi: Ignore WMI event 0xe00ePali Rohár1-2/+2 2016-08-08x86/hweight: Don't clobber %rdiVille Syrjälä1-0/+2 2016-08-08drm: Paper over locking inversion after registration reworkDaniel Vetter1-5/+3 2016-08-08drm: rcar-du: Link HDMI encoder with bridgeLaurent Pinchart1-0/+1 2016-08-07Linux 4.8-rc1v4.8-rc1Linus Torvalds1-2/+2 2016-08-07block: rename bio bi_rw to bi_opfJens Axboe51-157/+158 2016-08-07target: iblock_execute_sync_cache() should use bio_set_op_attrs()Jens Axboe1-1/+1 2016-08-07mm: make __swap_writepage() use bio_set_op_attrs()Jens Axboe1-2/+3 2016-08-07block/mm: make bdev_ops->rw_page() take a bool for read/writeJens Axboe11-53/+51 2016-08-07fs: return EPERM on immutable inodeEryu Guan4-4/+5 2016-08-05ramoops: use persistent_ram_free() instead of kfree() for freeing przHiraku Toyooka1-3/+3 2016-08-05ramoops: use DT reserved-memory bindingsKees Cook4-33/+56 2016-08-05drm/ttm: Wait for a BO to become idle before unbinding it from GTTMichel Dänzer6-9/+19 2016-08-05NTB: ntb_hw_intel: use local variable pdevAllen Hubbe1-5/+5 2016-08-05NTB: ntb_hw_intel: show BAR size in debugfs infoAllen Hubbe1-1/+38 2016-08-05ntb_test: Add a selftest script for the NTB subsystemLogan Gunthorpe2-0/+423 2016-08-05ntb_perf: clear link_is_up flag when the link goes down.Logan Gunthorpe1-19/+9 2016-08-05ntb_pingpong: Add a debugfs file to get the ping countLogan Gunthorpe1-1/+61 2016-08-05ntb_tool: Add link status and files to debugfsLogan Gunthorpe1-0/+92 2016-08-05ntb_tool: Postpone memory window initialization for the userLogan Gunthorpe1-138/+228 2016-08-05ntb_perf: Wait for link before running testLogan Gunthorpe1-1/+4 2016-08-05ntb_perf: Return results by reading the run fileLogan Gunthorpe1-12/+55 2016-08-05ntb_perf: Improve thread handling to increase robustnessLogan Gunthorpe1-48/+76 2016-08-05ntb_perf: Schedule based on time not on performanceLogan Gunthorpe1-2/+4 2016-08-05ntb_transport: Check the number of spads the hardware supportsLogan Gunthorpe2-4/+13 2016-08-05ntb_tool: Add memory window debug supportLogan Gunthorpe1-1/+257 2016-08-05ntb_perf: Allow limiting the size of the memory windowsLogan Gunthorpe1-0/+8 2016-08-05NTB: allocate number transport entries depending on size of ring sizeDave Jiang1-2/+27 2016-08-05ntb_tool: BUG: Ensure the buffer size is large enough to return all spadsLogan Gunthorpe1-2/+8 2016-08-05ntb_tool: Fix infinite loop bug when writing spad/peer_spad fileLogan Gunthorpe1-4/+5