[PATCH v4 5/5] RISC-V: Add crash kernel support

2021-04-18 Thread Nick Kossifidis
This patch allows Linux to act as a crash kernel for use with kdump. Userspace will let the crash kernel know about the memory region it can use through linux,usable-memory property on the /memory node (overriding its reg property), and about the memory region where the elf core header of the previ

[PATCH v4 0/5] RISC-V: Add kexec/kdump support

2021-04-18 Thread Nick Kossifidis
This patch series adds kexec/kdump and crash kernel support on RISC-V. For testing the patches a patched version of kexec-tools is needed (still a work in progress) which can be found at: https://riscv.ics.forth.gr/kexec-tools-patched.tar.xz v4: * Rebase on top of "fixes" branch * Resolve Alex'

[PATCH v4 1/5] RISC-V: Add EM_RISCV to kexec UAPI header

2021-04-18 Thread Nick Kossifidis
Add RISC-V to the list of supported kexec architectures, we need to add the definition early-on so that later patches can use it. EM_RISCV is 243 as per ELF psABI specification here: https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md Signed-off-by: Nick Kossifidis --- include

[PATCH v4 2/5] RISC-V: Add kexec support

2021-04-18 Thread Nick Kossifidis
This patch adds support for kexec on RISC-V. On SMP systems it depends on HOTPLUG_CPU in order to be able to bring up all harts after kexec. It also needs a recent OpenSBI version that supports the HSM extension. I tested it on riscv64 QEMU on both an smp and a non-smp system. v6: * Re-based on t

[PATCH v4 3/5] RISC-V: Improve init_resources

2021-04-18 Thread Nick Kossifidis
* Kernel region is always present and we know where it is, no need to look for it inside the loop, just ignore it like the rest of the reserved regions within system's memory. * Don't call memblock_free inside the loop, if called it'll split the region of pre-allocated resources in two parts, mess

[PATCH v4 4/5] RISC-V: Add kdump support

2021-04-18 Thread Nick Kossifidis
This patch adds support for kdump, the kernel will reserve a region for the crash kernel and jump there on panic. In order for userspace tools (kexec-tools) to prepare the crash kernel kexec image, we also need to expose some information on /proc/iomem for the memory regions used by the kernel and

Re: [PATCH v2 02/12] docs: path-lookup: update path_to_nameidata() part

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > No path_to_namei() anymore, step_into() will be called. > Related commit: commit c99687a03a78 ("fold path_to_nameidata() > into its only remaining caller") > > Signed-off-by: Fox Chen > --- > Documentation/filesystems/path-lookup.rst | 7 --- > 1 file c

drivers/net/ethernet/mediatek/mtk_ppe_offload.c - suspicious code?

2021-04-18 Thread Valdis Klētnieks
While doing some code auditing for -Woverride_init, I spotted some questionable code commit 502e84e2382d92654a2ecbc52cdbdb5a11cdcec7 Author: Felix Fietkau Date: Wed Mar 24 02:30:54 2021 +0100 net: ethernet: mtk_eth_soc: add flow offloading support In drivers/net/ethernet/mediatek/mtk_ppe

Re: [PATCH v2 03/12] docs: path-lookup: update path_mountpoint() part

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > path_mountpoint() doesn't exist anymore. Have been folded > into path_lookup_at when flag is set with LOOKUP_MOUNTPOINT. > Check commit: commit 161aff1d93abf0e ("LOOKUP_MOUNTPOINT: fold > path_mountpointat() into path_lookupat()") > > Signed-off-by: Fox Chen

Re: [PATCH v1 0/3] mm,hwpoison: fix sending SIGBUS for Action Required MCE

2021-04-18 Thread 堀口 直也
On Sat, Apr 17, 2021 at 01:47:51PM +0800, Aili Yao wrote: > On Tue, 13 Apr 2021 07:43:17 +0900 > Naoya Horiguchi wrote: > > > Hi, > > > > I wrote this patchset to materialize what I think is the current > > allowable solution mentioned by the previous discussion [1]. > > I simply borrowed Tony's

Re: [PATCH v2 04/12] docs: path-lookup: update do_last() part

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > traling_symlink() was merged into lookup_last, do_last(). > > do_last() has later been split into open_last_lookups() > and do_open(). > > see related commit: commit c5971b8c6354 ("take post-lookup > part of do_last() out of loop") > > Signed-off-by: Fox Chen

Re: [PATCH v2 05/12] docs: path-lookup: remove filename_mountpoint

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > No filename_mountpoint any more > see commit: commit 161aff1d93ab ("LOOKUP_MOUNTPOINT: > fold path_mountpointat() into path_lookupat()") > > Without filename_mountpoint and path_mountpoint(), the > numbers should be four & three: > > "These four correspond ro

Re: [PATCH v2 06/12] docs: path-lookup: Add macro name to symlink limit description

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > Add macro name MAXSYMLINKS to the symlink limit description, so > that it is consistent with path name length description above. > > Signed-off-by: Fox Chen Reviewed-by: NeilBrown Thanks, NeilBrown > --- > Documentation/filesystems/path-lookup.rst | 4 +

Re: rtlwifi/rtl8192cu AP mode broken with PS STA

2021-04-18 Thread Larry Finger
On 4/18/21 7:32 PM, Pkshih wrote: -Original Message- From: Maciej S. Szmigiero [mailto:m...@maciej.szmigiero.name] Sent: Sunday, April 18, 2021 2:08 AM To: Pkshih Cc: linux-wirel...@vger.kernel.org; net...@vger.kernel.org; linux-kernel@vger.kernel.org; johan...@sipsolutions.net; kv...@

Re: High kmalloc-32 slab cache consumption with 10k containers

2021-04-18 Thread Dave Chinner
On Fri, Apr 16, 2021 at 10:14:39AM +0530, Bharata B Rao wrote: > On Wed, Apr 07, 2021 at 08:28:07AM +1000, Dave Chinner wrote: > > On Mon, Apr 05, 2021 at 11:18:48AM +0530, Bharata B Rao wrote: > > > > > As an alternative approach, I have this below hack that does lazy > > > list_lru creation. The

[PATCH] soundwire: dmi-quirks: remove duplicate initialization

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart cppcheck warning: drivers/soundwire/dmi-quirks.c:85:12: style: Redundant initialization for 'map'. The initialized value is overwritten before it is read. [redundantInitialization] for (map = dmi_id->driver_data; map->adr; map++) { ^ drivers/soundwire/dmi-

Re: [PATCH v2 07/12] docs: path-lookup: i_op->follow_link replaced with i_op->get_link

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > follow_link has been replaced by get_link() which can be > called in RCU mode. > > see commit: commit 6b2553918d8b ("replace ->follow_link() with > new method that could stay in RCU mode") > > Signed-off-by: Fox Chen Reviewed-By: NeilBrown Thanks, NeilBro

[thermal-next PATCH 2/2] thermal: qcom: tsens: simplify debugfs init function

2021-04-18 Thread Ansuel Smith
Simplify debugfs init function. - Drop useless variables - Add check for existing dev directory. - Fix wrong version in dbg_version_show (with version 0.0.0, 0.1.0 was incorrectly reported) Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 16 +++- 1 file changed, 7 in

[thermal-next PATCH 1/2] thermal: qcom: tsens: init debugfs only with successful probe

2021-04-18 Thread Ansuel Smith
calibrate and tsens_register can fail or PROBE_DEFER. This will cause a double or a wrong init of the debugfs information. Init debugfs only with successful probe fixing warning about directory already present. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 9 ++--- 1 file ch

Re: [PATCH v2 08/12] docs: path-lookup: update i_op->put_link and cookie description

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > No inode->put_link operation anymore. We use delayed_call to > deal with link destruction. Cookie has been replaced with > struct delayed_call. > > Related commit: commit fceef393a538 ("switch ->get_link() to > delayed_call, kill ->put_link()") > > Signed-off

Re: [PATCH v2 09/12] docs: path-lookup: no get_link()

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > no get_link() anymore. we have step_into() and pick_link(). > > walk_component() will call step_into(), in turn call pick_link, > and return symlink name. > > Signed-off-by: Fox Chen > --- > Documentation/filesystems/path-lookup.rst | 10 -- > 1 fil

[PATCH] rtc: sun6i: Add NVMEM provider

2021-04-18 Thread Samuel Holland
The sun6i RTC provides 32 bytes of general-purpose data registers. They can be used to save data in the always-on RTC power domain. The registers are writable via 32-bit MMIO accesses only. Expose the region as a NVMEM provider so it can be used by userspace and other drivers. Signed-off-by: Samu

Re:Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-18 Thread 周传高
>On Sat, Apr 17, 2021 at 07:13:01AM -0700, zhouchuangao wrote: >> eg: >> In Android system, we usually and some processes to the whitelist. >> static task_t task_whitelist[] = { >> {"mdrt_thread", HUNG_TASK_WHITELIST}, >> {"chre_kthread", HUNG_TASK_WHITELIST}, >> {"scp_power_reset",

RE: [PATCH] soundwire: add slave device to linked list after device_register()

2021-04-18 Thread Liao, Bard
> -Original Message- > From: Pierre-Louis Bossart > Sent: Wednesday, March 24, 2021 2:31 AM > To: Vinod Koul ; Bard Liao chuan.l...@linux.intel.com> > Cc: alsa-de...@alsa-project.org; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; hui.w...@canonical.com; > srinivas.kandaga..

Re: [PATCH v2 10/12] docs: path-lookup: update WALK_GET, WALK_PUT desc

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > WALK_GET is changed to WALK_TRAILING with a different meaning. > Here it should be WALK_NOFOLLOW. WALK_PUT dosn't exist, we have > WALK_MORE. > > WALK_PUT == !WALK_MORE > > And there is not should_follow_link(). > > Related commits: > commit 8c4efe22e7c4 ("na

Re: [PATCH v2 4/5] mm/swap: remove confusing checking for non_swap_entry() in swap_ra_info()

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > While we released the pte lock, somebody else might faulted in this pte. > So we should check whether it's swap pte first to guard against such race > or swp_type would be unexpected. But the swap_entry isn't used in this > function and we will have enough checking when we re

Re: [PATCH v2 11/12] docs: path-lookup: update get_link() ->follow_link description

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > get_link() is merged into pick_link(). i_op->follow_link is > replaced with i_op->get_link(). get_link() can return ERR_PTR(0) > which equals NULL. > > Signed-off-by: Fox Chen > --- > Documentation/filesystems/path-lookup.rst | 13 ++--- > 1 file ch

[PATCH] nvmem: sunxi_sid: Set type to OTP

2021-04-18 Thread Samuel Holland
This device currently reports an "Unknown" type in sysfs. Since it is an eFuse hardware device, set its type to OTP. Signed-off-by: Samuel Holland --- drivers/nvmem/sunxi_sid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index e26ef1b

Re: [PATCH v2 12/12] docs: path-lookup: update symlink description

2021-04-18 Thread NeilBrown
On Tue, Mar 16 2021, Fox Chen wrote: > instead of lookup_real()/vfs_create(), i_op->lookup() and > i_op->create() will be called directly. > > update vfs_open() logic > > should_follow_link is merged into lookup_last() or open_last_lookup() > which returns symlink name instead of an integer. > > S

[RESEND PATCH] drm/rockchip: dsi: remove extra component_del() call

2021-04-18 Thread Thomas Hebb
commit cf6d100dd238 ("drm/rockchip: dsi: add dual mipi support") added this devcnt field and call to component_del(). However, these both appear to be erroneous changes left over from an earlier version of the patch. In the version merged, nothing ever modifies devcnt, meaning component_del() runs

[RESEND PATCH] drm/rockchip: dsi: move all lane config except LCDC mux to bind()

2021-04-18 Thread Thomas Hebb
When we first enable the DSI encoder, we currently program some per-chip configuration that we look up in rk3399_chip_data based on the device tree compatible we match. This data configures various parameters of the MIPI lanes, including on RK3399 whether DSI1 is slaved to DSI0 in a dual-mode confi

Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-18 Thread Yunsheng Lin
On 2021/4/19 6:59, Michal Kubecek wrote: > On Thu, Mar 25, 2021 at 11:13:11AM +0800, Yunsheng Lin wrote: >> Lockless qdisc has below concurrent problem: >> cpu0 cpu1 >> . . >> q->enqueue . >> . . >> qdisc_run_begi

Re: [PATCH] arm64:align function __arch_clear_user

2021-04-18 Thread Kai Shen
On 2021/4/14 18:41, Catalin Marinas wrote: On Wed, Apr 14, 2021 at 05:25:43PM +0800, Kai Shen wrote: Performance decreases happen in __arch_clear_user when this function is not correctly aligned on HISI-HIP08 arm64 SOC which fetches 32 bytes (8 instructions) from icache with a 32-bytes aligned e

Re: Linux 5.12-rc8

2021-04-18 Thread Guenter Roeck
On Sun, Apr 18, 2021 at 03:02:49PM -0700, Linus Torvalds wrote: > Ok, so it's been _fairly_ calm this past week, but it hasn't been the > kind of dead calm I would have taken to mean "no rc8 necessary". > > So here we are, with an extra rc to make sure things are all settled > down. It's not _that

Re: [PATCH v3 01/12] iommu: Introduce dirty log tracking framework

2021-04-18 Thread Lu Baolu
Hi Keqian, On 4/16/21 5:07 PM, Keqian Zhu wrote: I am worrying about having two sets of APIs for single purpose. From vendor iommu driver's point of view, this feature is per device. Hence, it still needs to do the same thing. Yes, we can unify the granule of feature reporting and status manage

Re: [PATCH v2 5/5] mm/shmem: fix shmem_swapin() race with swapoff

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > When I was investigating the swap code, I found the below possible race > window: > > CPU 1 CPU 2 > - - > shmem_swapin > swap_cluster_readahead > if (likely(si->flags & (SWP_BLKD

Good Day,

2021-04-18 Thread Mrs samira mohamed
-- I am Mrs samira mohamed Hi Friend I am a bank director of the UBA Bank Plc bf .I want to transfer an abandoned sum of 27.5 millions USD to you through ATM VISA CARD .50% will be for you. No risk involved. Contact me for more details. Kindly reply me back to my alternative email address(sm855

Re: [PATCH] nvmem: sunxi_sid: Set type to OTP

2021-04-18 Thread Chen-Yu Tsai
On Mon, Apr 19, 2021 at 9:58 AM Samuel Holland wrote: > > This device currently reports an "Unknown" type in sysfs. > Since it is an eFuse hardware device, set its type to OTP. > > Signed-off-by: Samuel Holland Acked-by: Chen-Yu Tsai

[PATCH] sched,fair: skip newidle_balance if a wakeup is pending

2021-04-18 Thread Rik van Riel
The try_to_wake_up function has an optimization where it can queue a task for wakeup on its previous CPU, if the task is still in the middle of going to sleep inside schedule(). Once schedule() re-enables IRQs, the task will be woken up with an IPI, and placed back on the runqueue. If we have suc

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Matthew Wilcox
On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > -In the absence of symbolic links, ``walk_component()`` creates a new > +As the last step of ``walk_component()``, ``step_into()`` will be called > either You can drop ``..`` from around function named which are followed with (). d74b0d

[PATCH] fs: f2fs: Remove unnecessary struct declaration

2021-04-18 Thread Wan Jiabing
struct dnode_of_data is defined at 897th line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- fs/f2fs/f2fs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e2d302ae3a46..0757f9e50fd2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2

[PATCH v3] soundwire: intel: move to auxiliary bus

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart Now that the auxiliary_bus exists, there's no reason to use platform devices as children of a PCI device any longer. This patch refactors the code by extending a basic auxiliary device with Intel link-specific structures that need to be passed between controller and li

Re:Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-18 Thread 周传高
>On 2021/04/17 23:13, zhouchuangao wrote: >> The main purpose of this patch is to add a whitelist and blacklist >> mechanism to the hung task thread. > >We stopped using the term 'whitelist'/'blacklist' for new code in Linux kernel, >and what you are proposing is something like 'ignorelist'/'fatal

Re: [PATCH v2 3/5] swap: fix do_swap_page() race with swapoff

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > When I was investigating the swap code, I found the below possible race > window: > > CPU 1 CPU 2 > - - > do_swap_page This is OK for swap cache cases. So if (data_race(si->flags & SW

[PATCH v2] hfsplus: prevent negative dentries when casefolded

2021-04-18 Thread Chung-Chiang Cheng
hfsplus uses the case-insensitive filenames by default, but VFS negative dentries are incompatible with case-insensitive. For example, the following instructions will get a cached filename 'aaa' which isn't expected. There is no such problem in macOS. touch aaa rm aaa touch AAA This patch t

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > -In the absence of symbolic links, ``walk_component()`` creates a new > > +As the last step of ``walk_component()``, ``step_into()`` will be called > > either > > You can drop

Re: [PATCH v2 12/12] docs: path-lookup: update symlink description

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 9:59 AM NeilBrown wrote: > > On Tue, Mar 16 2021, Fox Chen wrote: > > > instead of lookup_real()/vfs_create(), i_op->lookup() and > > i_op->create() will be called directly. > > > > update vfs_open() logic > > > > should_follow_link is merged into lookup_last() or open_last

[PATCH v2 3/3] mm,hwpoison: add kill_accessing_process() to find error virtual address

2021-04-18 Thread Naoya Horiguchi
> > 2. In the function hwpoison_pte_range(): > > if (pfn <= hwp->pfn && hwp->pfn < pfn + PMD_SIZE) this check seem we should > > use PMD_SIZE/PAGE_SIZE or some macro like this? > > Thanks, that's right. HPAGE_PMD_NR seems to fit here. > We also need "#ifdef CONFIG_TRANSPARENT_HUGEPAGE" to use it

Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-18 Thread Tetsuo Handa
On 2021/04/19 11:22, 周传高 wrote: > Some SOC vendors' drivers or user-mode processes may be in D state for a long > time, > and normally they do not configure HUNG TASK, so we need to ignore these > tasks if > we use HUNG TASK. Isn't that a sign that the quality of the drivers and user-mode proce

Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-04-18 Thread Greentime Hu
Palmer Dabbelt 於 2021年3月31日 週三 上午8:24寫道: > > On Wed, 17 Mar 2021 23:08:13 PDT (-0700), greentime...@sifive.com wrote: > > Signed-off-by: Greentime Hu > > --- > > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++ > > 1 file changed, 34 insertions(+) > > > > diff --git a/arch

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > We will use percpu-refcount to serialize against concurrent swapoff. This > patch adds the percpu_ref support for swap. > > Signed-off-by: Miaohe Lin > --- > include/linux/swap.h | 3 +++ > mm/swapfile.c| 33 + > 2 files changed, 32

Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-04-18 Thread Greentime Hu
Greentime Hu 於 2021年4月19日 週一 上午10:43寫道: > > Palmer Dabbelt 於 2021年3月31日 週三 上午8:24寫道: > > > > On Wed, 17 Mar 2021 23:08:13 PDT (-0700), greentime...@sifive.com wrote: > > > Signed-off-by: Greentime Hu > > > --- > > > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++ > > > 1

[PATCH 2/2] arm64: dts: allwinner: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Traditionally, the sunxi-mmc device numbers matched the register address order. However, that was broken by asynchronous probe, and now the MMC device numbers are not deterministic. Add aliases to keep the device numbers consistent between boots. Use the traditional order, since there is no need to

[PATCH 1/2] ARM: dts: sunxi: h3/h5: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Traditionally, the sunxi-mmc device numbers matched the register address order. However, that was broken by asynchronous probe, and now the MMC device numbers are not deterministic. Add aliases to keep the device numbers consistent between boots. Use the traditional order, since there is no need to

[PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Dealing with the inconsistent numbering has been a major pain, and there is a solution with (as far as I can tell) no tangible downsides. So let's use it. Yes, I know the kernel supports UUIDs for root=. But UUIDs do not help when referencing the whole, unpartitioned device, like is needed for upd

Re: [PATCH v2 2/5] mm/swapfile: use percpu_ref to serialize against concurrent swapoff

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > Use percpu_ref to serialize against concurrent swapoff. Also remove the > SWP_VALID flag because it's used together with RCU solution. > > Signed-off-by: Miaohe Lin > --- > include/linux/swap.h | 3 +-- > mm/swapfile.c| 43 +-

Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt

2021-04-18 Thread Ruifeng Zhang
Dietmar Eggemann 于2021年4月17日周六 上午1:00写道: > > On 16/04/2021 13:04, Ruifeng Zhang wrote: > > Dietmar Eggemann 于2021年4月16日周五 下午6:39写道: > >> > >> On 16/04/2021 11:32, Valentin Schneider wrote: > >>> On 16/04/21 15:47, Ruifeng Zhang wrote: > > [...] > > >> I'm confused. Do you have the MT bit set to 1

[PATCH v3] lsm:fix a missing-check bug in smack_sb_eat_lsm_opts()

2021-04-18 Thread  Zhongjun Tan
From: Zhongjun Tan In smack_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' should be freed when error. Signed-off-by: Zhongjun Tan --- changes in v1: update the commit information. changes in v2: fix brace error ch

Re: [PATCH] lsm:fix a missing-check bug in smack_sb_eat_lsm_opts()

2021-04-18 Thread Zhongjun Tan
On Fri, 16 Apr 2021 13:36:01 + Al Viro wrote: > On Fri, Apr 16, 2021 at 05:53:03PM +0800, ?0?2Zhongjun Tan wrote: > > > @@ -710,13 +711,14 @@ static int smack_sb_eat_lsm_opts(char > > *options, void **mnt_opts) token = match_opt_prefix(from, len, > > &arg); if (token != Opt_error) { > >

Re: [Patch v2 1/7] crypto: qce: common: Add MAC failed error checking

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:24 CDT 2021, Thara Gopinath wrote: > MAC_FAILED gets set in the status register if authenthication fails > for ccm algorithms(during decryption). Add support to catch and flag > this error. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Thara Gopinath > --- >

Re: [Patch v2 3/7] crypto: qce: Add mode for rfc4309

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:24 CDT 2021, Thara Gopinath wrote: > rf4309 is the specification that uses aes ccm algorithms with IPsec > security packets. Add a submode to identify rfc4309 ccm(aes) algorithm > in the crypto driver. > Reviewed-by: Bjorn Andersson > Signed-off-by: Thara Gopinath > --- > >

[PATCH] ALSA: hda/realtek: GA503 use same quirks as GA401

2021-04-18 Thread Luke D Jones
The GA503 has almost exactly the same default setup as the GA401 model with the same issues. The GA401 quirks solve all the issues so we will use the full quirk chain. Signed-off-by: Luke D Jones --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/

Re: [PATCHv2 2/2] iommu/arm-smmu-qcom: Move the adreno smmu specific impl earlier

2021-04-18 Thread Sai Prakash Ranjan
On 2021-04-05 14:12, Sai Prakash Ranjan wrote: Hi Bjorn, On 2021-03-25 20:35, Will Deacon wrote: On Thu, Mar 25, 2021 at 01:10:12PM +0530, Sai Prakash Ranjan wrote: ... I think there is consensus on this series. I can resend if required but it still applies cleanly, let me know if you ha

Re: [PATCH V3 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based on the device ID. Signed-off-by: Zhu Lingshan ---

[PATCH] soundwire: cadence_master: always set CMD_ACCEPT

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart The Cadence IP can be configured in two different ways to deal with CMD_IGNORED replies to broadcast commands. The CMD_ACCEPT bitfield controls whether the command is discarded or if the IP proceeds with the change (typically a bank switch or clock stop command). The e

Re: [Patch v2 6/7] crypto: qce: common: Add support for AEAD algorithms

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:25 CDT 2021, Thara Gopinath wrote: > Add register programming sequence for enabling AEAD > algorithms on the Qualcomm crypto engine. > > Signed-off-by: Thara Gopinath > --- > > v1->v2: > - Minor fixes like removing not needed initializing of variables > and using

Re: [PATCH V3 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 2 files change

Re: [PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-18 Thread Chen-Yu Tsai
Hi, On Mon, Apr 19, 2021 at 10:52 AM Samuel Holland wrote: > > Dealing with the inconsistent numbering has been a major pain, and > there is a solution with (as far as I can tell) no tangible downsides. > So let's use it. > > Yes, I know the kernel supports UUIDs for root=. But UUIDs do not help

Re: [PATCH V3 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 10:33:00AM +0800, Fox Chen wrote: > On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > > -In the absence of symbolic links, ``walk_component()`` creates a new > > > +As the last step of ``walk_compone

Re: [PATCH -next v2 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-18 Thread Anshuman Khandual
On 4/9/21 9:35 AM, Anshuman Khandual wrote: > > On 4/6/21 10:18 AM, Shixin Liu wrote: >> v1->v2: >> Modified the commit message. > > Please avoid change log in the commit message, it should be after '---' > below the SOB statement. > >> >> The functions {pmd/pud}_set_huge and {pmd/pud}_clear_

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 11:25 AM Matthew Wilcox wrote: > > On Mon, Apr 19, 2021 at 10:33:00AM +0800, Fox Chen wrote: > > On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > > > > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > > > -In the absence of symbolic links, ``walk_c

[PATCH v2] usb: gadget: dummy_hcd: fix gpf in gadget_setup

2021-04-18 Thread Anirudh Rayabharam
Fix a general protection fault reported by syzbot due to a race between gadget_setup() and gadget_unbind() in raw_gadget. The gadget core is supposed to guarantee that there won't be any more callbacks to the gadget driver once the driver's unbind routine is called. That guarantee is enforced in u

linux-next: build warning after merge of the sound-asoc tree

2021-04-18 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/soc/generic/simple-card.c: In function 'simple_parse_of': sound/soc/generic/simple-card.c:478:1: warning: the frame size of 1552 bytes is larger than 1024 bytes [-Wframe-larg

[PATCH] dt-bindings: net: mediatek: support MT7621 SoC

2021-04-18 Thread Ilya Lipnitskiy
Add missing binding documentation for SoC support that has been in place since v5.1 Fixes: 889bcbdeee57 ("net: ethernet: mediatek: support MT7621 SoC ethernet hardware") Cc: Bjørn Mork Signed-off-by: Ilya Lipnitskiy --- Documentation/devicetree/bindings/net/mediatek-net.txt | 1 + 1 file chang

Re: [PATCH v2 3/3] mm,hwpoison: add kill_accessing_process() to find error virtual address

2021-04-18 Thread Aili Yao
On Mon, 19 Apr 2021 11:36:58 +0900 Naoya Horiguchi wrote: > > > 2. In the function hwpoison_pte_range(): > > > if (pfn <= hwp->pfn && hwp->pfn < pfn + PMD_SIZE) this check seem we > > > should use PMD_SIZE/PAGE_SIZE or some macro like this? > > > > Thanks, that's right. HPAGE_PMD_NR seems to

Re: [PATCH V2] mm/page_alloc: Ensure that HUGETLB_PAGE_ORDER is less than MAX_ORDER

2021-04-18 Thread Anshuman Khandual
On 4/12/21 2:17 PM, David Hildenbrand wrote: > On 12.04.21 10:06, Anshuman Khandual wrote: >> + linuxppc-...@lists.ozlabs.org >> + linux-i...@vger.kernel.org >> >> On 4/12/21 9:18 AM, Anshuman Khandual wrote: >>> pageblock_order must always be less than MAX_ORDER, otherwise it might lead >>> to a

Re: [PATCH] [v2] usb: cdns3: Fix runtime PM imbalance on error

2021-04-18 Thread Peter Chen
On 21-04-12 13:49:07, Dinghao Liu wrote: > When cdns3_gadget_start() fails, a pairing PM usage counter > decrement is needed to keep the counter balanced. > > Signed-off-by: Dinghao Liu Applied, thanks. Peter > --- > > Changelog: > > v2: - Use pm_runtime_put_sync() to decrease refcount. > ---

[PATCH net-next 0/2] net: ethernet: mediatek: support custom GMAC label

2021-04-18 Thread Ilya Lipnitskiy
Add support for specifying GMAC label via DTS. Useful when it is desired to use a master DSA interface name that is different from the "eth%d" pattern. Ilya Lipnitskiy (2): dt-bindings: net: mediatek: add optional GMAC labels net: ethernet: mediatek: support custom GMAC label Documentation/d

Re: [PATCH 1/3] powerpc/modules: Load modules closer to kernel text

2021-04-18 Thread Michael Ellerman
On Thu, 1 Apr 2021 13:30:41 + (UTC), Christophe Leroy wrote: > On book3s/32, when STRICT_KERNEL_RWX is selected, modules are > allocated on the segment just before kernel text, ie on the > 0xb000-0xbfff when PAGE_OFFSET is 0xc000. > > On the 8xx, TASK_SIZE is 0x8000. The space

Re: [PATCH] powerpc/signal32: Fix build failure with CONFIG_SPE

2021-04-18 Thread Michael Ellerman
On Sun, 11 Apr 2021 16:39:53 + (UTC), Christophe Leroy wrote: > Add missing fault exit label in unsafe_copy_from_user() in order to > avoid following build failure with CONFIG_SPE > > CC arch/powerpc/kernel/signal_32.o > arch/powerpc/kernel/signal_32.c: In function 'restore_user_regs':

[PATCH net-next 2/2] net: ethernet: mediatek: support custom GMAC label

2021-04-18 Thread Ilya Lipnitskiy
The MAC device name can now be set within DTS file instead of always being "ethX". This is helpful for DSA to clearly label the DSA master device and distinguish it from DSA slave ports. For example, some devices, such as the Ubiquiti EdgeRouter X, may have ports labeled ethX. Labeling the master

[PATCH net-next 1/2] dt-bindings: net: mediatek: add optional GMAC labels

2021-04-18 Thread Ilya Lipnitskiy
Document the mediatek ethernet driver change that adds support for custom labels and provide an example. Signed-off-by: Ilya Lipnitskiy --- Documentation/devicetree/bindings/net/mediatek-net.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/media

Re: [PATCH RESEND v1 0/4] powerpc/vdso: Add support for time namespaces

2021-04-18 Thread Michael Ellerman
On Wed, 31 Mar 2021 16:48:43 + (UTC), Christophe Leroy wrote: > [Sorry, resending with complete destination list, I used the wrong script on > the first delivery] > > This series adds support for time namespaces on powerpc. > > All timens selftests are successfull. > > Christophe Leroy (3):

Re: [PATCH v2 1/9] powerpc/mem: Move cache flushing functions into mm/cacheflush.c

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 15:30:24 + (UTC), Christophe Leroy wrote: > Cache flushing functions are in the middle of completely > unrelated stuff in mm/mem.c > > Create a dedicated mm/cacheflush.c for those functions. > > Also cleanup the list of included headers. Applied to powerpc/next. [1/9] pow

Re: [PATCH -next] powerpc/perf: Make symbol 'isa207_pmu_format_attr' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:19 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/perf/isa207-common.c:24:18: warning: > symbol 'isa207_pmu_format_attr' was not declared. Should it be static? > > This symbol is not used outside of isa207-common.c, so this > commit mar

Re: [PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 14:38:55 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/powernv/opal-core.c:74:16: warning: > symbol 'mpipl_kobj' was not declared. > > This symbol is not used outside of opal-core.c, so marks it static. Applied to powerpc/next. [

Re: [PATCH -next] powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:09 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/pseries/hvCall_inst.c:29:1: warning: > symbol '__pcpu_scope_hcall_stats' was not declared. Should it be static? > > This symbol is not used outside of hvCall_inst.c, so this >

Re: [PATCH] powerpc/vdso: Separate vvar vma from vdso

2021-04-18 Thread Michael Ellerman
On Fri, 26 Mar 2021 19:17:20 +, Dmitry Safonov wrote: > Since commit 511157ab641e ("powerpc/vdso: Move vdso datapage up front") > VVAR page is in front of the VDSO area. In result it breaks CRIU > (Checkpoint Restore In Userspace) [1], where CRIU expects that "[vdso]" > from /proc/../maps point

Re: [PATCH -next] powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:14 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/pseries/pmem.c:142:27: warning: > symbol 'drc_pmem_match' was not declared. Should it be static? > > This symbol is not used outside of pmem.c, so this > commit marks it static

Re: [PATCH v3 1/1] powerpc/iommu: Enable remaining IOMMU Pagesizes present in LoPAR

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 17:19:16 -0300, Leonardo Bras wrote: > According to LoPAR, ibm,query-pe-dma-window output named "IO Page Sizes" > will let the OS know all possible pagesizes that can be used for creating a > new DDW. > > Currently Linux will only try using 3 of the 8 available options: > 4K, 64

Re: [PATCH -next] powerpc/perf/hv-24x7: Make some symbols static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:24 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/perf/hv-24x7.c:229:1: warning: > symbol '__pcpu_scope_hv_24x7_txn_flags' was not declared. Should it be > static? > arch/powerpc/perf/hv-24x7.c:230:1: warning: > symbol '__pcpu_scope_hv

Re: [PATCH -next] powerpc/security: Make symbol 'stf_barrier' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 11:39:51 +0800, Li Huafei wrote: > The sparse tool complains as follows: > > arch/powerpc/kernel/security.c:253:6: warning: > symbol 'stf_barrier' was not declared. Should it be static? > > This symbol is not used outside of security.c, so this commit marks it > static. Appli

Re: [PATCH -next] powerpc/mce: Make symbol 'mce_ue_event_work' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 11:58:02 +0800, Li Huafei wrote: > The sparse tool complains as follows: > > arch/powerpc/kernel/mce.c:43:1: warning: > symbol 'mce_ue_event_work' was not declared. Should it be static? > > This symbol is not used outside of mce.c, so this commit marks it > static. Applied to

Re: [PATCH 1/2] powerpc: syscalls: switch to generic syscalltbl.sh

2021-04-18 Thread Michael Ellerman
On Tue, 2 Mar 2021 00:30:18 +0900, Masahiro Yamada wrote: > Many architectures duplicate similar shell scripts. > > This commit converts powerpc to use scripts/syscalltbl.sh. This also > unifies syscall_table_32.h and syscall_table_c32.h. Applied to powerpc/next. [1/2] powerpc: syscalls: switch

Re: [PATCH -next] powerpc/fadump: make symbol 'rtas_fadump_set_regval' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 14:20:12 +0800, Pu Lehui wrote: > Fix sparse warnings: > > arch/powerpc/platforms/pseries/rtas-fadump.c:250:6: warning: > symbol 'rtas_fadump_set_regval' was not declared. Should it be static? Applied to powerpc/next. [1/1] powerpc/fadump: make symbol 'rtas_fadump_set_regval'

Re: [PATCH -next] powerpc/xmon: Make symbol 'spu_inst_dump' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 15:01:51 +0800, Pu Lehui wrote: > Fix sparse warning: > > arch/powerpc/xmon/xmon.c:4216:1: warning: > symbol 'spu_inst_dump' was not declared. Should it be static? > > This symbol is not used outside of xmon.c, so make it static. Applied to powerpc/next. [1/1] powerpc/xmon:

Re: [PATCH v5] powerpc/traps: Enhance readability for trap types

2021-04-18 Thread Michael Ellerman
On Wed, 14 Apr 2021 19:00:33 +0800, Xiongwei Song wrote: > Define macros to list ppc interrupt types in interttupt.h, replace the > reference of the trap hex values with these macros. > > Referred the hex numbers in arch/powerpc/kernel/exceptions-64e.S, > arch/powerpc/kernel/exceptions-64s.S, arch

Re: [PATCH] powerpc/pseries: extract host bridge from pci_bus prior to bus removal

2021-04-18 Thread Michael Ellerman
On Thu, 11 Feb 2021 12:24:35 -0600, Tyrel Datwyler wrote: > The pci_bus->bridge reference may no longer be valid after > pci_bus_remove() resulting in passing a bad value to device_unregister() > for the associated bridge device. > > Store the host_bridge reference in a separate variable prior to

Re: [PATCH] macintosh/via-pmu: Make some symbols static

2021-04-18 Thread Michael Ellerman
On Wed, 7 Apr 2021 20:58:03 +0800, Yu Kuai wrote: > The sparse tool complains as follows: > > drivers/macintosh/via-pmu.c:183:5: warning: > symbol 'pmu_cur_battery' was not declared. Should it be static? > drivers/macintosh/via-pmu.c:190:5: warning: > symbol '__fake_sleep' was not declared. Shou

<    1   2   3   4   >