CN110990323B - 一种优化的xhci调度方法 - Google Patents

一种优化的xhci调度方法 Download PDF

Info

Publication number
CN110990323B
CN110990323B CN201910982083.1A CN201910982083A CN110990323B CN 110990323 B CN110990323 B CN 110990323B CN 201910982083 A CN201910982083 A CN 201910982083A CN 110990323 B CN110990323 B CN 110990323B
Authority
CN
China
Prior art keywords
time slice
async
sync
xhci
optimized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910982083.1A
Other languages
English (en)
Other versions
CN110990323A (zh
Inventor
李亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaoxin Micro Semiconductor Chongqing Co ltd
Original Assignee
Yaoxin Micro Semiconductor Chongqing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaoxin Micro Semiconductor Chongqing Co ltd filed Critical Yaoxin Micro Semiconductor Chongqing Co ltd
Priority to CN201910982083.1A priority Critical patent/CN110990323B/zh
Publication of CN110990323A publication Critical patent/CN110990323A/zh
Application granted granted Critical
Publication of CN110990323B publication Critical patent/CN110990323B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种优化的XHCI调度方法,当scheduler检测到系统中只有async EP的时候无视时间片的概念,当临近时间片尾的时候判断下一个时间片中有没有sync EP,如果有,则按照正常方式调度,如果没有则进行跨边界调度,这样就可以将EP的burst一直进行下去,同时不发ITP,节省系统带宽。

Description

一种优化的XHCI调度方法
技术领域
本发明涉及USB数据调度装置领域,具体是一种优化的XHCI调度方法。
背景技术
USB有一个时间片的概念,所有的调度都是以125us为一个时间单位,在时间片的开始做sync(包括int和iso的传输),之后再开始做async的传输(bulk和control的传输),如图1所示。当系统中没有sync的EP的时候(例如整个usb hierarchy只接了一堆U盘),现有的scheduler还是会按照125us的时间片进行调度,这将导致存在如下几个问题:
1、每一个时间片的开始都会发送一个ITP的包,用于同步系统中所有的ISO EP,这个ITP其实是没有必要的,因为系统中只有async的EP;
2、Scheduler一般会做一些预调度,当临近125us的边缘(也就是sync到async转变的时候)会格外小心翼翼,因为所有的调度都不能跨125us的时间片,造成的结果就是scheduler的调度就会变得保守,会中断EP的burst,直到下一个时间片的到来EP才会进行新的burst操作,降低EP的性能。
发明内容
本发明所要解决的技术问题是提供一种优化的XHCI调度方法,以解决现有技术中存在的缺陷。
本发明解决上述技术问题的技术方案如下:
一种优化的XHCI调度方法,包括如下步骤:
1)在每个时间片的开始,scheduler检测系统中EP,当存在async EP和sync EP时,跳转至步骤3),当只存在async EP时,执行步骤2);
2)scheduler无视时间片的概念,直接进行async的传输,并在每个时间片尾时预先判断下一时间片有没有sync EP;如果没有,则重复执行步骤2),如果有,则跳转至步骤3);
3)每一个时间片的开始,scheduler会发送一个ITP的包,用于同步系统中所有的ISO EP,然后进行async的传输,并在临近时间片尾的时候判断下一个时间片中有没有syncEP,如果有,则重复执行步骤3),如果没有则跳转至步骤2)进行跨边界调度;
本发明的有益效果是:具体调度时,Scheduler不用每个时间片都发送ITP的包,如果没有async EP,则直接进行跨边界调度,这样就可以将EP的burst一直进行下去,同时不发ITP,节省系统带宽。
附图说明
图1为现有技术原理示意图;
图2为本发明原理结构示意图;
具体实施方式
以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。
如图2所示,一种优化的XHCI调度方法,包括如下步骤:
1)在每个时间片的开始,scheduler检测系统中EP,当存在async EP和sync EP时,跳转至步骤3),当只存在async EP时,执行步骤2);
2)scheduler无视时间片的概念,直接进行async的传输,并在每个时间片尾时预先判断下一时间片有没有sync EP;如果没有,则重复执行步骤2),如果有,则跳转至步骤3);
3)每一个时间片的开始,scheduler会发送一个ITP的包,用于同步系统中所有的ISO EP,然后进行async的传输,并在临近时间片尾的时候判断下一个时间片中有没有syncEP,如果有,则重复执行步骤3),如果没有则跳转至步骤2)进行跨边界调度;
这样,本发明在实施时,当scheduler检测到系统中只有async EP的时候无视时间片的概念,当临近时间片尾的时候判断下一个时间片中有没有sync EP,如果有,则按照正常方式调度,如果没有则进行跨边界调度,这样就可以将EP的burst一直进行下去,同时不发ITP,节省系统带宽。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (1)

1.一种优化的XHCI调度方法,其特征在于,包括如下步骤:
1)在每个时间片的开始,scheduler检测系统中EP,当存在async EP和sync EP时,跳转至步骤3),当只存在async EP时,执行步骤2);
2)scheduler无视时间片的概念,直接进行async的传输,并在每个时间片尾时预先判断下一时间片有没有sync EP;如果没有,则重复执行步骤2),如果有,则跳转至步骤3);
3)每一个时间片的开始,scheduler会发送一个ITP的包,用于同步系统中所有的ISOEP,然后进行async的传输,并在临近时间片尾的时候判断下一个时间片中有没有sync EP,如果有,则重复执行步骤3),如果没有则跳转至步骤2)进行跨边界调度。
CN201910982083.1A 2019-10-17 2019-10-17 一种优化的xhci调度方法 Active CN110990323B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910982083.1A CN110990323B (zh) 2019-10-17 2019-10-17 一种优化的xhci调度方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910982083.1A CN110990323B (zh) 2019-10-17 2019-10-17 一种优化的xhci调度方法

Publications (2)

Publication Number Publication Date
CN110990323A CN110990323A (zh) 2020-04-10
CN110990323B true CN110990323B (zh) 2023-09-15

Family

ID=70081999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910982083.1A Active CN110990323B (zh) 2019-10-17 2019-10-17 一种优化的xhci调度方法

Country Status (1)

Country Link
CN (1) CN110990323B (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805798A (zh) * 2017-05-05 2018-11-13 英特尔公司 用于深度学习框架的细粒度计算通信执行
CN109417500A (zh) * 2016-06-27 2019-03-01 高通股份有限公司 用于控制等时数据流的系统和方法
CN110008187A (zh) * 2018-12-18 2019-07-12 阿里巴巴集团控股有限公司 文件传输调度方法、装置、设备及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7490255B2 (en) * 2006-06-30 2009-02-10 Intel Corporation Power efficient flow control model for USB asynchronous transfers
US7908421B2 (en) * 2008-09-30 2011-03-15 Intel Corporation Universal serial bus endpoint context caching
US9524260B2 (en) * 2014-06-18 2016-12-20 Qualcomm Incorporated Universal serial bus (USB) communication systems and methods

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109417500A (zh) * 2016-06-27 2019-03-01 高通股份有限公司 用于控制等时数据流的系统和方法
CN108805798A (zh) * 2017-05-05 2018-11-13 英特尔公司 用于深度学习框架的细粒度计算通信执行
CN110008187A (zh) * 2018-12-18 2019-07-12 阿里巴巴集团控股有限公司 文件传输调度方法、装置、设备及计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈星宇等."基于EHCI协议的USB2.0主机传输调度的设计与实现".《电子技术应用》.2007,(第11期),41-43. *

Also Published As

Publication number Publication date
CN110990323A (zh) 2020-04-10

Similar Documents

Publication Publication Date Title
CN101483918B (zh) 缓冲区状态报告的发送方法及其装置
US10659557B2 (en) Information processing apparatus, information processing method, and computer program product
EP3335459B1 (en) Conditional buffer status reporting
WO2015131694A1 (zh) 一种占用非授权载波的发送的方法、装置及接入点
EP3253146B1 (en) Data transmission method and data transmission site
EP2293637A1 (en) Method and apparatus for performing buffer status reporting
CN101562894A (zh) 一种缓冲区状态报告的发送方法及其设备
EP3834452B1 (en) Control information transmission techniques
CN104025668A (zh) 传输控制方法、传输方法及设备
US11690068B2 (en) Optimal BSR for limited traffic mix
KR20140104992A (ko) 프로세서의 성능 레벨을 관리하기 위한 무선 광역 네트워크 프로토콜 정보의 사용
WO2018076641A1 (zh) 一种减少时延的方法、装置及存储介质
CN111586759B (zh) 一种传输方法和设备
CN110784415A (zh) 一种ecn快速响应的方法及装置
CN102037669B (zh) 增强恢复过程
CN102821454A (zh) Drx模式下终端保持上行同步的处理方法及装置
TW200307433A (en) Flexible scheduling architecture
CN110990323B (zh) 一种优化的xhci调度方法
WO2017049906A1 (zh) 发现信号和物理下行共享信道复用发送、接收方法和设备
CN102238064B (zh) 数据传输方法、装置和系统
CN110834655B (zh) 一种列车数据传输方法、系统、介质及设备
WO2018202043A1 (zh) 数据传输方法、设备和系统
Marau et al. Controlling multi-switch networks for prompt reconfiguration
CN103716883A (zh) 基于eNB对其用户设备的上行资源进行控制的方法与设备
CN111404837B (zh) 一种数据传输控制方法、网络设备及系统

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20201211

Address after: No.117-610, Yunhan Avenue, Beibei District, Chongqing

Applicant after: Yaoxin micro semiconductor (Chongqing) Co.,Ltd.

Address before: 200131 3rd floor, no.665 Zhangjiang Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant before: Shanghai Yaoxin micro Semiconductor Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant