Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 12:19, Marc Zyngier m...@misterjones.org wrote: Hi Pranavkumar, On Thu, 18 Apr 2013 11:22:24 +0530, PranavkumarSawargaonkar pranavku...@linaro.org wrote: From: Pranavkumar Sawargaonkar pranavku...@linaro.org This patch implements early printk support for virtio

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 12:21, Rusty Russell ru...@rustcorp.com.au wrote: PranavkumarSawargaonkar pranavku...@linaro.org writes: From: Pranavkumar Sawargaonkar pranavku...@linaro.org This patch implements early printk support for virtio-mmio console devices without using any hypercalls

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 13:06, Marc Zyngier marc.zyng...@arm.com wrote: On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar pranavku...@linaro.org wrote: Hi Marc, On 18 April 2013 12:19, Marc Zyngier m...@misterjones.org wrote: Hi Pranavkumar, On Thu, 18 Apr 2013 11:22:24

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi, On 18 April 2013 14:14, Alexander Graf ag...@suse.de wrote: Am 18.04.2013 um 09:32 schrieb Pranavkumar Sawargaonkar pranavku...@linaro.org: On 18 April 2013 12:21, Rusty Russell ru...@rustcorp.com.au wrote: PranavkumarSawargaonkar pranavku...@linaro.org writes: From: Pranavkumar

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 21:29, Marc Zyngier marc.zyng...@arm.com wrote: On Thu, 18 Apr 2013 11:25:56 -0400, Christopher Covington c...@codeaurora.org wrote: Hi Pranavkumar, On 04/18/2013 01:52 AM, PranavkumarSawargaonkar wrote: From: Pranavkumar Sawargaonkar pranavku...@linaro.org This patch

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 13:06, Marc Zyngier marc.zyng...@arm.com wrote: On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar pranavku...@linaro.org wrote: Hi Marc, On 18 April 2013 12:19, Marc Zyngier m...@misterjones.org wrote: Hi Pranavkumar, On Thu, 18 Apr 2013 11:22:24 +0530

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
Hi Will, On 19 April 2013 14:35, Will Deacon will.dea...@arm.com wrote: Hello, On Thu, Apr 18, 2013 at 09:48:49AM +0100, Pranavkumar Sawargaonkar wrote: Actually i thought adding a config register will be easier to add a code than writing entire emulation as 8250 emulation will require

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
On 19 April 2013 15:00, Peter Maydell peter.mayd...@linaro.org wrote: On 19 April 2013 10:27, Will Deacon will.dea...@arm.com wrote: On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: I am not against using 8250 emulation (as far as it solves printk issues for kernel

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-10 Thread Pranavkumar Sawargaonkar
Hi, On 3 June 2013 21:21, Pranavkumar Sawargaonkar pranavku...@linaro.org wrote: This patch adds support for defining and passing earlyprintk related information i.e. device and address information via device tree by adding it inside chosen node. This will help user to just specify

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-13 Thread Pranavkumar Sawargaonkar
Hi Grant, On 12 June 2013 18:58, Grant Likely grant.lik...@secretlab.ca wrote: On Mon, 3 Jun 2013 21:21:11 +0530, Pranavkumar Sawargaonkar pranavku...@linaro.org wrote: This patch adds support for defining and passing earlyprintk related information i.e. device and address information via

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-04-29 Thread Pranavkumar Sawargaonkar
On 29 April 2013 17:52, Alexander Graf ag...@suse.de wrote: Am 29.04.2013 um 05:09 schrieb Rusty Russell ru...@rustcorp.com.au: Alexander Graf ag...@suse.de writes: On 26.04.2013, at 13:04, Pranavkumar Sawargaonkar wrote: This patch-set implements early printk support for virtio console

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
, config.emerg_w); } } Amit might have more clue... Amit? Thanks, Rusty. From: Pranavkumar Sawargaonkar pranavku...@linaro.org Subject: virtio: console: Add early writeonly register to config space This patch adds a emerg_wr register (writeonly) in config space of virtio console device

[PATCH V2 0/3] Emergency write support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
in console device. Emergency write mechanism: 1. When a guest wants to out some character, it has to simply write the character to emerg_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (3): virtio: console: Add emergency writeonly register to config space

[PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch adds an emerg_wr register (writeonly) in config space of virtio console device which can be used for debugging. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org Signed-off-by: Rusty Russell ru...@rustcorp.com.au --- include

[PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- Documentation/virtual/virtio-spec.txt |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/virtio-spec.txt b/Documentation/virtual

[PATCH V2 3/3] arm64: earlyprintk support for virtio-mmio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using emerg_wr config register. Kernel args for using this will be: earlyprintk=virtio-console,phys_address Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- arch/arm64

[PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-03 Thread Pranavkumar Sawargaonkar
will look for device tree earlyprintk parameter. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- arch/arm64/kernel/early_printk.c |7 +++ arch/arm64/kernel/setup.c| 21 - 2 files changed, 27

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-22 Thread Pranavkumar Sawargaonkar
On 22 April 2013 10:45, Rusty Russell ru...@rustcorp.com.au wrote: Anup Patel anup.pa...@linaro.org writes: On 22 April 2013 06:51, Rusty Russell ru...@rustcorp.com.au wrote: Pranavkumar Sawargaonkar pranavku...@linaro.org writes: On 18 April 2013 12:21, Rusty Russell ru...@rustcorp.com.au

[PATCH 0/2] Early printk support for virtio console devices.

2013-04-26 Thread Pranavkumar Sawargaonkar
wants to out some character, it has to simply write the character to early_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (2): virtio: console: Add early writeonly register to config space arm64: earlyprintk support for virtio-mmio console Documentation

[PATCH 1/2] virtio: console: Add early writeonly register to config space

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch adds a early_wr register (writeonly) in config space of virtio console device which can be used for debugging. The patch also updates virtio-spec in Documentation to reflect this feature addition in virtio console. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org

[PATCH 2/2] arm64: earlyprintk support for virtio-mmio console

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using early_wr config register. Kernel args for using this will be: earlyprintk=virtio-console,phys_address Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- arch/arm64

Re: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-17 Thread Pranavkumar Sawargaonkar
On 17 May 2013 05:22, Rusty Russell ru...@rustcorp.com.au wrote: Amit Shah amit.s...@redhat.com writes: On (Mon) 06 May 2013 [17:49:49], Pranavkumar Sawargaonkar wrote: This patch adds an emerg_wr register (writeonly) in config space of virtio console device which can be used for debugging

Re: [PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-13 Thread Pranavkumar Sawargaonkar
Hi Rusty, On 13 May 2013 08:22, Rusty Russell ru...@rustcorp.com.au wrote: Pranavkumar Sawargaonkar pranavku...@linaro.org writes: Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- Documentation/virtual/virtio-spec.txt |8

Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-08-03 Thread Pranavkumar Sawargaonkar
To: Pranavkumar Sawargaonkar Cc: k...@vger.kernel.org; kvm...@lists.cs.columbia.edu; linux-arm- ker...@lists.infradead.org; linux-kernel@vger.kernel.org; christoffer.d...@linaro.org; marc.zyng...@arm.com; will.dea...@arm.com; bhelg...@google.com; a...@arndb.de; rob.herr...@linaro.org; eric.au

[RFC 2/2] drivers: vfio: pci: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
term as a virtual msi doorbell (known by the userspace) and MSI PA (known by the kernel). 2. Set MSI/MSI-X vetcor with a virtual doorbell address instead of PA. Signed-off-by: Ankit Jindal ajin...@apm.com Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Cc: Alex Williamson

[RFC 1/2] drivers: vfio: iommu map and unmap device specific memory from kernel.

2015-07-24 Thread Pranavkumar Sawargaonkar
ajin...@apm.com Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Cc: Alex Williamson alex.william...@redhat.com Cc: Marc Zyngier marc.zyng...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: Christoffer Dall christoffer.d...@linaro.org --- drivers/vfio/vfio.c | 29

[RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
is proposing a solution for MSI/MSI-X passthrough for ARM/ARM64. Pranavkumar Sawargaonkar (2): drivers: vfio: iommu map and unmap device specific memory from kernel. drivers: vfio: pci: Add virtual MSI doorbell support. drivers/vfio/pci/vfio_pci.c | 32 ++ drivers

Re: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-17 Thread Pranavkumar Sawargaonkar
On 17 May 2013 05:22, Rusty Russell wrote: > Amit Shah writes: >> On (Mon) 06 May 2013 [17:49:49], Pranavkumar Sawargaonkar wrote: >>> This patch adds an emerg_wr register (writeonly) in config space >>> of virtio console device which can be used for debugging. >>

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 12:19, Marc Zyngier wrote: > Hi Pranavkumar, > > On Thu, 18 Apr 2013 11:22:24 +0530, PranavkumarSawargaonkar > wrote: >> From: Pranavkumar Sawargaonkar >> >> This patch implements early printk support for virtio-mmio console > device

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 12:21, Rusty Russell wrote: > > PranavkumarSawargaonkar writes: > > From: Pranavkumar Sawargaonkar > > > > This patch implements early printk support for virtio-mmio console devices > > without using any hypercalls. > > This makes some sense

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 13:06, Marc Zyngier wrote: > On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar > wrote: >> Hi Marc, >> >> On 18 April 2013 12:19, Marc Zyngier wrote: >> >>> Hi Pranavkumar, >>> >>> On Thu, 18 Ap

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi, On 18 April 2013 14:14, Alexander Graf wrote: > > > Am 18.04.2013 um 09:32 schrieb Pranavkumar Sawargaonkar > : > >> On 18 April 2013 12:21, Rusty Russell wrote: >>> >>> PranavkumarSawargaonkar writes: >>>> From: Pranavkumar Sawarga

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 21:29, Marc Zyngier wrote: > On Thu, 18 Apr 2013 11:25:56 -0400, Christopher Covington > wrote: >> Hi Pranavkumar, >> >> On 04/18/2013 01:52 AM, PranavkumarSawargaonkar wrote: >>> From: Pranavkumar Sawargaonkar >>> >>> This pa

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 13:06, Marc Zyngier wrote: > On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar > wrote: >> Hi Marc, >> >> On 18 April 2013 12:19, Marc Zyngier wrote: >> >>> Hi Pranavkumar, >>> >>> On Thu, 18 Apr 2013 11:22

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
Hi Will, On 19 April 2013 14:35, Will Deacon wrote: > Hello, > > On Thu, Apr 18, 2013 at 09:48:49AM +0100, Pranavkumar Sawargaonkar wrote: >> Actually i thought adding a config register will be easier to add a >> code than writing entire emulation as 8250 emulation wi

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
On 19 April 2013 15:00, Peter Maydell wrote: > On 19 April 2013 10:27, Will Deacon wrote: >> On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: >>> I am not against using 8250 emulation (as far as it solves printk >>> issues for kernel booting

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-22 Thread Pranavkumar Sawargaonkar
On 22 April 2013 10:45, Rusty Russell wrote: > Anup Patel writes: >> On 22 April 2013 06:51, Rusty Russell wrote: >>> >>> Pranavkumar Sawargaonkar writes: >>> > On 18 April 2013 12:21, Rusty Russell wrote: >>> >> >>> >> Pra

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
emerg_w) { > VirtIOSerial *vser; > vser = DO_UPCAST(VirtIOSerial, vdev, vdev); > VirtIOSerialPort *port; > > port = find_emerg_write_port(vser); > if (port) { > vsc->emerg_write(port, config.emerg_w); > } >

[PATCH V2 0/3] Emergency write support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
in console device. Emergency write mechanism: 1. When a guest wants to out some character, it has to simply write the character to emerg_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (3): virtio: console: Add emergency writeonly register to config space

[PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch adds an emerg_wr register (writeonly) in config space of virtio console device which can be used for debugging. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Signed-off-by: Rusty Russell --- include/uapi/linux/virtio_console.h |3 +++ 1 file changed, 3

[PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- Documentation/virtual/virtio-spec.txt |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/virtio-spec.txt b/Documentation/virtual/virtio-spec.txt index 0d6ec85..3ca38f8 100644

[PATCH V2 3/3] arm64: earlyprintk support for virtio-mmio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using emerg_wr config register. Kernel args for using this will be: earlyprintk=virtio-console, Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c | 35

Re: [PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-13 Thread Pranavkumar Sawargaonkar
Hi Rusty, On 13 May 2013 08:22, Rusty Russell wrote: > Pranavkumar Sawargaonkar writes: >> Signed-off-by: Pranavkumar Sawargaonkar >> Signed-off-by: Anup Patel >> --- >> Documentation/virtual/virtio-spec.txt |8 +++- >> 1 file changed, 7 insertions(+)

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-10 Thread Pranavkumar Sawargaonkar
Hi, On 3 June 2013 21:21, Pranavkumar Sawargaonkar wrote: > This patch adds support for defining and passing earlyprintk > related information i.e. device and address information via > device tree by adding it inside "chosen" node. > > This will help user to just s

[PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-03 Thread Pranavkumar Sawargaonkar
specifies earlyprintk (without =...) then kernel will look for device tree earlyprintk parameter. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c |7 +++ arch/arm64/kernel/setup.c| 21 - 2 files changed, 27 insertions

[PATCH 0/2] Early printk support for virtio console devices.

2013-04-26 Thread Pranavkumar Sawargaonkar
wants to out some character, it has to simply write the character to early_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (2): virtio: console: Add early writeonly register to config space arm64: earlyprintk support for virtio-mmio console Documentation

[PATCH 1/2] virtio: console: Add early writeonly register to config space

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch adds a early_wr register (writeonly) in config space of virtio console device which can be used for debugging. The patch also updates virtio-spec in Documentation to reflect this feature addition in virtio console. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel

[PATCH 2/2] arm64: earlyprintk support for virtio-mmio console

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using early_wr config register. Kernel args for using this will be: earlyprintk=virtio-console, Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c | 35

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-04-29 Thread Pranavkumar Sawargaonkar
On 29 April 2013 17:52, Alexander Graf wrote: > > > Am 29.04.2013 um 05:09 schrieb Rusty Russell : > >> Alexander Graf writes: >>> On 26.04.2013, at 13:04, Pranavkumar Sawargaonkar wrote: >>> >>>> This patch-set implements early printk support fo

[RFC 2/2] drivers: vfio: pci: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
etween MSI IOVA term as a "virtual msi doorbell" (known by the userspace) and MSI PA (known by the kernel). 2. Set MSI/MSI-X vetcor with a virtual doorbell address instead of PA. Signed-off-by: Ankit Jindal Signed-off-by: Pranavkumar Sawargaonkar Cc: Alex Williamson Cc: Marc Zyngier

[RFC 1/2] drivers: vfio: iommu map and unmap device specific memory from kernel.

2015-07-24 Thread Pranavkumar Sawargaonkar
driver. Signed-off-by: Ankit Jindal Signed-off-by: Pranavkumar Sawargaonkar Cc: Alex Williamson Cc: Marc Zyngier Cc: Will Deacon Cc: Christoffer Dall --- drivers/vfio/vfio.c | 29 +++ drivers/vfio/vfio_iommu_type1.c | 60 +++

[RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
is proposing a solution for MSI/MSI-X passthrough for ARM/ARM64. Pranavkumar Sawargaonkar (2): drivers: vfio: iommu map and unmap device specific memory from kernel. drivers: vfio: pci: Add virtual MSI doorbell support. drivers/vfio/pci/vfio_pci.c | 32 ++ drivers

Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-08-03 Thread Pranavkumar Sawargaonkar
>> > bhelg...@google.com; a...@arndb.de; rob.herr...@linaro.org; >> > eric.au...@linaro.org; patc...@apm.com; Bhushan Bharat-R65777; Yoder >> > Stuart-B08248 >> > Subject: Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support. >> > >> > On Fri, 201

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-13 Thread Pranavkumar Sawargaonkar
Hi Grant, On 12 June 2013 18:58, Grant Likely wrote: > On Mon, 3 Jun 2013 21:21:11 +0530, Pranavkumar Sawargaonkar > wrote: >> This patch adds support for defining and passing earlyprintk >> related information i.e. device and address information via >> device tree by