From e1f6dce5463dcb8204e3a53695a5922045bc7e60 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Tue, 13 Aug 2019 18:50:19 +0200 Subject: [PATCH] staging: pvr: Makefile: disable -DSYS_USING_INTERRUPTS because it leads to system crash: [ 198.398193] ------------[ cut here ]------------ [ 198.403091] WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x214/0x334 [ 198.412729] 44000000.ocp:L3 Standard Error: MASTER MPU TARGET SGX (Read Link): At Address: 0x00000134 : Data Access in User mode during Functional access [ 198.427201] Modules linked in: pvrsrvkm_omap_omap5_sgx544_116(C) cdc_ether usbnet cdc_acm usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs arc4 bnep wl18xx wlcore mac80211 cfg80211 dwc3 panel_boe_w677l omapdrm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks omapdss leds_gpio connector_hdmi encoder_tpd12s015 wwan_on_off cec omapdss_base pwm_bl pwm_omap_dmtimer generic_adc_battery ehci_omap wlcore_sdio tca8418_keypad leds_is31fl319x dwc3_omap ina2xx bmp280_spi bq27xxx_battery_i2c bq27xxx_battery bq2429x_charger gpio_twl6040 tsc2007 crtouch_mt palmas_pwrbutton as5013 twl6040_vibra hci_uart bluetooth palmas_gpadc usb3503 ecdh_generic bmc150_magn_i2c bmg160_i2c bmc150_accel_i2c bmc150_accel_core bmg160_core bmc150_magn bno055 industrialio_triggered_buffer [ 198.502858] bmp280_i2c bmp280 kfifo_buf industrialio ip_tables x_tables ipv6 autofs4 [last unloaded: pvrsrvkm_omap_omap5_sgx544_116] [ 198.515562] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G WC 4.19.4-letux-lpae+ #675 [ 198.524555] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 198.530912] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 198.539135] [] (show_stack) from [] (dump_stack+0x7c/0x9c) [ 198.546803] [] (dump_stack) from [] (__warn+0xd8/0x108) [ 198.554188] [] (__warn) from [] (warn_slowpath_fmt+0x44/0x6c) [ 198.562131] [] (warn_slowpath_fmt) from [] (l3_interrupt_handler+0x214/0x334) [ 198.571546] [] (l3_interrupt_handler) from [] (__handle_irq_event_percpu+0xa8/0x264) [ 198.581606] [] (__handle_irq_event_percpu) from [] (handle_irq_event_percpu+0x24/0x78) [ 198.591849] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x38/0x5c) [ 198.601259] [] (handle_irq_event) from [] (handle_fasteoi_irq+0xa8/0x124) [ 198.610300] [] (handle_fasteoi_irq) from [] (generic_handle_irq+0x18/0x28) [ 198.619436] [] (generic_handle_irq) from [] (__handle_domain_irq+0x8c/0xb4) [ 198.628664] [] (__handle_domain_irq) from [] (gic_handle_irq+0x54/0x90) [ 198.637522] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x8c) [ 198.645449] Exception stack(0xc0e01e10 to 0xc0e01e58) [ 198.650805] 1e00: 3173de93 c0c85e00 00000000 2e346000 [ 198.659472] 1e20: c0c85e00 c0c85e00 00000200 00200102 c0e01e60 c0e00000 0000000a 00000001 [ 198.668134] 1e40: 0000000b c0e01e60 c029dd2c c02020cc 400c0113 ffffffff [ 198.675152] [] (__irq_svc) from [] (__do_softirq+0x8c/0x3a4) [ 198.683001] [] (__do_softirq) from [] (irq_exit+0x78/0xd8) [ 198.690666] [] (irq_exit) from [] (__handle_domain_irq+0x90/0xb4) [ 198.698974] [] (__handle_domain_irq) from [] (gic_handle_irq+0x54/0x90) [ 198.707831] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x8c) [ 198.715756] Exception stack(0xc0e01ee0 to 0xc0e01f28) [ 198.721113] 1ee0: 00000000 eefcfb40 00000001 00000008 eefcb638 00000001 00000001 c0e8d2d8 [ 198.729776] 1f00: 310ead9a 0000002e 00000000 00000001 00000000 c0e01f30 c029d7e4 c0739b98 [ 198.738435] 1f20: 200c0013 ffffffff [ 198.742142] [] (__irq_svc) from [] (cpuidle_enter_state+0x284/0x440) [ 198.750729] [] (cpuidle_enter_state) from [] (do_idle+0x1cc/0x260) [ 198.759129] [] (do_idle) from [] (cpu_startup_entry+0x18/0x1c) [ 198.767161] [] (cpu_startup_entry) from [] (start_kernel+0x3f4/0x490) [ 198.775827] ---[ end trace f132b21e3445e2ad ]--- [ 198.780802] Unhandled fault: asynchronous external abort (0x1211) at 0x00000000 Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile index 71e9e64b87a8bc..ece4f2dad13560 100644 --- a/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile +++ b/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile @@ -216,7 +216,6 @@ endif ccflags-y += -Iinclude/drm \ -I$(src)/services4/3rdparty/linux_drm -ccflags-y += -DSYS_USING_INTERRUPTS # should probably be enabled but leads to paging errors ccflags-y += -DSUPPORT_HW_RECOVERY ccflags-y += -DPVR_LINUX_USING_WORKQUEUES ccflags-y += -DSUPPORT_DRI_DRM @@ -226,6 +225,7 @@ ccflags-y += -DMODULE # this disables some code in AcquireGPTimer in sysutils_li ccflags-y += -DSUPPORT_DMABUF # these must not be set or we can't compile successfully for omap +ccflags-n += -DSYS_USING_INTERRUPTS # should probably be enabled but leads to paging errors, asynchronous external abort ccflags-n += -DSUPPORT_DRI_DRM_EXT ccflags-n += -DSUPPORT_DRI_DRM_PLUGIN ccflags-n += -DPVR_DISPLAY_CONTROLLER_DRM_IOCTL