<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/platform/goldfish, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2017-05-17T19:06:59Z</updated>
<entry>
<title>goldfish: Sanitize the broken interrupt handler</title>
<updated>2017-05-17T19:06:59Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2017-02-15T10:11:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b57d6c457569c93093577795106843f625fd641e'/>
<id>urn:sha1:b57d6c457569c93093577795106843f625fd641e</id>
<content type='text'>
[ Upstream commit 6cf18e6927c0b224f972e3042fb85770d63cb9f8 ]

This interrupt handler is broken in several ways:

  - It loops forever when the op code is not decodeable

  - It never returns IRQ_HANDLED because the only way to exit the loop
    returns IRQ_NONE unconditionally.

The whole concept of this is broken. Creating devices in an interrupt
handler is beyond any point of sanity.

Make it at least behave halfways sane so accidental users do not have to
deal with a hard to debug lockup.

Fixes: e809c22b8fb028 ("goldfish: add the goldfish virtual bus")
Reported-by: Gabriel C &lt;nix.or.die@gmail.com&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
</content>
</entry>
<entry>
<title>goldfish: pipe: fix warnings for 32bit builds</title>
<updated>2014-05-16T18:32:51Z</updated>
<author>
<name>Octavian Purdila</name>
<email>octavian.purdila@intel.com</email>
</author>
<published>2014-05-16T05:24:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f4e131dc38d34469b9fee1840ad237324831bce3'/>
<id>urn:sha1:f4e131dc38d34469b9fee1840ad237324831bce3</id>
<content type='text'>
drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd_status':
drivers/platform/goldfish/goldfish_pipe.c:164:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     writel((u32)(u64)pipe, dev-&gt;base + PIPE_REG_CHANNEL);
                 ^
drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd':
drivers/platform/goldfish/goldfish_pipe.c:180:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     writel((u32)(u64)pipe, dev-&gt;base + PIPE_REG_CHANNEL);
                 ^
drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_pipe_read_write':
drivers/platform/goldfish/goldfish_pipe.c:337:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       writel((u32)(u64)pipe, dev-&gt;base + PIPE_REG_CHANNEL);

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Cc: Jun Tian &lt;jun.j.tian@intel.com&gt;
Acked-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: bus: fix warnings for 32bit builds</title>
<updated>2014-05-16T18:32:51Z</updated>
<author>
<name>Octavian Purdila</name>
<email>octavian.purdila@intel.com</email>
</author>
<published>2014-05-16T05:24:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f2dbdf625ddc98fece71a79d78d0981204e933ee'/>
<id>urn:sha1:f2dbdf625ddc98fece71a79d78d0981204e933ee</id>
<content type='text'>
drivers/platform/goldfish/pdev_bus.c: In function 'goldfish_new_pdev':
drivers/platform/goldfish/pdev_bus.c:136:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  writel((u32)(u64)name, pdev_bus_base + PDEV_BUS_GET_NAME);

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Cc: Jun Tian &lt;jun.j.tian@intel.com&gt;
Acked-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: clean up the pipe driver 64bit ifdefs</title>
<updated>2014-05-15T20:20:42Z</updated>
<author>
<name>Alan</name>
<email>alan@linux.intel.com</email>
</author>
<published>2014-05-12T15:57:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a99698facdb92adebf4a4ed7691493b7e08ff5b6'/>
<id>urn:sha1:a99698facdb92adebf4a4ed7691493b7e08ff5b6</id>
<content type='text'>
Use the 64bit helper method to scrub most of the ifdefs from the driver. The
pipe reading has a funny case we can't scrub completely.

Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: add support for 64bit to the virtual bus</title>
<updated>2014-05-15T20:19:00Z</updated>
<author>
<name>Octavian Purdila</name>
<email>octavian.purdila@intel.com</email>
</author>
<published>2014-05-12T15:55:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f10d8434201859d5ad7f51032dcd2d0c09e85ee2'/>
<id>urn:sha1:f10d8434201859d5ad7f51032dcd2d0c09e85ee2</id>
<content type='text'>
This patchs adds a new register to pass the upper 32bits for the
device name address when running in 64bit mode.

Signed-off-by: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Signed-off-by: Jun Tian &lt;jun.j.tian@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: fix kernel panic when using multiple adb connection</title>
<updated>2014-05-15T20:19:00Z</updated>
<author>
<name>Jun Tian</name>
<email>jun.j.tian@intel.com</email>
</author>
<published>2014-05-12T15:54:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=25c72c786cb571cfdf39a31f9f64d143d8623a7a'/>
<id>urn:sha1:25c72c786cb571cfdf39a31f9f64d143d8623a7a</id>
<content type='text'>
When using multiple adb on 64 bit kernel to transfer data,
the goldfish pipe interrupt will crash the kernel.

Signed-off-by: Jun Tian &lt;jun.j.tian@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: 64-bit pipe driver for goldfish platform</title>
<updated>2014-05-15T20:19:00Z</updated>
<author>
<name>Jun Tian</name>
<email>jun.j.tian@intel.com</email>
</author>
<published>2014-05-12T15:54:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=49a75c444fcf07fdde2ec74428b6b1b9ff1c6b15'/>
<id>urn:sha1:49a75c444fcf07fdde2ec74428b6b1b9ff1c6b15</id>
<content type='text'>
Support 64-bit channel and address for the goldfish pipe driver.

Signed-off-by: Jun Tian &lt;jun.j.tian@intel.com&gt;
Signed-off-by: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Signed-off-by: Brian Wood &lt;brian.j.wood@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish bus: don't call request_mem_region</title>
<updated>2014-05-03T23:48:09Z</updated>
<author>
<name>Alan Cox</name>
<email>alan@linux.intel.com</email>
</author>
<published>2014-04-28T19:50:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c1bc97f8f498a2bfab63ceef761fb0e88ef7c065'/>
<id>urn:sha1:c1bc97f8f498a2bfab63ceef761fb0e88ef7c065</id>
<content type='text'>
This is a bug fix that has been lurking in the Google tree but not pushed
upstream.

From: Octavian Purdila &lt;octavian.purdila@intel.com&gt;

The memory region is already reserved in goldfish_init() during
platform init.

Signed-off-by: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Signed-off-by: Jun Tian &lt;jun.j.tian@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: Add a FIXME note to the pipe driver</title>
<updated>2013-01-24T21:51:38Z</updated>
<author>
<name>Alan Cox</name>
<email>alan@linux.intel.com</email>
</author>
<published>2013-01-23T14:13:18Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076'/>
<id>urn:sha1:17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076</id>
<content type='text'>
Note a point in the pipe driver that wants future attention

Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>goldfish: add QEMU pipe driver</title>
<updated>2013-01-24T21:49:34Z</updated>
<author>
<name>David 'Digit' Turner</name>
<email>digit@android.com</email>
</author>
<published>2013-01-21T23:48:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c89f2750e9845aa115ca30c062edd569da619cad'/>
<id>urn:sha1:c89f2750e9845aa115ca30c062edd569da619cad</id>
<content type='text'>
A QEMU pipe is a very fast communication channel between the
guest system and the emulator. Usage from the guest is simply
something like;

  // connect to special device
  fd = open("/dev/qemu_pipe", O_RDWR);

  // tell which service we want to talk to (must be zero-terminated)
  write(fd, "pipeName", strlen("pipeName")+1);

  // do read()/write() through fd now
  ...

  // close channel
  close(fd);

Signed-off-by: David 'Digit' Turner &lt;digit@android.com&gt;
[Added support for parameter buffers for speed]
igned-off-by: Xin, Xiaohui &lt;xiaohui.xin@intel.com&gt;
Signed-off-by: Jiang, Yunhong &lt;yunhong.jiang@intel.com&gt;
Signed-off-by: Nakajima, Jun &lt;jun.nakajima@intel.com&gt;
[Ported to 3.6]
Signed-off-by: Tom Keel &lt;thomas.keel@intel.com&gt;
[Ported to 3.7, moved to platform/goldfish]
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
