drm/i915: s/valleyview/baytrail
Subsystems (2)
PATCH 1/1 drm/i915: s/valleyview/baytrail
Bay Trail is the marketing name for the new Silvermont based SOCs we've been calling Valleyview. All recent Intel disclosed documents use the term "Bay Trail." AFAICT, only leaked docs (and our code) use the term Valleyview. I've also verified with internal sources that references to, "Valleyview" should be dropped.
Why?
We've always strived to make the already confusing generation information as clear as possible in our driver. With the introduction of the below, we made two names referring to the exact same silicon.
commit 93c34e70ebf464a9ee142d93b681c5df094ec654
Author: Kenneth Graunke <[email protected]> Date: Mon Apr 22 00:53:50 2013 -0700
drm/i915: Fix page table entries for Bay Trail.
While it's tempting to simply do the renames in Ken's patch, it's simply not correct. As an added bonus, Mesa also uses the byt/baytrail names.
Yes. I know this is painful. Doing it now is the least painful way to do this right (short of going back in time.)
disclaimer: only compile tested.
disclaimer2: I didn't fix pre-existing checkpatch issues.
--- drivers/gpu/drm/i915/i915_debugfs.c | 50 +++---- drivers/gpu/drm/i915/i915_dma.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 26 ++-- drivers/gpu/drm/i915/i915_drv.h | 28 ++-- drivers/gpu/drm/i915/i915_gem.c | 10 +- drivers/gpu/drm/i915/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +- drivers/gpu/drm/i915/i915_gem_tiling.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 96 ++++++------ drivers/gpu/drm/i915/i915_reg.h | 154 +++++++++---------- drivers/gpu/drm/i915/i915_sysfs.c | 38 ++--- drivers/gpu/drm/i915/intel_crt.c | 14 +- drivers/gpu/drm/i915/intel_display.c | 96 ++++++------ drivers/gpu/drm/i915/intel_dp.c | 90 +++++------ drivers/gpu/drm/i915/intel_drv.h | 6 +- drivers/gpu/drm/i915/intel_hdmi.c | 42 +++--- drivers/gpu/drm/i915/intel_i2c.c | 4 +- drivers/gpu/drm/i915/intel_pm.c | 232 ++++++++++++++--------------- drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +- drivers/gpu/drm/i915/intel_sprite.c | 24 +-- 21 files changed, 462 insertions(+), 462 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +25 -25
@@ -429,22 +429,22 @@ static int i915_interrupt_info(struct seq_file *m, void *data)if (ret)return ret; -if (IS_VALLEYVIEW (dev)) { +if (IS_BAYTRAIL (dev)) {seq_printf (m,"Display IER:\t%08x\n" , -I915_READ (VLV_IER )); +I915_READ (BYT_IER ));seq_printf (m,"Display IIR:\t%08x\n" , -I915_READ (VLV_IIR )); +I915_READ (BYT_IIR ));seq_printf (m,"Display IIR_RW:\t%08x\n" , -I915_READ (VLV_IIR_RW )); +I915_READ (BYT_IIR_RW ));seq_printf (m,"Display IMR:\t%08x\n" , -I915_READ (VLV_IMR )); +I915_READ (BYT_IMR ));for_each_pipe (pipe)seq_printf (m,"Pipe %c stat:\t%08x\n" ,pipe_name (pipe),I915_READ (PIPESTAT (pipe)));seq_printf (m,"Master IER:\t%08x\n" , -I915_READ (VLV_MASTER_IER )); +I915_READ (BYT_MASTER_IER ));seq_printf (m,"Render IER:\t%08x\n" ,I915_READ (GTIER ));
@@ -463,7 +463,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data)seq_printf (m,"Port hotplug:\t%08x\n" ,I915_READ (PORT_HOTPLUG_EN ));seq_printf (m,"DPFLIPSTAT:\t%08x\n" , -I915_READ (VLV_DPFLIPSTAT )); +I915_READ (BYT_DPFLIPSTAT ));seq_printf (m,"DPINVGTT:\t%08x\n" ,I915_READ (DPINVGTT ));
@@ -941,7 +941,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) MEMSTAT_VID_SHIFT);seq_printf (m,"Current P-state: %d\n" , (rgvstat &MEMSTAT_PSTATE_MASK ) >>MEMSTAT_PSTATE_SHIFT ); - }else if ((IS_GEN6 (dev) ||IS_GEN7 (dev)) && !IS_VALLEYVIEW (dev)) { + }else if ((IS_GEN6 (dev) ||IS_GEN7 (dev)) && !IS_BAYTRAIL (dev)) {u32 gt_perf_status =I915_READ (GEN6_GT_PERF_STATUS );u32 rp_state_limits =I915_READ (GEN6_RP_STATE_LIMITS );u32 rp_state_cap =I915_READ (GEN6_RP_STATE_CAP );
@@ -1009,25 +1009,25 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused)seq_printf (m,"Max overclocked frequency: %dMHz\n" , dev_priv->rps.hw_max *GT_FREQUENCY_MULTIPLIER ); - }else if (IS_VALLEYVIEW (dev)) { + }else if (IS_BAYTRAIL (dev)) {u32 freq_sts, val;mutex_lock (&dev_priv->rps.hw_lock); -valleyview_punit_read (dev_priv,PUNIT_REG_GPU_FREQ_STS , +baytrail_punit_read (dev_priv,PUNIT_REG_GPU_FREQ_STS , &freq_sts);seq_printf (m,"PUNIT_REG_GPU_FREQ_STS: 0x%08x\n" , freq_sts);seq_printf (m,"DDR freq: %d MHz\n" , dev_priv->mem_freq); -valleyview_punit_read (dev_priv,PUNIT_FUSE_BUS1 , &val); +baytrail_punit_read (dev_priv,PUNIT_FUSE_BUS1 , &val);seq_printf (m,"max GPU freq: %d MHz\n" , -vlv_gpu_freq (dev_priv->mem_freq, val)); +byt_gpu_freq (dev_priv->mem_freq, val)); -valleyview_punit_read (dev_priv,PUNIT_REG_GPU_LFM , &val); +baytrail_punit_read (dev_priv,PUNIT_REG_GPU_LFM , &val);seq_printf (m,"min GPU freq: %d MHz\n" , -vlv_gpu_freq (dev_priv->mem_freq, val)); +byt_gpu_freq (dev_priv->mem_freq, val));seq_printf (m,"current GPU freq: %d MHz\n" , -vlv_gpu_freq (dev_priv->mem_freq, +byt_gpu_freq (dev_priv->mem_freq, (freq_sts >>8 ) &0xff ));mutex_unlock (&dev_priv->rps.hw_lock); }else {
@@ -1651,7 +1651,7 @@ static int i915_dpio_info(struct seq_file *m, void *data)int ret; -if (!IS_VALLEYVIEW (dev)) { +if (!IS_BAYTRAIL (dev)) {seq_printf (m,"unsupported\n" );return 0 ; }
@@ -1833,8 +1833,8 @@ i915_max_freq_get(void *data, u64 *val)if (ret)return ret; -if (IS_VALLEYVIEW (dev)) - *val =vlv_gpu_freq (dev_priv->mem_freq, +if (IS_BAYTRAIL (dev)) + *val =byt_gpu_freq (dev_priv->mem_freq, dev_priv->rps.max_delay);else *val = dev_priv->rps.max_delay *GT_FREQUENCY_MULTIPLIER ;
@@ -1862,8 +1862,8 @@ i915_max_freq_set(void *data, u64 val)/* * Turbo will still be enabled, but won't go above the set value. */ -if (IS_VALLEYVIEW (dev)) { - val =vlv_freq_opcode (dev_priv->mem_freq, val); +if (IS_BAYTRAIL (dev)) { + val =byt_freq_opcode (dev_priv->mem_freq, val); dev_priv->rps.max_delay = val;gen6_set_rps (dev, val); }else {
@@ -1895,8 +1895,8 @@ i915_min_freq_get(void *data, u64 *val)if (ret)return ret; -if (IS_VALLEYVIEW (dev)) - *val =vlv_gpu_freq (dev_priv->mem_freq, +if (IS_BAYTRAIL (dev)) + *val =byt_gpu_freq (dev_priv->mem_freq, dev_priv->rps.min_delay);else *val = dev_priv->rps.min_delay *GT_FREQUENCY_MULTIPLIER ;
@@ -1924,10 +1924,10 @@ i915_min_freq_set(void *data, u64 val)/* * Turbo will still be enabled, but won't go below the set value. */ -if (IS_VALLEYVIEW (dev)) { - val =vlv_freq_opcode (dev_priv->mem_freq, val); +if (IS_BAYTRAIL (dev)) { + val =byt_freq_opcode (dev_priv->mem_freq, val); dev_priv->rps.min_delay = val; -valleyview_set_rps (dev, val); +baytrail_set_rps (dev, val); }else {do_div (val,GT_FREQUENCY_MULTIPLIER ); dev_priv->rps.min_delay = val;
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -1640,7 +1640,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)mutex_init (&dev_priv->modeset_restore_lock); dev_priv->num_plane =1 ; -if (IS_VALLEYVIEW (dev)) +if (IS_BAYTRAIL (dev)) dev_priv->num_plane =2 ;if (INTEL_INFO (dev)->num_pipes) {
drivers/gpu/drm/i915/i915_drv.c +13 -13
@@ -288,20 +288,20 @@ static const struct intel_device_info intel_ivybridge_q_info = { .num_pipes = 0, /* legal, last one wins */ }; -static const struct intel_device_info intel_valleyview_m_info = { +static const struct intel_device_info intel_baytrail_m_info = {GEN7_FEATURES , .is_mobile =1 , .num_pipes =2 , - .is_valleyview =1 , - .display_mmio_offset =VLV_DISPLAY_BASE , + .is_baytrail =1 , + .display_mmio_offset =BYT_DISPLAY_BASE , .has_llc =0 ,/* legal, last one wins */ }; -static const struct intel_device_info intel_valleyview_d_info = { +static const struct intel_device_info intel_baytrail_d_info = {GEN7_FEATURES , .num_pipes =2 , - .is_valleyview =1 , - .display_mmio_offset =VLV_DISPLAY_BASE , + .is_baytrail =1 , + .display_mmio_offset =BYT_DISPLAY_BASE , .has_llc =0 ,/* legal, last one wins */ };
@@ -402,12 +402,12 @@ static const struct pci_device_id pciidlist[] = { /* aka */INTEL_VGA_DEVICE (0x0D06 , &intel_haswell_m_info),/* CRW GT1 mobile */ INTEL_VGA_DEVICE (0x0D16 , &intel_haswell_m_info),/* CRW GT2 mobile */ INTEL_VGA_DEVICE (0x0D26 , &intel_haswell_m_info),/* CRW GT2 mobile */ -INTEL_VGA_DEVICE (0x0f30 , &intel_valleyview_m_info), -INTEL_VGA_DEVICE (0x0f31 , &intel_valleyview_m_info), -INTEL_VGA_DEVICE (0x0f32 , &intel_valleyview_m_info), -INTEL_VGA_DEVICE (0x0f33 , &intel_valleyview_m_info), -INTEL_VGA_DEVICE (0x0157 , &intel_valleyview_m_info), -INTEL_VGA_DEVICE (0x0155 , &intel_valleyview_d_info), +INTEL_VGA_DEVICE (0x0f30 , &intel_baytrail_m_info), +INTEL_VGA_DEVICE (0x0f31 , &intel_baytrail_m_info), +INTEL_VGA_DEVICE (0x0f32 , &intel_baytrail_m_info), +INTEL_VGA_DEVICE (0x0f33 , &intel_baytrail_m_info), +INTEL_VGA_DEVICE (0x0157 , &intel_baytrail_m_info), +INTEL_VGA_DEVICE (0x0155 , &intel_baytrail_d_info), {0, 0, 0} };
@@ -964,7 +964,7 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)struct intel_device_info *intel_info = (struct intel_device_info *) ent->driver_data; -if (intel_info->is_valleyview) +if (intel_info->is_baytrail)if (!i915_preliminary_hw_support) {DRM_ERROR ("Preliminary hardware support disabled\n" );return -ENODEV ;
drivers/gpu/drm/i915/i915_drv.h +14 -14
@@ -363,7 +363,7 @@ struct drm_i915_gt_funcs { func(is_broadwater) sep \ func(is_crestline) sep \ func(is_ivybridge) sep \ - func(is_valleyview) sep \ + func(is_baytrail) sep \ func(is_haswell) sep \ func(has_force_wake) sep \ func(has_fbc) sep \
@@ -672,7 +672,7 @@ struct i915_suspend_saved_registers {struct intel_gen6_power_mgmt {struct work_struct work; -struct delayed_work vlv_work; +struct delayed_work byt_work;u32 pm_iir;/* lock - irqsave spinlock that protectects the work_struct and * pm_iir. */
@@ -1337,7 +1337,7 @@ struct drm_i915_file_private {#define IS_SNB_GT1 (dev) ((dev)->pci_device == 0x0102 || \ (dev)->pci_device == 0x0106 || \ (dev)->pci_device == 0x010A) -#define IS_VALLEYVIEW (dev) (INTEL_INFO(dev)->is_valleyview) +#define IS_BAYTRAIL (dev) (INTEL_INFO(dev)->is_baytrail)#define IS_HASWELL (dev) (INTEL_INFO(dev)->is_haswell)#define IS_MOBILE (dev) (INTEL_INFO(dev)->is_mobile)#define IS_ULT (dev) (IS_HASWELL(dev) && \
@@ -1362,7 +1362,7 @@ struct drm_i915_file_private {#define I915_NEED_GFX_HWS (dev) (INTEL_INFO(dev)->need_gfx_hws)#define HAS_HW_CONTEXTS (dev) (INTEL_INFO(dev)->gen >= 6) -#define HAS_ALIASING_PPGTT (dev) (INTEL_INFO(dev)->gen >=6 && !IS_VALLEYVIEW(dev)) +#define HAS_ALIASING_PPGTT (dev) (INTEL_INFO(dev)->gen >=6 && !IS_BAYTRAIL(dev))#define HAS_OVERLAY (dev) (INTEL_INFO(dev)->has_overlay)#define OVERLAY_NEEDS_PHYSICAL (dev) (INTEL_INFO(dev)->overlay_needs_physical)
@@ -1877,9 +1877,9 @@ extern void intel_disable_fbc(struct drm_device *dev);extern bool ironlake_set_drps (struct drm_device *dev,u8 val);extern void intel_init_pch_refclk (struct drm_device *dev);extern void gen6_set_rps (struct drm_device *dev,u8 val); -extern void valleyview_set_rps (struct drm_device *dev,u8 val); -extern int valleyview_rps_max_freq (struct drm_i915_private *dev_priv); -extern int valleyview_rps_min_freq (struct drm_i915_private *dev_priv); +extern void baytrail_set_rps (struct drm_device *dev,u8 val); +extern int baytrail_rps_max_freq (struct drm_i915_private *dev_priv); +extern int baytrail_rps_min_freq (struct drm_i915_private *dev_priv);extern void intel_detect_pch (struct drm_device *dev);extern int intel_trans_dp_port_sel (struct drm_crtc *crtc);extern int intel_enable_rc6 (const struct drm_device *dev);
@@ -1909,12 +1909,12 @@ int __gen6_gt_wait_for_fifo(struct drm_i915_private *dev_priv);int sandybridge_pcode_read (struct drm_i915_private *dev_priv,u8 mbox,u32 *val);int sandybridge_pcode_write (struct drm_i915_private *dev_priv,u8 mbox,u32 val); -int valleyview_punit_read (struct drm_i915_private *dev_priv,u8 addr,u32 *val); -int valleyview_punit_write (struct drm_i915_private *dev_priv,u8 addr,u32 val); -int valleyview_nc_read (struct drm_i915_private *dev_priv,u8 addr,u32 *val); +int baytrail_punit_read (struct drm_i915_private *dev_priv,u8 addr,u32 *val); +int baytrail_punit_write (struct drm_i915_private *dev_priv,u8 addr,u32 val); +int baytrail_nc_read (struct drm_i915_private *dev_priv,u8 addr,u32 *val); -int vlv_gpu_freq (int ddr_freq,int val); -int vlv_freq_opcode (int ddr_freq,int val); +int byt_gpu_freq (int ddr_freq,int val); +int byt_freq_opcode (int ddr_freq,int val);#define __i915_read (x, y) \ u##x i915_read##x(struct drm_i915_private *dev_priv, u32 reg);
@@ -1962,8 +1962,8 @@ static inline uint32_t i915_vgacntrl_reg(struct drm_device *dev) {if (HAS_PCH_SPLIT (dev))return CPU_VGACNTRL ; -else if (IS_VALLEYVIEW (dev)) -return VLV_VGACNTRL ; +else if (IS_BAYTRAIL (dev)) +return BYT_VGACNTRL ;else return VGACNTRL ; }
drivers/gpu/drm/i915/i915_gem.c +5 -5
@@ -4057,10 +4057,10 @@ int i915_gem_init(struct drm_device *dev)mutex_lock (&dev->struct_mutex); -if (IS_VALLEYVIEW (dev)) { -/* VLVA0 (potential hack), BIOS isn't actually waking us */ -I915_WRITE (VLV_GTLC_WAKE_CTRL ,1 ); -if (wait_for ((I915_READ (VLV_GTLC_PW_STATUS ) &1 ) ==1 ,10 )) +if (IS_BAYTRAIL (dev)) { +/* BYTA0 (potential hack), BIOS isn't actually waking us */ +I915_WRITE (BYT_GTLC_WAKE_CTRL ,1 ); +if (wait_for ((I915_READ (BYT_GTLC_PW_STATUS ) &1 ) ==1 ,10 ))DRM_DEBUG_DRIVER ("allow wake ack timed out\n" ); }
@@ -4200,7 +4200,7 @@ i915_gem_load(struct drm_device *dev)if (!drm_core_check_feature (dev,DRIVER_MODESET )) dev_priv->fence_reg_start =3 ; -if (INTEL_INFO (dev)->gen >=7 && !IS_VALLEYVIEW (dev)) +if (INTEL_INFO (dev)->gen >=7 && !IS_BAYTRAIL (dev)) dev_priv->num_fence_regs =32 ;else if (INTEL_INFO (dev)->gen >=4 ||IS_I945G (dev) ||IS_I945GM (dev) ||IS_G33 (dev)) dev_priv->num_fence_regs =16 ;
drivers/gpu/drm/i915/i915_gem_context.c +1 -1
@@ -333,7 +333,7 @@ mi_set_context(struct intel_ring_buffer *ring,if (ret)return ret; -/* WaProgramMiArbOnOffAroundMiSetContext:ivb,vlv,hsw */ +/* WaProgramMiArbOnOffAroundMiSetContext:ivb,byt,hsw */ if (IS_GEN7 (ring->dev))intel_ring_emit (ring,MI_ARB_ON_OFF |MI_ARB_DISABLE );else
drivers/gpu/drm/i915/i915_gem_execbuffer.c +1 -1
@@ -1012,7 +1012,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, } batch_obj->base.pending_read_domains |=I915_GEM_DOMAIN_COMMAND ; -/* snb/ivb/vlv conflate the "batch in ppgtt" bit with the "non-secure +/* snb/ivb/byt conflate the "batch in ppgtt" bit with the "non-secure * batch" bit. Hence we need to pin secure batches into the global gtt. * hsw should have this fixed, but let's be paranoid and do it * unconditionally for now. */
drivers/gpu/drm/i915/i915_gem_gtt.c +2 -2
@@ -273,7 +273,7 @@ static int gen6_ppgtt_init(struct i915_hw_ppgtt *ppgtt)if (IS_HASWELL (dev)) { ppgtt->pte_encode = hsw_pte_encode; - }else if (IS_VALLEYVIEW (dev)) { + }else if (IS_BAYTRAIL (dev)) { ppgtt->pte_encode = byt_pte_encode; }else { ppgtt->pte_encode = gen6_pte_encode;
@@ -856,7 +856,7 @@ int i915_gem_gtt_init(struct drm_device *dev) dev_priv->gtt.gtt_remove = gen6_gmch_remove;if (IS_HASWELL (dev)) { dev_priv->gtt.pte_encode = hsw_pte_encode; - }else if (IS_VALLEYVIEW (dev)) { + }else if (IS_BAYTRAIL (dev)) { dev_priv->gtt.pte_encode = byt_pte_encode; }else { dev_priv->gtt.pte_encode = gen6_pte_encode;
drivers/gpu/drm/i915/i915_gem_tiling.c +1 -1
@@ -91,7 +91,7 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)uint32_t swizzle_x =I915_BIT_6_SWIZZLE_UNKNOWN ;uint32_t swizzle_y =I915_BIT_6_SWIZZLE_UNKNOWN ; -if (IS_VALLEYVIEW (dev)) { +if (IS_BAYTRAIL (dev)) { swizzle_x =I915_BIT_6_SWIZZLE_NONE ; swizzle_y =I915_BIT_6_SWIZZLE_NONE ; }else if (INTEL_INFO (dev)->gen >=6 ) {
drivers/gpu/drm/i915/i915_irq.c +48 -48
247 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +77 -77
337 lines not on this page · raw message
drivers/gpu/drm/i915/i915_sysfs.c +19 -19
@@ -212,10 +212,10 @@ static ssize_t gt_cur_freq_mhz_show(struct device *kdev,int ret;mutex_lock (&dev_priv->rps.hw_lock); -if (IS_VALLEYVIEW (dev_priv->dev)) { +if (IS_BAYTRAIL (dev_priv->dev)) {u32 freq; -valleyview_punit_read (dev_priv,PUNIT_REG_GPU_FREQ_STS , &freq); - ret =vlv_gpu_freq (dev_priv->mem_freq, (freq >>8 ) &0xff ); +baytrail_punit_read (dev_priv,PUNIT_REG_GPU_FREQ_STS , &freq); + ret =byt_gpu_freq (dev_priv->mem_freq, (freq >>8 ) &0xff ); }else { ret = dev_priv->rps.cur_delay *GT_FREQUENCY_MULTIPLIER ; }
@@ -232,8 +232,8 @@ static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attributeint ret;mutex_lock (&dev_priv->rps.hw_lock); -if (IS_VALLEYVIEW (dev_priv->dev)) - ret =vlv_gpu_freq (dev_priv->mem_freq, dev_priv->rps.max_delay); +if (IS_BAYTRAIL (dev_priv->dev)) + ret =byt_gpu_freq (dev_priv->mem_freq, dev_priv->rps.max_delay);else ret = dev_priv->rps.max_delay *GT_FREQUENCY_MULTIPLIER ;mutex_unlock (&dev_priv->rps.hw_lock);
@@ -257,11 +257,11 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev,mutex_lock (&dev_priv->rps.hw_lock); -if (IS_VALLEYVIEW (dev_priv->dev)) { - val =vlv_freq_opcode (dev_priv->mem_freq, val); +if (IS_BAYTRAIL (dev_priv->dev)) { + val =byt_freq_opcode (dev_priv->mem_freq, val); - hw_max =valleyview_rps_max_freq (dev_priv); - hw_min =valleyview_rps_min_freq (dev_priv); + hw_max =baytrail_rps_max_freq (dev_priv); + hw_min =baytrail_rps_min_freq (dev_priv); non_oc_max = hw_max; }else { val /=GT_FREQUENCY_MULTIPLIER ;
@@ -283,8 +283,8 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev, val * GT_FREQUENCY_MULTIPLIER);if (dev_priv->rps.cur_delay > val) { -if (IS_VALLEYVIEW (dev_priv->dev)) -valleyview_set_rps (dev_priv->dev, val); +if (IS_BAYTRAIL (dev_priv->dev)) +baytrail_set_rps (dev_priv->dev, val);else gen6_set_rps (dev_priv->dev, val); }
@@ -304,8 +304,8 @@ static ssize_t gt_min_freq_mhz_show(struct device *kdev, struct device_attributeint ret;mutex_lock (&dev_priv->rps.hw_lock); -if (IS_VALLEYVIEW (dev_priv->dev)) - ret =vlv_gpu_freq (dev_priv->mem_freq, dev_priv->rps.min_delay); +if (IS_BAYTRAIL (dev_priv->dev)) + ret =byt_gpu_freq (dev_priv->mem_freq, dev_priv->rps.min_delay);else ret = dev_priv->rps.min_delay *GT_FREQUENCY_MULTIPLIER ;mutex_unlock (&dev_priv->rps.hw_lock);
@@ -329,11 +329,11 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev,mutex_lock (&dev_priv->rps.hw_lock); -if (IS_VALLEYVIEW (dev)) { - val =vlv_freq_opcode (dev_priv->mem_freq, val); +if (IS_BAYTRAIL (dev)) { + val =byt_freq_opcode (dev_priv->mem_freq, val); - hw_max =valleyview_rps_max_freq (dev_priv); - hw_min =valleyview_rps_min_freq (dev_priv); + hw_max =baytrail_rps_max_freq (dev_priv); + hw_min =baytrail_rps_min_freq (dev_priv); }else { val /=GT_FREQUENCY_MULTIPLIER ;
@@ -348,8 +348,8 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev, }if (dev_priv->rps.cur_delay < val) { -if (IS_VALLEYVIEW (dev)) -valleyview_set_rps (dev, val); +if (IS_BAYTRAIL (dev)) +baytrail_set_rps (dev, val);else gen6_set_rps (dev_priv->dev, val); }
drivers/gpu/drm/i915/intel_crt.c +7 -7
@@ -135,7 +135,7 @@ static void intel_crt_dpms(struct drm_connector *connector, int mode)struct drm_crtc *crtc;int old_dpms; -/* PCH platforms and VLV only support on/off. */ +/* PCH platforms and BYT only support on/off. */ if (INTEL_INFO (dev)->gen >=5 && mode !=DRM_MODE_DPMS_ON ) mode =DRM_MODE_DPMS_OFF ;
@@ -298,7 +298,7 @@ static bool intel_ironlake_crt_detect_hotplug(struct drm_connector *connector)return ret; } -static bool valleyview_crt_detect_hotplug (struct drm_connector *connector) +static bool baytrail_crt_detect_hotplug (struct drm_connector *connector) {struct drm_device *dev = connector->dev;struct intel_crt *crt =intel_attached_crt (connector);
@@ -327,7 +327,7 @@ static bool valleyview_crt_detect_hotplug(struct drm_connector *connector)else ret = false; -DRM_DEBUG_KMS ("valleyview hotplug adpa=0x%x, result %d\n" , adpa, ret); +DRM_DEBUG_KMS ("baytrail hotplug adpa=0x%x, result %d\n" , adpa, ret);/* FIXME: debug force function and remove */ ret = true;
@@ -354,8 +354,8 @@ static bool intel_crt_detect_hotplug(struct drm_connector *connector)if (HAS_PCH_SPLIT (dev))return intel_ironlake_crt_detect_hotplug (connector); -if (IS_VALLEYVIEW (dev)) -return valleyview_crt_detect_hotplug (connector); +if (IS_BAYTRAIL (dev)) +return baytrail_crt_detect_hotplug (connector);/* * On 4 series desktop, CRT detect sequence need to be done twice
@@ -770,8 +770,8 @@ void intel_crt_init(struct drm_device *dev)if (HAS_PCH_SPLIT (dev)) crt->adpa_reg =PCH_ADPA ; -else if (IS_VALLEYVIEW (dev)) - crt->adpa_reg =VLV_ADPA ; +else if (IS_BAYTRAIL (dev)) + crt->adpa_reg =BYT_ADPA ;else crt->adpa_reg =ADPA ;
drivers/gpu/drm/i915/intel_display.c +48 -48
295 lines not on this page · raw message
drivers/gpu/drm/i915/intel_dp.c +45 -45
292 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +3 -3
@@ -245,7 +245,7 @@ struct intel_crtc_config {/* Used by SDVO (and if we ever fix it, HDMI). */ unsigned pixel_multiplier; -/* Panel fitter controls for gen2-gen4 + VLV */ +/* Panel fitter controls for gen2-gen4 + BYT */ struct {u32 control;u32 pgm_ratios;
@@ -472,7 +472,7 @@ struct intel_digital_port { };static inline int -vlv_dport_to_channel (struct intel_digital_port *dport) +byt_dport_to_channel (struct intel_digital_port *dport) {switch (dport->port) {case PORT_B :
@@ -663,7 +663,7 @@ intel_pipe_to_cpu_transcoder(struct drm_i915_private *dev_priv,extern void intel_wait_for_vblank (struct drm_device *dev,int pipe);extern void intel_wait_for_pipe_off (struct drm_device *dev,int pipe);extern int ironlake_get_lanes_required (int target_clock,int link_bw,int bpp); -extern void vlv_wait_port_ready (struct drm_i915_private *dev_priv,int port); +extern void byt_wait_port_ready (struct drm_i915_private *dev_priv,int port);struct intel_load_detect_pipe {struct drm_framebuffer *release_fb;
drivers/gpu/drm/i915/intel_hdmi.c +21 -21
131 lines not on this page · raw message
drivers/gpu/drm/i915/intel_i2c.c +2 -2
@@ -526,8 +526,8 @@ int intel_setup_gmbus(struct drm_device *dev)return 0 ; else if (HAS_PCH_SPLIT(dev)) dev_priv->gpio_mmio_base = PCH_GPIOA - GPIOA; - else if (IS_VALLEYVIEW(dev)) - dev_priv->gpio_mmio_base = VLV_DISPLAY_BASE; + else if (IS_BAYTRAIL(dev)) + dev_priv->gpio_mmio_base = BYT_DISPLAY_BASE; else dev_priv->gpio_mmio_base = 0;
drivers/gpu/drm/i915/intel_pm.c +116 -116
579 lines not on this page · raw message
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
@@ -516,7 +516,7 @@ static int init_render_ring(struct intel_ring_buffer *ring)* to use MI_WAIT_FOR_EVENT within the CS. It should already be * programmed to '1' on all products. * -* WaDisableAsyncFlipPerfMode:snb,ivb,hsw,vlv +* WaDisableAsyncFlipPerfMode:snb,ivb,hsw,byt */ if (INTEL_INFO (dev)->gen >=6 )I915_WRITE (MI_MODE ,_MASKED_BIT_ENABLE (ASYNC_FLIP_PERF_DISABLE ));
drivers/gpu/drm/i915/intel_sprite.c +12 -12
@@ -38,7 +38,7 @@#include "i915_drv.h" static void -vlv_update_plane(struct drm_plane *dplane, struct drm_framebuffer *fb, +byt_update_plane(struct drm_plane *dplane, struct drm_framebuffer *fb, struct drm_i915_gem_object *obj, int crtc_x, int crtc_y, unsigned int crtc_w, unsigned int crtc_h, uint32_t x, uint32_t y,
@@ -139,7 +139,7 @@ vlv_update_plane(struct drm_plane *dplane, struct drm_framebuffer *fb, }static void -vlv_disable_plane (struct drm_plane *dplane) +byt_disable_plane (struct drm_plane *dplane) {struct drm_device *dev = dplane->dev;struct drm_i915_private *dev_priv = dev->dev_private;
@@ -155,7 +155,7 @@ vlv_disable_plane(struct drm_plane *dplane) }static int -vlv_update_colorkey (struct drm_plane *dplane, +byt_update_colorkey (struct drm_plane *dplane,struct drm_intel_sprite_colorkey *key) {struct drm_device *dev = dplane->dev;
@@ -184,7 +184,7 @@ vlv_update_colorkey(struct drm_plane *dplane, }static void -vlv_get_colorkey (struct drm_plane *dplane, +byt_get_colorkey (struct drm_plane *dplane,struct drm_intel_sprite_colorkey *key) {struct drm_device *dev = dplane->dev;
@@ -978,7 +978,7 @@ static uint32_t snb_plane_formats[] = { DRM_FORMAT_VYUY, }; -static uint32_t vlv_plane_formats[] = { +static uint32_t byt_plane_formats[] = {DRM_FORMAT_RGB565 ,DRM_FORMAT_ABGR8888 ,DRM_FORMAT_ARGB8888 ,
@@ -1036,14 +1036,14 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane) intel_plane->max_downscale =1 ; } -if (IS_VALLEYVIEW (dev)) { - intel_plane->update_plane = vlv_update_plane; - intel_plane->disable_plane = vlv_disable_plane; - intel_plane->update_colorkey = vlv_update_colorkey; - intel_plane->get_colorkey = vlv_get_colorkey; +if (IS_BAYTRAIL (dev)) { + intel_plane->update_plane = byt_update_plane; + intel_plane->disable_plane = byt_disable_plane; + intel_plane->update_colorkey = byt_update_colorkey; + intel_plane->get_colorkey = byt_get_colorkey; - plane_formats = vlv_plane_formats; - num_plane_formats =ARRAY_SIZE (vlv_plane_formats); + plane_formats = byt_plane_formats; + num_plane_formats =ARRAY_SIZE (byt_plane_formats); }else { intel_plane->update_plane = ivb_update_plane; intel_plane->disable_plane = ivb_disable_plane;
Signature · 1 line
1.8.2.2
Quoted 23 lines · Ben Widawsky
Bay Trail is the marketing name for the new Silvermont based SOCs we've been calling Valleyview. All recent Intel disclosed documents use the term "Bay Trail." AFAICT, only leaked docs (and our code) use the term Valleyview. I've also verified with internal sources that references to, "Valleyview" should be dropped.
Why?
We've always strived to make the already confusing generation information as clear as possible in our driver. With the introduction of the below, we made two names referring to the exact same silicon.commit
93c34e70ebf464a9ee142d93b681c5df094ec654Author: Kenneth Graunke <[email protected]> Date: Mon Apr 22 00:53:50 2013 -0700drm/i915: Fix page table entries for Bay Trail.
While it's tempting to simply do the renames in Ken's patch, it's simply not correct. As an added bonus, Mesa also uses the byt/baytrail names.
Yes. I know this is painful. Doing it now is the least painful way to do this right (short of going back in time.)
Quoted 6 lines
disclaimer: only compile tested.
disclaimer2: I didn't fix pre-existing checkpatch issues.CC Kenneth Graunke <[email protected]>CC Jesse Barnes <[email protected]>Signed-off-by Ben Widawsky <[email protected]>
Quoted 23 lines · Ben Widawsky
Bay Trail is the marketing name for the new Silvermont based SOCs we've been calling Valleyview. All recent Intel disclosed documents use the term "Bay Trail." AFAICT, only leaked docs (and our code) use the term Valleyview. I've also verified with internal sources that references to, "Valleyview" should be dropped.
Why?
We've always strived to make the already confusing generation information as clear as possible in our driver. With the introduction of the below, we made two names referring to the exact same silicon.commit
93c34e70ebf464a9ee142d93b681c5df094ec654Author: Kenneth Graunke <[email protected]> Date: Mon Apr 22 00:53:50 2013 -0700drm/i915: Fix page table entries for Bay Trail.
While it's tempting to simply do the renames in Ken's patch, it's simply not correct. As an added bonus, Mesa also uses the byt/baytrail names.
Yes. I know this is painful. Doing it now is the least painful way to do this right (short of going back in time.)
Quoted 6 lines
disclaimer: only compile tested.
disclaimer2: I didn't fix pre-existing checkpatch issues.CC Kenneth Graunke <[email protected]>CC Jesse Barnes <[email protected]>Signed-off-by Ben Widawsky <[email protected]>