lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
message-id: <70b6-579f4100-9-6ce4f380@208251793>
date:	Mon, 01 Aug 2016 13:30:57 +0100
from:	"Peter Senna Tschudin" <peter.senna@...labora.co.uk>
to:	"Lucas Stach" <l.stach@...gutronix.de>
cc:	andrey.gusakov@...entembedded.com,
	boris.brezillon@...e-electrons.com, mchehab@...nel.org,
	dri-devel@...ts.freedesktop.org, mark.rutland@....com,
	airlied@...ux.ie, treding@...dia.com, geert@...ux-m68k.org,
	devicetree@...r.kernel.org,
	"Daniel Stone" <daniel.stone@...labora.co.uk>,
	kernel@...gutronix.de, ykk@...k-chips.com,
	akpm@...ux-foundation.org, linux-arm-kernel@...ts.infradead.org,
	robh+dt@...nel.org, linux@...linux.org.uk, linux@...ck-us.net,
	davem@...emloft.net, enric.balletbo@...labora.com,
	"Rob Herring" <robh@...nel.org>, shawnguo@...nel.org,
	p.zabel@...gutronix.de, architt@...eaurora.org,
	gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
	fabio.estevam@....com,
	"Peter Senna Tschudin" <peter.senna@...labora.com>
subject: Re: [PATCH V3 2/5] dts/imx6q-b850v3: Configure IPU assignment order

Hi Lucas,

Thank you for the prompt review.
 
On Monday, August 1, 2016 10:54 CEST, Lucas Stach <l.stach@...gutronix.de> wrote: 
 
> Am Sonntag, den 31.07.2016, 21:55 +0200 schrieb Peter Senna Tschudin:
> > As the IPU has combined limitations across multiple crtcs, and as that
> > can't be communicated to userspace at the moment, reorder the crtcs to
> > allow support to two Full-HD monitors by avoiding assigning two
> > monitors to a single IPU.
> > 
> > Cc: Enric Balletbo i Serra <enric.balletbo@...labora.com>
> > Cc: Philipp Zabel <p.zabel@...gutronix.de>
> > Cc: Rob Herring <robh@...nel.org>
> > Cc: Fabio Estevam <fabio.estevam@....com>
> > Signed-off-by: Peter Senna Tschudin <peter.senna@...labora.com>
> 
> NACK. This is a userspace issue. Changing the assignment order of the
> CRTCs just shifts the failure to a userspace that want to use CRTC 0 and
> 2 now.

Err, yeah user space issue... But how the kernel is currently telling user space about what exactly went wrong and how user space might fix it? How Weston(our user space) is going to know  that reshuffling crtcs is going to lead to success; how could it? I guess some  platform-specific code in user space is needed for this to work...

> 
> imx-drm just got atomic support and with the atomic check it should be
> possible to inform userspace in a reasonable way about such issues.

Should be possible, but I guess it isn't, and wont be until a considerable effort is put on both kernel and user space. Or am I missing something? What do you propose?

I got inspiration from: arch/arm/boot/dts/imx6q.dtsi
...
        display-subsystem {
                compatible = "fsl,imx-display-subsystem";
                ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
        };
...

This is there for more than 2 years now, and I get that the idea here is not ordering, but just declaring.

However even if this patch is not the perfect solution, it allows us to stay close to upstream now without creating problems(does it create any issue?).

Can you reconsider or propose a concrete solution that is not more complex than our entire driver?

Thanks a lot!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ