* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
@ 2019-06-18 15:46 Andy Shevchenko
2019-06-18 17:54 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2019-06-18 15:46 UTC (permalink / raw)
To: buildroot
The patch breaks at least hotplug displays to work.
More details in submitted PR to the upstream, i.e.
https://github.com/prpplague/fb-test-app/pull/5.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
- now correct patch
...ion-to-place-framebuffer-in-graphics.patch | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 package/fb-test-app/0001-Revert-add-function-to-place-framebuffer-in-graphics.patch
diff --git a/package/fb-test-app/0001-Revert-add-function-to-place-framebuffer-in-graphics.patch b/package/fb-test-app/0001-Revert-add-function-to-place-framebuffer-in-graphics.patch
new file mode 100644
index 0000000000..f8e5fb3c26
--- /dev/null
+++ b/package/fb-test-app/0001-Revert-add-function-to-place-framebuffer-in-graphics.patch
@@ -0,0 +1,49 @@
+From f960002becced31ea6ce1e1160b4e1b24ef9afa5 Mon Sep 17 00:00:00 2001
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Date: Tue, 18 Jun 2019 18:26:28 +0300
+Subject: [PATCH 1/1] Revert "add function to place framebuffer in graphics
+ mode"
+
+First of all, it's completely unclear why /dev/tty1 is being hardcoded.
+Second, the function may switch the console to a wrong mode without restoring.
+Last, but not least, this breaks display in hotplug mode in my case.
+
+I have an SPI panel connected and I load an overlay to enable it. If I ran
+fb-test and do unload-load cycle, display becomes unusable till the reboot.
+
+Revert hack commit 77bdfc6ccbebb39caed4ac167a983ad3ad1e1ccb for good.
+
+Link: https://github.com/HED-Inc/fb-test-app/commit/ef9c21a2e55160ad52c40f7c2a07fcab95e484e1
+Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+---
+ common.c | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/common.c b/common.c
+index a341dbe..1f47d00 100644
+--- a/common.c
++++ b/common.c
+@@ -31,19 +31,13 @@
+ #include <sys/mman.h>
+
+ #include <linux/fb.h>
+-#include <linux/kd.h>
+
+ #include "common.h"
+
+ void fb_open(int fb_num, struct fb_info *fb_info)
+ {
+ char str[64];
+- int fd,tty;
+-
+- tty = open("/dev/tty1", O_RDWR);
+-
+- if(ioctl(tty, KDSETMODE, KD_GRAPHICS) == -1)
+- printf("Failed to set graphics mode on tty1\n");
++ int fd;
+
+ sprintf(str, "/dev/fb%d", fb_num);
+ fd = open(str, O_RDWR);
+--
+2.20.1
+
--
2.20.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
2019-06-18 15:46 [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..." Andy Shevchenko
@ 2019-06-18 17:54 ` Thomas Petazzoni
2019-06-19 11:05 ` Andy Shevchenko
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2019-06-18 17:54 UTC (permalink / raw)
To: buildroot
On Tue, 18 Jun 2019 18:46:50 +0300
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> The patch breaks at least hotplug displays to work.
>
> More details in submitted PR to the upstream, i.e.
> https://github.com/prpplague/fb-test-app/pull/5.
This link does not exist.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
2019-06-18 17:54 ` Thomas Petazzoni
@ 2019-06-19 11:05 ` Andy Shevchenko
2019-06-19 11:07 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2019-06-19 11:05 UTC (permalink / raw)
To: buildroot
On Tue, Jun 18, 2019 at 07:54:53PM +0200, Thomas Petazzoni wrote:
> On Tue, 18 Jun 2019 18:46:50 +0300
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
>
> > The patch breaks at least hotplug displays to work.
> >
> > More details in submitted PR to the upstream, i.e.
> > https://github.com/prpplague/fb-test-app/pull/5.
>
> This link does not exist.
First time in my life I see such a reaction to the bug report. So, owner
basically removed repository completely without any word to say.
It means we have to change now URL as well.
Perhaps I'm upstream de facto now.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
2019-06-19 11:05 ` Andy Shevchenko
@ 2019-06-19 11:07 ` Thomas Petazzoni
2019-06-19 11:33 ` Andy Shevchenko
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2019-06-19 11:07 UTC (permalink / raw)
To: buildroot
On Wed, 19 Jun 2019 14:05:43 +0300
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> On Tue, Jun 18, 2019 at 07:54:53PM +0200, Thomas Petazzoni wrote:
> > On Tue, 18 Jun 2019 18:46:50 +0300
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> >
> > > The patch breaks at least hotplug displays to work.
> > >
> > > More details in submitted PR to the upstream, i.e.
> > > https://github.com/prpplague/fb-test-app/pull/5.
> >
> > This link does not exist.
>
> First time in my life I see such a reaction to the bug report. So, owner
> basically removed repository completely without any word to say.
Ah, ah, interesting indeed! This is quite surprising from David Anders
to be honest. Perhaps we could contact him separately and see what
happened ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
2019-06-19 11:07 ` Thomas Petazzoni
@ 2019-06-19 11:33 ` Andy Shevchenko
2019-06-26 11:22 ` Andy Shevchenko
0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2019-06-19 11:33 UTC (permalink / raw)
To: buildroot
On Wed, Jun 19, 2019 at 01:07:04PM +0200, Thomas Petazzoni wrote:
> On Wed, 19 Jun 2019 14:05:43 +0300
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Jun 18, 2019 at 07:54:53PM +0200, Thomas Petazzoni wrote:
> > > On Tue, 18 Jun 2019 18:46:50 +0300
> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> > > > The patch breaks at least hotplug displays to work.
> > > >
> > > > More details in submitted PR to the upstream, i.e.
> > > > https://github.com/prpplague/fb-test-app/pull/5.
> > >
> > > This link does not exist.
> >
> > First time in my life I see such a reaction to the bug report. So, owner
> > basically removed repository completely without any word to say.
>
> Ah, ah, interesting indeed! This is quite surprising from David Anders
> to be honest. Perhaps we could contact him separately and see what
> happened ?
I don't know the guy.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..."
2019-06-19 11:33 ` Andy Shevchenko
@ 2019-06-26 11:22 ` Andy Shevchenko
0 siblings, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2019-06-26 11:22 UTC (permalink / raw)
To: buildroot
On Wed, Jun 19, 2019 at 02:33:30PM +0300, Andy Shevchenko wrote:
> On Wed, Jun 19, 2019 at 01:07:04PM +0200, Thomas Petazzoni wrote:
> > On Wed, 19 Jun 2019 14:05:43 +0300
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> > > On Tue, Jun 18, 2019 at 07:54:53PM +0200, Thomas Petazzoni wrote:
> > > > On Tue, 18 Jun 2019 18:46:50 +0300
> > > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
>
> > > > > The patch breaks at least hotplug displays to work.
> > > > >
> > > > > More details in submitted PR to the upstream, i.e.
> > > > > https://github.com/prpplague/fb-test-app/pull/5.
> > > >
> > > > This link does not exist.
> > >
> > > First time in my life I see such a reaction to the bug report. So, owner
> > > basically removed repository completely without any word to say.
> >
> > Ah, ah, interesting indeed! This is quite surprising from David Anders
> > to be honest. Perhaps we could contact him separately and see what
> > happened ?
>
> I don't know the guy.
So, Are we going to fix (an annoying) bug?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-06-26 11:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-18 15:46 [Buildroot] [PATCH v2] fb-test-app: Revert upstream 77bdfc6 "add function to place framebuffer ..." Andy Shevchenko
2019-06-18 17:54 ` Thomas Petazzoni
2019-06-19 11:05 ` Andy Shevchenko
2019-06-19 11:07 ` Thomas Petazzoni
2019-06-19 11:33 ` Andy Shevchenko
2019-06-26 11:22 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox