Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-30 Thread Sudip Mukherjee
On Sat, Nov 22, 2014 at 09:50:20PM +0530, Sudip Mukherjee wrote:
> On Sat, Nov 22, 2014 at 06:00:40AM -0800, Greg Kroah-Hartman wrote:
> > On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
> > > 2) most important - I do not have the hardware. So from the TODO list
> > > dual head and 2D acceleration support will be tough without actually
> > > checking on the hardware.
> > 
> > For a driver like this, if you don't have the hardware, I wouldn't
> > recommend taking on the task of trying to fix it up and become the
> > maintainer, sorry.
> ofcourse. that is the reason i mentioned in my mail that i do not have the 
> hardware.
> I am trying to get a SM712 based display card.if i manage to get one i will 
> mail you again.
> 
> thanks
> sudip

Hi Greg K-H,

I have spoken to Teddy Wang of Silicon Motion and he has agreed to give me a 
SM712 board. He will also be giving his guidance in the code. And we both will 
be the Maintainer of the code.

I will send you the patch to revert your commit after i have received the board 
from Teddy Wang and I have done my initial testing.

Just have a few questions, and I hope you can help me with them :-
1) do i need to have git server somewhere to send you pull request or i send 
you patches?
2) the tree on which i will be working that will be based on which tree : 
linux-next, staging-next or staging-testing?

I hope you will not mind if I ask for your suggestions whenever i get a doubt 
(which I will get many), after all i am still a newbie here.

thanks
sudip

> 
> > 
> > greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-30 Thread Sudip Mukherjee
On Sat, Nov 22, 2014 at 09:50:20PM +0530, Sudip Mukherjee wrote:
 On Sat, Nov 22, 2014 at 06:00:40AM -0800, Greg Kroah-Hartman wrote:
  On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
   2) most important - I do not have the hardware. So from the TODO list
   dual head and 2D acceleration support will be tough without actually
   checking on the hardware.
  
  For a driver like this, if you don't have the hardware, I wouldn't
  recommend taking on the task of trying to fix it up and become the
  maintainer, sorry.
 ofcourse. that is the reason i mentioned in my mail that i do not have the 
 hardware.
 I am trying to get a SM712 based display card.if i manage to get one i will 
 mail you again.
 
 thanks
 sudip

Hi Greg K-H,

I have spoken to Teddy Wang of Silicon Motion and he has agreed to give me a 
SM712 board. He will also be giving his guidance in the code. And we both will 
be the Maintainer of the code.

I will send you the patch to revert your commit after i have received the board 
from Teddy Wang and I have done my initial testing.

Just have a few questions, and I hope you can help me with them :-
1) do i need to have git server somewhere to send you pull request or i send 
you patches?
2) the tree on which i will be working that will be based on which tree : 
linux-next, staging-next or staging-testing?

I hope you will not mind if I ask for your suggestions whenever i get a doubt 
(which I will get many), after all i am still a newbie here.

thanks
sudip

 
  
  greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-22 Thread Sudip Mukherjee
On Sat, Nov 22, 2014 at 06:00:40AM -0800, Greg Kroah-Hartman wrote:
> On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
> > 2) most important - I do not have the hardware. So from the TODO list
> > dual head and 2D acceleration support will be tough without actually
> > checking on the hardware.
> 
> For a driver like this, if you don't have the hardware, I wouldn't
> recommend taking on the task of trying to fix it up and become the
> maintainer, sorry.
ofcourse. that is the reason i mentioned in my mail that i do not have the 
hardware.
I am trying to get a SM712 based display card.if i manage to get one i will 
mail you again.

thanks
sudip

> 
> greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-22 Thread Greg Kroah-Hartman
On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
> 2) most important - I do not have the hardware. So from the TODO list
> dual head and 2D acceleration support will be tough without actually
> checking on the hardware.

For a driver like this, if you don't have the hardware, I wouldn't
recommend taking on the task of trying to fix it up and become the
maintainer, sorry.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-22 Thread Greg Kroah-Hartman
On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
 2) most important - I do not have the hardware. So from the TODO list
 dual head and 2D acceleration support will be tough without actually
 checking on the hardware.

For a driver like this, if you don't have the hardware, I wouldn't
recommend taking on the task of trying to fix it up and become the
maintainer, sorry.

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-22 Thread Sudip Mukherjee
On Sat, Nov 22, 2014 at 06:00:40AM -0800, Greg Kroah-Hartman wrote:
 On Sat, Nov 22, 2014 at 12:32:02PM +0530, Sudip Mukherjee wrote:
  2) most important - I do not have the hardware. So from the TODO list
  dual head and 2D acceleration support will be tough without actually
  checking on the hardware.
 
 For a driver like this, if you don't have the hardware, I wouldn't
 recommend taking on the task of trying to fix it up and become the
 maintainer, sorry.
ofcourse. that is the reason i mentioned in my mail that i do not have the 
hardware.
I am trying to get a SM712 based display card.if i manage to get one i will 
mail you again.

thanks
sudip

 
 greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-21 Thread Sudip Mukherjee
On Thu, Nov 20, 2014 at 03:23:29PM -0800, Greg Kroah-Hartman wrote:
> On Thu, Nov 20, 2014 at 05:09:25PM -0500, Steven Rostedt wrote:
> > 
> > Someone reported a bug in the function graph tracer for MIPS. As I'm
> > still waiting on my USB serial for my Imagination MIPS board, I decided
> > to bring my Lemote Yeeloong laptop back up to the latest kernel. This
> > is where I noticed that the screen no longer displays anything.
> > 
> > I ran a bisect, which came across a staging commit that removed the
> > sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
> > on my Lemote laptop, the display worked again.
> > 
> > I then did a search for this commit and found that Debian reverted it
> > too. Seems that there's still some Debian users of this laptop. (RMS?)
> > 
> > What needs to be done to make this a "proper" driver? I can try to
> > support it, although I have no idea how it works :-)
> 
> Have you read the TODO file in this patch?  If you are willing to work
> on this, I'll be glad to apply it, but the reason I removed it was
> because no one had done anything with it for a very long time.
> 
> It needs a maintainer / developer, otherwise I can't take this.

i will like to help in this. Silicon Motion is still having SM712 in its 
product line and SM718 might also be a similar one.

now the problems (as i see) for me to help in the driver :
1) i am a newbie. though i have learnt a lot from the patches i sent , but 
still I am a newbie.
2) most important - I do not have the hardware. So from the TODO list dual head 
and 2D acceleration support will be tough without actually checking on the 
hardware.

thanks
sudip

> 
> thanks,
> 
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-21 Thread Sudip Mukherjee
On Thu, Nov 20, 2014 at 03:23:29PM -0800, Greg Kroah-Hartman wrote:
 On Thu, Nov 20, 2014 at 05:09:25PM -0500, Steven Rostedt wrote:
  
  Someone reported a bug in the function graph tracer for MIPS. As I'm
  still waiting on my USB serial for my Imagination MIPS board, I decided
  to bring my Lemote Yeeloong laptop back up to the latest kernel. This
  is where I noticed that the screen no longer displays anything.
  
  I ran a bisect, which came across a staging commit that removed the
  sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
  on my Lemote laptop, the display worked again.
  
  I then did a search for this commit and found that Debian reverted it
  too. Seems that there's still some Debian users of this laptop. (RMS?)
  
  What needs to be done to make this a proper driver? I can try to
  support it, although I have no idea how it works :-)
 
 Have you read the TODO file in this patch?  If you are willing to work
 on this, I'll be glad to apply it, but the reason I removed it was
 because no one had done anything with it for a very long time.
 
 It needs a maintainer / developer, otherwise I can't take this.

i will like to help in this. Silicon Motion is still having SM712 in its 
product line and SM718 might also be a similar one.

now the problems (as i see) for me to help in the driver :
1) i am a newbie. though i have learnt a lot from the patches i sent , but 
still I am a newbie.
2) most important - I do not have the hardware. So from the TODO list dual head 
and 2D acceleration support will be tough without actually checking on the 
hardware.

thanks
sudip

 
 thanks,
 
 greg k-h
 --
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-20 Thread Ben Hutchings
On Thu, 2014-11-20 at 17:09 -0500, Steven Rostedt wrote:
> Someone reported a bug in the function graph tracer for MIPS. As I'm
> still waiting on my USB serial for my Imagination MIPS board, I decided
> to bring my Lemote Yeeloong laptop back up to the latest kernel. This
> is where I noticed that the screen no longer displays anything.
> 
> I ran a bisect, which came across a staging commit that removed the
> sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
> on my Lemote laptop, the display worked again.
> 
> I then did a search for this commit and found that Debian reverted it
> too. Seems that there's still some Debian users of this laptop. (RMS?)
[...]

I reverted the removal for our 3.16 branch only, as that's going into
the Debian 8 'jessie' release.  It's not included in our 3.17 packages
and won't come back unless someone supports it upstream.  That gives any
interested developers another couple of years to rescue it if they want
it in Debian 9 'stretch'.

Ben.

-- 
Ben Hutchings
Man invented language to satisfy his deep need to complain. - Lily Tomlin


signature.asc
Description: This is a digitally signed message part


Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-20 Thread Greg Kroah-Hartman
On Thu, Nov 20, 2014 at 05:09:25PM -0500, Steven Rostedt wrote:
> 
> Someone reported a bug in the function graph tracer for MIPS. As I'm
> still waiting on my USB serial for my Imagination MIPS board, I decided
> to bring my Lemote Yeeloong laptop back up to the latest kernel. This
> is where I noticed that the screen no longer displays anything.
> 
> I ran a bisect, which came across a staging commit that removed the
> sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
> on my Lemote laptop, the display worked again.
> 
> I then did a search for this commit and found that Debian reverted it
> too. Seems that there's still some Debian users of this laptop. (RMS?)
> 
> What needs to be done to make this a "proper" driver? I can try to
> support it, although I have no idea how it works :-)

Have you read the TODO file in this patch?  If you are willing to work
on this, I'll be glad to apply it, but the reason I removed it was
because no one had done anything with it for a very long time.

It needs a maintainer / developer, otherwise I can't take this.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-20 Thread Steven Rostedt

Someone reported a bug in the function graph tracer for MIPS. As I'm
still waiting on my USB serial for my Imagination MIPS board, I decided
to bring my Lemote Yeeloong laptop back up to the latest kernel. This
is where I noticed that the screen no longer displays anything.

I ran a bisect, which came across a staging commit that removed the
sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
on my Lemote laptop, the display worked again.

I then did a search for this commit and found that Debian reverted it
too. Seems that there's still some Debian users of this laptop. (RMS?)

What needs to be done to make this a "proper" driver? I can try to
support it, although I have no idea how it works :-)

This reverts commit dc93c85235efa5201e9a3c116bc3fbd1afc1a182.

Signed-off-by: Steven Rostedt 
---
 drivers/staging/Kconfig   |2 +
 drivers/staging/Makefile  |1 +
 drivers/staging/sm7xxfb/Kconfig   |   13 +
 drivers/staging/sm7xxfb/Makefile  |1 +
 drivers/staging/sm7xxfb/TODO  |9 +
 drivers/staging/sm7xxfb/sm7xx.h   |  779 
 drivers/staging/sm7xxfb/sm7xxfb.c | 1026 +
 7 files changed, 1831 insertions(+)
 create mode 100644 drivers/staging/sm7xxfb/Kconfig
 create mode 100644 drivers/staging/sm7xxfb/Makefile
 create mode 100644 drivers/staging/sm7xxfb/TODO
 create mode 100644 drivers/staging/sm7xxfb/sm7xx.h
 create mode 100644 drivers/staging/sm7xxfb/sm7xxfb.c

diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index 4690ae9a267f..a52e1c526899 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -58,6 +58,8 @@ source "drivers/staging/vt6656/Kconfig"
 
 source "drivers/staging/iio/Kconfig"
 
+source "drivers/staging/sm7xxfb/Kconfig"
+
 source "drivers/staging/xgifb/Kconfig"
 
 source "drivers/staging/emxx_udc/Kconfig"
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index c780a0e70e15..29070eb0dd9e 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -23,6 +23,7 @@ obj-$(CONFIG_VT6655)  += vt6655/
 obj-$(CONFIG_VT6656)   += vt6656/
 obj-$(CONFIG_VME_BUS)  += vme/
 obj-$(CONFIG_IIO)  += iio/
+obj-$(CONFIG_FB_SM7XX) += sm7xxfb/
 obj-$(CONFIG_FB_XGI)   += xgifb/
 obj-$(CONFIG_USB_EMXX) += emxx_udc/
 obj-$(CONFIG_BCM_WIMAX)+= bcm/
diff --git a/drivers/staging/sm7xxfb/Kconfig b/drivers/staging/sm7xxfb/Kconfig
new file mode 100644
index ..e2922ae3a3ee
--- /dev/null
+++ b/drivers/staging/sm7xxfb/Kconfig
@@ -0,0 +1,13 @@
+config FB_SM7XX
+   tristate "Silicon Motion SM7XX framebuffer support"
+   depends on FB && PCI
+   select FB_CFB_FILLRECT
+   select FB_CFB_COPYAREA
+   select FB_CFB_IMAGEBLIT
+   help
+ Frame buffer driver for the Silicon Motion SM710, SM712, SM721
+ and SM722 chips.
+
+ This driver is also available as a module. The module will be
+ called sm7xxfb. If you want to compile it as a module, say M
+ here and read .
diff --git a/drivers/staging/sm7xxfb/Makefile b/drivers/staging/sm7xxfb/Makefile
new file mode 100644
index ..48f471cf9f36
--- /dev/null
+++ b/drivers/staging/sm7xxfb/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_FB_SM7XX) += sm7xxfb.o
diff --git a/drivers/staging/sm7xxfb/TODO b/drivers/staging/sm7xxfb/TODO
new file mode 100644
index ..1fcead591c16
--- /dev/null
+++ b/drivers/staging/sm7xxfb/TODO
@@ -0,0 +1,9 @@
+TODO:
+- Dual head support
+- 2D acceleration support
+- use kernel coding style
+- refine the code and remove unused code
+- move it to drivers/video/sm7xxfb.c
+
+Please send any patches to Greg Kroah-Hartman  and
+Teddy Wang .
diff --git a/drivers/staging/sm7xxfb/sm7xx.h b/drivers/staging/sm7xxfb/sm7xx.h
new file mode 100644
index ..85998615b801
--- /dev/null
+++ b/drivers/staging/sm7xxfb/sm7xx.h
@@ -0,0 +1,779 @@
+/*
+ * Silicon Motion SM712 frame buffer device
+ *
+ * Copyright (C) 2006 Silicon Motion Technology Corp.
+ * Authors:Ge Wang, gew...@siliconmotion.com
+ * Boyod boyod.y...@siliconmotion.com.cn
+ *
+ * Copyright (C) 2009 Lemote, Inc.
+ * Author: Wu Zhangjin, wuzhang...@gmail.com
+ *
+ *  This file is subject to the terms and conditions of the GNU General Public
+ *  License. See the file COPYING in the main directory of this archive for
+ *  more details.
+ */
+
+#define NR_PALETTE256
+
+#define FB_ACCEL_SMI_LYNX 88
+
+#define SCREEN_X_RES  1024
+#define SCREEN_Y_RES  600
+#define SCREEN_BPP16
+
+/*Assume SM712 graphics chip has 4MB VRAM */
+#define SM712_VIDEOMEMORYSIZE0x0040
+/*Assume SM722 graphics chip has 8MB VRAM */
+#define SM722_VIDEOMEMORYSIZE0x0080
+
+#define dac_reg(0x3c8)
+#define dac_val(0x3c9)
+
+extern void __iomem *smtc_RegBaseAddress;
+#define smtc_mmiowb(dat, reg)  writeb(dat, smtc_RegBaseAddress + reg)
+#define smtc_mmioww(dat, 

[PATCH] Revert staging: sm7xxfb: remove driver

2014-11-20 Thread Steven Rostedt

Someone reported a bug in the function graph tracer for MIPS. As I'm
still waiting on my USB serial for my Imagination MIPS board, I decided
to bring my Lemote Yeeloong laptop back up to the latest kernel. This
is where I noticed that the screen no longer displays anything.

I ran a bisect, which came across a staging commit that removed the
sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
on my Lemote laptop, the display worked again.

I then did a search for this commit and found that Debian reverted it
too. Seems that there's still some Debian users of this laptop. (RMS?)

What needs to be done to make this a proper driver? I can try to
support it, although I have no idea how it works :-)

This reverts commit dc93c85235efa5201e9a3c116bc3fbd1afc1a182.

Signed-off-by: Steven Rostedt rost...@goodmis.org
---
 drivers/staging/Kconfig   |2 +
 drivers/staging/Makefile  |1 +
 drivers/staging/sm7xxfb/Kconfig   |   13 +
 drivers/staging/sm7xxfb/Makefile  |1 +
 drivers/staging/sm7xxfb/TODO  |9 +
 drivers/staging/sm7xxfb/sm7xx.h   |  779 
 drivers/staging/sm7xxfb/sm7xxfb.c | 1026 +
 7 files changed, 1831 insertions(+)
 create mode 100644 drivers/staging/sm7xxfb/Kconfig
 create mode 100644 drivers/staging/sm7xxfb/Makefile
 create mode 100644 drivers/staging/sm7xxfb/TODO
 create mode 100644 drivers/staging/sm7xxfb/sm7xx.h
 create mode 100644 drivers/staging/sm7xxfb/sm7xxfb.c

diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index 4690ae9a267f..a52e1c526899 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -58,6 +58,8 @@ source drivers/staging/vt6656/Kconfig
 
 source drivers/staging/iio/Kconfig
 
+source drivers/staging/sm7xxfb/Kconfig
+
 source drivers/staging/xgifb/Kconfig
 
 source drivers/staging/emxx_udc/Kconfig
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index c780a0e70e15..29070eb0dd9e 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -23,6 +23,7 @@ obj-$(CONFIG_VT6655)  += vt6655/
 obj-$(CONFIG_VT6656)   += vt6656/
 obj-$(CONFIG_VME_BUS)  += vme/
 obj-$(CONFIG_IIO)  += iio/
+obj-$(CONFIG_FB_SM7XX) += sm7xxfb/
 obj-$(CONFIG_FB_XGI)   += xgifb/
 obj-$(CONFIG_USB_EMXX) += emxx_udc/
 obj-$(CONFIG_BCM_WIMAX)+= bcm/
diff --git a/drivers/staging/sm7xxfb/Kconfig b/drivers/staging/sm7xxfb/Kconfig
new file mode 100644
index ..e2922ae3a3ee
--- /dev/null
+++ b/drivers/staging/sm7xxfb/Kconfig
@@ -0,0 +1,13 @@
+config FB_SM7XX
+   tristate Silicon Motion SM7XX framebuffer support
+   depends on FB  PCI
+   select FB_CFB_FILLRECT
+   select FB_CFB_COPYAREA
+   select FB_CFB_IMAGEBLIT
+   help
+ Frame buffer driver for the Silicon Motion SM710, SM712, SM721
+ and SM722 chips.
+
+ This driver is also available as a module. The module will be
+ called sm7xxfb. If you want to compile it as a module, say M
+ here and read file:Documentation/kbuild/modules.txt.
diff --git a/drivers/staging/sm7xxfb/Makefile b/drivers/staging/sm7xxfb/Makefile
new file mode 100644
index ..48f471cf9f36
--- /dev/null
+++ b/drivers/staging/sm7xxfb/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_FB_SM7XX) += sm7xxfb.o
diff --git a/drivers/staging/sm7xxfb/TODO b/drivers/staging/sm7xxfb/TODO
new file mode 100644
index ..1fcead591c16
--- /dev/null
+++ b/drivers/staging/sm7xxfb/TODO
@@ -0,0 +1,9 @@
+TODO:
+- Dual head support
+- 2D acceleration support
+- use kernel coding style
+- refine the code and remove unused code
+- move it to drivers/video/sm7xxfb.c
+
+Please send any patches to Greg Kroah-Hartman g...@kroah.com and
+Teddy Wang teddy.w...@siliconmotion.com.cn.
diff --git a/drivers/staging/sm7xxfb/sm7xx.h b/drivers/staging/sm7xxfb/sm7xx.h
new file mode 100644
index ..85998615b801
--- /dev/null
+++ b/drivers/staging/sm7xxfb/sm7xx.h
@@ -0,0 +1,779 @@
+/*
+ * Silicon Motion SM712 frame buffer device
+ *
+ * Copyright (C) 2006 Silicon Motion Technology Corp.
+ * Authors:Ge Wang, gew...@siliconmotion.com
+ * Boyod boyod.y...@siliconmotion.com.cn
+ *
+ * Copyright (C) 2009 Lemote, Inc.
+ * Author: Wu Zhangjin, wuzhang...@gmail.com
+ *
+ *  This file is subject to the terms and conditions of the GNU General Public
+ *  License. See the file COPYING in the main directory of this archive for
+ *  more details.
+ */
+
+#define NR_PALETTE256
+
+#define FB_ACCEL_SMI_LYNX 88
+
+#define SCREEN_X_RES  1024
+#define SCREEN_Y_RES  600
+#define SCREEN_BPP16
+
+/*Assume SM712 graphics chip has 4MB VRAM */
+#define SM712_VIDEOMEMORYSIZE0x0040
+/*Assume SM722 graphics chip has 8MB VRAM */
+#define SM722_VIDEOMEMORYSIZE0x0080
+
+#define dac_reg(0x3c8)
+#define dac_val(0x3c9)
+
+extern void __iomem *smtc_RegBaseAddress;
+#define 

Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-20 Thread Greg Kroah-Hartman
On Thu, Nov 20, 2014 at 05:09:25PM -0500, Steven Rostedt wrote:
 
 Someone reported a bug in the function graph tracer for MIPS. As I'm
 still waiting on my USB serial for my Imagination MIPS board, I decided
 to bring my Lemote Yeeloong laptop back up to the latest kernel. This
 is where I noticed that the screen no longer displays anything.
 
 I ran a bisect, which came across a staging commit that removed the
 sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
 on my Lemote laptop, the display worked again.
 
 I then did a search for this commit and found that Debian reverted it
 too. Seems that there's still some Debian users of this laptop. (RMS?)
 
 What needs to be done to make this a proper driver? I can try to
 support it, although I have no idea how it works :-)

Have you read the TODO file in this patch?  If you are willing to work
on this, I'll be glad to apply it, but the reason I removed it was
because no one had done anything with it for a very long time.

It needs a maintainer / developer, otherwise I can't take this.

thanks,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Revert staging: sm7xxfb: remove driver

2014-11-20 Thread Ben Hutchings
On Thu, 2014-11-20 at 17:09 -0500, Steven Rostedt wrote:
 Someone reported a bug in the function graph tracer for MIPS. As I'm
 still waiting on my USB serial for my Imagination MIPS board, I decided
 to bring my Lemote Yeeloong laptop back up to the latest kernel. This
 is where I noticed that the screen no longer displays anything.
 
 I ran a bisect, which came across a staging commit that removed the
 sm7xxfb driver. When I reverted it on a v3.18-rc5 kernel and booted it
 on my Lemote laptop, the display worked again.
 
 I then did a search for this commit and found that Debian reverted it
 too. Seems that there's still some Debian users of this laptop. (RMS?)
[...]

I reverted the removal for our 3.16 branch only, as that's going into
the Debian 8 'jessie' release.  It's not included in our 3.17 packages
and won't come back unless someone supports it upstream.  That gives any
interested developers another couple of years to rescue it if they want
it in Debian 9 'stretch'.

Ben.

-- 
Ben Hutchings
Man invented language to satisfy his deep need to complain. - Lily Tomlin


signature.asc
Description: This is a digitally signed message part