Re: [PATCH v2] Documentation: kunit: Update Kconfig parts for KUNIT's module support

2020-10-19 Thread SeongJae Park
I just realized I missed adding Marco Elver as a recipient, so adding him. Sorry, Marco. Thanks, SeongJae Park On Tue, 13 Oct 2020 08:37:43 +0200 SeongJae Park wrote: > From: SeongJae Park > > If 'CONFIG_KUNIT=m', letting kunit tests that do not support loadable > module build depends on 'KU

drivers/staging/media/atomisp/pci/runtime/isys/src/ibuf_ctrl_rmgr.c:34:6: warning: no previous prototype for function 'ia_css_isys_ibuf_rmgr_init'

2020-10-19 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 270315b8235e3d10c2e360cff56c2f9e0915a252 commit: 5b552b198c2557295becd471bff53bb520fefee5 media: atomisp: re-enable warnings again date: 4 months ago config: x86_64-randconfig-a003-20201020 (attached as .c

Re: [PATCH 2/2] kunit: tool: Mark 'kunittest_config' as constant again

2020-10-19 Thread SeongJae Park
ping On Mon, 12 Oct 2020 12:26:21 +0200 SeongJae Park wrote: > From: SeongJae Park > > 'kunit_kernel.kunittest_config' was constant at first, and therefore it > used UPPER_SNAKE_CASE naming convention that usually means it is > constant in Python world. But, commit e3212513a8f0 ("kunit: Creat

答复: [PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-19 Thread 冯锐
Hi All, A month has passed, do I need to modify these patches? Thanks > > From: Rui Feng > > RTS5261 support legacy SD mode and SD Express mode. > In SD7.x, SD association introduce SD Express as a new mode. > This patch makes RTS5261 support SD Express mode. > > Signed-off-by: Rui Feng > -

Re: [PATCH v2] fat: Add KUnit tests for checksums and timestamps

2020-10-19 Thread OGAWA Hirofumi
David Gow writes: > diff --git a/fs/fat/misc.c b/fs/fat/misc.c > index f1b2a1fc2a6a..445ad3542e74 100644 > --- a/fs/fat/misc.c > +++ b/fs/fat/misc.c > @@ -229,6 +229,7 @@ void fat_time_fat2unix(struct msdos_sb_info *sbi, struct > timespec64 *ts, > ts->tv_nsec = 0; > } > } >

[RFC PATCH 2/2] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification

2020-10-19 Thread Lee, Chun-Yi
This patch adds the logic for checking the CodeSigning extended key usage extenstion when verifying signature of kernel module or kexec PE binary in PKCS#7. Signed-off-by: "Lee, Chun-Yi" --- certs/system_keyring.c | 2 +- crypto/asymmetric_keys/Kconfig | 10 ++ crypt

[RFC PATCH 1/2] X.509: Add CodeSigning extended key usage parsing

2020-10-19 Thread Lee, Chun-Yi
This patch adds the logic for parsing the CodeSign extended key usage extension in X.509. The parsing result will be set to the eku flag which is carried by public key. It can be used in the PKCS#7 verification. Signed-off-by: "Lee, Chun-Yi" --- crypto/asymmetric_keys/x509_cert_parser.c | 24 +++

[RFC PATCH 0/2] Check codeSigning extended key usage extension

2020-10-19 Thread Lee, Chun-Yi
NIAP PP_OS certification requests that the OS shall validate the CodeSigning extended key usage extension field for integrity verifiction of exectable code: https://www.niap-ccevs.org/MMO/PP/-442-/ FIA_X509_EXT.1.1 This patchset adds the logic for parsing the codeSigning EKU extension

カナダオファー

2020-10-19 Thread FM
ご挨拶、 私の名前は、カナダ有数の暗号通貨交換プラットフォームの1つである最高コンプライアンス責任者であるFelixです。 これは私からあなたへの秘密の秘密のメッセージであり、そのように扱われることを要求します。 故人の口座保有者が所有する清算されたBTC口座から生じた900万米ドルを超える資金に関する緊急事項(取引)についてご連絡いたします 。 私の計画と、私があなたの返事を受け取り、あなたの信頼を得た後、私が最初にあなたに連絡することを選んだ理由をあなたに知らせます。 たくさんの感謝とあなたの返事を楽しみにしています。 フェリックス。

Re: general protection fault in __switch_to_asm

2020-10-19 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 033724d6864245a11f8e04c066002e6ad22b3fd0 Author: Tetsuo Handa Date: Wed Jul 15 01:51:02 2020 + fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17f3

Re: [PATCH v5 1/5] arm64: Add framework to turn IPI as NMI

2020-10-19 Thread Sumit Garg
On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > > On 2020-10-14 12:12, Sumit Garg wrote: > > Introduce framework to turn an IPI as NMI using pseudo NMIs. In case a > > particular platform doesn't support pseudo NMIs, then request IPI as a > > regular IRQ. > > > > The main motivation for this f

Re: [PATCH v5 2/2] leds: mt6360: Add LED driver for MT6360

2020-10-19 Thread Gene Chen
Jacek Anaszewski 於 2020年10月9日 週五 上午5:51寫道: > > Hi Gene, > > On 10/7/20 3:42 AM, Gene Chen wrote: > > 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. > >

Re: [PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name

2020-10-19 Thread Macpaul Lin
On Sat, 2020-07-18 at 10:45 +0800, Macpaul Lin wrote: > From: Eddie Hung > There is a use-after-free issue, if access udc_name > in function gadget_dev_desc_UDC_store after another context > free udc_name in function unregister_gadget. > > Context 1: > gadget_dev_desc_UDC_store()->unregister_gadg

Re: [PATCH] venus: vdec: return parsed crop information from stream

2020-10-19 Thread Alexandre Courbot
On Mon, Oct 19, 2020 at 7:19 AM Fritz Koenig wrote: > > It looks like only h.264 streams are populating the event.input_crop > struct when receiving the HFI_INDEX_EXTRADATA_INPUT_CROP message in > event_seq_changed(). vp8/vp9 streams end up with the struct filled > with 0. Indeed. :( I guess we

Re: [PATCH v4 0/4] can: add support for ETAS ES58X CAN USB

2020-10-19 Thread Marc Kleine-Budde
On 10/16/20 7:13 PM, Vincent Mailhol wrote: > The purpose of this patch series is to introduce a new CAN USB > driver to support ETAS USB interfaces (ES58X series). > > During development, issues in drivers/net/can/dev.c were discovered, > the fix for those issues are included in this patch series

Re: [PATCH] can: mcp251xfd: fix semicolon.cocci warnings

2020-10-19 Thread Marc Kleine-Budde
On 10/19/20 2:08 PM, kernel test robot wrote: > From: kernel test robot > > drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c:176:2-3: Unneeded semicolon > > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci > > Fixes: f4f77366f21d ("can: mcp251xfd: rename

[PATCH net] net: hdlc_raw_eth: Clear the IFF_TX_SKB_SHARING flag after calling ether_setup

2020-10-19 Thread Xie He
This driver calls ether_setup to set up the network device. The ether_setup function would add the IFF_TX_SKB_SHARING flag to the device. This flag indicates that it is safe to transmit shared skbs to the device. However, this is not true. This driver may pad the frame (in eth_tx) before transmiss

Re: [PATCH 2/2] KVM: not link irqfd with a fake IRQ bypass producer

2020-10-19 Thread Jason Wang
On 2020/10/19 下午5:06, Zhenzhong Duan wrote: In case failure to setup Post interrupt for an IRQ, it make no sense to assign irqfd->producer to the producer. This change makes code more robust. It's better to describe what issue we will get without this patch. Thanks Signed-off-by: Zhenz

[PATCH v2] dmaengine: pl330: Remove unreachable code

2020-10-19 Thread Surendran K
_setup_req(..) never returns negative value. Hence the condition ret < 0 is never met Signed-off-by: Surendran K --- Commit tag is changed drivers/dma/pl330.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index e9f0101d92fa..8355586c9788 100644 -

[PATCH 2/2] fs:regfs: add panic notifier callback for saving regs

2020-10-19 Thread Zou Cao
register panic notifier callback for saveing regs, add a module param regfs_panic to enable the show reg info when panic. Signed-off-by: Zou Cao --- fs/regfs/inode.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/fs/regfs/inode.c b/fs/

[PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-19 Thread Zou Cao
register filesystem is mapping the register into file dentry, it will use the io readio to get the register val. DBT file is use to decript the register tree, you can use it as follow: mount -t regfs -o dtb=test.dtb none /mnt test.dts: / { compatible = "hisilicon,

De Mr Armand AGBO(Demande de Partenariat / Partnership Request)

2020-10-19 Thread Mr Armand AGBO
De Mr Armand AGBO Je suis Mr Armand AGBO de nationalitй bйninoise, gestionnaire de compte dans une institution bancaire. Je vous prie de m'excuser pour cette intrusion inattendue de ma part car c'est suite а une recherche via internet que j'ai trouvй votre contact et aprиs avoir parcouru votre

Re: [PATCH 1/2] KVM: not register a IRQ bypass producer if unsupported or disabled

2020-10-19 Thread Jason Wang
On 2020/10/19 下午5:06, Zhenzhong Duan wrote: If Post interrupt is disabled due to hardware limit or forcely disabled by "intremap=nopost" parameter, return -EINVAL so that the legacy mode IRQ isn't registered as IRQ bypass producer. Is there any side effect if it was still registered? Wit

Re: [PATCH 1/4] ftgmac100: Fix race issue on TX descriptor[0]

2020-10-19 Thread Benjamin Herrenschmidt
On Tue, 2020-10-20 at 04:13 +, Joel Stanley wrote: > On Mon, 19 Oct 2020 at 23:20, Benjamin Herrenschmidt > wrote: > > > > On Mon, 2020-10-19 at 16:57 +0800, Dylan Hung wrote: > > > These rules must be followed when accessing the TX descriptor: > > > > > > 1. A TX descriptor is "cleanable" o

[PATCH] power: suspend: Add sleep timer and timeout handler

2020-10-19 Thread Joseph Jang
Add sleep timer and timeout handler to prevent device stuck during suspend/ resume process. The timeout handler will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SLEEP_TIMER_TIMEOUT. Signed-of

[RFCv2 03/16] x86/kvm: Make DMA pages shared

2020-10-19 Thread Kirill A. Shutemov
Make force_dma_unencrypted() return true for KVM to get DMA pages mapped as shared. __set_memory_enc_dec() now informs the host via hypercall if the state of the page has changed from shared to private or back. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig | 1 + arch/x

[PATCH v2 0/2] watchdog: f71808e_wdt: migrate to new kernel API

2020-10-19 Thread Ahmad Fatoum
This series migrates the driver to use first the driver model, then the new kernel watchdog API. I tested it on a f81866. v1 had a wrong title (f71808e_wdt: migrate to kernel). It's available here: https://lore.kernel.org/linux-watchdog/20200611191750.28096-1-a.fat...@pengutronix.de/ v1 -> v2:

[PATCH v2 1/2] watchdog: f71808e_wdt: refactor to platform device/driver pair

2020-10-19 Thread Ahmad Fatoum
Driver so far wasn't ported to the driver model and set up its miscdevice out of the init after probing the I/O ports for a watchdog with correct vendor and device revision. Keep the device detection part at init time, but move watchdog setup to a platform driver probe function. While at it, refa

[RFCv2 04/16] x86/kvm: Use bounce buffers for KVM memory protection

2020-10-19 Thread Kirill A. Shutemov
Mirror SEV, use SWIOTLB always if KVM memory protection is enabled. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig | 1 + arch/x86/kernel/kvm.c| 2 ++ arch/x86/kernel/pci-swiotlb.c| 3 ++- arch/x86/mm/mem_encrypt.c| 21 - arc

[RFCv2 05/16] x86/kvm: Make VirtIO use DMA API in KVM guest

2020-10-19 Thread Kirill A. Shutemov
VirtIO for KVM is a primary way to provide IO. All memory that used for communication with the host has to be marked as shared. The easiest way to archive that is to use DMA API that already knows how to deal with shared memory. Signed-off-by: Kirill A. Shutemov --- drivers/virtio/virtio_ring.c

[RFCv2 06/16] x86/kvmclock: Share hvclock memory with the host

2020-10-19 Thread Kirill A. Shutemov
hvclock is shared between the guest and the hypervisor. It has to be accessible by host. Signed-off-by: Kirill A. Shutemov --- arch/x86/kernel/kvmclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c index 34b18f6eeb2c

[RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-19 Thread Kirill A. Shutemov
New helpers copy_from_guest()/copy_to_guest() to be used if KVM memory protection feature is enabled. Signed-off-by: Kirill A. Shutemov --- include/linux/kvm_host.h | 4 ++ virt/kvm/kvm_main.c | 90 +++- 2 files changed, 75 insertions(+), 19 deletions(-)

[PATCH v2 2/2] watchdog: f71808e_wdt: migrate to new kernel watchdog API

2020-10-19 Thread Ahmad Fatoum
Migrating the driver lets us drop the watchdog misc device boilerplate and reduces size by 280~ lines. It also brings us support for new functionality like CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED. While at it, also rename all local identifiers starting with watchdog_ to start with easier to tell apart

[RFCv2 02/16] x86/kvm: Introduce KVM memory protection feature

2020-10-19 Thread Kirill A. Shutemov
Provide basic helpers, KVM_FEATURE, CPUID flag and a hypercall. Host side doesn't provide the feature yet, so it is a dead code for now. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/kvm_para.h | 5 + arch/x86/include/uapi/asm/

[RFCv2 13/16] KVM: Rework copy_to/from_guest() to avoid direct mapping

2020-10-19 Thread Kirill A. Shutemov
We are going unmap guest pages from direct mapping and cannot rely on it for guest memory access. Use temporary kmap_atomic()-style mapping to access guest memory. Signed-off-by: Kirill A. Shutemov --- virt/kvm/kvm_main.c | 27 ++- virt/lib/mem_protected.c | 101 +++

[RFCv2 07/16] x86/realmode: Share trampoline area if KVM memory protection enabled

2020-10-19 Thread Kirill A. Shutemov
If KVM memory protection is active, the trampoline area will need to be in shared memory. Signed-off-by: Kirill A. Shutemov --- arch/x86/realmode/init.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c index 1ed1208931

[RFCv2 10/16] KVM: x86: Use GUP for page walk instead of __get_user()

2020-10-19 Thread Kirill A. Shutemov
The user mapping doesn't have the page mapping for protected memory. Signed-off-by: Kirill A. Shutemov --- arch/x86/kvm/mmu/paging_tmpl.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/mmu/paging_tmpl.h b/arch/x86/kvm/mmu/paging_tmpl.h index 4dd6b1e5b

[RFCv2 09/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-10-19 Thread Kirill A. Shutemov
The new VMA flag that indicate a VMA that is not accessible to userspace but usable by kernel with GUP if FOLL_KVM is specified. The FOLL_KVM is only used in the KVM code. The code has to know how to deal with such pages. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 8

[RFCv2 15/16] KVM: Unmap protected pages from direct mapping

2020-10-19 Thread Kirill A. Shutemov
If the protected memory feature enabled, unmap guest memory from kernel's direct mappings. Migration and KSM is disabled for protected memory as it would require a special treatment. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 3 +++ mm/huge_memory.c | 8

[RFCv2 14/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()

2020-10-19 Thread Kirill A. Shutemov
We cannot access protected pages directly. Use ioremap() to create a temporary mapping of the page. The mapping is destroyed on __kvm_unmap_gfn(). The new interface gfn_to_pfn_memslot_protected() is used to detect if the page is protected. ioremap_cache_force() is a hack to bypass IORES_MAP_SYSTE

[RFCv2 12/16] KVM: x86: Enabled protected memory extension

2020-10-19 Thread Kirill A. Shutemov
Wire up hypercalls for the feature and define VM_KVM_PROTECTED. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig | 1 + arch/x86/kvm/Kconfig | 1 + arch/x86/kvm/cpuid.c | 3 ++- arch/x86/kvm/x86.c | 9 + include/linux/mm.h | 6 ++ 5 files changed, 19 insertions(+), 1 de

[RFCv2 01/16] x86/mm: Move force_dma_unencrypted() to common code

2020-10-19 Thread Kirill A. Shutemov
force_dma_unencrypted() has to return true for KVM guest with the memory protected enabled. Move it out of AMD SME code. Introduce new config option X86_MEM_ENCRYPT_COMMON that has to be selected by all x86 memory encryption features. This is preparation for the following patches. Signed-off-by:

[RFCv2 00/16] KVM protected memory extension

2020-10-19 Thread Kirill A. Shutemov
== Background / Problem == There are a number of hardware features (MKTME, SEV) which protect guest memory from some unauthorized host access. The patchset proposes a purely software feature that mitigates some of the same host-side read-only attacks. == What does this set mitigate? == - Host

[RFCv2 11/16] KVM: Protected memory extension

2020-10-19 Thread Kirill A. Shutemov
Add infrastructure that handles protected memory extension. Arch-specific code has to provide hypercalls and define non-zero VM_KVM_PROTECTED. Signed-off-by: Kirill A. Shutemov --- include/linux/kvm_host.h | 4 +++ virt/kvm/Kconfig | 3 ++ virt/kvm/kvm_main.c | 68 +++

[RFCv2 16/16] mm: Do not use zero page for VM_KVM_PROTECTED VMAs

2020-10-19 Thread Kirill A. Shutemov
Presence of zero pages in the mapping would disclose content of the mapping. Don't use them if KVM memory protection is enabled. Signed-off-by: Kirill A. Shutemov --- arch/s390/include/asm/pgtable.h | 2 +- include/linux/mm.h | 4 ++-- mm/huge_memory.c| 3 +-- mm/mem

Re: [Industrypack-devel] [PATCH] ipack: iopctal: remove unneeded break

2020-10-19 Thread Samuel Iglesias Gonsálvez
Hi Tom, Thanks for the patch! Patch is, Acked-by: Samuel Iglesias Gonsalvez Greg, Would you mind picking this patch through your char-misc tree? Thanks! Sam On Mon, 2020-10-19 at 12:32 -0700, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return >

[tip:perf/urgent] BUILD SUCCESS f3d301c1f2f5676465cdf3259737ea19cc82731f

2020-10-19 Thread kernel test robot
mips allyesconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201019 x86_64 randconfig-a002-20201019 x86_64

Re: slowdown due to reader-owned rwsem time-based spinning

2020-10-19 Thread Julia Lawall
On Mon, 19 Oct 2020, Waiman Long wrote: > On 10/19/20 3:48 PM, Julia Lawall wrote: > > > > On Mon, 19 Oct 2020, Waiman Long wrote: > > > > > On 10/15/20 7:38 AM, Julia Lawall wrote: > > > > Hello, > > > > > > > > Phoenix is an implementation of map reduce: > > > > > > > > https://github.com/koz

Re: [PATCH v9 03/15] dt-bindings: usb: Maxim type-c controller device tree binding document

2020-10-19 Thread Badhri Jagan Sridharan
Hi Rob, Apologies for the delay. Was coordinating care for my parents who caught the COVID bug. Thanks, Badhri On Tue, Oct 13, 2020 at 6:50 AM Rob Herring wrote: > > On Tue, Oct 13, 2020 at 8:43 AM Rob Herring wrote: > > > > On Wed, Oct 7, 2020 at 7:43 PM Badhri Jagan Sridharan > > wrote: >

Re: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-19 Thread Benjamin Herrenschmidt
On Mon, 2020-10-19 at 19:57 -0700, Jakub Kicinski wrote: > > I suspect the problem is that the HW (and yes this would be a HW bug) > > doesn't order the CPU -> memory and the CPU -> MMIO path. > > > > What I think happens is that the store to txde0 is potentially still in > > a buffer somewhere on

Re: [PATCH v4 11/15] ASoC: dt-bindings: tegra: Add json-schema for Tegra audio graph card

2020-10-19 Thread Sameer Pujar
Add YAML schema for Tegra audio graph sound card DT bindings. It uses the same DT bindings provided by generic audio graph driver. Along with this few standard clock DT bindings are added which are specifically required for Tegra audio. Signed-off-by: Sameer Pujar --- .../sound/nvidia,tegra

block, bfq: lockdep circular locking dependency gripe

2020-10-19 Thread Mike Galbraith
[ 1917.361401] == [ 1917.361406] WARNING: possible circular locking dependency detected [ 1917.361413] 5.9.0.g7cf726a-master #2 Tainted: G S E [ 1917.361417] -- [ 1917.361422] kworker/u1

RE: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-19 Thread Dylan Hung
> -Original Message- > From: Jakub Kicinski [mailto:k...@kernel.org] > Sent: Tuesday, October 20, 2020 3:01 AM > To: Joel Stanley > Cc: Dylan Hung ; Benjamin Herrenschmidt > ; David S . Miller ; > net...@vger.kernel.org; Linux Kernel Mailing List > ; Po-Yu Chuang ; > linux-aspeed ; OpenBMC

Re: [PATCH net v2] Revert "virtio-net: ethtool configurable RXCSUM"

2020-10-19 Thread Jason Wang
On 2020/10/20 上午1:32, Michael S. Tsirkin wrote: This reverts commit 3618ad2a7c0e78e4258386394d5d5f92a3dbccf8. When the device does not have a control vq (e.g. when using a version of QEMU based on upstream v0.10 or older, or when specifying ctrl_vq=off,ctrl_rx=off,ctrl_vlan=off,ctrl_rx_extra=o

Re: [PATCH v6 0/2] perf: Make tsc testing as a common testing case

2020-10-19 Thread Jiri Olsa
On Mon, Oct 19, 2020 at 06:02:34PM +0800, Leo Yan wrote: > This patch set is to move tsc testing from x86 specific to common > testing case. Since Arnaldo found the building failure for patch set > v4 [1], the first four patches have been merged but the last two patches > were left out; this patch

[PATCH] [v3] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

2020-10-19 Thread Dinghao Liu
When clk_hw_register_fixed_rate_with_accuracy() fails, clk_data should be freed. It's the same for the subsequent two error paths, but we should also unregister the already registered clocks in them. Signed-off-by: Dinghao Liu --- Changelog: v2: - Unregister the already registered clocks on fai

Re: KASAN: unknown-crash Read in do_exit

2020-10-19 Thread Dmitry Vyukov
On Mon, Oct 19, 2020 at 11:38 PM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit a49145acfb975d921464b84fe00279f99827d816 > Author: George Kennedy > Date: Tue Jul 7 19:26:03 2020 + > > fbmem: add margin check to fb_check_caps() > > bisection log: https://sy

[PATCH] PM / devfreq: Remove redundant governor_name from struct devfreq

2020-10-19 Thread Chanwoo Choi
The devfreq structure instance contains the governor_name and a governor instance. When need to show the governor name, better to use the name of devfreq_governor structure. So, governor_name variable in struct devfreq is a redundant and unneeded variable. Remove the redundant governor_name of stru

Re: [PATCH] perf test: Implement skip_reason callback for watchpoint tests

2020-10-19 Thread Namhyung Kim
Hello, On Fri, Oct 16, 2020 at 10:17 PM Tommi Rantala wrote: > > Currently reason for skipping the read only watchpoint test is only seen > when running in verbose mode: > > $ perf test watchpoint > 23: Watchpoint: > 23.1: Read Only Watchpoint

Re: [PATCH] perf mem2node: Improve warning if detected no memory nodes

2020-10-19 Thread Jiri Olsa
On Mon, Oct 19, 2020 at 08:36:13AM +0800, Leo Yan wrote: > Some archs (e.g. x86 and Arm64) don't enable the configuration > CONFIG_MEMORY_HOTPLUG by default, if this configuration is not enabled > when build the kernel image, the SysFS for memory nodes will be missed. > This results in perf tool ha

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-19 Thread Richard Palethorpe
Hello Roman, Roman Gushchin writes: > On Fri, Oct 16, 2020 at 07:15:02PM +0200, Michal Koutny wrote: >> On Fri, Oct 16, 2020 at 10:53:08AM -0400, Johannes Weiner >> wrote: >> > The central try_charge() function charges recursively all the way up >> > to and including the root. >> Except for us

Re: [PATCH v4 10/15] ASoC: dt-bindings: tegra: Add graph bindings

2020-10-19 Thread Sameer Pujar
Add device tree binding properties of generic graph to ASoC component devices. This allows to define audio ports out of these components or DAIs and audio graph based sound card can be realised with this. Signed-off-by: Sameer Pujar --- Documentation/devicetree/bindings/sound/nvidia,tegra18

RE: [PATCH v2 0/5] Remove LPC register partitioning

2020-10-19 Thread ChiaWei Wang
Hi All, Do you have any comment on the v2 changes? Thanks. Chiawei > -Original Message- > From: ChiaWei Wang > Sent: Monday, October 5, 2020 4:28 PM > To: lee.jo...@linaro.org; robh...@kernel.org; j...@jms.id.au; > and...@aj.id.au; miny...@acm.org; a...@arndb.de; > gre...@linuxfoundatio

[PATCH] media/platform/marvell-ccic: fix warnings when CONFIG_PM is not enabled

2020-10-19 Thread Randy Dunlap
From: Randy Dunlap Fix build warnings when CONFIG_PM is not set/enabled: ../drivers/media/platform/marvell-ccic/mmp-driver.c:324:12: warning: 'mmpcam_runtime_suspend' defined but not used [-Wunused-function] 324 | static int mmpcam_runtime_suspend(struct device *dev) ../drivers/media/platform

Re: [Industrypack-devel] [PATCH] ipack: iopctal: remove unneeded break

2020-10-19 Thread Greg KH
On Tue, Oct 20, 2020 at 07:50:39AM +0200, Samuel Iglesias Gonsálvez wrote: > Hi Tom, > > Thanks for the patch! > > Patch is, > > Acked-by: Samuel Iglesias Gonsalvez > > Greg, Would you mind picking this patch through your char-misc > tree? Will do after -rc1 is out. thanks, greg k-h

[PATCH v2] fat: Add KUnit tests for checksums and timestamps

2020-10-19 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the timestam

Re: [PATCH 1/1] kobject: Don't emit change events if not in sysfs

2020-10-19 Thread Greg Kroah-Hartman
On Mon, Oct 19, 2020 at 03:32:57PM -0700, Abhishek Pandit-Subedi wrote: > Add a check to make sure the kobj is created and in sysfs before sending > a change event notification. Otherwise, udev rules that depend on the > change notification may find that the path that changed doesn't actually > exi

Re: Re: [PATCH] [v2] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

2020-10-19 Thread dinghao . liu
> Hi, > > On Sun, Oct 18, 2020 at 03:28:10PM +0800, Dinghao Liu wrote: > > When clk_hw_register_fixed_rate_with_accuracy() fails, > > clk_data should be freed. It's the same for the subsequent > > two error paths, but we should also unregister the already > > registered clocks in them. > > > > Si

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-19 Thread Viresh Kumar
On 20-10-20, 10:35, Viresh Kumar wrote: > On 19-10-20, 15:10, Sudeep Holla wrote: > > On Mon, Oct 19, 2020 at 04:05:35PM +0530, Viresh Kumar wrote: > > > On 19-10-20, 11:12, Sudeep Holla wrote: > > > > Yes it has clocks property but used by SCMI(for CPUFreq/DevFreq) and not > > > > by any clock pro

Re: [PATCH v3] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-19 Thread Richard Palethorpe
Hello Shakeel, Shakeel Butt writes: >> >> V3: Handle common case where use_hierarchy=1 and update description. >> >> mm/memcontrol.c | 7 +-- >> 1 file changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/mm/memcontrol.c b/mm/memcontrol.c >> index 6877c765b8d0..34b8c4a66853 100644 >>

[RESEND PATCH V2 2/3] pwm: imx27: Use dev_err_probe() to simplify error handling

2020-10-19 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang Acked-by: Uwe Kleine-König --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx27.c | 25 ++---

[RESEND PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-10-19 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang Acked-by: Uwe Kleine-König --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx-tpm.c | 10 +++

[RESEND PATCH V2 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-10-19 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang Acked-by: Uwe Kleine-König --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx1.c | 21 ++

Re: [PATCH 1/2] perf jevents: Tidy error handling

2020-10-19 Thread Namhyung Kim
Hello, On Tue, Oct 20, 2020 at 12:42 AM John Garry wrote: > > There is much duplication in the error handling for directory traversing > for processing JSONs. > > Factor out the common code to tidy a bit. > > Signed-off-by: John Garry > --- [SNIP] > -empty_map: > +err_processing_std_arch_event_d

Re: [PATCH RFC 0/8] kasan: hardware tag-based mode for production use on arm64

2020-10-19 Thread Dmitry Vyukov
On Tue, Oct 20, 2020 at 12:51 AM Kostya Serebryany wrote: > > Hi, > I would like to hear opinions from others in CC on these choices: > * Production use of In-kernel MTE should be based on stripped-down > KASAN, or implemented independently? Andrey, what are the fundamental consequences of basing

Re: [PATCH v4 08/15] Documentation: of: Convert graph bindings to json-schema

2020-10-19 Thread Sameer Pujar
Signed-off-by: Sameer Pujar Cc: Philipp Zabel --- Documentation/devicetree/bindings/graph.txt | 128 Documentation/devicetree/bindings/graph.yaml | 170 +++ 2 files changed, 170 insertions(+), 128 deletions(-) delete mode 100644 Documentatio

Re: [PATCH v2] ARM: kprobes: Avoid fortify_panic() when copying optprobe template

2020-10-19 Thread Joel Stanley
On Fri, 9 Oct 2020 at 05:20, Joel Stanley wrote: > > On Thu, 1 Oct 2020 at 04:30, Andrew Jeffery wrote: > > > > Setting both CONFIG_KPROBES=y and CONFIG_FORTIFY_SOURCE=y on ARM leads > > to a panic in memcpy() when injecting a kprobe despite the fixes found > > in commit e46daee53bb5 ("ARM: 8806/

Re: [PATCH] opp: Don't always remove static OPPs in _of_add_opp_table_v1()

2020-10-19 Thread Viresh Kumar
On 15-10-20, 10:01, Viresh Kumar wrote: > On 15-10-20, 02:35, Aisheng Dong wrote: > > Hi Viresh > > > > Thanks for the quick fix. > > > > > From: Viresh Kumar > > > Sent: Wednesday, October 14, 2020 12:26 PM > > > > > > The patch missed returning 0 early in case of success and hence the > > >

Re: [PATCH RFC 0/8] kasan: hardware tag-based mode for production use on arm64

2020-10-19 Thread Dmitry Vyukov
On Mon, Oct 19, 2020 at 2:23 PM Marco Elver wrote: > > On Wed, 14 Oct 2020 at 22:44, Andrey Konovalov wrote: > [...] > > A question to KASAN maintainers: what would be the best way to support the > > "off" mode? I see two potential approaches: add a check into each kasan > > callback (easier to i

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-19 Thread Viresh Kumar
On 19-10-20, 15:10, Sudeep Holla wrote: > On Mon, Oct 19, 2020 at 04:05:35PM +0530, Viresh Kumar wrote: > > On 19-10-20, 11:12, Sudeep Holla wrote: > > > Yes it has clocks property but used by SCMI(for CPUFreq/DevFreq) and not > > > by any clock provider driver. E.g. the issue you will see if "cloc

Re: [PATCH] wireguard: convert selftest/{counter,ratelimiter}.c to KUnit

2020-10-19 Thread kernel test robot
Hi Daniel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 7cf726a59435301046250c42131554d9ccc566b8] url: https://github.com/0day-ci/linux/commits/Daniel-Latypov/wireguard-convert-selftest-counter-ratelimiter-c-to-KUnit/20201020-042650 base:7cf726a59435

RE: [PATCH 08/20] dt-bindings: usb: renesas-xhci: Refer to the usb-xhci.yaml file

2020-10-19 Thread Yoshihiro Shimoda
Hi, > From: Serge Semin, Sent: Wednesday, October 14, 2020 7:14 PM > > With minor peculiarities (like uploading some vendor-specific firmware) > these are just Generic xHCI controllers fully compatible with its > properties. Make sure the Renesas USB xHCI DT nodes are also validated > against the

Re: [PATCH v5 2/4] leds: Add driver for Qualcomm LPG

2020-10-19 Thread Bjorn Andersson
On Sun 18 Oct 15:12 CDT 2020, Andy Shevchenko wrote: > On Sat, Oct 17, 2020 at 8:41 AM Bjorn Andersson > wrote: > > > > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > > PMICs from Qualcomm. It can operate on fixed parameters or based on a > > lookup-table, altering the

Re: [PATCH v4 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-10-19 Thread Hsin-Hsiung Wang
Hi, On Mon, 2020-10-19 at 14:54 -0500, Rob Herring wrote: > On Sat, Oct 17, 2020 at 12:10:33AM +0800, Hsin-Hsiung Wang wrote: > > This adds documentation for the SPMI controller found on Mediatek SoCs. > > > > Signed-off-by: Hsin-Hsiung Wang > > --- > > If you have a dependency such as the incl

Re: [PATCH 4/4] ftgmac100: Restart MAC HW once

2020-10-19 Thread Joel Stanley
On Mon, 19 Oct 2020 at 08:57, Dylan Hung wrote: > > The interrupt handler may set the flag to reset the mac in the future, > but that flag is not cleared once the reset has occured. > > Fixes: 10cbd6407609 ("ftgmac100: Rework NAPI & interrupts handling") > Signed-off-by: Dylan Hung > Signed-off-b

[RFC, net-next 1/3] net: dsa: ethtool preempt ops support on slave ports

2020-10-19 Thread Xiaoliang Yang
Preempt_set and preempt_get are new functions of ethtool ops, which is to configure frame preemption according to 802.1qbu and 802.3br. Add them on slave ports of DSA framework, so that DSA devices can support to configure frame preemption by using ethtool. Signed-off-by: Xiaoliang Yang --- incl

[RFC, net-next 3/3] net: dsa: felix: tc-taprio preempt set support

2020-10-19 Thread Xiaoliang Yang
After using ethtool to enable and configure frame preemption on vsc9959, use tc-taprio preempt set to mark the preempt queues and express queueus. Signed-off-by: Xiaoliang Yang --- drivers/net/dsa/ocelot/felix_vsc9959.c | 16 1 file changed, 16 insertions(+) diff --git a/driver

Re: [PATCH 1/4] ftgmac100: Fix race issue on TX descriptor[0]

2020-10-19 Thread Joel Stanley
On Mon, 19 Oct 2020 at 23:20, Benjamin Herrenschmidt wrote: > > On Mon, 2020-10-19 at 16:57 +0800, Dylan Hung wrote: > > These rules must be followed when accessing the TX descriptor: > > > > 1. A TX descriptor is "cleanable" only when its value is non-zero > > and the owner bit is set to "softwar

[RFC, net-next 2/3] net: dsa: felix: add preempt queues set support for vsc9959

2020-10-19 Thread Xiaoliang Yang
VSC9959 support preempt queues according to 802.1qbu and 802.3br. This patch add ethtool preempt set to configure preemption. In user space, it can be set like this: ethtool --set-frame-preemption swp0 enable min-frag-size 0 Signed-off-by: Xiaoliang Yang --- drivers/net/dsa/ocelot/felix

[RFC, net-next 0/3] net: dsa: felix: frame preemption support

2020-10-19 Thread Xiaoliang Yang
VSC9959 supports frame preemption according to 802.1qbu and 802.3br. This patch series use ethtool to enable and configure frame preemption, then use tc-taprio preempt set to mark the preempt queues and express queueus. This series depends on series: "ethtool: Add support for frame preemption" lin

Re: [PATCH v4 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-10-19 Thread Hsin-Hsiung Wang
Hi, On Mon, 2020-10-19 at 14:52 -0500, Rob Herring wrote: > On Sat, 17 Oct 2020 00:10:33 +0800, Hsin-Hsiung Wang wrote: > > This adds documentation for the SPMI controller found on Mediatek SoCs. > > > > Signed-off-by: Hsin-Hsiung Wang > > --- > > .../bindings/spmi/mtk,spmi-mtk-pmif.yaml |

[PATCH] x86, libnvdimm/test: Remove COPY_MC_TEST

2020-10-19 Thread Dan Williams
The COPY_MC_TEST facility has served its purpose for validating the early termination conditions of the copy_mc_fragile() implementation. Remove it and the EXPORT_SYMBOL_GPL of copy_mc_fragile(). Reported-by: Borislav Petkov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: x...@kernel.org Cc: "H. Peter

[PATCH v1] i2c: tegra: Fix i2c_writesl() to use writel() instead of writesl()

2020-10-19 Thread Sowjanya Komatineni
VI I2C don't have DMA support and uses PIO mode all the time. Current driver uses writesl() to fill TX FIFO based on available empty slots and with this seeing strange silent hang during any I2C register access after filling TX FIFO with 8 words. Using writel() followed by i2c_readl() in a loop t

Re: [PATCH] spi: spi-sun6i: implement DMA-based transfer mode

2020-10-19 Thread Chen-Yu Tsai
On Tue, Oct 20, 2020 at 1:43 AM Alexander Kochetkov wrote: > > > > > 19 окт. 2020 г., в 11:21, Maxime Ripard написал(а): > > > > Hi! > > > > On Thu, Oct 15, 2020 at 06:47:40PM +0300, Alexander Kochetkov wrote: > >> DMA-based transfer will be enabled if data length is larger than FIFO size > >> (6

[PATCH v3 3/3] net: dsa: mv88e6xxx: Support serdes ports on MV88E6123/6131

2020-10-19 Thread Chris Packham
Implement serdes_power, serdes_get_lane and serdes_pcs_get_state ops for the MV88E6123 so that the ports without a built-in PHY supported as serdes ports and directly connected to other network interfaces or to SFPs. Also implement serdes_get_regs_len and serdes_get_regs to aid future debugging. S

[PATCH v3 2/3] net: dsa: mv88e6xxx: Support serdes ports on MV88E6097/6095/6185

2020-10-19 Thread Chris Packham
Implement serdes_power, serdes_get_lane and serdes_pcs_get_state ops for the MV88E6097/6095/6185 so that ports 8 & 9 can be supported as serdes ports and directly connected to other network interfaces or to SFPs without a PHY. Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn --- Changes in

[PATCH v3 1/3] net: dsa: mv88e6xxx: Don't force link when using in-band-status

2020-10-19 Thread Chris Packham
When a port is configured with 'managed = "in-band-status"' don't force the link up, the switch MAC will detect the link status correctly. Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn --- Changes in v3: - None Changes in v2: - Add review from Andrew drivers/net/dsa/mv88e6xxx/chip.c |

[PATCH v3 0/3] net: dsa: mv88e6xxx: serdes link without phy

2020-10-19 Thread Chris Packham
This small series gets my hardware into a working state. The key points are to make sure we don't force the link and that we ask the MAC for the link status. I also have updated my dts to say `phy-mode = "1000base-x";` and `managed = "in-band-status";` I've included patch #3 in this series but I d

Re: [PATCH v8 -tip 13/26] kernel/entry: Add support for core-wide protection of kernel-mode

2020-10-19 Thread Randy Dunlap
On 10/19/20 6:43 PM, Joel Fernandes (Google) wrote: --- .../admin-guide/kernel-parameters.txt | 7 + include/linux/entry-common.h | 2 +- include/linux/sched.h | 12 + kernel/entry/common.c | 25 +- kernel/sched

Re: [PATCH v8 -tip 25/26] Documentation: Add core scheduling documentation

2020-10-19 Thread Randy Dunlap
Hi Joel, On 10/19/20 6:43 PM, Joel Fernandes (Google) wrote: Document the usecases, design and interfaces for core scheduling. Co-developed-by: Vineeth Pillai Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- .../admin-guide/hw-vuln/core-scheduling.rst | 312

  1   2   3   4   5   6   7   8   9   10   >