[Letux-kernel] CONFIG_CC_OPTIMIZE_FOR_SIZE=y + CONFIG_OPTIMIZE_INLINING=y = trouble

H. Nikolaus Schaller hns at goldelico.com
Sat Oct 5 09:15:49 CEST 2019


> Am 05.10.2019 um 08:46 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>>> 
>> yes, I remember that. But probably we can go forward if we use
>> CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE for now. I try to just report that
>> CONFIG_CC_OPTIMIZE_FOR_SIZE problem and want to avoid debugging that too much.
>> 
>> I get 5775600 as uImage size now with CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE.
> 
> Ok, seems to be in the works:
> 
> https://lkml.org/lkml/2019/10/2/201
> 
> Maybe we should also file a regression report so that developers are more
> aware they should not break such important things...

Some confirmation: yes, I can boot the GTA04 now almost fine with CONFIG_CC_OPTIMIZE_FOR_SIZE=n

Except that the panel driver isn't loaded automatically any more:

root at letux:~# lsmod|fgrep td0
root at letux:~# modprobe -c | fgrep td028
alias of:N*T*Ctoppoly,td028ttec1 panel_tpo_td028ttec1
alias of:N*T*Ctoppoly,td028ttec1C* panel_tpo_td028ttec1
alias of:N*T*Ctpo,td028ttec1 panel_tpo_td028ttec1
alias of:N*T*Ctpo,td028ttec1C* panel_tpo_td028ttec1
alias spi:toppoly,td028ttec1 panel_tpo_td028ttec1
alias spi:tpo,td028ttec1 panel_tpo_td028ttec1
root at letux:~# modprobe panel_tpo_td028ttec1
[  201.784179] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
root at letux:~# [  201.805236] DSS: OMAP DSS rev 2.0
[  201.821990] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dsi_vc_flush_receive_data [omapdss])
[  201.839324] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops dsi_vc_flush_receive_data [omapdss])
[  201.936279] omapdrm omapdrm.0: DMM not available, disable DMM support
[  201.943786] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  201.960845] [drm] No driver support for vblank timestamp query.
[  201.967407] omapdrm omapdrm.0: Tiled buffers require DMM
[  201.997314] drm_setup_crtcs_fb: sw_rotations=1
[  202.002105] drm_setup_crtcs_fb: fbcon_rotate_hint=0
[  202.041046] dmtimer posted=0
[  202.041687] Console: switching to colour frame buffer device 60x40
[  202.062225] omapdrm omapdrm.0: fb0: omapdrmdrmfb frame buffer device
[  202.094696] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[  203.126861] drm_setup_crtcs_fb: sw_rotations=1
[  203.132446] drm_setup_crtcs_fb: fbcon_rotate_hint=0

After manual probe, the panel works.

I am now trying the v2 of the above mentioned patch.

BR,
Nikolaus



More information about the Letux-kernel mailing list