~ubuntu-branches/ubuntu/karmic/linux-fsl-imx51/karmic

« back to all changes in this revision

Viewing changes to drivers/gpu/drm/i915/intel_display.c

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Andy Whitcroft, Upstream Kernel Changes, Ubuntu: 2.6.31-14.46, Ubuntu: 2.6.31-13.45, Ubuntu: 2.6.31-13.44
  • Date: 2009-10-13 15:59:33 UTC
  • Revision ID: james.westby@ubuntu.com-20091013155933-hxzquigs9nqajd9x
Tags: 2.6.31-105.14
[ Andy Whitcroft ]

* rebase to Ubuntu-2.6.31-14.46
* [Config] update configs since rebase to Ubuntu-2.6.31-14.46
* lirc update dropped module lirc_mceusb2

[ Upstream Kernel Changes ]

* mxc spi: fix spi driver for 2.6.31
  - LP: #427289, #446140

[ Ubuntu: 2.6.31-14.46 ]

* reinstate armel.mk with no flavours
  - LP: #449637
* [Upstream] elevator: fix fastfail checks to allow merge of readahead
  requests
  - LP: #444915
* [Upstream] block: silently error unsupported empty barriers too
  - LP: #420423
* SAUCE: AppArmor: Fix mediation of "deleted" paths
  - LP: #415632
* [Config] CONFIG_X86_MCE
  https://lists.ubuntu.com/archives/kernel-team/2009-October/007584.html
* Revert "appletalk: Fix skb leak when ipddp interface is not loaded,
  CVE-2009-2903" - Use patch from 2.6.31.4 which is slightly different.
* x86: fix csum_ipv6_magic asm memory clobber
* tty: Avoid dropping ldisc_mutex over hangup tty re-initialization
* x86: Don't leak 64-bit kernel register values to 32-bit processes
* tracing: correct module boundaries for ftrace_release
* ftrace: check for failure for all conversions
* futex: fix requeue_pi key imbalance
* futex: Move exit_pi_state() call to release_mm()
* futex: Nullify robust lists after cleanup
* futex: Fix locking imbalance
* NOHZ: update idle state also when NOHZ is inactive
* ima: ecryptfs fix imbalance message
* libata: fix incorrect link online check during probe
* sound: via82xx: move DXS volume controls to PCM interface
* ASoC: WM8350 capture PGA mutes are inverted
* KVM: Prevent overflow in KVM_GET_SUPPORTED_CPUID
* KVM: VMX: flush TLB with INVEPT on cpu migration
* KVM: fix LAPIC timer period overflow
* KVM: SVM: Fix tsc offset adjustment when running nested
* KVM: SVM: Handle tsc in svm_get_msr/svm_set_msr correctly
* net: Fix wrong sizeof
* mm: add_to_swap_cache() must not sleep
* sis5513: fix PIO setup for ATAPI devices
* PIT fixes to unbreak suspend/resume (bug #14222)
* IMA: open new file for read
* ACPI: Clarify resource conflict message
* ACPI: fix Compaq Evo N800c (Pentium 4m) boot hang regression
* net: restore tx timestamping for accelerated vlans
* net: unix: fix sending fds in multiple buffers
* tun: Return -EINVAL if neither IFF_TUN nor IFF_TAP is set.
* tcp: fix CONFIG_TCP_MD5SIG + CONFIG_PREEMPT timer BUG()
* net: Fix sock_wfree() race
* smsc95xx: fix transmission where ZLP is expected
* sky2: Set SKY2_HW_RAM_BUFFER in sky2_init
* appletalk: Fix skb leak when ipddp interface is not loaded
* ax25: Fix possible oops in ax25_make_new
* ax25: Fix SIOCAX25GETINFO ioctl
* sit: fix off-by-one in ipip6_tunnel_get_prl
* Linux 2.6.31.4
* drm/i915: Fix FDI M/N setting according with correct color depth
  - LP: #416792

[ Ubuntu: 2.6.31-13.45 ]

* [Config] Add sd_mod to scsi-modules udeb for powerpc
* SAUCE: Update to LIRC 0.8.6
  - LP: #432678
* [Config] CONFIG_X86_PAT=y
  https://lists.ubuntu.com/archives/kernel-team/2009-October/007477.html
  https://lists.ubuntu.com/archives/kernel-team/2009-October/007534.html
* [Config] Add armel arch to linux-libc-dev arches.
  - LP: #449637
* e1000e: swap max hw supported frame size between 82574 and 82583
* drm/i915: Initialize HDMI outputs as HDMI connectors, not DVI.
  - LP: #392017
* ALSA: hda - Add quirks for some HP laptops
  - LP: #449742
* ALSA: hda - Add support for HP dv6
  - LP: #449742

[ Ubuntu: 2.6.31-13.44 ]

* sgi-gru: Fix kernel stack buffer overrun, CVE-2009-2584
* appletalk: Fix skb leak when ipddp interface is not loaded,
  CVE-2009-2903
  Note - This patch causes an ABI change in the symbol aarp_send_ddp
  which I'm ignoring.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1764
1764
#define LINK_N 0x80000
1765
1765
 
1766
1766
static void
1767
 
igdng_compute_m_n(int bytes_per_pixel, int nlanes,
 
1767
igdng_compute_m_n(int bits_per_pixel, int nlanes,
1768
1768
                int pixel_clock, int link_clock,
1769
1769
                struct fdi_m_n *m_n)
1770
1770
{
1774
1774
 
1775
1775
        temp = (u64) DATA_N * pixel_clock;
1776
1776
        temp = div_u64(temp, link_clock);
1777
 
        m_n->gmch_m = div_u64(temp * bytes_per_pixel, nlanes);
 
1777
        m_n->gmch_m = div_u64(temp * bits_per_pixel, nlanes);
 
1778
        m_n->gmch_m >>= 3; /* convert to bytes_per_pixel */
1778
1779
        m_n->gmch_n = DATA_N;
1779
1780
        fdi_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n);
1780
1781
 
2396
2397
 
2397
2398
        /* FDI link */
2398
2399
        if (IS_IGDNG(dev)) {
2399
 
                int lane, link_bw;
 
2400
                int lane, link_bw, bpp;
2400
2401
                /* eDP doesn't require FDI link, so just set DP M/N
2401
2402
                   according to current link config */
2402
2403
                if (is_edp) {
2415
2416
                        lane = 4;
2416
2417
                        link_bw = 270000;
2417
2418
                }
2418
 
                igdng_compute_m_n(3, lane, target_clock,
 
2419
 
 
2420
                /* determine panel color depth */
 
2421
                temp = I915_READ(pipeconf_reg);
 
2422
 
 
2423
                switch (temp & PIPE_BPC_MASK) {
 
2424
                case PIPE_8BPC:
 
2425
                        bpp = 24;
 
2426
                        break;
 
2427
                case PIPE_10BPC:
 
2428
                        bpp = 30;
 
2429
                        break;
 
2430
                case PIPE_6BPC:
 
2431
                        bpp = 18;
 
2432
                        break;
 
2433
                case PIPE_12BPC:
 
2434
                        bpp = 36;
 
2435
                        break;
 
2436
                default:
 
2437
                        DRM_ERROR("unknown pipe bpc value\n");
 
2438
                        bpp = 24;
 
2439
                }
 
2440
 
 
2441
                igdng_compute_m_n(bpp, lane, target_clock,
2419
2442
                                  link_bw, &m_n);
2420
2443
        }
2421
2444