Re: [PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-07 Thread peterz
On Fri, Aug 07, 2020 at 10:38:23AM +0200, Juergen Gross wrote: > -# else > - const unsigned char cpu_iret[1]; > -# endif > }; > > static const struct patch_xxl patch_data_xxl = { > @@ -42,7 +38,6 @@ static const struct patch_xxl patch_data_xxl = { > .irq_save_fl= {

Re: [GIT PULL] RESEND: thermal for v5.9-rc1

2020-08-07 Thread Daniel Lezcano
Hi Linus, On 07/08/2020 04:43, Linus Torvalds wrote: > On Thu, Aug 6, 2020 at 1:19 PM Daniel Lezcano > wrote: >> >> >> - Add generic netlink support for userspace notifications: events, >> temperature >> and discovery commands (Daniel Lezcano) > > This is "default y". > > Why? > > The

[PATCH 4/4] MIPS: BCM63xx: refactor board declarations

2020-08-07 Thread Álvaro Fernández Rojas
Current board declarations are a mess. Let's put some order and make them follow the same structure. Also remove board declarations tabs and double whitespace in the header. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/bcm63xx/boards/board_bcm963xx.c | 617 +++--- 1 file

RE: [PATCH 3/3] quota: simplify the quotactl compat handling

2020-08-07 Thread David Laight
From: Christoph Hellwig > Sent: 31 July 2020 13:22 > > Fold the misaligned u64 workarounds into the main quotactl flow instead > of implementing a separate compat syscall handler. > ... > +static int compat_copy_fs_quota_stat(struct compat_fs_quota_stat __user *to, > + struct

[PATCH 3/4] MIPS: BCM63xx: enable EHCI for DWV-S0 board

2020-08-07 Thread Álvaro Fernández Rojas
EHCI and OHCI share the same USB ports. Therefore, if the board has OHCI it should also have EHCI. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/bcm63xx/boards/board_bcm963xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c

Re: [PATCH v8 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-08-07 Thread Tomi Valkeinen
Hi Swapnil, On 06/08/2020 14:34, Swapnil Jakhade wrote: > Add a new DRM bridge driver for Cadence MHDP DPTX IP used in TI J721e SoC. > MHDP DPTX IP is the component that complies with VESA DisplayPort (DP) and > embedded Display Port (eDP) standards. It integrates uCPU running the > embedded

[PATCH RESEND] i2c: designware: Add device HID for Hygon I2C controller

2020-08-07 Thread Pu Wen
Add device HID HYGO0010 to match the Hygon ACPI Vendor ID (HYGO) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on Hygon paltform will use the HID. Signed-off-by: Pu Wen Acked-by: Andy Shevchenko Acked-by: Wolfram Sang --- drivers/acpi/acpi_apd.c

[PATCH 0/4] MIPS: BCM63xx: board improvements

2020-08-07 Thread Álvaro Fernández Rojas
Theses patches improve BCM63xx board declarations and source code. Álvaro Fernández Rojas (4): MIPS: BCM63xx: remove duplicated new lines MIPS: BCM63xx: remove EHCI from BCM6348 boards MIPS: BCM63xx: enable EHCI for DWV-S0 board MIPS: BCM63xx: refactor board declarations

[PATCH 2/4] MIPS: BCM63xx: remove EHCI from BCM6348 boards

2020-08-07 Thread Álvaro Fernández Rojas
There's no EHCI controller on BCM6348. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/bcm63xx/boards/board_bcm963xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c index

[PATCH 1/4] MIPS: BCM63xx: remove duplicated new lines

2020-08-07 Thread Álvaro Fernández Rojas
There are 3 duplicated new lines, let's remove them. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/bcm63xx/boards/board_bcm963xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c index

Re: [PATCH v36 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-08-07 Thread Darren Kenny
On Thursday, 2020-07-16 at 16:52:44 +03, Jarkko Sakkinen wrote: > ENCLS is a ring 0 instruction, which contains a set of leaf functions for > managing an enclave. Enclaves are measured and signed software entities, > which are protected by asserting the outside memory accesses and memory >

Re: [PATCH net 0/4] support multipacket broadcast message

2020-08-07 Thread Zhang Changzhong
Hi Oleksij, We have tested this j1939 stack according to SAE J1939-21. It works fine for most cases, but when we test multipacket broadcast message function we found the receiver can't receive those packets. You can reproduce on CAN bus or vcan, for vcan case use cangw to connect vcan0 and

Re: [PATCH 3/6] drm/xen-front: Add YUYV to supported formats

2020-08-07 Thread Noralf Trønnes
Den 31.07.2020 14.51, skrev Oleksandr Andrushchenko: > From: Oleksandr Andrushchenko > > Add YUYV to supported formats, so the frontend can work with the > formats used by cameras and other HW. > > Signed-off-by: Oleksandr Andrushchenko > --- Acked-by: Noralf Trønnes

Re: [PATCH 5/6] drm/xen-front: Pass dumb buffer data offset to the backend

2020-08-07 Thread Noralf Trønnes
Den 31.07.2020 14.51, skrev Oleksandr Andrushchenko: > From: Oleksandr Andrushchenko > > While importing a dmabuf it is possible that the data of the buffer > is put with offset which is indicated by the SGT offset. > Respect the offset value and forward it to the backend. > > Signed-off-by:

Re: [PATCH 0/2] iio: temperature: mlx90632: Add extended calibration calculations

2020-08-07 Thread Crt Mori
On Fri, 7 Aug 2020 at 11:29, Andy Shevchenko wrote: > > On Fri, Aug 7, 2020 at 12:22 PM Crt Mori wrote: > > > > Since the second patch is dependent on the first and was still not > > merged, I have decided to send them together. First patch just makes > > second one more readable as it splits

RE: [PATCH net-next v1] hinic: fix strncpy output truncated compile warnings

2020-08-07 Thread David Laight
From: Luo bin > Sent: 07 August 2020 03:09 > > fix the compile warnings of 'strncpy' output truncated before > terminating nul copying N bytes from a string of the same length > > Signed-off-by: Luo bin > Reported-by: kernel test robot > --- > V0~V1: > - use the strlen()+1 pattern consistently

Re: VAIO EEPROM support in at24

2020-08-07 Thread Jean Delvare
On Wed, 5 Aug 2020 16:36:55 +0200, Jean Delvare wrote: > 1* Do we actually need to use a struct resource? With the current >requirements, that looks overkill to me. We really only need the >start and end offsets of the masked area (or start and length). Or >do you plan to ever support

Re: [PATCH 0/2] iio: temperature: mlx90632: Add extended calibration calculations

2020-08-07 Thread Andy Shevchenko
On Fri, Aug 7, 2020 at 12:22 PM Crt Mori wrote: > > Since the second patch is dependent on the first and was still not > merged, I have decided to send them together. First patch just makes > second one more readable as it splits out the repeated calculation and > that enables the second patch to

Re: [PATCH] x86/paravirt: Add missing noinstr to arch_local*() helpers

2020-08-07 Thread Jürgen Groß
On 07.08.20 11:01, Marco Elver wrote: On Thu, 6 Aug 2020 at 18:06, Marco Elver wrote: On Thu, 6 Aug 2020 at 15:17, Marco Elver wrote: On Thu, Aug 06, 2020 at 01:32PM +0200, pet...@infradead.org wrote: On Thu, Aug 06, 2020 at 09:47:23AM +0200, Marco Elver wrote: Testing my hypothesis that

Re: [PATCH 2/2] iio: imu: adis16480: Add the option to enable/disable burst mode

2020-08-07 Thread Andy Shevchenko
On Tue, Aug 4, 2020 at 1:04 PM Alexandru Ardelean wrote: > > From: Stefan Popa > > Although the burst read function does not require a stall time between > each 16-bit segment, it however requires more processing since the > software needs to look for the BURST_ID and take into account the

Re: [RFC 1/1] pmem: Add cond_resched() in bio_for_each_segment loop in pmem_make_request

2020-08-07 Thread Ritesh Harjani
On 8/4/20 3:21 AM, Dave Chinner wrote: On Mon, Aug 03, 2020 at 12:44:04PM +0530, Ritesh Harjani wrote: On 8/3/20 4:31 AM, Dave Chinner wrote: On Wed, Jul 29, 2020 at 02:15:18PM +0530, Ritesh Harjani wrote: For systems which do not have CONFIG_PREEMPT set and if there is a heavy

[PATCH v2 09/19] kconfig: qconf: remove unused argument from ConfigList::updateList()

2020-08-07 Thread Masahiro Yamada
This function allocates 'item' before using it, so the argument 'item' is always shadowed. Remove the meaningless argument. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 6 +++--- scripts/kconfig/qconf.h | 4 ++-- 2 files changed, 5 insertions(+), 5

RE: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-08-07 Thread 陳昭勳
Hi Jiri, Thanks for your good coding review for this patch, it helps us a lot! > From: Jiri Slaby > Sent: Tuesday, July 14, 2020 5:34 PM > To: Johnson CH Chen (陳昭勳) ; Greg > Kroah-Hartman > Cc: linux-kernel@vger.kernel.org; linux-ser...@vger.kernel.org > Subject: Re: [PATCH] tty: Add MOXA

[PATCH v2 08/19] kconfig: qconf: omit parent to QHBoxLayout()

2020-08-07 Thread Masahiro Yamada
Instead of passing 0 (i.e. nullptr), leave it empty. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index a4b522bb32e5..0b93db2d61aa

[PATCH v2 02/19] kconfig: qconf: do not use 'menu' variable for (QMenuBar *)

2020-08-07 Thread Masahiro Yamada
I think it is a bit confusing to use 'menu' to hold a QMenuBar pointer. I want to use 'menu' for a QMenu pointer. You do not need to use a local variable here. Use menuBar() directly. Signed-off-by: Masahiro Yamada --- Changes in v2: - change subject scripts/kconfig/qconf.cc | 11

[PATCH v2 19/19] kconfig: qconf: move setOptionMode() to ConfigList from ConfigView

2020-08-07 Thread Masahiro Yamada
ConfigView::setOptionMode() only gets access to the 'list' member. Move it to the more relevant ConfigList class. Signed-off-by: Masahiro Yamada --- Changes in v2: - new patch scripts/kconfig/qconf.cc | 46 scripts/kconfig/qconf.h | 9 2

[PATCH 2/2 resend] iio:temperature:mlx90632: Adding extended calibration option

2020-08-07 Thread Crt Mori
For some time market wants medical grade accuracy in medical range, while still retaining the declared accuracy outside of the medical range within the same sensor. That is why we created extended calibration which is automatically switched to when object temperature is too high. This patch also

[PATCH v2 11/19] kconfig: qconf: remove 'parent' from ConfigList::updateMenuList()

2020-08-07 Thread Masahiro Yamada
All the call-sites of this function pass 'this' to the first argument. So, 'parent' is always the 'this' pointer. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 18 +- scripts/kconfig/qconf.h | 2 +- 2 files changed, 10 insertions(+), 10

[PATCH 1/2 v2 resend] iio:temperature:mlx90632: Reduce number of equal calulcations

2020-08-07 Thread Crt Mori
TAdut4 was calculated each iteration although it did not change. In light of near future additions of the Extended range DSP calculations, this function refactoring will help reduce unrelated changes in that series as well as reduce the number of new functions needed. Signed-off-by: Crt Mori ---

[PATCH v2 07/19] kconfig: qconf: remove name from ConfigSearchWindow constructor

2020-08-07 Thread Masahiro Yamada
This constructor is only called with "search" as the second argument. Hard-code the name in the constructor, and drop it from the function argument. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 44 +++-

[PATCH v2 10/19] kconfig: qconf: remove unused argument from ConfigView::updateList()

2020-08-07 Thread Masahiro Yamada
Now that ConfigList::updateList() takes no argument, the 'item' argument ConfigView::updateList() is no longer used. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 8 scripts/kconfig/qconf.h | 2 +- 2 files changed, 5 insertions(+), 5

[PATCH v2 16/19] kconfig: qconf: remove unused voidPix, menuInvPix

2020-08-07 Thread Masahiro Yamada
These are initialized, but not used by anyone. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 2 +- scripts/kconfig/qconf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index

[PATCH v2 18/19] kconfig: qconf: do not limit the pop-up menu to the first row

2020-08-07 Thread Masahiro Yamada
If you right-click the first row in the option tree, the pop-up menu shows up, but if you right-click the second row or below, the event is ignored due to the following check: if (e->y() <= header()->geometry().bottom()) { Perhaps, the intention was to show the pop-menu only when the tree

[PATCH v2 06/19] kconfig: qconf: remove unused ConfigList::listView()

2020-08-07 Thread Masahiro Yamada
I do not know how this function can be useful. In fact, it is unsed. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.h | 4 1 file changed, 4 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index b80683998635..6e6bb0a96348

[PATCH v2 13/19] kconfig: qconf: remove ConfigItem::pixmap/setPixmap

2020-08-07 Thread Masahiro Yamada
Use QTreeWidgetItem::icon/setIcon directly. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 22 +++--- scripts/kconfig/qconf.h | 8 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/scripts/kconfig/qconf.cc

[PATCH v2 12/19] kconfig: qconf: drop more localization code

2020-08-07 Thread Masahiro Yamada
This is a remnant of commit 694c49a7c01c ("kconfig: drop localization support"). Get it back to the code prior to commit 3b9fa0931dd8 ("[PATCH] Kconfig i18n support"). Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 11 +++ 1 file changed, 3

[PATCH v2 05/19] kconfig: qconf: overload addToolBar() to create and insert toolbar

2020-08-07 Thread Masahiro Yamada
Use the overloaded function, addToolBar(const QString ) to create a QToolBar object, setting its window title, and inserts it into the toolbar area. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v2 17/19] kconfig: qconf: refactor icon setups

2020-08-07 Thread Masahiro Yamada
These icon data are used by ConfigItem, but stored in each instance of ConfigView. There is no point to keep the same data in each of 3 instances, "menu", "config", and "search". Move the icon data to the more relevant ConfigItem class, and make them static members. Signed-off-by: Masahiro

[PATCH v2 03/19] kconfig: qconf: use 'menu' variable for (QMenu *)

2020-08-07 Thread Masahiro Yamada
The variable 'config' for the file menu is inconsistent. You do not need to use different variables. Use 'menu' for every menu. Signed-off-by: Masahiro Yamada --- Changes in v2: - new patch scripts/kconfig/qconf.cc | 41 1 file changed, 20

[PATCH 0/2] iio: temperature: mlx90632: Add extended calibration calculations

2020-08-07 Thread Crt Mori
Since the second patch is dependent on the first and was still not merged, I have decided to send them together. First patch just makes second one more readable as it splits out the repeated calculation and that enables the second patch to tweak the variable to the new condition. Crt Mori (2):

[PATCH v2 04/19] kconfig: qconf: remove toolBar from ConfigMainWindow members

2020-08-07 Thread Masahiro Yamada
This pointer is only used in the ConfigMainWindow constructor. Drop it from the private members. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 2 +- scripts/kconfig/qconf.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 15/19] kconfig: qconf: remove ConfigItem::text/setText

2020-08-07 Thread Masahiro Yamada
Use QTreeWidgetItem::text/setText directly Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.h | 8 1 file changed, 8 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index daa180bdb9b4..012414dcdee5 100644 ---

[PATCH v2 14/19] kconfig: qconf: remove ConfigList::addColumn/removeColumn

2020-08-07 Thread Masahiro Yamada
Use QTreeView::showColumn/hideColumn directly. Signed-off-by: Masahiro Yamada --- (no changes since v1) scripts/kconfig/qconf.cc | 22 +++--- scripts/kconfig/qconf.h | 8 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/scripts/kconfig/qconf.cc

[PATCH v2 01/19] kconfig: qconf: remove ->addSeparator() to menuBar

2020-08-07 Thread Masahiro Yamada
I do not understand the purpose of this ->addSeparator(). It does not make any difference. Signed-off-by: Masahiro Yamada --- Changes in v2: - new patch scripts/kconfig/qconf.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index

[PATCH] ASoC: fsl_sai: Add -EPROBE_DEFER check for regmap init

2020-08-07 Thread Shengjiu Wang
Regmap initialization may return -EPROBE_DEFER for clock may not be ready, so check -EPROBE_DEFER error type before start another Regmap initialization. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

RE: [PATCH 25/26] net: pass a sockptr_t into ->setsockopt

2020-08-07 Thread David Laight
From: Eric Dumazet > Sent: 06 August 2020 23:21 > > On 7/22/20 11:09 PM, Christoph Hellwig wrote: > > Rework the remaining setsockopt code to pass a sockptr_t instead of a > > plain user pointer. This removes the last remaining set_fs(KERNEL_DS) > > outside of architecture specific code. > > > >

Re: KASAN: use-after-free Read in rc_dev_uevent

2020-08-07 Thread Sean Young
On Fri, Aug 07, 2020 at 12:26:29AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:7b4ea945 Revert "x86/mm/64: Do not sync vmalloc/ioremap ma.. > git tree: > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > console

[PATCH 02/10] mm/hugetlb: make sure to get NULL when list is empty

2020-08-07 Thread Wei Yang
list_first_entry() may not return NULL even when the list is empty. Let's make sure the behavior by using list_first_entry_or_null(), otherwise it would corrupt the list. Signed-off-by: Wei Yang --- mm/hugetlb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/hugetlb.c

[PATCH 07/10] mm/hugetlb: a page from buddy is not on any list

2020-08-07 Thread Wei Yang
The page allocated from buddy is not on any list, so just use list_add() is enough. Signed-off-by: Wei Yang --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index fb09e5a83c39..b8e844911b5a 100644 --- a/mm/hugetlb.c +++

[PATCH 08/10] mm/hugetlb: return non-isolated page in the loop instead of break and check

2020-08-07 Thread Wei Yang
Function dequeue_huge_page_node_exact() iterates the free list and return the first non-isolated one. Instead of break and check the loop variant, we could return in the loop directly. This could reduce some redundant check. Signed-off-by: Wei Yang --- mm/hugetlb.c | 26

[PATCH 09/10] mm/hugetlb: narrow the hugetlb_lock protection area during preparing huge page

2020-08-07 Thread Wei Yang
set_hugetlb_cgroup_[rsvd] just manipulate page local data, which is not necessary to be protected by hugetlb_lock. Let's take this out. Signed-off-by: Wei Yang --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index

[PATCH 05/10] mm/hugetlb: remove the redundant check on non_swap_entry()

2020-08-07 Thread Wei Yang
Migration and hwpoison entry is a subset of non_swap_entry(). Remove the redundant check on non_swap_entry(). Signed-off-by: Wei Yang --- mm/hugetlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index d775e514eb2e..f5f04e89000d 100644 ---

[PATCH 03/10] mm/hugetlb: use list_splice to merge two list at once

2020-08-07 Thread Wei Yang
Instead of add allocated file_region one by one to region_cache, we could use list_splice to merge two list at once. Also we know the number of entries in the list, increase the number directly. Signed-off-by: Wei Yang --- mm/hugetlb.c | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH 00/10] mm/hugetlb: code refine and simplification

2020-08-07 Thread Wei Yang
Following are some cleanup for hugetlb. Simple test with tools/testing/selftests/vm/map_hugetlb pass. Wei Yang (10): mm/hugetlb: not necessary to coalesce regions recursively mm/hugetlb: make sure to get NULL when list is empty mm/hugetlb: use list_splice to merge two list at once

[PATCH 06/10] mm/hugetlb: remove redundant huge_pte_alloc() in hugetlb_fault()

2020-08-07 Thread Wei Yang
Before proper processing, huge_pte_alloc() would be called un-conditionally. It is not necessary to do this when ptep is NULL. Signed-off-by: Wei Yang --- mm/hugetlb.c | 4 1 file changed, 4 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index f5f04e89000d..fb09e5a83c39 100644 ---

[PATCH 10/10] mm/hugetlb: not necessary to abuse temporary page to workaround the nasty free_huge_page

2020-08-07 Thread Wei Yang
Let's always increase surplus_huge_pages and so that free_huge_page could decrease it at free time. Signed-off-by: Wei Yang --- mm/hugetlb.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1f2010c9dd8d..a0eb81e0e4c5 100644 ---

[PATCH 01/10] mm/hugetlb: not necessary to coalesce regions recursively

2020-08-07 Thread Wei Yang
Per my understanding, we keep the regions ordered and would always coalesce regions properly. So the task to keep this property is just to coalesce its neighbour. Let's simplify this. Signed-off-by: Wei Yang --- mm/hugetlb.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH 04/10] mm/hugetlb: count file_region to be added when regions_needed != NULL

2020-08-07 Thread Wei Yang
There are only two cases of function add_reservation_in_range() * count file_region and return the number in regions_needed * do the real list operation without counting This means it is not necessary to have two parameters to classify these two cases. Just use regions_needed to

Re: [PATCH RFC leds + net-next v3 2/2] net: phy: marvell: add support for PHY LEDs via LED class

2020-08-07 Thread Pavel Machek
On Sat 2020-07-25 20:48:46, Andrew Lunn wrote: > > > > +#if 0 > > > > + /* LED_COLOR_ID_MULTI is not yet merged in Linus' tree */ > > > > + /* TODO: Support DUAL MODE */ > > > > + if (color == LED_COLOR_ID_MULTI) { > > > > + phydev_warn(phydev, "node %pOF: This

Re: [PATCH v2] drm/vkms: guarantee vblank when capturing crc

2020-08-07 Thread Daniel Vetter
On Thu, Aug 06, 2020 at 08:17:05AM -0300, Melissa Wen wrote: > VKMS needs vblank interrupts enabled to capture CRC. When vblank is > disabled, tests like kms_cursor_crc and kms_pipe_crc_basic getting stuck > waiting for a capture that will not occur until vkms wakes up. This patch > adds a helper

Re: [PATCH v2] hwmon/pmbus: use simple i2c probe function

2020-08-07 Thread Wolfram Sang
On Fri, Aug 07, 2020 at 09:45:26AM +0200, Stephen Kitt wrote: > pmbus_do_probe doesn't use the id information provided in its second > argument, so this can be removed, which then allows using the > single-parameter i2c probe function ("probe_new") for probes. > > This avoids scanning the

RE: [PATCH 3/3] quota: simplify the quotactl compat handling

2020-08-07 Thread David Laight
From: Christoph Hellwig > Sent: 31 July 2020 13:22 > > Fold the misaligned u64 workarounds into the main quotactl flow instead > of implementing a separate compat syscall handler. > ... > diff --git a/fs/quota/compat.h b/fs/quota/compat.h > new file mode 100644 > index

Re: [PATCH 1/1] Drivers: hv: vmbus: Only notify Hyper-V for die events that are oops

2020-08-07 Thread Vitaly Kuznetsov
Michael Kelley writes: > Hyper-V currently may be notified of a panic for any die event. But > this results in false panic notifications for various user space traps > that are die events. Fix this by ignoring die events that aren't oops. > > Fixes: 510f7aef65bb ("Drivers: hv: vmbus: prefer

Re: [PATCH RFC leds + net-next v4 0/2] Add support for LEDs on Marvell PHYs

2020-08-07 Thread Pavel Machek
Hi! > this is v4 of my RFC adding support for LEDs connected to Marvell PHYs. > > Please note that if you want to test this, you still need to first apply > the patch adding the LED private triggers support from Pavel's tree. >

Re: [RFC 0/9] KVM:x86/mmu:Introduce parallel memory virtualization to boost performance

2020-08-07 Thread yulei zhang
On Fri, Aug 7, 2020 at 1:04 AM Ben Gardon wrote: > > On Wed, Aug 5, 2020 at 9:53 AM Yulei Zhang wrote: > > > > From: Yulei Zhang > > > > Currently in KVM memory virtulization we relay on mmu_lock to synchronize > > the memory mapping update, which make vCPUs work in serialize mode and > > slow

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-07 Thread peterz
On Fri, Aug 07, 2020 at 02:24:30PM +0800, Jin, Yao wrote: > Hi Peter, > > On 8/6/2020 7:00 PM, pet...@infradead.org wrote: > > On Thu, Aug 06, 2020 at 11:18:27AM +0200, pet...@infradead.org wrote: > > > > > Suppose we have nested virt: > > > > > > L0-hv > > > | > > > G0/L1-hv > > > |

Re: [PATCH] x86/paravirt: Add missing noinstr to arch_local*() helpers

2020-08-07 Thread Marco Elver
On Thu, 6 Aug 2020 at 18:06, Marco Elver wrote: > On Thu, 6 Aug 2020 at 15:17, Marco Elver wrote: > > On Thu, Aug 06, 2020 at 01:32PM +0200, pet...@infradead.org wrote: > > > On Thu, Aug 06, 2020 at 09:47:23AM +0200, Marco Elver wrote: > > > > Testing my hypothesis that raw then nested non-raw >

[PATCH] kcsan: Treat runtime as NMI-like with interrupt tracing

2020-08-07 Thread Marco Elver
Since KCSAN instrumentation is everywhere, we need to treat the hooks NMI-like for interrupt tracing. In order to present an as 'normal' as possible context to the code called by KCSAN when reporting errors, we need to update the IRQ-tracing state. Tested: Several runs through kcsan-test with

[RESEND Patch 0/2] trivial cleanup for get_count_order[_long]

2020-08-07 Thread Wei Yang
The following two patches cleanup get_count_order[_long] a little. The lib/test_bitops pass with these two patches. Wei Yang (2): bitops: simplify get_count_order_long() bitops: use the same mechanism for get_count_order[_long] include/linux/bitops.h | 13 - 1 file changed, 4

[RESEND Patch 2/2] bitops: use the same mechanism for get_count_order[_long]

2020-08-07 Thread Wei Yang
These two functions share the same logic. Signed-off-by: Wei Yang --- include/linux/bitops.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 030a98f0c452..5b74bdf159d6 100644 --- a/include/linux/bitops.h +++

[RESEND Patch 1/2] bitops: simplify get_count_order_long()

2020-08-07 Thread Wei Yang
These two cases could be unified into one. Signed-off-by: Wei Yang --- include/linux/bitops.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 99f2ac30b1d9..030a98f0c452 100644 --- a/include/linux/bitops.h +++

Re: [v1] drm/msm/dpu: Fix reservation failures in modeset

2020-08-07 Thread daniel
On Wed, Aug 05, 2020 at 08:48:34AM -0700, Rob Clark wrote: > On Wed, Aug 5, 2020 at 6:34 AM Kalyan Thota wrote: > > > > In TEST_ONLY commit, rm global_state will duplicate the > > object and request for new reservations, once they pass > > then the new state will be swapped with the old and will

Re: [PATCH] drm/gma500: fix spelling mistake "pannel" -> "panel"

2020-08-07 Thread daniel
On Wed, Aug 05, 2020 at 01:42:27PM +0100, Colin King wrote: > From: Colin Ian King > > There a handful of spelling mistakes. fix them. > > Signed-off-by: Colin Ian King Queued up for 5.10, should show up in linux-next right after the merge window closes. -Daniel > --- >

Re: [PATCH] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-07 Thread Martijn Coenen
Hi Lennart, Thanks again for the patch, I tested it and it looks good to me. I'll also add a test case to LTP for this. Two minor nits on the patch: On Thu, Aug 6, 2020 at 9:32 AM Lennart Poettering wrote: > Let's correct that and propagate the flag in LOOP_SETSTATUS too. Think you meant

Re: [PATCH v3 2/2] dma-pool: Only allocate from CMA when in same memory zone

2020-08-07 Thread Nicolas Saenz Julienne
On Fri, 2020-08-07 at 07:21 +0200, Christoph Hellwig wrote: > On Thu, Aug 06, 2020 at 08:47:55PM +0200, Nicolas Saenz Julienne wrote: > > There is no guarantee to CMA's placement, so allocating a zone specific > > atomic pool from CMA might return memory from a completely different > > memory

Re: [PATCH RFC v2 02/18] irq/dev-msi: Add support for a new DEV_MSI irq domain

2020-08-07 Thread Thomas Gleixner
Megha, "Dey, Megha" writes: > On 8/6/2020 1:21 PM, Thomas Gleixner wrote: >> If you expect or know that there are other devices coming up with IMS >> integrated then most of that code can be made a common library. But for >> this to make sense, you really want to make sure that these other >>

Re: [GIT PULL] x86/mm changes for v5.9

2020-08-07 Thread Joerg Roedel
On Thu, Aug 06, 2020 at 11:20:19PM +0200, Ingo Molnar wrote: > I've reverted it in x86/urgent as well earlier today, can send you > that tree right now if you prefer that route. I sent a fix for preallocate_vmalloc_pages() to correctly pre-allocate the vmalloc PGD entries. I verified that it

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-07 Thread Kirill Tkhai
On 06.08.2020 11:05, Andrei Vagin wrote: > On Mon, Aug 03, 2020 at 01:03:17PM +0300, Kirill Tkhai wrote: >> On 31.07.2020 01:13, Eric W. Biederman wrote: >>> Kirill Tkhai writes: >>> On 30.07.2020 17:34, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> Currently, there is no

[RFC 5/7] KVM: MMU: Add support for PKS emulation

2020-08-07 Thread Chenyi Qiang
Advertise pkr_mask to cache the conditions where pretection key checks for supervisor pages are needed. When the accessed pages are those with a translation for which the U/S flag is 0 in at least one paging-structure entry controlling the translation, they are the supervisor pages and PKRS

[RFC 3/7] KVM: MMU: Rename the pkru to pkr

2020-08-07 Thread Chenyi Qiang
PKRU represents the PKU register utilized in the protection key rights check for user pages. Protection Keys for Superviosr Pages (PKS) extends the protection key architecture to cover supervisor pages. Rename the *pkru* related variables and functions to *pkr* which stands for both of the PKRU

[RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-07 Thread Chenyi Qiang
PKS MSR passes through guest directly. Configure the MSR to match the L0/L1 settings so that nested VM runs PKS properly. Signed-off-by: Chenyi Qiang --- arch/x86/kvm/vmx/nested.c | 32 arch/x86/kvm/vmx/vmcs12.c | 2 ++ arch/x86/kvm/vmx/vmcs12.h | 6 +-

[RFC 1/7] KVM: VMX: Introduce PKS VMCS fields

2020-08-07 Thread Chenyi Qiang
PKS(Protection Keys for Supervisor Pages) is a feature that extends the Protection Key architecture to support thread-specific permission restrictions on supervisor pages. A new PKS MSR(PKRS) is defined in kernel to support PKS, which holds a set of permissions associated with each protection

[RFC 2/7] KVM: VMX: Expose IA32_PKRS MSR

2020-08-07 Thread Chenyi Qiang
Protection Keys for Supervisor Pages (PKS) uses IA32_PKRS MSR (PKRS) at index 0x6E1 to allow software to manage supervisor protection key rights. For performance consideration, PKRS intercept will be disabled so that the guest can access the PKRS without VM exits. PKS introduces dedicated control

[RFC 0/7] KVM: PKS Virtualization support

2020-08-07 Thread Chenyi Qiang
This RFC series introduce the KVM support for PKS which have dependency on PKS kernel patches for some definitions. The latest kernel patch set can be found at https://lore.kernel.org/lkml/20200717072056.73134-1-ira.we...@intel.com/ --- Protection Keys for Supervisor Pages(PKS) is a feature that

[RFC 6/7] KVM: X86: Expose PKS to guest and userspace

2020-08-07 Thread Chenyi Qiang
Existence of PKS is enumerated via CPUID.(EAX=7H,ECX=0):ECX[31]. It is enabled by setting CR4.PKS when long mode is active. PKS is only implemented when EPT is enabled and requires the support of VM_{ENTRY, EXIT}_LOAD_IA32_PKRS currently. Signed-off-by: Chenyi Qiang ---

[RFC 4/7] KVM: MMU: Refactor pkr_mask to cache condition

2020-08-07 Thread Chenyi Qiang
pkr_mask bitmap indicates if protection key checks are needed for user pages currently. It is indexed by page fault error code bits [4:1] with PFEC.RSVD replaced by the ACC_USER_MASK from the page tables. Refactor it by reverting to the use of PFEC.RSVD. After that, PKS and PKU can share the same

Re: [PATCH v2 2/4] media: i2c: ov5640: Enable data pins on poweron for DVP mode

2020-08-07 Thread Jacopo Mondi
Hi Prabhakar, + Paul who is working with this chip on a parallel setup On Thu, Aug 06, 2020 at 05:38:57PM +0100, Lad, Prabhakar wrote: > Hi Jacopo, > > Thank you for the review. > > On Thu, Aug 6, 2020 at 5:27 PM Jacopo Mondi wrote: > > > > Hi Prabhakar, > > > > On Mon, Aug 03, 2020 at

[GIT PULL for v5.9-rc1] media updates

2020-08-07 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.9-1 for: - Legacy soc_camera driver was removed from staging; - New I2C sensor related drivers: dw9768, ch7322, max9271, rdacm20; - TI vpe driver code was re-organized and had new

Re: [PATCH 1/5] ARM: dts: r8a7742-iwg21d-q7: Enable cmt0

2020-08-07 Thread Geert Uytterhoeven
On Thu, Aug 6, 2020 at 8:32 PM Lad Prabhakar wrote: > Enable cmt0 support on r8a7742-iwg21d-q7 board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.10. Gr{oetje,eeting}s,

Re: [PATCH 5/5] ARM: dts: r8a7742: Add TPU support

2020-08-07 Thread Geert Uytterhoeven
On Thu, Aug 6, 2020 at 8:32 PM Lad Prabhakar wrote: > Add TPU support to R8A7742 SoC DT. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.10. Gr{oetje,eeting}s, Geert

Re: [PATCH 3/5] ARM: dts: r8a7742: Add PWM SoC support

2020-08-07 Thread Geert Uytterhoeven
On Thu, Aug 6, 2020 at 8:32 PM Lad Prabhakar wrote: > Add the definitions for pwm[0123456] to the SoC .dtsi. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.10. Gr{oetje,eeting}s,

[PATCH 7/7] KVM: selftests: test KVM_GET_SUPPORTED_HV_CPUID as a system ioctl

2020-08-07 Thread Vitaly Kuznetsov
KVM_GET_SUPPORTED_HV_CPUID is now supported as both vCPU and VM ioctl, test that. Signed-off-by: Vitaly Kuznetsov --- .../testing/selftests/kvm/include/kvm_util.h | 2 + tools/testing/selftests/kvm/lib/kvm_util.c| 26 +++ .../selftests/kvm/x86_64/hyperv_cpuid.c | 46

[PATCH] x86/mm/64: Do not dereference non-present PGD entries

2020-08-07 Thread Joerg Roedel
From: Joerg Roedel The code for preallocate_vmalloc_pages() was written under the assumption that the p4d_offset() and pud_offset() functions will perform present checks before dereferencing the parent entries. This assumption is wrong an leads to a bug in the code which causes the physical

[PATCH 6/7] KVM: x86: hyper-v: allow KVM_GET_SUPPORTED_HV_CPUID as a system ioctl

2020-08-07 Thread Vitaly Kuznetsov
KVM_GET_SUPPORTED_HV_CPUID is a vCPU ioctl but its output is now independent from vCPU and in some cases VMMs may want to use it as a system ioctl instead. In particular, QEMU doesn CPU feature expansion before any vCPU gets created so KVM_GET_SUPPORTED_HV_CPUID can't be used. Convert

[PATCH 2/7] KVM: x86: hyper-v: disallow configuring SynIC timers with no SynIC

2020-08-07 Thread Vitaly Kuznetsov
Hyper-V Synthetic timers require SynIC but we don't seem to check that upon HV_X64_MSR_STIMER[X]_CONFIG/HV_X64_MSR_STIMER0_COUNT writes. Make the behavior match synic_set_msr(). Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH 5/7] KVM: x86: hyper-v: drop now unneeded vcpu parameter from kvm_vcpu_ioctl_get_hv_cpuid()

2020-08-07 Thread Vitaly Kuznetsov
kvm_vcpu_ioctl_get_hv_cpuid() doesn't use its vcpu parameter anymore, drop it. Also, the function is now untied from vcpu, rename it accordingly. No functional change intended. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 3 +-- arch/x86/kvm/hyperv.h | 3 +-- arch/x86/kvm/x86.c

[PATCH 0/7] KVM: x86: hyper-v: make KVM_GET_SUPPORTED_HV_CPUID more useful

2020-08-07 Thread Vitaly Kuznetsov
KVM_GET_SUPPORTED_HV_CPUID was initially implemented as a vCPU ioctl but this is not very useful when VMM is just trying to query which Hyper-V features are supported by the host prior to creating VM/vCPUs. The data in KVM_GET_SUPPORTED_HV_CPUID is mostly static with a few exceptions but it seems

Re: [RFC PATCH 0/1] Add LTR controls

2020-08-07 Thread Hans Verkuil
On 06/08/2020 13:05, diksh...@codeaurora.org wrote: > On 2020-07-22 19:56, Hans Verkuil wrote: >> On 20/07/2020 16:33, diksh...@codeaurora.org wrote: >>> On 2020-07-16 14:25, Hans Verkuil wrote: On 16/06/2020 20:41, diksh...@codeaurora.org wrote: > Hi Hans, Nicolas, > > Thanks for

Re: [PATCH 4/5] dt-bindings: pwm: renesas,tpu-pwm: Document r8a7742 support

2020-08-07 Thread Geert Uytterhoeven
On Thu, Aug 6, 2020 at 8:32 PM Lad Prabhakar wrote: > Document r8a7742 specific compatible strings. No driver change is > needed as the fallback compatible string "renesas,tpu" activates the > right code in the driver. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu >

[PATCH 3/7] KVM: x86: hyper-v: make KVM_GET_SUPPORTED_HV_CPUID output independent of eVMCS enablement

2020-08-07 Thread Vitaly Kuznetsov
It is really inconvenient when KVM_GET_SUPPORTED_HV_CPUID output depends on whether some other capabilities are enabled as VMM needs to be aware of the correct sequence (which becomes an API). Enlightened VMCS is not the only feature which requires explicit enablement. In particular, SynIC has to

<    3   4   5   6   7   8   9   10   >