[intel-linux-intel-lts:5.4/preempt-rt 3/13] arch/powerpc/platforms/pseries/iommu.c:181:30: error: 'tcp_page_lock' defined but not used
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: powerpc64-randconfig-r016-20210610 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0
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
# 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=gcc-9.3.0 make.cross ARCH=powerpc64
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 >>):
In file included from arch/powerpc/platforms/pseries/iommu.c:27:
>> arch/powerpc/platforms/pseries/iommu.c:181:30: error: 'tcp_page_lock' defined but not used [-Werror=unused-const-variable=]
181 | static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
| ^~~~~~~~~~~~~
include/linux/locallock.h:244:60: note: in definition of macro 'DEFINE_LOCAL_IRQ_LOCK'
244 | #define DEFINE_LOCAL_IRQ_LOCK(lvar) __typeof__(const int) lvar
| ^~~~
cc1: all warnings being treated as errors
vim +/tcp_page_lock +181 arch/powerpc/platforms/pseries/iommu.c
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16 179
df015604cf5bb0 arch/powerpc/platforms/pseries/iommu.c Anton Blanchard 2013-10-17 180 static DEFINE_PER_CPU(__be64 *, tce_page);
3ab3ff1d185c02 arch/powerpc/platforms/pseries/iommu.c Sebastian Andrzej Siewior 2019-03-26 @181 static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16 182
:::::: The code at line 181 was first introduced by commit
:::::: 3ab3ff1d185c02c51cfb22a22476d8c3791c8810 powerpc/pseries/iommu: Use a locallock instead local_irq_save()
:::::: TO: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
:::::: 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, 3 months
[hch-misc:decruft-i915-gvt 5/22] ERROR: modpost: "intel_runtime_pm_put_unchecked" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git decruft-i915-gvt
head: 5a83fd957b1c8da084696503d32bfba759821b67
commit: c950c2355534ed52f3614e97248f607aaebb25cd [5/22] drm/i915/gvt: move the gvt code into kvmgt.ko
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc decruft-i915-gvt
git checkout c950c2355534ed52f3614e97248f607aaebb25cd
# save the attached .config to linux build tree
make W=1 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 >>, old ones prefixed by <<):
>> ERROR: modpost: "intel_runtime_pm_put_unchecked" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_gem_object_ggtt_pin_ww" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_reserve_fence" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_gem_ww_ctx_init" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "intel_context_create" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_vm_release" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_gem_prime_export" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "shmem_pin_map" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "__intel_context_do_pin" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
>> ERROR: modpost: "i915_gem_ww_ctx_fini" [drivers/gpu/drm/i915/kvmgt.ko] undefined!
WARNING: modpost: suppressed 13 unresolved symbol warnings because there were too many)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[chrome-os:chromeos-5.4 169/247] drivers/misc/intel/gna/mem.h:89:22: error: field 'mn' has incomplete type
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: a9ca4e9c3176d471cc7361a42dc5d50fae31f0d3
commit: c4d17c651ae9d7903f37afccee06739b7c5442f6 [169/247] BACKPORT: FROMLIST: v3: intel_gna: add memory handling
config: i386-randconfig-r032-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout c4d17c651ae9d7903f37afccee06739b7c5442f6
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
In file included from drivers/misc/intel/gna/device.h:14,
from drivers/misc/intel/gna/device.c:9:
>> drivers/misc/intel/gna/mem.h:89:22: error: field 'mn' has incomplete type
89 | struct mmu_notifier mn;
| ^~
vim +/mn +89 drivers/misc/intel/gna/mem.h
84
85 struct gna_mmu_notifier {
86 struct gna_file_private *file_priv;
87 struct gna_private *gna_priv;
88 struct gna_memory_object *mo;
> 89 struct mmu_notifier mn;
90 struct mm_struct *mm;
91 };
92
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[sound:for-next 164/167] include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: 7fdabab8f56239466275adea5d2f0a6fff27527b
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/167] ALSA: core: Abstract memory alloc helpers
config: h8300-randconfig-r006-20210610 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?i...
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound for-next
git checkout 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
In file included from include/sound/pcm.h:12,
from sound/core/pcm_iec958.c:8:
include/sound/memalloc.h: In function 'snd_sgbuf_aligned_pages':
>> include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared (first use in this function)
63 | return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
| ^~~~~~~~~
include/sound/memalloc.h:63:17: note: each undeclared identifier is reported only once for each function it appears in
>> include/sound/memalloc.h:63:35: error: 'PAGE_SHIFT' undeclared (first use in this function)
63 | return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
| ^~~~~~~~~~
vim +/PAGE_SIZE +63 include/sound/memalloc.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 57
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 58 /*
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 59 * return the pages matching with the given byte size
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 60 */
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 61 static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 62 {
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 @63 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 64 }
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 65
:::::: The code at line 63 was first introduced by commit
:::::: 4cae99d9b5305ab8cccc839fccceb81ec9e5abda ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally
:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart(a)linux.intel.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-5.10.y 2728/5815] ld.lld: error: debug_core.c:(.text+0x25AC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
TO: Sumit Garg <sumit.garg(a)linaro.org>
CC: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
CC: Andrew Morton <akpm(a)linux-foundation.org>
CC: Linux Memory Management List <linux-mm(a)kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: c108263eaf06733c15c23cb4fdf83d188c0e2881
commit: 13e83186c91a1e0990cbd2d4ef6b7d572bcc9277 [2728/5815] kgdb: fix to kill breakpoints on initmem after boot
config: riscv-randconfig-r002-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 13e83186c91a1e0990cbd2d4ef6b7d572bcc9277
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2124): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x213E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x21DC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x241E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2538): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x25AC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x25FA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2634): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x26E4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2712): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2730): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x27B2): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0xD8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0x164): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH v3 2/6] ACPI: Move IOMMU setup code out of IORT
by kernel test robot
Hi Jean-Philippe,
I love your patch! Yet something to improve:
[auto build test ERROR on pm/linux-next]
[also build test ERROR on iommu/next arm64/for-next/core linus/master v5.13-rc4 next-20210602]
[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/Jean-Philippe-Brucker/Add-suppor...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: x86_64-randconfig-a012-20210602 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d41cb6bb2607fa5c7a9df2b3dab361353657d225)
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/0day-ci/linux/commit/937da71a81108243877fb1f0f568e56a0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jean-Philippe-Brucker/Add-support-for-ACPI-VIOT/20210602-235849
git checkout 937da71a81108243877fb1f0f568e56a08a62c50
# 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/acpi/scan.c:1540:26: error: no member named 'ops' in 'struct iommu_fwspec'
return fwspec ? fwspec->ops : NULL;
~~~~~~ ^
>> drivers/acpi/scan.c:1564:9: error: implicit declaration of function 'iommu_probe_device' [-Werror,-Wimplicit-function-declaration]
err = iommu_probe_device(dev);
^
2 errors generated.
vim +1540 drivers/acpi/scan.c
1535
1536 static inline const struct iommu_ops *acpi_iommu_fwspec_ops(struct device *dev)
1537 {
1538 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
1539
> 1540 return fwspec ? fwspec->ops : NULL;
1541 }
1542
1543 static const struct iommu_ops *acpi_iommu_configure_id(struct device *dev,
1544 const u32 *id_in)
1545 {
1546 int err;
1547 const struct iommu_ops *ops;
1548
1549 /*
1550 * If we already translated the fwspec there is nothing left to do,
1551 * return the iommu_ops.
1552 */
1553 ops = acpi_iommu_fwspec_ops(dev);
1554 if (ops)
1555 return ops;
1556
1557 err = iort_iommu_configure_id(dev, id_in);
1558
1559 /*
1560 * If we have reason to believe the IOMMU driver missed the initial
1561 * add_device callback for dev, replay it to get things in order.
1562 */
1563 if (!err && dev->bus && !device_iommu_mapped(dev))
> 1564 err = iommu_probe_device(dev);
1565
1566 /* Ignore all other errors apart from EPROBE_DEFER */
1567 if (err == -EPROBE_DEFER) {
1568 return ERR_PTR(err);
1569 } else if (err) {
1570 dev_dbg(dev, "Adding to IOMMU failed: %d\n", err);
1571 return NULL;
1572 }
1573 return acpi_iommu_fwspec_ops(dev);
1574 }
1575
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/gpu/drm/xlnx/zynqmp_dp.c:997 zynqmp_dp_aux_cmd_submit() error: we previously assumed 'buf' could be null (see line 966)
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 368094df48e680fa51cedb68537408cfa64b788e
commit: d76271d22694e874ed70791702db9252ffe96a4c drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem
config: h8300-randconfig-m031-20210609 (attached as .config)
compiler: h8300-linux-gcc (GCC) 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: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/gpu/drm/xlnx/zynqmp_dp.c:997 zynqmp_dp_aux_cmd_submit() error: we previously assumed 'buf' could be null (see line 966)
vim +/buf +997 drivers/gpu/drm/xlnx/zynqmp_dp.c
d76271d22694e8 Hyun Kwon 2018-07-07 949 static int zynqmp_dp_aux_cmd_submit(struct zynqmp_dp *dp, u32 cmd, u16 addr,
d76271d22694e8 Hyun Kwon 2018-07-07 950 u8 *buf, u8 bytes, u8 *reply)
d76271d22694e8 Hyun Kwon 2018-07-07 951 {
d76271d22694e8 Hyun Kwon 2018-07-07 952 bool is_read = (cmd & AUX_READ_BIT) ? true : false;
d76271d22694e8 Hyun Kwon 2018-07-07 953 u32 reg, i;
d76271d22694e8 Hyun Kwon 2018-07-07 954
d76271d22694e8 Hyun Kwon 2018-07-07 955 reg = zynqmp_dp_read(dp, ZYNQMP_DP_INTERRUPT_SIGNAL_STATE);
d76271d22694e8 Hyun Kwon 2018-07-07 956 if (reg & ZYNQMP_DP_INTERRUPT_SIGNAL_STATE_REQUEST)
d76271d22694e8 Hyun Kwon 2018-07-07 957 return -EBUSY;
d76271d22694e8 Hyun Kwon 2018-07-07 958
d76271d22694e8 Hyun Kwon 2018-07-07 959 zynqmp_dp_write(dp, ZYNQMP_DP_AUX_ADDRESS, addr);
d76271d22694e8 Hyun Kwon 2018-07-07 960 if (!is_read)
d76271d22694e8 Hyun Kwon 2018-07-07 961 for (i = 0; i < bytes; i++)
d76271d22694e8 Hyun Kwon 2018-07-07 962 zynqmp_dp_write(dp, ZYNQMP_DP_AUX_WRITE_FIFO,
d76271d22694e8 Hyun Kwon 2018-07-07 963 buf[i]);
^^^^^^
d76271d22694e8 Hyun Kwon 2018-07-07 964
d76271d22694e8 Hyun Kwon 2018-07-07 965 reg = cmd << ZYNQMP_DP_AUX_COMMAND_CMD_SHIFT;
d76271d22694e8 Hyun Kwon 2018-07-07 @966 if (!buf || !bytes)
Obviously when bytes is zero then buf is NULL etc... This is false
positive so you can ignore it if you want, but another option would be
to just check "bytes" here. if (!bytes) is the same as if (!buf).
d76271d22694e8 Hyun Kwon 2018-07-07 967 reg |= ZYNQMP_DP_AUX_COMMAND_ADDRESS_ONLY;
d76271d22694e8 Hyun Kwon 2018-07-07 968 else
d76271d22694e8 Hyun Kwon 2018-07-07 969 reg |= (bytes - 1) << ZYNQMP_DP_AUX_COMMAND_BYTES_SHIFT;
d76271d22694e8 Hyun Kwon 2018-07-07 970 zynqmp_dp_write(dp, ZYNQMP_DP_AUX_COMMAND, reg);
d76271d22694e8 Hyun Kwon 2018-07-07 971
d76271d22694e8 Hyun Kwon 2018-07-07 972 /* Wait for reply to be delivered upto 2ms */
d76271d22694e8 Hyun Kwon 2018-07-07 973 for (i = 0; ; i++) {
d76271d22694e8 Hyun Kwon 2018-07-07 974 reg = zynqmp_dp_read(dp, ZYNQMP_DP_INTERRUPT_SIGNAL_STATE);
d76271d22694e8 Hyun Kwon 2018-07-07 975 if (reg & ZYNQMP_DP_INTERRUPT_SIGNAL_STATE_REPLY)
d76271d22694e8 Hyun Kwon 2018-07-07 976 break;
d76271d22694e8 Hyun Kwon 2018-07-07 977
d76271d22694e8 Hyun Kwon 2018-07-07 978 if (reg & ZYNQMP_DP_INTERRUPT_SIGNAL_STATE_REPLY_TIMEOUT ||
d76271d22694e8 Hyun Kwon 2018-07-07 979 i == 2)
d76271d22694e8 Hyun Kwon 2018-07-07 980 return -ETIMEDOUT;
d76271d22694e8 Hyun Kwon 2018-07-07 981
d76271d22694e8 Hyun Kwon 2018-07-07 982 usleep_range(1000, 1100);
d76271d22694e8 Hyun Kwon 2018-07-07 983 }
d76271d22694e8 Hyun Kwon 2018-07-07 984
d76271d22694e8 Hyun Kwon 2018-07-07 985 reg = zynqmp_dp_read(dp, ZYNQMP_DP_AUX_REPLY_CODE);
d76271d22694e8 Hyun Kwon 2018-07-07 986 if (reply)
d76271d22694e8 Hyun Kwon 2018-07-07 987 *reply = reg;
d76271d22694e8 Hyun Kwon 2018-07-07 988
d76271d22694e8 Hyun Kwon 2018-07-07 989 if (is_read &&
d76271d22694e8 Hyun Kwon 2018-07-07 990 (reg == ZYNQMP_DP_AUX_REPLY_CODE_AUX_ACK ||
d76271d22694e8 Hyun Kwon 2018-07-07 991 reg == ZYNQMP_DP_AUX_REPLY_CODE_I2C_ACK)) {
d76271d22694e8 Hyun Kwon 2018-07-07 992 reg = zynqmp_dp_read(dp, ZYNQMP_DP_REPLY_DATA_COUNT);
d76271d22694e8 Hyun Kwon 2018-07-07 993 if ((reg & ZYNQMP_DP_REPLY_DATA_COUNT_MASK) != bytes)
d76271d22694e8 Hyun Kwon 2018-07-07 994 return -EIO;
d76271d22694e8 Hyun Kwon 2018-07-07 995
d76271d22694e8 Hyun Kwon 2018-07-07 996 for (i = 0; i < bytes; i++)
d76271d22694e8 Hyun Kwon 2018-07-07 @997 buf[i] = zynqmp_dp_read(dp, ZYNQMP_DP_AUX_REPLY_DATA);
d76271d22694e8 Hyun Kwon 2018-07-07 998 }
d76271d22694e8 Hyun Kwon 2018-07-07 999
d76271d22694e8 Hyun Kwon 2018-07-07 1000 return 0;
d76271d22694e8 Hyun Kwon 2018-07-07 1001 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months