Re: linux-next on Chromebook2: DRM failing to allocate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 10, 2014 at 11:04 AM, Stéphane Marchesin
<marcheu@xxxxxxxxxxxx> wrote:
> On Tue, Jun 10, 2014 at 10:56 AM, Kevin Hilman <khilman@xxxxxxxxxx> wrote:
>> I'm trying to get the latest linux-next working on my Chromebook2
>> (it's booting to a serial console) and am now trying to get the
>> display working (at least for a frambuffer console.)
>>
>> Since the display nodes seem to be present in the exynos5800-peach-pi
>> DTS, I tried enabling DRM and it's failing to allocate memory (log
>> below[1]
>>
>> Is there some additional memory setup/allocations I should be doing?
>> maybe with CMA?
>
> Probably not CMA, but maybe you don't have the iommu enabled?

Turns out it was missing CMA support.  Specifically:
   CONFIG_CMA=y
   CONFIG_DMA_CMA=y
are needed (my full .config is here: http://hastebin.com/uqopirazir.vbs)

With that, it allocates, appears to detect the panel and even claims
"Console: switching to colour frame buffer device", but I don't see
tux or any output on the display (DRM debug output below).

Note that I'm chain-loading nv_uboot from an SD card, and u-boot is
driving the display (black text on white background.)  As soon as it
starts the kernel though, u-boot seems to shut down the display
(though the backlight seems to still be on.)

Maybe the DT for peach-pi is missing the regulator used to power the
panel, or maybe a GPIO used to power up the panel?

Any ideas?

Kevin

[1] DRM output with drm.debug=0xff  (full kernel boot log here:
http://hastebin.com/xigofelepe.vhdl

[    1.192850] [drm] Initialized drm 1.1.0 20060810
[    1.197676] [drm:drm_platform_init]
[    1.200224] [drm:drm_get_platform_dev]
[    1.204092] [drm:drm_minor_register]
[    1.207851] [drm:drm_minor_register] new minor assigned 64
[    1.213154] [drm:drm_minor_register]
[    1.216791] [drm:drm_minor_register]
[    1.220608] [drm:drm_minor_register] new minor assigned 0
[    1.225869] [drm:exynos_drm_encoder_create] possible_crtcs = 0x1
[    1.231820] [drm:exynos_drm_encoder_create] encoder has been created
[    1.238295] [drm:drm_sysfs_connector_add] adding "eDP-1" to sysfs
[    1.244222] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    1.250371] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.256953] [drm] No driver support for vblank timestamp query.
[    1.262855] [drm:drm_helper_hpd_irq_event] [CONNECTOR:15:eDP-1]
status updated from unknown to connected
[    1.272309] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    1.278480] [drm:exynos_drm_encoder_dpms] encoder dpms: 3
[    1.283849] [drm:exynos_drm_crtc_dpms] crtc[6] mode[3]
[    1.288964] [drm:exynos_drm_crtc_dpms] desired dpms mode is same as
previous one.
[    1.296428] [drm:drm_helper_probe_single_connector_modes_merge_bits]
[CONNECTOR:15:eDP-1]
[    1.304588] [drm:drm_helper_probe_single_connector_modes_merge_bits]
[CONNECTOR:15:eDP-1] probed modes :
[    1.314043] [drm:drm_mode_debug_printmodeline] Modeline
16:"1920x1080" 60 150660 1920 1980 2060 2232 1080 1090 1100 1125 0x48
0x0
[    1.325660] [drm:drm_setup_crtcs]
[    1.329044] [drm:drm_enable_connectors] connector 15 enabled? yes
[    1.335116] [drm:drm_target_preferred] looking for cmdline mode on
connector 15
[    1.342402] [drm:drm_target_preferred] looking for preferred mode
on connector 15
[    1.349862] [drm:drm_target_preferred] found mode 1920x1080
[    1.355414] [drm:drm_setup_crtcs] picking CRTCs for 4096x4096 config
[    1.361749] [drm:drm_setup_crtcs] desired mode 1920x1080 set on crtc 6
[    1.368257] [drm:exynos_drm_fbdev_create] surface width(1920),
height(1080) and bpp(32
[    1.376150] [drm:exynos_drm_init_buf] desired size = 0x7e9000
[    1.381886] [drm:exynos_drm_gem_init] created file object = 0xec7e2000
[    1.391732] [drm:lowlevel_buffer_allocate] dma_addr(0x8e900000),
size(0x7e9000)
[    1.397581] [drm:drm_framebuffer_reference] FB ID: 18
[    1.402614] [drm:exynos_drm_fb_buffer] dma_addr = 0x8e900000
[    1.408526] [drm:drm_crtc_helper_set_config]
[    1.408531] [drm:drm_crtc_helper_set_config] [CRTC:6] [FB:18]
#connectors=1 (x y) (0 0)
[    1.408536] [drm:drm_crtc_helper_set_config] crtc has no fb, full mode set
[    1.408539] [drm:drm_crtc_helper_set_config] modes are different,
full mode set
[    1.408544] [drm:drm_mode_debug_printmodeline] Modeline 0:"" 0 0 0
0 0 0 0 0 0 0 0x0 0x0
[    1.408549] [drm:drm_mode_debug_printmodeline] Modeline
17:"1920x1080" 60 150660 1920 1980 2060 2232 1080 1090 1100 1125 0x48
0x0
[    1.408553] [drm:drm_crtc_helper_set_config] encoder changed, full
mode switch
[    1.408556] [drm:drm_crtc_helper_set_config] crtc changed, full mode switch
[    1.408560] [drm:drm_crtc_helper_set_config] [CONNECTOR:15:eDP-1] to [CRTC:6]
[    1.408563] [drm:drm_crtc_helper_set_config] attempting to set mode
from userspace
[    1.408568] [drm:drm_mode_debug_printmodeline] Modeline
17:"1920x1080" 60 150660 1920 1980 2060 2232 1080 1090 1100 1125 0x48
0x0
[    1.408574] [drm:drm_crtc_helper_set_mode] [CRTC:6]
[    1.408579] [drm:exynos_drm_fb_buffer] dma_addr = 0x8e900000
[    1.408582] [drm:exynos_plane_mode_set] buffer: 0, dma_addr = 0x8e900000
[    1.408590] [drm:exynos_plane_mode_set] overlay : offset_x/y(0,0),
width/height(1920,1080)
[    1.408591] [drm:fimd_win_mode_set] offset = 0x0, pitch = 1e00
[    1.408595] [drm:fimd_win_mode_set] offset_x = 0, offset_y = 0
[    1.408598] [drm:fimd_win_mode_set] ovl_width = 1920, ovl_height = 1080
[    1.408601] [drm:fimd_win_mode_set] paddr = 0x8e900000
[    1.408604] [drm:fimd_win_mode_set] fb_width = 1920, crtc_width = 1920
[    1.408607] [drm:drm_framebuffer_reference] FB ID: 18
[    1.408611] [drm:drm_crtc_helper_set_mode] [ENCODER:14:TMDS-14] set
[MODE:17:1920x1080]
[    1.408614] [drm:exynos_drm_crtc_dpms] crtc[6] mode[0]
[    1.408618] [drm:fimd_dpms] ../drivers/gpu/drm/exynos/exynos_drm_fimd.c, 0
[    1.408649] [drm:fimd_win_commit] start addr = 0x8e900000, end addr
= 0x8f0e9000, size = 0x7e9000
[    1.408652] [drm:fimd_win_commit] ovl_width = 1920, ovl_height = 1080
[    1.408656] [drm:fimd_win_commit] osd pos: tx = 0, ty = 0, bx =
1919, by = 1079
[    1.408660] [drm:fimd_win_commit] osd size = 0x1fa400
[    1.408663] [drm:fimd_win_set_pixfmt] bpp = 32
[    1.408948] [drm:drm_calc_timestamping_constants] crtc 6: hwmode:
htotal 2232, vtotal 1125, vdisplay 1080
[    1.408953] [drm:drm_calc_timestamping_constants] crtc 6: clock
150660 kHz framedur 16666666 linedur 14814, pixeldur 6
[    1.408958] [drm:drm_crtc_helper_set_config] Setting connector DPMS
state to on
[    1.408961] [drm:drm_crtc_helper_set_config] [CONNECTOR:15:eDP-1] set DPMS on
[    1.408966] [drm:drm_framebuffer_reference] FB ID: 18
[    1.409097] [drm:drm_crtc_helper_set_config]
[    1.409102] [drm:drm_crtc_helper_set_config] [CRTC:6] [FB:18]
#connectors=1 (x y) (0 0)
[    1.409107] [drm:drm_crtc_helper_set_config] [CONNECTOR:15:eDP-1] to [CRTC:6]
[    1.409110] [drm:drm_framebuffer_reference] FB ID: 18
[    1.409113] [drm:drm_framebuffer_unreference] FB ID: 18
[    1.422580] Console: switching to colour frame buffer device 274x77
[    1.422587] [drm:drm_crtc_helper_set_config]
[    1.422591] [drm:drm_crtc_helper_set_config] [CRTC:6] [FB:18]
#connectors=1 (x y) (0 0)
[    1.422596] [drm:drm_crtc_helper_set_config] [CONNECTOR:15:eDP-1] to [CRTC:6]
[    1.422600] [drm:drm_framebuffer_reference] FB ID: 18
[    1.422603] [drm:drm_framebuffer_unreference] FB ID: 18
[    1.745135] exynos-drm exynos-drm: fb0:  frame buffer device
[    1.752593] exynos-drm exynos-drm: registered panic notifier
[    1.773526] [drm] Initialized exynos 1.0.0 20110530 on minor 0
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux