GM107GLM: kernel oops during link training when ior becomes NULL

2017-11-06 Thread Pavel Roskin
ppy to provide more information and test patches. -- Regards, Pavel Roskin ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/nouveau/fbcon: fix oops without fbdev emulation

2017-10-18 Thread Pavel Roskin
Ben, David, I would hate if Linux 4.14 is released without this fix, as it would be a regression for my machine. As I mentioned, Linux 4.13 registers nouveaufb even without the dock, but Linux 4.14 doesn't. And that would cause an oops even if CONFIG_DRM_FBDEV_EMULATION is enabled. Please let me

[PATCH] drm/nouveau/fbcon: fix oops without fbdev emulation

2017-09-27 Thread Pavel Roskin
4-rc2 when CONFIG_DRM_FBDEV_EMULATION option is disabled. It happens during gdm login. Linux 4.14-rc2 is affected even if CONFIG_DRM_FBDEV_EMULATION is enabled, but no monitors are connected to the dock on a laptop with a discrete NVIDIA card. Signed-off-by: Pavel Roskin --- drivers/gpu/d

Re: [PATCH] drm/nouveau/fbcon: fix oops without fbdev emulation

2017-09-27 Thread Pavel Roskin
Hi Daniel, I meant Linux 4.13 of course, sorry! Can you fix the description for me please? If not, I can resend the patch with the updated description. Let me add some context to my patch. My laptop is Dell Precision 7510 with dual graphics (Intel and Nvidia). The dock is connected to two monitor

[PATCH] drm/nouveau/fbcon: fix oops without fbdev emulation

2017-09-24 Thread Pavel Roskin
3.13 when CONFIG_DRM_FBDEV_EMULATION option is disabled. Signed-off-by: Pavel Roskin --- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index f7707849bb53..698b8b10b

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Pavel Roskin
On Tue, 22 Oct 2013 10:38:03 +0100 Chris Wilson wrote: > Prevent the user from passing in an ioctl command with up to 16,383 > bytes specified for the struct to be allocated and copied, and > instead only allocate enough space to satisfy the kernel. > > Suggested-by: Pavel Roski

[PATCH] drm: never write to the userspace more data than the caller wants

2013-10-17 Thread Pavel Roskin
On Thu, 17 Oct 2013 13:26:47 +0100 Chris Wilson wrote: > On Wed, Oct 16, 2013 at 08:12:35PM -0400, Pavel Roskin wrote: > > The amount of data wanted by the userspace caller is encoded in the > > ioctl number. Generic drm ioctls were ignoring it. > > > > As a resul

[PATCH] drm: never write to the userspace more data than the caller wants

2013-10-16 Thread Pavel Roskin
ff-by: Pavel Roskin Cc: stable at vger.kernel.org --- drivers/gpu/drm/drm_drv.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index e572dd2..8a1c721 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-15 Thread Pavel Roskin
abi > incompatibility for 32-bit userspaces. To be strict we should do an > ioc32 wrapper in the kernel. I see. After all, the kernel fails to write the encoders at the requested address, so perhaps it could be improved as well. Thank you for the fix! -- Regards, Pavel Roskin

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-15 Thread Pavel Roskin
all restore any data on stack on return? I have an impression that your patch complicates things too much without addressing the actual problem. -- Regards, Pavel Roskin -- next part -- A non-text attachment was scrubbed... Name: 01-protect-array.patch Type: text/x-patch Size:

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-15 Thread Pavel Roskin
->kmode->connectors[num]; conn.count_props = 0; -- Regards, Pavel Roskin

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-15 Thread Pavel Roskin
On Tue, 15 Oct 2013 16:23:50 +0100 Chris Wilson wrote: > to try and grab more information about the failure here. Attached. The only interesting difference is +sna_output_init(num=0) +sna_output_init: GETENCODER failed, ret=22 -- Regards, Pavel Roskin -- next p

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-15 Thread Pavel Roskin
On Sun, 13 Oct 2013 15:00:04 +0100 Chris Wilson wrote: > On Sun, Oct 13, 2013 at 12:40:10AM -0400, Pavel Roskin wrote: > > I won't see that system until Tuesday. I'll give you the > > information you ask, I'm just trying to understand the debugging > > data I

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-13 Thread Pavel Roskin
er IDs are copied last and if the encoder ID is zero, it's not copied. So I don't see how the kernel could overwrite that value. However, gcc could reorder something, but I doubt it would reorder put_user() calls. Anyway, I'll try to add buffers around enc in sna_output_init() to protect against memory corruption. -- Regards, Pavel Roskin

i915 driver fails on i686 userspace + x86_64 kernel

2013-10-12 Thread Pavel Roskin
ill have * appropriately converted them already. */ I cannot find that conversion code. Maybe it's in arch/x86/ia32/ia32entry.S, but we want architecture independent code in drivers/gpu/drm. Or maybe the API for DRM_IOCTL_MODE_GETCONNECTOR is fundamentally wr

Re: Bisected regression on RV610

2013-01-06 Thread Pavel Roskin
ucher :04 04 f641a4e6cb7ac7426a8a80f3a4cf51a6320f95d4 e974cd1737fafb82c6dc8f85dbcdf6cacfea893a M drivers Thank you!!! -- Regards, Pavel Roskin ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Bisected regression on RV610

2013-01-06 Thread Pavel Roskin
y: Alex Deucher :04 04 f641a4e6cb7ac7426a8a80f3a4cf51a6320f95d4 e974cd1737fafb82c6dc8f85dbcdf6cacfea893a M drivers Thank you!!! -- Regards, Pavel Roskin

Re: Bisected regression on RV610

2013-01-06 Thread Pavel Roskin
g when running unshield on some proprietary Windows drivers in xterm on Fedora 17 x86_64 with Radeon RV610. -- Regards, Pavel Roskin ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Bisected regression on RV610

2013-01-05 Thread Pavel Roskin
g when running unshield on some proprietary Windows drivers in xterm on Fedora 17 x86_64 with Radeon RV610. -- Regards, Pavel Roskin

Re: Bisected regression on RV610

2012-12-22 Thread Pavel Roskin
ch. If it doesn't help, I'll repeat the bisection. -- Regards, Pavel Roskin ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Bisected regression on RV610

2012-12-22 Thread Pavel Roskin
sday. I'll try that patch. If it doesn't help, I'll repeat the bisection. -- Regards, Pavel Roskin

Bisected regression on RV610

2012-12-21 Thread Pavel Roskin
The kernel .config file is attached. -- Regards, Pavel Roskin -- next part -- # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 3.7.0 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="el