PATCH: radeondrm x86_64 and android32

2014-09-16 Thread Sergey Korshunoff
> The definition of the field was always 64bit and when userspace fails to > properly set the > upper 32bits than userspace needs to get fixed, not the kernel. Userspace fails to properly set the upper 32bits and a 32 bit kernel don't check the upper 32 bits :-) > Can you try to figure out where

PATCH: radeondrm x86_64 and android32

2014-09-15 Thread Sergey Korshunoff
15:54 GMT+04:00, Christian K?nig : > Am 15.09.2014 um 12:09 schrieb Sergey Korshunoff: >> Android-x86 4.0-r1 (32 bit) have problems with x86_64 kernel when he >> trying to use a radeon kms. The following change correct a problem: >> >> drivers/gpu/drm/radeon_k

PATCH: radeondrm x86_64 and android32

2014-09-15 Thread Sergey Korshunoff
Android-x86 4.0-r1 (32 bit) have problems with x86_64 kernel when he trying to use a radeon kms. The following change correct a problem: drivers/gpu/drm/radeon_kms.c (function radeon_info_ioctl): - value_ptr = (uint32_t *)((unsigned long)info->value); + value_ptr = (uint32_t *)((unsigned)info->va

3.7+ kernels and Radeon HD 4250 backlight

2014-09-13 Thread Sergey Korshunoff
Hi! I have problems running android-x86 (32 bit, 4.0-r1) with kernel 3.10 64 bit. Android drivers (binder and ashmem) are modified for this mode (no problems). Problem is with radeon fb. Function radeon_iocl() is failed on line: DRM_ERROR("copy_to_user %s:%u\n", __func__, __LINE__) on request RADEO

3.7+ kernels and Radeon HD 4250 backlight

2014-09-13 Thread Sergey Korshunoff
Hi! drivers/gpu/drm/radeon/radeon_kns.c: static int radeon_info_ioctl(...) ... value_ptr = (uint32_t *)((unsigned long)info->value); // value_ptr = (uint32_t __user *)(info->value); // looks like more correct for x86_64 ... if (copy_to_user(value_ptr, (char*)value, value_size)) {... Why value_ptr

3.7+ kernels and Radeon HD 4250 backlight

2014-09-09 Thread Sergey Korshunoff
Hi! There is a notebook eMashines e442 142G25Mikk Model PEW86 with a video card Radeon HD 4250. Since a kernel 3.7.10 (tested until 3.16.1) it have a problem: screen is a white (not black) when PC is idle. A changes causing problem is: --- linux-3.6.11/drivers/gpu/drm/radeon/radeon_encoders.c 2012