Hd,
On Wed, 15 Feb 2017 20:14:12 +0100 "H. Nikolaus Schaller" hns@goldelico.com wrote:
Hi Andreas,
Am 15.02.2017 um 20:09 schrieb Andreas Kemnade andreas@kemnade.info:
Hi,
On Wed, 15 Feb 2017 10:15:49 +0100 "H. Nikolaus Schaller" hns@goldelico.com wrote:
Hi Matthijs, Andreas proposes a fix for the OMAP3 issue which should not harm OMAP5.
Comments?
seems not to be the full fix but probably a valid part of it. framebuffer console works (by adding console=tty0 to bootargs.scr). Xorg seems still to have problems when is is not using the generic modesetting driver but the framebuffer driver.
That might be unrelated. Tomi Valkeinen mentioned something long ago. I haven't used the fb (driver) with X for a while and switched completely to drm because fb did no longer work.
well it still works without the tiler branch. My old rootfs did not have the generic modesetting driver installed. Thats why I stumbled immediatedly over that problem. Without the fb tiler branch, it still works. And I had statically compiled fb, usb+charging stuff and console on framebuffer. I am also testing with another quite new lxde rootfs with letux_defconfig which has the generic xorg modesetting driver. So there are probably just some more if (have_tiled_fb) {} else {} somewhere necessary.
here are some warnings (I had a kernel crash after one of them): Feb 15 06:56:22 letux kernel: [37620.927307] ------------[ cut here ]------------ Feb 15 06:56:22 letux kernel: [37620.932769] WARNING: CPU: 0 PID: 2688 at ../drivers/gpu/drm/omapdrm/omap_gem.c:938 omap_gem_put_paddr+0x30/0x60 [omapdrm] Feb 15 06:56:22 letux kernel: [37620.945770] Modules linked in: bnep bluetooth ipv6 arc4 twl4030_madc_hwmon wl18xx wlcore mac80211 cfg80211 w2cbw003_bluetooth snd_soc_simple_card snd_soc_simple_card_utils snd_soc_omap_twl4030 snd_soc_gtm601 generic_adc_battery extcon_gpio omap3_isp videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_core wlcore_sdio bmp280_i2c ov9650 bmg160_i2c v4l2_common bmp280 bmg160_core at24 nvmem_core bmc150_accel_i2c bmc150_magn_i2c videodev bmc150_magn bmc150_accel_core tsc2007 media leds_tca6507 bno055 industrialio_triggered_buffer snd_soc_omap_mcbsp kfifo_buf snd_soc_omap snd_pcm_dmaengine gpio_twl4030 snd_soc_twl4030 twl4030_vibra twl4030_madc hso wwan_on_off ehci_omap pwm_bl pwm_omap_dmtimer panel_tpo_td028ttec1 encoder_opa362 connector_analog_tv omapdrm drm_kms_helper cfbfillrect syscopyarea Feb 15 06:56:22 letux kernel: [37621.020935] cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm omapdss usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs omap2430 phy_twl4030_usb musb_hdrc twl4030_charger industrialio w2sg0004 twl4030_pwrbutton bq27xxx_battery w1_bq27000 omap_hdq Feb 15 06:56:22 letux kernel: [37621.049621] CPU: 0 PID: 2688 Comm: kworker/0:1 Tainted: G W 4.10.0-rc8-letux+ #1 Feb 15 06:56:22 letux kernel: [37621.058593] Hardware name: Generic OMAP36xx (Flattened Device Tree) Feb 15 06:56:22 letux kernel: [37621.065734] Workqueue: events drm_mode_rmfb_work_fn [drm] Feb 15 06:56:22 letux kernel: [37621.071472] [<c010f368>] (unwind_backtrace) from [<c010b914>] (show_stack+0x10/0x14) Feb 15 06:56:22 letux kernel: [37621.079620] [<c010b914>] (show_stack) from [<c042e740>] (dump_stack+0x98/0xd0) Feb 15 06:56:22 letux kernel: [37621.087249] [<c042e740>] (dump_stack) from [<c012f7cc>] (__warn+0xd0/0x100) Feb 15 06:56:22 letux kernel: [37621.094573] [<c012f7cc>] (__warn) from [<c012f8a0>] (warn_slowpath_null+0x1c/0x24) Feb 15 06:56:22 letux kernel: [37621.102661] [<c012f8a0>] (warn_slowpath_null) from [<bf1a7250>] (omap_gem_put_paddr+0x30/0x60 [omapdrm]) Feb 15 06:56:22 letux kernel: [37621.112854] [<bf1a7250>] (omap_gem_put_paddr [omapdrm]) from [<bf1a61c8>] (omap_framebuffer_unpin+0x5c/0x70 [omapdrm]) Feb 15 06:56:22 letux kernel: [37621.124420] [<bf1a61c8>] (omap_framebuffer_unpin [omapdrm]) from [<bf17ba7c>] (drm_atomic_helper_cleanup_planes+0x48/0x50 [drm_kms_helper]) Feb 15 06:56:22 letux kernel: [37621.137786] [<bf17ba7c>] (drm_atomic_helper_cleanup_planes [drm_kms_helper]) from [<bf1a3458>] (omap_atomic_complete+0xac/0x128 [omapdrm]) Feb 15 06:56:22 letux kernel: [37621.150970] [<bf1a3458>] (omap_atomic_complete [omapdrm]) from [<bf1a3944>] (omap_atomic_commit+0x1f8/0x224 [omapdrm]) Feb 15 06:56:22 letux kernel: [37621.162384] [<bf1a3944>] (omap_atomic_commit [omapdrm]) from [<bf17f304>] (drm_atomic_helper_set_config+0x50/0xbc [drm_kms_helper]) Feb 15 06:56:22 letux kernel: [37621.175323] [<bf17f304>] (drm_atomic_helper_set_config [drm_kms_helper]) from [<bf0fcfdc>] (drm_mode_set_config_internal+0x4c/0xcc [drm]) Feb 15 06:56:22 letux kernel: [37621.188842] [<bf0fcfdc>] (drm_mode_set_config_internal [drm]) from [<bf0fd084>] (drm_crtc_force_disable+0x28/0x30 [drm]) Feb 15 06:56:22 letux kernel: [37621.200805] [<bf0fd084>] (drm_crtc_force_disable [drm]) from [<bf1091d4>] (drm_framebuffer_remove+0x74/0xec [drm]) Feb 15 06:56:22 letux kernel: [37621.212219] [<bf1091d4>] (drm_framebuffer_remove [drm]) from [<bf109284>] (drm_mode_rmfb_work_fn+0x38/0x40 [drm]) Feb 15 06:56:22 letux kernel: [37621.223266] [<bf109284>] (drm_mode_rmfb_work_fn [drm]) from [<c014c678>] (process_one_work+0x384/0x764) Feb 15 06:56:22 letux kernel: [37621.233154] [<c014c678>] (process_one_work) from [<c014ca80>] (process_scheduled_works+0x28/0x30) Feb 15 06:56:22 letux kernel: [37621.242492] [<c014ca80>] (process_scheduled_works) from [<c014da90>] (worker_thread+0x2d4/0x3d4) Feb 15 06:56:22 letux kernel: [37621.251770] [<c014da90>] (worker_thread) from [<c0152a98>] (kthread+0x118/0x134) Feb 15 06:56:22 letux kernel: [37621.259552] [<c0152a98>] (kthread) from [<c01070d0>] (ret_from_fork+0x14/0x24) Feb 15 06:56:22 letux kernel: [37621.275543] ---[ end trace 0832b38dd354c386 ]---
Regards, Andreas