Re: [PATCH v2 02/15] perf ftrace: add option '-F/--funcs' to list available functions

2020-07-02 Thread Namhyung Kim
On Sat, Jun 27, 2020 at 10:37 PM Changbin Du wrote: > > This adds an option '-F/--funcs' to list all available functions to trace, > which is read from tracing file 'available_filter_functions'. > > $ sudo ./perf ftrace -F | head > trace_initcall_finish_cb > initcall_blacklisted > do_one_initcall

Re: [PATCH 16/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-02 Thread Miguel Ojeda
On Thu, Jul 2, 2020 at 3:50 PM Christoph Hellwig wrote: > > Do you have a suggestion for an automated replacement which does? > I'll happily switch over to that. I guess I'd simply find the unique set of cases that occur and create a replacement for each manually. A handful of them or so may

Re: [PATCH] sparc: sparc64_defconfig: add necessary configs for qemu

2020-07-02 Thread LABBE Corentin
On Thu, Jul 02, 2020 at 08:58:40PM +0100, Mark Cave-Ayland wrote: > On 02/07/2020 14:02, Corentin Labbe wrote: > > > The sparc64 qemu machines uses pcnet32 network hardware by default, so for > > simple boot testing using qemu, having PCNET32 is useful. > > Same for its storage which is a

Re: [bpf] af7ec13833: will-it-scale.per_process_ops -2.5% regression

2020-07-02 Thread Rong Chen
On 6/29/20 11:10 PM, Yonghong Song wrote: On 6/28/20 1:50 AM, kernel test robot wrote: Greeting, FYI, we noticed a -2.5% regression of will-it-scale.per_process_ops due to commit: commit: af7ec13833619e17f03aa73a785a2f871da6d66b ("bpf: Add bpf_skc_to_tcp6_sock() helper")

RE: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive

2020-07-02 Thread Yash Shah
> -Original Message- > From: David Abdurachmanov > Sent: 01 July 2020 17:34 > To: Andreas Schwab > Cc: Yash Shah ; devicet...@vger.kernel.org; Albert > Ou ; Atish Patra ; Anup > Patel ; lolliv...@baylibre.com; linux- > ker...@vger.kernel.org List ; Green Wan > ; Sachin Ghadi ; >

Re: [PATCH 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-07-02 Thread Guenter Roeck
On 7/2/20 8:48 PM, Chris Ruehl wrote: > Add documentation for the newly added DTS support in the shtc1 driver. > > Signed-off-by: Chris Ruehl > --- > .../bindings/hwmon/sensirion,shtc1.yaml | 53 +++ > 1 file changed, 53 insertions(+) > create mode 100644 >

Re: [PATCH RFT] iio: adc: xilinx-xadc: use devm_krealloc()

2020-07-02 Thread kernel test robot
Hi Bartosz, I love your patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on staging/staging-testing v5.8-rc3 next-20200702] [cannot apply to xlnx/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [PATCH v11 2/2] phy: samsung-ufs: add UFS PHY driver for samsung SoC

2020-07-02 Thread kernel test robot
Hi Alim, I love your patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on soc/for-next linus/master v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH 1/2] hwmon: shtc1: add support for device tree bindings

2020-07-02 Thread Guenter Roeck
On 7/2/20 8:48 PM, Chris Ruehl wrote: > Add support for DTS bindings to the shtc driver, use CONFIG_OF > to compile in the code if needed. > Ah, here it is. The introducing patch should say something like "[PATCH 0/2]". > Signed-off-by: Chris Ruehl > --- > drivers/hwmon/shtc1.c | 30

Re: [PATCH v2 01/15] perf ftrace: select function/function_graph tracer automatically

2020-07-02 Thread Namhyung Kim
Hello, On Sat, Jun 27, 2020 at 10:37 PM Changbin Du wrote: > > The '-g/-G' options have already implied function_graph tracer should be > used instead of function tracer. So the extra option '--tracer' can be > killed. > > This patch changes the behavior as below: > - By default, function

Re: [GIT PULL] fixes for v5.8-rc4

2020-07-02 Thread Linus Torvalds
On Thu, Jul 2, 2020 at 1:51 PM Christian Brauner wrote: > > A few comments on this since doing a grep data_race() reveals that currently > only kernel/rcu/* is making use of this new annotation and this seems to be > the > first annotation in core kernel: when this was first sent to me I was >

Re: [PATCH 24/30] usb: mtu3: mtu3_trace: Supply missing mtu3_debug.h include file

2020-07-02 Thread kernel test robot
Hi Lee, I love your patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on balbi-usb/testing/next char-misc/char-misc-testing v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [GIT PULL] Kselftest fixes update for Linux 5.8-rc4

2020-07-02 Thread pr-tracker-bot
The pull request you sent on Thu, 2 Jul 2020 10:26:58 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-fixes-5.8-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0dce88451f9c1cc5f1b73818e0608d5f84499e9a Thank you!

Re: [GIT PULL] Kunit fixes update for Linux 5.8-rc4

2020-07-02 Thread pr-tracker-bot
The pull request you sent on Thu, 2 Jul 2020 09:23:55 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-kunit-fixes-5.8-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/55844741a1e74bd41b4cea57502c2efedc99bf47

Re: [GIT PULL] nfsd bugfixes for 5.8

2020-07-02 Thread pr-tracker-bot
The pull request you sent on Thu, 2 Jul 2020 11:10:39 -0400: > git://linux-nfs.org/~bfields/linux.git tags/nfsd-5.8-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/083176c86ffae8c9b467358eca5ba05a54a27898 Thank you! -- Deet-doot-dot, I am a bot.

mainline/master bisection: baseline.dmesg.crit on qemu_arm-vexpress-a15

2020-07-02 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

Re: [PATCH] editorconfig: Add automatic editor configuration file

2020-07-02 Thread Miguel Ojeda
Hi Danny, On Fri, Jul 3, 2020 at 2:16 AM Danny Lin wrote: > > +[*] > +charset = utf-8 > +end_of_line = lf While UTF-8 and LF are probably OK for all files, I am not 100% sure about: > +insert_final_newline = true > +indent_style = tab > +indent_size = 8 for other languages and non-code files

Re: [PATCH] shtc1: add support for device tree bindings

2020-07-02 Thread Guenter Roeck
On 7/2/20 8:48 PM, Chris Ruehl wrote: > Add support for DTS bindings to the shtc driver > The patches add the compatible table and of_property_read* to the > shtc1.c. Newly created Yaml document has been released to the > Documentation/devicetree/hwmon/sensirion,shtc1.yaml > > Signed-off-by:

Re: [PATCH] ASoC: cros_ec_codec: Log results when EC commands fail

2020-07-02 Thread Guenter Roeck
On Thu, Jul 2, 2020 at 8:30 PM Yu-Hsuan Hsu wrote: > > Log results of failed EC commands to identify a problem more easily. > > Signed-off-by: Yu-Hsuan Hsu > --- > sound/soc/codecs/cros_ec_codec.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 2/2] block: enable zone-append for iov_iter of bvec type

2020-07-02 Thread Damien Le Moal
On 2020/07/03 0:42, Kanchan Joshi wrote: > zone-append with bvec iov_iter gives WARN_ON, and returns -EINVAL. > Add new helper to process such iov_iter and add pages in bio honoring > zone-append specific constraints. > > Signed-off-by: Kanchan Joshi > Signed-off-by: Selvakumar S >

Re: [PATCH v5 01/12] iommu: Change type of pasid to u32

2020-07-02 Thread Felix Kuehling
Am 2020-07-02 um 3:10 p.m. schrieb Fenghua Yu: > Hi, Felix, Thomas, Joerg and maintainers, > > On Tue, Jun 30, 2020 at 10:12:38PM -0400, Felix Kuehling wrote: >> Am 2020-06-30 um 7:44 p.m. schrieb Fenghua Yu: >> You didn't change the return types of amdgpu_pasid_alloc and >> kfd_pasid_alloc.

Re: [PATCH 1/9] media: rkvdec: h264: Support profile and level controls

2020-07-02 Thread Jonas Karlman
On 2020-07-03 04:54, Ezequiel Garcia wrote: > On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: >> The Rockchip Video Decoder used in RK3399 supports H.264 profiles from >> Baseline to High 4:2:2 up to Level 5.1, except for the Extended profile. >> >> Expose the

Re: [PATCH 1/2] block: fix error code for zone-append

2020-07-02 Thread Damien Le Moal
On 2020/07/03 0:42, Kanchan Joshi wrote: > avoid returning success when it should report failure, preventing > odd behavior in caller. You can be more precise here: the odd behavior is an infinite loop in bio_iov_iter_get_pages() whcih is is the only user of __bio_iov_append_get_pages(). > >

Re: objtool clac/stac handling change..

2020-07-02 Thread Christophe Leroy
Le 03/07/2020 à 05:17, Michael Ellerman a écrit : Christophe Leroy writes: Le 02/07/2020 à 15:34, Michael Ellerman a écrit : Linus Torvalds writes: On Wed, Jul 1, 2020 at 12:59 PM Al Viro wrote: On Wed, Jul 01, 2020 at 12:04:36PM -0700, Linus Torvalds wrote: That's actually for the

Re: [PATCH 2/2] arm64: Allocate crashkernel always in ZONE_DMA

2020-07-02 Thread chenzhou
Hi Bhupesh, On 2020/7/3 3:22, Bhupesh Sharma wrote: > Hi Will, > > On Thu, Jul 2, 2020 at 1:20 PM Will Deacon wrote: >> On Thu, Jul 02, 2020 at 03:44:20AM +0530, Bhupesh Sharma wrote: >>> commit bff3b04460a8 ("arm64: mm: reserve CMA and crashkernel in >>> ZONE_DMA32") allocates crashkernel for

Re: [PATCH v2 0/8] Introduce sv48 support

2020-07-02 Thread Alex Ghiti
Hi Palmer, Le 7/1/20 à 2:27 PM, Palmer Dabbelt a écrit : On Wed, 03 Jun 2020 01:10:56 PDT (-0700), a...@ghiti.fr wrote: This patchset implements sv48 support at runtime. The kernel will try to boot with 4-level page table and will fallback to 3-level if the HW does not support it. The

RE: [PATCH v3] driver core: platform: expose numa_node to users in sysfs

2020-07-02 Thread Song Bao Hua (Barry Song)
> > However, it is still much more clear and credible to users by exposing the > data > directly from ACPI table. > Except ARM64 iort, numa_node is actually also applicable to x86 and other architectures through general acpi_create_platform_device() API: drivers/acpi/scan.c: static void

Re: [PATCH v2 1/4] x86/xen: remove 32-bit Xen PV guest support

2020-07-02 Thread Jürgen Groß
On 03.07.20 00:59, Boris Ostrovsky wrote: On 7/1/20 7:06 AM, Juergen Gross wrote: Xen is requiring 64-bit machines today and since Xen 4.14 it can be built without 32-bit PV guest support. There is no need to carry the burden of 32-bit PV guest support in the kernel any longer, as new guests

Re: [PATCH v7 02/13] dt-bindings: panel: Convert rocktech, jh057n00900 to yaml

2020-07-02 Thread Sam Ravnborg
Hi Ondrej. > > My bot found errors running 'make dt_binding_check' on your patch: > > > > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/bridge/nwl-dsi.example.dt.yaml: > > panel@0: '#address-cells', '#size-cells', 'port@0' do not match any of the > > regexes:

[PATCH v14 02/20] mm/page_idle: no unlikely double check for idle page counting

2020-07-02 Thread Alex Shi
As func comments mentioned, few isolated page missing be tolerated. So why not do further to drop the unlikely double check. That won't cause more idle pages, but reduce a lock contention. This is also a preparation for later new page isolation feature. Signed-off-by: Alex Shi Cc: Andrew Morton

[PATCH v14 15/20] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-02 Thread Alex Shi
Hugh Dickins' found a memcg change bug on original version: If we want to change the pgdat->lru_lock to memcg's lruvec lock, we have to serialize mem_cgroup_move_account during pagevec_lru_move_fn. The possible bad scenario would like: cpu 0 cpu 1 lruvec

[PATCH v14 16/20] mm/lru: replace pgdat lru_lock with lruvec lock

2020-07-02 Thread Alex Shi
This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg charge before lru inserting, page

[PATCH v14 20/20] mm/lru: revise the comments of lru_lock

2020-07-02 Thread Alex Shi
From: Hugh Dickins Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to fix the incorrect comments in code. Also fixed some zone->lru_lock comment error from ancient time. etc. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey

[PATCH v14 14/20] mm/mlock: reorder isolation sequence during munlock

2020-07-02 Thread Alex Shi
This patch reorder the isolation steps during munlock, move the lru lock to guard each pages, unfold __munlock_isolate_lru_page func, to do the preparation for lru lock change. __split_huge_page_refcount doesn't exist, but we still have to guard PageMlocked and PageLRU in __split_huge_page_tail,

[PATCH v14 04/20] mm/compaction: rename compact_deferred as compact_should_defer

2020-07-02 Thread Alex Shi
The compact_deferred is a defer suggestion check, deferring action does in defer_compaction not here. so, better rename it to avoid confusing. Signed-off-by: Alex Shi Cc: Steven Rostedt Cc: Ingo Molnar Cc: Andrew Morton Cc: Vlastimil Babka Cc: Mike Kravetz Cc: linux-kernel@vger.kernel.org

[PATCH v14 00/20] per memcg lru lock

2020-07-02 Thread Alex Shi
This is a new version which bases on v5.8-rc3. Current lru_lock is one for each of node, pgdat->lru_lock, that guard for lru lists, but now we had moved the lru lists into memcg for long time. Still using per node lru_lock is clearly unscalable, pages on each of memcgs have to compete each others

[PATCH v14 09/20] mm/swap: fold vm event PGROTATED into pagevec_move_tail_fn

2020-07-02 Thread Alex Shi
Fold the PGROTATED event collection into pagevec_move_tail_fn call back func like other funcs does in pagevec_lru_move_fn. Now all usage of pagevec_lru_move_fn are same and no needs of the 3rd parameter. It's simply the calling. [l...@intel.com: found a build issue in the original patch, thanks]

[PATCH v14 11/20] mm/lru: move lock into lru_note_cost

2020-07-02 Thread Alex Shi
This patch move lru_lock into lru_note_cost. It's a bit ugly and may cost more locking, but it's necessary for later per pgdat lru_lock to per memcg lru_lock change. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org ---

[PATCH v14 18/20] mm/vmscan: use relock for move_pages_to_lru

2020-07-02 Thread Alex Shi
From: Hugh Dickins Use the relock function to replace relocking action. And try to save few lock times. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey Ryabinin Cc: Jann Horn Cc: Mel Gorman Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh

[PATCH v14 19/20] mm/pgdat: remove pgdat lru_lock

2020-07-02 Thread Alex Shi
Now pgdat.lru_lock was replaced by lruvec lock. It's not used anymore. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Johannes Weiner Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org Cc: cgro...@vger.kernel.org --- include/linux/mmzone.h | 1

[PATCH v14 08/20] mm/memcg: add debug checking in lock_page_memcg

2020-07-02 Thread Alex Shi
Add a debug checking in lock_page_memcg, then we could get alarm if anything wrong here. Suggested-by: Johannes Weiner Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton Cc: cgro...@vger.kernel.org Cc: linux...@kvack.org Cc:

[PATCH v14 10/20] mm/lru: move lru_lock holding in func lru_note_cost_page

2020-07-02 Thread Alex Shi
It's a clean up patch w/o function changes. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory.c | 3 --- mm/swap.c | 2 ++ mm/swap_state.c | 2 -- mm/workingset.c | 2 -- 4 files changed, 2

[PATCH v14 17/20] mm/lru: introduce the relock_page_lruvec function

2020-07-02 Thread Alex Shi
Use this new function to replace repeated same code. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: Thomas Gleixner Cc: Andrey Ryabinin Cc: Matthew Wilcox Cc: Mel Gorman Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Tejun Heo Cc: linux-kernel@vger.kernel.org Cc:

[PATCH v14 13/20] mm/compaction: do page isolation first in compaction

2020-07-02 Thread Alex Shi
Johannes Weiner has suggested: "So here is a crazy idea that may be worth exploring: Right now, pgdat->lru_lock protects both PageLRU *and* the lruvec's linked list. Can we make PageLRU atomic and use it to stabilize the lru_lock instead, and then use the lru_lock only serialize list operations?

[PATCH v14 12/20] mm/lru: introduce TestClearPageLRU

2020-07-02 Thread Alex Shi
Combine PageLRU check and ClearPageLRU into a function by new introduced func TestClearPageLRU. This function will be used as page isolation precondition to prevent other isolations some where else. Then there are may non PageLRU page on lru list, need to remove BUG checking accordingly. Hugh

[PATCH v14 01/20] mm/vmscan: remove unnecessary lruvec adding

2020-07-02 Thread Alex Shi
We don't have to add a freeable page into lru and then remove from it. This change saves a couple of actions and makes the moving more clear. The SetPageLRU needs to be kept here for list intergrity. Otherwise: #0 mave_pages_to_lru #1 release_pages

[PATCH v14 05/20] mm/thp: move lru_add_page_tail func to huge_memory.c

2020-07-02 Thread Alex Shi
The func is only used in huge_memory.c, defining it in other file with a CONFIG_TRANSPARENT_HUGEPAGE macro restrict just looks weird. Let's move it THP. And make it static as Hugh Dickin suggested. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh

[PATCH v14 06/20] mm/thp: clean up lru_add_page_tail

2020-07-02 Thread Alex Shi
Since the first parameter is only used by head page, it's better to make it explicit. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.c | 12 ++-- 1 file

[PATCH v14 03/20] mm/compaction: correct the comments of compact_defer_shift

2020-07-02 Thread Alex Shi
There is no compact_defer_limit. It should be compact_defer_shift in use. and add compact_order_failed explanation. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- include/linux/mmzone.h | 1 + mm/compaction.c| 2 +- 2 files

[PATCH v14 07/20] mm/thp: narrow lru locking

2020-07-02 Thread Alex Shi
lru_lock and page cache xa_lock have no reason with current sequence, put them together isn't necessary. let's narrow the lru locking, but left the local_irq_disable to block interrupt re-entry and statistic update. Hugh Dickins point: split_huge_page_to_list() was already silly,to be using the

Re: [PATCH v2 2/2] block: add max_active_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/03 3:20, Niklas Cassel wrote: > Add a new max_active zones definition in the sysfs documentation. > This definition will be common for all devices utilizing the zoned block > device support in the kernel. > > Export max_active_zones according to this new definition for NVMe Zoned >

Re: [PATCH v2 1/2] block: add max_open_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/03 3:20, Niklas Cassel wrote: > Add a new max_open_zones definition in the sysfs documentation. > This definition will be common for all devices utilizing the zoned block > device support in the kernel. > > Export max open zones according to this new definition for NVMe Zoned >

[PATCH net-next] net: bcmgenet: Allow changing carrier from user-space

2020-07-02 Thread Florian Fainelli
The GENET driver interfaces with internal MoCA interface as well as external MoCA chips like the BCM6802/6803 through a fixed link interface. It is desirable for the mocad user-space daemon to be able to control the carrier state based upon out of band messages that it receives from the MoCA chip.

[tip:WIP.core/headers] BUILD SUCCESS 1167da790ee80bbd845f50a5a32a5b0c47491b35

2020-07-02 Thread kernel test robot
-a015-20200701 i386 randconfig-a014-20200701 i386 randconfig-a016-20200701 i386 randconfig-a012-20200701 i386 randconfig-a013-20200701 i386 randconfig-a011-20200702 i386 randconfig-a014-20200702 i386

Re: [PATCH 1/2] block: add max_open_zones to blk-sysfs

2020-07-02 Thread Damien Le Moal
On 2020/07/02 21:37, Niklas Cassel wrote: > On Tue, Jun 30, 2020 at 01:49:41AM +, Damien Le Moal wrote: >> On 2020/06/16 19:28, Niklas Cassel wrote: >>> diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c >>> index c08f6281b614..af156529f3b6 100644 >>> --- a/drivers/nvme/host/zns.c

[PATCH -next] locktorture: make function torture_percpu_rwsem_init() static

2020-07-02 Thread Wei Yongjun
The sparse tool complains as follows: kernel/locking/locktorture.c:569:6: warning: symbol 'torture_percpu_rwsem_init' was not declared. Should it be static? And this function is not used outside of locktorture.c, so this commit marks it static. Signed-off-by: Wei Yongjun ---

Re: [PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Dave Young
On 07/03/20 at 12:46pm, Dave Young wrote: > Hi, > > Thanks for the update, but still some nitpicks :( > > I'm sorry I did not catch them previously, but maybe it is not worth to > repost the whole series if no other changes needed. Feel free to add my acks for the common kdump part: Acked-by:

Re: [PATCH v2] crypto: ccp - Update CCP driver maintainer information

2020-07-02 Thread Herbert Xu
On Fri, Jun 26, 2020 at 02:09:39PM -0500, Tom Lendacky wrote: > From: Tom Lendacky > > Add John Allen as a new CCP driver maintainer. Additionally, break out > the driver SEV support and create a new maintainer entry, with Brijesh > Singh and Tom Lendacky as maintainers. > > Cc: John Allen >

Re: [PATCH] crypto, x86: aesni: add compatibility with IAS

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 04:24:33PM -0700, Jian Cai wrote: > Clang's integrated assembler complains "invalid reassignment of > non-absolute variable 'var_ddq_add'" while assembling > arch/x86/crypto/aes_ctrby8_avx-x86_64.S. It was because var_ddq_add was > reassigned with non-absolute values

Re: [PATCH] crypto: sun8i-ce - Fix runtime PM imbalance in sun8i_ce_cipher_init

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 10:40:08AM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a corresponding decrement is > needed on the error handling path to keep the counter balanced. > > Fix this by adding the missed

Re: [PATCH 0/3] qce crypto fixes for tcrypto failures

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 11:45:03AM +0530, Sivaprakash Murugesan wrote: > while running tcrypto test cases on qce crypto engine few failures are > noticed, this is mainly because of the updates on tcrypto driver and > not testing qce reqgularly with mainline tcrypto driver. > > This series tries

Re: [PATCH] crypto: ccp - Fix use of merged scatterlists

2020-07-02 Thread Herbert Xu
On Mon, Jun 22, 2020 at 03:24:02PM -0500, John Allen wrote: > Running the crypto manager self tests with > CONFIG_CRYPTO_MANAGER_EXTRA_TESTS may result in several types of errors > when using the ccp-crypto driver: > > alg: skcipher: cbc-des3-ccp encryption failed on test vector 0; >

Re: [PATCH v2 1/2] mm/memblock: expose only miminal interface to add/walk physmem

2020-07-02 Thread Andrew Morton
On Thu, 2 Jul 2020 09:23:10 +0200 David Hildenbrand wrote: > >>> --- > >>> arch/s390/kernel/crash_dump.c | 6 ++-- > >>> include/linux/memblock.h | 28 ++--- > >>> mm/memblock.c | 57 ++- > >>> 3 files changed, 55 insertions(+),

Re: [PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Dave Young
Hi, Thanks for the update, but still some nitpicks :( I'm sorry I did not catch them previously, but maybe it is not worth to repost the whole series if no other changes needed. On 07/03/20 at 11:58am, Chen Zhou wrote: > Now we support crashkernel=X,[low] on arm64, update the Documentation. >

[PATCH v6 08/10] iommu/mediatek: Extend protect pa alignment value

2020-07-02 Thread Chao Hao
Starting with mt6779, iommu needs to extend to 256 bytes from 128 bytes which can send the max number of data for memory protection pa alignment. So we can use a separate patch to modify it. Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger --- drivers/iommu/mtk_iommu.c | 2 +- 1 file

[PATCH v6 04/10] iommu/mediatek: Setting MISC_CTRL register

2020-07-02 Thread Chao Hao
Add F_MMU_IN_ORDER_WR_EN_MASK and F_MMU_STANDARD_AXI_MODE_EN_MASK definitions in MISC_CTRL register. F_MMU_STANDARD_AXI_MODE_EN_MASK: If we set F_MMU_STANDARD_AXI_MODE_EN_MASK (bit[3][19] = 0, not follow standard AXI protocol), the iommu will priorize sending of urgent read command over a normal

[PATCH v6 05/10] iommu/mediatek: Move inv_sel_reg into the plat_data

2020-07-02 Thread Chao Hao
For mt6779, MMU_INV_SEL register's offset is changed from 0x38 to 0x2c, so we can put inv_sel_reg in the plat_data to use it. In addition, we renamed it to REG_MMU_INV_SEL_GEN1 and use it before mt6779. Cc: Yong Wu Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger ---

[PATCH v6 06/10] iommu/mediatek: Add sub_comm id in translation fault

2020-07-02 Thread Chao Hao
The max larb number that a iommu HW support is 8(larb0~larb7 in the below diagram). If the larb's number is over 8, we use a sub_common for merging several larbs into one larb. At this case, we will extend larb_id: bit[11:9] means common-id; bit[8:7] means subcommon-id; From these two variables,

[PATCH v6 10/10] iommu/mediatek: Add mt6779 basic support

2020-07-02 Thread Chao Hao
1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. 2. Add mt6779_data to support mm_iommu HW init. Cc: Yong Wu Signed-off-by: Chao Hao Reviewed-by: Matthias Brugger --- drivers/iommu/mtk_iommu.c | 9 +

[PATCH v6 00/10] MT6779 IOMMU SUPPORT

2020-07-02 Thread Chao Hao
This patchset adds mt6779 iommu support. mt6779 has two iommus, they are MM_IOMMU(M4U) and APU_IOMMU which used ARM Short-Descriptor translation format. The mt6779's MM_IOMMU-SMI and APU_IOMMU HW diagram is as below, it is only a brief diagram: EMI

[PATCH v6 02/10] iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL

2020-07-02 Thread Chao Hao
For iommu offset=0x48 register, only the previous mt8173/mt8183 use the name STANDARD_AXI_MODE, all the latest SoC extend the register more feature by different bits, for example: axi_mode, in_order_en, coherent_en and so on. So rename REG_MMU_MISC_CTRL may be more proper. This patch only rename

[PATCH v6 03/10] iommu/mediatek: Use a u32 flags to describe different HW features

2020-07-02 Thread Chao Hao
Given the fact that we are adding more and more plat_data bool values, it would make sense to use a u32 flags register and add the appropriate macro definitions to set and check for a flag present. No functional change. Cc: Yong Wu Suggested-by: Matthias Brugger Signed-off-by: Chao Hao

[PATCH v6 01/10] dt-bindings: mediatek: Add bindings for MT6779

2020-07-02 Thread Chao Hao
This patch adds description for MT6779 IOMMU. MT6779 has two iommus, they are mm_iommu and apu_iommu which both use ARM Short-Descriptor translation format. In addition, mm_iommu and apu_iommu are two independent HW instance , we need to set them separately. The MT6779 IOMMU hardware diagram is

[PATCH v6 09/10] iommu/mediatek: Modify MMU_CTRL register setting

2020-07-02 Thread Chao Hao
The MMU_CTRL register of MT8173 is different from other SoCs. The in_order_wr_en is bit[9] which is zero by default. Other SoCs have the vitcim_tlb_en feature mapped to bit[12]. This bit is set to one by default. We need to preserve the bit when setting F_MMU_TF_PROT_TO_PROGRAM_ADDR as otherwise

[PATCH v6 07/10] iommu/mediatek: Add REG_MMU_WR_LEN_CTRL register definition

2020-07-02 Thread Chao Hao
Some platforms(ex: mt6779) need to improve performance by setting REG_MMU_WR_LEN_CTRL register. And we can use WR_THROT_EN macro to control whether we need to set the register. If the register uses default value, iommu will send command to EMI without restriction, when the number of commands

RE: [PATCH v2 1/3] crypto: permit users to specify numa node of acomp hardware

2020-07-02 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Herbert Xu [mailto:herb...@gondor.apana.org.au] > Sent: Friday, July 3, 2020 4:11 PM > To: Song Bao Hua (Barry Song) > Cc: da...@davemloft.net; Wangzhou (B) ; > Jonathan Cameron ; > a...@linux-foundation.org; linux-cry...@vger.kernel.org; >

linux-next: manual merge of the kspp tree with the drm-misc tree

2020-07-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kspp tree got a conflict in: drivers/gpu/drm/drm_edid.c between commit: 948de84233d3 ("drm : Insert blank lines after declarations.") from the drm-misc tree and commit: 80b89ab785a4 ("treewide: Remove uninitialized_var() usage") from the kspp

Re: [PATCH v6 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-07-02 Thread kernel test robot
Hi Vinay, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented

Re: [PATCH] drm/msm/dpu: fix wrong return value in dpu_encoder_init()

2020-07-02 Thread Tianjia Zhang
On 2020/7/2 22:04, Markus Elfring wrote: A positive value ENOMEM is returned here. I thinr this is a typo error. It is necessary to return a negative error value. I imagine that a small adjustment could be nice for this change description. How do you think about to follow progress for the

[PATCH v2] f2fs: add symbolic link to kobject in sysfs

2020-07-02 Thread Daeho Jeong
From: Daeho Jeong Added a symbolic link to directory of sysfs. It will create a symbolic link such as "mount_0" and "mount_1" to each f2fs mount in the order of mounting filesystem. But once one mount point was umounted, that sequential number @x in "mount_@x" could be reused by later newly

[PATCH] MIPS: Do not use smp_processor_id() in preemptible code

2020-07-02 Thread Xingxing Su
Use preempt_disable() to fix the following bug under CONFIG_DEBUG_PREEMPT. [ 21.915305] BUG: using smp_processor_id() in preemptible [] code: qemu-system-mip/1056 [ 21.923996] caller is do_ri+0x1d4/0x690 [ 21.927921] CPU: 0 PID: 1056 Comm: qemu-system-mip Not tainted 5.8.0-rc2 #3 [

Re: [PATCH v2 1/3] crypto: permit users to specify numa node of acomp hardware

2020-07-02 Thread Herbert Xu
On Tue, Jun 23, 2020 at 04:16:08PM +1200, Barry Song wrote: > > -void *crypto_create_tfm(struct crypto_alg *alg, > - const struct crypto_type *frontend) > +void *crypto_create_tfm_node(struct crypto_alg *alg, > + const struct crypto_type *frontend, > +

Re: [PATCH V2] scsi: powertec: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-07-02 Thread Martin K. Petersen
On Fri, 26 Jun 2020 05:59:48 +0200, Christophe JAILLET wrote: > The dev_id used in 'request_irq()' and 'free_irq()' should match. > So use 'info' in both cases. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: powertec: Fix different dev_id between request_irq() and free_irq()

Re: [PATCH 2/2] perf tools: Fix record failure when mixed with ARM SPE event

2020-07-02 Thread liwei (GF)
Hi Mathieu, On 2020/7/3 7:03, Mathieu Poirier wrote: > Hi Li, > > On Tue, Jun 23, 2020 at 08:31:41PM +0800, Wei Li wrote: >> When recording with cache-misses and arm_spe_x event, i found that >> it will just fail without showing any error info if i put cache-misses >> after arm_spe_x event. >>

[PATCH 2/2] KVM: VMX: Use KVM_POSSIBLE_CR*_GUEST_BITS to initialize guest/host masks

2020-07-02 Thread Sean Christopherson
Use the "common" KVM_POSSIBLE_CR*_GUEST_BITS defines to initialize the CR0/CR4 guest host masks instead of duplicating most of the CR4 mask and open coding the CR0 mask. SVM doesn't utilize the masks, i.e. the masks are effectively VMX specific even if they're not named as such. This avoids

[PATCH 0/2] KVM: VMX: CR0/CR4 guest/host masks cleanup

2020-07-02 Thread Sean Christopherson
Fix a bug where CR4.TSD isn't correctly marked as being possibly owned by the guest in the common x86 macro, then clean up the mess that made the bug possible by throwing away VMX's mix of duplicate code and open coded tweaks. The lack of a define for the guest-owned CR0 bit has bugged me for a

Re: [PATCH V2] scsi: eesox: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-07-02 Thread Martin K. Petersen
On Fri, 26 Jun 2020 06:05:53 +0200, Christophe JAILLET wrote: > The dev_id used in 'request_irq()' and 'free_irq()' should match. > So use 'info' in both cases. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: eesox: Fix different dev_id between request_irq() and free_irq()

[PATCH 1/2] KVM: x86: Mark CR4.TSD as being possibly owned by the guest

2020-07-02 Thread Sean Christopherson
Mark CR4.TSD as being possibly owned by the guest as that is indeed the case on VMX. Without TSD being tagged as possibly owned by the guest, a targeted read of CR4 to get TSD could observe a stale value. This bug is benign in the current code base as the sole consumer of TSD is the emulator

[PATCH 1/2] hwmon: shtc1: add support for device tree bindings

2020-07-02 Thread Chris Ruehl
Add support for DTS bindings to the shtc driver, use CONFIG_OF to compile in the code if needed. Signed-off-by: Chris Ruehl --- drivers/hwmon/shtc1.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/hwmon/shtc1.c b/drivers/hwmon/shtc1.c index

[PATCH] shtc1: add support for device tree bindings

2020-07-02 Thread Chris Ruehl
Add support for DTS bindings to the shtc driver The patches add the compatible table and of_property_read* to the shtc1.c. Newly created Yaml document has been released to the Documentation/devicetree/hwmon/sensirion,shtc1.yaml Signed-off-by: Chris Ruehl --- Version 1

[PATCH 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-07-02 Thread Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. Signed-off-by: Chris Ruehl --- .../bindings/hwmon/sensirion,shtc1.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml diff

Re: objtool clac/stac handling change..

2020-07-02 Thread Michael Ellerman
Linus Torvalds writes: > On Thu, Jul 2, 2020 at 8:13 AM Christophe Leroy > wrote: >> >> Isn't it something easy to do in bad_page_fault() ? > > Can't the user access functions take any other faults on ppc? Yes they definitely can. I think I can enumerate all the possibilities on 64-bit, but I

[PATCH v10 3/5] arm64: kdump: add memory for devices by DT property linux,usable-memory-range

2020-07-02 Thread Chen Zhou
If we want to reserve crashkernel above 4G, we could use parameters "crashkernel=X crashkernel=Y,low", in this case, specified size low memory is reserved for crash dump kernel devices and never mapped by the first kernel. This memory range is advertised to crash dump kernel via DT property under

[PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-02 Thread Chen Zhou
commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32") broken the arm64 kdump. If the memory reserved for crash dump kernel falled in ZONE_DMA32, the devices in crash dump kernel need to use ZONE_DMA will alloc fail. This patch addressed the above issue based on "reserving crashkernel

[PATCH v10 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-07-02 Thread Chen Zhou
Crashkernel=X tries to reserve memory for the crash dump kernel under 4G. If crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G. Suggested by James, just introduced crashkernel=X,low to arm64. As

[PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. We could use parameters "crashkernel=X crashkernel=Y,low" to reserve memory above 4G. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- Documentation/admin-guide/kdump/kdump.rst | 14

[PATCH v10 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-07-02 Thread Chen Zhou
In preparation for supporting reserve_crashkernel_low in arm64 as x86_64 does, move reserve_crashkernel_low() into kernel/crash_core.c. BTW, move x86_64 CRASH_ALIGN to 2M suggested by Dave. CONFIG_PHYSICAL_ALIGN can be selected from 2M to 16M, move to the same as arm64. Note, in arm64, we

[PATCH v10 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-07-02 Thread Chen Zhou
This patch series enable reserving crashkernel above 4G in arm64. There are following issues in arm64 kdump: 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail when there is no enough low memory. 2. Currently, crashkernel=Y@X can be used to reserve crashkernel above 4G, in

RE: [PATCH v3 02/14] iommu: Report domain nesting info

2020-07-02 Thread Liu, Yi L
> From: Alex Williamson > Sent: Friday, July 3, 2020 1:55 AM > > On Wed, 24 Jun 2020 01:55:15 -0700 > Liu Yi L wrote: > > > IOMMUs that support nesting translation needs report the capability > > info to userspace, e.g. the format of first level/stage paging structures. > > > > This patch

RE: [PATCH v3 01/14] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-02 Thread Liu, Yi L
> From: Alex Williamson > Sent: Friday, July 3, 2020 5:21 AM > To: Liu, Yi L > > On Wed, 24 Jun 2020 01:55:14 -0700 > Liu Yi L wrote: > > > This patch refactors the vfio_iommu_type1_ioctl() to use switch > > instead of if-else, and each cmd got a helper function. > > > > Cc: Kevin Tian > >

  1   2   3   4   5   6   7   8   9   10   >