Age | Commit message (Collapse) | Author |
|
1/1 [
Author: Kevin Hao
Email: kexin.hao@windriver.com
Subject: staging: octeon: Add a workaround for the issue of GCC8
Date: Wed, 20 Jun 2018 18:41:55 +0800
In function cvm_oct_xmit(), the packet length is set with code like
this:
pko_command.s.total_bytes = skb->len;
But when building with gcc8, the pko_command.s.total_bytes doesn't
emit the right value when it is used in the following codes:
/* Send the packet to the output queue */
if (unlikely(cvmx_pko_send_packet_finish(priv->port,
priv->queue + qos,
pko_command, hw_buffer,
CVMX_PKO_LOCK_NONE))) {
Adding a barrier after the assignment would generate the right codes.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/2 [
Author: He Zhe
Email: zhe.he@windriver.com
Subject: yaffs: Fix build failure by handling inode i_version with proper atomic API
Date: Tue, 19 Jun 2018 00:58:17 -0700
i_version in struct inode has changed to atomic64_t in mainline kernel.
This patch handles i_version with proper atomic API.
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
2/2 [
Author: He Zhe
Email: zhe.he@windriver.com
Subject: yaffs: Fix build failure by removing unused members of erase_info
Date: Tue, 19 Jun 2018 00:58:18 -0700
A few members of struct erase_info have been removed and no longer
used in mainline by the following commits. This patches removes
related useless initialization.
8f347c4232d5fc097599b711a3385722a6834005
"mtd: Unconditionally update ->fail_addr and ->addr in part_erase()"
884cfd9023ce6afe8bcf181ec988d8516eb32bf0
"mtd: Stop assuming mtd_erase() is asynchronous"
dcba51bbb9e0cc7f80d36eb20a033a4dff2ce9cc
"mtd: Get rid of unused fields in struct erase_info"
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/1 [
Author: Kevin Hao
Email: kexin.hao@windriver.com
Subject: MIPS: Use '+=" instead of '=' to avoid the CFLAGS override
Date: Mon, 11 Jun 2018 18:17:54 +0800
We used the CFLAGS_xxx to workaround the gcc 8 build warnings
for some specific file. But CFLAGS_xxx is also used with '=' in
other places of this Makefile. This override the gcc 8 workaround,
so replace all the '=' with '+=" to fix this issue.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
When we build the kernel sample codes, we need to open the samples related
configurations.
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Add PMC Driver support for Intel Core SoC.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/5 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: aufs4: aufs4-kbuild.patch
Date: Wed, 9 May 2018 09:50:05 -0400
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
2/5 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: aufs4: aufs4-base.patch
Date: Wed, 9 May 2018 09:50:47 -0400
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
3/5 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: aufs4: aufs4-mmap.patch
Date: Wed, 9 May 2018 09:51:18 -0400
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
4/5 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: aufs4: aufs4-standalone.patch
Date: Wed, 9 May 2018 09:51:39 -0400
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
5/5 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: aufs4: aufs4 core
Date: Wed, 9 May 2018 09:53:03 -0400
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Add Ethernet TEAM drivers for supporting libteam:
The Team softdev Linux driver provides a mechanism to team multiple
NICs (ports) into a single logical one (teamdev) at L2 layer.
This process is called "channel bonding", "Ethernet bonding", "channel
teaming", "link aggregation", etc. Bonding is already implemented in the
Linux kernel but the Team softdev Linux driver is modular, userspace
driven, very lean and efficient, and it does have some distinct
advantages over the kernel's bonding driver.
Detail description can be found in: http://libteam.org
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/1 [
Author: Juro Bystricky
Email: juro.bystricky@intel.com
Subject: modpost: srcversion sometimes incorrect
Date: Fri, 30 Mar 2018 10:14:05 -0700
"srcversion" field inserted into module modinfo section contains a
sum of the source files which made it. However, this field can
be incorrect. Building the same module can end up having inconsistent
srcversion field eventhough the sources remain the same.
This can be reproduced by building modules in a deeply nested directory,
but other factors contribute as well.
The reason for incorrect srcversion is that some source files can be
simply silently skipped from the checksum calculation due to limited
buffer space for line parsing.
This patch addresses two issues:
1. Allocates a larger line buffer (32k vs 4k).
2. Issues a warning if a line length exceeds the line buffer.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
This change adds WiFi driver configuration fragments. The fragments are
split into vendor and interface files to allow for easy selection of
drivers for specific interface types (USB, PCI, SDIO) which is useful
for BSPs with specific interfaces. The specific vendor/interface config
fragments can be included by specific BSPs in its .scc files.
However .scc files (wifi-*.scc) are provided to allow enabling interface
specific or all interfaces drivers via KERNEL_FEATURES or inclusion via
other .scc files. And wifi-common.scc is provided to enable the base
config options required for all WiFi drivers, which is done to ensure
correct configuration for default no config setups (e.g.
linux-yocto-tiny).
This patch only enables a limited set of drivers, which is based on what
the common-pc-wifi.cfg fragment sets as well as some additional drivers,
that primarily appear in USB WiFi devices.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
A Realtek RTL8211B PHY is integrated on mpc8315erdb board. It works
pretty well with the genphy driver. But now we apply a patch for the
Realtek PHY driver in order to fix an Ethernet broken issue on this
board. So enable this chip specific driver to make sure that fix can
take effect.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
This reverts commit 80a837348cddf6360ea08e9ad4a13080771de0a0.
|
|
Need to enable CONFIG_KERNEL_DEBUG in systemtap feature, otherwise
CONFIG_DEBUG_INFO set by systemtap.cfg does not have any effect since
it depends on CONFIG_KERNEL_DEBUG and is set off in resulting config.
So systemtap cannot find DWARF information in resulting kernel.
Signed-off-by: Victor Kamensky <kamensky@cisco.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/1 [
Author: "Kexin(Casey) Chen"
Email: Casey.Chen@windriver.com
Subject: aufs: fix compile warning
Date: Wed, 28 Feb 2018 20:44:52 -0500
Forward port linux-yocto-4.8's patch to fix the build warning.
http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.8/commit/?h=standard/base&id=7e0dd2f2b0971f0e3191e1ddc088e09eb9855567
fs/aufs/debug.h:95:19: warning: comparison of constant '0'
with boolean expression is always false [-Wbool-compare]
if (unlikely((e) < 0)) \
^
fs/aufs/vdir.c:852:2: note: in expansion of macro 'AuTraceErr'
AuTraceErr(!valid);
^~~~~~~~~~
In expansion of AuTraceErr(!valid), comparison of (!valid)
and constant '0' always passes unlikely(x) false. function
'static int seek_vdir(struct file *file, struct dir_context *ctx)'
is to find whether there is a valid vd_deblk following ctx->pos.
return 1 means valid, 0 for not. Change to AuTraceErr(valid - 1)
makes more sense.
Signed-off-by: Kexin(Casey) Chen <Casey.Chen@windriver.com>
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/2 [
Author: Kevin Hao
Email: kexin.hao@windriver.com
Subject: yaffs2: include rawnand.h instead of nand.h
Date: Fri, 23 Feb 2018 13:31:33 +0800
The nand.h has been renamed to rawnand.h by commit d4092d76a4a4 ("mtd:
nand: Rename nand.h into rawnand.h"), adjust the yaffs2 code according
to this change.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
2/2 [
Author: Kevin Hao
Email: kexin.hao@windriver.com
Subject: yaffs2: Adjust the timer callback and init functions
Date: Fri, 23 Feb 2018 13:32:51 +0800
The timer callback argument type has been changed by commit 354b46b1a0ad
("timer: Switch callback prototype to take struct timer_list *
argument") and init_timer_on_stack() is also removed by commit
9c6c273aa424 ("timer: Remove init_timer_on_stack() in favor of
timer_setup_on_stack()"). Adjust the codes in yaffs2 according to
these changes.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Enable support for PAE and more than 4 GB of RAM.
This config was getting included from within the platform
specific BSPs that have been removed. Include it here
to make sure there is no change in behavior for Intel BSPs.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Now that we've removed the platform specific BSP configs
that were being included from intel-common, enable those
features seprately.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
If enabled, support will be included for the Intel
iSMT SMBus host controller interface.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Remove configs for platforms in bsp/. These bsps should
use intel-common for configuration to avoid duplication
and overlap.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
OE uses qemumips to simulate a Malta board by default.
As upstream qemu introduced:
https://git.qemu.org/?p=qemu.git;a=commit;h=94c2b6aff43cdfcfdfb552773a6b6b973a72ef0b
The Malta board can support up to 2GiB of RAM which should
be able to boot a Linux kernel built with CONFIG_HIGHMEM
enabled.
For mips, the `High Memory Support' only makes sense for the 32-bit
kernel.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Set i915 as a module to trigger the firmware load
at the same time the module is loaded.
This can avoid a timing problem between the driver starting
and it triggering a firmware load, after compile it as module
i915 driver will start after the rootfs is ready, then the
firmware store in /lib/firmware/ can be load successful by
i915 driver.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The IGB driver is showing up on some general hardware (like MinnowBoard)
which is one of the Yocto Project Reference Platforms.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
kernel
if we set CONFIG_IXGBE=y to build ixgbe in kernel, CONFIG_IXGBE_DCA can not be
enabled since dependcy: IXGBE_DCA depend (IXGBE [=y]!=y || DCA [=y]!=m)
although we set CONFIG_IXGBE_DCA=y in ixgbe.cfg; This will led a kernel config
check warning as below:
Requested value: CONFIG_IXGBE_DCA=y
Actual value:
To make CONFIG_IXGBE_DCA work, set CONFIG_DCA=y and CONFIG_INTEL_IOATDMA=y
this also can aviod the check warning.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
There is no need pass "n" to CONFIG_INTEL_IOMMU_DEFAULT_ON,
change it to "# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set"
to keep consistent with teh final .config
This can avoid yocto config check warning when build kernel:
Requested value: CONFIG_INTEL_IOMMU_DEFAULT_ON=n
Actual value: # CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
CONFIG_HW_RANDOM was set to "m" by default in Kconfig,
this make CONFIG_HW_RANDOM_TPM only can be build as module,
So change CONFIG_HW_RANDOM_TPM=y to CONFIG_HW_RANDOM_TPM=m
to aviod kernel configcheck warning:
Requested value: CONFIG_HW_RANDOM_TPM=y
Actual value: CONFIG_HW_RANDOM_TPM=m
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The the new controllers were added several kernels back and are
required for additional functionality. These are applicable to the
4.9 kernel and newer.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Enable the following kernel option to support Realtek PCI-E card
reader on NUC7i7BNH/NCU7I5BNH:
CONFIG_MFD_RTSX_PCI=m
CONFIG_MMC_REALTEK_PCI=m
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Calling out the existing edac.scc via KERNEL_FEATURES_append will
fail since it contains patch commands, and the patches will
unconditionally be queued for application. Split it so instead it
can use
KERNEL_FEATURES_append += "features/edac/edac-enable.scc"
in templates/configuration files external to the kernel-cache.
Note that we also hook the remaining patch chunk into the standard
ktype so that "rebase" branches (when created) will faithfully
mirror the content merged into the fast forward branches.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
I got the warning from do_kernel_configcheck when buiding with features/tpm/tpm.scc
CONFIG_TCG_TIS_SPI depends on SPI from its Kconfig
config TCG_TIS_SPI
<snip>
depends on SPI
select TCG_TIS_CORE
<snip>
so add its depenency to satisfy the warning.
Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
CONFIG_TIMER_STATS has been removed since kernel 4.11.
As per upstream commit:
commit dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
Author: Kees Cook <keescook@chromium.org>
Date: Wed Feb 8 11:26:59 2017 -0800
time: Remove CONFIG_TIMER_STATS
Currently CONFIG_TIMER_STATS exposes process information across namespaces:
kernel/time/timer_list.c print_timer():
SEQ_printf(m, ", %s/%d", tmp, timer->start_pid);
/proc/timer_list:
#11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570
Given that the tracer can give the same information, this patch entirely
removes CONFIG_TIMER_STATS.
and check tag:
lyang001@pek-lyang0-d1:~/linux-stable$ git tag --contains dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
v4.11
v4.11-rc1
v4.11-rc2
v4.11-rc3
v4.11-rc4
v4.11-rc5
v4.11-rc6
v4.11-rc7
....
Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
1/8 [
Author: "Gustavo A. R. Silva"
Email: garsilva@embeddedor.com
Subject: EDAC, pnd2: Return proper error value from apl_rd_reg()
Date: Tue, 19 Sep 2017 03:22:10 -0400
commit ee514c7a2379385fcec363f2f5f8db4eb56bc48c upstream.
Add code comment to make it clear that the fall-through is intentional
and, OR ret with its previous value to avoid overwriting it so that
callers can check the correct return value.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170622220535.GA4896@embeddedgus
[ Massage a bit. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
2/8 [
Author: Colin Ian King
Email: colin.king@canonical.com
Subject: EDAC, pnd2: Make function sbi_send() static
Date: Tue, 19 Sep 2017 03:22:11 -0400
commit 77641dacead2cbfe22d10f4e7c07867d86900057 upstream.
The function sbi_send() is local to just pnd2_edac.c and does not need
to be in global scope, so make it static.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170623084855.9197-1-colin.king@canonical.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
3/8 [
Author: Tony Luck
Email: tony.luck@intel.com
Subject: EDAC, pnd2: Fix Apollo Lake DIMM detection
Date: Tue, 19 Sep 2017 03:22:12 -0400
commit 164c29244d4beb9a105102c42821f4925e4a0c7a upstream.
Non-existent or empty DIMM slots result in error return from
RD_REGP(). But we shouldn't give up on failure.
So long as we find at least one DIMM we can continue.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170628234407.21521-1-tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
4/8 [
Author: Tony Luck
Email: tony.luck@intel.com
Subject: EDAC, pnd2: Build in a minimal sideband driver for Apollo Lake
Date: Tue, 19 Sep 2017 03:22:13 -0400
commit 3e5d2bd19138d6683f69de26a34d7eb9ab3823ed upstream.
I've been waing a long time for the generic sideband driver to
appear. Patience has run out, so include the minimum here to
just read registers.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Aristeu Rozanski <arozansk@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Patrick Geary <patrickg@supermicro.com>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170803210536.5662-1-tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
5/8 [
Author: Qiuxu Zhuo
Email: qiuxu.zhuo@intel.com
Subject: EDAC, pnd2: Mask off the lower four bits of a BAR
Date: Tue, 19 Sep 2017 03:22:14 -0400
commit d84676a9e12817c8435e836911800bdcc67928a0 upstream.
Bit[0] of BAR is always zero. Bit[2:1] and bit[3] of BAR contain the
information of 'type' and the 'prefetchable' accordingly. Therefore,
mask the lower four bits to retrieve the actual base address of a BAR.
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170814154813.21619-1-qiuxu.zhuo@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
6/8 [
Author: Qiuxu Zhuo
Email: qiuxu.zhuo@intel.com
Subject: EDAC, pnd2: Conditionally unhide/hide the P2SB PCI device to read BAR
Date: Tue, 19 Sep 2017 03:22:15 -0400
commit 5fd77cb3bac77f690d1d9cf57dc7851fcb3e7945 upstream.
On Deverton server, the P2SB PCI device (DEV:1F, FUN:1) is used by multiple
device drivers.
If it's hidden by some device driver (e.g. with the i801 I2C driver,
the commit
9424693035a5 ("i2c: i801: Create iTCO device on newer Intel PCHs")
unconditionally hid the P2SB PCI device wrongly) it will make the
pnd2_edac driver read out an invalid BAR value of 0xffffffff and then
fail on ioremap().
Therefore, store the presence state of P2SB PCI device before unhiding
it for reading BAR and restore the presence state after reading BAR.
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: linux-i2c@vger.kernel.org
Link: http://lkml.kernel.org/r/20170814154845.21663-1-qiuxu.zhuo@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
7/8 [
Author: Qiuxu Zhuo
Email: qiuxu.zhuo@intel.com
Subject: EDAC, pnd2: Properly toggle hidden state for P2SB PCI device
Date: Tue, 19 Sep 2017 03:22:16 -0400
commit bc8f10babcc27c1f4d8e80d91cc543eabf9125c4 upstream.
Properly handle hidden state of P2SB PCI device (DEV:D, FUN:0) for
Apollo Lake.
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170814154905.21707-1-qiuxu.zhuo@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
8/8 [
Author: Qiuxu Zhuo
Email: qiuxu.zhuo@intel.com
Subject: i2c: i801: Restore the presence state of P2SB PCI device after reading BAR
Date: Tue, 19 Sep 2017 03:22:17 -0400
commit bfd4473b850c8cfaa1cdf56b8ef52fae4e8a6ee5 upstream.
Sun, Yunying reported the following failure on Denverton micro-server:
EDAC DEBUG: pnd2_init:
EDAC DEBUG: pnd2_probe:
EDAC DEBUG: dnv_rd_reg: Read b_cr_tolud_pci=00000000_80000000
EDAC DEBUG: dnv_rd_reg: Read b_cr_touud_lo_pci=00000000_80000000
EDAC DEBUG: dnv_rd_reg: Read b_cr_touud_hi_pci=00000000_00000004
EDAC DEBUG: dnv_rd_reg: Read b_cr_asym_mem_region0_mchbar=00000000_00000000
EDAC DEBUG: dnv_rd_reg: Read b_cr_asym_mem_region1_mchbar=00000000_00000000
EDAC DEBUG: dnv_rd_reg: Read b_cr_mot_out_base_mchbar=00000000_00000000
EDAC DEBUG: dnv_rd_reg: Read b_cr_mot_out_mask_mchbar=00000000_00000000
EDAC pnd2: Failed to register device with error -19.
On Denverton micro-server, the presence of the P2SB bridge PCI device is
enabled or disabled by the item 'RelaxSecConf' in BIOS setup menu. When
'RelaxSecConf' is enabled, the P2SB PCI device is present and the pnd2_edac
EDAC driver also uses it to get BAR. Hiding the P2SB PCI device caused the
pnd2_edac EDAC driver failed to get BAR then reported the above failure.
Therefor, store the presence state of P2SB PCI device before unhiding it
for reading BAR and restore the presence state after reading BAR.
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Reported-by: Yunying Sun <yunying.sun@intel.com>
Tested-by: Yunying Sun <yunying.sun@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Add features for Carrier Grade Linux
https://wiki.linuxfoundation.org/cgl/start
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Adds dependencies that were missing. In some BSPs, they were satisfied,
in others they weren't and caused warnings.
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|