mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maud Spierings <maud_spierings@hotmail.com>
To: william.qiu@starfivetech.com
Cc: hal.feng@starfivetech.com, linux-kernel@vger.kernel.org,
	linux-pwm@vger.kernel.org, p.zabel@pengutronix.de,
	ukleinek@kernel.org
Subject: Re: [PATCH v16] pwm: opencores: Add PWM driver support
Date: Sun, 5 Jan 2025 15:51:22 +0100	[thread overview]
Message-ID: <AM7P189MB100935C2EB7BC185C6567A7AE3172@AM7P189MB1009.EURP189.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20241028014609.153997-1-william.qiu@starfivetech.com>

Hello William,


I tested this patch on my deepcomputing fml13v01 with a pwm-backlight 
and I am getting an oops:

[   10.308290] Unable to handle kernel access to user memory without 
uaccess routines at virtual address 0000000200000001
[   10.319038] Oops [#1]
[   10.321318] Modules linked in: pwm_bl(+) sfctemp designware_i2s 
snd_soc_spdif_tx dm_mod configfs ip_tables x_tables vs_drm 
drm_dma_helper stmmac pcs_xpcs pcie_starfive phy_jh7110_usb 
phy_jh7110_pcie phy_jh
7110_dphy_rx phy_generic overlay jh7110_trng jh7110_tdm jh7110_pwmdac 
inno_hdmi drm_kms_helper i2c_hid_of i2c_hid hid_multitouch hci_uart drm 
drm_panel_orientation_quirks clk_starfive_jh7110_vout clk_starfive
_jh7110_stg clk_starfive_jh7110_isp clk_starfive_jh7110_aon 
clk_starfive_jh7100_audio cdns3_starfive cdns3 cdns_usb_common roles 
btintel bridge stp llc bluetooth libaes ecdh_generic ecc backlight efivarfs
[   10.375483] CPU: 3 UID: 0 PID: 307 Comm: (udev-worker) Not tainted 
6.13.0-rc4-00032-ga27a3464e6ab-dirty #16
[   10.385227] Hardware name: Unknown Unknown Product/Unknown Product, 
BIOS 2021.10 10/01/2021
[   10.393576] epc : ocores_pwm_get_state+0x22/0xca
[   10.398204]  ra : pwm_get_state_hw+0x10c/0x132
[   10.402651] epc : ffffffff804f8d48 ra : ffffffff804f81f4 sp : 
ffffffc600f1b5c0
[   10.409875]  gp : ffffffff814f8658 tp : ffffffd6c3efe400 t0 : 
0000000000000000
[   10.417096]  t1 : 0000000000000040 t2 : ffffffff814a0498 s0 : 
ffffffc600f1b600
[   10.424317]  s1 : ffffffd6c0b9b800 a0 : ffffffc6007b0000 a1 : 
ffffffd6c0b9bbb8
[   10.431539]  a2 : ffffffc600f1b690 a3 : 0000000000000000 a4 : 
0000000000000000
[   10.438760]  a5 : 0000000200000001 a6 : ffffffd6c07fd918 a7 : 
0000000000000000
[   10.445982]  s2 : ffffffff80e6b2c0 s3 : ffffffd6c0b9bec0 s4 : 
ffffffc600f1b690
[   10.453204]  s5 : ffffffd6c0b9bbb8 s6 : 0000000000000000 s7 : 
ffffffd6c0b9bb78
[   10.460426]  s8 : ffffffc600f1bc90 s9 : 0000000000000000 s10: 
ffffffc600f1bc40
[   10.467648]  s11: 0000000000000001 t3 : 0000000000000000 t4 : 
0000000000000002
[   10.474868]  t5 : 0000000000000000 t6 : 0000000000000402
[   10.480179] status: 0000000200000120 badaddr: 0000000200000001 cause: 
000000000000000d
[   10.488096] [<ffffffff804f8d48>] ocores_pwm_get_state+0x22/0xca
[   10.494019] [<ffffffff804f81f4>] pwm_get_state_hw+0x10c/0x132
[   10.499768] [<ffffffff804f8338>] pwm_request_from_chip.part.0+0x11e/0x182
[   10.506556] [<ffffffff804f8640>] of_pwm_xlate_with_flags+0x26/0x64
[   10.512739] [<ffffffff804f7084>] of_pwm_get+0x146/0x1ea
[   10.517967] [<ffffffff804f84e8>] pwm_get+0x14c/0x1d4
[   10.522934] [<ffffffff804f8582>] devm_pwm_get+0x12/0x4e
[   10.528166] [<ffffffff018ab2ae>] pwm_backlight_probe+0x102/0x84a [pwm_bl]
[   10.534963] [<ffffffff805a05c4>] platform_probe+0x4e/0xb2
[   10.540369] [<ffffffff8059e0b0>] really_probe+0x84/0x22a
[   10.545684] [<ffffffff8059e2b2>] __driver_probe_device+0x5c/0xdc
[   10.551694] [<ffffffff8059e3f4>] driver_probe_device+0x2c/0xb2
[   10.557529] [<ffffffff8059e574>] __driver_attach+0x6c/0x11a
[   10.563104] [<ffffffff8059c1c4>] bus_for_each_dev+0x62/0xb0
[   10.568679] [<ffffffff8059daf2>] driver_attach+0x1a/0x22
[   10.573993] [<ffffffff8059d3e8>] bus_add_driver+0xce/0x1d6
[   10.579481] [<ffffffff8059f114>] driver_register+0x40/0xda
[   10.584970] [<ffffffff805a034c>] __platform_driver_register+0x1c/0x24
[   10.591415] [<ffffffff018b1020>] 
pwm_backlight_driver_init+0x20/0x1000 [pwm_bl]
[   10.598730] [<ffffffff8000f12c>] do_one_initcall+0x5c/0x1aa
[   10.604306] [<ffffffff8009f992>] do_init_module+0x52/0x1b2
[   10.609796] [<ffffffff800a10f2>] load_module+0x1374/0x177e
[   10.615284] [<ffffffff800a16c0>] init_module_from_file+0x76/0xae
[   10.621292] [<ffffffff800a18e4>] __riscv_sys_finit_module+0x1b4/0x31c
[   10.627735] [<ffffffff80983cf4>] do_trap_ecall_u+0x1a8/0x1d4
[   10.633399] [<ffffffff8098d8a2>] 
_new_vmalloc_restore_context_a0+0xc2/0xce
[   10.640285] Code: ec4e 0080 3983 0785 8aae 8a32 b783 0009 b503 0089 
(639c) c399
[   10.647772] ---[ end trace 0000000000000000 ]---


kind regards,
Maud Spierings


  parent reply	other threads:[~2025-01-05 14:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28  1:46 William Qiu
2024-11-19  6:45 ` William Qiu
2024-12-19 20:59 ` Uwe Kleine-König
2024-12-23  2:47   ` William Qiu
2024-12-23 17:12     ` Uwe Kleine-König
2024-12-24  1:53       ` William Qiu
2024-12-27  8:38         ` Uwe Kleine-König
2024-12-27  8:42           ` William Qiu
2025-01-05 14:51 ` Maud Spierings [this message]
2025-01-06 10:08   ` William Qiu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM7P189MB100935C2EB7BC185C6567A7AE3172@AM7P189MB1009.EURP189.PROD.OUTLOOK.COM \
    --to=maud_spierings@hotmail.com \
    --cc=hal.feng@starfivetech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=ukleinek@kernel.org \
    --cc=william.qiu@starfivetech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®