Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Conversation

@yuganshmittal
Copy link

…he dual functionality of the usb

Signed-off-by: reddyr3x rakeshx.reddy@intel.com

Shuo Liu and others added 30 commits August 13, 2018 10:54
ioreq shared buffer page is a necessary for each VM. So separate VM
creating and shared buffer page setup into two ioctls is meaningless.

This patch intends to move the ioreq shared buffer page setup into
IC_CREATE_VM ioctl. With this change, we can create vhm ioreq client
just after CREATE_VM step.
We need be careful with the compatibility. To achieve it safely, we will
do,
  1) Do shared page setup in IC_CREATE_VM, what this patch do exactly
  2) Move the shared page setup action into vm creating in DM.
  3) Remove the ioctl IC_SET_IOREQ_BUFFER in kernel.

Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
MI_NOOP is a common command appearing in almost all command buffers, put it
into a fastpath can improve perfomance, especially in command buffers
contains lots of MI_NOOPs (0s).

Take glmark2 as an example, 3% performance increase is observed after
introduced this patch. Meanwhile, in case where abundant in MI_NOOPs,
up to 12% performance increase is measured.

v2: use lowercase for index of MI_NOOP in cmd_info (zhenyu wang)

Signed-off-by: Li Weinan <weinan.z.li@intel.com>
Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: He, Min <min.he@intel.com>
…pend/resume

The patch for

commit: 5c06273
Author: Amit Shah <amit.shah@redhat.com>
Date:   Sun Jul 27 07:34:01 2014 +0930

    virtio: rng: delay hwrng_register() till driver is ready

moved the call to hwrng_register() out of the probe routine into the scan
routine. We need to call hwrng_register() after a suspend/restore cycle
to re-register the device, but the scan function is not invoked for the
restore. Add the call to hwrng_register() to virtio_restore().

Reviewed-by: Liam Merwick <Liam.Merwick@oracle.com>
Signed-off-by: Jim Quigley <Jim.Quigley@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
A new ioctl VBS_RESET_DEV is introduced to support D3. VBS-U issues
this ioctl to VBS-K driver when receives reset notification from FE
driver. VBS-K driver should perform stop/flush/reset to react to this
ioctl. virtio_dev_reset can be called in VBS-K driver's reset function.

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Need to check whether vhm_client_id is valid before trying to
deregister from VHM. It is possbile that virtio_dev_deregister
is called more than once by vbs-k driver.

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Add reset support for vbs_rng, it acts as an example about how to
support D3.

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
When no bits are set in ioreqs_map, bitmap_empty returns 1. In this case
we can just return 0 since no virtqueues are kicked.

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
SKL_PLANE_REG_TO_PIPE() doesn't ensure pipe be a valid one. So need to
make sure the pipe is in the valid range.

Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Reviewed-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-by: Min He <min.he@intel.com>
Kernel panic is trigged in host OS if there is error while handling I/O
request from guest OS previously. It's more reasonable to switch to the
failsafe mode instead of stop the host OS.

v2: suppress error output per He Min's advice

Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Reviewed-by: Min He <min.he@intel.com>
Reviewed-by: Yakui Zhao<yakui.zhao@intel.com>
This patch extends g2v notification to notify host GVT-g of
ppgtt update from guest, including alloc_4lvl, clear_4lv4 and
insert_4lvl. It uses shared page to pass the additional params.
This patch also add one new pvmmio level to control ppgtt update.

This patch is needed for both uos and sos

v2:
- create a struct for ppggt update in shared page.
- use multiple notifications in case insert size is too big.

v3:
- not pass pd pages, let GVT-g read from guest memory instead.

v4:
- not change rsvd2 type.

v5:
- pass cache_level to GVT-g

Tracked-On: #874
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Reviewed-by: He, Min <min.he@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
This patch handles ppgtt update from g2v notification.
It read out ppgtt pte entries from guest pte tables
page and convert them to host pfns.
It creates local ppgtt tables and insert the content pages
into the local ppgtt tables directly, which does not track
the usage of guest page table and removes the cost
of write protection from the original shadow page mechansim.

This patch is only for sos.

v3:
- Not pass pd pages, let GVT-g read from guest memory instead.

v4:
- fix page walk error.
- remove insert_4lvl_sg.

v5:
- use cache_level from guest.

Tracked-On: #874
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Reviewed-by: He, Min <min.he@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
This patch enables pv ppgtt update by default.

It is needed for both uos and sos.

Tracked-On: #874
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Reviewed-by: He, Min <min.he@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Convert the macro to a function which should always be preferred.

Tracked-On: #874
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: He, Min <min.he@intel.com>
The current schedule policy rely on a 1ms timer to execute workload. This
can introduce maximum 1ms unnecessary latency. This is especially bad for
small media workloads.

And I don't think we need this timer for QoS, but the change is not simply
remove the code. So I made a new API intel_gvt_kick_schedule() for future
change.

Tracked-On: #874
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: He, Min <min.he@intel.com>
…mmio

For plane pvmmio optimization, we need cache all plane related registers,
in previous commit 9c3e8b1a3f15 ("drm/i915/gvt: handling pvmmio update of
plane registers in GVT-g"), PLANE_AUX_DIST and PLANE_AUX_OFFSET are missing
to be handled.

Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-by: He, Min <min.he@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Hui Xia <hui.xia@intel.com>
skb->rbnode shares space with skb->next, skb->prev and skb->tstamp

Current uses (TCP receive ofo queue and netem) need to save/restore
tstamp, while skb->dev is either NULL (TCP) or a constant for a given
queue (netem).

Since we plan using an RB tree for TCP retransmit queue to speedup SACK
processing with large BDP, this patch exchanges skb->dev and
skb->tstamp.

This saves some overhead in both TCP and netem.

v2: removes the swtstamp field from struct tcp_skb_cb

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Wei Wang <weiwan@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This change adds place-holder for 'suffix' which will be used to 
differentiate between nodes of multiple instances of same type of 
sensors/bridges. Earlier used I2c bus/adapter ID will be stripped off 
from node-name. 'suffix' is set in PDATA. For bridge and sensor like
mondello, suffix can NULL since there will always be only one
instance of mondello on a platform.

Signed-off-by: kgopala2 <karthik.l.gopalakrishnan@intel.com>
Change-Id: Iada14ecdc1d7a4f5601704cd2b9f1dc0b4cb27de
Signed-off-by: Yu, Ong Hock <ong.hock.yu@intel.com>
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
…ialization.

1] Addition of virtual streams devs equivalent to native devs.
This will help to create 1:1 mapping between FE & BE

2] Adding frame buffer handler for para virtualized driver.
For both user_ptr and dma memory type, sg list will be created &
will forwarded in to request msg to BE.
BE will then mmap to CSS addr space.

Change-Id: I8846dd8ad86d14eaff712f331dcc47274ba56a2e
Signed-off-by: Yu, Ong Hock <ong.hock.yu@intel.com>
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Pages shared between 2 domain and mapped in to virtual address at sos

Change-Id: I305dfead1a76680258696800103b4f0c8c9a6162
Signed-off-by: Yu, Ong Hock <ong.hock.yu@intel.com>
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Change-Id: I76e7ee54d9dc521374a605d488c48eb5f9221118
Signed-off-by: Yu, Ong Hock <ong.hock.yu@intel.com>
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
…et buf list

Enabling UOS to SOS calls for put_buffer Creating local get buf list for UOS
Added support for get buf operation to native and virtio bbackend driver
Fixed stream poll issue and removed buf_stream_cancel

Change-Id: I9cc10e6ae2c45114e9cfc7d6a6d00020ec21c0a3
Signed-off-by: Yu, Ong Hock <ong.hock.yu@intel.com>
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Replacing printk with dynamic dbg

Kernel prints in UOS causes performance overload.
By default all debug prints are disable

Change printk info to pr_debug to avoid flooding the dmesg

Change-Id: I343dea9928d4a18ae43de2632d90ca5ca0af0445
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Signed-off-by: Ong Hock Yu <ong.hock.yu@intel.com>
With every GET_BUF new instance of buffer was getting created.
Because the look-up was not looking in to appropriate list.

Change-Id: Ie580f5358d377b698edcc8c20026fe403cac002c
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Change-Id: Ib3d7094856bcf427d4fc07b2971828b4e6d3a9b8
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Adding mutext lock to prevent poll.

Fixed missing mutex unlock in failure paths

Fix ici_isys_put_buf spin lock/unlock sequence

Change-Id: I78b2ad988199874098b35e3c037c47b180b6dc9b
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Signed-off-by: Ong Hock Yu <ong.hock.yu@intel.com>
File ops are mapped to VIRT_Q_1
Stream & Pipeline ops are mapped to VIRT_Q_2

Added 2 wait queue and mutex lock for 2 VQ support.

Change-Id: I00c0c09c3640cf8f0f30bb084b4fa5eb8214227d
Signed-off-by: Bandi, Kushal <kushal.bandi@intel.com>
Signed-off-by: Ong Hock Yu <ong.hock.yu@intel.com>
No wait at BE for frame data to be ready. The FE to BE
transaction remain open until frame data is ready.

Change-Id: Ic128053f723102394a7ccf5c2ea724192721af7f
Signed-off-by: Ong Hock Yu <ong.hock.yu@intel.com>
Also fixed use of req after freeing its memory in poll function

Replacing all printks with respective log level.

Change-Id: I94a25bc2c2471f09d1801fe657e9a34c4f956e52
Signed-off-by: Ong Hock Yu <ong.hock.yu@intel.com>
karan889 and others added 7 commits August 29, 2018 11:46
WORKAROUND: For DWC3 revision < 2.20a have an issue
which would cause metastability state on Run/Stop
bit if we try to force the IP to USB2-only mode.

Because of that, we cannot configure the IP to any
speed other than the SuperSpeed

Refers to: STAR#9000525659: Clock Domain Crossing
on DCTL in USB 2.0 Mode.

Jira: None.
Test: Depends on patch "usb limit to high speed"
      Boot the board. Check adb with USB3.0 cable.

Change-Id: I5a40ac95990777626d3185b46ddef83bd4e66730
Signed-off-by: Abhilash K V <abhilash.k.v@intel.com>
Signed-off-by: karan889 <karanx.bhagoji@intel.com>

Conflicts:
	drivers/gpu/drm/i915/i915_params.h
…gadget modes randomly

Switching between gadget modes randomly may cause kernel panic due abrupt endpoint shutdown.
Handle endpoint shutdown to prevent kernel panic

Change-Id: Ic90e0fbcc1b07dfeb049d7c7938ee520fce4b035
Jira: None
Test: None
Signed-off-by: K, Gururaj <gururaj.k@intel.com>
… process

There is a requirement of a new interface for achieving below
functionalities:
1) Need to provide Client based detailed information about the
distribution of Graphics memory
2) Need to provide an interface which can provide info about the
sharing of Graphics buffers between the clients.

The client based interface would also aid in debugging of
memory usage/consumption by each client & debug memleak related issues.

With this new interface,
1) In case of memleak scenarios, we can easily zero in on the culprit
client which is unexpectedly holding on the Graphics buffers for an
inordinate amount of time.
2) We can get an estimate of the instantaneous memory footprint of
every Graphics client.
3) We can now trace all the processes sharing a particular Graphics buffer.

By means of this patch we try to provide a sysfs interface to achieve
the mentioned functionalities.

There are two files created in sysfs:
'i915_gem_meminfo' will provide summary of the graphics resources used by
each graphics client.
'i915_gem_objinfo' will provide detailed view of each object created by
individual clients.

Rebased for kernel v4.14 (Harish Krupo)

Change-Id: I6cdb409dc3881380fe47f06517888a22815196b9
Signed-off-by: Sourab Gupta <sourab.gupta@intel.com>
Sgined-off-by: Deepak S <deepak.s@intel.com>
Signed-off-by: Hu Beiyuan <beiyuan.hu@intel.com>
Signed-off-by: Mingwei Wang <mingwei.wang@intel.com>
Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>

Conflicts:
	drivers/gpu/drm/i915/i915_params.c
	drivers/gpu/drm/i915/i915_params.h
This fix is to improve the idle residency
by handling the spurious audio dma interrupts.
The interrupt is specific to hdac controller
and its handled by threaded_irq.

Change-Id: I7e88fd500564e736200d6af82a89f5ba54432a37
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-66699
Signed-off-by: Divya Lingaiah <divya.lingaiah@intel.com>
Signed-off-by: Aravindan Muthukumar <aravindan.muthukumar@intel.com>
Change-Id: I6e51b7550da940bdbdaf078788093a4e8c75a630
Tracked-On:
Signed-off-by: Chen, Yu <yu.y.chen@intel.com>
When $DEPMOD is not found, only print a warning instead of exiting
with an error message and error status.

Warning: 'make modules_install' requires /sbin/depmod. Please install it.
This is probably in the kmod package.

Change-Id: I30663b83a705873b4e2def3b2e8380913d69c450
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: 934193a ("kbuild: verify that $DEPMOD is installed")
Cc: stable@vger.kernel.org
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Chih-Wei Huang <cwhuang@linux.org.tw>
Cc: H. Nikolaus Schaller <hns@goldelico.com>
Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
…he dual functionality of the usb

Signed-off-by: reddyr3x <rakeshx.reddy@intel.com>
@android-ia-srv
Copy link

Commit message is invalid for commit id: e318dde
Commit message should be as below:

Tracked-On: Link to Jira [Default:None.]
Signed-off-by: <Author/Contributor>

For more details please refer to below wiki link: https://github.com/projectceladon/manifest/wiki/Contributions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.