linux/drivers/gpu/drm/nouveau
Emil Velikov 619d4f7e21 drm/nv50: improve nv50_pm_get_clock()
Many of the nv50 cards have their shader and/or memory pll
disabled at some stage.
This patch addresses those cases, so that the function
returns the correct frequency.

When the shader pll is disabled, the blob reports 2*core clock
Whereas for memory, the data stored in the vbios. This action
is incorrect as some vbioses store a clock value that is less
than the refference clock of the pll.

Thus we are reporting the reff_clk as it is the frequency the
pll actually operates

v2 - Convert NV_INFO() messages to NV_DEBUG()
Provide more information in the actuall message

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-05-16 10:49:41 +10:00
..
Kconfig drm/mxm: fix Kconfig options for when to build MXM WMI driver. 2011-05-09 14:37:10 +10:00
Makefile drm/nv50: rename nv84_mpeg to nv50_mpeg 2011-05-16 10:49:04 +10:00
nouveau_acpi.c mxm/wmi: add MXMX interface entry point. 2011-05-09 11:40:38 +10:00
nouveau_backlight.c nouveau: change the backlight parent device to the connector, not the PCI dev 2011-03-22 17:43:59 -07:00
nouveau_bios.c drm/nouveau: quirk for XFX GT-240X-YA 2011-04-05 11:07:21 +10:00
nouveau_bios.h drm/nouveau: make vbios parser runnable from an atomic context 2011-02-25 06:44:56 +10:00
nouveau_bo.c Merge remote branch 'intel/drm-intel-next' of ../drm-next into drm-core-next 2011-03-14 14:15:13 +10:00
nouveau_calc.c
nouveau_channel.c drm/nouveau: remove remnants of nouveau_pgraph_engine 2011-05-16 10:48:45 +10:00
nouveau_connector.c nouveau: change the backlight parent device to the connector, not the PCI dev 2011-03-22 17:43:59 -07:00
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c
nouveau_display.c drm/nouveau: remove remnants of nouveau_pgraph_engine 2011-05-16 10:48:45 +10:00
nouveau_dma.c drm/nouveau: fix allocation of notifier object 2011-04-20 08:51:34 +10:00
nouveau_dma.h drm/nouveau: remove no_vm/mappable flags from nouveau_bo 2011-02-25 06:45:34 +10:00
nouveau_dp.c drm/nouveau: silence some compiler warnings 2011-02-25 06:44:22 +10:00
nouveau_drv.c drm/nouveau: remove remnants of nouveau_pgraph_engine 2011-05-16 10:48:45 +10:00
nouveau_drv.h drm/nv50: rename nv84_mpeg to nv50_mpeg 2011-05-16 10:49:04 +10:00
nouveau_encoder.h
nouveau_fb.h drm/nv50-nvc0: precalculate some fb state when creating them 2011-02-25 06:45:08 +10:00
nouveau_fbcon.c drm/nouveau: fix notifier memory corruption bug 2011-04-20 08:51:31 +10:00
nouveau_fbcon.h drm/nvc0: implement fbcon acceleration 2010-12-21 17:18:39 +10:00
nouveau_fence.c drm/nouveau: fix __nouveau_fence_wait performance 2011-03-14 16:35:16 +10:00
nouveau_gem.c drm: fix "persistant" typo 2011-04-05 10:22:23 +10:00
nouveau_grctx.h drm/nouveau: Fix missing whitespace checkpatch.pl errors. 2011-05-16 10:47:25 +10:00
nouveau_hw.c drm/nouveau: introduce a util function to wait on reg != val 2010-12-08 03:00:36 +01:00
nouveau_hw.h
nouveau_i2c.c
nouveau_i2c.h
nouveau_ioc32.c
nouveau_irq.c
nouveau_mem.c drm/nouveau: move set_tile_region to nouveau_exec_engine 2011-05-16 10:48:33 +10:00
nouveau_mm.c drm/nouveau: fix regression causing ttm to not be able to evict vram 2011-03-08 07:03:01 +10:00
nouveau_mm.h drm/nouveau: rename nouveau_vram to nouveau_mem 2011-02-25 06:45:55 +10:00
nouveau_notifier.c drm/nouveau: fix pinning of notifier block 2011-04-20 08:51:23 +10:00
nouveau_object.c drm/nouveau: remove remnants of nouveau_pgraph_engine 2011-05-16 10:48:45 +10:00
nouveau_perf.c nv30: Fix parsing of perf table 2011-04-05 11:06:14 +10:00
nouveau_pm.c drm/nouveau/pm: fix compilation failure when CONFIG_POWER_SUPPLY is not set 2011-05-16 10:49:34 +10:00
nouveau_pm.h
nouveau_ramht.c drm/nv50-nvc0: fix ramht entries for multiple evo channels 2011-02-25 06:44:48 +10:00
nouveau_ramht.h
nouveau_reg.h drm/nouveau: Fix missing whitespace checkpatch.pl errors. 2011-05-16 10:47:25 +10:00
nouveau_sgdma.c drm/nouveau: populate ttm_alloced with false, when it's not 2011-04-20 08:50:40 +10:00
nouveau_state.c drm/nv50: support PMPEG on original nv50 2011-05-16 10:49:08 +10:00
nouveau_temp.c drm/nouveau: use I2C_MODULE_PREFIX kernel define 2011-02-25 06:44:33 +10:00
nouveau_ttm.c
nouveau_util.c drm/nouveau: add nouveau_enum_find() util function 2011-03-14 16:31:50 +10:00
nouveau_util.h drm/nouveau: add nouveau_enum_find() util function 2011-03-14 16:31:50 +10:00
nouveau_vm.c drm/nvc0: remove vm hack forcing large/small pages to not share a PDE 2011-03-14 16:31:38 +10:00
nouveau_vm.h drm/nv50/gr: move to exec engine interfaces 2011-05-16 10:48:06 +10:00
nouveau_volt.c drm/nouveau: use static vidshift of 2 on volt 0x30 tables 2011-05-16 10:47:47 +10:00
nv04_crtc.c drm/nouveau: Fix brace placement checkpatch.pl errors. 2011-05-16 10:47:19 +10:00
nv04_cursor.c
nv04_dac.c drm/nouveau: introduce a util function to wait on reg != val 2010-12-08 03:00:36 +01:00
nv04_dfp.c drm/nouveau: fix oops on unload with disabled LVDS panel 2011-04-05 11:07:05 +10:00
nv04_display.c
nv04_fb.c
nv04_fbcon.c drm/nouveau: implicitly insert non-DMA objects into RAMHT 2010-12-08 03:00:35 +01:00
nv04_fifo.c drm/nv50: check for vm traps on every gr irq 2011-03-14 16:32:30 +10:00
nv04_graph.c drm/nv04/gr: move to exec engine interfaces 2011-05-16 10:48:27 +10:00
nv04_instmem.c
nv04_mc.c
nv04_pm.c
nv04_timer.c
nv04_tv.c
nv10_fb.c
nv10_fifo.c drm/nouveau: make fifo.create_context() responsible for mapping control regs 2010-12-08 03:00:34 +01:00
nv10_gpio.c
nv10_graph.c drm/nouveau: move set_tile_region to nouveau_exec_engine 2011-05-16 10:48:33 +10:00
nv17_tv.c drm: Mark constant arrays of drm_display_mode const 2011-02-23 11:13:11 +10:00
nv17_tv.h drm: Mark constant arrays of drm_display_mode const 2011-02-23 11:13:11 +10:00
nv17_tv_modes.c drm: Mark constant arrays of drm_display_mode const 2011-02-23 11:13:11 +10:00
nv20_graph.c drm/nouveau: remove remnants of nouveau_pgraph_engine 2011-05-16 10:48:45 +10:00
nv30_fb.c
nv40_fb.c drm/nv40: implement support for on-chip PCIEGART 2011-02-25 06:44:04 +10:00
nv40_fifo.c drm/nv40/vpe: add support for PMPEG 2011-05-16 10:48:56 +10:00
nv40_graph.c drm/nouveau: move set_tile_region to nouveau_exec_engine 2011-05-16 10:48:33 +10:00
nv40_grctx.c drm/nv40: make detection of 0x4097-ful chipsets available everywhere 2011-01-17 11:28:31 +10:00
nv40_mc.c drm/nv40: initialise 0x17xx on all chipsets that have it 2011-01-17 11:28:43 +10:00
nv40_mpeg.c drm/nv40/vpe: add support for PMPEG 2011-05-16 10:48:56 +10:00
nv50_calc.c
nv50_crtc.c drm/nouveau: Fix brace placement checkpatch.pl errors. 2011-05-16 10:47:19 +10:00
nv50_cursor.c drm/nv50-nvc0: rename disp->evo to disp->master 2011-02-25 06:44:42 +10:00
nv50_dac.c drm/nv50-nvc0: rename disp->evo to disp->master 2011-02-25 06:44:42 +10:00
nv50_display.c drm/nv50-nvc0: initialise display sync channels 2011-02-25 06:45:11 +10:00
nv50_display.h drm/nv50-nvc0: initialise display sync channels 2011-02-25 06:45:11 +10:00
nv50_evo.c drm/nv50-nvc0: work around an evo channel hang that some people see 2011-04-05 11:07:16 +10:00
nv50_evo.h drm/nv50-nvc0: initialise display sync channels 2011-02-25 06:45:11 +10:00
nv50_fb.c drm/nv50: check for vm traps on every gr irq 2011-03-14 16:32:30 +10:00
nv50_fbcon.c drm/nv50: add missing license header to nv50_fbcon.c 2010-12-21 06:14:37 +10:00
nv50_fifo.c drm/nv50: drop explicit yields in favour of smaller PFIFO timeslice 2011-02-25 06:44:30 +10:00
nv50_gpio.c drm/nouveau: use system_wq instead of dev_priv->wq 2011-02-25 06:44:36 +10:00
nv50_graph.c drm/nva3: implement support for copy engine 2011-05-16 10:48:48 +10:00
nv50_grctx.c drm/nouveau: Fix brace placement checkpatch.pl errors. 2011-05-16 10:47:19 +10:00
nv50_instmem.c drm/nouveau: split ramin_lock into two locks, one hardirq safe 2011-04-20 08:50:14 +10:00
nv50_mc.c
nv50_mpeg.c drm/nv50: support PMPEG on original nv50 2011-05-16 10:49:08 +10:00
nv50_pm.c drm/nv50: improve nv50_pm_get_clock() 2011-05-16 10:49:41 +10:00
nv50_sor.c drm/nv50-nvc0: rename disp->evo to disp->master 2011-02-25 06:44:42 +10:00
nv50_vm.c drm/nv50/gr: move to exec engine interfaces 2011-05-16 10:48:06 +10:00
nv50_vram.c drm/nv50: support for compression 2011-02-25 06:46:07 +10:00
nv84_crypt.c drm/nouveau: working towards a common way to represent engines 2011-05-16 10:48:01 +10:00
nva3_copy.c drm/nva3: implement support for copy engine 2011-05-16 10:48:48 +10:00
nva3_copy.fuc drm/nva3: implement support for copy engine 2011-05-16 10:48:48 +10:00
nva3_copy.fuc.h drm/nva3: implement support for copy engine 2011-05-16 10:48:48 +10:00
nva3_pm.c
nvc0_copy.c drm/nvc0: implement support for copy engines 2011-05-16 10:48:53 +10:00
nvc0_copy.fuc.h drm/nvc0: implement support for copy engines 2011-05-16 10:48:53 +10:00
nvc0_fb.c
nvc0_fbcon.c drm/nvc0: nuke left-over debug messages 2010-12-29 10:51:34 +10:00
nvc0_fifo.c drm/nvc0/fifo: stick user area into a gpuobj rather than a bo 2011-05-16 10:49:30 +10:00
nvc0_graph.c drm/nvc0/gr: no need to store context in graph_fini() 2011-05-16 10:49:26 +10:00
nvc0_graph.h drm/nvc0/gr: better handling of fuc firmware 2011-05-16 10:49:13 +10:00
nvc0_grctx.c drm/nvc0/gr: move to exec engine interfaces 2011-05-16 10:48:09 +10:00
nvc0_instmem.c drm/nouveau: don't munge in drm_mm internals 2011-02-23 10:18:20 +10:00
nvc0_vm.c drm/nouveau: split ramin_lock into two locks, one hardirq safe 2011-04-20 08:50:14 +10:00
nvc0_vram.c drm/nv50: support for compression 2011-02-25 06:46:07 +10:00
nvreg.h