This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

the omap4430 error "omapdss DISPC error: SYNC_LOST, disabling LCD"

Other Parts Discussed in Thread: TFP410

hi all:

       I worked on omap4430 blaze tablet  using the kernel 3.0.8, and i used the chimei lcd to display. I registered on platform as showed:

struct omap_dss_device omap4_lcd_device = {
    .type            = OMAP_DISPLAY_TYPE_DPI,
    .name            = "lcd",
    .driver_name        = "chimei_lcd_panel",
    .data            = &omap4_lcd_panel,
    .phy.dpi.data_lines    = 24,
    //.reset_gpio        = PANDA_DVI_TFP410_POWER_DOWN_GPIO,
    .channel        = OMAP_DSS_CHANNEL_LCD2,
};

I use the type  DPI and  want  to the pclk is 103MHZ,tht default clk  used the dispc clk but the max clk is  93 Mhz.So i modified the dss clk range  to 206MHZ .

 static const struct dss_param_range omap4_dss_param_range[] = {
   /* [FEAT_PARAM_DSS_FCK]            = { 0, 186000000 },struct omap_dss_device*/

   [FEAT_PARAM_DSS_FCK]            = { 0, 206000000 },struct omap_dss_device

{
                {
                        .x_res          = 1024,
                        .y_res          = 768,

                        .pixel_clock    = 103000,

                        .hfp            = 180,/*no sure */
                        .hsw            = 240,
                        .hbp            = 400,

                        .vfp            = 1,
                        .vsw            = 3,
                        .vbp            = 4,
                },
                .acbi                   = 0x0,
                .acb                    = 0x0,
                .config                 = OMAP_DSS_LCD_TFT,
                .power_on_delay         = 60,
                .power_off_delay        = 30,
                .name                   = "chimei_lcd",
        },


and  boot kernel the log as showed :

[    6.284545] omapdss DISPC: context restored
[    6.289123] omapdss DISPC: onoff 0 rf 0 ieo 0 ipc 0 ihs 0 ivs 0 acbi 0 acb 0
[    6.296661] omapdss DSS: dpll4_m4 = 1536000000
[    6.301483] omapdss DSS: fck = 307200000 (5)
[    6.306060] omapdss DISPC: lck = 307200000 (1)
[    6.310882] omapdss DISPC: pck = 102400000 (3)
[    6.315643] omapdss DPI: Could not find exact pixel clock. Requested 103000 kHz, got 102400 kHz
[    6.324951] omapdss DISPC: channel 2 xres 1024 yres 768
[    6.330566] omapdss DISPC: pck 102400
[    6.334564] omapdss DISPC: hsw 240 hfp 180 hbp 400 vsw 3 vfp 1 vbp 4
[    6.341339] omapdss DISPC: hsync 55531Hz, vsync 71Hz
[    6.466644] (stk) :ldisc installation timeout
[    6.471405] (stk) :ldisc_install = 0
[    6.524444] omaplfb OMAPLFBInitFBDev: Device 0: Requesting 5 TILER 2D framebuffers
[    6.535552] twl_rtc twl_rtc: setting system clock to 2000-01-01 01:37:56 UTC (946690676)
[    6.545654] Freeing init memory: 272K
[    6.552764] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[    6.638488] sr_class1p5_calib_work: core: Calibration complete: Voltage Nominal=1127000Calib=1038160 margin=0
[    6.649200] sr_class1p5_calib_work: mpu: Calibration complete: Voltage Nominal=1388000Calib=1215400 margin=0
[    6.672760] omapdss OVERLAY: check_overlay 0: (0,0 1024x768 -> 1024x768) disp (1024x768)
[    6.672790] omapdss MANAGER: omap_dss_mgr_apply(lcd2)
[    6.672790] omapdss OVERLAY: check_overlay 0: (0,0 1024x768 -> 1024x768) disp (1024x768)
[    6.672821] omapdss MANAGER: configure_overlay(0)
[    6.672851] omapdss DISPC: dispc_setup_plane 0, pa aca00000, sw 1024, 0,0, 1024/1x768/1 -> 1024x768, ilace 0, cmode 800, rot 0, mir 0 chan 2 3tap
[    6.672882] omapdss DISPC: calc_rot(0): scrw 1024, 1024x768
[    6.672882] omapdss DISPC: offset0 0, offset1 0, row_inc 1, pix_inc 1
[    6.672882] omapdss DISPC: 0,0 1024*1x768*1 -> 1024x768
[    6.672912] omapdss DISPC: fifo(0) low/high old 1272/1279, new 560/1279
[    6.672912] omapdss DISPC: dispc_enable_plane 0, 1
[    6.672943] omapdss MANAGER: configure_manager(2)
[    6.672943] omapdss DISPC: GO LCD2
[    6.753875] sr_class1p5_calib_work: mpu: Calibration complete: Voltage Nominal=1325000Calib=1101460 margin=0
[    6.795257] DISPC IRQ: 0x12d640: GFX_FIFO_UNDERFLOW OCP_ERR VID1_FIFO_UNDERFLOW VID2_FIFO_UNDERFLOW VID3_FIFO_UNDERFLOW SYNC_LOST SYNC_LOST_DIGIT SYNC_LOST2
[    6.812866] omapdss DISPC error: GFX_FIFO_UNDERFLOW, disabling GFX
[    6.819976] omapdss DISPC: dispc_enable_plane 0, 0
[    6.825347] omapdss DISPC: GO LCD2
[    6.850708] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
[    6.882324] omapdss DISPC error: VID1_FIFO_UNDERFLOW, disabling VID1
[    6.889190] omapdss DISPC: dispc_enable_plane 1, 0
[    6.894317] omapdss DISPC: GO LCD2
[    6.898162] EXT4-fs (mmcblk0p10): recovery complete
[    6.903411] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
[    6.933746] EXT4-fs (mmcblk0p9): recovery complete
[    6.938903] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
[    6.949584] omapdss DISPC error: VID2_FIFO_UNDERFLOW, disabling VID2
[    6.956604] omapdss DISPC: dispc_enable_plane 2, 0
[    6.961914] omapdss DISPC: GO LCD2
[    6.974212] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null)
[    6.990966] Invalid Device Structure
[    7.023864] omapdss DISPC error: VID3_FIFO_UNDERFLOW, disabling VID3
[    7.031799] omapdss DISPC: dispc_enable_plane 3, 0
[    7.038024] omapdss DISPC: GO LCD2
[    7.102478] omapdss DISPC error: SYNC_LOST, disabling LCD
[    7.109374] Unable to handle kernel NULL pointer dereference at virtual address 00000198
[    7.119110] pgd = c0004000
[    7.122070] [00000198] *pgd=00000000
[    7.127075] Internal error: Oops: 17 [#1] PREEMPT SMP
[    7.132537] Modules linked in:
[    7.135894] CPU: 0    Not tainted  (3.0.8-gef8c8fc-dirty #12)
[    7.142120] PC is at dispc_error_worker+0x218/0x648
[    7.147338] LR is at dispc_error_worker+0x204/0x648
[    7.152526] pc : [<c028aa78>]    lr : [<c028aa64>]    psr: 60000113
[    7.152557] sp : c7bc9f00  ip : c7bc9f00  fp : c7bc9f24
[    7.164855] r10: c1839605  r9 : c08520dc  r8 : 00000001
[    7.170501] r7 : 00000000  r6 : c0852000  r5 : 0012d640  r4 : c79fccc0
[    7.177520] r3 : 00000000  r2 : c79fccc0  r1 : 00000000  r0 : c79fccc0
[    7.184478] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    7.192321] Control: 10c5387d  Table: 8715404a  DAC: 00000015
[    7.198455]
[    7.198455] PC: 0xc028a9f8:
[    7.203155] a9f8  e3020330 e3400831 ebff113f e3740001 1afffff5 e3580001 1affffac e59a32f4
[    7.212524] aa18  e1a0000a e5931040 e12fff31 eaffffa7 e30c05c4 e34c0073 eb0d9e93 e5973044
[    7.221954] aa38  eaffffc6 e30c0534 e34c0073 eb0d9e8e e3a08000 eb000fa9 e1580000 e1a00008
[    7.231384] aa58  e2888001 aaffff97 eb000fab e5907030 e1a04000 e3570000 1afffff5 e5903044
[    7.240814] aa78  e5d3e198 e35e0000 0a00004c e59312f4 e1a00003 e593a304 e591c044 e12fff3c
[    7.250183] aa98  e3540000 15948044 0affff86 eb002327 e1570000 e1a00007 e2877001 aa00002b
[    7.259613] aab8  eb002329 e1a03000 e5900038 e3100002 0afffff5 e5930030 e3500000 0afffff2
[    7.268981] aad8  e593303c e1540003 1affffef e3a01000 ebffe59c eaffffec e30c04f4 e34c0073
[    7.278320]
[    7.278320] LR: 0xc028a9e4:
[    7.283050] a9e4  e244c001 e3020330 e3400831 e24c4001 ebff1142 e3020330 e3400831 ebff113f
[    7.292449] aa04  e3740001 1afffff5 e3580001 1affffac e59a32f4 e1a0000a e5931040 e12fff31
[    7.301818] aa24  eaffffa7 e30c05c4 e34c0073 eb0d9e93 e5973044 eaffffc6 e30c0534 e34c0073
[    7.311248] aa44  eb0d9e8e e3a08000 eb000fa9 e1580000 e1a00008 e2888001 aaffff97 eb000fab
[    7.320617] aa64  e5907030 e1a04000 e3570000 1afffff5 e5903044 e5d3e198 e35e0000 0a00004c
[    7.329986] aa84  e59312f4 e1a00003 e593a304 e591c044 e12fff3c e3540000 15948044 0affff86
[    7.339416] aaa4  eb002327 e1570000 e1a00007 e2877001 aa00002b eb002329 e1a03000 e5900038
[    7.348846] aac4  e3100002 0afffff5 e5930030 e3500000 0afffff2 e593303c e1540003 1affffef
[    7.358245]
[    7.358245] SP: 0xc7bc9e80:
[    7.362915] 9e80  c07cc588 c004aeb0 c7bc9eb4 c7bc9e98 c004c45c c0058728 ffffffff c7bc9eec
[    7.372253] 9ea0  c0852000 00000000 c7bc9f24 c7bc9eb8 c005296c c004c528 c79fccc0 00000000
[    7.381622] 9ec0  c79fccc0 00000000 c79fccc0 0012d640 c0852000 00000000 00000001 c08520dc
[    7.391052] 9ee0  c1839605 c7bc9f24 c7bc9f00 c7bc9f00 c028aa64 c028aa78 60000113 ffffffff
[    7.400482] 9f00  c7abcec0 c18355c0 c1839600 00000000 c028a860 c1839605 c7bc9f5c c7bc9f28
[    7.409912] 9f20  c00b5630 c028a86c c05f5d44 c0262edc c7abcec0 c7abcec0 c18355c0 c07cc588
[    7.419281] 9f40  c18355d4 c7abced0 00000009 c7bc8000 c7bc9fac c7bc9f60 c00b5cd4 c00b5528
[    7.428710] 9f60  c004b500 c004a0a4 c004ba40 c004ba40 c004ba40 c7abced0 c004ba40 c004ba40
[    7.438140]
[    7.438140] IP: 0xc7bc9e80:
[    7.442779] 9e80  c07cc588 c004aeb0 c7bc9eb4 c7bc9e98 c004c45c c0058728 ffffffff c7bc9eec
[    7.452209] 9ea0  c0852000 00000000 c7bc9f24 c7bc9eb8 c005296c c004c528 c79fccc0 00000000
[    7.461608] 9ec0  c79fccc0 00000000 c79fccc0 0012d640 c0852000 00000000 00000001 c08520dc
[    7.470977] 9ee0  c1839605 c7bc9f24 c7bc9f00 c7bc9f00 c028aa64 c028aa78 60000113 ffffffff
[    7.480407] 9f00  c7abcec0 c18355c0 c1839600 00000000 c028a860 c1839605 c7bc9f5c c7bc9f28
[    7.489837] 9f20  c00b5630 c028a86c c05f5d44 c0262edc c7abcec0 c7abcec0 c18355c0 c07cc588
[    7.499267] 9f40  c18355d4 c7abced0 00000009 c7bc8000 c7bc9fac c7bc9f60 c00b5cd4 c00b5528
[    7.508636] 9f60  c004b500 c004a0a4 c004ba40 c004ba40 c004ba40 c7abced0 c004ba40 c004ba40
[    7.518066]
[    7.518066] FP: 0xc7bc9ea4:
[    7.522705] 9ea4  00000000 c7bc9f24 c7bc9eb8 c005296c c004c528 c79fccc0 00000000 c79fccc0
[    7.532104] 9ec4  00000000 c79fccc0 0012d640 c0852000 00000000 00000001 c08520dc c1839605
[    7.541534] 9ee4  c7bc9f24 c7bc9f00 c7bc9f00 c028aa64 c028aa78 60000113 ffffffff c7abcec0
[    7.550964] 9f04  c18355c0 c1839600 00000000 c028a860 c1839605 c7bc9f5c c7bc9f28 c00b5630
[    7.560302] 9f24  c028a86c c05f5d44 c0262edc c7abcec0 c7abcec0 c18355c0 c07cc588 c18355d4
[    7.569732] 9f44  c7abced0 00000009 c7bc8000 c7bc9fac c7bc9f60 c00b5cd4 c00b5528 c004b500
[    7.579162] 9f64  c004a0a4 c004ba40 c004ba40 c004ba40 c7abced0 c004ba40 c004ba40 c00b5b2c
[    7.588531] 9f84  c783be94 00000002 c7abcec0 c00b5b2c 00000000 00000000 00000000 c7bc9ff4
[    7.597961]
[    7.597961] R0: 0xc79fcc40:
[    7.602661] cc40  00000030 c07ebdb8 00000000 00000000 00000000 00000100 00000000 00000000
[    7.612030] cc60  00000000 00000000 00000000 00000000 00000000 00000000 00000001 c02935c4
[    7.621429] cc80  c028ea20 c028f7e4 c028e8c0 c0293014 c0292a78 c0292900 c02904a4 c028f694
[    7.630676] (stk) : timed out waiting for ldisc to be un-installedcca0  c028f5e0 c028f5b8 00000000 00000000 00000000 00000000 00000000 00000000
[    7.645233] ccc0  c7a19ae0 c79fccc4 c79fccc4 c07ec428 00000000 c07f7c18 c7a1e9c0 00000001
[    7.654632] cce0  00000003 c79fcc24 c0853100 c07776f8 00000000 00000001 00000004 c08534ac
[    7.664001] cd00  0000000a 00000000 00000000 00000000 00000000 00000100 00000000 00000000
[    7.673431] cd20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 c02935c4
[    7.682861]
[    7.682861] R2: 0xc79fcc40:
[    7.687499] cc40  00000030 c07ebdb8 00000000 00000000 00000000 00000100 00000000 00000000
[    7.696838] cc60  00000000 00000000 00000000 00000000 00000000 00000000 00000001 c02935c4
[    7.706268] cc80  c028ea20 c028f7e4 c028e8c0 c0293014 c0292a78 c0292900 c02904a4 c028f694
[    7.715637] cca0  c028f5e0 c028f5b8 00000000 00000000 00000000 00000000 00000000 00000000
[    7.725067] ccc0  c7a19ae0 c79fccc4 c79fccc4 c07ec428 00000000 c07f7c18 c7a1e9c0 00000001
[    7.734497] cce0
[    7.735290] (stk) :ldisc_install = 1 00000003 c79fcc24 c0853100 c07776f8 00000000 00000001 00000004 c08534ac
[    7.747802] cd00  0000000a 00000000 00000000 00000000 00000000 00000100 00000000 00000000
[    7.757232] cd20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 c02935c4
[    7.766601]
[    7.766601] R4: 0xc79fcc40:
[    7.771301] cc40  00000030 c07ebdb8 00000000 00000000 00000000 00000100 00000000 00000000
[    7.780670] cc60  00000000 00000000 00000000 00000000 00000000 00000000 00000001 c02935c4
[    7.790100] cc80  c028ea20 c028f7e4 c028e8c0 c0293014 c0292a78 c0292900 c02904a4 c028f694
[    7.799499] cca0  c028f5e0 c028f5b8 00000000 00000000 00000000 00000000 00000000 00000000
[    7.808929] ccc0  c7a19ae0 c79fccc4 c79fccc4 c07ec428 00000000 c07f7c18 c7a1e9c0 00000001
[    7.818298] cce0  00000003 c79fcc24 c0853100 c07776f8 00000000 00000001 00000004 c08534ac
[    7.827728] cd00  0000000a 00000000 00000000 00000000 00000000 00000100 00000000 00000000
[    7.837127] cd20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 c02935c4
[    7.846496]
[    7.846496] R6: 0xc0851f80:
[    7.851196] 1f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.860626] 1fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.869995] 1fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.879425] 1fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 c0617fd0
[    7.888824] 2000  c7884e00 c884a000 fffffffe 00000001 00000000 00000000 dead4ead ffffffff
[    7.898193] 2020  ffffffff c0852024 c0852024 00000000 00000000 c085200c 00000002 00000039
[    7.907623] 2040  c07e1710 00000500 00000800 00000800 00000800 00000000 00000001 00400000
[    7.917053] 2060  00000000 00000000 dead4ead ffffffff ffffffff 00000000 00000000 00000000
[    7.926452]
[    7.926452] R9: 0xc085205c:
[    7.931091] 205c  00400000 00000000 00000000 dead4ead ffffffff ffffffff 00000000 00000000
[    7.940521] 207c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.949890] 209c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.959320] 20bc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.968749] 20dc  00000000 c08520e0 c08520e0 c028a860 00000001 00000000 00000000 00000000
[    7.978179] 20fc  00000000 00000000 00000000 00000000 0012d640 00000000 00000000 00000000
[    7.987518] 211c  00000000 00000000 00000000 00000000 00000000 00000000 00020004 00000000
[    7.996887] 213c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.006317]
[    8.006317] R10: 0xc1839585:
[    8.011047] 9584  00000024 c1114080 00000000 00000002 00000000 c1839598 c1839598 00000000
[    8.020477] 95a4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.029907] 95c4  00000000 00000000 00000000 00000000 00000000 c78c1800 00000004 c111b800
[    8.039276] 95e4  00000000 c78b3050 00000002 c111b660 00000000 00000007 00000000 c18355c0
[    8.048675] 9604  c7822600 00000000 ffffffff 00000002 00000000 00000000 00000000 00000000
[    8.058105] 9624  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.067535] 9644  00000000 00000000 00000002 00000100 c1839654 c1839654 00000000 00000000
[    8.076904] 9664  00000000 00000000 00000000 c7bdaa20 00000048 c1121b40 00000000 c7a83810
[    8.086303] 9684  00000038 c111f000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.095733] Process kworker/0:2 (pid: 72, stack limit = 0xc7bc82f8)
[    8.102416] Stack: (0xc7bc9f00 to 0xc7bca000)
[    8.107147] 9f00: c7abcec0 c18355c0 c1839600 00000000 c028a860 c1839605 c7bc9f5c c7bc9f28
[    8.115875] 9f20: c00b5630 c028a86c c05f5d44 c0262edc c7abcec0 c7abcec0 c18355c0 c07cc588
[    8.124633] 9f40: c18355d4 c7abced0 00000009 c7bc8000 c7bc9fac c7bc9f60 c00b5cd4 c00b5528
[    8.133392] 9f60: c004b500 c004a0a4 c004ba40 c004ba40 c004ba40 c7abced0 c004ba40 c004ba40
[    8.142150] 9f80: c00b5b2c c783be94 00000002 c7abcec0 c00b5b2c 00000000 00000000 00000000
[    8.150848] 9fa0: c7bc9ff4 c7bc9fb0 c00bc910 c00b5b38 00000000 c7abcec0 00000000 00000000
[    8.159606] 9fc0: c783be94 dead4ead ffffffff ffffffff c7bc9fd0 c7bc9fd0 c783be94 c00bc87c
[    8.168395] 9fe0: c00a2c2c 00000013 00000000 c7bc9ff8 c00a2c2c c00bc888 45515541 55515155
[    8.177093] Backtrace:
[    8.179870] [<c028a860>] (dispc_error_worker+0x0/0x648) from [<c00b5630>] (process_one_work+0x114/0x410)
[    8.190002] [<c00b551c>] (process_one_work+0x0/0x410) from [<c00b5cd4>] (worker_thread+0x1a8/0x490)
[    8.199645] [<c00b5b2c>] (worker_thread+0x0/0x490) from [<c00bc910>] (kthread+0x94/0x98)
[    8.208312] [<c00bc87c>] (kthread+0x0/0x98) from [<c00a2c2c>] (do_exit+0x0/0x720)
[    8.216339]  r7:00000013 r6:c00a2c2c r5:c00bc87c r4:c783be94
[    8.222686] Code: e1a04000 e3570000 1afffff5 e5903044 (e5d3e198)
[    8.230499] ---[ end trace 63d1730962bdecfd ]---
[    8.235473] Kernel panic - not syncing: Fatal exception
[    8.241119] Backtrace:
[    8.244323] [<c0057224>] (dump_backtrace+0x0/0x110) from [<c05f22c4>] (dump_stack+0x18/0x1c)
[    8.253387]  r6:c7bc8010 r5:00000000 r4:c0824ce8 r3:c7bc8000
[    8.259735] [<c05f22ac>] (dump_stack+0x0/0x1c) from [<c05f2358>] (panic+0x90/0x1bc)
[    8.267944] [<c05f22c8>] (panic+0x0/0x1bc) from [<c005778c>] (die+0x1c4/0x1d4)
[    8.275665]  r3:00000000 r2:c0824cf8 r1:c7bc8000 r0:c07108d4
[    8.282073]  r7:00000017
[    8.284881] [<c00575c8>] (die+0x0/0x1d4) from [<c005ba4c>] (__do_kernel_fault+0x7c/0x8c)
[    8.293548]  r8:00000000 r7:00000017 r6:00000000 r5:00000198 r4:c7bc9eb8
[    8.301086] [<c005b9d0>] (__do_kernel_fault+0x0/0x8c) from [<c005bb9c>] (do_page_fault+0x140/0x1f4)
[    8.310791]  r8:c7bc9eb8 r7:00000017 r6:00000001 r5:00000198 r4:00000000
[    8.318115] r3:c7bc9eb8
[    8.321075] [<c005ba5c>] (do_page_fault+0x0/0x1f4) from [<c004c558>] (do_DataAbort+0x3c/0xa4)
[    8.330230] [<c004c51c>] (do_DataAbort+0x0/0xa4) from [<c005296c>] (__dabt_svc+0x4c/0x60)
[    8.338989] Exception stack(0xc7bc9eb8 to 0xc7bc9f00)
[    8.344421] 9ea0:                                                       c79fccc0 00000000
[    8.353179] 9ec0: c79fccc0 00000000 c79fccc0 0012d640 c0852000 00000000 00000001 c08520dc
[    8.361907] 9ee0: c1839605 c7bc9f24 c7bc9f00 c7bc9f00 c028aa64 c028aa78 60000113 ffffffff
[    8.370666]  r7:00000000 r6:c0852000 r5:c7bc9eec r4:ffffffff
[    8.377075] [<c028a860>] (dispc_error_worker+0x0/0x648) from [<c00b5630>] (process_one_work+0x114/0x410)
[    8.387176] [<c00b551c>] (process_one_work+0x0/0x410) from [<c00b5cd4>] (worker_thread+0x1a8/0x490)
[    8.396881] [<c00b5b2c>] (worker_thread+0x0/0x490) from [<c00bc910>] (kthread+0x94/0x98)
[    8.405548] [<c00bc87c>] (kthread+0x0/0x98) from [<c00a2c2c>] (do_exit+0x0/0x720)
[    8.413604]  r7:00000013 r6:c00a2c2c r5:c00bc87c r4:c783be94
[    8.419952] CPU1: stopping
[    8.422882] Backtrace:
[    8.425659] [<c0057224>] (dump_backtrace+0x0/0x110) from [<c05f22c4>] (dump_stack+0x18/0x1c)
[    8.434631]  r6:c784e000 r5:c004aeb0 r4:c07cc280 r3:c784e000
[    8.441040] [<c05f22ac>] (dump_stack+0x0/0x1c) from [<c004c3dc>] (do_IPI+0x180/0x198)
[    8.449432] [<c004c25c>] (do_IPI+0x0/0x198) from [<c00529c8>] (__irq_svc+0x48/0xe0)
[    8.457580] Exception stack(0xc784ff10 to 0xc784ff58)
[    8.463043] ff00:                                     c784ff58 00000000 f5890fbf 00000001
[    8.471771] ff20: c183d100 c784ff58 ea47910b 00000001 f5890fbf 00000001 00000000 c784ff8c
[    8.480529] ff40: 18b2bfbf c784ff58 00000000 c006f740 80000113 ffffffff
[    8.487670] [<c006f700>] (omap4_enter_idle_wfi+0x0/0x108) from [<c03eb6f4>] (cpuidle_idle_call+0xb0/0x128)
[    8.497985]  r9:c006f700 r8:8000406a r7:c07d4604 r6:c183d110 r5:c089d80c
[    8.505218] r4:c183d100
[    8.508209] [<c03eb644>] (cpuidle_idle_call+0x0/0x128) from [<c00547ec>] (cpu_idle+0xd0/0x104)
[    8.517425]  r9:411fc093 r8:8000406a r6:c05fc19c r5:c0822024 r4:c784e000
[    8.524749] r3:00000001
[    8.527709] [<c005471c>] (cpu_idle+0x0/0x104) from [<c05ef41c>] (secondary_start_kernel+0x164/0x168)
[    8.537475]  r7:c0822140 r6:600001d3 r5:00000001 r4:00000002
[    8.543823] [<c05ef2b8>] (secondary_start_kernel+0x0/0x168) from [<805eef94>] (0x805eef94)
[    8.552673]  r6:10c0387d r5:00000015 r4:8785806a r3:c05eef7c
[    8.559020] Rebooting in 5 seconds..

thanks

Johnny.yu

best  wishes

  • Hi Johnny,

    If I understand correctly, you want to get a pixel clock of 103Mhz with a DPI display of 1024x768.

    If that is the case, you only need to set pixel_clock variable on the corresponding display structure and the code would make it best to try to get that value by configuring some DSS registers (PCD, LCD, etc). This auto-configuring of DSS registers is true at least for GB, I haven't reviewed ICS but I assume it should be the same.

    You shouldn't be modifying that range. In fact, on hardware, the higher frequency that DISPC functional clock could get is 186Mhz, 206Mhz is not possible, so you shouldn't be trying this in first place.

    With the configuration given, I calculate a refresh rate of ~72hz...

    Refresh Rate = Pixel Clock / [(hfp+width+hbp+sw)*(vfp+height+vbp+vsw)] = 103000000 / [(180+1024+400+240)*(1+768+4+3)] = ~72Hz

    On your case, you seem to already get 102.4 Mhz, and thus you are getting 71Hz:

    [    6.330566] omapdss DISPC: pck 102400
    [    6.334564] omapdss DISPC: hsw 240 hfp 180 hbp 400 vsw 3 vfp 1 vbp 4
    [    6.341339] omapdss DISPC: hsync 55531Hz, vsync 71Hz

    71Hz is valid but a more normal refresh rate is usually 60Hz, you could tweak your blankings or pixelclock to achieve such value. At any case, this is up to you and all these values should be within your panel datasheet's values range.

    If you are still getting SYNCLOST, typically this could mean your DISPC is most probably being overflowed; you could try to reduce PCLK or increase blankings even more, to give DISPC a chance to catch up. Another possibility would be to try to increase DISPC functional clock (if is not max yet = 186Mhz), but this should be last resort. The configuration you have shown shouldn't be very exhausting for DISPC so there might be another issue besides overflow.

  • Hello Jorge Bustamante,

           Thanks to reply .You said i know,this is my panel datasheet's values range:

    .clocks = {
       

    I set  the parameters according to the "typ" of  datasheet configuration LCD.But i have some issue .first the the HSW Beyond the 256.second it can't reach to the 103Mhz ,it seems to reach 93mhz .So i done DPI set DSI CLK but it still getting SYNCLOST,Below is my registration data in the platform:       .dispc = {
                .channel = {
                    .lck_div        = 1,// Logic Clock = 200.05 MHz
                    .pck_div        = 2,// Pixel Clock = 100.02 MHz
                    .lcd_clk_src    = OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC,
                          },
                .dispc_fclk_src = OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC,
                              },
     
            .dsi = {
                .regn           = 27,// Fint = 1.4 MHz
                .regm           = 422,// DDR Clock = 120.03 MHz
                .regm_dispc     = 6,// PLL1_CLK1 = 200.05 MHz
                .regm_dsi       = 6,// PLL1_CLK1 = 200.05 MHz
                .lp_clk_div     = 5,
                .offset_ddr_clk = 0,
                .dsi_fclk_src   = OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI,
            },
                },
     
           .panel={
                   .config=OMAP_DSS_LCD_TFT,
                   },   
    };

    and my display configuration is :

                            .x_res          = 1024,
                            .y_res          = 768,

                            .pixel_clock    = 103000,

                            .hfp            = 260,
                            .hsw            = 256,//320,
                            .hbp            = 480,

                            .vfp            = 16,
                            .vsw            = 10,
                            .vbp            = 6,
                    },
                    .config                 = OMAP_DSS_LCD_TFT,
                    //.power_on_delay         = 60,
                   // .power_off_delay        = 30,
                    .name                   = "chimei_lcd",

    thanks

    johnny

  • I would use min configuration:

                            .pixel_clock    = 97000,

                            .hfp            = 180,
                            .hsw            = 240,
                            .hbp            = 400,

                            .vfp            = 1,
                            .vsw            = 3,
                            .vbp            = 4,

    And I wouldn't use DSI PLL for that and just leave the DPI configuration as it is on your first post.

    You should be getting 97Mhz PCLK. you can double check on the logs that you are getting that. You can also go to debugfs and cat the contents of the /sys/kernel/debug/omapdss/clocks file and see if you are getting the 97Mhz PCLK. Alternatively you could probe the PCLK line with an oscilloscope, but this wouldn't be possible if you are still getting SYNCLOST as the DISPC module would turn off.

    If you are still getting SYNCLOST with this configuration, you can try decreasing ONLY the pixel_clock value and see if it fixes the SYNCLOST issue on the OMAP side in some point. You might also want to check if there is any overlay running on the manager attached to the display and make sure the overlay is not downscaling (overlay's input size > overlay's output size), as this would require extra DISPC effort (there is a requirement for downscaling regarding DISPC FCLK and PCLK ratio).

  •     I done it  that you said .it would  get 97MHZ .But have you any ideas to set 103Mhz ?thans.

    johnny

  • Does it work with this configuration? You shouldn't be needing to change anything but just the pixel_clock. Why would you like it to be 103Mhz instead of 97Mhz?

  • Hello Jorge Bustamante,

              It could work , but i have one issue that LCD color .As below show :

    I have no ways to solve it .Do you know what this is ? Thank you!

    Johnny

  • It is hard to know what it could be without further debugging, but I don't think it is related to pixelclock but to some pixelformat issue somewhere in the path. Make sure all DPI signals are wired correctly and that you have configured the right pixel format for your panel.