[3.9.0-rc2] nouveau deadlock when HDMI TV is connected

2013-03-16 Thread Lijo Antony
14] drm/nve0/graph: some 
random reg moved on kepler
git bisect bad 65b5f42e2a9eb9c8383fb67698bf8c27657f8c14

lijo at pluto:~/linux/linux$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor 
Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core 
Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core 
Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series 
Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset 
Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset 
Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset 
Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset 
Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset 
Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset 
Family PCI Express Root Port 5 (rev b5)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset 
Family PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset 
Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC 
Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset 
Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family 
SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 
540M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio 
Controller (rev a1)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
09:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless 
Network Adapter (PCI-Express) (rev 01)
0b:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host 
Controller (rev 04)


-- next part --
A non-text attachment was scrubbed...
Name: dmesg.log
Type: text/x-log
Size: 71804 bytes
Desc: not available
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/0465be53/attachment-0001.bin>


[Bug 6090] Texture bitmap not displaying correctly in games similar to tuxracer for r200 based cards.

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=6090

--- Comment #3 from Brian Beardall  ---
I haven't tested recently. I still have the hardware and will test against the
latest mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/c2044a93/attachment.html>


drm/i915: new warning (regression) in 3.7.10 and 3.8.3

2013-03-16 Thread Richard Cochran

I have an Acer Aspire One netbook, and on it I get the following
warning when closing and opening the lid. I think this warning first
appeared in 3.7.

Does this need fixing? If so, who can do it?

Thanks,
Richard

** close lid

Mar 16 11:32:03 netboy kernel: [  287.429404] [drm:i9xx_crtc_mode_set] *ERROR* 
Couldn't find PLL settings for mode!
Mar 16 11:32:03 netboy kernel: [  287.429440] [ cut here 
]
Mar 16 11:32:03 netboy kernel: [  287.429526] WARNING: at 
/home/richard/git/linux/drivers/gpu/drm/i915/intel_display.c:7877 
intel_modeset_check_state+0x2f8/0x452 [i915]()
Mar 16 11:32:03 netboy kernel: [  287.429537] Hardware name: AOD257
Mar 16 11:32:03 netboy kernel: [  287.429548] encoder's hw state doesn't match 
sw tracking (expected 1, found 0)
Mar 16 11:32:03 netboy kernel: [  287.429556] Modules linked in: mmc_block 
bluetooth crc16 cpufreq_stats cpufreq_userspace cpufreq_powersave 
cpufreq_conservative uinput fuse loop snd_hda_codec_realtek joydev arc4 iwldvm 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm 
mac80211 i915 snd_timer snd iwlwifi cfg80211 tpm_tis psmouse serio_raw 
drm_kms_helper tpm i2c_i801 soundcore evdev hid_generic drm i2c_algo_bit video 
pcspkr tpm_bios i2c_core ehci_pci snd_page_alloc acpi_cpufreq mperf battery ac 
rfkill wmi processor button ext3 jbd mbcache sd_mod crc_t10dif usbhid hid 
rtsx_pci_sdmmc mmc_core ahci libahci libata scsi_mod uhci_hcd ehci_hcd usbcore 
usb_common thermal thermal_sys rtsx_pci mfd_core r8169 mii
Mar 16 11:32:03 netboy kernel: [  287.429771] Pid: 34, comm: kworker/0:1 Not 
tainted 3.8.3 #74
Mar 16 11:32:03 netboy kernel: [  287.429781] Call Trace:
Mar 16 11:32:03 netboy kernel: [  287.429808]  [] ? 
warn_slowpath_common+0x6a/0x7b
Mar 16 11:32:03 netboy kernel: [  287.429882]  [] ? 
intel_modeset_check_state+0x2f8/0x452 [i915]
Mar 16 11:32:03 netboy kernel: [  287.429904]  [] ? 
warn_slowpath_fmt+0x28/0x2c
Mar 16 11:32:03 netboy kernel: [  287.429975]  [] ? 
intel_modeset_check_state+0x2f8/0x452 [i915]
Mar 16 11:32:03 netboy kernel: [  287.430017]  [] ? 
intel_set_mode+0x61a/0x6aa [i915]
Mar 16 11:32:03 netboy kernel: [  287.430162]  [] ? 
intel_set_mode+0x654/0x6aa [i915]
Mar 16 11:32:03 netboy kernel: [  287.430290]  [] ? 
intel_modeset_setup_hw_state+0x5e0/0x70a [i915]
Mar 16 11:32:03 netboy kernel: [  287.430386]  [] ? 
intel_lid_notify+0x7a/0x8a [i915]
Mar 16 11:32:03 netboy kernel: [  287.430409]  [] ? 
notifier_call_chain+0x23/0x46
Mar 16 11:32:03 netboy kernel: [  287.430449]  [] ? 
__blocking_notifier_call_chain+0x39/0x4c
Mar 16 11:32:03 netboy kernel: [  287.430470]  [] ? 
blocking_notifier_call_chain+0x9/0xc
Mar 16 11:32:03 netboy kernel: [  287.430500]  [] ? 
acpi_lid_send_state+0x7d/0xa0 [button]
Mar 16 11:32:03 netboy kernel: [  287.430532]  [] ? 
acpi_button_notify+0x2b/0x95 [button]
Mar 16 11:32:03 netboy kernel: [  287.430557]  [] ? 
acpi_device_notify+0xf/0x11
Mar 16 11:32:03 netboy kernel: [  287.430578]  [] ? 
acpi_ev_notify_dispatch+0x2b/0x42
Mar 16 11:32:03 netboy kernel: [  287.430597]  [] ? 
acpi_os_execute_deferred+0x18/0x21
Mar 16 11:32:03 netboy kernel: [  287.430617]  [] ? 
process_one_work+0x1b1/0x27e
Mar 16 11:32:03 netboy kernel: [  287.430637]  [] ? 
worker_thread+0x115/0x203
Mar 16 11:32:03 netboy kernel: [  287.430656]  [] ? 
process_one_work+0x27e/0x27e
Mar 16 11:32:03 netboy kernel: [  287.430672]  [] ? kthread+0x8d/0x92
Mar 16 11:32:03 netboy kernel: [  287.430691]  [] ? 
ret_from_kernel_thread+0x1b/0x28
Mar 16 11:32:03 netboy kernel: [  287.430707]  [] ? 
kthread_freezable_should_stop+0x4b/0x4b
Mar 16 11:32:03 netboy kernel: [  287.430720] ---[ end trace 4a7da2dcc2431943 
]---

** open lid

Mar 16 11:32:03 netboy kernel: [  287.430746] [ cut here 
]
Mar 16 11:32:03 netboy kernel: [  287.430849] WARNING: at 
/home/richard/git/linux/drivers/gpu/drm/i915/intel_display.c:7911 
intel_modeset_check_state+0x3f3/0x452 [i915]()
Mar 16 11:32:03 netboy kernel: [  287.430889] Hardware name: AOD257
Mar 16 11:32:03 netboy kernel: [  287.430928] crtc's computed active state 
doesn't match tracked active state (expected 1, found 0)
Mar 16 11:32:03 netboy kernel: [  287.430964] Modules linked in: mmc_block 
bluetooth crc16 cpufreq_stats cpufreq_userspace cpufreq_powersave 
cpufreq_conservative uinput fuse loop snd_hda_codec_realtek joydev arc4 iwldvm 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm 
mac80211 i915 snd_timer snd iwlwifi cfg80211 tpm_tis psmouse serio_raw 
drm_kms_helper tpm i2c_i801 soundcore evdev hid_generic drm i2c_algo_bit video 
pcspkr tpm_bios i2c_core ehci_pci snd_page_alloc acpi_cpufreq mperf battery ac 
rfkill wmi processor button ext3 jbd mbcache sd_mod crc_t10dif usbhid hid 
rtsx_pci_sdmmc mmc_core ahci libahci libata scsi_mod uhci_hcd ehci_hcd usbcore 
usb_common thermal thermal_sys rtsx_pci mfd_core r8169 mii
Mar 16 11:32:03 netboy kernel: [  287.431233] Pid: 34, comm: kworker/0:1 
Tainted: GW

Bug report: i915 screens stay blank with 3.8.3, ok with 3.8.2

2013-03-16 Thread Stephan Boettcher

Moin,

[1.] One line summary of the problem:

   Both screens stay blank during boot with 3.8.3.

[2.] Full description of the problem/report:

   When booting the screens go blank soon after showing the grub menu.  
   Starting X11 does not bring the screens up either.
   In /var/log/dmesg two lines appear (diff -u):

@@ -432,8 +434,10 @@
 [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
 [drm] Driver supports precise vblank timestamp query.
 vgaarb: device changed decodes: 
PCI::00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
+i915 :00:02.0: No connectors reported connected with modes
+[drm] Cannot find any crtc or sizes - going 1024x768
 fbcon: inteldrmfb (fb0) is primary device
-Console: switching to colour frame buffer device 240x75
+Console: switching to colour frame buffer device 128x48
 i915 :00:02.0: fb0: inteldrmfb frame buffer device
 i915 :00:02.0: registered panic notifier
 i915: No ACPI video bus found

Most info below is obtained after booting 3.8.2.

$ xrandr 
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 8192 x 8192
HDMI1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm 
x 324mm
   1920x1200  60.0*+
   1600x1200  60.0  
   1280x1024  75.0 60.0  
   1280x960   60.0  
   1152x864   75.0  
   1024x768   75.1 70.1 60.0  
   832x62474.6  
   800x60072.2 75.0 60.3 56.2  
   640x48072.8 75.0 66.7 60.0  
   720x40070.1  
VGA1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 
518mm x 324mm
   1920x1200  60.0*+
   1600x1200  60.0  
   1280x1024  60.0  
   1280x960   60.0  
   1024x768   60.0  
   800x60060.3 56.2  
   640x48060.0  
DP2 disconnected (normal left inverted right x axis y axis)

[3.] Keywords (i.e., modules, networking, kernel):

drm/i915 

[4.] Kernel information

3.8.3

[4.2.] Kernel .config file:

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.8.3 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_DEFAULT_IDLE=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_ARCH_HAS_CPU_AUTOPROBE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_INTEL_TXT=y
CONFIG_X86_64_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx 
-fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 
-fcall-saved-r11"
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_HAVE_IRQ_WORK=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-amd64"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
# CONFIG_KERNEL_GZIP is not set
CONFIG_KERNEL_BZIP2=y
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
CONFIG_DEFAULT_HOSTNAME="blaulicht"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_FHANDLE=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_GENERIC_HARDIRQS=y

#
# IRQ subsystem
#
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TREE_PREEMPT_RCU=y
CONFIG_PREEMPT_RCU=y
# 

[Intel-gfx] [PATCH] drm/i915: Sanity check incoming ioctl data for a NULL pointer

2013-03-16 Thread Chris Wilson
On Fri, Mar 15, 2013 at 04:49:42PM -0700, Ben Widawsky wrote:
> On Fri, Mar 15, 2013 at 10:06:19PM +, Chris Wilson wrote:
> > On Fri, Mar 15, 2013 at 09:36:07AM -0700, Ben Widawsky wrote:
> > > On Fri, Mar 15, 2013 at 08:24:03AM +, Chris Wilson wrote:
> > > > That's what I thought too. Looking at the stack trace, the empirical
> > > > evidence is that we need the check.
> > > > -Chris
> > > 
> > > I think we need to investigate the issue more then, or put a BUG_ON() in
> > > the drm code and run it through trinity. We have other places where arg
> > > can't/shouldn't be NULL and we don't check.
> > 
> > Actually we are both wrong. drm_ioctl() does not validate that the
> > user struct matches the expected size, just ensures that if that user
> > cmd specifies that the arg is to be used that it only up to the known
> > size is copied.
> > 
> > A hostile userspace can bludgen a NULL pointer through drm_ioctl() into
> > the driver->ioctl->func().
> 
> > > > +   if (args == NULL)
> > > > +   return -EINVAL;
> > > > +
> 
> I must be failing to see the obvious, but I'm still not getting how args
> can ever be NULL. kdata which is passed to us as "data" and cast to
> "args' is either always some stack variable, or some kmalloc'd memory. I
> see how the arguments themselves can be crap which is really only when
> user size != drv_size.
> 
> So tell me, which case can result in a NULL arg?
> 1. user size == drv_size // better not be this one
> 2. user size < driver size
> 3. user size > driver size
> 
> It seems to me we still must [simply] be missing something in our
> parameter validation.

If *userspace* doesn't request either IOC_IN | IOC_OUT in their ioctl
command (which are seperate from the ioctl number), then kdata is set to
NULL.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


[Bug 20211] Runing Kubrick game maximized freezes X and causes kernel panic

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=20211

Andreas Boll  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/3e55f9ae/attachment-0001.html>


[Bug 60802] Corruption with DMA ring on cayman

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=60802

--- Comment #64 from Alexandre Demers  ---
(In reply to comment #63)
> Created attachment 76592 [details] [review]
> take 5
> 
> After further investigation this seems to be an alignment issue with large
> block sizes on the DMA engine on cayman.  For now just use the blitter for
> large block sizes.

It does the trick for now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/797ec253/attachment.html>


[Bug 20211] Runing Kubrick game maximized freezes X and causes kernel panic

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=20211

--- Comment #4 from chemtech  ---
Then please close the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/13cae010/attachment.html>


[Bug 6192] System hard locks when attempting to run HQ Dragothic (3D Mark 2001SE) demo in Wine

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=6192

--- Comment #3 from chemtech  ---
Then please close the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/7ae6d7ed/attachment.html>


[Bug 20211] Runing Kubrick game maximized freezes X and causes kernel panic

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=20211

--- Comment #3 from Jure Repinc  ---
I think thins bug can be closed. I haven't got this freeze for quite some time
now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20130316/77e4d7bb/attachment.html>


[Bug 7111] racer: [drm:drm_lock_take] *ERROR* 3 holds heavyweight lock

2013-03-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=7111

Andreas Boll  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 20211] Runing Kubrick game maximized freezes X and causes kernel panic

2013-03-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=20211

Andreas Boll andreas.boll@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [Intel-gfx] [PATCH] drm/i915: Sanity check incoming ioctl data for a NULL pointer

2013-03-16 Thread Chris Wilson
On Fri, Mar 15, 2013 at 04:49:42PM -0700, Ben Widawsky wrote:
 On Fri, Mar 15, 2013 at 10:06:19PM +, Chris Wilson wrote:
  On Fri, Mar 15, 2013 at 09:36:07AM -0700, Ben Widawsky wrote:
   On Fri, Mar 15, 2013 at 08:24:03AM +, Chris Wilson wrote:
That's what I thought too. Looking at the stack trace, the empirical
evidence is that we need the check.
-Chris
   
   I think we need to investigate the issue more then, or put a BUG_ON() in
   the drm code and run it through trinity. We have other places where arg
   can't/shouldn't be NULL and we don't check.
  
  Actually we are both wrong. drm_ioctl() does not validate that the
  user struct matches the expected size, just ensures that if that user
  cmd specifies that the arg is to be used that it only up to the known
  size is copied.
  
  A hostile userspace can bludgen a NULL pointer through drm_ioctl() into
  the driver-ioctl-func().
 
+   if (args == NULL)
+   return -EINVAL;
+
 
 I must be failing to see the obvious, but I'm still not getting how args
 can ever be NULL. kdata which is passed to us as data and cast to
 args' is either always some stack variable, or some kmalloc'd memory. I
 see how the arguments themselves can be crap which is really only when
 user size != drv_size.
 
 So tell me, which case can result in a NULL arg?
 1. user size == drv_size // better not be this one
 2. user size  driver size
 3. user size  driver size
 
 It seems to me we still must [simply] be missing something in our
 parameter validation.

If *userspace* doesn't request either IOC_IN | IOC_OUT in their ioctl
command (which are seperate from the ioctl number), then kdata is set to
NULL.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


compat-drivers based on v3.8.3

2013-03-16 Thread Luis R. Rodriguez
Greg has blessed Linux v3.8.3 so we get to backport drivers for this
release for usage on older kernels through compat-drivers, you can
either visit the v3.8.3 release page [0] or the temporary release page
[1]. This release has been test compiled against vanilla Linux kernel
releases v2.6.24 - v3.7. Below I provide the ChangeLog for this
release for the changes made to compat and compat-drivers, for the
full ChangeLog that includes Linux kernel changes you can refer to the
upstream full ChangeLog [2].

We have 5 type of releases based on v3.8.3, there is a vanilla release
and then 4 releases which incorporate additional patches from sources
on their way to get upstream to the Linux kernel. The additional
releases are designed to ensure we prioritize Linux upstream
development but at the same time allow OEMs / users / mothers to get
releases with additional patches vendors deem important for
functionality, we simply categorize where those patches are on their
way upstream to the Linux kernel. For more information on this see the
additional-patches documentation on the backports wiki [3].

Thanks to everyone who has contributed to this release!

[0] https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.8.3/
[1] http://drvbp1.linux-foundation.org/~mcgrof/rel-html/compat-drivers/
[2] 
https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.8.3/ChangeLog-3.8.3-2
[3] 
https://backports.wiki.kernel.org/index.php/Documentation/compat-drivers/additional-patches


ChangeLog for compat-drivers-v3.8.3-2 based on linux-3.8.3


This is the ChangeLog for the Linux kernel project compat-drivers.
It provides a backport of a few Linux kernel subsystems down to
older kernels:

  * 802.11
  * Bluetooth
  * Ethernet
  * DRM

For more details refer to the home pages:

https://backports.wiki.kernel.org

The compat-drivers project consists of code from three projects:

  * The Linux kernel: linux-stable.git
  * Compat-wirelesS: compat-drivers.git
  * Compat: compat.git

The compat-drivers stable releases incorporates code from from
each of these git trees for the respective upstream Linux kernel
stable release. A branch called linux-3.x.y exists for each
stable release. Below we provide the ChangeLog of changes from
the previous branched release to the new branched release.

Release: linux-3.8


Updates from the compat.git project:


git shortlog linux-3.7.y..linux-3.8.y

Felix Fietkau (1):
  compat: fix compile errors when assembly is built into modules

Hauke Mehrtens (21):
  compat: update list of kernel headers
  compat: add USB_SUBCLASS_VENDOR_SPEC
  compat: make compat load without CONFIG_CPU_FREQ
  compat: add eth_zero_addr()
  compat: add kref_get_unless_zero()
  compat: move config_enabled to compat-3.4.h
  compat: fix compiler warning in nla_get_s64()
  compat: export platform_device_register_data()
  compat: fix warning of missing struct netdev_queue
  compat: add missing return value to netif_set_real_num_tx_queues
  compat: add simple_write_to_buffer
  compat: add ETHTOOL_FWVERS_LEN
  compat: fix warning in usb_autopm_get_interface_no_{resume,suspend}
  compat: do not access default_ethtool_ops
  compat: ckmake: make return code 2 is error
  compat: ckmake: remove lots of warning spam for the log
  compat: ckmake: do not start all build at the same time
  compat: add efi_enabled()
  compat: netdev_set_default_ethtool_ops() is not in kernel 3.7.5
  compat: check if efi_enabled() was already backported
  compat: deactivate netdev_set_default_ethtool_ops() for some 3.7 kernels

Johannes Berg (1):
  compat: backport unsigned netlink attribute accessors

Luis R. Rodriguez (42):
  compat: fix libc dependency on bin/get-compat-kernels
  compat: fix typo in bin/get-compat-kernels
  compat: run ckmake with num cpu threads
  compat: fix get-compat-kernels for libc issue again
  compat: change count to 4 for glibc kernel fix
  compat: add gpio header for kernels older than 2.6.24
  compat: backport ethtool_rxfh_indir_default()
  compat: backport ethtool to mii advertisment conversion helpers
  compat: backport BQL helpers
  compat: define NETIF_F_RXCSUM
  compat: fix addition of NETIF_F_RXCSUM
  compat: backport PCI MSI-X entry definitions
  compat: backport alloc_etherdev_mqs()
  compat: backport definition of PCI_MSIX_ENTRY_CTRL_MASKBIT
  compat: backport PTR_RET()
  compat: backport netif_set_real_num_tx_queues()
  compat: backport netif_set_real_num_rx_queues()
  compat: rename MDIO exported symbols
  compat: backplane mode negotiation ethtool definitions
  compat: backport napi_gro_receive()
  compat: generate CONFIG_COMPAT_KERNEL_3_8
  compat: backport 

drm/i915: new warning (regression) in 3.7.10 and 3.8.3

2013-03-16 Thread Richard Cochran

I have an Acer Aspire One netbook, and on it I get the following
warning when closing and opening the lid. I think this warning first
appeared in 3.7.

Does this need fixing? If so, who can do it?

Thanks,
Richard

** close lid

Mar 16 11:32:03 netboy kernel: [  287.429404] [drm:i9xx_crtc_mode_set] *ERROR* 
Couldn't find PLL settings for mode!
Mar 16 11:32:03 netboy kernel: [  287.429440] [ cut here 
]
Mar 16 11:32:03 netboy kernel: [  287.429526] WARNING: at 
/home/richard/git/linux/drivers/gpu/drm/i915/intel_display.c:7877 
intel_modeset_check_state+0x2f8/0x452 [i915]()
Mar 16 11:32:03 netboy kernel: [  287.429537] Hardware name: AOD257
Mar 16 11:32:03 netboy kernel: [  287.429548] encoder's hw state doesn't match 
sw tracking (expected 1, found 0)
Mar 16 11:32:03 netboy kernel: [  287.429556] Modules linked in: mmc_block 
bluetooth crc16 cpufreq_stats cpufreq_userspace cpufreq_powersave 
cpufreq_conservative uinput fuse loop snd_hda_codec_realtek joydev arc4 iwldvm 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm 
mac80211 i915 snd_timer snd iwlwifi cfg80211 tpm_tis psmouse serio_raw 
drm_kms_helper tpm i2c_i801 soundcore evdev hid_generic drm i2c_algo_bit video 
pcspkr tpm_bios i2c_core ehci_pci snd_page_alloc acpi_cpufreq mperf battery ac 
rfkill wmi processor button ext3 jbd mbcache sd_mod crc_t10dif usbhid hid 
rtsx_pci_sdmmc mmc_core ahci libahci libata scsi_mod uhci_hcd ehci_hcd usbcore 
usb_common thermal thermal_sys rtsx_pci mfd_core r8169 mii
Mar 16 11:32:03 netboy kernel: [  287.429771] Pid: 34, comm: kworker/0:1 Not 
tainted 3.8.3 #74
Mar 16 11:32:03 netboy kernel: [  287.429781] Call Trace:
Mar 16 11:32:03 netboy kernel: [  287.429808]  [c102623a] ? 
warn_slowpath_common+0x6a/0x7b
Mar 16 11:32:03 netboy kernel: [  287.429882]  [f859e387] ? 
intel_modeset_check_state+0x2f8/0x452 [i915]
Mar 16 11:32:03 netboy kernel: [  287.429904]  [c10262b1] ? 
warn_slowpath_fmt+0x28/0x2c
Mar 16 11:32:03 netboy kernel: [  287.429975]  [f859e387] ? 
intel_modeset_check_state+0x2f8/0x452 [i915]
Mar 16 11:32:03 netboy kernel: [  287.430017]  [f85a429c] ? 
intel_set_mode+0x61a/0x6aa [i915]
Mar 16 11:32:03 netboy kernel: [  287.430162]  [f85a42d6] ? 
intel_set_mode+0x654/0x6aa [i915]
Mar 16 11:32:03 netboy kernel: [  287.430290]  [f85a85ea] ? 
intel_modeset_setup_hw_state+0x5e0/0x70a [i915]
Mar 16 11:32:03 netboy kernel: [  287.430386]  [f85a9bd4] ? 
intel_lid_notify+0x7a/0x8a [i915]
Mar 16 11:32:03 netboy kernel: [  287.430409]  [c12e2baf] ? 
notifier_call_chain+0x23/0x46
Mar 16 11:32:03 netboy kernel: [  287.430449]  [c1041912] ? 
__blocking_notifier_call_chain+0x39/0x4c
Mar 16 11:32:03 netboy kernel: [  287.430470]  [c104192e] ? 
blocking_notifier_call_chain+0x9/0xc
Mar 16 11:32:03 netboy kernel: [  287.430500]  [f82300b7] ? 
acpi_lid_send_state+0x7d/0xa0 [button]
Mar 16 11:32:03 netboy kernel: [  287.430532]  [f823011d] ? 
acpi_button_notify+0x2b/0x95 [button]
Mar 16 11:32:03 netboy kernel: [  287.430557]  [c11aaa17] ? 
acpi_device_notify+0xf/0x11
Mar 16 11:32:03 netboy kernel: [  287.430578]  [c11b5ef1] ? 
acpi_ev_notify_dispatch+0x2b/0x42
Mar 16 11:32:03 netboy kernel: [  287.430597]  [c11a8002] ? 
acpi_os_execute_deferred+0x18/0x21
Mar 16 11:32:03 netboy kernel: [  287.430617]  [c103a099] ? 
process_one_work+0x1b1/0x27e
Mar 16 11:32:03 netboy kernel: [  287.430637]  [c103a27b] ? 
worker_thread+0x115/0x203
Mar 16 11:32:03 netboy kernel: [  287.430656]  [c103a166] ? 
process_one_work+0x27e/0x27e
Mar 16 11:32:03 netboy kernel: [  287.430672]  [c103d2cb] ? kthread+0x8d/0x92
Mar 16 11:32:03 netboy kernel: [  287.430691]  [c12e51f7] ? 
ret_from_kernel_thread+0x1b/0x28
Mar 16 11:32:03 netboy kernel: [  287.430707]  [c103d23e] ? 
kthread_freezable_should_stop+0x4b/0x4b
Mar 16 11:32:03 netboy kernel: [  287.430720] ---[ end trace 4a7da2dcc2431943 
]---

** open lid

Mar 16 11:32:03 netboy kernel: [  287.430746] [ cut here 
]
Mar 16 11:32:03 netboy kernel: [  287.430849] WARNING: at 
/home/richard/git/linux/drivers/gpu/drm/i915/intel_display.c:7911 
intel_modeset_check_state+0x3f3/0x452 [i915]()
Mar 16 11:32:03 netboy kernel: [  287.430889] Hardware name: AOD257
Mar 16 11:32:03 netboy kernel: [  287.430928] crtc's computed active state 
doesn't match tracked active state (expected 1, found 0)
Mar 16 11:32:03 netboy kernel: [  287.430964] Modules linked in: mmc_block 
bluetooth crc16 cpufreq_stats cpufreq_userspace cpufreq_powersave 
cpufreq_conservative uinput fuse loop snd_hda_codec_realtek joydev arc4 iwldvm 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm 
mac80211 i915 snd_timer snd iwlwifi cfg80211 tpm_tis psmouse serio_raw 
drm_kms_helper tpm i2c_i801 soundcore evdev hid_generic drm i2c_algo_bit video 
pcspkr tpm_bios i2c_core ehci_pci snd_page_alloc acpi_cpufreq mperf battery ac 
rfkill wmi processor button ext3 jbd mbcache sd_mod crc_t10dif usbhid hid 
rtsx_pci_sdmmc mmc_core ahci libahci libata scsi_mod 

[Bug 6090] Texture bitmap not displaying correctly in games similar to tuxracer for r200 based cards.

2013-03-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6090

--- Comment #3 from Brian Beardall br...@rapsure.net ---
I haven't tested recently. I still have the hardware and will test against the
latest mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel