summaryrefslogtreecommitdiffstats
path: root/drivers/dma/Kconfig
AgeCommit message (Expand)Author
2020-06-14treewide: replace '---help---' in Kconfig files with 'help'Masahiro Yamada
2020-06-10Merge tag 'dmaengine-5.8-rc1' of git://git.infradead.org/users/vkoul/slave-dmaLinus Torvalds
2020-04-23dmaengine: mmp_tdma: Remove the MMP_SRAM dependencyLubomir Rintel
2020-04-17dmaengine: Fix misspelling of "Analog Devices"Geert Uytterhoeven
2020-04-15dmaengine: hisilicon: Fix build error without PCI_MSIYueHaibing
2020-03-02dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driverKunihiko Hayashi
2020-02-25dmaengine: tegra-apb: Support COMPILE_TESTDmitry Osipenko
2020-02-25dmaengine: tegra-apb: Allow to compile as a loadable kernel moduleDmitry Osipenko
2020-01-24dmaengine: hisilicon: Add Kunpeng DMA engine supportZhou Wang
2020-01-24dmaengine: idxd: Init and probe for Intel data acceleratorsDave Jiang
2020-01-15dmaengine: plx-dma: Introduce PLX DMA engine PCI driver skeletonLogan Gunthorpe
2019-11-22dmaengine: Fix Kconfig indentationKrzysztof Kozlowski
2019-11-14dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00Green Wan
2019-11-06dmaengine: xilinx_dma: Add Xilinx AXI MCDMA Engine driver supportRadhey Shyam Pandey
2019-10-18dmaengine: milbeaut-xdmac: Add XDMAC driver for Milbeaut platformsJassi Brar
2019-10-18dmaengine: milbeaut-hdmac: Add HDMAC driver for Milbeaut platformsJassi Brar
2019-10-17dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscap...Peng Ma
2019-09-22Merge tag 'mips_5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linuxLinus Torvalds
2019-09-17Merge tag 'dmaengine-5.4-rc1' of git://git.infradead.org/users/vkoul/slave-dmaLinus Torvalds
2019-09-16Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/socLinus Torvalds
2019-08-14dma: iop-adma: allow building without platform headersArnd Bergmann
2019-08-14ARM: remove Intel iop33x and iop13xx supportArnd Bergmann
2019-07-30dma: Drop JZ4740 driverPaul Cercueil
2019-07-17Merge tag 'dmaengine-5.3-rc1' of git://git.infradead.org/users/vkoul/slave-dmaLinus Torvalds
2019-07-05dmaengine: tegra210-adma: remove PM_CLK dependencySameer Pujar
2019-06-14dmaengine: axi-dmac: add regmap supportAlexandru Ardelean
2019-06-10dmaengine: Add Synopsys eDMA IP core driverGustavo Pimentel
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner
2019-03-25dmaengine: axi-dmac: extend support for ZynqMP archMichael Hennerich
2019-01-07dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCsPeng Ma
2018-11-24dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driverMasahiro Yamada
2018-10-24Merge branch 'topic/jz' into for-linusVinod Koul
2018-09-11dmaengine: dma-jz4780: Don't depend on MACH_JZ4780Paul Cercueil
2018-09-11dmaengine: fsl-edma: add ColdFire mcf5441x edma supportAngelo Dureghello
2018-08-17Merge branch 'topic/imx' into for-linusVinod Koul
2018-08-09dmaengine: Add Actions Semi Owl family S900 DMA driverManivannan Sadhasivam
2018-07-02dmaengine: imx-sdma: add virt-dma supportRobin Gong
2018-04-25dmaengine: ti: New directory for Texas Instruments DMA driversPeter Ujfalusi
2018-04-10Merge branch 'topic/mtek' into for-linusVinod Koul
2018-03-27dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT...Sean Wang
2018-03-19dmaengine: Introduce DW AXI DMAC driverEugeniy Paltsev
2017-11-14Merge branch 'topic/sprd' into for-linusVinod Koul
2017-11-14Merge branch 'topic/stm' into for-linusVinod Koul
2017-10-24dmaengine: sprd: Add Spreadtrum DMA driverBaolin Wang
2017-10-23dmaengine: Build bcm-sba-raid driver as loadable module for iProc SoCsAnup Patel
2017-10-12dmaengine: stm32_mdma: add CONFIG_OF dependencyArnd Bergmann
2017-10-08dmaengine: Add STM32 MDMA driverPierre-Yves MORDRET
2017-09-27dmaengine: Add STM32 DMAMUX driverPierre-Yves MORDRET
2017-07-18dmaengine: Add driver for Altera / Intel mSGDMA IP coreStefan Roese
2017-07-04Merge branch 'topic/pl08x' into for-linusVinod Koul
ss="cpf">"dm.h" #include "dm-uevent.h" #define DM_MSG_PREFIX "uevent" static const struct { enum dm_uevent_type type; enum kobject_action action; char *name; } _dm_uevent_type_names[] = { {DM_UEVENT_PATH_FAILED, KOBJ_CHANGE, "PATH_FAILED"}, {DM_UEVENT_PATH_REINSTATED, KOBJ_CHANGE, "PATH_REINSTATED"}, }; static struct kmem_cache *_dm_event_cache; struct dm_uevent { struct mapped_device *md; enum kobject_action action; struct kobj_uevent_env ku_env; struct list_head elist; char name[DM_NAME_LEN]; char uuid[DM_UUID_LEN]; }; static void dm_uevent_free(struct dm_uevent *event) { kmem_cache_free(_dm_event_cache, event); } static struct dm_uevent *dm_uevent_alloc(struct mapped_device *md) { struct dm_uevent *event; event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); if (!event) return NULL; INIT_LIST_HEAD(&event->elist); event->md = md; return event; } static struct dm_uevent *dm_build_path_uevent(struct mapped_device *md, struct dm_target *ti, enum kobject_action action, const char *dm_action, const char *path, unsigned nr_valid_paths) { struct dm_uevent *event; event = dm_uevent_alloc(md); if (!event) { DMERR("%s: dm_uevent_alloc() failed", __func__); goto err_nomem; } event->action = action; if (add_uevent_var(&event->ku_env, "DM_TARGET=%s", ti->type->name)) { DMERR("%s: add_uevent_var() for DM_TARGET failed", __func__); goto err_add; } if (add_uevent_var(&event->ku_env, "DM_ACTION=%s", dm_action)) { DMERR("%s: add_uevent_var() for DM_ACTION failed", __func__); goto err_add; } if (add_uevent_var(&event->ku_env, "DM_SEQNUM=%u", dm_next_uevent_seq(md))) { DMERR("%s: add_uevent_var() for DM_SEQNUM failed", __func__); goto err_add; } if (add_uevent_var(&event->ku_env, "DM_PATH=%s", path)) { DMERR("%s: add_uevent_var() for DM_PATH failed", __func__); goto err_add; } if (add_uevent_var(&event->ku_env, "DM_NR_VALID_PATHS=%d", nr_valid_paths)) { DMERR("%s: add_uevent_var() for DM_NR_VALID_PATHS failed", __func__); goto err_add; } return event; err_add: dm_uevent_free(event); err_nomem: return ERR_PTR(-ENOMEM); } /** * dm_send_uevents - send uevents for given list * * @events: list of events to send * @kobj: kobject generating event * */ void dm_send_uevents(struct list_head *events, struct kobject *kobj) { int r; struct dm_uevent *event, *next; list_for_each_entry_safe(event, next, events, elist) { list_del_init(&event->elist); /* * When a device is being removed this copy fails and we * discard these unsent events. */ if (dm_copy_name_and_uuid(event->md, event->name, event->uuid)) { DMINFO("%s: skipping sending uevent for lost device", __func__); goto uevent_free; } if (add_uevent_var(&event->ku_env, "DM_NAME=%s", event->name)) { DMERR("%s: add_uevent_var() for DM_NAME failed", __func__); goto uevent_free; } if (add_uevent_var(&event->ku_env, "DM_UUID=%s", event->uuid)) { DMERR("%s: add_uevent_var() for DM_UUID failed", __func__); goto uevent_free; } r = kobject_uevent_env(kobj, event->action, event->ku_env.envp); if (r) DMERR("%s: kobject_uevent_env failed", __func__); uevent_free: dm_uevent_free(event); } } EXPORT_SYMBOL_GPL(dm_send_uevents); /** * dm_path_uevent - called to create a new path event and queue it * * @event_type: path event type enum * @ti: pointer to a dm_target * @path: string containing pathname * @nr_valid_paths: number of valid paths remaining * */ void dm_path_uevent(enum dm_uevent_type event_type, struct dm_target *ti, const char *path, unsigned nr_valid_paths) { struct mapped_device *md = dm_table_get_md(ti->table); struct dm_uevent *event; if (event_type >= ARRAY_SIZE(_dm_uevent_type_names)) { DMERR("%s: Invalid event_type %d", __func__, event_type); return; } event = dm_build_path_uevent(md, ti, _dm_uevent_type_names[event_type].action, _dm_uevent_type_names[event_type].name, path, nr_valid_paths); if (IS_ERR(event)) return; dm_uevent_add(md, &event->elist); } EXPORT_SYMBOL_GPL(dm_path_uevent); int dm_uevent_init(void) { _dm_event_cache = KMEM_CACHE(dm_uevent, 0); if (!_dm_event_cache) return -ENOMEM; DMINFO("version 1.0.3"); return 0; } void dm_uevent_exit(void) { kmem_cache_destroy(_dm_event_cache); }