Re: [PATCH] MAINTAINERS: Update my maintainer entries to reorder email addresses

2020-05-22 Thread Mauro Carvalho Chehab
Hi Shuah, Em Fri, 22 May 2020 20:19:28 -0600 Shuah Khan escreveu: > get_maintainer.pl picks only the first email address found in the file. > Reorder my email addresses so it finds my linuxfoundation.org email. Next time someone would run the ordering script again, this patch would need to be

RE: [PATCH v1 0/3] fix macb phy probe failure if phy-reset is not handled

2020-05-22 Thread Sagar Kadam
Hello, A gentle reminder. Any suggestions here? BR, Sagar > -Original Message- > From: Sagar Kadam > Sent: Wednesday, May 13, 2020 7:27 PM > To: linux-kernel@vger.kernel.org; linux-ri...@lists.infradead.org; > devicet...@vger.kernel.org; robh...@kernel.org > Cc: pal...@dabbelt.com;

Re: [PATCH 2/2] orangefs: fix double-unlock issue in service_operation().

2020-05-22 Thread Al Viro
On Fri, May 22, 2020 at 11:35:51PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > spin_unlock(>lock) is called before calling wake_up_interruptible(). > But spin_unlock() was called again after a call of the function > "wait_for_matching_downcall" failed. Yes, it was. > Fix this issue by

Re: [PATCH] arm64: dts: qcom: enable pm8150 rtc

2020-05-22 Thread Bjorn Andersson
On Fri 22 May 21:12 PDT 2020, Jonathan Marek wrote: > I don't see any reason for it to be disabled by default. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Jonathan Marek > --- > arch/arm64/boot/dts/qcom/pm8150.dtsi | 2 -- > 1 file changed, 2 deletions(-) > > diff --git

Re: [PATCH] clk: qcom: sm8250 gcc depends on QCOM_GDSC

2020-05-22 Thread Bjorn Andersson
On Fri 22 May 21:09 PDT 2020, Jonathan Marek wrote: > The driver will always fail to probe without QCOM_GDSC, so select it. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Jonathan Marek > --- > drivers/clk/qcom/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: arm64: Register modification during syscall entry/exit stop

2020-05-22 Thread Keno Fischer
I got bitten by this again, so I decided to write up a simple example that shows the problem: https://gist.github.com/Keno/cde691b26e32373307fb7449ad305739 This runs the same child twice. First vanilla where it prints "Hello world". The second time, using a textbook ptrace example, to only print

RE: [PATCH v5 4/6] clocksource/drivers/timer-riscv: Use per-CPU timer interrupt

2020-05-22 Thread Anup Patel
> -Original Message- > From: Daniel Lezcano > Sent: 22 May 2020 18:38 > To: Anup Patel ; Palmer Dabbelt > ; Paul Walmsley ; Albert > Ou ; Thomas Gleixner ; Jason > Cooper ; Marc Zyngier > Cc: Atish Patra ; Alistair Francis > ; Anup Patel ; linux- > ri...@lists.infradead.org;

Re: [PATCH V4 7/8] fs/ext4: Introduce DAX inode flag

2020-05-22 Thread Andreas Dilger
On May 21, 2020, at 1:13 PM, ira.we...@intel.com wrote: > > From: Ira Weiny > > Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. > > Set the flag to be user visible and changeable. Set the flag to be > inherited. Allow applications to change the flag at any time with the > exception of

Re: [GIT PULL] SCSI fixes for 5.7-rc6

2020-05-22 Thread pr-tracker-bot
The pull request you sent on Fri, 22 May 2020 17:43:40 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e644645abf4788e919beeb97925fb6bf43e890a2 Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] drm fixes for v5.7-rc7

2020-05-22 Thread pr-tracker-bot
The pull request you sent on Sat, 23 May 2020 06:38:11 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-23 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a24deb9d68b423f3e5e190b9836d192ee3e0ff9d Thank you! -- Deet-doot-dot, I am a bot.

[PATCH 2/2] orangefs: fix double-unlock issue in service_operation().

2020-05-22 Thread wu000273
From: Qiushi Wu spin_unlock(>lock) is called before calling wake_up_interruptible(). But spin_unlock() was called again after a call of the function "wait_for_matching_downcall" failed. Fix this issue by remove the second spin_unlock(). Signed-off-by: Qiushi Wu --- fs/orangefs/waitqueue.c | 1

Re: [PATCH] capabilities: Introduce CAP_RESTORE

2020-05-22 Thread Andrei Vagin
On Fri, May 22, 2020 at 09:40:37AM -0700, Casey Schaufler wrote: > On 5/21/2020 10:53 PM, Adrian Reber wrote: > > There are probably a few more things guarded by CAP_SYS_ADMIN required > > to run checkpoint/restore as non-root, > > If you need CAP_SYS_ADMIN anyway you're not gaining anything by >

Re: [PATCH 03/29] modpost: add read_text_file() and get_line() helpers

2020-05-22 Thread Masahiro Yamada
On Wed, May 20, 2020 at 9:29 PM Peter Zijlstra wrote: > > On Wed, May 20, 2020 at 09:17:45PM +0900, Masahiro Yamada wrote: > > > The specification [1] says this: > > > > "The value returned may be less than nbyte if the number of bytes > > left in the file is less than nbyte, if the read()

[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

2020-05-22 Thread chenxb_99091
From: Xuebing Chen The provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1< --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c

[PATCH] mt76: mt7915: Use proper enum type in __mt7915_mcu_msg_send

2020-05-22 Thread Nathan Chancellor
Clang warns: drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:232:9: warning: implicit conversion from enumeration type 'enum mt76_txq_id' to different enumeration type 'enum mt7915_txq_id' [-Wenum-conversion] txq = MT_TXQ_FWDL; ~ ^~~

Re: Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-22 Thread Andi Kleen
> Setting the fs register in userspace is an essential feature for running > legacy code in SGX. We have been following LKML discussions on this > instruction for years, and hoping this feature would be supported by Linux, If you need a feature you should comment on it. One of the reasons it

[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

2020-05-22 Thread chenxb_99091
From: Xuebing Chen The provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1< --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c

[RFC PATCH 1/1] usb: dwc3: of-simple: Add extcon support

2020-05-22 Thread Prashant Malani
Add optional extcon notifier support to enable the hotplug / unplug of the underlying PHY layer devices. If supported, the Device Tree (DT) node for the device should include an "extcon" property which is a phandle to an extcon DT node. This patch is an effort to incorporate the equivalent

[PATCH] arm64: dts: qcom: enable pm8150 rtc

2020-05-22 Thread Jonathan Marek
I don't see any reason for it to be disabled by default. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index c0b197458665..b738c263f9d1

[RFC PATCH 0/1] usb: dwc3: Extcon hotplug support to of-simple

2020-05-22 Thread Prashant Malani
Some platforms like rk3399 would like to power on the USB PHY layer only when external devices are connected. This patch introduces optional support for extcon USB_HOST events, so that child devices are populated/depopulated when external devices are connected/disconnected, respectively. This is

Re: [RFC][PATCH 0/2] Add support for using reserved memory for ima buffer pass

2020-05-22 Thread Thiago Jung Bauermann
Hello Prakhar, Prakhar Srivastava writes: > On 5/12/20 4:05 PM, Rob Herring wrote: >> On Wed, May 06, 2020 at 10:50:04PM -0700, Prakhar Srivastava wrote: >>> Hi Mark, >> >> Please don't top post. >> >>> This patch set currently only address the Pure DT implementation. >>> EFI and ACPI

[PATCH] clk: qcom: sm8250 gcc depends on QCOM_GDSC

2020-05-22 Thread Jonathan Marek
The driver will always fail to probe without QCOM_GDSC, so select it. Signed-off-by: Jonathan Marek --- drivers/clk/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig index 5df110be52c1..59dc0bdafad4 100644 ---

Re: [PATCH] ovl: make private mounts longterm

2020-05-22 Thread Miklos Szeredi
On Fri, May 22, 2020 at 9:56 PM Al Viro wrote: > > On Fri, May 22, 2020 at 08:53:49PM +0200, Miklos Szeredi wrote: > > Right, we should just get rid of ofs->upper_mnt and ofs->upperdir_trap > > and use ofs->layers[0] to store those. > > For that you'd need to allocate ->layers before you get to

[PATCH] usb: gadget: fix potential double-free in m66592_probe.

2020-05-22 Thread wu000273
From: Qiushi Wu m66592_free_request() is called under label "err_add_udc" and "clean_up", and m66592->ep0_req is not set to NULL after first free, leading to a double-free. Fix this issue by setting m66592->ep0_req to NULL after the first free. Fixes: 0f91349b89f3 ("usb: gadget: convert all

[PATCH v2] orangefs: convert get_user_pages() --> pin_user_pages()

2020-05-22 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 1" scenario (Direct IO), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is

[PATCH] phy: intel: Eliminate unnecessary assignment in intel_cbphy_set_mode

2020-05-22 Thread Nathan Chancellor
Clang warns: drivers/phy/intel/phy-intel-combo.c:202:34: warning: implicit conversion from enumeration type 'enum intel_phy_mode' to different enumeration type 'enum intel_combo_mode' [-Wenum-conversion] enum intel_combo_mode cb_mode = PHY_PCIE_MODE; ~~~

mmotm 2020-05-22-20-35 uploaded

2020-05-22 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-05-22-20-35 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH 2/3] gpio: pxa: Fix return value of pxa_gpio_probe()

2020-05-22 Thread Tiezhu Yang
On 05/23/2020 03:07 AM, Robert Jarzmik wrote: Tiezhu Yang writes: When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 542c25b7a209 ("drivers: gpio: pxa: use devm_platform_ioremap_resource()")

[PATCH] platform/chrome: fix a double-unlock issue

2020-05-22 Thread wu000273
From: Qiushi Wu In function cros_ec_ishtp_probe(), "up_write" is already called before function "cros_ec_dev_init". But "up_write" will be called again after the calling of the function "cros_ec_dev_init" failed. Thus add a call of the function “down_write” in this if branch for the completion

[PATCH] RDMA: fix missing pci disable in pvrdma_pci_probe()

2020-05-22 Thread wu000273
From: Qiushi Wu In function pvrdma_pci_probe(), pdev was not disabled in one error path. Thus replace the jump target “err_free_device” by "err_disable_pdev". Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Qiushi Wu --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 2 +-

Re: [PATCH] x86/mm/init: Stop printing pgt_buf addresses

2020-05-22 Thread Joe Perches
On Fri, 2020-05-22 at 21:51 -0400, Arvind Sankar wrote: > On Sat, Feb 29, 2020 at 06:11:20PM -0500, Arvind Sankar wrote: > > This currently leaks kernel physical addresses into userspace. > > > > Signed-off-by: Arvind Sankar > > --- > > arch/x86/mm/init.c | 2 -- > > 1 file changed, 2

Re: [patch V6 00/37] x86/entry: Rework leftovers and merge plan

2020-05-22 Thread Lai Jiangshan
On Tue, May 19, 2020 at 5:04 PM Peter Zijlstra wrote: > +#ifdef CONFIG_DEBUG_ENTRY > /* Begin/end of an instrumentation safe region */ > -#define instrumentation_begin() ({ > \ > +#define instrumentation_begin() ({

Re: Re: [PATCH] extcon: arizona: Fix runtime PM imbalance on error

2020-05-22 Thread dinghao . liu
> On Fri, May 22, 2020 at 07:07:31PM +0800, Dinghao Liu wrote: > > When arizona_request_irq() returns an error code, a > > pairing runtime PM usage counter decrement is needed > > to keep the counter balanced. For error paths after > > this function, things are the same. > > > > Signed-off-by:

Re: [PATCH v6] checkpatch: add support to check 'Fixes:' tag format

2020-05-22 Thread Wang YanQing
On Mon, May 04, 2020 at 11:34:31AM -0700, Joe Perches wrote: > On Mon, 2020-05-04 at 16:20 +0800, Wang YanQing wrote: > > According to submitting-patches.rst, 'Fixes:' tag has a little > > stricter condition about the one line summary than normal git > > commit description: > > “... > > Do not

Re: [PATCH] MAINTAINERS: Update my maintainer entries to reorder email addresses

2020-05-22 Thread Joe Perches
On Fri, 2020-05-22 at 20:19 -0600, Shuah Khan wrote: > get_maintainer.pl picks only the first email address found in the file. > Reorder my email addresses so it finds my linuxfoundation.org email. OK. btw: --noremove-duplicates is also an option. For instance: $ ./scripts/get_maintainer.pl

Re: umip: AMD Ryzen 3900X, pagefault after emulate SLDT/SIDT instruction

2020-05-22 Thread andi
On 11:56 19.05.20, Brendan Shanks wrote: > The problem is that the kernel does not emulate/spoof the SLDT instruction, > only SGDT, SIDT, and SMSW. > SLDT and STR weren't thought to be commonly used, so emulation/spoofing > wasn’t added. > In the last few months I have seen reports of one or two

[PATCH] MAINTAINERS: Update my maintainer entries to reorder email addresses

2020-05-22 Thread Shuah Khan
get_maintainer.pl picks only the first email address found in the file. Reorder my email addresses so it finds my linuxfoundation.org email. Signed-off-by: Shuah Khan --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: umip: AMD Ryzen 3900X, pagefault after emulate SLDT/SIDT instruction

2020-05-22 Thread Andreas Rammhold
On 12:43 19.05.20, Ricardo Neri wrote: > I have a patch for this already that I wrote for testing purposes: > https://github.com/ricardon/tip/commit/1692889cb3f8accb523d44b682458e234b93be50 > Perhaps it can be used as a starting point? Not sure what the spoofing > value should be, though. Perhaps

Re: [PATCH] iio: light: iqs621: remove usage of iio_priv_to_dev()

2020-05-22 Thread Jeff LaBundy
Hi Alexandru, On Fri, May 22, 2020 at 09:54:42AM +0300, Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. That's a bit > uncertain at this point. The reason is that we will hide some of the > members of the iio_dev structure (to prevent drivers from accessing

Re: [PATCH] iio: position: iqs624: remove usage of iio_priv_to_dev()

2020-05-22 Thread Jeff LaBundy
Hi Alexandru, On Fri, May 22, 2020 at 09:53:22AM +0300, Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. That's a bit > uncertain at this point. The reason is that we will hide some of the > members of the iio_dev structure (to prevent drivers from accessing

Re: [PATCH v2] fpga: dfl: afu: convert get_user_pages() --> pin_user_pages()

2020-05-22 Thread John Hubbard
On 2020-05-19 13:14, John Hubbard wrote: This code was using get_user_pages_fast(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages_fast() + put_page() calls to pin_user_pages_fast() + unpin_user_pages() calls. There

[PATCH 05/11] fs: add FMODE_BUF_RASYNC

2020-05-22 Thread Jens Axboe
If set, this indicates that the file system supports IOCB_WAITQ for buffered reads. Signed-off-by: Jens Axboe --- include/linux/fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 82b989695ab9..0ef5f5973b1c 100644 --- a/include/linux/fs.h

[PATCH 03/11] mm: add support for async page locking

2020-05-22 Thread Jens Axboe
Normally waiting for a page to become unlocked, or locking the page, requires waiting for IO to complete. Add support for lock_page_async() and wait_on_page_locked_async(), which are callback based instead. This allows a caller to get notified when a page becomes unlocked, rather than wait for it.

[PATCH 01/11] block: read-ahead submission should imply no-wait as well

2020-05-22 Thread Jens Axboe
As read-ahead is opportunistic, don't block for request allocation. Signed-off-by: Jens Axboe --- include/linux/blk_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index ccb895f911b1..c296463c15eb 100644 ---

[PATCH 07/11] block: flag block devices as supporting IOCB_WAITQ

2020-05-22 Thread Jens Axboe
Signed-off-by: Jens Axboe --- fs/block_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 86e2a7134513..ec8dccc81b65 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1851,7 +1851,7 @@ static int blkdev_open(struct inode * inode,

[PATCH 10/11] mm: add kiocb_wait_page_async_init() helper

2020-05-22 Thread Jens Axboe
Checks if the file supports it, and initializes the values that we need. Caller passes in 'data' pointer, if any, and the callback function to be used. Signed-off-by: Jens Axboe --- include/linux/pagemap.h | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH 11/11] io_uring: support true async buffered reads, if file provides it

2020-05-22 Thread Jens Axboe
If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt the buffered read to an io-wq worker. Instead we can rely on page unlocking callbacks to support retry based async IO. This is a lot more efficient than doing async thread offload. The retry is done similarly to how we

Re: [PATCH] x86/mm/init: Stop printing pgt_buf addresses

2020-05-22 Thread Arvind Sankar
On Sat, Feb 29, 2020 at 06:11:20PM -0500, Arvind Sankar wrote: > This currently leaks kernel physical addresses into userspace. > > Signed-off-by: Arvind Sankar > --- > arch/x86/mm/init.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c > index

[PATCH 06/11] ext4: flag as supporting buffered async reads

2020-05-22 Thread Jens Axboe
Signed-off-by: Jens Axboe --- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 0d624250a62b..9f7d9bf427b4 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -826,7 +826,7 @@ static int ext4_file_open(struct inode * inode,

[PATCH 04/11] mm: support async buffered reads in generic_file_buffered_read()

2020-05-22 Thread Jens Axboe
Use the async page locking infrastructure, if IOCB_WAITQ is set in the passed in iocb. The caller must expect an -EIOCBQUEUED return value, which means that IO is started but not done yet. This is similar to how O_DIRECT signals the same operation. Once the callback is received by the caller for

[PATCH 02/11] mm: allow read-ahead with IOCB_NOWAIT set

2020-05-22 Thread Jens Axboe
The read-ahead shouldn't block, so allow it to be done even if IOCB_NOWAIT is set in the kiocb. Signed-off-by: Jens Axboe --- mm/filemap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 23a051a7ef0f..80747f1377d5 100644 --- a/mm/filemap.c +++

[PATCH 08/11] xfs: flag files as supporting buffered async reads

2020-05-22 Thread Jens Axboe
XFS uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe --- fs/xfs/xfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 4b8bdecc3863..97f44fbf17f2 100644 --- a/fs/xfs/xfs_file.c +++

[PATCH 09/11] btrfs: flag files as supporting buffered async reads

2020-05-22 Thread Jens Axboe
btrfs uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe --- fs/btrfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 719e68ab552c..c933b6a1b4a8 100644 --- a/fs/btrfs/file.c +++

[PATCHSET v2 RFC 0/11] Add support for async buffered reads

2020-05-22 Thread Jens Axboe
We technically support this already through io_uring, but it's implemented with a thread backend to support cases where we would block. This isn't ideal. After a few prep patches, the core of this patchset is adding support for async callbacks on page unlock. With this primitive, we can simply

Re: [PATCH 00/19] Implement NTB Controller using multiple PCI EP

2020-05-22 Thread Kishon Vijay Abraham I
Hi Rob, On 5/22/2020 9:41 PM, Rob Herring wrote: > On Thu, May 14, 2020 at 8:59 AM Kishon Vijay Abraham I wrote: >> >> This series is about implementing SW defined NTB using >> multiple endpoint instances. This series has been tested using >> 2 endpoint instances in J7 connected to two DRA7

[PATCH 1/1] vfio/spapr_tce: convert get_user_pages() --> pin_user_pages()

2020-05-22 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is a

Re: [PATCH v4 3/8] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-22 Thread dillon min
On Sat, May 23, 2020 at 12:29 AM Mark Brown wrote: > > On Fri, May 22, 2020 at 11:59:25PM +0800, dillon min wrote: > > > but, after spi-core create a dummy tx_buf or rx_buf, then i can't get > > the correct spi_3wire direction. > > actually, this dummy tx_buf is useless for SPI_3WIRE. it's has

Re: [PATCH] mm/compaction: avoid VM_BUG_ON(PageSlab()) in page_mapcount()

2020-05-22 Thread Andrew Morton
On Wed, 13 May 2020 17:05:25 +0300 Konstantin Khlebnikov wrote: > Function isolate_migratepages_block() runs some checks out of lru_lock > when choose pages for migration. After checking PageLRU() it checks extra > page references by comparing page_count() and page_mapcount(). Between > these

Re: [PATCH v3 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-05-22 Thread Roman Gushchin
On Fri, May 22, 2020 at 08:27:15PM +0200, Vlastimil Babka wrote: > On 4/22/20 10:46 PM, Roman Gushchin wrote: > > Allocate and release memory to store obj_cgroup pointers for each > > non-root slab page. Reuse page->mem_cgroup pointer to store a pointer > > to the allocated space. > > > > To

Re: [PATCH v4 07/14] PCI: cadence: Add new *ops* for CPU addr fixup

2020-05-22 Thread Kishon Vijay Abraham I
Hi Rob, On 5/22/2020 10:15 PM, Rob Herring wrote: > On Thu, May 21, 2020 at 5:35 AM Kishon Vijay Abraham I wrote: >> >> Hi Rob, >> >> On 5/21/2020 3:04 AM, Rob Herring wrote: >>> On Wed, May 06, 2020 at 08:44:22PM +0530, Kishon Vijay Abraham I wrote: Cadence driver uses "mem" memory

[PATCH] media: v4l2-ctrls: Add encoder constant quality control

2020-05-22 Thread Maheshwar Ajja
When V4L2_CID_MPEG_VIDEO_BITRATE_MODE value is V4L2_MPEG_VIDEO_BITRATE_MODE_CQ, encoder will produce constant quality output indicated by V4L2_CID_MPEG_VIDEO_CONSTANT_QUALITY control value. Encoder will choose appropriate quantization parameter and bitrate to produce requested frame quality level.

Re: KASAN: slab-out-of-bounds Read in ath9k_hif_usb_rx_cb

2020-05-22 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:806d8acc USB: dummy-hcd: use configurable endpoint naming .. git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=113b269a10 kernel config:

Urgent Reply,

2020-05-22 Thread Mr. Scott Donald
Dear Friend, I'm Mr. Scott Donald a Successful business Man. dealing with Exportation, I got your email contact through search to let you know my Ugly Situation Am a dying Man here in California Los Angeles Hospital Bed in (USA), I Lost my Wife and my only Daughter for Corona virus and my Doctor

ptrace: seccomp: Return value when the call was already invalid

2020-05-22 Thread Keno Fischer
I'm seeing the following while porting a ptracer from x86_64 to arm64 (cc'ing arm64 folks, but in this case x86_64 is the odd one out, I think other archs would be consistent with arm64). Consider userspace code like the following: ``` int ret = syscall(-10, 0); assert(ret == -ENOSYS); ```

Re: [PATCH] media: v4l2-ctrls: Add encoded frame quality controls

2020-05-22 Thread majja
Hi Hans, Thank you for the suggestion. I will update the patch accordingly. Regards, Maheshwar. On 2020-05-18 23:45, Hans Verkuil wrote: Hi Maheshwar, On 18/05/2020 23:09, ma...@codeaurora.org wrote: Hi, Regarding below patch - HEIF/HEIC image encoding uses HEVC/AVC encoders and

Re: [PATCH V2 1/2] rbtree_latch: quit searching when reaching to maximum depth

2020-05-22 Thread Lai Jiangshan
On Sat, May 16, 2020 at 12:01 AM Lai Jiangshan wrote: > > lib/rbtree.c has ensured that there is not possible to > inadvertently cause (temporary) loops in the tree structure > as seen in program order of the modifier. But loop is still > possible to be seen in searcher due to CPU's reordering. >

Re: [PATCH net-next 1/5] net: hns3: add support for VF to query ring and vector mapping

2020-05-22 Thread tanhuazhong
On 2020/5/23 1:39, Jakub Kicinski wrote: On Fri, 22 May 2020 10:49:42 +0800 Huazhong Tan wrote: From: Guangbin Huang This patch adds support for VF to query the mapping of ring and vector. Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan Hi, Jakub. Could you explain a

[tip:sched/core 1/2] kernel/sched/core.c:223:1: warning: unused function 'rq_csd_init'

2020-05-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core head: 2a0a24ebb499c9d499eea948d3fc108f936e36d4 commit: 90b5363acd4739769c3f38c1aff16171bd133e8c [1/2] sched: Clean up scheduler_ipi() config: mips-randconfig-r006-20200521 (attached as .config) compiler: clang

Re: Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-22 Thread Thomas Gleixner
Don, Don Porter writes: > On 5/19/20 12:48 PM, Jarkko Sakkinen wrote: >> On Tue, May 19, 2020 at 01:03:25AM +0200, Thomas Gleixner wrote: >>> >>> That justifies to write books which recommend to load a kernel module >>> which creates a full unpriviledged root hole. I bet none of these papers >>>

[GIT PULL] SCSI fixes for 5.7-rc6

2020-05-22 Thread James Bottomley
Three minor fixes, two in drivers, one to fix a hang after reset with iSCSI, and one to avoid a spurious log message; and the final core one to correct a suspend/resume miscount with quiesced devices. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git

RE: [EXTERNAL] Re: [PATCH] x86/Hyper-V: Support for free page reporting

2020-05-22 Thread Michael Kelley
From: Sunil Muthuswamy Sent: Friday, May 22, 2020 9:40 AM > > > > + if (hv_do_hypercall(HV_EXT_CALL_QUERY_CAPABILITIES, NULL, cap) == > > > + HV_STATUS_SUCCESS) > > > > You're using the input page as the output parameter. Ideally we should > > introduce hyperv_pcpu_output_arg page, but that

RE: [PATCH] thermal: imx8mm: Add get_trend ops

2020-05-22 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH] thermal: imx8mm: Add get_trend ops > > On 13/05/2020 04:58, Anson Huang wrote: > > Add get_trend ops for i.MX8MM thermal to apply fast cooling mechanism, > > when temperature exceeds passive trip point, the highest cooling > > action will be applied, and when

Re: [PATCH mmotm] mm/swap: fix livelock in __read_swap_cache_async()

2020-05-22 Thread Andrew Morton
On Thu, 21 May 2020 22:56:20 -0700 (PDT) Hugh Dickins wrote: > I've only seen this livelock on one machine (repeatably, but not to > order), and not fully analyzed it - two processes seen looping around > getting -EEXIST from swapcache_prepare(), I guess a third (at lower > priority? but wanting

Re: [PATCH v2] firmware_loader: change enum fw_opt to u32

2020-05-22 Thread Luis Chamberlain
On Fri, May 22, 2020 at 04:12:02PM -0700, Scott Branden wrote: > "enum fw_opt" is not used as an enum. > Change fw_opt to u32 as FW_OPT_* values are OR'd together. > > Signed-off-by: Scott Branden Acked-by: Luis Chamberlain Luis

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

2020-05-22 Thread Paul E. McKenney
On Fri, May 22, 2020 at 05:49:44PM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 22 May 2020 17:17:08 +1000 Stephen Rothwell > wrote: > > > > On Thu, 21 May 2020 18:35:22 +0100 Will Deacon wrote: > > > > > > [+Marco and Boris] > > > > > > On Fri, May 22, 2020 at 03:31:19AM +1000,

Re: [PATCH 3/9] intel_idle: Relocate definitions of cpuidle callbacks

2020-05-22 Thread Qian Cai
A due to CONFIG_INIT_STACK_ALL=y, so one issue is that, bool uninitialized_var(x); would always broken on Clang like this, [ 92.140611] UBSAN: invalid-load in drivers/idle/intel_idle.c:135:7 [ 92.143111] load of value 170 is not a valid value for type 'bool' (aka '_Bool') [ 92.145657] CPU:

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-22 Thread Andrew Morton
On Fri, 22 May 2020 09:18:25 +0200 Guoqing Jiang wrote: > >> - ClearPagePrivate(page); > >> - set_page_private(newpage, page_private(page)); > >> - set_page_private(page, 0); > >> - put_page(page); > >> + set_page_private(newpage, detach_page_private(page)); > >

Re: [PATCH net 0/2] rxrpc: Fix a warning and a leak [ver #2]

2020-05-22 Thread David Miller
From: David Howells Date: Sat, 23 May 2020 00:42:32 +0100 > > Here are a couple of fixes for AF_RXRPC: > > (1) Fix an uninitialised variable warning. > > (2) Fix a leak of the ticket on error in rxkad. > > The patches are tagged here: > >

Re: [RFC 1/2] devlink: add simple fw crash helpers

2020-05-22 Thread Luis Chamberlain
On Fri, May 22, 2020 at 04:23:55PM -0700, Steve deRosier wrote: > Specifically, I don't think we should set a taint flag when a driver > easily handles a routine firmware crash and is confident that things > have come up just fine again. In other words, triggering the taint in > every driver

[PATCH net 2/2] rxrpc: Fix a memory leak in rxkad_verify_response() [ver #2]

2020-05-22 Thread David Howells
From: Qiushi Wu A ticket was not released after a call of the function "rxkad_decrypt_ticket" failed. Thus replace the jump target "temporary_error_free_resp" by "temporary_error_free_ticket". Fixes: 8c2f826dc3631 ("rxrpc: Don't put crypto buffers on the stack") Signed-off-by: Qiushi Wu

Re: [PATCH v2] kasan: Disable branch tracing for core runtime

2020-05-22 Thread Andrew Morton
On Fri, 22 May 2020 09:52:07 +0200 Marco Elver wrote: > During early boot, while KASAN is not yet initialized, it is possible to > enter reporting code-path and end up in kasan_report(). While > uninitialized, the branch there prevents generating any reports, > however, under certain

[PATCH net 1/2] rxrpc: Fix a warning [ver #2]

2020-05-22 Thread David Howells
Fix a warning due to an uninitialised variable. le included from ../fs/afs/fs_probe.c:11: ../fs/afs/fs_probe.c: In function 'afs_fileserver_probe_result': ../fs/afs/internal.h:1453:2: warning: 'rtt_us' may be used uninitialized in this function [-Wmaybe-uninitialized] 1453 | printk("[%-6.6s]

[PATCH net 0/2] rxrpc: Fix a warning and a leak [ver #2]

2020-05-22 Thread David Howells
Here are a couple of fixes for AF_RXRPC: (1) Fix an uninitialised variable warning. (2) Fix a leak of the ticket on error in rxkad. The patches are tagged here: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-fixes-20200523-v2 and can also be

Re: [PATCH v5 06/11] net: ethernet: mtk-star-emac: new driver

2020-05-22 Thread Andrew Lunn
On Fri, May 22, 2020 at 05:06:34PM +0200, Matthias Brugger wrote: > > > On 22/05/2020 14:06, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > This adds the driver for the MediaTek STAR Ethernet MAC currently used > > on the MT8* SoC family. For now we only support full-duplex.

Re: [PATCH] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-22 Thread Jaegeuk Kim
Shutdown test is somtimes hung, since it keeps trying to flush dirty node pages in an inifinite loop. Let's drop dirty pages at umount in that case. Signed-off-by: Jaegeuk Kim --- v2: - fix typos fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

Re: [PATCH net 0/3] rxrpc: Fix retransmission timeout and ACK discard

2020-05-22 Thread David Miller
From: David Howells Date: Sat, 23 May 2020 00:26:46 +0100 > David Miller wrote: > >> Pulled, thanks David. > > Thanks. I'll rebase my two extra patches I've just sent you a pull request > for when you've updated the branch. Please respin and fix the Subject line of patch #2 to have a

Re: [PATCH net 0/3] rxrpc: Fix retransmission timeout and ACK discard

2020-05-22 Thread David Howells
David Miller wrote: > Pulled, thanks David. Thanks. I'll rebase my two extra patches I've just sent you a pull request for when you've updated the branch. David

Re: [PATCH net 0/3] rxrpc: Fix retransmission timeout and ACK discard [ver #2]

2020-05-22 Thread David Howells
David Howells wrote: > The patches are tagged here: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-fixes-20200520 Oops. That's the wrong tag. It should be rxrpc-fixes-20200521. David

Re: [RFC 1/2] devlink: add simple fw crash helpers

2020-05-22 Thread Steve deRosier
On Fri, May 22, 2020 at 2:51 PM Luis Chamberlain wrote: > > On Fri, May 22, 2020 at 10:46:07PM +0200, Johannes Berg wrote: > > FWIW, I still completely disagree on that taint. You (Luis) obviously > > have been running into a bug in that driver, I doubt the firmware > > actually managed to wedge

Re: [PATCH 0/3] fs: reduce export usage of kerne_read*() calls

2020-05-22 Thread Scott Branden
Hi Kees, On 2020-05-22 4:04 p.m., Kees Cook wrote: On Fri, May 22, 2020 at 03:24:32PM -0700, Scott Branden wrote: On 2020-05-18 5:37 a.m., Mimi Zohar wrote: On Sun, 2020-05-17 at 23:22 -0700, Christoph Hellwig wrote: On Fri, May 15, 2020 at 09:29:33PM +, Luis Chamberlain wrote: On Wed,

[PATCH net 0/2] rxrpc: Fix a warning and a leak

2020-05-22 Thread David Howells
Here are a couple of fixes for AF_RXRPC: (1) Fix an uninitialised variable warning. (2) Fix a leak of the ticket on error in rxkad. The patches are tagged here: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-fixes-20200523 and can also be found

[PATCH net 2/2] A ticket was not released after a call of the function

2020-05-22 Thread David Howells
From: Qiushi Wu "rxkad_decrypt_ticket" failed. Thus replace the jump target "temporary_error_free_resp" by "temporary_error_free_ticket". Fixes: 8c2f826dc3631 ("rxrpc: Don't put crypto buffers on the stack") Signed-off-by: Qiushi Wu Signed-off-by: David Howells cc: Markus Elfring ---

[PATCH net 1/2] rxrpc: Fix a warning

2020-05-22 Thread David Howells
Fix a warning due to an uninitialised variable. le included from ../fs/afs/fs_probe.c:11: ../fs/afs/fs_probe.c: In function 'afs_fileserver_probe_result': ../fs/afs/internal.h:1453:2: warning: 'rtt_us' may be used uninitialized in this function [-Wmaybe-uninitialized] 1453 | printk("[%-6.6s]

Re: [PATCH] net: sun: fix missing release regions in cas_init_one().

2020-05-22 Thread David Miller
From: wu000...@umn.edu Date: Fri, 22 May 2020 16:50:27 -0500 > From: Qiushi Wu > > In cas_init_one(), "pdev" is requested by "pci_request_regions", but it > was not released after a call of the function “pci_write_config_byte” > failed. Thus replace the jump target “err_write_cacheline” by >

Re: [RESEND PATCH v14 04/11] pwm: clps711x: Cast period to u32 before use as divisor

2020-05-22 Thread Guru Das Srinagesh
On Fri, May 22, 2020 at 10:37:38AM +0100, Daniel Thompson wrote: > On Thu, May 21, 2020 at 01:25:25PM -0700, Guru Das Srinagesh wrote: > > On Thu, May 21, 2020 at 11:19:34AM +0100, Daniel Thompson wrote: > > > On Wed, May 20, 2020 at 03:55:57PM -0700, Guru Das Srinagesh wrote: > > > > Since the

Re: KASAN: slab-out-of-bounds Read in dlfb_usb_probe

2020-05-22 Thread syzbot
syzbot has bisected this bug to: commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 Author: Andrey Konovalov Date: Mon Feb 24 16:13:03 2020 + usb: gadget: add raw-gadget interface bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10510cba10 start commit: 051143e1 Merge

sound/soc/jz4740/jz4740-i2s.c:491:34: warning: unused variable 'jz4770_i2s_soc_info'

2020-05-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444565650a5fe9c63ddf153e6198e31705dedeb2 commit: a3434a497a2f33324e0f47bc1500a400959b4b25 ASoC: jz4740-i2s: Add support for the JZ4770 date: 8 weeks ago config: mips-randconfig-r014-20200522 (attached

Re: [PATCH v2 0/3] bridge: mrp: Add br_mrp_unique_ifindex function

2020-05-22 Thread David Miller
From: Horatiu Vultur Date: Thu, 21 May 2020 23:19:04 + > This patch series adds small fixes to MRP implementation. > The following are fixed in this patch series: > - now is not allow to add the same port to multiple MRP rings > - remove unused variable > - restore the port state according

[GIT PULL] cpupower update for Linux 5.8-rc1

2020-05-22 Thread Shuah Khan
Hi Rafael, Please pull the following cpupower update for Linux 5.8-rc1. This cpupower update for Linux 5.8-rc1 consists of a single patch to fix coccicheck unneeded semicolon warning. diff is attached. thanks, -- Shuah The

Re: [PATCH net-next v3 0/2] DP83869 Enhancements

2020-05-22 Thread David Miller
From: Dan Murphy Date: Thu, 21 May 2020 12:47:36 -0500 > These are improvements to the DP83869 Ethernet PHY driver. OP-mode and port > mirroring may be strapped on the device but the software only retrives these > settings from the device tree. Reading the straps and initializing the >

  1   2   3   4   5   6   7   8   9   10   >