Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-30 Thread Mikulas Patocka
On Wed, 25 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > > Can unregister_framebuffer() be called when /dev/fb0 is open as a file > > handle and/or mapped to some process? > > It should be OK. > > > > Moreover the dlfb <-> fb_info locking scheme seems to be reversed > > > (+racy) as it is dlfb

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-25 Thread Bartlomiej Zolnierkiewicz
es seems to be > > unbinding the console. > > > > > PCI framebuffer drivers don't have this problem because the user is not > > > expected to just unplug the PCI card while it is being used by the > > > console. > > > > PCI framebuffer drivers currently don&#x

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-25 Thread Bartlomiej Zolnierkiewicz
On Wednesday, July 04, 2018 05:31:19 PM Noralf Trønnes wrote: > > Den 03.07.2018 19.18, skrev Mikulas Patocka: > > > > On Tue, 3 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > > > >> Hi, > >> > >> On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: > >>> I have a USB display adapter using th

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-09 Thread Mikulas Patocka
On Wed, 4 Jul 2018, Noralf Trønnes wrote: > AFAIU calling unregister_framebuffer() with open fd's is just fine as > long as fb_info with buffers stay intact. All it does is to remove the > fbX from userspace. Cleanup can be done in fb_ops->fb_destroy. > > I have been working on generic fbdev em

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-09 Thread Mikulas Patocka
On Wed, 4 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > On Tuesday, July 03, 2018 01:18:57 PM Mikulas Patocka wrote: > > > > On Tue, 3 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > > > > > Hi, > > > > > > On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: > > > > I have a USB display a

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-04 Thread Noralf Trønnes
Den 03.07.2018 19.18, skrev Mikulas Patocka: On Tue, 3 Jul 2018, Bartlomiej Zolnierkiewicz wrote: Hi, On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: I have a USB display adapter using the udlfb driver and I use it on an ARM board that doesn't have any graphics card. When I plug

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-04 Thread Bartlomiej Zolnierkiewicz
On Tuesday, July 03, 2018 01:18:57 PM Mikulas Patocka wrote: > > On Tue, 3 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > > > > > Hi, > > > > On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: > > > I have a USB display adapter using the udlfb driver and I use it on an ARM > > > board th

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-04 Thread Mikulas Patocka
On Wed, 4 Jul 2018, Daniel Vetter wrote: > On Sun, Jun 03, 2018 at 11:46:29AM -0400, Mikulas Patocka wrote: > > I have a USB display adapter using the udlfb driver and I use it on an ARM > > board that doesn't have any graphics card. When I plug the adapter in, the > > console is properly displa

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-04 Thread Daniel Vetter
On Sun, Jun 03, 2018 at 11:46:29AM -0400, Mikulas Patocka wrote: > I have a USB display adapter using the udlfb driver and I use it on an ARM > board that doesn't have any graphics card. When I plug the adapter in, the > console is properly displayed, however when I unplug and re-plug the > adapter

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-03 Thread Mikulas Patocka
On Tue, 3 Jul 2018, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: > > I have a USB display adapter using the udlfb driver and I use it on an ARM > > board that doesn't have any graphics card. When I plug the adapter in, the > > console

Re: [PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-07-03 Thread Bartlomiej Zolnierkiewicz
Hi, On Sunday, June 03, 2018 11:46:29 AM Mikulas Patocka wrote: > I have a USB display adapter using the udlfb driver and I use it on an ARM > board that doesn't have any graphics card. When I plug the adapter in, the > console is properly displayed, however when I unplug and re-plug the > adapte

[PATCH] fb: fix lost console when the user unplugs a USB adapter

2018-06-03 Thread Mikulas Patocka
I have a USB display adapter using the udlfb driver and I use it on an ARM board that doesn't have any graphics card. When I plug the adapter in, the console is properly displayed, however when I unplug and re-plug the adapter, the console is not displayed and I can't access it until I reboot the b