SlideShare uma empresa Scribd logo
1 de 32
Data Transfer Mechanisms
➢ In computer-based data acquisition applications,
data incoming or outgoing through computer I/O
devices must often be managed at high speeds
or in large quantities. The three primary data
transfer mechanisms:
➢ Polling
➢ Interrupts ( Programmed I/O)
➢ DMA
DMA Transfer
DMA Controller
The PC motherboard has a DMA controller on the South Bridge that can
master
the I/O bus and initiate DMA to or from a peripheral.
This is usually the case for legacy ISA cards.
Can be viewed in /proc/dma on Linux machines
On Galileo
DMA Implementations
➢ Native DMA
➢ ISA Bus-master DMA
➢ PCI Bus-master DMA
Native DMA
The only pieces of legacy hardware that use
ISA DMA and are still fairly common are Super
I/O devices on motherboards that often
integrate a built-in floppy disk controller, an
IrDA infrared controller when FIR (fast infrared)
mode is selected, and a IEEE 1284 parallel port
controller when ECP mode is selected.
Native DMA
ISA Bus-master DMA
● lshw command on terminal
PCI Bus-master DMA
PCI Bus-master DMA
PCI IDE Bus-mastering
● The PCI bus also allows you to set up
compatible IDE/ATA hard disk drives to be bus
masters. Under the correct conditions this can
increase performance over the use of PIO
modes, which are the default way that IDE/ATA
hard disks transfer data to and from the system.
When PCI bus mastering is used, IDE/ATA
devices use DMA modes to transfer data
instead of PIO.
PCI IDE Bus-mastering
PCI IDE Bus-mastering
● hdparm -i /dev/sda
●
Bitbake menuconfig
DMA Controller in Galileo
Quark SoC Block Diagram
Channels Present
ls -l /sys/class/dma
Used and Unused Channels
Inserting our module
dmesg
Execution of a DMA-operation (single block transfer)
1)The CPU prepares the DMA-operation by the construction
of a descriptor , containing all necessary information for the
DMAC to independently perform the DMA-operation (off-
load engine for data transfer).
2)It initializes the operation by writing a command to a
register in the DMAC (2a) or to a special assigned memory
area (command area), where the DMAC can poll for the
command and/or the descriptor (2b).
3)Then the DMAC addresses the device data register
4) and reads the data into a temporary data register .
5)In another bus transfer cycle, it addresses the memory
block and
6) writes the data from the temporary data register to the
memory block .
dmesg after rmmod
Contd.
Issues faced on Ubuntu
Code Flow
External links and References
➢ LDD 3- DMA
➢ Essential Linux Device Drivers
➢ https://en.wikipedia.org/wiki/Direct_memory_access
➢ http://www.pcguide.com/ref/mbsys/buses/types/pciID
➢ http://www.pcguide.com/ref/hdd/if/ide/confControllers
➢ http://www.tweak3d.net/articles/howbusmaster/3.sht
● Intel Quark SoC Datasheet
External links and References
● Intel ICH7 Datasheet
● Intel ICH5 Datasheet
● http://stackoverflow.com/questions/28868932/using
● National Instruments Application Note 011-DMA
Fundamentals on Various PC Platforms
● http://zeus.nyf.hu/~bajalinov/OS/07/dma.pdf
Thanks

Mais conteúdo relacionado

Mais procurados

Unit 4 memory system
Unit 4   memory systemUnit 4   memory system
Unit 4 memory system
chidabdu
 

Mais procurados (20)

axi protocol
axi protocolaxi protocol
axi protocol
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
AMBA AHB 5
AMBA AHB 5AMBA AHB 5
AMBA AHB 5
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
Double data rate (ddr)
Double data rate (ddr)Double data rate (ddr)
Double data rate (ddr)
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Semiconductor Memories
Semiconductor MemoriesSemiconductor Memories
Semiconductor Memories
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
dual-port RAM (DPRAM)
dual-port RAM (DPRAM)dual-port RAM (DPRAM)
dual-port RAM (DPRAM)
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
 
SPI introduction(Serial Peripheral Interface)
SPI introduction(Serial Peripheral Interface)SPI introduction(Serial Peripheral Interface)
SPI introduction(Serial Peripheral Interface)
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
DDR3
DDR3DDR3
DDR3
 
Unit 4 memory system
Unit 4   memory systemUnit 4   memory system
Unit 4 memory system
 
AMBA3.0 james_20110801
AMBA3.0 james_20110801AMBA3.0 james_20110801
AMBA3.0 james_20110801
 

Destaque

Dma transfer
Dma transferDma transfer
Dma transfer
gmnithya
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
Tech_MX
 
Mikroprosesor sttc
Mikroprosesor sttcMikroprosesor sttc
Mikroprosesor sttc
Beni Putra
 
Unit3 pipelining io organization
Unit3 pipelining  io organizationUnit3 pipelining  io organization
Unit3 pipelining io organization
Swathi Veeradhi
 
Conflict Management
Conflict ManagementConflict Management
Conflict Management
Hassan Ayub
 
Social system (Sociology)
Social system (Sociology)Social system (Sociology)
Social system (Sociology)
Farhan Ali Khan
 

Destaque (20)

Dma transfer
Dma transferDma transfer
Dma transfer
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
 
Mikroprosesor sttc
Mikroprosesor sttcMikroprosesor sttc
Mikroprosesor sttc
 
Dma
DmaDma
Dma
 
Unit3 pipelining io organization
Unit3 pipelining  io organizationUnit3 pipelining  io organization
Unit3 pipelining io organization
 
Community Strategy with a 101 on Social Media
Community Strategy with a 101 on Social MediaCommunity Strategy with a 101 on Social Media
Community Strategy with a 101 on Social Media
 
Eisa
EisaEisa
Eisa
 
CO By Rakesh Roshan
CO By Rakesh RoshanCO By Rakesh Roshan
CO By Rakesh Roshan
 
Types of conflict in literature
Types of conflict in literatureTypes of conflict in literature
Types of conflict in literature
 
Forming a Community Strategy
Forming a Community StrategyForming a Community Strategy
Forming a Community Strategy
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Dma
DmaDma
Dma
 
Conflict Management
Conflict ManagementConflict Management
Conflict Management
 
Social system (Sociology)
Social system (Sociology)Social system (Sociology)
Social system (Sociology)
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
 
Social system and organizational culture
Social system and organizational cultureSocial system and organizational culture
Social system and organizational culture
 
Friendbook a semantic based friend recommendation system for social networks
Friendbook a semantic based friend recommendation system for social networksFriendbook a semantic based friend recommendation system for social networks
Friendbook a semantic based friend recommendation system for social networks
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 

Semelhante a Direct Memory Access (DMA)-Working and Implementation

Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
Ashwini Awatare
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
info998421
 

Semelhante a Direct Memory Access (DMA)-Working and Implementation (20)

ppppptttt.pdf
ppppptttt.pdfppppptttt.pdf
ppppptttt.pdf
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
fathima.pptxjhvjhvjhvjhvhvjhchvhvjvjhvjhj
fathima.pptxjhvjhvjhvjhvhvjhchvhvjvjhvjhjfathima.pptxjhvjhvjhvjhvhvjhchvhvjvjhvjhj
fathima.pptxjhvjhvjhvjhvhvjhchvhvjvjhvjhj
 
coadma-150401131446-conversion-gate01.pptx
coadma-150401131446-conversion-gate01.pptxcoadma-150401131446-conversion-gate01.pptx
coadma-150401131446-conversion-gate01.pptx
 
DMA
DMADMA
DMA
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Direct Memory Access (DMA).pptx
Direct Memory Access (DMA).pptxDirect Memory Access (DMA).pptx
Direct Memory Access (DMA).pptx
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
DMA_document__1696148675.pdf
DMA_document__1696148675.pdfDMA_document__1696148675.pdf
DMA_document__1696148675.pdf
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
 
Cpi unit 01
Cpi unit 01Cpi unit 01
Cpi unit 01
 
H n q & a
H n q & aH n q & a
H n q & a
 
MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)
 
1 STM32's DMA.ppt
1 STM32's DMA.ppt1 STM32's DMA.ppt
1 STM32's DMA.ppt
 
Concept of dma
Concept of dmaConcept of dma
Concept of dma
 
Dd sdram
Dd sdramDd sdram
Dd sdram
 

Mais de Shubham Kumar

Smart Refrigerator
Smart RefrigeratorSmart Refrigerator
Smart Refrigerator
Shubham Kumar
 
ARM BASED 4-BIT CODED LOCKER
ARM BASED 4-BIT CODED LOCKERARM BASED 4-BIT CODED LOCKER
ARM BASED 4-BIT CODED LOCKER
Shubham Kumar
 

Mais de Shubham Kumar (8)

Smart Refrigerator
Smart RefrigeratorSmart Refrigerator
Smart Refrigerator
 
Intel Quark HSUART
Intel Quark HSUARTIntel Quark HSUART
Intel Quark HSUART
 
Take_On_IOT
Take_On_IOTTake_On_IOT
Take_On_IOT
 
Multifunctional usb firmware
Multifunctional usb firmwareMultifunctional usb firmware
Multifunctional usb firmware
 
ARM BASED 4-BIT CODED LOCKER
ARM BASED 4-BIT CODED LOCKERARM BASED 4-BIT CODED LOCKER
ARM BASED 4-BIT CODED LOCKER
 
ARM BASED 4bit coded locker
ARM BASED 4bit coded lockerARM BASED 4bit coded locker
ARM BASED 4bit coded locker
 
LUMOS
LUMOSLUMOS
LUMOS
 
Lumos
LumosLumos
Lumos
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Direct Memory Access (DMA)-Working and Implementation

  • 1. Data Transfer Mechanisms ➢ In computer-based data acquisition applications, data incoming or outgoing through computer I/O devices must often be managed at high speeds or in large quantities. The three primary data transfer mechanisms: ➢ Polling ➢ Interrupts ( Programmed I/O) ➢ DMA
  • 3. DMA Controller The PC motherboard has a DMA controller on the South Bridge that can master the I/O bus and initiate DMA to or from a peripheral. This is usually the case for legacy ISA cards. Can be viewed in /proc/dma on Linux machines
  • 5. DMA Implementations ➢ Native DMA ➢ ISA Bus-master DMA ➢ PCI Bus-master DMA
  • 6. Native DMA The only pieces of legacy hardware that use ISA DMA and are still fairly common are Super I/O devices on motherboards that often integrate a built-in floppy disk controller, an IrDA infrared controller when FIR (fast infrared) mode is selected, and a IEEE 1284 parallel port controller when ECP mode is selected.
  • 8. ISA Bus-master DMA ● lshw command on terminal
  • 11. PCI IDE Bus-mastering ● The PCI bus also allows you to set up compatible IDE/ATA hard disk drives to be bus masters. Under the correct conditions this can increase performance over the use of PIO modes, which are the default way that IDE/ATA hard disks transfer data to and from the system. When PCI bus mastering is used, IDE/ATA devices use DMA modes to transfer data instead of PIO.
  • 13. PCI IDE Bus-mastering ● hdparm -i /dev/sda ●
  • 15.
  • 16.
  • 17. DMA Controller in Galileo
  • 18. Quark SoC Block Diagram
  • 19. Channels Present ls -l /sys/class/dma
  • 20. Used and Unused Channels
  • 22. dmesg
  • 23. Execution of a DMA-operation (single block transfer) 1)The CPU prepares the DMA-operation by the construction of a descriptor , containing all necessary information for the DMAC to independently perform the DMA-operation (off- load engine for data transfer). 2)It initializes the operation by writing a command to a register in the DMAC (2a) or to a special assigned memory area (command area), where the DMAC can poll for the command and/or the descriptor (2b). 3)Then the DMAC addresses the device data register 4) and reads the data into a temporary data register . 5)In another bus transfer cycle, it addresses the memory block and 6) writes the data from the temporary data register to the memory block .
  • 24.
  • 25.
  • 28. Issues faced on Ubuntu
  • 30. External links and References ➢ LDD 3- DMA ➢ Essential Linux Device Drivers ➢ https://en.wikipedia.org/wiki/Direct_memory_access ➢ http://www.pcguide.com/ref/mbsys/buses/types/pciID ➢ http://www.pcguide.com/ref/hdd/if/ide/confControllers ➢ http://www.tweak3d.net/articles/howbusmaster/3.sht ● Intel Quark SoC Datasheet
  • 31. External links and References ● Intel ICH7 Datasheet ● Intel ICH5 Datasheet ● http://stackoverflow.com/questions/28868932/using ● National Instruments Application Note 011-DMA Fundamentals on Various PC Platforms ● http://zeus.nyf.hu/~bajalinov/OS/07/dma.pdf