Re: ks-sa-rng.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-26 Thread Alexander Sverdlin
Hi! On 27/11/2020 06:48, Herbert Xu wrote: > On Fri, Nov 13, 2020 at 11:02:13PM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba >> commit:

Re: [PATCH bpf-next 2/2] bpf: Add a selftest for the tracing bpf_get_socket_cookie

2020-11-26 Thread Yonghong Song
On 11/26/20 9:02 AM, Florent Revest wrote: This builds up on the existing socket cookie test which checks whether the bpf_get_socket_cookie helpers provide the same value in cgroup/connect6 and sockops programs for a socket created by the userspace part of the test. Adding a tracing program

Re: Fair Pay - The Red Carpet Star is Islamic! (with video playlist)

2020-11-26 Thread Ywe Cærlyn
https://www.youtube.com/playlist?list=PLpA7__w8yeJ2U8b8uo6rQ9ooJ8XgpBtC5 Media created the idea of "The Star". I have been that star, and corrected monotheism, making this potential available to the seeker. See also the playlist! The Fair Pay Initiative fully supports this ofcourse!

Re: [PATCH v3] mfd: kempld-core: Check for DMI definition before ACPI

2020-11-26 Thread Lee Jones
On Mon, 16 Nov 2020, Michael Brunner wrote: > Change the detection order to priorize DMI table entries over available > ACPI entries. > > This makes it more easy for product developers to patch product specific > handling into the driver. > Furthermore it allows to simplify the implementation a

Re: [PATCH 2/3] mm,thp,shm: limit gfp mask to no more than specified

2020-11-26 Thread Michal Hocko
On Thu 26-11-20 13:04:14, Rik van Riel wrote: > On Thu, 2020-11-26 at 14:40 +0100, Michal Hocko wrote: > > On Tue 24-11-20 14:49:24, Rik van Riel wrote: > > > Matthew Wilcox pointed out that the i915 driver opportunistically > > > allocates tmpfs memory, but will happily reclaim some of its > > >

linux-next: manual merge of the akpm-current tree with the tip tree

2020-11-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/highmem.c between commits: 298fa1ad5571 ("highmem: Provide generic variant of kmap_atomic*") 5fbda3ecd14a ("sched: highmem: Store local kmaps in task struct") from the tip tree and commit: 72d22a0d0e86

Re: Question about domain_init (v5.3-v5.7)

2020-11-26 Thread Jerry Snitselaar
Lu Baolu @ 2020-11-26 19:12 MST: > Hi Jerry, > > On 11/27/20 5:35 AM, Jerry Snitselaar wrote: >> Lu Baolu @ 2020-11-26 04:01 MST: >> >>> Hi Jerry, >>> >>> On 2020/11/26 4:27, Jerry Snitselaar wrote: Is there a reason we check the requested guest address width against the iommu's

Re: [PATCH -next] perf util: Fix memory leak in __parse_regs()

2020-11-26 Thread Zheng Zengkai
Ping... On Fri, Jul 03, 2020 at 05:33:44PM +0800, Zheng Zengkai wrote: when using perf record option '-I' or '--user-regs=' along with argument '?' to list available register names, memory of variable 'os' allocated by strdup() needs to be released before __parse_regs() returns, otherwise

[PATCH] wdt: sp805: add watchdog_stop on reboot

2020-11-26 Thread Qiang Zhao
From: Zhao Qiang Call watchdog_stop_on_reboot in probe func Signed-off-by: Zhao Qiang --- drivers/watchdog/sp805_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 190d26e..958dc32 100644 ---

Re: [PATCH v4] mfd: tps65910: Correct power-off programming sequence

2020-11-26 Thread Lee Jones
On Sun, 15 Nov 2020, Dmitry Osipenko wrote: > Correct power-off programming sequence in order to fix shutting down > devices which are using TPS65910 PMIC. > > In accordance to the TPS65910 datasheet, the PMIC's state-machine > transitions into the OFF state only when DEV_OFF bit of DEVCTRL_REG

Re: [PATCH -next] mfd: altera-sysmgr: Use resource_size function on resource object

2020-11-26 Thread Lee Jones
On Sat, 14 Nov 2020, Zou Wei wrote: > ./drivers/mfd/altera-sysmgr.c:155:36-39: WARNING: Suspicious code. > resource_size is maybe missing with res > > Generated by: scripts/coccinelle/api/resource_size.cocci > > Signed-off-by: Zou Wei > --- > drivers/mfd/altera-sysmgr.c | 2 +- > 1 file

linux-next: manual merge of the akpm-current tree with the tip tree

2020-11-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/kernel.h between commit: 74d862b682f5 ("sched: Make migrate_disable/enable() independent of RT") from the tip tree and commit: 761ace49e56f ("kernel.h: Split out mathematical helpers") from the

Re: [PATCH 17/17] realtek: rtw88: pci: Add prototypes for .probe, .remove and .shutdown

2020-11-26 Thread Lee Jones
On Fri, 27 Nov 2020, Pkshih wrote: > > The subject prefix doesn't need 'realtek:'; use 'rtw88:'. > > On Thu, 2020-11-26 at 13:31 +, Lee Jones wrote: > > Also strip out other duplicates from driver specific headers. > > > > Ensure 'main.h' is explicitly included in 'pci.h' since the latter

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-11-26 Thread Yonghong Song
On 11/26/20 8:57 AM, Florent Revest wrote: This helper exposes the kallsyms_lookup function to eBPF tracing programs. This can be used to retrieve the name of the symbol at an address. For example, when hooking into nf_register_net_hook, one can audit the name of the registered netfilter hook

linux-next: manual merge of the akpm-current tree with the risc-v tree

2020-11-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/riscv/Kconfig between commit: 5cb0080f1bfd ("riscv: Enable ARCH_STACKWALK") from the risc-v tree and commit: 46b9b00649f6 ("arch, mm: restore dependency of __kernel_map_pages() on DEBUG_PAGEALLOC") from

Re: [PATCH] usb: dwc3: meson-g12a: disable clk on error handling path in probe

2020-11-26 Thread Zheng Zengkai
Ping... On Wed, Nov 11, 2020 at 10:48 AM Zheng Zengkai wrote: dwc3_meson_g12a_probe() does not invoke clk_bulk_disable_unprepare() on one error handling path. This patch fixes that. Fixes: 347052e3bf1b ("usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs") Reported-by:

linux-next: build failure after merge of the regmap tree

2020-11-26 Thread Stephen Rothwell
Hi all, After merging the regmap tree, today's linux-next build (powerpc allyesconfig) failed like this: ld: sound/soc/codecs/rt715-sdca.o:(.opd+0xf0): multiple definition of `rt715_init'; sound/soc/codecs/rt715.o:(.opd+0x108): first defined here ld: sound/soc/codecs/rt715-sdca.o: in function

Re: [PATCH 7/7] mm,hwpoison: Remove drain_all_pages from shake_page

2020-11-26 Thread Oscar Salvador
On Thu, Nov 26, 2020 at 02:52:32PM +0100, Vlastimil Babka wrote: > > @@ -275,9 +275,6 @@ void shake_page(struct page *p, int access) > > lru_add_drain_all(); > > if (PageLRU(p)) > > return; > > - drain_all_pages(page_zone(p)); > > -

[PATCH] dmaengine: ti: k3-udma-glue: Add new class for glue channels

2020-11-26 Thread Peter Ujfalusi
The dev_release must be provided for a device and in case of the udma glue layer it is in essence an empty function as the struct containing the registered device is devm managed. Reported-by: Vignesh Raghavendra Signed-off-by: Peter Ujfalusi --- Hi, now that we actually have the silicon and

Re: [PATCH] tomoyo: Avoid potential null pointer access

2020-11-26 Thread Zheng Zengkai
Hello Tetsuo, On 2020/11/26 15:33, Zheng Zengkai wrote: As your say,  I found the function tomoyo_assign_namespace( ) in security/tomoyo/domain.c has the similar situation, Can I add __GFP_NOWARN for both and remove the null check for _entry_ in tomoyo_assign_namespace( )? Good catch. Yes,

Re: [GIT PULL] OP-TEE driver for v5.11

2020-11-26 Thread Jens Wiklander
Hi Arnd, On Thu, Nov 26, 2020 at 10:00 PM Arnd Bergmann wrote: > > On Wed, Nov 25, 2020 at 1:01 PM Jens Wiklander > wrote: > > > > Hello arm-soc maintainers, > > > > Please pull this small patch which allows the OP-TEE driver to work with > > ARMv7 based single CPU systems. > > Can you rebase

Re: [PATCH v4 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2020-11-26 Thread Uwe Kleine-König
Hello Jonathan, On Fri, Nov 27, 2020 at 12:19:31AM +0100, Jonathan Neuschäfer wrote: > On Tue, Nov 24, 2020 at 09:20:19AM +0100, Uwe Kleine-König wrote: > > On Sun, Nov 22, 2020 at 11:27:36PM +0100, Jonathan Neuschäfer wrote: > [...] > > > +/* > > > + * The time base used in the EC is 8MHz, or

[PATCH] powerpc: Use common STABS_DEBUG and DWARF_DEBUG and ELF_DETAILS macro

2020-11-26 Thread Youling Tang
Use the common STABS_DEBUG and DWARF_DEBUG and ELF_DETAILS macro rule for the linker script in an effort. Signed-off-by: Youling Tang --- arch/powerpc/kernel/vdso32/vdso32.lds.S | 42 - arch/powerpc/kernel/vdso64/vdso64.lds.S | 42

Re: [PATCH bpf-next v3 6/6] bpf: Test bpf_sk_storage_get in tcp iterators

2020-11-26 Thread Yonghong Song
On 11/26/20 8:44 AM, Florent Revest wrote: This extends the existing bpf_sk_storage_get test where a socket is created and tagged with its creator's pid by a task_file iterator. A TCP iterator is now also used at the end of the test to negate the values already stored in the local storage.

Re: [PATCH bpf-next v3 5/6] bpf: Add an iterator selftest for bpf_sk_storage_get

2020-11-26 Thread Yonghong Song
On 11/26/20 8:44 AM, Florent Revest wrote: The eBPF program iterates over all files and tasks. For all socket files, it stores the tgid of the last task it encountered with a handle to that socket. This is a heuristic for finding the "owner" of a socket similar to what's done by lsof, ss,

[PATCH v3 5/5] Documentation: Add L1D flushing Documentation

2020-11-26 Thread Balbir Singh
Add documentation of l1d flushing, explain the need for the feature and how it can be used. Signed-off-by: Balbir Singh Signed-off-by: Thomas Gleixner --- Documentation/admin-guide/hw-vuln/index.rst | 1 + .../admin-guide/hw-vuln/l1d_flush.rst | 69 +++

[PATCH v3 3/5] x86/mm: Optionally flush L1D on context switch

2020-11-26 Thread Balbir Singh
Implement a mechanism to selectively flush the L1D cache. The goal is to allow tasks that want to save sensitive information, found by the recent snoop assisted data sampling vulnerabilites, to flush their L1D on being switched out. This protects their data from being snooped or leaked via side

[PATCH v3 4/5] prctl: Hook L1D flushing in via prctl

2020-11-26 Thread Balbir Singh
Use the existing PR_GET/SET_SPECULATION_CTRL API to expose the L1D flush capability. For L1D flushing PR_SPEC_FORCE_DISABLE and PR_SPEC_DISABLE_NOEXEC are not supported. Enabling L1D flush does not check if the task is running on an SMT enabled core, rather a check is done at runtime (at the time

[PATCH v3 2/5] x86/mm: Refactor cond_ibpb() to support other use cases

2020-11-26 Thread Balbir Singh
cond_ibpb() has the necessary bits required to track the previous mm in switch_mm_irqs_off(). This can be reused for other use cases like L1D flushing on context switch. [ tglx: Moved comment, added a separate define for state (re)initialization ] Suggested-by: Thomas Gleixner Signed-off-by:

[PATCH v3 1/5] x86/mm: change l1d flush runtime prctl behaviour

2020-11-26 Thread Balbir Singh
Detection of task affinities at API opt-in time is not the best approach, the approach is to kill the task if it runs on a SMT enable core. This is better than not flushing the L1D cache when the task switches from a non-SMT core to an SMT enabled core. Signed-off-by: Balbir Singh ---

[PATCH v3 0/5] Next revision of the L1D flush patches

2020-11-26 Thread Balbir Singh
Implement a mechanism that allows tasks to conditionally flush their L1D cache (mitigation mechanism suggested in [2]). The previous posts of these patches were sent for inclusion (see [3]) and were not included due to the concern for the need for additional checks, those checks were: 1.

[tip:x86/platform] BUILD SUCCESS caf371103ea17de58251714131b06682d86b0df8

2020-11-26 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/platform branch HEAD: caf371103ea17de58251714131b06682d86b0df8 x86/platform/uv: Update MAINTAINERS for uv_sysfs driver elapsed time: 762m configs tested: 142 configs skipped: 3 The following configs have been built

linux-next: build failure after merge of the dma-mapping tree

2020-11-26 Thread Stephen Rothwell
Hi all, After merging the dma-mapping tree, today's linux-next build (powerpc64 allnoconfig) failed like this: In file included from include/linux/dma-direct.h:10, from arch/powerpc/kernel/dma-iommu.c:9: include/linux/dma-map-ops.h:328:41: error: expected identifier or '('

[PATCH] media: gp8psk: initialize stats at power control logic

2020-11-26 Thread Mauro Carvalho Chehab
As reported on: https://lore.kernel.org/linux-media/20190627222020.45909-1-willemdebruijn.ker...@gmail.com/ if gp8psk_usb_in_op() returns an error, the status var is not initialized. Yet, this var is used later on, in order to identify: - if the device was already started;

Fair Pay - Guad - Correction for good word flow.

2020-11-26 Thread Ywe Cærlyn
Analysing the arabic script written right to left "Al Ilah", we seem to get La Guad, in latin. Updated prayer translation. SINO is the only Guad. It should be a solid background for Fair Pay, and the needed step forward. https://www.youtube.com/watch?v=gQjHE0WnenA And really necessary step.

Re: [PATCH v3] crypto: ccree - rework cache parameters handling

2020-11-26 Thread Herbert Xu
On Sun, Nov 22, 2020 at 09:51:53AM +0200, Gilad Ben-Yossef wrote: > Rework the setting of DMA cache parameters, program more appropriate > values and explicitly set sharability domain. > > Signed-off-by: Gilad Ben-Yossef > --- > > Changes from previous versions: > - After discussion with Rob

Re: [PATCH] crypto: marvell/octeontx - Use dma_set_mask_and_coherent to simplify code

2020-11-26 Thread Herbert Xu
On Sat, Nov 21, 2020 at 08:49:16AM +0100, Christophe JAILLET wrote: > 'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by > an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. > > Signed-off-by: Christophe JAILLET > --- >

Re: [PATCH] crypto: cavium/zip - Use dma_set_mask_and_coherent to simplify code

2020-11-26 Thread Herbert Xu
On Sat, Nov 21, 2020 at 08:31:31AM +0100, Christophe JAILLET wrote: > 'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by > an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. > > Signed-off-by: Christophe JAILLET > --- >

Re: [PATCH] crypto: cavium - Use dma_set_mask_and_coherent to simplify code

2020-11-26 Thread Herbert Xu
On Sat, Nov 21, 2020 at 08:56:47AM +0100, Christophe JAILLET wrote: > 'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by > an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. > > Signed-off-by: Christophe JAILLET > --- >

Re: [PATCH 075/141] crypto: ccree - Fix fall-through warnings for Clang

2020-11-26 Thread Herbert Xu
On Fri, Nov 20, 2020 at 12:34:56PM -0600, Gustavo A. R. Silva wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements instead of > letting the code fall through to the next case. > > Link:

Re: [PATCH 0/4] crypto: hisilicon/trng - add HiSilicon TRNG driver support

2020-11-26 Thread Herbert Xu
On Fri, Nov 20, 2020 at 04:56:59PM +0800, Weili Qian wrote: > 1. Move HiSilicon TRNG driver form 'drivers/char/hw_random/' >to 'drivers/crypto/hisilicon/'. > 2. Add support for PRNG in Crypto subsystem. > > Weili Qian (4): > hwrng: hisi - remove HiSilicon TRNG driver > crypto:

Re: [PATCH RESEND] crypto: qat - fix excluded_middle.cocci warnings

2020-11-26 Thread Herbert Xu
On Thu, Nov 19, 2020 at 10:25:19PM +, Giovanni Cabiddu wrote: > > Condition !A || A && B is equivalent to !A || B. > > Generated by: scripts/coccinelle/misc/excluded_middle.cocci > > Fixes: b76f0ea01312 ("coccinelle: misc: add excluded_middle.cocci script") > CC: Denis Efremov >

Re: [Patch v2 0/6] Enable Qualcomm Crypto Engine on sdm845

2020-11-26 Thread Herbert Xu
On Thu, Nov 19, 2020 at 10:52:27AM -0500, Thara Gopinath wrote: > Qualcomm crypto engine supports hardware accelerated algorithms for > encryption and authentication. Enable support for aes,des,3des encryption > algorithms and sha1,sha256, hmac(sha1),hmac(sha256) authentication > algorithms on

Re: [PATCH v9 0/3] Add Novatek NT36xxx touchscreen driver

2020-11-26 Thread Amit Pundir
On Thu, 29 Oct 2020 at 06:32, wrote: > > From: AngeloGioacchino Del Regno > > This patch series adds support for the Novatek NT36xxx Series' In-Cell > touchscreen (integrated into the DriverIC). > > This patch series has been tested against the following devices: > - Sony Xperia 10

Re: [PATCH v4 12/24] iommu/mediatek: Move hw_init into attach_device

2020-11-26 Thread Yong Wu
On Thu, 2020-11-26 at 16:43 +, Robin Murphy wrote: > On 2020-11-11 12:38, Yong Wu wrote: > > In attach device, it will update the pagetable base address register. > > Move the hw_init function also here. Then it only need call > > pm_runtime_get/put one time here if m4u has power domain. > >

Re: [PATCH v4 09/24] iommu/io-pgtable-arm-v7s: Clear LVL_SHIFT/BITS macro instead of the formula

2020-11-26 Thread Yong Wu
On Thu, 2020-11-26 at 16:03 +, Robin Murphy wrote: > On 2020-11-11 12:38, Yong Wu wrote: > > The current _ARM_V7S_LVL_BITS/ARM_V7S_LVL_SHIFT use a formula to calculate > > the corresponding value for level1 and level2 to pretend the code sane. > > Actually their level1 and level2 values are

Re: [PATCH v4 17/24] iommu/mediatek: Add single domain

2020-11-26 Thread Yong Wu
On Thu, 2020-11-26 at 17:11 +, Robin Murphy wrote: > On 2020-11-11 12:38, Yong Wu wrote: > > Defaultly the iova range is 0-4G. here we add a single-domain(0-4G) > > for the previous SoC. this also is a preparing patch for supporting > > multi-domains. > > > > Signed-off-by: Yong Wu > > --- >

Re: [PATCH] iommu: Improve the performance for direct_mapping

2020-11-26 Thread Yong Wu
On Thu, 2020-11-26 at 15:19 +, Robin Murphy wrote: > On 2020-11-20 09:06, Yong Wu wrote: > > Currently direct_mapping always use the smallest pgsize which is SZ_4K > > normally to mapping. This is unnecessary. we could gather the size, and > > call iommu_map then, iommu_map could decide how to

Re: [PATCH] soundwire: master: use pm_runtime_set_active() on add

2020-11-26 Thread Vinod Koul
On 26-11-20, 09:52, Vinod Koul wrote: > > > > @@ -154,7 +163,12 @@ int sdw_master_device_add(struct sdw_bus *bus, > > > struct device *parent, > > > > bus->dev = >dev; > > > > bus->md = md; > > > > > > > > + pm_runtime_set_autosuspend_delay(>md->dev, > > >

Re: [PATCH v2] acpi: Fix use-after-free in acpi_ipmi.c

2020-11-26 Thread Youling Tang
Hi, On 11/26/2020 10:22 PM, Rafael J. Wysocki wrote: On Thu, Nov 26, 2020 at 2:26 AM Youling Tang wrote: kfree() has been called inside put_device so anther kfree would cause a use-after-free bug. Signed-off-by: Youling Tang --- drivers/acpi/acpi_ipmi.c | 1 - 1 file changed, 1

Re: [PATCH] x86/PCI: Convert force_disable_hpet() to standard quirk

2020-11-26 Thread Feng Tang
Hi Thomas, On Fri, Nov 27, 2020 at 12:27:34AM +0100, Thomas Gleixner wrote: > Feng, > > On Thu, Nov 26 2020 at 09:24, Feng Tang wrote: > > On Wed, Nov 25, 2020 at 01:46:23PM +0100, Thomas Gleixner wrote: > >> Now the more interesting question is why this needs to be a PCI quirk in > >> the first

RE: [PATCH] can: m_can: add support for bosch mcan version 3.3.0

2020-11-26 Thread pankj.sharma
> From: Oliver Hartkopp > Subject: Re: [PATCH] can: m_can: add support for bosch mcan version 3.3.0 > > > > On 26.11.20 11:48, Marc Kleine-Budde wrote: > > On 11/26/20 5:51 AM, Pankaj Sharma wrote: > >> Add support for mcan bit timing and control mode according to bosch > >> mcan IP version

REPLY ME URGENTLY

2020-11-26 Thread Mrs. Elizabeth Edward
Greeting Please forgive me for stressing you with my predicaments and I sorry to approach you through this media it is because it serves the fastest means of communication. I came across your E-mail from my personal search and I decided to contact you believing you will be honest to fulfill my

[PATCH v3] drivers/perf: Add support for ARMv8.3-SPE

2020-11-26 Thread Wei Li
Armv8.3 extends the SPE by adding: - Alignment field in the Events packet, and filtering on this event using PMSEVFR_EL1. - Support for the Scalable Vector Extension (SVE). The main additions for SVE are: - Recording the vector length for SVE operations in the Operation Type packet. It is not

Re: [PATCH v2] phy: mediatek: Make PHY_MTK_{XSPHY,TPHY} depend on HAS_IOMEM and OF_ADDRESS to fix build errors

2020-11-26 Thread Chunfeng Yun
On Wed, 2020-11-25 at 15:37 +0800, Tiezhu Yang wrote: > devm_ioremap_resource() will be not built in lib/devres.c if > CONFIG_HAS_IOMEM is not set, of_address_to_resource() will be > not built in drivers/of/address.c if CONFIG_OF_ADDRESS is not > set, and then there exists two build errors about

Re: [PATCH v3 6/7] crypto: sun4i-ss: enabled stats via debugfs

2020-11-26 Thread Herbert Xu
On Mon, Nov 16, 2020 at 01:53:44PM +, Corentin Labbe wrote: > > +#ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_DEBUG > + /* Ignore error of debugfs */ > + ss->dbgfs_dir = debugfs_create_dir("sun4i-ss", NULL); > + ss->dbgfs_stats = debugfs_create_file("stats", 0444, ss->dbgfs_dir, ss, > +

Re: [PATCH] mm: memcg/slab: fix obj_cgroup_charge() return value handling

2020-11-26 Thread Shakeel Butt
On Thu, Nov 26, 2020 at 8:14 PM Roman Gushchin wrote: > > Commit 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches > for all allocations") introduced a regression into the handling of the > obj_cgroup_charge() return value. If a non-zero value is returned > (indicating of exceeding

Re: [RFC PATCH v0 03/19] x86/insn: Add an insn_decode() API

2020-11-26 Thread Masami Hiramatsu
On Thu, 26 Nov 2020 18:50:11 +0100 Borislav Petkov wrote: > On Thu, Nov 26, 2020 at 10:37:09AM +0900, Masami Hiramatsu wrote: > > BTW, the instruction validation depends on who needs it, because to > > check the all invalid ops, we need more information in the > > x86-opcode-map.txt > > and it

[PATCH] tools: selftests: Add missing munmap() in check_error_paths()

2020-11-26 Thread Youling Tang
Add the missing munmap(addr_ro, PAGE_SIZE) before return. Signed-off-by: Youling Tang --- tools/testing/selftests/ptrace/peeksiginfo.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/ptrace/peeksiginfo.c

[PATCH] hwrng: ks-sa - Add dependency on IOMEM and OF

2020-11-26 Thread Herbert Xu
Resent with fixed Subject line. ---8<--- This patch adds a dependency for KEYSTONE on HAS_IOMEM and OF to prevent COMPILE_TEST build failures. Reported-by: kernel test robot Signed-off-by: Herbert Xu diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index

[PATCH 2/2] perf-probe: Change function definition check due to broken dwarf

2020-11-26 Thread Masami Hiramatsu
Since some gcc generates a broken DWARF which lacks DW_AT_declaration attribute from the subprogram DIE of function prototype. (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060) So, in addition to the DW_AT_declaration check, we also check the subprogram DIE has DW_AT_inline or actual entry pc.

Re: ks-sa-rng.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-26 Thread Herbert Xu
On Fri, Nov 13, 2020 at 11:02:13PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > commit: 90c4b29eb1e555fee66f8329a18cb8a070090ad6 hwrng: ks-sa - Enable > COMPILE_TEST >

[PATCH 1/2] perf-probe: Fix to die_entrypc() returns error correctly

2020-11-26 Thread Masami Hiramatsu
Fix die_entrypc() to return error correctly if the DIE has no DW_AT_ranges attribute. Since dwarf_ranges() will treat the case as an empty ranges and return 0, we have to check it by ourselves. Fixes: 91e2f539eeda ("perf probe: Fix to show function entry line as probe-able") Signed-off-by:

[PATCH] perf record: Synthesize cgroup events only if needed

2020-11-26 Thread Namhyung Kim
It didn't check the tool->cgroup_events bit which is set when the --all-cgroups option is given. Without it, samples will not have cgroup info so no reason to synthesize. We can check the PERF_RECORD_CGROUP records after running perf record *WITHOUT* the --all-cgroups option: Before: $ perf

[v2 PATCH] crypto: lib/blake2s - Move selftest prototype into header file

2020-11-26 Thread Herbert Xu
v2 Actually include the header file. ---8<--- This patch fixes a missing prototype warning on blake2s_selftest. Reported-by: kernel test robot Signed-off-by: Herbert Xu diff --git a/include/crypto/internal/blake2s.h b/include/crypto/internal/blake2s.h index 74ff77032e52..6e376ae6b6b5 100644

[PATCH] crypto: lib/blake2s - Move selftest prototype into header file

2020-11-26 Thread Herbert Xu
On Fri, Nov 13, 2020 at 04:02:28PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > commit: 66d7fb94e4ffe5acc589e0b2b4710aecc1f07a28 crypto: blake2s - generic C > library

Re: [PATCH net-next 1/3] nfc: s3fwrn5: use signed integer for parsing GPIO numbers

2020-11-26 Thread Bongsu Jeon
On 11/27/20, Bongsu Jeon wrote: > On Fri, Nov 27, 2020 at 2:06 AM Krzysztof Kozlowski > wrote: >> >> On Fri, Nov 27, 2020 at 12:33:37AM +0900, bongsu.je...@gmail.com wrote: >> > From: Krzysztof Kozlowski >> > >> > GPIOs - as returned by of_get_named_gpio() and used by the gpiolib - >> > are >>

[PATCH 1/2] ASoC: dt-bindings: imx-hdmi: Add binding doc for hdmi machine driver

2020-11-26 Thread Shengjiu Wang
Imx-hdmi is a new added machine driver for supporting hdmi devices on i.MX platforms. There is HDMI IP or external HDMI modules connect with SAI or AUD2HTX interface. Signed-off-by: Shengjiu Wang --- .../bindings/sound/imx-audio-hdmi.yaml| 52 +++ 1 file changed, 52

[PATCH 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-11-26 Thread Shengjiu Wang
The driver is initially designed for sound card using HDMI interface on i.MX platform. There is internal HDMI IP or external HDMI modules connect with SAI or AUD2HTX interface. It supports both transmitter and receiver devices. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/Kconfig| 12 ++

[PATCH] add amlogic gpio to irq

2020-11-26 Thread linshenghuan
From: Lin shenghuan --- drivers/pinctrl/meson/pinctrl-meson.c | 36 +++ drivers/pinctrl/meson/pinctrl-meson.h | 1 + 2 files changed, 37 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index

[PATCH] add amlogic gpio to irq

2020-11-26 Thread linsheng_111
From: Lin shenghuan --- drivers/pinctrl/meson/pinctrl-meson.c | 36 +++ drivers/pinctrl/meson/pinctrl-meson.h | 1 + 2 files changed, 37 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index

[PATCH] add amlogic gpio to irq

2020-11-26 Thread linsheng_111
From: Lin shenghuan --- drivers/pinctrl/meson/pinctrl-meson.c | 36 +++ drivers/pinctrl/meson/pinctrl-meson.h | 1 + 2 files changed, 37 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index

Re: [RFC][PATCH 00/18] crypto: Add generic Kerberos library

2020-11-26 Thread Herbert Xu
On Thu, Nov 26, 2020 at 08:19:41AM +, David Howells wrote: > > I haven't done that yet. Sorry, I should've been more explicit with what I > was after. I was wanting to find out if the nfs/nfsd people are okay with > this (and if there are any gotchas I should know about - it turns out, if I

[PATCH 2/2] mm/debug_vm_pgtable/basic: Iterate over entire protection_map[]

2020-11-26 Thread Anshuman Khandual
Currently the basic tests just validate various page table transformations after starting with vm_get_page_prot(VM_READ|VM_WRITE|VM_EXEC) protection. Instead scan over the entire protection_map[] for better coverage. It also makes sure that all these basic page table tranformations checks hold

[PATCH 1/2] mm/debug_vm_pgtable/basic: Add validation for dirtiness after write protect

2020-11-26 Thread Anshuman Khandual
This adds validation tests for dirtiness after write protect conversion for each page table level. This is important for platforms such as arm64 that removes the hardware dirty bit while making it an write protected one. This also fixes pxx_wrprotect() related typos in the documentation file. Cc:

[PATCH v2] proc: use untagged_addr() for pagemap_read addresses

2020-11-26 Thread Miles Chen
When we try to visit the pagemap of a tagged userspace pointer, we find that the start_vaddr is not correct because of the tag. To fix it, we should untag the usespace pointers in pagemap_read(). I tested with 5.10-rc4 and the issue remains. Explaination from Catalin in [1]: " Arguably, that's

[PATCH 0/2] mm/debug_vm_pgtable: Some minor updates

2020-11-26 Thread Anshuman Khandual
This series contains some cleanups and new test suggestions from Catalin from an earlier discussion. https://lore.kernel.org/linux-mm/20201123142237.GF17833@gaia/ This series is based on v5.10-rc5 and has been tested on arm64 and x86 but has only been build tested on riscv, s390, arc etc. It

[PATCH v3] media: rc: add keymap for pine64 remote

2020-11-26 Thread Christian Hewitt
From: Jonas Karlman Add a keymap for the pine64 IR remote [0]. The mouse key has been mapped to KEY_EPG to provide a more useful remote. [0] http://files.pine64.org/doc/Pine%20A64%20Schematic/remote-wit-logo.jpg Signed-off-by: Jonas Karlman Signed-off-by: Christian Hewitt --- Changes since

Re: [PATCH v2 tip/core/rcu 5/6] srcu: Provide polling interfaces for Tree SRCU grace periods

2020-11-26 Thread Neeraj Upadhyay
On 11/21/2020 6:29 AM, paul...@kernel.org wrote: From: "Paul E. McKenney" There is a need for a polling interface for SRCU grace periods, so this commit supplies get_state_synchronize_srcu(), start_poll_synchronize_srcu(), and poll_state_synchronize_srcu() for this purpose. The first can

Re: [PATCH 131/141] tpm: Fix fall-through warnings for Clang

2020-11-26 Thread Jarkko Sakkinen
On Tue, 2020-11-24 at 08:40 -0600, Gustavo A. R. Silva wrote: > On Tue, Nov 24, 2020 at 12:53:22AM +0200, Jarkko Sakkinen wrote: > > On Tue, Nov 24, 2020 at 12:52:31AM +0200, Jarkko Sakkinen wrote: > > > On Fri, Nov 20, 2020 at 12:40:14PM -0600, Gustavo A. R. Silva wrote: > > > > In preparation to

Re: [PATCHv4 00/25] perf: Add mmap2 build id support

2020-11-26 Thread Namhyung Kim
Hi Jiri, On Fri, Nov 27, 2020 at 2:00 AM Jiri Olsa wrote: > > hi, > adding the support to have buildid stored in mmap2 event, > so we can bypass the final perf record hunt on build ids. > > This patchset allows perf to record build ID in mmap2 event, > and adds perf tooling to store/download

[PATCH] mmc: core: MMC_CAP2_HS200_1_8V_SDR with mmc-hs400-1_8v

2020-11-26 Thread Chris Ruehl
This patch remove the MMC_CAP2_HS200_1_8V_SDR capacity from host->cap2 when the dt property mmc-hs400-1v8 set. It cause error and occasionally hang on boot and reboot. Board with this issue: rk3399 with SanDisk DG4008 eMMC. This patch did not change the mmc-hs400-1_2v host->cap2 added the

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c:1916:23: warning: Uninitialized variable: vlevel

2020-11-26 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 85a2c56cb4454c73f56d3099d96942e7919b292f commit: 16a8cb7cc557f980aae19d1b7140713939fa9644 drm/amd/display: fix dcn3 p_state_change_support validation (v2) date: 5 months ago compiler: gcc-9 (Debian

Re: [PATCH v2] media: rc: add keymap for pine64 remote

2020-11-26 Thread kernel test robot
Hi Christian, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v5.10-rc5 next-20201126] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH bpf-next v3 3/3] bpf: Add a selftest for bpf_ima_inode_hash

2020-11-26 Thread Andrii Nakryiko
On Tue, Nov 24, 2020 at 7:16 AM KP Singh wrote: > > From: KP Singh > > The test does the following: > > - Mounts a loopback filesystem and appends the IMA policy to measure > executions only on this file-system. Restricting the IMA policy to a > particular filesystem prevents a system-wide

[PATCH v2 2/2] perf test: Add shadow stat test

2020-11-26 Thread Namhyung Kim
It calculates IPC from the cycles and instruction counts and compares it with the shadow stat for both global aggregation (default) and no aggregation mode. $ perf stat -a -A -e cycles,instructions sleep 1 Performance counter stats for 'system wide': CPU0 39,580,880 cycles CPU1

[PATCH] mm: memcg/slab: fix obj_cgroup_charge() return value handling

2020-11-26 Thread Roman Gushchin
Commit 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches for all allocations") introduced a regression into the handling of the obj_cgroup_charge() return value. If a non-zero value is returned (indicating of exceeding one of memory.max limits), the allocation should fail, instead of

[PATCH v2 1/2] perf stat: Use proper cpu for shadow stats

2020-11-26 Thread Namhyung Kim
Currently perf stat shows some metrics (like IPC) for defined events. But when no aggregation mode is used (-A option), it shows incorrect values since it used a value from a different cpu. Before: $ perf stat -aA -e cycles,instructions sleep 1 Performance counter stats for 'system wide':

[PATCH] Asoc: qcom: Fix for problem in resume with CRAS

2020-11-26 Thread Srinivasa Rao Mandadapu
To support playback continuation after resume problem in chrome audio server: Prepare device in platform trigger callback. Make I2s and DMA control registers as non volatile. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c | 8

linux-next: build failure after merge of the tip tree

2020-11-26 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: kernel/smp.c: In function 'csd_lock_wait_getcpu': kernel/smp.c:133:13: error: 'call_single_data_t' {aka 'struct __call_single_data'} has no member named 'dst' 133 | return csd->dst; /* Other

ll_temac_main.c:undefined reference to `devm_platform_ioremap_resource_byname'

2020-11-26 Thread kernel test robot
Hi Wang, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 85a2c56cb4454c73f56d3099d96942e7919b292f commit: bd69058f50d5ffa659423bcfa6fe6280ce9c760a net: ll_temac: Use devm_platform_ioremap_resource_byname() date:

[PATCH] sparc: Removes code duplication between arch_ptrace and compat_arch_ptrace

2020-11-26 Thread Youling Tang
The patch removes code duplication between arch_ptrace and compat_arch_ptrace, in large part by having the former call into the later for all requests that don't need any special "compat" treatment. Signed-off-by: Youling Tang --- arch/sparc/kernel/ptrace_64.c | 71

[PATCH] alpha: ptrace generic requests

2020-11-26 Thread Youling Tang
This removes duplicated code by calling the generic ptrace_request function for the things they already handle. Signed-off-by: Youling Tang --- arch/alpha/kernel/ptrace.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/alpha/kernel/ptrace.c b/arch/alpha/kernel/ptrace.c index

Re: [RFC PATCH] vfio/pci: Allow force needs_pm_restore as specified by device:vendor

2020-11-26 Thread Colin Xu
On 11/25/20 11:53 PM, Alex Williamson wrote: On Wed, 25 Nov 2020 10:18:24 +0800 Colin Xu wrote: Force specific device listed in params pm_restore_ids to follow device state save/restore as needs_pm_restore. Some device has NoSoftRst so will skip current state save/restore enabled by

[tip:master] BUILD SUCCESS 94908c81576bf30b2e0c8276444f589d3504216f

2020-11-26 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: 94908c81576bf30b2e0c8276444f589d3504216f Merge branch 'core/entry' elapsed time: 727m configs tested: 138 configs skipped: 2 The following configs have been built successfully. More configs may be

[PATCH 2/2] mmc: core: MMC_CAP2_HS200_1_8V_SDR with mmc-hs400-1_8v

2020-11-26 Thread Chris Ruehl
This patch remove the MMC_CAP2_HS200_1_8V_SDR capacity from host->cap2 when the dt property mmc-hs400-1v8 set. It cause error and occasionally hang on boot and reboot. Board with this issue: rk3399 with SanDisk DG4008 eMMC. This patch did not change the mmc-hs400-1_2v host->cap2 added the

[PATCH 1/2] phy: rockchip: set pulldown for strobe line in dts

2020-11-26 Thread Chris Ruehl
This patch add support to set the internal pulldown via dt property and allow simplify the board design for the trace from emmc-phy to the eMMC chipset. Default to not set the pull-down. This patch was inspired from the 4.4 tree of the Rockchip SDK, where it is enabled unconditional. The patch

Re: [PATCH 17/17] realtek: rtw88: pci: Add prototypes for .probe, .remove and .shutdown

2020-11-26 Thread Pkshih
The subject prefix doesn't need 'realtek:'; use 'rtw88:'. On Thu, 2020-11-26 at 13:31 +, Lee Jones wrote: > Also strip out other duplicates from driver specific headers. > > Ensure 'main.h' is explicitly included in 'pci.h' since the latter > uses some defines from the former.  It avoids

[PATCH v10 1/6] leds: flash: Add flash registration with undefined CONFIG_LEDS_CLASS_FLASH

2020-11-26 Thread Gene Chen
From: Gene Chen Add flash registration with undefined CONFIG_LEDS_CLASS_FLASH, and reuse same registration functions no matter flash class exist or not. Signed-off-by: Gene Chen --- include/linux/led-class-flash.h | 42 - 1 file changed, 33

[PATCH v10 6/6] leds: mt6360: Add LED driver for MT6360

2020-11-26 Thread Gene Chen
From: Gene Chen Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for moonlight LED. Signed-off-by: Gene Chen Acked-by: Jacek Anaszewski --- drivers/leds/Kconfig | 13 + drivers/leds/Makefile

  1   2   3   4   5   6   7   8   9   10   >