export.c:undefined reference to `atomic64_read_386'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d4961772226de3b48a395a26c076d450d7044c76
commit: 3cc55f4434b421d37300aa9a167ace7d60b45ccf nfs: use change attribute for NFS re-exports
date: 2 months ago
config: um-randconfig-r023-20210410 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3cc55f4434b421d37300aa9a167ace7d60b45ccf
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
/usr/bin/ld: kernel/sched/rt.o: in function `update_curr_rt':
rt.c:(.text+0x1fa0): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/sched/deadline.o:deadline.c:(.text+0x3455): more undefined references to `atomic64_add_386' follow
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `cpu_clock_sample_group':
posix-cpu-timers.c:(.text+0x14b4): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x14c2): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x14e6): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x14f7): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x1506): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o:posix-cpu-timers.c:(.text+0x15c8): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `cpu_clock_sample_group':
posix-cpu-timers.c:(.text+0x169f): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x16ef): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x173f): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `thread_group_sample_cputime':
posix-cpu-timers.c:(.text+0x2d0b): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x2d1c): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x2d2b): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o: in function `run_posix_cpu_timers':
posix-cpu-timers.c:(.text+0x2f42): undefined reference to `atomic64_read_386'
/usr/bin/ld: posix-cpu-timers.c:(.text+0x2f53): undefined reference to `atomic64_read_386'
/usr/bin/ld: kernel/time/posix-cpu-timers.o:posix-cpu-timers.c:(.text+0x2f64): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_max_write':
pids.c:(.text+0x171): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_cancel.constprop.0':
pids.c:(.text+0x27c): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_can_fork':
pids.c:(.text+0x3b3): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: pids.c:(.text+0x3c3): undefined reference to `atomic64_read_386'
/usr/bin/ld: pids.c:(.text+0x41b): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_can_attach':
pids.c:(.text+0x553): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_cancel_attach':
pids.c:(.text+0x633): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/cgroup/pids.o: in function `pids_css_alloc':
pids.c:(.text+0x7ea): undefined reference to `atomic64_set_386'
/usr/bin/ld: pids.c:(.text+0x7fa): undefined reference to `atomic64_set_386'
/usr/bin/ld: pids.c:(.text+0x807): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/trace/trace_clock.o: in function `trace_clock_counter':
trace_clock.c:(.text+0x175): undefined reference to `atomic64_add_return_386'
/usr/bin/ld: kernel/bpf/core.o: in function `___bpf_prog_run':
core.c:(.text+0x3802): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_inc':
syscall.c:(.text+0x33): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_inc_with_uref':
syscall.c:(.text+0x54): undefined reference to `atomic64_inc_386'
/usr/bin/ld: syscall.c:(.text+0x5f): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_add':
syscall.c:(.text+0x83): undefined reference to `atomic64_add_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_inc':
syscall.c:(.text+0xa0): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_put_uref':
syscall.c:(.text+0xf3): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_map_inc_not_zero':
syscall.c:(.text+0x34c): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x3b0): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: syscall.c:(.text+0x44e): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_inc_not_zero':
syscall.c:(.text+0x547): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0x5aa): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_sub':
syscall.c:(.text+0xce5): undefined reference to `atomic64_sub_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_map_put.constprop.0':
syscall.c:(.text+0x6bd3): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `map_create':
syscall.c:(.text+0x77b9): undefined reference to `atomic64_set_386'
/usr/bin/ld: syscall.c:(.text+0x77c7): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_get':
syscall.c:(.text+0x9504): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_map_get_with_uref':
syscall.c:(.text+0x95e4): undefined reference to `atomic64_inc_386'
/usr/bin/ld: syscall.c:(.text+0x95ef): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_prog_put.constprop.0':
syscall.c:(.text+0xc220): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_prog_get':
syscall.c:(.text+0xc6fa): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_prog_load':
syscall.c:(.text+0xd314): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_init':
syscall.c:(.text+0xe095): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_inc':
syscall.c:(.text+0xe10d): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_put':
syscall.c:(.text+0xe130): undefined reference to `atomic64_dec_return_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_tracing_prog_attach':
syscall.c:(.text+0xe683): undefined reference to `atomic64_set_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_get_from_fd':
syscall.c:(.text+0xef65): undefined reference to `atomic64_inc_386'
/usr/bin/ld: kernel/bpf/syscall.o: in function `bpf_link_by_id':
syscall.c:(.text+0xf322): undefined reference to `atomic64_read_386'
/usr/bin/ld: syscall.c:(.text+0xf383): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: kernel/bpf/bpf_iter.o: in function `prepare_seq_file':
bpf_iter.c:(.text+0x3d0): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/nfs/nfstrace.o: in function `trace_event_raw_event_nfs_inode_event':
nfstrace.c:(.text+0x31ec): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/nfstrace.o: in function `trace_event_raw_event_nfs_inode_event_done':
nfstrace.c:(.text+0x5a01): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/nfstrace.o: in function `trace_event_raw_event_nfs_access_exit':
nfstrace.c:(.text+0x5ea1): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/export.o: in function `nfs_fetch_iversion':
>> export.c:(.text+0x4d): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/fscache.o: in function `nfs_fscache_update_auxdata':
fscache.c:(.text+0x183): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/fscache-index.o:fscache-index.c:(.text+0x193): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: fs/nfs/nfs4proc.o: in function `nfs4_update_changeattr_locked':
nfs4proc.c:(.text+0xd3d): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/nfs/nfs4proc.o: in function `_nfs4_open_and_get_state':
nfs4proc.c:(.text+0x1187f): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfs/delegation.o: in function `nfs_inode_set_delegation':
delegation.c:(.text+0x20a1): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nfsd/nfs3xdr.o: in function `fill_pre_wcc':
nfs3xdr.c:(.text+0x1cee): undefined reference to `atomic64_read_386'
/usr/bin/ld: nfs3xdr.c:(.text+0x1dca): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/nfsd/nfs3xdr.o: in function `fill_post_wcc':
nfs3xdr.c:(.text+0x2099): undefined reference to `atomic64_read_386'
/usr/bin/ld: nfs3xdr.c:(.text+0x20df): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x8): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x15): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x22): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x2f): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x3c): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x49): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: net/ipv4/inet_timewait_sock.o: in function `inet_twsk_alloc':
inet_timewait_sock.c:(.text+0xeb): undefined reference to `atomic64_read_386'
/usr/bin/ld: inet_timewait_sock.c:(.text+0xf7): undefined reference to `atomic64_set_386'
/usr/bin/ld: net/ipv4/inet_connection_sock.o: in function `inet_csk_clone_lock':
inet_connection_sock.c:(.text+0xc18): undefined reference to `atomic64_read_386'
/usr/bin/ld: inet_connection_sock.c:(.text+0xc24): undefined reference to `atomic64_set_386'
/usr/bin/ld: net/ipv4/tcp_input.o: in function `inet_reqsk_alloc':
tcp_input.c:(.text+0x37cd): undefined reference to `atomic64_set_386'
/usr/bin/ld: net/sunrpc/auth_gss/svcauth_gss.o: in function `gss_proxy_save_rsc':
svcauth_gss.c:(.text+0x1dd4): undefined reference to `atomic64_inc_return_386'
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[android-common:android-mainline-tracking 616/836] ld.lld: error: undefined symbol: usb_get_phy
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-mainline-tracking
head: 74f61c888eeeb9cbc57d44c61fafe32df9b3da51
commit: 085d800ef7dd363aaba2bc750f8495d519b408b2 [616/836] ANDROID: GKI: Enable CONFIG_USB_PHY for usb drivers like dwc3
config: arm-randconfig-r013-20210410 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-mainline-tracking
git checkout 085d800ef7dd363aaba2bc750f8495d519b408b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected
ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected
>> ld.lld: error: undefined symbol: usb_get_phy
>>> referenced by pda_power.c
>>> power/supply/pda_power.o:(pda_power_probe) in archive drivers/built-in.a
--
>> ld.lld: error: undefined symbol: usb_put_phy
>>> referenced by pda_power.c
>>> power/supply/pda_power.o:(pda_power_probe) in archive drivers/built-in.a
>>> referenced by pda_power.c
>>> power/supply/pda_power.o:(pda_power_remove) in archive drivers/built-in.a
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for USB_PHY
Depends on USB_SUPPORT
Selected by
- GKI_HIDDEN_USB_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for SND_JACK
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on SOUND && !UML && SND && SND_JACK
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH 3/3] staging: rtl8712: Use existing arc4 implementation
by kernel test robot
Hi Christophe,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Christophe-JAILLET/staging-rtl81...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 32abcac8037da5dc570c22abf266cbb92eee9fc9
config: arm-randconfig-s032-20210410 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
# https://github.com/0day-ci/linux/commit/ea2709e5f53370e588967f79d2eb84755...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christophe-JAILLET/staging-rtl8188eu-Use-existing-arc4-implementation/20210410-213656
git checkout ea2709e5f53370e588967f79d2eb847555ea9d3b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/staging/rtl8712/rtl871x_security.c: In function 'r8712_wep_encrypt':
>> drivers/staging/rtl8712/rtl871x_security.c:147:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
147 | }
| ^
drivers/staging/rtl8712/rtl871x_security.c: In function 'r8712_wep_decrypt':
drivers/staging/rtl8712/rtl871x_security.c:182:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
182 | }
| ^
drivers/staging/rtl8712/rtl871x_security.c: In function 'r8712_tkip_encrypt':
drivers/staging/rtl8712/rtl871x_security.c:576:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
576 | }
| ^
drivers/staging/rtl8712/rtl871x_security.c: In function 'r8712_tkip_decrypt':
drivers/staging/rtl8712/rtl871x_security.c:631:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
631 | }
| ^
vim +147 drivers/staging/rtl8712/rtl871x_security.c
2865d42c78a912 Larry Finger 2010-08-20 88
2865d42c78a912 Larry Finger 2010-08-20 89 /*
09b080f73a4191 Vijai Kumar K 2016-11-20 90 * Need to consider the fragment situation
2865d42c78a912 Larry Finger 2010-08-20 91 */
2865d42c78a912 Larry Finger 2010-08-20 92 void r8712_wep_encrypt(struct _adapter *padapter, u8 *pxmitframe)
2865d42c78a912 Larry Finger 2010-08-20 93 { /* exclude ICV */
2865d42c78a912 Larry Finger 2010-08-20 94 unsigned char crc[4];
ea2709e5f53370 Christophe JAILLET 2021-04-10 95 struct arc4_ctx mycontext;
b78559b60518eb Martin Homuth 2017-12-19 96 u32 curfragnum, length, keylength, pki;
2865d42c78a912 Larry Finger 2010-08-20 97 u8 *pframe, *payload, *iv; /*,*wepkey*/
2865d42c78a912 Larry Finger 2010-08-20 98 u8 wepkey[16];
2865d42c78a912 Larry Finger 2010-08-20 99 struct pkt_attrib *pattrib = &((struct xmit_frame *)
2865d42c78a912 Larry Finger 2010-08-20 100 pxmitframe)->attrib;
2865d42c78a912 Larry Finger 2010-08-20 101 struct security_priv *psecuritypriv = &padapter->securitypriv;
2865d42c78a912 Larry Finger 2010-08-20 102 struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
2865d42c78a912 Larry Finger 2010-08-20 103
2865d42c78a912 Larry Finger 2010-08-20 104 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL)
2865d42c78a912 Larry Finger 2010-08-20 105 return;
2865d42c78a912 Larry Finger 2010-08-20 106 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + TXDESC_OFFSET;
2865d42c78a912 Larry Finger 2010-08-20 107 /*start to encrypt each fragment*/
2865d42c78a912 Larry Finger 2010-08-20 108 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) {
b78559b60518eb Martin Homuth 2017-12-19 109 pki = psecuritypriv->PrivacyKeyIndex;
b78559b60518eb Martin Homuth 2017-12-19 110 keylength = psecuritypriv->DefKeylen[pki];
2865d42c78a912 Larry Finger 2010-08-20 111 for (curfragnum = 0; curfragnum < pattrib->nr_frags;
2865d42c78a912 Larry Finger 2010-08-20 112 curfragnum++) {
2865d42c78a912 Larry Finger 2010-08-20 113 iv = pframe + pattrib->hdrlen;
2865d42c78a912 Larry Finger 2010-08-20 114 memcpy(&wepkey[0], iv, 3);
2865d42c78a912 Larry Finger 2010-08-20 115 memcpy(&wepkey[3], &psecuritypriv->DefKey[
2865d42c78a912 Larry Finger 2010-08-20 116 psecuritypriv->PrivacyKeyIndex].skey[0],
2865d42c78a912 Larry Finger 2010-08-20 117 keylength);
2865d42c78a912 Larry Finger 2010-08-20 118 payload = pframe + pattrib->iv_len + pattrib->hdrlen;
2865d42c78a912 Larry Finger 2010-08-20 119 if ((curfragnum + 1) == pattrib->nr_frags) {
b78559b60518eb Martin Homuth 2017-12-19 120 length = pattrib->last_txcmdsz -
b78559b60518eb Martin Homuth 2017-12-19 121 pattrib->hdrlen -
b78559b60518eb Martin Homuth 2017-12-19 122 pattrib->iv_len -
2865d42c78a912 Larry Finger 2010-08-20 123 pattrib->icv_len;
dd9161483f420c Jannik Becher 2016-12-20 124 *((__le32 *)crc) = cpu_to_le32(getcrc32(
2865d42c78a912 Larry Finger 2010-08-20 125 payload, length));
ea2709e5f53370 Christophe JAILLET 2021-04-10 126 arc4_setkey(&mycontext, wepkey, 3 + keylength);
ea2709e5f53370 Christophe JAILLET 2021-04-10 127 arc4_crypt(&mycontext, payload, payload,
2865d42c78a912 Larry Finger 2010-08-20 128 length);
ea2709e5f53370 Christophe JAILLET 2021-04-10 129 arc4_crypt(&mycontext, payload + length,
2865d42c78a912 Larry Finger 2010-08-20 130 crc, 4);
2865d42c78a912 Larry Finger 2010-08-20 131 } else {
4ef2de5ae0377b Luis de Bethencourt 2015-10-19 132 length = pxmitpriv->frag_len -
4ef2de5ae0377b Luis de Bethencourt 2015-10-19 133 pattrib->hdrlen - pattrib->iv_len -
4ef2de5ae0377b Luis de Bethencourt 2015-10-19 134 pattrib->icv_len;
dd9161483f420c Jannik Becher 2016-12-20 135 *((__le32 *)crc) = cpu_to_le32(getcrc32(
2865d42c78a912 Larry Finger 2010-08-20 136 payload, length));
ea2709e5f53370 Christophe JAILLET 2021-04-10 137 arc4_setkey(&mycontext, wepkey, 3 + keylength);
ea2709e5f53370 Christophe JAILLET 2021-04-10 138 arc4_crypt(&mycontext, payload, payload,
2865d42c78a912 Larry Finger 2010-08-20 139 length);
ea2709e5f53370 Christophe JAILLET 2021-04-10 140 arc4_crypt(&mycontext, payload + length,
2865d42c78a912 Larry Finger 2010-08-20 141 crc, 4);
2865d42c78a912 Larry Finger 2010-08-20 142 pframe += pxmitpriv->frag_len;
2865d42c78a912 Larry Finger 2010-08-20 143 pframe = (u8 *)RND4((addr_t)(pframe));
2865d42c78a912 Larry Finger 2010-08-20 144 }
2865d42c78a912 Larry Finger 2010-08-20 145 }
2865d42c78a912 Larry Finger 2010-08-20 146 }
2865d42c78a912 Larry Finger 2010-08-20 @147 }
2865d42c78a912 Larry Finger 2010-08-20 148
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH 2/3] staging: rtl8723bs: Use existing arc4 implementation
by kernel test robot
Hi Christophe,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Christophe-JAILLET/staging-rtl81...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 32abcac8037da5dc570c22abf266cbb92eee9fc9
config: arm-randconfig-s032-20210410 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
# https://github.com/0day-ci/linux/commit/e0f0911d8f1c282314b6c6df1c03a0656...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christophe-JAILLET/staging-rtl8188eu-Use-existing-arc4-implementation/20210410-213656
git checkout e0f0911d8f1c282314b6c6df1c03a0656f575f77
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/staging/rtl8723bs/core/rtw_security.c: In function 'rtw_wep_encrypt':
>> drivers/staging/rtl8723bs/core/rtw_security.c:144:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
144 | }
| ^
drivers/staging/rtl8723bs/core/rtw_security.c: In function 'rtw_wep_decrypt':
drivers/staging/rtl8723bs/core/rtw_security.c:181:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
181 | }
| ^
drivers/staging/rtl8723bs/core/rtw_security.c: In function 'rtw_tkip_encrypt':
drivers/staging/rtl8723bs/core/rtw_security.c:583:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
583 | }
| ^
drivers/staging/rtl8723bs/core/rtw_security.c: In function 'rtw_tkip_decrypt':
drivers/staging/rtl8723bs/core/rtw_security.c:679:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
679 | }
| ^
vim +144 drivers/staging/rtl8723bs/core/rtw_security.c
554c0a3abf216c Hans de Goede 2017-03-29 92
554c0a3abf216c Hans de Goede 2017-03-29 93 unsigned char crc[4];
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 94 struct arc4_ctx mycontext;
554c0a3abf216c Hans de Goede 2017-03-29 95
d495c5503d1339 Marco Cesati 2021-03-12 96 signed int curfragnum, length;
554c0a3abf216c Hans de Goede 2017-03-29 97 u32 keylength;
554c0a3abf216c Hans de Goede 2017-03-29 98
554c0a3abf216c Hans de Goede 2017-03-29 99 u8 *pframe, *payload, *iv; /* wepkey */
554c0a3abf216c Hans de Goede 2017-03-29 100 u8 wepkey[16];
554c0a3abf216c Hans de Goede 2017-03-29 101 u8 hw_hdr_offset = 0;
554c0a3abf216c Hans de Goede 2017-03-29 102 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib;
554c0a3abf216c Hans de Goede 2017-03-29 103 struct security_priv *psecuritypriv = &padapter->securitypriv;
554c0a3abf216c Hans de Goede 2017-03-29 104 struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
554c0a3abf216c Hans de Goede 2017-03-29 105
554c0a3abf216c Hans de Goede 2017-03-29 106 if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL)
554c0a3abf216c Hans de Goede 2017-03-29 107 return;
554c0a3abf216c Hans de Goede 2017-03-29 108
554c0a3abf216c Hans de Goede 2017-03-29 109 hw_hdr_offset = TXDESC_OFFSET;
554c0a3abf216c Hans de Goede 2017-03-29 110 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset;
554c0a3abf216c Hans de Goede 2017-03-29 111
554c0a3abf216c Hans de Goede 2017-03-29 112 /* start to encrypt each fragment */
554c0a3abf216c Hans de Goede 2017-03-29 113 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) {
554c0a3abf216c Hans de Goede 2017-03-29 114 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex];
554c0a3abf216c Hans de Goede 2017-03-29 115
554c0a3abf216c Hans de Goede 2017-03-29 116 for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) {
554c0a3abf216c Hans de Goede 2017-03-29 117 iv = pframe+pattrib->hdrlen;
554c0a3abf216c Hans de Goede 2017-03-29 118 memcpy(&wepkey[0], iv, 3);
554c0a3abf216c Hans de Goede 2017-03-29 119 memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[psecuritypriv->dot11PrivacyKeyIndex].skey[0], keylength);
554c0a3abf216c Hans de Goede 2017-03-29 120 payload = pframe+pattrib->iv_len+pattrib->hdrlen;
554c0a3abf216c Hans de Goede 2017-03-29 121
554c0a3abf216c Hans de Goede 2017-03-29 122 if ((curfragnum+1) == pattrib->nr_frags) { /* the last fragment */
554c0a3abf216c Hans de Goede 2017-03-29 123
554c0a3abf216c Hans de Goede 2017-03-29 124 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len;
554c0a3abf216c Hans de Goede 2017-03-29 125
554c0a3abf216c Hans de Goede 2017-03-29 126 *((__le32 *)crc) = getcrc32(payload, length);
554c0a3abf216c Hans de Goede 2017-03-29 127
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 128 arc4_setkey(&mycontext, wepkey, 3 + keylength);
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 129 arc4_crypt(&mycontext, payload, payload, length);
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 130 arc4_crypt(&mycontext, payload + length, crc, 4);
554c0a3abf216c Hans de Goede 2017-03-29 131
554c0a3abf216c Hans de Goede 2017-03-29 132 } else {
554c0a3abf216c Hans de Goede 2017-03-29 133 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len;
554c0a3abf216c Hans de Goede 2017-03-29 134 *((__le32 *)crc) = getcrc32(payload, length);
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 135 arc4_setkey(&mycontext, wepkey, 3 + keylength);
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 136 arc4_crypt(&mycontext, payload, payload, length);
e0f0911d8f1c28 Christophe JAILLET 2021-04-10 137 arc4_crypt(&mycontext, payload + length, crc, 4);
554c0a3abf216c Hans de Goede 2017-03-29 138
554c0a3abf216c Hans de Goede 2017-03-29 139 pframe += pxmitpriv->frag_len;
87fe08d74ca66d Ross Schmidt 2020-10-03 140 pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4);
554c0a3abf216c Hans de Goede 2017-03-29 141 }
554c0a3abf216c Hans de Goede 2017-03-29 142 }
554c0a3abf216c Hans de Goede 2017-03-29 143 }
554c0a3abf216c Hans de Goede 2017-03-29 @144 }
554c0a3abf216c Hans de Goede 2017-03-29 145
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH V2 3/4] dt-bindings: mfd: Convert pm8xxx bindings to yaml
by kernel test robot
Hi satya,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on abelloni/rtc-next]
[also build test WARNING on lee-mfd/for-mfd-next robh/for-next v5.12-rc6 next-20210409]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/satya-priya/Add-RTC-support-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dt.yaml: power-controller@2099000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dt.yaml: power-controller@20a9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dt.yaml: power-controller@20b9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dt.yaml: sps-sic-non-secure@12100000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['allwinner,sun8i-a83t-system-controller', 'allwinner,sun8i-h3-system-controller', 'allwinner,sun8i-v3s-system-controller', 'allwinner,sun50i-a64-system-controller', 'hisilicon,dsa-subctrl', 'hisilicon,hi6220-sramctrl', 'hisilicon,pcie-sas-subctrl', 'hisilicon,peri-subctrl', 'microchip,sparx5-cpu-syscon', 'mstar,msc313-pmsleep', 'rockchip,px30-qos', 'rockchip,rk3066-qos', 'rockchip,rk3288-qos', 'rockchip,rk3399-qos', 'samsung,exynos3-sysreg', 'samsung,exynos4-sysreg', 'samsung,exynos5-sysreg', 'samsung,exynos5433-sysreg']
From schema: Documentation/devicetree/bindings/mfd/syscon.yaml
>> arch/arm/boot/dts/qcom-apq8064-cm-qs600.dt.yaml: pmic@1: 'mpps@50' does not match any of the regexes: 'pinctrl-[0-9]+', 'rtc@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/dist-packages/dtschema/schemas/rtc/qcom-pm8xxx-rtc.yaml'
--
arch/arm/boot/dts/qcom-apq8064-ifc6410.dt.yaml: power-controller@2099000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-ifc6410.dt.yaml: power-controller@20a9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-ifc6410.dt.yaml: power-controller@20b9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-ifc6410.dt.yaml: sps-sic-non-secure@12100000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['allwinner,sun8i-a83t-system-controller', 'allwinner,sun8i-h3-system-controller', 'allwinner,sun8i-v3s-system-controller', 'allwinner,sun50i-a64-system-controller', 'hisilicon,dsa-subctrl', 'hisilicon,hi6220-sramctrl', 'hisilicon,pcie-sas-subctrl', 'hisilicon,peri-subctrl', 'microchip,sparx5-cpu-syscon', 'mstar,msc313-pmsleep', 'rockchip,px30-qos', 'rockchip,rk3066-qos', 'rockchip,rk3288-qos', 'rockchip,rk3399-qos', 'samsung,exynos3-sysreg', 'samsung,exynos4-sysreg', 'samsung,exynos5-sysreg', 'samsung,exynos5433-sysreg']
From schema: Documentation/devicetree/bindings/mfd/syscon.yaml
>> arch/arm/boot/dts/qcom-apq8064-ifc6410.dt.yaml: pmic@1: 'mpps@50' does not match any of the regexes: 'pinctrl-[0-9]+', 'rtc@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/dist-packages/dtschema/schemas/rtc/qcom-pm8xxx-rtc.yaml'
--
arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dt.yaml: power-controller@2099000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dt.yaml: power-controller@20a9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dt.yaml: power-controller@20b9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dt.yaml: sps-sic-non-secure@12100000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['allwinner,sun8i-a83t-system-controller', 'allwinner,sun8i-h3-system-controller', 'allwinner,sun8i-v3s-system-controller', 'allwinner,sun50i-a64-system-controller', 'hisilicon,dsa-subctrl', 'hisilicon,hi6220-sramctrl', 'hisilicon,pcie-sas-subctrl', 'hisilicon,peri-subctrl', 'microchip,sparx5-cpu-syscon', 'mstar,msc313-pmsleep', 'rockchip,px30-qos', 'rockchip,rk3066-qos', 'rockchip,rk3288-qos', 'rockchip,rk3399-qos', 'samsung,exynos3-sysreg', 'samsung,exynos4-sysreg', 'samsung,exynos5-sysreg', 'samsung,exynos5433-sysreg']
From schema: Documentation/devicetree/bindings/mfd/syscon.yaml
>> arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dt.yaml: pmic@1: 'mpps@50' does not match any of the regexes: 'pinctrl-[0-9]+', 'rtc@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/dist-packages/dtschema/schemas/rtc/qcom-pm8xxx-rtc.yaml'
--
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dt.yaml: power-controller@2099000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dt.yaml: power-controller@20a9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dt.yaml: power-controller@20b9000: '#power-domain-cells' is a required property
From schema: Documentation/devicetree/bindings/power/power-domain.yaml
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dt.yaml: sps-sic-non-secure@12100000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['allwinner,sun8i-a83t-system-controller', 'allwinner,sun8i-h3-system-controller', 'allwinner,sun8i-v3s-system-controller', 'allwinner,sun50i-a64-system-controller', 'hisilicon,dsa-subctrl', 'hisilicon,hi6220-sramctrl', 'hisilicon,pcie-sas-subctrl', 'hisilicon,peri-subctrl', 'microchip,sparx5-cpu-syscon', 'mstar,msc313-pmsleep', 'rockchip,px30-qos', 'rockchip,rk3066-qos', 'rockchip,rk3288-qos', 'rockchip,rk3399-qos', 'samsung,exynos3-sysreg', 'samsung,exynos4-sysreg', 'samsung,exynos5-sysreg', 'samsung,exynos5433-sysreg']
From schema: Documentation/devicetree/bindings/mfd/syscon.yaml
>> arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dt.yaml: pmic@1: 'mpps@50' does not match any of the regexes: 'pinctrl-[0-9]+', 'rtc@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/dist-packages/dtschema/schemas/rtc/qcom-pm8xxx-rtc.yaml'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[xlnx:master 59/60] drivers/mtd/spi-nor/spi-nor.c:2642:3-19: duplicated argument to & or | (fwd)
by Julia Lawall
Please check line 2642.
julia
---------- Forwarded message ----------
Date: Sat, 10 Apr 2021 05:35:58 +0800
From: kernel test robot <lkp(a)intel.com>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <julia.lawall(a)lip6.fr>
Subject: [xlnx:master 59/60] drivers/mtd/spi-nor/spi-nor.c:2642:3-19: duplicated
argument to & or |
CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Vishal Sagar <vishal.sagar(a)xilinx.com>
CC: Michal Simek <monstr(a)monstr.eu>
CC: Hyun Kwon <hyun.kwon(a)xilinx.com>
Hi Vishal,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx master
head: 043f8a226a752a1dd11f7ff64cee6dbe7334d394
commit: c0b33b8ccd38096c815f2dd39746044d0aa079d3 [59/60] staging: xlnxsync: Fix the uapi header license
:::::: branch date: 11 months ago
:::::: commit date: 11 months ago
config: i386-randconfig-c001-20210409 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Julia Lawall <julia.lawall(a)lip6.fr>
cocci warnings: (new ones prefixed by >>)
>> drivers/mtd/spi-nor/spi-nor.c:2642:3-19: duplicated argument to & or |
vim +2642 drivers/mtd/spi-nor/spi-nor.c
48e4d973aefeea Boris Brezillon 2019-08-24 2447
b199489d37b21c Huang Shijie 2014-02-24 2448 /* NOTE: double check command sets and memory organization when you add
b199489d37b21c Huang Shijie 2014-02-24 2449 * more nor chips. This current list focusses on newer chips, which
b199489d37b21c Huang Shijie 2014-02-24 2450 * have been converging on command sets which including JEDEC ID.
c19900edff983c Rafał Miłecki 2015-04-25 2451 *
c19900edff983c Rafał Miłecki 2015-04-25 2452 * All newly added entries should describe *hardware* and should use SECT_4K
c19900edff983c Rafał Miłecki 2015-04-25 2453 * (or SECT_4K_PMC) if hardware supports erasing 4 KiB sectors. For usage
c19900edff983c Rafał Miłecki 2015-04-25 2454 * scenarios excluding small sectors there is config option that can be
c19900edff983c Rafał Miłecki 2015-04-25 2455 * disabled: CONFIG_MTD_SPI_NOR_USE_4K_SECTORS.
c19900edff983c Rafał Miłecki 2015-04-25 2456 * For historical (and compatibility) reasons (before we got above config) some
c19900edff983c Rafał Miłecki 2015-04-25 2457 * old entries may be missing 4K flag.
b199489d37b21c Huang Shijie 2014-02-24 2458 */
06bb6f5a69dfc5 Rafał Miłecki 2015-08-10 2459 static const struct flash_info spi_nor_ids[] = {
b199489d37b21c Huang Shijie 2014-02-24 2460 /* Atmel -- some are (confusingly) marketed as "DataFlash" */
b199489d37b21c Huang Shijie 2014-02-24 2461 { "at25fs010", INFO(0x1f6601, 0, 32 * 1024, 4, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2462 { "at25fs040", INFO(0x1f6604, 0, 64 * 1024, 8, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2463
b199489d37b21c Huang Shijie 2014-02-24 2464 { "at25df041a", INFO(0x1f4401, 0, 64 * 1024, 8, SECT_4K) },
b08618c929b289 Jagan Teki 2016-07-26 2465 { "at25df321", INFO(0x1f4700, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2466 { "at25df321a", INFO(0x1f4701, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2467 { "at25df641", INFO(0x1f4800, 0, 64 * 1024, 128, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2468
b199489d37b21c Huang Shijie 2014-02-24 2469 { "at26f004", INFO(0x1f0400, 0, 64 * 1024, 8, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2470 { "at26df081a", INFO(0x1f4501, 0, 64 * 1024, 16, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2471 { "at26df161a", INFO(0x1f4601, 0, 64 * 1024, 32, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2472 { "at26df321", INFO(0x1f4700, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2473
b199489d37b21c Huang Shijie 2014-02-24 2474 { "at45db081d", INFO(0x1f2500, 0, 64 * 1024, 16, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2475
b199489d37b21c Huang Shijie 2014-02-24 2476 /* EON -- en25xxx */
b199489d37b21c Huang Shijie 2014-02-24 2477 { "en25f32", INFO(0x1c3116, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2478 { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2479 { "en25q32b", INFO(0x1c3016, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2480 { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2481 { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
08326d8a9472c0 Frieder Schrempf 2019-02-18 2482 { "en25q80a", INFO(0x1c3014, 0, 64 * 1024, 16,
08326d8a9472c0 Frieder Schrempf 2019-02-18 2483 SECT_4K | SPI_NOR_DUAL_READ) },
771ff17e82fac5 YuheiOKAWA 2018-05-17 2484 { "en25qh32", INFO(0x1c7016, 0, 64 * 1024, 64, 0) },
30a2c8aa3c520d Roger Pueyo Centelles 2019-02-07 2485 { "en25qh64", INFO(0x1c7017, 0, 64 * 1024, 128,
30a2c8aa3c520d Roger Pueyo Centelles 2019-02-07 2486 SECT_4K | SPI_NOR_DUAL_READ) },
a41595b34ba40f Sergey Ryazanov 2014-06-12 2487 { "en25qh128", INFO(0x1c7018, 0, 64 * 1024, 256, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2488 { "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) },
c19900edff983c Rafał Miłecki 2015-04-25 2489 { "en25s64", INFO(0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2490
b199489d37b21c Huang Shijie 2014-02-24 2491 /* ESMT */
fcf690a22b2bd7 Victor Shyba 2017-01-02 2492 { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
ca1fa1a8a6dae3 L. D. Pinney 2017-02-14 2493 { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
ca1fa1a8a6dae3 L. D. Pinney 2017-02-14 2494 { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_HAS_LOCK) },
b199489d37b21c Huang Shijie 2014-02-24 2495
b199489d37b21c Huang Shijie 2014-02-24 2496 /* Everspin */
282e45dc64d183 Philipp Puschmann 2017-10-19 2497 { "mr25h128", CAT25_INFO( 16 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2498 { "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2499 { "mr25h10", CAT25_INFO(128 * 1024, 1, 256, 3, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
edd0c8f4932dbf IWAMOTO Masahiko 2016-10-05 2500 { "mr25h40", CAT25_INFO(512 * 1024, 1, 256, 3, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2501
ce56ce7da31591 Rostislav Lisovy 2014-10-29 2502 /* Fujitsu */
ce56ce7da31591 Rostislav Lisovy 2014-10-29 2503 { "mb85rs1mt", INFO(0x047f27, 0, 128 * 1024, 1, SPI_NOR_NO_ERASE) },
ce56ce7da31591 Rostislav Lisovy 2014-10-29 2504
b199489d37b21c Huang Shijie 2014-02-24 2505 /* GigaDevice */
e9cf64dec1067e Kamal Dasu 2017-01-20 2506 {
e9cf64dec1067e Kamal Dasu 2017-01-20 2507 "gd25q16", INFO(0xc84015, 0, 64 * 1024, 32,
e9cf64dec1067e Kamal Dasu 2017-01-20 2508 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
e9cf64dec1067e Kamal Dasu 2017-01-20 2509 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
e9cf64dec1067e Kamal Dasu 2017-01-20 2510 },
595f0e101d4c25 Brian Norris 2016-07-01 2511 {
595f0e101d4c25 Brian Norris 2016-07-01 2512 "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64,
595f0e101d4c25 Brian Norris 2016-07-01 2513 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
595f0e101d4c25 Brian Norris 2016-07-01 2514 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
595f0e101d4c25 Brian Norris 2016-07-01 2515 },
5a0682835ca270 Klaus Goger 2017-09-13 2516 {
5a0682835ca270 Klaus Goger 2017-09-13 2517 "gd25lq32", INFO(0xc86016, 0, 64 * 1024, 64,
5a0682835ca270 Klaus Goger 2017-09-13 2518 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
5a0682835ca270 Klaus Goger 2017-09-13 2519 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
5a0682835ca270 Klaus Goger 2017-09-13 2520 },
595f0e101d4c25 Brian Norris 2016-07-01 2521 {
595f0e101d4c25 Brian Norris 2016-07-01 2522 "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128,
595f0e101d4c25 Brian Norris 2016-07-01 2523 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
595f0e101d4c25 Brian Norris 2016-07-01 2524 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
595f0e101d4c25 Brian Norris 2016-07-01 2525 },
595f0e101d4c25 Brian Norris 2016-07-01 2526 {
595f0e101d4c25 Brian Norris 2016-07-01 2527 "gd25lq64c", INFO(0xc86017, 0, 64 * 1024, 128,
595f0e101d4c25 Brian Norris 2016-07-01 2528 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
595f0e101d4c25 Brian Norris 2016-07-01 2529 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
595f0e101d4c25 Brian Norris 2016-07-01 2530 },
595f0e101d4c25 Brian Norris 2016-07-01 2531 {
595f0e101d4c25 Brian Norris 2016-07-01 2532 "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256,
595f0e101d4c25 Brian Norris 2016-07-01 2533 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
595f0e101d4c25 Brian Norris 2016-07-01 2534 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
595f0e101d4c25 Brian Norris 2016-07-01 2535 },
65153846b18c48 Andy Yan 2017-08-28 2536 {
65153846b18c48 Andy Yan 2017-08-28 2537 "gd25q256", INFO(0xc84019, 0, 64 * 1024, 512,
65153846b18c48 Andy Yan 2017-08-28 2538 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
65153846b18c48 Andy Yan 2017-08-28 2539 SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
48e4d973aefeea Boris Brezillon 2019-08-24 2540 .fixups = &gd25q256_fixups,
65153846b18c48 Andy Yan 2017-08-28 2541 },
b199489d37b21c Huang Shijie 2014-02-24 2542
b199489d37b21c Huang Shijie 2014-02-24 2543 /* Intel/Numonyx -- xxxs33b */
b199489d37b21c Huang Shijie 2014-02-24 2544 { "160s33b", INFO(0x898911, 0, 64 * 1024, 32, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2545 { "320s33b", INFO(0x898912, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2546 { "640s33b", INFO(0x898913, 0, 64 * 1024, 128, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2547
b79c332fb283c1 Gabor Juhos 2015-04-07 2548 /* ISSI */
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2549 { "is25wp080d", INFO(0x9d7014, 0, 64 * 1024, 32, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2550 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2551 { "is25wp016d", INFO(0x9d7015, 0, 64 * 1024, 32, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2552 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
b79c332fb283c1 Gabor Juhos 2015-04-07 2553 { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
ded8a0447f49d7 Sean Nyekjaer 2017-12-15 2554 { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 8,
ded8a0447f49d7 Sean Nyekjaer 2017-12-15 2555 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b422847877e35d Fabrizio Castro 2018-11-08 2556 { "is25lp016d", INFO(0x9d6015, 0, 64 * 1024, 32,
b422847877e35d Fabrizio Castro 2018-11-08 2557 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
17407ec3354d29 Romain Porte 2017-12-28 2558 { "is25lp080d", INFO(0x9d6014, 0, 64 * 1024, 16,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2559 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2560 SPI_NOR_HAS_LOCK) },
4cc106f8f245ba Uwe Kleine-König 2018-11-21 2561 { "is25lp032", INFO(0x9d6016, 0, 64 * 1024, 64,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2562 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_HAS_LOCK) },
4cc106f8f245ba Uwe Kleine-König 2018-11-21 2563 { "is25lp064", INFO(0x9d6017, 0, 64 * 1024, 128,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2564 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_HAS_LOCK) },
34354d4bf845c8 Angelo Dureghello 2017-11-19 2565 { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2566 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_HAS_LOCK) },
c7aa1b77f96f35 Marek Vasut 2018-04-07 2567 { "is25lp256", INFO(0x9d6019, 0, 64 * 1024, 512,
d05e21e3cfc7f2 Liu Xiang 2018-11-14 2568 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2569 SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK)
cf580a92400584 Liu Xiang 2019-06-25 2570 .fixups = &is25lp256_fixups },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2571 { "is25wp256d", INFO(0x9d7019, 0, 64 * 1024, 512,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2572 SECT_4K | SPI_NOR_DUAL_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2573 SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2574 SPI_NOR_4B_OPCODES) },
d616f81cdd2a21 Kimmo Rautkoski 2018-05-14 2575 { "is25wp032", INFO(0x9d7016, 0, 64 * 1024, 64,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2576 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2577 SPI_NOR_HAS_LOCK) },
d616f81cdd2a21 Kimmo Rautkoski 2018-05-14 2578 { "is25wp064", INFO(0x9d7017, 0, 64 * 1024, 128,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2579 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2580 | SPI_NOR_HAS_LOCK) },
d616f81cdd2a21 Kimmo Rautkoski 2018-05-14 2581 { "is25wp128", INFO(0x9d7018, 0, 64 * 1024, 256,
d616f81cdd2a21 Kimmo Rautkoski 2018-05-14 2582 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2583 { "is25lp512m", INFO(0x9d601a, 0, 64 * 1024, 1024,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2584 SECT_4K | SPI_NOR_DUAL_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2585 SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2586 { "is25wp512m", INFO(0x9d701a, 0, 64 * 1024, 1024,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2587 SECT_4K | SPI_NOR_DUAL_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2588 SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2589 SPI_NOR_4B_OPCODES) },
b79c332fb283c1 Gabor Juhos 2015-04-07 2590
b199489d37b21c Huang Shijie 2014-02-24 2591 /* Macronix */
660b5b07cfbc39 Gabor Juhos 2015-04-07 2592 { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2593 { "mx25l2005a", INFO(0xc22012, 0, 64 * 1024, 4, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2594 { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2595 { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2596 { "mx25l1606e", INFO(0xc22015, 0, 64 * 1024, 32, SECT_4K) },
0501f2e5ff28a0 Andreas Fenkart 2015-11-05 2597 { "mx25l3205d", INFO(0xc22016, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2598 { "mx25l3255e", INFO(0xc29e16, 0, 64 * 1024, 64, SECT_4K) },
0501f2e5ff28a0 Andreas Fenkart 2015-11-05 2599 { "mx25l6405d", INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
9f3cd4537da071 Alexander Kurz 2017-03-11 2600 { "mx25u2033e", INFO(0xc22532, 0, 64 * 1024, 4, SECT_4K) },
748df6d831871c André Valentin 2019-01-30 2601 { "mx25u3235f", INFO(0xc22536, 0, 64 * 1024, 64,
748df6d831871c André Valentin 2019-01-30 2602 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
9f3cd4537da071 Alexander Kurz 2017-03-11 2603 { "mx25u4035", INFO(0xc22533, 0, 64 * 1024, 8, SECT_4K) },
9f3cd4537da071 Alexander Kurz 2017-03-11 2604 { "mx25u8035", INFO(0xc22534, 0, 64 * 1024, 16, SECT_4K) },
81a1209c90914c Mika Westerberg 2015-02-05 2605 { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2606 { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2607 { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
81554171373018 Alexander Sverdlin 2018-07-13 2608 { "mx25u12835f", INFO(0xc22538, 0, 64 * 1024, 256,
81554171373018 Alexander Sverdlin 2018-07-13 2609 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
2bffa65da43e39 Boris Brezillon 2018-12-06 2610 { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512,
2bffa65da43e39 Boris Brezillon 2018-12-06 2611 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
2bffa65da43e39 Boris Brezillon 2018-12-06 2612 .fixups = &mx25l25635_fixups },
b0fcb4b4130283 Mathias Kresin 2017-04-13 2613 { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
e36bb65e5d0cf3 Frieder Schrempf 2019-02-18 2614 { "mx25v8035f", INFO(0xc22314, 0, 64 * 1024, 16,
e36bb65e5d0cf3 Frieder Schrempf 2019-02-18 2615 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2616 { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
d342b6a973af45 Roman Yeryomin 2017-09-18 2617 { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
af18ba48420e39 Alexander Sverdlin 2017-06-22 2618 { "mx66u51235f", INFO(0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
ce398a8141b485 Cédric Le Goater 2017-04-19 2619 { "mx66l1g45g", INFO(0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2620 { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2621 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2622 { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2623
0005aad094538e Yogesh Narayan Gaur 2018-10-12 2624 /* Micron <--> ST Micro */
61e4611864b396 Moritz Fischer 2016-07-15 2625 { "n25q016a", INFO(0x20bb15, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_QUAD_READ) },
548cd3ab54da10 Bean Huo 霍斌斌 (beanhuo 2014-12-17 2626) { "n25q032", INFO(0x20ba16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) },
f9bcb6dc8013d4 Aurelien Chanot 2015-10-07 2627 { "n25q032a", INFO(0x20bb16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) },
0db7fae2736d0d Alexey Firago 2015-06-30 2628 { "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) },
2a06c7b1fd2389 Mika Westerberg 2015-08-27 2629 { "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2630 { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2631 SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2632 { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2633 SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2634 { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2635 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_FSR |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2636 SPI_NOR_HAS_LOCK) },
835ed7bf12609c Nobuhiro Iwamatsu 2017-03-23 2637 { "n25q256ax1", INFO(0x20bb19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_QUAD_READ) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2638 { "n25q512ax3", INFO(0x20ba20, 0, 64 * 1024, 1024, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2639 USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2640 { "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2641 USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 @2642 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2643 { "n25q00a", INFO(0x20bb21, 0, 64 * 1024, 2048, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2644 USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2645 SPI_NOR_HAS_LOCK) },
21ed90acd17868 Andrey Smirnov 2019-05-12 2646 { "mt25ql02g", INFO(0x20ba22, 0, 64 * 1024, 4096,
21ed90acd17868 Andrey Smirnov 2019-05-12 2647 SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2648 NO_CHIP_ERASE | SPI_NOR_HAS_LOCK) },
9607af6f857ff0 Ashish Kumar 2019-08-29 2649 { "mt25qu512a (n25q512a)", INFO(0x20bb20, 0, 64 * 1024, 1024,
9607af6f857ff0 Ashish Kumar 2019-08-29 2650 SECT_4K | USE_FSR | SPI_NOR_DUAL_READ |
9607af6f857ff0 Ashish Kumar 2019-08-29 2651 SPI_NOR_QUAD_READ |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2652 SPI_NOR_HAS_LOCK) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2653 { "mt25qu02g", INFO(0x20bb22, 0, 64 * 1024, 4096, SECT_4K |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2654 USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2655 SPI_NOR_HAS_LOCK) },
b199489d37b21c Huang Shijie 2014-02-24 2656
a98086e00420ad Yogesh Narayan Gaur 2018-10-12 2657 /* Micron */
a98086e00420ad Yogesh Narayan Gaur 2018-10-12 2658 {
a98086e00420ad Yogesh Narayan Gaur 2018-10-12 2659 "mt35xu512aba", INFO(0x2c5b1a, 0, 128 * 1024, 512,
2bda2f811b36cb Yogesh Narayan Gaur 2019-01-15 2660 SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ |
606a7db700558f Sai Krishna Potthuri 2019-12-26 2661 SPI_NOR_OCTAL_WRITE | SPI_NOR_4B_OPCODES)
a98086e00420ad Yogesh Narayan Gaur 2018-10-12 2662 },
aba8d95e112099 Sai Krishna Potthuri 2019-12-26 2663 { "mt35xu01g", INFO(0x2c5b1b, 0, 128 * 1024, 1024,
aba8d95e112099 Sai Krishna Potthuri 2019-12-26 2664 SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ |
aba8d95e112099 Sai Krishna Potthuri 2019-12-26 2665 SPI_NOR_OCTAL_WRITE | SPI_NOR_4B_OPCODES) },
173c3d47736e31 Ashish Kumar 2019-08-29 2666 { "mt35xu02g", INFO(0x2c5b1c, 0, 128 * 1024, 2048,
173c3d47736e31 Ashish Kumar 2019-08-29 2667 SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ |
606a7db700558f Sai Krishna Potthuri 2019-12-26 2668 SPI_NOR_OCTAL_WRITE | SPI_NOR_4B_OPCODES) },
a98086e00420ad Yogesh Narayan Gaur 2018-10-12 2669
b199489d37b21c Huang Shijie 2014-02-24 2670 /* PMC */
b199489d37b21c Huang Shijie 2014-02-24 2671 { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
b199489d37b21c Huang Shijie 2014-02-24 2672 { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
b199489d37b21c Huang Shijie 2014-02-24 2673 { "pm25lq032", INFO(0x7f9d46, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2674
0074a8f3b30302 Rafael Gago 2017-12-21 2675 /* Spansion/Cypress -- single (large) sector size only, at least
b199489d37b21c Huang Shijie 2014-02-24 2676 * for the chips listed here (without boot sectors).
b199489d37b21c Huang Shijie 2014-02-24 2677 */
9ab86995ed07f5 Geert Uytterhoeven 2014-04-22 2678 { "s25sl032p", INFO(0x010215, 0x4d00, 64 * 1024, 64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
0f12a27b47284e Joachim Eastwood 2015-08-14 2679 { "s25sl064p", INFO(0x010216, 0x4d00, 64 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
50685024f27358 Ahmet Celenk 2019-02-12 2680 { "s25fl128s0", INFO6(0x012018, 0x4d0080, 256 * 1024, 64,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2681 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2682 SPI_NOR_HAS_LOCK) },
50685024f27358 Ahmet Celenk 2019-02-12 2683 { "s25fl128s1", INFO6(0x012018, 0x4d0180, 64 * 1024, 256,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2684 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR |
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2685 SPI_NOR_HAS_LOCK) },
c4b3eacc1dfef5 Alexander Sverdlin 2017-07-17 2686 { "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) },
c4b3eacc1dfef5 Alexander Sverdlin 2017-07-17 2687 { "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
dcb4b22eeaf44f Jonas Bonn 2019-03-20 2688 { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256,
dcb4b22eeaf44f Jonas Bonn 2019-03-20 2689 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
e7023898034ea3 Jungseung Lee 2019-07-13 2690 SPI_NOR_HAS_LOCK | USE_CLSR) },
dfd2b74530e908 Sergei Shtylyov 2019-01-16 2691 { "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
b199489d37b21c Huang Shijie 2014-02-24 2692 { "s70fl01gs", INFO(0x010221, 0x4d00, 256 * 1024, 256, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2693 { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2694 { "s25sl12801", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) },
c4b3eacc1dfef5 Alexander Sverdlin 2017-07-17 2695 { "s25fl129p0", INFO(0x012018, 0x4d00, 256 * 1024, 64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
c4b3eacc1dfef5 Alexander Sverdlin 2017-07-17 2696 { "s25fl129p1", INFO(0x012018, 0x4d01, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
b199489d37b21c Huang Shijie 2014-02-24 2697 { "s25sl004a", INFO(0x010212, 0, 64 * 1024, 8, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2698 { "s25sl008a", INFO(0x010213, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2699 { "s25sl016a", INFO(0x010214, 0, 64 * 1024, 32, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2700 { "s25sl032a", INFO(0x010215, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2701 { "s25sl064a", INFO(0x010216, 0, 64 * 1024, 128, 0) },
7c748f5774cb74 Sean Nyekjaer 2015-10-13 2702 { "s25fl004k", INFO(0xef4013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
adf508c347c3a5 Joachim Eastwood 2015-07-09 2703 { "s25fl008k", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
adf508c347c3a5 Joachim Eastwood 2015-07-09 2704 { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2705 { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) },
c08266794926a9 Sascha Hauer 2016-02-11 2706 { "s25fl116k", INFO(0x014015, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
c19900edff983c Rafał Miłecki 2015-04-25 2707 { "s25fl132k", INFO(0x014016, 0, 64 * 1024, 64, SECT_4K) },
413780d7d7040c Rafał Miłecki 2015-04-25 2708 { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) },
aada20cd2b1af7 Sean Nyekjaer 2015-10-13 2709 { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) },
022a400f90ceeb Sean Nyekjaer 2016-10-05 2710 { "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) },
d8b494a32889ea Harry Chou 2017-06-23 2711 { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
0074a8f3b30302 Rafael Gago 2017-12-21 2712 { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
0074a8f3b30302 Rafael Gago 2017-12-21 2713 { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2714 { "sst26wf016B", INFO(0xbf2651, 0, 64 * 1024, 32,
d2c139cd25f72b Amit Kumar Mahapatra 2020-01-19 2715 SECT_4K | SST_GLOBAL_PROT_UNLK) },
b199489d37b21c Huang Shijie 2014-02-24 2716
b199489d37b21c Huang Shijie 2014-02-24 2717 /* SST -- large erase sizes are "overlays", "sectors" are 4K */
b199489d37b21c Huang Shijie 2014-02-24 2718 { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2719 { "sst25vf080b", INFO(0xbf258e, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2720 { "sst25vf016b", INFO(0xbf2541, 0, 64 * 1024, 32, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2721 { "sst25vf032b", INFO(0xbf254a, 0, 64 * 1024, 64, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2722 { "sst25vf064c", INFO(0xbf254b, 0, 64 * 1024, 128, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2723 { "sst25wf512", INFO(0xbf2501, 0, 64 * 1024, 1, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2724 { "sst25wf010", INFO(0xbf2502, 0, 64 * 1024, 2, SECT_4K | SST_WRITE) },
b199489d37b21c Huang Shijie 2014-02-24 2725 { "sst25wf020", INFO(0xbf2503, 0, 64 * 1024, 4, SECT_4K | SST_WRITE) },
a1d97ef96e3899 Alexis Ballier 2015-08-14 2726 { "sst25wf020a", INFO(0x621612, 0, 64 * 1024, 4, SECT_4K) },
c887be71cc3984 Yao Yuan 2015-09-16 2727 { "sst25wf040b", INFO(0x621613, 0, 64 * 1024, 8, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2728 { "sst25wf040", INFO(0xbf2504, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
f02985b78550f5 Harini Katakam 2014-10-21 2729 { "sst25wf080", INFO(0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
6dc944db29ba9c Eugeniy Paltsev 2019-07-18 2730 { "sst26wf016b", INFO(0xbf2651, 0, 64 * 1024, 32, SECT_4K |
6dc944db29ba9c Eugeniy Paltsev 2019-07-18 2731 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
4b265184095df6 Amit Kumar Mahapatra 2020-02-20 2732 { "sst26vf016b", INFO(0xbf2641, 0, 64 * 1024, 32,
4b265184095df6 Amit Kumar Mahapatra 2020-02-20 2733 SECT_4K | SST_GLOBAL_PROT_UNLK) },
18f7ce2f449504 Claudiu Beznea 2017-08-22 2734 { "sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2735
b199489d37b21c Huang Shijie 2014-02-24 2736 /* ST Microelectronics -- newer production may have feature updates */
b199489d37b21c Huang Shijie 2014-02-24 2737 { "m25p05", INFO(0x202010, 0, 32 * 1024, 2, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2738 { "m25p10", INFO(0x202011, 0, 32 * 1024, 4, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2739 { "m25p20", INFO(0x202012, 0, 64 * 1024, 4, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2740 { "m25p40", INFO(0x202013, 0, 64 * 1024, 8, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2741 { "m25p80", INFO(0x202014, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2742 { "m25p16", INFO(0x202015, 0, 64 * 1024, 32, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2743 { "m25p32", INFO(0x202016, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2744 { "m25p64", INFO(0x202017, 0, 64 * 1024, 128, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2745 { "m25p128", INFO(0x202018, 0, 256 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2746
b199489d37b21c Huang Shijie 2014-02-24 2747 { "m25p05-nonjedec", INFO(0, 0, 32 * 1024, 2, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2748 { "m25p10-nonjedec", INFO(0, 0, 32 * 1024, 4, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2749 { "m25p20-nonjedec", INFO(0, 0, 64 * 1024, 4, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2750 { "m25p40-nonjedec", INFO(0, 0, 64 * 1024, 8, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2751 { "m25p80-nonjedec", INFO(0, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2752 { "m25p16-nonjedec", INFO(0, 0, 64 * 1024, 32, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2753 { "m25p32-nonjedec", INFO(0, 0, 64 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2754 { "m25p64-nonjedec", INFO(0, 0, 64 * 1024, 128, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2755 { "m25p128-nonjedec", INFO(0, 0, 256 * 1024, 64, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2756
b199489d37b21c Huang Shijie 2014-02-24 2757 { "m45pe10", INFO(0x204011, 0, 64 * 1024, 2, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2758 { "m45pe80", INFO(0x204014, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2759 { "m45pe16", INFO(0x204015, 0, 64 * 1024, 32, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2760
b199489d37b21c Huang Shijie 2014-02-24 2761 { "m25pe20", INFO(0x208012, 0, 64 * 1024, 4, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2762 { "m25pe80", INFO(0x208014, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2763 { "m25pe16", INFO(0x208015, 0, 64 * 1024, 32, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2764
b199489d37b21c Huang Shijie 2014-02-24 2765 { "m25px16", INFO(0x207115, 0, 64 * 1024, 32, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2766 { "m25px32", INFO(0x207116, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2767 { "m25px32-s0", INFO(0x207316, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2768 { "m25px32-s1", INFO(0x206316, 0, 64 * 1024, 64, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2769 { "m25px64", INFO(0x207117, 0, 64 * 1024, 128, 0) },
f2fabe16b819cd Thomas Petazzoni 2014-07-27 2770 { "m25px80", INFO(0x207114, 0, 64 * 1024, 16, 0) },
b199489d37b21c Huang Shijie 2014-02-24 2771
b199489d37b21c Huang Shijie 2014-02-24 2772 /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
40d19ab69c79da Gabor Juhos 2015-03-26 2773 { "w25x05", INFO(0xef3010, 0, 64 * 1024, 1, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2774 { "w25x10", INFO(0xef3011, 0, 64 * 1024, 2, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2775 { "w25x20", INFO(0xef3012, 0, 64 * 1024, 4, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2776 { "w25x40", INFO(0xef3013, 0, 64 * 1024, 8, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2777 { "w25x80", INFO(0xef3014, 0, 64 * 1024, 16, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2778 { "w25x16", INFO(0xef3015, 0, 64 * 1024, 32, SECT_4K) },
ace3cbdd23dc49 Neil Armstrong 2017-08-28 2779 {
ace3cbdd23dc49 Neil Armstrong 2017-08-28 2780 "w25q16dw", INFO(0xef6015, 0, 64 * 1024, 32,
ace3cbdd23dc49 Neil Armstrong 2017-08-28 2781 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
ace3cbdd23dc49 Neil Armstrong 2017-08-28 2782 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
ace3cbdd23dc49 Neil Armstrong 2017-08-28 2783 },
b199489d37b21c Huang Shijie 2014-02-24 2784 { "w25x32", INFO(0xef3016, 0, 64 * 1024, 64, SECT_4K) },
88489c29de6078 Robert Marko 2019-05-18 2785 {
88489c29de6078 Robert Marko 2019-05-18 2786 "w25q16jv-im/jm", INFO(0xef7015, 0, 64 * 1024, 32,
88489c29de6078 Robert Marko 2019-05-18 2787 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
88489c29de6078 Robert Marko 2019-05-18 2788 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
88489c29de6078 Robert Marko 2019-05-18 2789 },
34fc99dbf32d8c Alexander Kurz 2017-03-11 2790 { "w25q20cl", INFO(0xef4012, 0, 64 * 1024, 4, SECT_4K) },
34fc99dbf32d8c Alexander Kurz 2017-03-11 2791 { "w25q20bw", INFO(0xef5012, 0, 64 * 1024, 4, SECT_4K) },
34fc99dbf32d8c Alexander Kurz 2017-03-11 2792 { "w25q20ew", INFO(0xef6012, 0, 64 * 1024, 4, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2793 { "w25q32", INFO(0xef4016, 0, 64 * 1024, 64, SECT_4K) },
9648388fc77373 Brian Norris 2016-01-29 2794 {
9648388fc77373 Brian Norris 2016-01-29 2795 "w25q32dw", INFO(0xef6016, 0, 64 * 1024, 64,
9648388fc77373 Brian Norris 2016-01-29 2796 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
9648388fc77373 Brian Norris 2016-01-29 2797 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
9648388fc77373 Brian Norris 2016-01-29 2798 },
7fccf56ea4faef Stephen Douthit 2018-03-07 2799 {
7fccf56ea4faef Stephen Douthit 2018-03-07 2800 "w25q32jv", INFO(0xef7016, 0, 64 * 1024, 64,
7fccf56ea4faef Stephen Douthit 2018-03-07 2801 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
7fccf56ea4faef Stephen Douthit 2018-03-07 2802 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
7fccf56ea4faef Stephen Douthit 2018-03-07 2803 },
b199489d37b21c Huang Shijie 2014-02-24 2804 { "w25x64", INFO(0xef3017, 0, 64 * 1024, 128, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2805 { "w25q64", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) },
9648388fc77373 Brian Norris 2016-01-29 2806 {
9648388fc77373 Brian Norris 2016-01-29 2807 "w25q64dw", INFO(0xef6017, 0, 64 * 1024, 128,
9648388fc77373 Brian Norris 2016-01-29 2808 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
9648388fc77373 Brian Norris 2016-01-29 2809 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
9648388fc77373 Brian Norris 2016-01-29 2810 },
9648388fc77373 Brian Norris 2016-01-29 2811 {
9648388fc77373 Brian Norris 2016-01-29 2812 "w25q128fw", INFO(0xef6018, 0, 64 * 1024, 256,
9648388fc77373 Brian Norris 2016-01-29 2813 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
9648388fc77373 Brian Norris 2016-01-29 2814 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
9648388fc77373 Brian Norris 2016-01-29 2815 },
d720a43333b0c2 Robert Marko 2018-06-25 2816 {
d720a43333b0c2 Robert Marko 2018-06-25 2817 "w25q128jv", INFO(0xef7018, 0, 64 * 1024, 256,
d720a43333b0c2 Robert Marko 2018-06-25 2818 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
d720a43333b0c2 Robert Marko 2018-06-25 2819 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
d720a43333b0c2 Robert Marko 2018-06-25 2820 },
b199489d37b21c Huang Shijie 2014-02-24 2821 { "w25q80", INFO(0xef5014, 0, 64 * 1024, 16, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2822 { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) },
b199489d37b21c Huang Shijie 2014-02-24 2823 { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
d7c9ade2e31dba Cédric Le Goater 2017-04-19 2824 { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
3123db1d265185 Avi Fishman 2019-07-30 2825 { "w25q256jvm", INFO(0xef7019, 0, 64 * 1024, 512,
3123db1d265185 Avi Fishman 2019-07-30 2826 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
0cbef932bd8285 Benjamin Herrenschmidt 2017-06-21 2827 { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024,
0cbef932bd8285 Benjamin Herrenschmidt 2017-06-21 2828 SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2829
b199489d37b21c Huang Shijie 2014-02-24 2830 /* Catalyst / On Semiconductor -- non-JEDEC */
b199489d37b21c Huang Shijie 2014-02-24 2831 { "cat25c11", CAT25_INFO( 16, 8, 16, 1, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2832 { "cat25c03", CAT25_INFO( 32, 8, 16, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2833 { "cat25c09", CAT25_INFO( 128, 8, 32, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2834 { "cat25c17", CAT25_INFO( 256, 8, 32, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
b199489d37b21c Huang Shijie 2014-02-24 2835 { "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2836
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2837 /* Xilinx S3AN Internal Flash */
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2838 { "3S50AN", S3AN_INFO(0x1f2200, 64, 264) },
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2839 { "3S200AN", S3AN_INFO(0x1f2400, 256, 264) },
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2840 { "3S400AN", S3AN_INFO(0x1f2400, 256, 264) },
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2841 { "3S700AN", S3AN_INFO(0x1f2500, 512, 264) },
e99ca98f1d7190 Ricardo Ribalda Delgado 2016-12-02 2842 { "3S1400AN", S3AN_INFO(0x1f2600, 512, 528) },
ce5013ff3bec05 Hauke Mehrtens 2018-04-18 2843
ce5013ff3bec05 Hauke Mehrtens 2018-04-18 2844 /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
ce5013ff3bec05 Hauke Mehrtens 2018-04-18 2845 { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
ce5013ff3bec05 Hauke Mehrtens 2018-04-18 2846 { "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
b199489d37b21c Huang Shijie 2014-02-24 2847 { },
b199489d37b21c Huang Shijie 2014-02-24 2848 };
b199489d37b21c Huang Shijie 2014-02-24 2849
:::::: The code at line 2642 was first introduced by commit
:::::: d2c139cd25f72b5ba2f6927fcce17c69f0a8fab7 mtd: spi-nor: Update flags for serial NOR flash devices
:::::: TO: Amit Kumar Mahapatra <amit.kumar-mahapatra(a)xilinx.com>
:::::: CC: Michal Simek <michal.simek(a)xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[frank-w-bpi-r2-4.14:5.12-hnat 7/74] drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for function 'mtk_wcn_consys_power_on'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.12-hnat
head: 0acf26933dc7535e46a32eb26f653057c31ed955
commit: 8b9172b5828099a26f51938d415157c01669d56b [7/74] mt6625l: add changes outside driver dir
config: arm-randconfig-r023-20210410 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/frank-w/BPI-R2-4.14/commit/8b9172b5828099a26f51938d415...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.12-hnat
git checkout 8b9172b5828099a26f51938d415157c01669d56b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for function 'mtk_wcn_consys_power_on' [-Werror,-Wmissing-prototypes]
VOID mtk_wcn_consys_power_on(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID mtk_wcn_consys_power_on(VOID)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:207:6: error: no previous prototype for function 'mtk_wcn_consys_power_off' [-Werror,-Wmissing-prototypes]
VOID mtk_wcn_consys_power_off(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID mtk_wcn_consys_power_off(VOID)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:224:7: error: no previous prototype for function 'mtk_wcn_consys_hw_reg_ctrl' [-Werror,-Wmissing-prototypes]
INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:224:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:335:7: error: no previous prototype for function 'mtk_wcn_consys_hw_gpio_ctrl' [-Werror,-Wmissing-prototypes]
INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:539:7: error: no previous prototype for function 'mtk_wcn_consys_hw_restore' [-Werror,-Wmissing-prototypes]
INT32 mtk_wcn_consys_hw_restore(struct device *device)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:539:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 mtk_wcn_consys_hw_restore(struct device *device)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:592:5: error: no previous prototype for function 'reserve_memory_consys_fn' [-Werror,-Wmissing-prototypes]
int reserve_memory_consys_fn(struct reserved_mem *rmem)
^
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:592:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int reserve_memory_consys_fn(struct reserved_mem *rmem)
^
static
6 errors generated.
vim +/mtk_wcn_consys_power_on +191 drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c
c343c475084eb2 Frank Wunderlich 2020-12-28 190
c343c475084eb2 Frank Wunderlich 2020-12-28 @191 VOID mtk_wcn_consys_power_on(VOID)
c343c475084eb2 Frank Wunderlich 2020-12-28 192 {
c343c475084eb2 Frank Wunderlich 2020-12-28 193 INT32 iRet = -1;
c343c475084eb2 Frank Wunderlich 2020-12-28 194 iRet = pm_runtime_get_sync(&my_pdev->dev);
c343c475084eb2 Frank Wunderlich 2020-12-28 195 if (iRet)
c343c475084eb2 Frank Wunderlich 2020-12-28 196 WMT_PLAT_ERR_FUNC("pm_runtime_get_sync() fail(%d)\n", iRet);
c343c475084eb2 Frank Wunderlich 2020-12-28 197 else
c343c475084eb2 Frank Wunderlich 2020-12-28 198 WMT_PLAT_INFO_FUNC("pm_runtime_get_sync() CONSYS ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 199
c343c475084eb2 Frank Wunderlich 2020-12-28 200 iRet = device_init_wakeup(&my_pdev->dev, true);
c343c475084eb2 Frank Wunderlich 2020-12-28 201 if (iRet)
c343c475084eb2 Frank Wunderlich 2020-12-28 202 WMT_PLAT_ERR_FUNC("device_init_wakeup(true) fail.\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 203 else
c343c475084eb2 Frank Wunderlich 2020-12-28 204 WMT_PLAT_INFO_FUNC("device_init_wakeup(true) CONSYS ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 205 }
c343c475084eb2 Frank Wunderlich 2020-12-28 206
c343c475084eb2 Frank Wunderlich 2020-12-28 @207 VOID mtk_wcn_consys_power_off(VOID)
c343c475084eb2 Frank Wunderlich 2020-12-28 208 {
c343c475084eb2 Frank Wunderlich 2020-12-28 209 INT32 iRet = -1;
c343c475084eb2 Frank Wunderlich 2020-12-28 210
c343c475084eb2 Frank Wunderlich 2020-12-28 211 iRet = pm_runtime_put_sync(&my_pdev->dev);
c343c475084eb2 Frank Wunderlich 2020-12-28 212 if (iRet)
c343c475084eb2 Frank Wunderlich 2020-12-28 213 WMT_PLAT_ERR_FUNC("pm_runtime_put_sync() fail.\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 214 else
c343c475084eb2 Frank Wunderlich 2020-12-28 215 WMT_PLAT_INFO_FUNC("pm_runtime_put_sync() CONSYS ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 216
c343c475084eb2 Frank Wunderlich 2020-12-28 217 iRet = device_init_wakeup(&my_pdev->dev, false);
c343c475084eb2 Frank Wunderlich 2020-12-28 218 if (iRet)
c343c475084eb2 Frank Wunderlich 2020-12-28 219 WMT_PLAT_ERR_FUNC("device_init_wakeup(false) fail.\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 220 else
c343c475084eb2 Frank Wunderlich 2020-12-28 221 WMT_PLAT_INFO_FUNC("device_init_wakeup(false) CONSYS ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 222 }
c343c475084eb2 Frank Wunderlich 2020-12-28 223
c343c475084eb2 Frank Wunderlich 2020-12-28 @224 INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
c343c475084eb2 Frank Wunderlich 2020-12-28 225 {
c343c475084eb2 Frank Wunderlich 2020-12-28 226 UINT32 retry = 10;
c343c475084eb2 Frank Wunderlich 2020-12-28 227 UINT32 consysHwChipId = 0;
c343c475084eb2 Frank Wunderlich 2020-12-28 228
c343c475084eb2 Frank Wunderlich 2020-12-28 229 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),start\n", on);
c343c475084eb2 Frank Wunderlich 2020-12-28 230 if (on) {
c343c475084eb2 Frank Wunderlich 2020-12-28 231 WMT_PLAT_DBG_FUNC("++\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 232 /*need PMIC driver provide new API protocol */
c343c475084eb2 Frank Wunderlich 2020-12-28 233 /*1.AP power on VCN_1V8 LDO (with PMIC_WRAP API) VCN_1V8 */
c343c475084eb2 Frank Wunderlich 2020-12-28 234 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
c343c475084eb2 Frank Wunderlich 2020-12-28 235 /* VOL_DEFAULT, VOL_1200, VOL_1300, VOL_1500, VOL_1800... */
c343c475084eb2 Frank Wunderlich 2020-12-28 236 if (reg_VCN18) {
c343c475084eb2 Frank Wunderlich 2020-12-28 237 regulator_set_voltage(reg_VCN18, 1800000, 1800000);
c343c475084eb2 Frank Wunderlich 2020-12-28 238 if (regulator_enable(reg_VCN18))
c343c475084eb2 Frank Wunderlich 2020-12-28 239 WMT_PLAT_ERR_FUNC("enable VCN18 fail\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 240 else
c343c475084eb2 Frank Wunderlich 2020-12-28 241 WMT_PLAT_DBG_FUNC("enable VCN18 ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 242 }
c343c475084eb2 Frank Wunderlich 2020-12-28 243 udelay(150);
c343c475084eb2 Frank Wunderlich 2020-12-28 244 if (co_clock_type) {
c343c475084eb2 Frank Wunderlich 2020-12-28 245 /*step0,clk buf ctrl */
c343c475084eb2 Frank Wunderlich 2020-12-28 246 WMT_PLAT_INFO_FUNC("co clock type(%d),turn on clk buf\n", co_clock_type);
c343c475084eb2 Frank Wunderlich 2020-12-28 247 #if CONSYS_CLOCK_BUF_CTRL
c343c475084eb2 Frank Wunderlich 2020-12-28 248 clk_buf_ctrl(CLK_BUF_CONN, 1);
c343c475084eb2 Frank Wunderlich 2020-12-28 249 #endif
c343c475084eb2 Frank Wunderlich 2020-12-28 250 /*if co-clock mode: */
c343c475084eb2 Frank Wunderlich 2020-12-28 251 /*2.set VCN28 to SW control mode (with PMIC_WRAP API) */
c343c475084eb2 Frank Wunderlich 2020-12-28 252 /*turn on VCN28 LDO only when FMSYS is activated" */
c343c475084eb2 Frank Wunderlich 2020-12-28 253 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
c343c475084eb2 Frank Wunderlich 2020-12-28 254 } else {
c343c475084eb2 Frank Wunderlich 2020-12-28 255 /*if NOT co-clock: */
c343c475084eb2 Frank Wunderlich 2020-12-28 256 /*2.1.switch VCN28 to HW control mode (with PMIC_WRAP API) */
c343c475084eb2 Frank Wunderlich 2020-12-28 257 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x1 << 14);/*V28*/
c343c475084eb2 Frank Wunderlich 2020-12-28 258 /*2.2.turn on VCN28 LDO (with PMIC_WRAP API)" */
c343c475084eb2 Frank Wunderlich 2020-12-28 259 /*fix vcn28 not balance warning */
c343c475084eb2 Frank Wunderlich 2020-12-28 260 if (reg_VCN28) {
c343c475084eb2 Frank Wunderlich 2020-12-28 261 regulator_set_voltage(reg_VCN28, 2800000, 2800000);
c343c475084eb2 Frank Wunderlich 2020-12-28 262 if (regulator_enable(reg_VCN28))
c343c475084eb2 Frank Wunderlich 2020-12-28 263 WMT_PLAT_ERR_FUNC("enable VCN_2V8 fail!\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 264 else
c343c475084eb2 Frank Wunderlich 2020-12-28 265 WMT_PLAT_DBG_FUNC("enable VCN_2V8 ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 266 }
c343c475084eb2 Frank Wunderlich 2020-12-28 267 }
c343c475084eb2 Frank Wunderlich 2020-12-28 268
c343c475084eb2 Frank Wunderlich 2020-12-28 269 /*3.assert CONNSYS CPU SW reset 0x10007018 "[12]=1'b1 [31:24]=8'h88 (key)" */
c343c475084eb2 Frank Wunderlich 2020-12-28 270 reset_control_reset(rstc);
c343c475084eb2 Frank Wunderlich 2020-12-28 271 mtk_wcn_consys_power_on();
c343c475084eb2 Frank Wunderlich 2020-12-28 272 /*11.26M is ready now, delay 10us for mem_pd de-assert */
c343c475084eb2 Frank Wunderlich 2020-12-28 273 udelay(10);
c343c475084eb2 Frank Wunderlich 2020-12-28 274 /*enable AP bus clock : connmcu_bus_pd API: enable_clock() ++?? */
c343c475084eb2 Frank Wunderlich 2020-12-28 275 clk_prepare_enable(clk_infra_conn_main);
c343c475084eb2 Frank Wunderlich 2020-12-28 276 WMT_PLAT_DBG_FUNC("[CCF]enable clk_infra_conn_main\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 277 /*12.poll CONNSYS CHIP ID until chipid is returned 0x18070008 */
c343c475084eb2 Frank Wunderlich 2020-12-28 278 while (retry-- > 0) {
c343c475084eb2 Frank Wunderlich 2020-12-28 279 consysHwChipId = CONSYS_REG_READ(conn_reg.mcu_base + CONSYS_CHIP_ID_OFFSET) - 0xf6d;
c343c475084eb2 Frank Wunderlich 2020-12-28 280
c343c475084eb2 Frank Wunderlich 2020-12-28 281 if ((consysHwChipId == 0x0321) || (consysHwChipId == 0x0335) || (consysHwChipId == 0x0337)) {
c343c475084eb2 Frank Wunderlich 2020-12-28 282 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
c343c475084eb2 Frank Wunderlich 2020-12-28 283 break;
c343c475084eb2 Frank Wunderlich 2020-12-28 284 }
c343c475084eb2 Frank Wunderlich 2020-12-28 285 if ((consysHwChipId == 0x8163) || (consysHwChipId == 0x8127) || (consysHwChipId == 0x7623)) {
c343c475084eb2 Frank Wunderlich 2020-12-28 286 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
c343c475084eb2 Frank Wunderlich 2020-12-28 287 break;
c343c475084eb2 Frank Wunderlich 2020-12-28 288 }
c343c475084eb2 Frank Wunderlich 2020-12-28 289
c343c475084eb2 Frank Wunderlich 2020-12-28 290 WMT_PLAT_ERR_FUNC("Read CONSYS chipId(0x%08x)", consysHwChipId);
c343c475084eb2 Frank Wunderlich 2020-12-28 291 msleep(20);
c343c475084eb2 Frank Wunderlich 2020-12-28 292 }
c343c475084eb2 Frank Wunderlich 2020-12-28 293
c343c475084eb2 Frank Wunderlich 2020-12-28 294 if ((0 == retry) || (0 == consysHwChipId))
c343c475084eb2 Frank Wunderlich 2020-12-28 295 WMT_PLAT_ERR_FUNC("Maybe has a consys power on issue,(0x%08x)\n", consysHwChipId);
c343c475084eb2 Frank Wunderlich 2020-12-28 296
c343c475084eb2 Frank Wunderlich 2020-12-28 297 msleep(40);
c343c475084eb2 Frank Wunderlich 2020-12-28 298
c343c475084eb2 Frank Wunderlich 2020-12-28 299 } else {
c343c475084eb2 Frank Wunderlich 2020-12-28 300
c343c475084eb2 Frank Wunderlich 2020-12-28 301 clk_disable_unprepare(clk_infra_conn_main);
c343c475084eb2 Frank Wunderlich 2020-12-28 302 WMT_PLAT_DBG_FUNC("[CCF] clk_disable_unprepare(clk_infra_conn_main) calling\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 303 mtk_wcn_consys_power_off();
c343c475084eb2 Frank Wunderlich 2020-12-28 304
c343c475084eb2 Frank Wunderlich 2020-12-28 305 if (co_clock_type) {
c343c475084eb2 Frank Wunderlich 2020-12-28 306 /*VCN28 has been turned off by GPS OR FM */
c343c475084eb2 Frank Wunderlich 2020-12-28 307 #if CONSYS_CLOCK_BUF_CTRL
c343c475084eb2 Frank Wunderlich 2020-12-28 308 clk_buf_ctrl(CLK_BUF_CONN, 0);
c343c475084eb2 Frank Wunderlich 2020-12-28 309 #endif
c343c475084eb2 Frank Wunderlich 2020-12-28 310 } else {
c343c475084eb2 Frank Wunderlich 2020-12-28 311 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
c343c475084eb2 Frank Wunderlich 2020-12-28 312 /*turn off VCN28 LDO (with PMIC_WRAP API)" */
c343c475084eb2 Frank Wunderlich 2020-12-28 313 if (reg_VCN28) {
c343c475084eb2 Frank Wunderlich 2020-12-28 314 if (regulator_disable(reg_VCN28))
c343c475084eb2 Frank Wunderlich 2020-12-28 315 WMT_PLAT_ERR_FUNC("disable VCN_2V8 fail!\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 316 else
c343c475084eb2 Frank Wunderlich 2020-12-28 317 WMT_PLAT_DBG_FUNC("disable VCN_2V8 ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 318 }
c343c475084eb2 Frank Wunderlich 2020-12-28 319 }
c343c475084eb2 Frank Wunderlich 2020-12-28 320
c343c475084eb2 Frank Wunderlich 2020-12-28 321 /*AP power off MT6625L VCN_1V8 LDO */
c343c475084eb2 Frank Wunderlich 2020-12-28 322 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
c343c475084eb2 Frank Wunderlich 2020-12-28 323 if (reg_VCN18) {
c343c475084eb2 Frank Wunderlich 2020-12-28 324 if (regulator_disable(reg_VCN18))
c343c475084eb2 Frank Wunderlich 2020-12-28 325 WMT_PLAT_ERR_FUNC("disable VCN_1V8 fail!\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 326 else
c343c475084eb2 Frank Wunderlich 2020-12-28 327 WMT_PLAT_DBG_FUNC("disable VCN_1V8 ok\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 328 }
c343c475084eb2 Frank Wunderlich 2020-12-28 329
c343c475084eb2 Frank Wunderlich 2020-12-28 330 }
c343c475084eb2 Frank Wunderlich 2020-12-28 331 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),finish\n", on);
c343c475084eb2 Frank Wunderlich 2020-12-28 332 return 0;
c343c475084eb2 Frank Wunderlich 2020-12-28 333 }
c343c475084eb2 Frank Wunderlich 2020-12-28 334
c343c475084eb2 Frank Wunderlich 2020-12-28 @335 INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
c343c475084eb2 Frank Wunderlich 2020-12-28 336 {
c343c475084eb2 Frank Wunderlich 2020-12-28 337 INT32 iRet = 0;
c343c475084eb2 Frank Wunderlich 2020-12-28 338
c343c475084eb2 Frank Wunderlich 2020-12-28 339 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), start\n", on);
c343c475084eb2 Frank Wunderlich 2020-12-28 340
c343c475084eb2 Frank Wunderlich 2020-12-28 341 if (on) {
c343c475084eb2 Frank Wunderlich 2020-12-28 342
c343c475084eb2 Frank Wunderlich 2020-12-28 343 /* TODO: [FixMe][GeorgeKuo] double check if BGF_INT is implemented ok */
c343c475084eb2 Frank Wunderlich 2020-12-28 344 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_MUX); */
c343c475084eb2 Frank Wunderlich 2020-12-28 345 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_INIT);
c343c475084eb2 Frank Wunderlich 2020-12-28 346 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
c343c475084eb2 Frank Wunderlich 2020-12-28 347 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ registered and disabled\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 348
c343c475084eb2 Frank Wunderlich 2020-12-28 349 } else {
c343c475084eb2 Frank Wunderlich 2020-12-28 350
c343c475084eb2 Frank Wunderlich 2020-12-28 351 /* set bgf eint/all eint to deinit state, namely input low state */
c343c475084eb2 Frank Wunderlich 2020-12-28 352 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
c343c475084eb2 Frank Wunderlich 2020-12-28 353 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT);
c343c475084eb2 Frank Wunderlich 2020-12-28 354 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ unregistered and disabled\n");
c343c475084eb2 Frank Wunderlich 2020-12-28 355 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT); */
c343c475084eb2 Frank Wunderlich 2020-12-28 356 }
c343c475084eb2 Frank Wunderlich 2020-12-28 357 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), finish\n", on);
c343c475084eb2 Frank Wunderlich 2020-12-28 358 return iRet;
c343c475084eb2 Frank Wunderlich 2020-12-28 359
:::::: The code at line 191 was first introduced by commit
:::::: c343c475084eb21ea9755cca063e6fce33330704 mt6625l: add driver from 5.11
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
ld.lld: error: pep.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 16792656 is not in
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Mark Rutland <mark.rutland(a)arm.com>
CC: Peter Zijlstra <peterz(a)infradead.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d4961772226de3b48a395a26c076d450d7044c76
commit: 997acaf6b4b59c6a9c259740312a69ea549cc684 lockdep: report broken irq restoration
date: 3 months ago
config: arm-randconfig-r016-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 997acaf6b4b59c6a9c259740312a69ea549cc684
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: af_vsock.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 17395528 is not in [-16777216, 16777215]
>> ld.lld: error: pep.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 16792656 is not in [-16777216, 16777215]
ld.lld: error: llcp_sock.c:(.text.fixup+0x8): relocation R_ARM_THM_JUMP24 out of range: 17346430 is not in [-16777216, 16777215]
ld.lld: error: qrtr.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 17436866 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 17178762 is not in [-16777216, 16777215]
>> ld.lld: error: datagram.c:(.text.fixup+0x8): relocation R_ARM_THM_JUMP24 out of range: 16785264 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0x8): relocation R_ARM_THM_JUMP24 out of range: 16782586 is not in [-16777216, 16777215]
ld.lld: error: datagram.c:(.text.fixup+0x10): relocation R_ARM_THM_JUMP24 out of range: 16785330 is not in [-16777216, 16777215]
ld.lld: error: qrtr.c:(.text.fixup+0xC): relocation R_ARM_THM_JUMP24 out of range: 17436880 is not in [-16777216, 16777215]
ld.lld: error: llcp_sock.c:(.text.fixup+0x10): relocation R_ARM_THM_JUMP24 out of range: 17346564 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0xC): relocation R_ARM_THM_JUMP24 out of range: 17178850 is not in [-16777216, 16777215]
ld.lld: error: pep.c:(.text.fixup+0x10): relocation R_ARM_THM_JUMP24 out of range: 16793118 is not in [-16777216, 16777215]
ld.lld: error: af_vsock.c:(.text.fixup+0x10): relocation R_ARM_THM_JUMP24 out of range: 17401242 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0x10): relocation R_ARM_THM_JUMP24 out of range: 16782804 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0x18): relocation R_ARM_THM_JUMP24 out of range: 17179240 is not in [-16777216, 16777215]
ld.lld: error: llcp_sock.c:(.text.fixup+0x18): relocation R_ARM_THM_JUMP24 out of range: 17346580 is not in [-16777216, 16777215]
ld.lld: error: pep.c:(.text.fixup+0x18): relocation R_ARM_THM_JUMP24 out of range: 16793232 is not in [-16777216, 16777215]
ld.lld: error: af_vsock.c:(.text.fixup+0x18): relocation R_ARM_THM_JUMP24 out of range: 17401506 is not in [-16777216, 16777215]
ld.lld: error: socket.c:(.text.fixup+0x20): relocation R_ARM_THM_JUMP24 out of range: 17179378 is not in [-16777216, 16777215]
ld.lld: error: llcp_sock.c:(.text.fixup+0x20): relocation R_ARM_THM_JUMP24 out of range: 17346630 is not in [-16777216, 16777215]
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[intel-linux-intel-lts:5.4/preempt-rt 3/13] drivers/gpu/drm/i915/display/intel_sprite.c:75:30: error: unused variable 'pipe_update_lock'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: bb4ae19664a898236b2af46b45a6a0fea23ab20d
commit: 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f [3/13] Merge remote-tracking branch 'origin/5.4/yocto' into lts2019/yocto-rt
config: x86_64-randconfig-a003-20210410 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/7bc82c4f1b47c643468c3be1d...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_sprite.c:75:30: error: unused variable 'pipe_update_lock' [-Werror,-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(pipe_update_lock);
^
1 error generated.
vim +/pipe_update_lock +75 drivers/gpu/drm/i915/display/intel_sprite.c
e1edbd44e23b41 drivers/gpu/drm/i915/intel_sprite.c Maarten Lankhorst 2017-02-28 74
f5bcd1ba26d178 drivers/gpu/drm/i915/display/intel_sprite.c Mike Galbraith 2016-02-27 @75 static DEFINE_LOCAL_IRQ_LOCK(pipe_update_lock);
f5bcd1ba26d178 drivers/gpu/drm/i915/display/intel_sprite.c Mike Galbraith 2016-02-27 76
:::::: The code at line 75 was first introduced by commit
:::::: f5bcd1ba26d178d80c1424195832325a2daa923b drm,i915: Use local_lock/unlock_irq() in intel_pipe_update_start/end()
:::::: TO: Mike Galbraith <umgwanakikbuti(a)gmail.com>
:::::: CC: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months