Hello,
We have one fedora setup with fedora 6.5.6-300.fc39.x86_64 kernel that works perfectly with our driver and application.
When we tried duplicate on another system with same kernel, same cpu hw the only difference it has newer bios application crushes. Bellow dump from dmesg generated when it crushes.
How we can debug this problem? I am not able find any where documentation on how install and use debug version for the kernel.
Any help apriciated.
Thanks,
269.549513] ------------[ cut here ]------------
[ 269.549515] ioremap on RAM at 0x0000000040000000 - 0x000000004007ffff
[ 269.549519] WARNING: CPU: 2 PID: 1961 at arch/x86/mm/ioremap.c:216 __ioremap_caller+0x381/0x3a0
[ 269.549528] Modules linked in: gendrv(OE) snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip_set nf_tables nfnetlink snd_hda_codec_hdmi qrtr snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils intel_rapl_msr intel_rapl_common snd_soc_hdac_hda snd_hda_ext_core x86_pkg_temp_thermal intel_powerclamp snd_soc_acpi_intel_match snd_soc_acpi soundwire_generic_allocation coretemp snd_soc_rt5660 soundwire_bus kvm_intel snd_soc_rl6231 mei_pxp snd_hda_intel snd_soc_core snd_intel_dspcfg snd_intel_sdw_acpi mei_hdcp iTCO_wdt intel_pmc_bxt snd_hda_codec kvm ee1004 iTCO_vendor_support sunrpc snd_hda_core snd_hwdep snd_compress binfmt_misc ac97_bus snd_pcm_dmaengine snd_seq snd_seq_device irqbypass
[ 269.549561] intel_cstate snd_pcm pcspkr mei_me intel_wmi_thunderbolt wmi_bmof mei i2c_i801 i2c_smbus idma64 igen6_edac snd_timer snd soundcore i2c_scmi vfat fat intel_hid acpi_pad acpi_tad sparse_keymap i2c_dev loop zram i915 mmc_block crct10dif_pclmul mxl_gpy polynomial crc32_pclmul crc32c_intel polyval_generic dwmac_intel sdhci_pci stmmac i2c_algo_bit drm_buddy cqhci ghash_clmulni_intel sdhci pcs_xpcs sha512_ssse3 phylink ttm mmc_core drm_display_helper intel_ish_ipc intel_ishtp cec 8250_lpss video wmi pinctrl_elkhartlake ip6_tables ip_tables fuse
[ 269.549587] CPU: 2 PID: 1961 Comm: app_ex_muxponde Tainted: G OE 6.5.6-300.fc39.x86_64 #1
[ 269.549590] Hardware name: ADLINK Technology Inc. cExpress-EL/cExpress-EL, BIOS 1.15.10 03/11/2024
[ 269.549592] RIP: 0010:__ioremap_caller+0x381/0x3a0
[ 269.549595] Code: 85 c0 0f 89 ae fd ff ff e9 50 fd ff ff 48 8d 54 24 28 48 8d 74 24 18 48 c7 c7 59 f9 86 b3 c6 05 4f 64 43 02 01 e8 8f 45 07 00 <0f> 0b e9 48 fd ff ff 89 c6 48 c7 c7 b8 08 8f b3 e8 ca 7c 10 00 e9
[ 269.549598] RSP: 0018:ffffc1f5c6faba60 EFLAGS: 00010282
[ 269.549600] RAX: 0000000000000000 RBX: 0000000040000000 RCX: 0000000000000027
[ 269.549601] RDX: ffff9dd7a4321548 RSI: 0000000000000001 RDI: ffff9dd7a4321540
[ 269.549603] RBP: ffff9dd69df5c000 R08: 0000000000000000 R09: ffffc1f5c6fab8f0
[ 269.549604] R10: 0000000000000003 R11: ffffffffb4345d28 R12: 0000000000000002
[ 269.549605] R13: 0000000000080000 R14: ffffffffc11d7ef3 R15: 0000000000000000
[ 269.549606] FS: 00007f5d65484480(0000) GS:ffff9dd7a4300000(0000) knlGS:0000000000000000
[ 269.549608] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 269.549610] CR2: 0000000003281138 CR3: 0000000106a16000 CR4: 0000000000350ee0
[ 269.549612] Call Trace:
[ 269.549614]
[ 269.549616] ? __ioremap_caller+0x381/0x3a0
[ 269.549619] ? __warn+0x81/0x130
[ 269.549625] ? __ioremap_caller+0x381/0x3a0
[ 269.549628] ? report_bug+0x171/0x1a0
[ 269.549632] ? prb_read_valid+0x1b/0x30
[ 269.549636] ? handle_bug+0x3c/0x80
[ 269.549639] ? exc_invalid_op+0x17/0x70
[ 269.549642] ? asm_exc_invalid_op+0x1a/0x20
[ 269.549645] ? gendrv_alloc_shmem.constprop.0+0x293/0x780 [gendrv]
[ 269.549658] ? __ioremap_caller+0x381/0x3a0
[ 269.549662] gendrv_alloc_shmem.constprop.0+0x293/0x780 [gendrv]
[ 269.549673] ? mntput_no_expire+0x4a/0x250
[ 269.549676] ? terminate_walk+0x61/0x100
[ 269.549679] ? memcg_slab_post_alloc_hook+0x17d/0x250
[ 269.549683] ? kmem_cache_alloc+0x198/0x380
[ 269.549685] ? vm_area_alloc+0x5d/0xa0
[ 269.549687] mmap_region+0x246/0x8f0
[ 269.549692] do_mmap+0x3d1/0x5a0
[ 269.549695] vm_mmap_pgoff+0xed/0x1a0
[ 269.549698] ? do_syscall_64+0x6c/0x90
[ 269.549701] ksys_mmap_pgoff+0x18d/0x1f0
[ 269.549704] do_syscall_64+0x5d/0x90
[ 269.549707] ? syscall_exit_to_user_mode+0x2b/0x40
[ 269.549711] ? do_syscall_64+0x6c/0x90
[ 269.549713] ? exc_page_fault+0x7f/0x180
[ 269.549715] entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[ 269.549718] RIP: 0033:0x7f5d6512f66c
[ 269.549750] Code: 1e fa 41 f7 c1 ff 0f 00 00 75 33 55 48 89 e5 41 54 41 89 cc 53 48 89 fb 48 85 ff 74 41 45 89 e2 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 7c 5b 41 5c 5d c3 0f 1f 80 00 00 00 00 48 8b
[ 269.549751] RSP: 002b:00007ffc84fc3850 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
[ 269.549754] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5d6512f66c
[ 269.549755] RDX: 0000000000000003 RSI: 0000000000080000 RDI: 0000000000000000
[ 269.549756] RBP: 00007ffc84fc3860 R08: 0000000000000003 R09: 0000000000001000
[ 269.549757] R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000002
[ 269.549758] R13: 0000000000000000 R14: 00007f5d655d3000 R15: 0000000001698d78
[ 269.549761]
[ 269.549762] β[ end trace 0000000000000000 ]β
[ 269.549764] <1>alloc_shmem: ioremap done failed.
[ 269.549766] <1>Cannot remap memory for device digi0 .