Re: [PATCH v2] nand: brcmnand: fix OOB R/W with Hamming ECC

2021-02-24 Thread Álvaro Fernández Rojas
Hi Miquel, > El 25 feb 2021, a las 8:48, Miquel Raynal > escribió: > > Hi Álvaro, > > Brian Norris wrote on Wed, 24 Feb 2021 > 13:01:13 -0800: > >> On Wed, Feb 24, 2021 at 12:02 AM Álvaro Fernández Rojas >> wrote: >>> Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom

RE: RE: RE: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-24 Thread Avri Altman
> > > > > > @@ -2656,7 +2656,12 @@ static int ufshcd_queuecommand(struct > > > > Scsi_Host > > > > > > *host, struct scsi_cmnd *cmd) > > > > > > > > > > > > lrbp->req_abort_skip = false; > > > > > > > > > > > > - ufshpb_prep(hba, lrbp); > > > > > > + err = ufshpb_prep(hba,

Re: [PATCH V3 2/5] ARM: dts: renesas: Add fck to etheravb-rcar-gen2 clock-names list

2021-02-24 Thread Geert Uytterhoeven
Hi Andrew, On Wed, Feb 24, 2021 at 2:45 PM Andrew Lunn wrote: > On Wed, Feb 24, 2021 at 05:51:42AM -0600, Adam Ford wrote: > > The bindings have been updated to support two clocks, but the > > original clock now requires the name fck. Add a clock-names > > list in the device tree with fck in

[PATCH v1] drm/nouveau/kms: delete an useless function call in nouveau_framebuffer_new()

2021-02-24 Thread Luo Jiaxing
nouveau_framebuffer_new() call drm_format_info_plane_width() to get a width of plane, but width is not used then, so it's a useless function call here. Signed-off-by: Luo Jiaxing --- drivers/gpu/drm/nouveau/nouveau_display.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH v2] nand: brcmnand: fix OOB R/W with Hamming ECC

2021-02-24 Thread Miquel Raynal
Hi Álvaro, Brian Norris wrote on Wed, 24 Feb 2021 13:01:13 -0800: > On Wed, Feb 24, 2021 at 12:02 AM Álvaro Fernández Rojas > wrote: > > Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB > > NAND controller") > > FWIW, I could believe this was broken. We weren't

Dear Friend (Assalamu Alaikum),.?

2021-02-24 Thread AISHA GADDAFI
Dear Friend (Assalamu Alaikum), I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Al-Qaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I

Re: [PATCH] riscv: Add KASAN_VMALLOC support

2021-02-24 Thread Alex Ghiti
Le 2/25/21 à 2:42 AM, Alexandre Ghiti a écrit : Populate the top-level of the kernel page table to implement KASAN_VMALLOC, lower levels are filled dynamically upon memory allocation at runtime. Co-developed-by: Nylon Chen Signed-off-by: Nylon Chen Co-developed-by: Nick Hu Signed-off-by:

Re: [PATCH v2 3/3] mtd: rawnand: qcom: Add support for secure regions in NAND memory

2021-02-24 Thread Miquel Raynal
Hi Manivannan, Manivannan Sadhasivam wrote on Thu, 25 Feb 2021 09:41:29 +0530: > On a typical end product, a vendor may choose to secure some regions in > the NAND memory which are supposed to stay intact between FW upgrades. > The access to those regions will be blocked by a secure element

[GIT PULL] nds32 patches for 5.12-rc1

2021-02-24 Thread Greentime Hu
Hi Linus Please pull the arch/nds32 updates for v5.12-rc1. Thank you. The following changes since commit f40ddce88593482919761f74910f42f4b84c004b: Linux 5.11 (2021-02-14 14:32:24 -0800) are available in the Git repository at:

RE: [PATCH] mmc: core: add a power cycle when CMD11 fails

2021-02-24 Thread DooHyun Hwang
Dear Maintainers and commiters. Please review this patch for updating. Thanks and regards. DooHyun Hwang. On 17/02/10 4:59 am, DooHyun Hwang wrote: >Subject: [PATCH] mmc: core: add a power cycle when CMD11 fails > >A power cycle is required if CMD11 fails. >CMD11 failure should be handled as no

[PATCH] riscv: Add KASAN_VMALLOC support

2021-02-24 Thread Alexandre Ghiti
Populate the top-level of the kernel page table to implement KASAN_VMALLOC, lower levels are filled dynamically upon memory allocation at runtime. Co-developed-by: Nylon Chen Signed-off-by: Nylon Chen Co-developed-by: Nick Hu Signed-off-by: Nick Hu Signed-off-by: Alexandre Ghiti ---

Re: [PATCH 03/15] KVM: selftests: Align HVA for HugeTLB-backed memslots

2021-02-24 Thread wangyanan (Y)
Hi Sean, On 2021/2/11 7:06, Sean Christopherson wrote: Align the HVA for HugeTLB memslots, not just THP memslots. Add an assert so any future backing types are forced to assess whether or not they need to be aligned. Cc: Ben Gardon Cc: Yanan Wang Cc: Andrew Jones Cc: Peter Xu Cc: Aaron

[PATCH v2,3/3] media: mtk-vcodec: Separating mtk encoder driver

2021-02-24 Thread Irui Wang
MTK H264 Encoder(VENC_SYS) and VP8 Encoder(VENC_LT_SYS) are two independent hardware instance. They have their owner interrupt, register mapping, and special clocks. This patch separates them into two devices. This is a preparing patch for adding device_link between the larbs and venc-device.

[PATCH v2,1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-02-24 Thread Irui Wang
Updates binding document since the avc and vp8 hardware encoder in MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to "mediatek,mt8173-vcodec-enc-vp8" and "mediatek,mt8173-vcodec-enc". This is a preparing patch for smi cleaning up "mediatek,larb". Acked-by: Tiffany Lin

[PATCH v2,2/3] arm64: dts: mt8173: Separating mtk-vcodec-enc device node

2021-02-24 Thread Irui Wang
There are two separate hardware encoder blocks inside MT8173. Split the current mtk-vcodec-enc node to match the hardware architecture. Acked-by: Tiffany Lin Signed-off-by: Hsin-Yi Wang Signed-off-by: Maoguang Meng Signed-off-by: Irui Wang --- Change since v1: - rename compatible and device

Re: [PATCH 5/7] fsdax: Dedup file range to use a compare function

2021-02-24 Thread Christoph Hellwig
On Thu, Feb 18, 2021 at 08:20:18AM -0800, Darrick J. Wong wrote: > > I think a nested call like this is necessary. That's why I use the open > > code way. > > This might be a good place to implement an iomap_apply2() loop that > actually /does/ walk all the extents of file1 and file2. There's

Re: [PATCH] wilc1000: write value to WILC_INTR2_ENABLE register

2021-02-24 Thread Ajay.Kathat
On 25/02/21 12:39 pm, Kalle Valo wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > writes: > >> On 24/02/21 10:13 pm, Kalle Valo wrote: >>> EXTERNAL EMAIL: Do not click links or open attachments unless you >>> know the content is safe

Re: [PATCH 0/3] Introduce version array structure: sgx_va

2021-02-24 Thread Jarkko Sakkinen
On Thu, Feb 25, 2021 at 12:20:46AM +0200, Jarkko Sakkinen wrote: > Introduce an xarray based version array (VA) structure: struct sgx_va. > > The use of sgx_va can be later on extended to the following use cases: > > - A global VA for reclaimed SECS pages. > - A global VA for reclaimed VA pages.

[RFC 5/6] mm: use lightweight reclaim on FAULT_FLAG_RETRY_NOWAIT

2021-02-24 Thread Nadav Amit
From: Nadav Amit When FAULT_FLAG_RETRY_NOWAIT is set, the caller arguably wants only a lightweight reclaim to avoid a long reclamation, which would not respect the "NOWAIT" semantic. Regard the request in swap and file-backed page-faults accordingly during the first try. Cc: Andy Lutomirski

[PATCH 6/6] testing/selftest: test vDSO prefetch_page()

2021-02-24 Thread Nadav Amit
From: Nadav Amit Test prefetch_page() in cases of invalid pointer, file-mmap and anonymous memory. Partial checks are also done with mincore syscall to ensure the output of prefetch_page() is consistent with mincore (taking into account the different semantics of the two). The tests are not

[RFC 4/6] mm/swap_state: respect FAULT_FLAG_RETRY_NOWAIT

2021-02-24 Thread Nadav Amit
From: Nadav Amit Certain use-cases (e.g., prefetch_page()) may want to avoid polling while a page is brought from the swap. Yet, swap_cluster_readahead() and swap_vma_readahead() do not respect FAULT_FLAG_RETRY_NOWAIT. Add support to respect FAULT_FLAG_RETRY_NOWAIT by not polling in these

[RFC 3/6] x86/vdso: introduce page_prefetch()

2021-02-24 Thread Nadav Amit
From: Nadav Amit Introduce a new vDSO function: page_prefetch() which is to be used when certain memory, which might be paged out, is expected to be used soon. The function prefetches the page if needed. The function returns zero if the page is accessible after the call and -1 otherwise.

[RFC 1/6] vdso/extable: fix calculation of base

2021-02-24 Thread Nadav Amit
From: Nadav Amit Apparently, the assembly considers __ex_table as the location when the pushsection directive was issued. Therefore when there is more than a single entry in the vDSO exception table, the calculations of the base and fixup are wrong. Fix the calculations of the expected fault IP

[RFC 2/6] x86/vdso: add mask and flags to extable

2021-02-24 Thread Nadav Amit
From: Nadav Amit Add a "mask" field to vDSO exception tables that says which exceptions should be handled. Add a "flags" field to vDSO as well to provide additional information about the exception. The existing preprocessor macro _ASM_VDSO_EXTABLE_HANDLE for assembly is not easy to use as it

[RFC 0/6] x86: prefetch_page() vDSO call

2021-02-24 Thread Nadav Amit
From: Nadav Amit Just as applications can use prefetch instructions to overlap computations and memory accesses, applications may want to overlap the page-faults and compute or overlap the I/O accesses that are required for page-faults of different pages. Applications can use multiple threads

Re: [PATCH] net: dsa: sja1105: Remove unneeded cast in sja1105_crc32()

2021-02-24 Thread Geert Uytterhoeven
Hi Vladimir, On Wed, Feb 24, 2021 at 11:44 PM Vladimir Oltean wrote: > On Tue, Feb 23, 2021 at 12:20:03PM +0100, Geert Uytterhoeven wrote: > > sja1105_unpack() takes a "const void *buf" as its first parameter, so > > there is no need to cast away the "const" of the "buf" variable before > >

[PATCH v1 1/2] drm/nouveau/kms/nv50-: Remove several set but not used variables "ret" in disp.c

2021-02-24 Thread Luo Jiaxing
Fixes the following warning when using W=1 to build kernel: drivers/gpu/drm/nouveau/dispnv50/disp.c: In function ‘nv50_mstm_cleanup’: drivers/gpu/drm/nouveau/dispnv50/disp.c:1389:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 1389 | int ret; | ^~~

Re: [PATCH v14 01/11] x86: kdump: replace the hard-coded alignment with macro CRASH_ALIGN

2021-02-24 Thread Baoquan He
On 02/24/21 at 02:19pm, Catalin Marinas wrote: > On Sat, Jan 30, 2021 at 03:10:15PM +0800, Chen Zhou wrote: > > Move CRASH_ALIGN to header asm/kexec.h for later use. Besides, the > > alignment of crash kernel regions in x86 is 16M(CRASH_ALIGN), but > > function reserve_crashkernel() also used 1M

Hello okay

2021-02-24 Thread Ms. Reem
Hello, My name is Ms. Reem Ebrahim Al-Hashimi, I am the "Minister of state and Petroleum" also "Minister of State for International Cooperation" in UAE. I write to you on behalf of my other "three (3) colleagues" who has approved me to solicit for your "partnership in claiming of {us$47=Million}"

Re: [PATCH 5/6] can: c_can: prepare to up the message objects number

2021-02-24 Thread Marc Kleine-Budde
Hey Dario, just a quick note... On 24.02.2021 23:52:45, Dario Binacchi wrote: > -struct net_device *alloc_c_can_dev(void) > +struct net_device *alloc_c_can_dev(int msg_obj_num) > { > struct net_device *dev; > struct c_can_priv *priv; > + int msg_obj_tx_num = msg_obj_num / 2; >

Re: [PATCH v4] i2c: virtio: add a virtio i2c frontend driver

2021-02-24 Thread Viresh Kumar
On 12-10-20, 09:55, Jie Deng wrote: > Add an I2C bus driver for virtio para-virtualization. > > The controller can be emulated by the backend driver in > any device model software by following the virtio protocol. > > This driver communicates with the backend driver through a > virtio I2C

RE: [PATCH] mmc: core: set read only with permanent write protect

2021-02-24 Thread 이승희
Dear Maintainer & commiters, Please review the patch for updating. I'm not sure if it's reviewed or not. As you know, there are lots of defect SD cards in the market. It's one of solution that reduces the system load. The CSD register shows that it's permanent write protected due to lifespan or

Re: [PATCH 5/6] can: c_can: prepare to up the message objects number

2021-02-24 Thread kernel test robot
Hi Dario, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkl-can-next/testing] [also build test ERROR on linux/master net-next/master net/master linus/master next-20210225] [cannot apply to sparc-next/master v5.11] [If your patch is applied to the wrong git tree,

Re: [PATCH] wilc1000: write value to WILC_INTR2_ENABLE register

2021-02-24 Thread Kalle Valo
writes: > On 24/02/21 10:13 pm, Kalle Valo wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you >> know the content is safe >> >> Marcus Folkesson writes: >> >>> Write the value instead of reading it twice. >>> >>> Fixes: 5e63a598441a ("staging: wilc1000: added 'wilc_'

Re: [PATCH v14 02/11] x86: kdump: make the lower bound of crash kernel reservation consistent

2021-02-24 Thread Baoquan He
On 02/24/21 at 02:35pm, Catalin Marinas wrote: > On Sat, Jan 30, 2021 at 03:10:16PM +0800, Chen Zhou wrote: > > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > > index da769845597d..27470479e4a3 100644 > > --- a/arch/x86/kernel/setup.c > > +++ b/arch/x86/kernel/setup.c > > @@

[PATCH] kallsyms: make arch_get_kallsym static

2021-02-24 Thread Jiapeng Chong
Fix the following sparse warning: kernel/kallsyms.c:457:12: warning: symbol 'arch_get_kallsym' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 00/13] bss_ht struct cleanups

2021-02-24 Thread Dan Carpenter
Looks good. Reviewed-by: Dan Carpenter regards, dan carpenter

Re: [PATCH v3 01/11] drm/atomic: Pass the full state to planes async atomic check and update

2021-02-24 Thread Maxime Ripard
Hi, On Wed, Feb 24, 2021 at 12:33:45PM +0100, Thomas Zimmermann wrote: > Hi Maxime, > > for the whole series: > > Acked-by: Thomas Zimmermann Applied the whole series, thanks to everyone involved in the review, it's been a pretty daunting one :) Maxime signature.asc Description: PGP

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-24 Thread Finn Thain
On Wed, 24 Feb 2021, Song Bao Hua (Barry Song) wrote: > > Realtime requirement is definitely a true requirement on ARM Linux. > > I once talked/worked with some guys who were using ARM for realtime > system. > The feasible approaches include: > 1. Dual OS(RTOS + Linux): e.g. QNX+Linux

Re: linux-next: manual merge of the char-misc tree with the drivers-x86 tree

2021-02-24 Thread Greg KH
On Tue, Feb 23, 2021 at 02:28:33PM +1100, Stephen Rothwell wrote: > Hi all, > > On Mon, 15 Feb 2021 07:44:31 +1100 Stephen Rothwell > wrote: > > > > On Mon, 11 Jan 2021 13:08:51 +1100 Stephen Rothwell > > wrote: > > > > > > Today's linux-next merge of the char-misc tree got conflicts in: > >

drivers/net/wan/lmc/lmc_main.c:947 lmc_init_one() warn: 'dev' not released on lines: 903.

2021-02-24 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 29c395c77a9a514c5857c45ceae2665e9bd99ac7 commit: 62e69bc419772638369eff8ff81340bde8aceb61 net: wan/lmc: unregister device when no matching device is found config: i386-randconfig-m021-20210225 (attached as

[PATCH] selftests/timers: remove unneeded semicolon

2021-02-24 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/testing/selftests/timers/nsleep-lat.c:75:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/timers/nsleep-lat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] qtnfmac: remove meaningless goto statement and labels

2021-02-24 Thread samirweng1979
From: wengjianfeng some function's label meaningless, the label statement follows the goto statement, no other statements, so just remove it. Signed-off-by: wengjianfeng --- drivers/net/wireless/quantenna/qtnfmac/commands.c | 68 --- 1 file changed, 68 deletions(-) diff

[PATCH 5/5] iommu/vt-d: Avoid unnecessary cache flush in pasid entry teardown

2021-02-24 Thread Lu Baolu
When a present pasid entry is disassembled, all kinds of pasid related caches need to be flushed. But when a pasid entry is not being used (PRESENT bit not set), we don't need to do this. Check the PRESENT bit in intel_pasid_tear_down_entry() and avoid flushing caches if it's not set.

[PATCH 4/5] iommu/vt-d: Use user privilege for RID2PASID translation

2021-02-24 Thread Lu Baolu
When first-level page tables are used for IOVA translation, we use user privilege by setting U/S bit in the page table entry. This is to make it consistent with the second level translation, where the U/S enforcement is not available. Clear the SRE (Supervisor Request Enable) field in the pasid

[PATCH 2/5] iommu/vt-d: Remove WO permissions on second-level paging entries

2021-02-24 Thread Lu Baolu
When the first level page table is used for IOVA translation, it only supports Read-Only and Read-Write permissions. The Write-Only permission is not supported as the PRESENT bit (implying Read permission) should always set. When using second level, we still give separate permissions that allows

[PATCH 1/5] iommu/vt-d: Report the right page fault address

2021-02-24 Thread Lu Baolu
The Address field of the Page Request Descriptor only keeps bit [63:12] of the offending address. Convert it to a full address before reporting it to device drivers. Fixes: eb8d93ea3c1d3 ("iommu/vt-d: Report page request faults for guest SVA") Signed-off-by: Lu Baolu ---

[PATCH 3/5] iommu/vt-d: Invalidate PASID cache when root/context entry changed

2021-02-24 Thread Lu Baolu
When the Intel IOMMU is operating in the scalable mode, some information from the root and context table may be used to tag entries in the PASID cache. Software should invalidate the PASID-cache when changing root or context table entries. Suggested-by: Ashok Raj Fixes: 7373a8cc38197

[PATCH 0/5] iommu/vt-d: Several misc fixes

2021-02-24 Thread Lu Baolu
Hi Joerg, This series includes some misc fixes for the VT-d iommu driver. Please help to review and merge. Best regards, baolu Lu Baolu (5): iommu/vt-d: Report the right page fault address iommu/vt-d: Remove WO permissions on second-level paging entries iommu/vt-d: Invalidate PASID cache

Re: [PATCH 4.9.y 1/1] futex: Fix OWNER_DEAD fixup

2021-02-24 Thread Zhengyejian (Zetta)
On 2021/2/24 19:19, Lee Jones wrote: On Tue, 23 Feb 2021, Zheng Yejian wrote: From: Peter Zijlstra commit a97cb0e7b3f4c6297fd857055ae8e895f402f501 upstream. Both Geert and DaveJ reported that the recent futex commit: c1e2f0eaf015 ("futex: Avoid violating the 10th rule of futex")

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-02-24 Thread Nicolin Chen
On Tue, Feb 23, 2021 at 08:10:41AM +0300, Dmitry Osipenko wrote: > 23.02.2021 05:13, Nicolin Chen пишет: > > Hi Dmitry, > > > > On Sat, Feb 20, 2021 at 08:16:22AM +0300, Dmitry Osipenko wrote: > >> 19.02.2021 01:07, Nicolin Chen пишет: > >>> Commit 25938c73cd79 ("iommu/tegra-smmu: Rework

Re: [PATCH] Input: Add "Share" button to Microsoft Xbox One controller.

2021-02-24 Thread Dmitry Torokhov
On Wed, Feb 24, 2021 at 08:44:37PM -0800, Chris Ye wrote: > Hi Dmitry, > The latest Xbox One X series has this button, I can add a new > XTYPE_XBOXONE_X and only apply the change to the new type. Sounds good to me. Cameron, what do you think? > The controller supports bluetooth and the HID usage

[PATCH] drivers: input: joystick: fix Kconfig dependency on IIO_BUFFER

2021-02-24 Thread Julian Braha
When JOYSTICK_ADC is enabled, and IIO_BUFFER is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for IIO_BUFFER_CB Depends on [n]: IIO [=y] && IIO_BUFFER [=n] Selected by [y]: - JOYSTICK_ADC [=y] && !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && IIO

[PATCH v2] perf tools: perf_event_paranoid and kptr_restrict may crash on 'perf top'

2021-02-24 Thread Jackie Liu
After install the libelf-dev package and compiling perf, kptr_restrict=2 and perf_event_paranoid=3 will cause perf top to crash, because the value of /proc/kallsyms cannot be obtained, which leads to info->jited_ksyms == NULL. In order to solve this problem, Add a judgment before use.

[PATCH 1/1] iommu: Don't use lazy flush for untrusted device

2021-02-24 Thread Lu Baolu
The lazy IOTLB flushing setup leaves a time window, in which the device can still access some system memory, which has already been unmapped by the device driver. It's not suitable for untrusted devices. A malicious device might use this to attack the system by obtaining data that it shouldn't

[PATCH] s390/cpumf: remove unneeded semicolon

2021-02-24 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/s390/kernel/perf_cpum_cf.c:272:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/s390/kernel/perf_cpum_cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/perf_cpum_cf.c

Re: [RFC PATCH 0/4] KVM: arm64: Improve efficiency of stage2 page table

2021-02-24 Thread wangyanan (Y)
On 2021/2/25 1:20, Alexandru Elisei wrote: Hi, On 2/24/21 2:35 AM, wangyanan (Y) wrote: Hi Alex, On 2021/2/23 23:55, Alexandru Elisei wrote: Hi Yanan, I wanted to review the patches, but unfortunately I get an error when trying to apply the first patch in the series: Applying: KVM:

Re: [PATCH] Input: edt-ft5x06: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-24 Thread Dmitry Torokhov
Hi Yang, On Wed, Feb 24, 2021 at 04:43:26PM +0800, Yang Li wrote: > Fix the following coccicheck warning: > ./drivers/input/touchscreen/edt-ft5x06.c:697:0-23: WARNING: > debugfs_mode_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Thank you for the patch, however reading the coccinelle

Re: [PATCH 4.4 04/35] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-24 Thread Nobuhiro Iwamatsu
Hi, Sorry for the report after the release. On Mon, Feb 22, 2021 at 01:36:00PM +0100, Greg Kroah-Hartman wrote: > From: Emmanuel Grumbach > > [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] > > I hit a NULL pointer exception in this function when the > init flow went really bad.

[PATCH] perf metric: remove unneeded semicolon

2021-02-24 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/perf/tests/parse-metric.c:101:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/perf/tests/parse-metric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/parse-metric.c

Re: Why do kprobes and uprobes singlestep?

2021-02-24 Thread Andy Lutomirski
On Wed, Feb 24, 2021 at 6:22 PM Masami Hiramatsu wrote: > > On Wed, 24 Feb 2021 11:45:10 -0800 > Andy Lutomirski wrote: > > > On Tue, Feb 23, 2021 at 5:18 PM Masami Hiramatsu > > wrote: > > > > > > On Tue, 23 Feb 2021 15:24:19 -0800 > > > Andy Lutomirski wrote: > > > > > > > A while back, I

[RFC PATCH v2 7/7] KVM: selftests: Add a test for kvm page table code

2021-02-24 Thread Yanan Wang
This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() can cover the conditions where a single vcpu or multiple vcpus access guest pages within

[RFC PATCH v2 6/7] KVM: selftests: Adapt vm_userspace_mem_region_add to new helpers

2021-02-24 Thread Yanan Wang
With VM_MEM_SRC_ANONYMOUS_THP specified in vm_userspace_mem_region_add(), we have to get the transparent hugepage size for HVA alignment. With the new helpers, we can use get_backing_src_pagesz() to check whether THP is configured and then get the exact configured hugepage size. As different

[RFC PATCH v2 5/7] KVM: selftests: List all hugetlb src types specified with page sizes

2021-02-24 Thread Yanan Wang
With VM_MEM_SRC_ANONYMOUS_HUGETLB, we currently can only use system default hugetlb pages to back the testing guest memory. In order to add flexibility, now list all the known hugetlb backing src types with different page sizes, so that we can specify use of hugetlb pages of the exact granularity

[RFC PATCH v2 2/7] KVM: selftests: Use flag CLOCK_MONOTONIC_RAW for timing

2021-02-24 Thread Yanan Wang
In addition to function of CLOCK_MONOTONIC, flag CLOCK_MONOTONIC_RAW can also shield possiable impact of NTP, which can provide more robustness. Signed-off-by: Yanan Wang --- tools/testing/selftests/kvm/demand_paging_test.c | 8 tools/testing/selftests/kvm/dirty_log_perf_test.c | 14

[RFC PATCH v2 3/7] KVM: selftests: Make a generic helper to get vm guest mode strings

2021-02-24 Thread Yanan Wang
For generality and conciseness, make an API which can be used in all kvm libs and selftests to get vm guest mode strings. And the index i is checked in the API in case of possiable faults. Signed-off-by: Yanan Wang --- .../testing/selftests/kvm/include/kvm_util.h | 4 +--

[RFC PATCH v2 1/7] tools include: sync head files of mmap flag encodings about hugetlb

2021-02-24 Thread Yanan Wang
This patch syncs contents of tools/include/asm-generic/hugetlb_encode.h and include/uapi/asm-generic/hugetlb_encode.h. Arch powerpc supports 16KB hugepages and ARM64 supports 32MB/512MB hugepages. The corresponding mmap flags have already been added in include/uapi/asm-generic/hugetlb_encode.h,

[RFC PATCH v2 4/7] KVM: selftests: Add a helper to get system configured THP page size

2021-02-24 Thread Yanan Wang
If we want to have some tests about transparent hugepages, the system configured THP hugepage size should better be known by the tests, which can be used for kinds of alignment or guest memory accessing of vcpus... So it makes sense to add a helper to get the transparent hugepage size. With

[RFC PATCH v2 0/7] Some improvement and a new test for kvm page table

2021-02-24 Thread Yanan Wang
Hi, This v2 series can mainly include two parts. Based on kvm queue branch: https://git.kernel.org/pub/scm/virt/kvm/kvm.git/log/?h=queue Links of v1: https://lore.kernel.org/lkml/20210208090841.333724-1-wangyana...@huawei.com/ In the first part, all the known hugetlb backing src types specified

Re: [PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-24 Thread Badhri Jagan Sridharan
On Fri, Feb 19, 2021 at 7:56 AM Guenter Roeck wrote: > > On 2/19/21 1:04 AM, Badhri Jagan Sridharan wrote: > > When vbus auto discharge is enabled, TCPM can sometimes be faster than > > the TCPC i.e. TCPM can go ahead and move the port to unattached state > > (involves disabling vbus auto

Re: [PATCH v2] drm/nouveau/pmu: fix timeout on GP108

2021-02-24 Thread Diego Viola
On Thu, Feb 25, 2021 at 2:22 AM Diego Viola wrote: > > Hi Ben, > > I can confirm that your last two patches[0][1] fix the timeout issues > (those from a normal boot and from suspend/resume). > > [0] > https://github.com/skeggsb/linux/commit/90224a17437b1f39dbecbb385567c1fce958f992 > [1] >

[PATCH] [v2] Input: Add "Share" button to Microsoft Xbox One controller.

2021-02-24 Thread Chris Ye
Add "Share" button input capability and input event mapping for Microsoft Xbox One controller. Fixed Microsoft Xbox One controller share button not working under USB connection. Signed-off-by: Chris Ye --- drivers/input/joystick/xpad.c | 9 - 1 file changed, 8 insertions(+), 1

Re: [PATCH] usb: chipidea: tegra: fix flexible_array.cocci warnings

2021-02-24 Thread Dmitry Osipenko
13.02.2021 23:09, Julia Lawall пишет: > From: kernel test robot > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > Generated by: scripts/coccinelle/misc/flexible_array.cocci > > Fixes:

Re: [PATCH v2] drm/nouveau/pmu: fix timeout on GP108

2021-02-24 Thread Diego Viola
Hi Ben, I can confirm that your last two patches[0][1] fix the timeout issues (those from a normal boot and from suspend/resume). [0] https://github.com/skeggsb/linux/commit/90224a17437b1f39dbecbb385567c1fce958f992 [1]

Re: [PATCH] mm: test page->flags directly in page_lru()

2021-02-24 Thread Yu Zhao
On Thu, Feb 25, 2021 at 03:55:53AM +, Matthew Wilcox wrote: > On Wed, Feb 24, 2021 at 04:50:39PM -0700, Yu Zhao wrote: > > On Wed, Feb 24, 2021 at 10:48:46PM +, Matthew Wilcox wrote: > > > On Wed, Feb 24, 2021 at 03:34:16PM -0700, Yu Zhao wrote: > > > > > If only somebody were working on a

[PATCH] drivers: pinctrl: qcom

2021-02-24 Thread Julian Braha
When PINCTRL_MSM is enabled, and GPIOLIB is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for GPIOLIB_IRQCHIP Depends on [n]: GPIOLIB [=n] Selected by [y]: - PINCTRL_MSM [=y] && PINCTRL [=y] && (ARCH_QCOM || COMPILE_TEST [=y]) This is because

Re: [PATCH] wilc1000: write value to WILC_INTR2_ENABLE register

2021-02-24 Thread Ajay.Kathat
On 24/02/21 10:13 pm, Kalle Valo wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Marcus Folkesson writes: > >> Write the value instead of reading it twice. >> >> Fixes: 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for

Re: [RFC 1/2] cgroup: sev: Add misc cgroup controller

2021-02-24 Thread Vipin Sharma
On Tue, Feb 23, 2021 at 07:24:55PM +0100, Michal Koutný wrote: > On Thu, Feb 18, 2021 at 11:55:48AM -0800, Vipin Sharma > wrote: > > --- a/arch/x86/kvm/svm/sev.c > > +++ b/arch/x86/kvm/svm/sev.c > > [...] > > +#ifndef CONFIG_KVM_AMD_SEV > > +/* > > + * When this config is not defined, SEV

Re: [PATCH] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute

2021-02-24 Thread Kees Cook
On Thu, Feb 11, 2021 at 12:42:58PM -0700, Nathan Chancellor wrote: > fw_cfg_showrev() is called by an indirect call in kobj_attr_show(), > which violates clang's CFI checking because fw_cfg_showrev()'s second > parameter is 'struct attribute', whereas the ->show() member of 'struct >

[PATCH] mm/filemap: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Delete whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/filemap.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 6ff2a3f..20f27b6 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -3111,7

[PATCH] mm/page_alloc: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ef5070f..c7c4991 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@

[PATCH] mm/shmem: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 1b254fb..e5fb90c 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3559,7 +3559,7 @@ static int

Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-02-24 Thread Aili Yao
On Tue, 23 Feb 2021 08:42:59 -0800 "Luck, Tony" wrote: > On Tue, Feb 23, 2021 at 07:33:46AM -0800, Andy Lutomirski wrote: > > > > > On Feb 23, 2021, at 4:44 AM, Aili Yao wrote: > > > > > > On Fri, 5 Feb 2021 17:01:35 +0800 > > > Aili Yao wrote: > > > > > >> When one page is already

[PATCH] mm/oom_kill: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index c9a33ff..dd12dad7 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -994,7 +994,7

Re: [PATCH] Input: Add "Share" button to Microsoft Xbox One controller.

2021-02-24 Thread Chris Ye
Hi Dmitry, The latest Xbox One X series has this button, I can add a new XTYPE_XBOXONE_X and only apply the change to the new type. The controller supports bluetooth and the HID usage for this button is consumer 0xB2: 0x05, 0x0C,// Usage Page (Consumer) 0x0A, 0xB2, 0x00, // Usage

[PATCH] mm/compaction: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 190ccda..bd821e1 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@

Re: [PATCH V4 2/2] cpufreq: cppc: Add support for frequency invariance

2021-02-24 Thread Viresh Kumar
On 22-02-21, 16:57, Rafael J. Wysocki wrote: > On Mon, Feb 22, 2021 at 12:20 PM Viresh Kumar wrote: > Even though the driver is located in drivers/cpufreq/ CPPC is part of > ACPI and so a CC to linux-acpi is missing. I just used get-maintainers, perhaps we should add an entry for this in

linux-next: Tree for Feb 25

2021-02-24 Thread Stephen Rothwell
Hi all, Please do not add any changes destined for v5.13 to your linux-next included branches until after v5.12-rc1 has been released. Changes since 20210224: Non-merge commits (relative to Linus' tree): 1426 1399 files changed, 46136 insertions(+), 17159 deletions

[PATCH] drivers: tty: serial: fix Kconfig dependency on SERIAL_CORE

2021-02-24 Thread Julian Braha
When SERIAL_IMX_EARLYCON is enabled, and SERIAL_CORE is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for SERIAL_EARLYCON Depends on [n]: TTY [=y] && HAS_IOMEM [=y] && SERIAL_CORE [=n] Selected by [y]: - SERIAL_IMX_EARLYCON [=y] && TTY [=y] &&

[PATCH v1 1/1] Kernel Config to make randomize_va_space read-only.

2021-02-24 Thread Lan Zheng (lanzheng)
From ba2ec52f170a8e69d6c44238bb578f9518a7e3b7 Mon Sep 17 00:00:00 2001 From: lanzheng Date: Tue, 23 Feb 2021 22:49:34 -0500 Subject: [PATCH] This patch adds a kernel build config knob that disallows changes to the sysctl variable randomize_va_space.It makes harder for attacker to disable ASLR

[PATCH] mm/zswap: switch from strlcpy to strscpy

2021-02-24 Thread Zhiyuan Dai
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. Signed-off-by: Zhiyuan Dai ---

Re: [virtio-dev] Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-24 Thread Jason Wang
On 2021/2/24 7:12 下午, Cornelia Huck wrote: On Wed, 24 Feb 2021 17:29:07 +0800 Jason Wang wrote: On 2021/2/23 6:58 下午, Cornelia Huck wrote: On Tue, 23 Feb 2021 18:31:07 +0800 Jason Wang wrote: On 2021/2/23 6:04 下午, Cornelia Huck wrote: On Tue, 23 Feb 2021 17:46:20 +0800 Jason Wang

[PATCH] mm/vmscan: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index b1b574a..333c43b 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3872,7 +3872,7 @@

Re: [PATCH] Input: Add "Share" button to Microsoft Xbox One controller.

2021-02-24 Thread Dmitry Torokhov
Hi Chris, On Thu, Feb 25, 2021 at 04:00:32AM +, Chris Ye wrote: > Add "Share" button input capability and input event mapping for > Microsoft Xbox One controller. > Fixed Microsoft Xbox One controller share button not working under USB > connection. > > Signed-off-by: Chris Ye > --- >

[PATCH] input: touchscreen: Remove unneeded variable: "rc"

2021-02-24 Thread dingsenjie
From: dingsenjie Remove unneeded "rc" variable in the cyttsp4_core.c. Signed-off-by: dingsenjie --- drivers/input/touchscreen/cyttsp4_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp4_core.c

[PATCH] mm/sparse: minor coding style tweaks

2021-02-24 Thread Zhiyuan Dai
Add whitespace to fix coding style issues, improve code reading. Signed-off-by: Zhiyuan Dai --- mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index 7bd23f9..be66a62 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -257,7 +257,7 @@ static

[PATCH v2 3/3] mtd: rawnand: qcom: Add support for secure regions in NAND memory

2021-02-24 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these

[PATCH v2 2/3] dt-bindings: mtd: Add a property to declare secure regions in NAND chips

2021-02-24 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these

[PATCH v2 1/3] dt-bindings: mtd: Convert Qcom NANDc binding to YAML

2021-02-24 Thread Manivannan Sadhasivam
Convert Qcom NANDc devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/mtd/qcom,nandc.yaml | 196 ++ .../devicetree/bindings/mtd/qcom_nandc.txt| 142 - 2 files changed, 196 insertions(+), 142 deletions(-) create mode

[PATCH v2 0/3] Add support for secure regions in Qcom NANDc driver

2021-02-24 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these

  1   2   3   4   5   6   7   8   9   10   >