Re: [PATCH v2 0/4] x86/fpu: Reduce unnecessary FNINIT and MXCSR usage

2021-01-19 Thread Krzysztof Olędzki
On 2021-01-19 at 09:38, Andy Lutomirski wrote: This series fixes two regressions: a boot failure on AMD K7 and a performance regression on everything. I did a double-take here -- the regressions were reported by different people, both named Krzysztof :) Changes from v1: - Fix MMX better --

Re: [PATCH v3 2/3] reset: mchp: sparx5: add switch reset driver

2021-01-19 Thread Steen Hegelund
Hi Alex, On Tue, 2021-01-19 at 21:37 +0100, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > Hi, > > This commit is also missing a commit message and you could probably > get > some info from your cover letter here. I

Re: [PATCH v5] venus: core: add support to dump FW region

2021-01-19 Thread Stephen Boyd
Quoting Dikshita Agarwal (2020-12-15 10:08:36) > Add support to dump video FW region during FW crash > using devcoredump helpers. > > Signed-off-by: Dikshita Agarwal > Reviewed-by: Stephen Boyd > Reviewed-by: Stanimir Varbanov > > Major changes since v1: > - update the name of function

Re: “KASAN: null-ptr-deref Write in event_handler” and "KASAN: null-ptr-deref Write in vhci_shutdown_connection" should share the same root cause.

2021-01-19 Thread Greg KH
On Wed, Jan 20, 2021 at 11:22:11AM +0800, 慕冬亮 wrote: > Dear kernel developers, > > I found that on the syzbot dashboard, “KASAN: null-ptr-deref Write in > event_handler”[1] and > "KASAN: null-ptr-deref Write in vhci_shutdown_connection" () should > share the same root cause. > > > The reasons

Re: [PATCH] swap: Check nrexceptional of swap cache before being freed

2021-01-19 Thread Huang, Ying
Michal Hocko writes: > On Wed 20-01-21 15:27:11, Huang Ying wrote: >> To catch the error in updating the swap cache shadow entries or their count. > > What is the error? There's no error in the current code. But we will change the related code in the future. So this checking will help us to

[PATCH net-next v2 3/3] xsk: build skb by page

2021-01-19 Thread Xuan Zhuo
This patch is used to construct skb based on page to save memory copy overhead. This function is implemented based on IFF_TX_SKB_NO_LINEAR. Only the network card priv_flags supports IFF_TX_SKB_NO_LINEAR will use page to directly construct skb. If this feature is not supported, it is still

Re: [PATCH v3 1/3] dt-bindings: reset: microchip sparx5 reset driver bindings

2021-01-19 Thread Steen.Hegelund
Hi Alex, On Tue, 2021-01-19 at 21:35 +0100, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > Hi, > > Every patches need a commit message, even if in this case it will be > very small. Yes that is a mistake. I will

Re: [PATCH] sched/deadline: Reduce rq lock contention in dl_add_task_root_domain()

2021-01-19 Thread Daniel Bristot de Oliveira
On 1/19/21 9:35 AM, Dietmar Eggemann wrote: > dl_add_task_root_domain() is called during sched domain rebuild: > > rebuild_sched_domains_locked() > partition_and_rebuild_sched_domains() > rebuild_root_domains() > for all top_cpuset descendants: >

Re: [PATCH 1/2] ecryptfs: fix uid translation for setxattr on security.capability

2021-01-19 Thread Miklos Szeredi
On Tue, Jan 19, 2021 at 10:11 PM Eric W. Biederman wrote: > > Miklos Szeredi writes: > > > Prior to commit 7c03e2cda4a5 ("vfs: move cap_convert_nscap() call into > > vfs_setxattr()") the translation of nscap->rootid did not take stacked > > filesystems (overlayfs and ecryptfs) into account. > >

[PATCH 1/2] powerpc/47x: Disable 256k page size

2021-01-19 Thread Christophe Leroy
PPC47x_TLBE_SIZE isn't defined for 256k pages, so this size of page shall not be selected for 47x. Reported-by: kernel test robot Fixes: e7f75ad01d59 ("powerpc/47x: Base ppc476 support") Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2021-01-19 Thread Chenyang Li
This patch adds an initial DRM driver for the Loongson LS7A1000 bridge chip(LS7A). The LS7A bridge chip contains two display controllers, support dual display output. The maximum support for each channel display is to 1920x1080@60Hz. At present, DC device detection and DRM driver registration are

[PATCH 2/2] powerpc/44x: Remove STDBINUTILS kconfig option

2021-01-19 Thread Christophe Leroy
STDBINUTILS is just a toggle to allow 256k page size to appear in the possible page sizes list for the 44x. Make 256k page size appear all the time with an explicit warning on binutils, and remove this unneccessary STDBINUTILS config option. Signed-off-by: Christophe Leroy ---

[PATCH net-next v2 2/3] virtio-net: support IFF_TX_SKB_NO_LINEAR

2021-01-19 Thread Xuan Zhuo
Virtio net supports the case where the skb linear space is empty, so add priv_flags. Signed-off-by: Xuan Zhuo --- drivers/net/virtio_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index ba8e637..f2ff6c3 100644 ---

[PATCH V1] clk: qcom: gcc-sc7180: Mark the MM XO clocks to be always ON

2021-01-19 Thread Taniya Das
There are intermittent GDSC power-up failures observed for titan top gdsc, which requires the XO clock. Thus mark all the MM XO clocks always enabled from probe. Fixes: 8d4025943e13 ("clk: qcom: camcc-sc7180: Use runtime PM ops instead of clk ones") Signed-off-by: Taniya Das ---

[PATCH] iio: hid-sensor-prox: Fix scale not correct issue

2021-01-19 Thread Ye Xiang
Currently, the proxy sensor scale is zero because it just return the exponent directly. To fix this issue, this patch use hid_sensor_format_scale to process the scale first then return the output. Signed-off-by: Ye Xiang --- drivers/iio/light/hid-sensor-prox.c | 13 +++-- 1 file

[PATCH] watchdog/hpwdt: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/watchdog/hpwdt.c:345:2-12: WARNING: Assignment of 0/1 to bool variable. ./drivers/watchdog/hpwdt.c:126:2-12: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/watchdog/hpwdt.c | 6

[PATCH] iio: hid-sensor-rotation: Fix quaternion data not correct

2021-01-19 Thread Ye Xiang
Because the data of HID_USAGE_SENSOR_ORIENT_QUATERNION defined by ISH FW is s16, but quaternion data type is in_rot_quaternion_type(le:s16/32X4>>0), need to transform data type from s16 to s32 Signed-off-by: Ye Xiang --- drivers/iio/orientation/hid-sensor-rotation.c | 13 ++--- 1 file

Re: [PATCH] swap: Check nrexceptional of swap cache before being freed

2021-01-19 Thread Michal Hocko
On Wed 20-01-21 15:27:11, Huang Ying wrote: > To catch the error in updating the swap cache shadow entries or their count. What is the error? Can it happens in the real life? Why do we need this patch? Is crashing the kernel the right way to handle the situation? > Signed-off-by: "Huang, Ying"

Re: [PATCH v2] of: property: Add fw_devlink support for "gpio" and "gpios" binding

2021-01-19 Thread Saravana Kannan
On Tue, Jan 19, 2021 at 11:33 PM Saravana Kannan wrote: > > To provide backward compatibility for boards that use deprecated DT > bindings, we need to add fw_devlink support for "gpio" and "gpios". > > Cc: linux-tegra > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: Greg Kroah-Hartman >

[PATCH 2/3] hid-sensor-common: Add relative sensitivity check

2021-01-19 Thread Ye Xiang
Some hid sensors may use relative sensitivity such as als sensor. This patch add relative sensitivity check for all hid-sensors. Signed-off-by: Ye Xiang --- .../iio/common/hid-sensors/hid-sensor-attributes.c| 11 ++- include/linux/hid-sensor-ids.h| 1 + 2

[PATCH 3/3] hid-sensors: Add more data fields for sensitivity checking

2021-01-19 Thread Ye Xiang
Before, when reading/writing the hysteresis of als, incli-3d, press, and rotation sensor, we will get invalid argument error. This patch add more sensitivity data fields for these sensors, so that these sensors can get sensitivity index and return correct hysteresis value. Signed-off-by: Ye

[PATCH 1/3] iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common

2021-01-19 Thread Ye Xiang
No functional change has been made with this patch. The main intent here is to reduce code repetition of get sensitivity attribute. In the current implementation, sensor_hub_input_get_attribute_info() is called from multiple drivers to get attribute info for sensitivity field. Moving this to

[PATCH 0/3] resolve read hystersis return invalid argument issue for hid sensors

2021-01-19 Thread Ye Xiang
This patch series move get sensitivity attribute to common layer and resolve read hystersis return invalid argument issue for hid sensors als, incli-3d, rotation, and press on intel ISH Platform. Ye Xiang (3): iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common

[PATCH] pinctrl: nomadik: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/pinctrl/nomadik/pinctrl-nomadik.c:1397:6-16: WARNING: Assignment of 0/1 to bool variable. ./drivers/pinctrl/nomadik/pinctrl-nomadik.c:1380:4-14: WARNING: Assignment of 0/1 to bool variable. ./drivers/pinctrl/nomadik/pinctrl-nomadik.c:1370:6-16:

[PATCH v7 03/14] phy: tegra: xusb: Move usb3 port init for Tegra210

2021-01-19 Thread JC Kuo
The programming sequence in tegra210_usb3_port_enable() is required for both cold boot and SC7 exit, and must be performed only after PEX/SATA UPHY is initialized. Therefore, this commit moves the programming sequence to tegra210_usb3_phy_power_on(). PCIE/SATA phy .power_on() stub will invoke

[PATCH] HID: wacom: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/hid/wacom_wac.c:2536:2-6: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/hid/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/wacom_wac.c

Re: [PATCH v2 2/2] Input: ads7846: convert to one message

2021-01-19 Thread Oleksij Rempel
Hi Dmitry, On Tue, Nov 17, 2020 at 04:31:38PM -0800, Dmitry Torokhov wrote: > On Tue, Nov 10, 2020 at 09:50:41AM +0100, Oleksij Rempel wrote: > > Convert multiple full duplex transfers in to a single transfer to reduce > > CPU load. > > > > Current driver version support following filtering

[PATCH v7 05/14] phy: tegra: xusb: Add Tegra210 lane_iddq operation

2021-01-19 Thread JC Kuo
As per Tegra210 TRM, before changing lane assignments, driver should keep lanes in IDDQ and sleep state; after changing lane assignments, driver should bring lanes out of IDDQ. This commit implements the required operations. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v7: no change

Re: [PATCH 0/2] capability conversion fixes

2021-01-19 Thread Miklos Szeredi
On Tue, Jan 19, 2021 at 10:15 PM Eric W. Biederman wrote: > > Miklos Szeredi writes: > > > It turns out overlayfs is actually okay wrt. mutliple conversions, because > > it uses the right context for lower operations. I.e. before calling > > vfs_{set,get}xattr() on underlying fs, it overrides

[PATCH] mmc: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/mmc/host/atmel-mci.c:2436:2-34: WARNING: Assignment of 0/1 to bool variable. ./drivers/mmc/host/atmel-mci.c:2425:2-20: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong ---

[PATCH v7 06/14] phy: tegra: xusb: Add sleepwalk and suspend/resume

2021-01-19 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered.

Re: [PATCH] opp: Prepare for ->set_opp() helper to work without regulators

2021-01-19 Thread Viresh Kumar
On 19-01-21, 20:16, Dmitry Osipenko wrote: > 19.01.2021 09:35, Viresh Kumar пишет: > > + mutex_lock(_table->lock); > > + opp_table->set_opp_data = data; > > + if (opp_table->sod_supplies) { > > + data->old_opp.supplies = opp_table->sod_supplies; > > +

[PATCH v7 07/14] soc/tegra: pmc: Provide USB sleepwalk register map

2021-01-19 Thread JC Kuo
This commit implements a register map which grants USB (UTMI and HSIC) sleepwalk registers access to USB PHY drivers. The USB sleepwalk logic is in PMC hardware block but USB PHY drivers have the best knowledge of proper programming sequence. Signed-off-by: JC Kuo Acked-by: Thierry Reding ---

[PATCH v7 11/14] phy: tegra: xusb: Tegra210 host mode VBUS control

2021-01-19 Thread JC Kuo
To support XUSB host controller ELPG, this commit moves VBUS control .phy_power_on()/.phy_power_off() to .phy_init()/.phy_exit(). When XUSB host controller enters ELPG, host driver invokes .phy_power_off(), VBUS should remain ON so that USB devices will not disconnect. VBUS can be turned OFF when

[PATCH v7 12/14] phy: tegra: xusb: Add wake/sleepwalk for Tegra186

2021-01-19 Thread JC Kuo
This commit implements Tegra186/Tegra194 XUSB PADCTL/AO wake and sleepwalk operations. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v7: add 'Acked-by: Thierry Reding ' v6: no change v5: no change v4: move sleepwalk/wake stubs from 'struct tegra_xusb_padctl_ops' to 'struct

[PATCH v7 13/14] usb: host: xhci-tegra: Unlink power domain devices

2021-01-19 Thread JC Kuo
This commit unlinks xhci-tegra platform device with SS/host power domain devices. Reasons for this change is - at ELPG entry, PHY sleepwalk and wake configuration need to be done before powering down SS/host partitions, and PHY need be powered off after powering down SS/host partitions. Sequence

[PATCH v7 01/14] clk: tegra: Add PLLE HW power sequencer control

2021-01-19 Thread JC Kuo
PLLE has a hardware power sequencer logic which is a state machine that can power on/off PLLE without any software intervention. The sequencer has two inputs, one from XUSB UPHY PLL and the other from SATA UPHY PLL. PLLE provides reference clock to XUSB and SATA UPHY PLLs. When both of the

[PATCH v7 14/14] xhci: tegra: Enable ELPG for runtime/system PM

2021-01-19 Thread JC Kuo
This commit implements the complete programming sequence for ELPG entry and exit. 1. At ELPG entry, invokes tegra_xusb_padctl_enable_phy_sleepwalk() and tegra_xusb_padctl_enable_phy_wake() to configure XUSB PADCTL sleepwalk and wake detection circuits to maintain USB lines level and

[PATCH v7 10/14] phy: tegra: xusb: Add wake/sleepwalk for Tegra210

2021-01-19 Thread JC Kuo
This commit implements Tegra210 XUSB PADCTL wake and sleepwalk routines. Sleepwalk logic is in PMC (always-on) hardware block. PMC driver provides managed access to the sleepwalk registers via regmap framework. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v7: add 'Acked-by: Thierry

[PATCH v7 09/14] dt-bindings: phy: tegra-xusb: Add nvidia,pmc prop

2021-01-19 Thread JC Kuo
This commit describes the "nvidia,pmc" property for Tegra210 tegra-xusb PHY driver. It is a phandle and specifier referring to the Tegra210 pmc@7000e400 node. Signed-off-by: JC Kuo Acked-by: Rob Herring --- v7: no change v6: no change v5: replace "pmc@7000e400 node" -> with "PMC node"

[PATCH v7 08/14] arm64: tegra210: XUSB PADCTL add "nvidia,pmc" prop

2021-01-19 Thread JC Kuo
PMC driver provides USB sleepwalk registers access to XUSB PADCTL driver. This commit adds a "nvidia,pmc" property which points to PMC node to XUSB PADCTL device node. Signed-off-by: JC Kuo --- v7: no change v6: no change v5: no change v4: no change v3: no change

[PATCH v7 04/14] phy: tegra: xusb: Rearrange UPHY init on Tegra210

2021-01-19 Thread JC Kuo
This commit is a preparation for enabling XUSB SC7 support. It rearranges Tegra210 XUSB PADCTL UPHY initialization sequence, for the following reasons: 1. PLLE hardware power sequencer has to be enabled only after both PEX UPHY PLL and SATA UPHY PLL are initialized. tegra210_uphy_init() ->

[PATCH v7 00/14] Tegra XHCI controller ELPG support

2021-01-19 Thread JC Kuo
Tegra XHCI controler can be placed in ELPG (Engine Level PowerGated) state for power saving when all of the connected USB devices are in suspended state. This patch series includes clk, phy and pmc changes that are required for properly place controller in ELPG and bring controller out of ELPG.

[PATCH 1/2] powerpc/32s: Add missing call to kuep_lock on syscall entry

2021-01-19 Thread Christophe Leroy
Userspace Execution protection and fast syscall entry were implemented independently from each other and were both merged in kernel 5.2, leading to syscall entry missing userspace execution protection. On syscall entry, execution of user space memory must be locked in the same way as on exception

[PATCH v2] of: property: Add fw_devlink support for "gpio" and "gpios" binding

2021-01-19 Thread Saravana Kannan
To provide backward compatibility for boards that use deprecated DT bindings, we need to add fw_devlink support for "gpio" and "gpios". Cc: linux-tegra Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Greg Kroah-Hartman Cc: Geert Uytterhoeven Fixes: e590474768f1 ("driver core: Set fw_devlink=on

[PATCH 2/2] powerpc/32s: Unroll kuep_lock and kuep_unlock macros

2021-01-19 Thread Christophe Leroy
Unroll the loops in kuep_lock and kuep_unlock. Benchmarked on an mpc 8321 with a standard kernel having a 3M/1M user/kernel memory split, i.e. 12 segments for user. Without KUEP, null_syscall benchmark is 220 cycles. With KUEP, null_syscall benchmark is 439 cycles. Once loops are unrolled,

[PATCH v7 02/14] clk: tegra: Don't enable PLLE HW sequencer at init

2021-01-19 Thread JC Kuo
PLLE hardware power sequencer references PEX/SATA UPHY PLL hardware power sequencers' output to enable/disable PLLE. PLLE hardware power sequencer has to be enabled only after PEX/SATA UPHY PLL's sequencers are enabled. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v7: no change v6:

[PATCH] scsi: qla2xxx: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/scsi/qla2xxx/qla_isr.c:780:2-18: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/scsi/qla2xxx/qla_isr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] pinctrl: qcom: spmi-gpio: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:340:3-15: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 8 1 file changed, 4 insertions(+), 4

[PATCH] swap: Check nrexceptional of swap cache before being freed

2021-01-19 Thread Huang Ying
To catch the error in updating the swap cache shadow entries or their count. Signed-off-by: "Huang, Ying" Cc: Minchan Kim Cc: Joonsoo Kim , Cc: Johannes Weiner , Cc: Vlastimil Babka , Hugh Dickins , Cc: Mel Gorman , Cc: Michal Hocko , Cc: Dan Williams , Cc: Christoph Hellwig , Ilya Dryomov ,

[PATCH] rtlwifi: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c: 892:1-10: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 2 +- 1 file

linux-next: Signed-off-by missing for commit in the pci tree

2021-01-19 Thread Stephen Rothwell
Hi all, Commit 0ca2233eb71f ("PCI: Update ROM BAR even if disabled") is missing a Signed-off-by from its authorand committer. -- Cheers, Stephen Rothwell pgpbfSBRoSjiF.pgp Description: OpenPGP digital signature

[PATCH] checkpatch: add warning for avoiding .L prefix symbols in assembly files

2021-01-19 Thread Aditya Srivastava
Local symbols prefixed with '.L' do not emit symbol table entries, as they have special meaning for the assembler. '.L' prefixed symbols can be used within a code region, but should be avoided for denoting a range of code via 'SYM_*_START/END' annotations. Add a new check to emit a warning on

Re: [PATCH v8 2/4] KEYS: trusted: Introduce TEE based Trusted Keys

2021-01-19 Thread Sumit Garg
On Wed, 20 Jan 2021 at 07:01, Jarkko Sakkinen wrote: > > On Tue, Jan 19, 2021 at 12:30:42PM +0200, Jarkko Sakkinen wrote: > > On Fri, Jan 15, 2021 at 11:32:31AM +0530, Sumit Garg wrote: > > > On Thu, 14 Jan 2021 at 07:35, Jarkko Sakkinen wrote: > > > > > > > > On Wed, Jan 13, 2021 at 04:47:00PM

[PATCH] drivers/scsi/qla4xxx: use scnprintf() instead of snprintf()

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warning: ./drivers/scsi/qla4xxx/ql4_attr.c: WARNING: use scnprintf or sprintf The snprintf() function returns the number of characters which would have been printed if there were enough space, but the scnprintf() returns the number of characters which were actually

Re: [PATCH v6 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings

2021-01-19 Thread Mike Looijmans
Wow, fast response, thanks. Updated my dtschema, fixed the match name as requested and v7 is ready to go. I'm awaiting feedback from the iio people so I can send a new patch set. M. Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V.

Re: [PATCH v17 02/10] fs/ntfs3: Add initialization of super block

2021-01-19 Thread Kari Argillander
On Tue, Jan 19, 2021 at 06:03:06AM +0200, Kari Argillander wrote: > On Thu, Dec 31, 2020 at 06:23:53PM +0300, Konstantin Komarov wrote: > > diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c > > +struct ntfs_fnd *fnd_get(struct ntfs_index *indx) > > +{ > > + struct ntfs_fnd *fnd =

[PATCH] drm/amdgpu: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c: 1009:6-16: WARNING: Assignment of 0/1 to bool variable. ./drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c: 200:2-10: WARNING: Assignment of 0/1 to bool variable.

[PATCH v2] hugetlbfs: remove meaningless variable avoid_reserve

2021-01-19 Thread Miaohe Lin
The variable avoid_reserve is meaningless because we never changed its value and just passed it to alloc_huge_page(). So remove it to make code more clear that in hugetlbfs_fallocate, we never avoid reserve when alloc hugepage yet. Also add a comment offered by Mike Kravetz to explain this.

Re: [Patch v4 1/2] cgroup: svm: Add Encryption ID controller

2021-01-19 Thread Vipin Sharma
On Tue, Jan 19, 2021 at 10:51:24AM -0500, Tejun Heo wrote: > Hello, > > On Fri, Jan 15, 2021 at 08:32:19PM -0800, Vipin Sharma wrote: > > SEV-ES has stronger memory encryption gurantees compared to SEV, apart > > from encrypting the application memory it also encrypts register state > > among

[PATCH] net/bluetooth: Fix the follow coccicheck warnings

2021-01-19 Thread Jiapeng Zhong
./net/bluetooth/hci_debugfs.c: WARNING: sniff_min_interval_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Signed-off-by: Jiapeng Zhong Reported-by: Abaci Robot --- net/bluetooth/hci_debugfs.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-)

[PATCH V5 4/5] kbuild: Add support to build overlays (%.dtbo)

2021-01-19 Thread Viresh Kumar
Add support for building DT overlays (%.dtbo). The overlay's source file will have the usual extension, i.e. .dts, though the blob will have .dtbo extension to distinguish it from normal blobs. Signed-off-by: Viresh Kumar --- .gitignore | 3 +-- Makefile | 4 ++--

[PATCH V5 5/5] of: unittest: Statically apply overlays using fdtoverlay

2021-01-19 Thread Viresh Kumar
Now that fdtoverlay is part of the kernel build, start using it to test the unitest overlays we have by applying them statically. Some unittest overlays deliberately contain errors that unittest checks for. These overlays will cause fdtoverlay to fail, and are thus not included in the

[PATCH V5 2/5] scripts: dtc: Build fdtoverlay tool

2021-01-19 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay going forward. Lets start building it. The fdtoverlay program applies (or merges) one or more overlay dtb blobs to a base dtb blob. The kernel build system would later use fdtoverlay to generate the

[PATCH V5 3/5] scripts: dtc: Remove the unused fdtdump.c file

2021-01-19 Thread Viresh Kumar
This was copied from external DTC repository long back and isn't used anymore. Over that the dtc tool can be used to generate the dts source back from the dtb. Remove the unused fdtdump.c file. Signed-off-by: Viresh Kumar --- scripts/dtc/fdtdump.c | 163

Re: [PATCH v5 06/27] dt-bindings: mediatek: Add binding for mt8192 IOMMU

2021-01-19 Thread Yong Wu
On Wed, 2021-01-20 at 13:15 +0900, Tomasz Figa wrote: > On Wed, Jan 13, 2021 at 3:45 PM Yong Wu wrote: > > > > On Wed, 2021-01-13 at 14:30 +0900, Tomasz Figa wrote: > > > On Thu, Dec 24, 2020 at 8:35 PM Yong Wu wrote: > > > > > > > > On Wed, 2020-12-23 at 17:18 +0900, Tomasz Figa wrote: > > > >

[PATCH V5 1/5] scripts: dtc: Fetch fdtoverlay.c from external DTC project

2021-01-19 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay tool going forward. Lets start fetching it. Signed-off-by: Viresh Kumar --- scripts/dtc/update-dtc-source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH V5 0/5] dt: build overlays

2021-01-19 Thread Viresh Kumar
Hi Frank/Rob, I have picked all the related patches together into a single patchset, so they can be properly reviewed/tested. This patchset makes necessary changes to the kernel to add support for building overlays (%.dtbo) and the required fdtoverlay tool. This also builds static_test.dtb using

[PATCH] cxgb4: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:5142:2-33: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- 1 file changed, 1 insertion(+), 1

RE: [PATCH net v2] udp: ipv4: manipulate network header of NATed UDP GRO fraglist

2021-01-19 Thread Dongseok Yi
On 2021-01-18 22:27, Steffen Klassert wrote: > On Fri, Jan 15, 2021 at 10:20:35PM +0900, Dongseok Yi wrote: > > UDP/IP header of UDP GROed frag_skbs are not updated even after NAT > > forwarding. Only the header of head_skb from ip_finish_output_gso -> > > skb_gso_segment is updated but following

Re: [PATCH v2 net-next 1/1] Allow user to set metric on default route learned via Router Advertisement.

2021-01-19 Thread praveen chaudhary
> On Jan 19, 2021, at 8:22 PM, David Ahern wrote: > > On 1/19/21 3:17 PM, praveen chaudhary wrote: For IPv4: Config in

Re: [PATCH] x86/fpu/xstate: calculate the number by sizeof and offsetof

2021-01-19 Thread Dave Hansen
On 1/19/21 10:44 PM, Yejune Deng wrote: > In fpstate_sanitize_xstate(), use memset and offsetof instead of '= 0', > and use sizeof instead of a constant. What's the benefit to doing this? Saving 4 lines of code? Your suggestions are not obviously wrong at a glance, but they're also not

RE: [PATCH 1/1] scsi: sd: use max_xfer_blocks for set rw_max if max_xfer_blocks is available

2021-01-19 Thread Manjong Lee
Add recipients for more reviews. >SCSI device has max_xfer_size and opt_xfer_size, >but current kernel uses only opt_xfer_size. > >It causes the limitation on setting IO chunk size, >although it can support larger one. > >So, I propose this patch to use max_xfer_size in case it has valid value.

[PATCH] x86/fpu/xstate: calculate the number by sizeof and offsetof

2021-01-19 Thread Yejune Deng
In fpstate_sanitize_xstate(), use memset and offsetof instead of '= 0', and use sizeof instead of a constant. Signed-off-by: Yejune Deng --- arch/x86/kernel/fpu/xstate.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/fpu/xstate.c

[PATCH] hwmon: (applesmc) Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/hwmon/applesmc.c:568:6-23: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/hwmon/applesmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 4/4] hwmon: Support Aspeed AST2600 PWM/Fan tachometer

2021-01-19 Thread Andrew Jeffery
On Wed, 20 Jan 2021, at 15:53, Ryan Chen wrote: > > -Original Message- > > From: Andrew Jeffery > > Sent: Wednesday, January 20, 2021 1:16 PM > > To: Troy Lee ; open...@lists.ozlabs.org; Joel > > Stanley ; Philipp Zabel ; open list > > ; moderated list:ARM/ASPEED MACHINE > > SUPPORT ;

Re: [PATCH v2 02/17] rtc: bd70528: Do not require parent data

2021-01-19 Thread Matti Vaittinen
On Tue, 2021-01-19 at 22:09 +0100, Alexandre Belloni wrote: > On 19/01/2021 09:14:45+0200, Matti Vaittinen wrote: > > The ROHM BD71828 and BD71815 RTC drivers only need the regmap > > pointer from parent. Regmap can be obtained via dev_get_regmap() > > so do not require parent to populate driver

[PATCH] dsa: vsc73xx: add support for vlan filtering

2021-01-19 Thread Pawel Dembicki
This patch adds support for vlan filtering in vsc73xx driver. After vlan filtering enable, CPU_PORT is configured as trunk, without non-tagged frames. This allows to avoid problems with transmit untagged frames because vsc73xx is DSA_TAG_PROTO_NONE. Signed-off-by: Pawel Dembicki ---

Re: [PATCH] powerpc/47x: Disable 256k page size

2021-01-19 Thread Christophe Leroy
Le 20/01/2021 à 06:45, Michael Ellerman a écrit : Christophe Leroy writes: PPC47x_TLBE_SIZE isn't defined for 256k pages, so this size of page shall not be selected for 47x. Reported-by: kernel test robot Fixes: e7f75ad01d59 ("powerpc/47x: Base ppc476 support") Signed-off-by: Christophe

linux-next: Tree for Jan 20

2021-01-19 Thread Stephen Rothwell
Hi all, Changes since 20210119: The drm tree still had its build failure so I used the version from next-20210107. The drm-intel tree still had its build failure from merging the drm tree and gained another, so I have used the version from next-20210108. The usb tree gained a conflict against

[PATCH] kbuild: use always-y instead of extra-y

2021-01-19 Thread Masahiro Yamada
As commit d0e628cd817f ("kbuild: doc: clarify the difference between extra-y and always-y") explained, extra-y should be used for listing the prerequsites of vmlinux. always-y is a better fix here. Signed-off-by: Masahiro Yamada --- Documentation/devicetree/bindings/Makefile | 8

[PATCH] igc: Assign boolean values to a bool variable

2021-01-19 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/net/ethernet/intel/igc/igc_main.c:4961:2-14: WARNING: Assignment of 0/1 to bool variable. ./drivers/net/ethernet/intel/igc/igc_main.c:4955:2-14: WARNING: Assignment of 0/1 to bool variable. ./drivers/net/ethernet/intel/igc/igc_main.c:4933:1-13:

Re: [PATCH] i2c: sprd:: depend on COMMON_CLK to fix compile tests

2021-01-19 Thread Baolin Wang
Hi, On Sun, Jan 17, 2021 at 7:43 PM Krzysztof Kozlowski wrote: > > The I2C_SPRD uses Common Clock Framework thus it cannot be built on > platforms without it (e.g. compile test on MIPS with LANTIQ): > > /usr/bin/mips-linux-gnu-ld: drivers/i2c/busses/i2c-sprd.o: in function >

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-19 Thread Viresh Kumar
On 20-01-21, 10:36, Viresh Kumar wrote: > On 19-01-21, 09:44, Frank Rowand wrote: > > No. overlay_base.dts is intentionally compiled into a base FDT, not > > an overlay. Unittest intentionally unflattens this FDT in early boot, > > in association with unflattening the system FDT. One key intent

Re: linux-next: manual merge of the notifications tree with Linus' tree

2021-01-19 Thread Stephen Rothwell
Hi David, On Mon, 21 Dec 2020 12:02:09 +1100 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the notifications tree got conflicts in: > > arch/alpha/kernel/syscalls/syscall.tbl > arch/arm/tools/syscall.tbl > arch/arm64/include/asm/unistd.h >

[PATCH] kbuild: remove deprecated syntax EXTRA_*FLAGS, always, hostprogs-*

2021-01-19 Thread Masahiro Yamada
The backward compatibility has been kept for a while. There is no user in upstream. Out-of-tree users must be converted to new ones. Signed-off-by: Masahiro Yamada --- scripts/Makefile.clean | 3 --- scripts/Makefile.lib | 17 - 2 files changed, 20 deletions(-) diff --git

Re: [PATCH 1/3] devicetree/bindings: Initial commit of wacom,wacom-i2c

2021-01-19 Thread Alistair Francis
On Tue, Jan 19, 2021 at 6:15 PM Dmitry Torokhov wrote: > > Hi Alistair, > > On Sat, Jan 16, 2021 at 08:24:26PM -0800, Alistair Francis wrote: > > Signed-off-by: Alistair Francis > > --- > > .../input/touchscreen/wacom,wacom-i2c.yaml| 55 +++ > >

[PATCH -V9 2/3] NOT kernel/man2/set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING

2021-01-19 Thread Huang Ying
Signed-off-by: "Huang, Ying" Cc: "Alejandro Colomar" --- man2/set_mempolicy.2 | 22 ++ 1 file changed, 22 insertions(+) diff --git a/man2/set_mempolicy.2 b/man2/set_mempolicy.2 index 68011eecb..fa64a1820 100644 --- a/man2/set_mempolicy.2 +++ b/man2/set_mempolicy.2 @@ -113,6

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-01-19 Thread Stephen Rothwell
Hi all, On Wed, 13 Jan 2021 15:10:27 +1100 Stephen Rothwell wrote: > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/driver-api/media/v4l2-subdev.rst:125: WARNING: Inline > interpreted text or phrase reference start-string

Re: linux-next: build warning after merge of the amdgpu tree

2021-01-19 Thread Stephen Rothwell
Hi all, On Fri, 15 Jan 2021 12:00:14 +1100 Stephen Rothwell wrote: > > After merging the amdgpu tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function > 'dm_set_vblank': >

[PATCH -V9 3/3] NOT kernel/numactl: Support to enable Linux kernel NUMA balancing

2021-01-19 Thread Huang Ying
A new API: numa_set_membind_balancing() is added to libnuma. It is same as numa_set_membind() except that the Linux kernel NUMA balancing will be enabled for the task if the feature is supported by the kernel. At the same time, a new option: --balancing (-b) is added to numactl. Which can be

[PATCH -V9 1/3] numa balancing: Migrate on fault among multiple bound nodes

2021-01-19 Thread Huang Ying
Now, NUMA balancing can only optimize the page placement among the NUMA nodes if the default memory policy is used. Because the memory policy specified explicitly should take precedence. But this seems too strict in some situations. For example, on a system with 4 NUMA nodes, if the memory of

[PATCH -V9 0/3] numa balancing: Migrate on fault among multiple bound nodes

2021-01-19 Thread Huang Ying
To make it possible to optimize cross-socket memory accessing with AutoNUMA even if the memory of the application is bound to multiple NUMA nodes. Patch [2/3] and [3/3] are NOT kernel patches. Instead, they are patches for man-pages and numactl respectively. They are sent together to make it

[PATCH] ARM: vdso: remove unneded extra-y addition

2021-01-19 Thread Masahiro Yamada
The vdso linker script is prepocessed on demand. Adding it to 'targets' is enough, and line 13 of this Makefile does that. This extra-y addition is unneeded. Signed-off-by: Masahiro Yamada --- KernelVersion: v5.11-rc1 arch/arm/vdso/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH net-next v4] bonding: add a vlan+srcmac tx hashing option

2021-01-19 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 18 Jan 2021 20:09:27 -0500 you wrote: > This comes from an end-user request, where they're running multiple VMs on > hosts with bonded interfaces connected to some interest switch topologies, > where 802.3ad isn't

Re: [PATCH AUTOSEL 5.10 28/45] net: stmmac: Fixed mtu channged by cache aligned

2021-01-19 Thread Jakub Kicinski
On Tue, 19 Jan 2021 20:25:45 -0500 Sasha Levin wrote: > From: David Wu > > [ Upstream commit 5b55299eed78538cc4746e50ee97103a1643249c ] > > Since the original mtu is not used when the mtu is updated, > the mtu is aligned with cache, this will get an incorrect. > For example, if you want to

Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4

2021-01-19 Thread Masahiro Yamada
On Sat, Jan 16, 2021 at 8:54 AM Masahiro Yamada wrote: > > On Sat, Jan 16, 2021 at 6:51 AM Nick Desaulniers > wrote: > > > > On Fri, Jan 15, 2021 at 1:48 PM Sedat Dilek wrote: > > > > > > On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers > > > wrote: > > > > > > > > From: Masahiro Yamada > >

Re: [PATCH] kbuild: doc: remove "Objects which export symbols" section

2021-01-19 Thread Masahiro Yamada
On Sun, Jan 17, 2021 at 8:52 PM Masahiro Yamada wrote: > > EXPORT_SYMBOL is unrelated to makefiles. No need to mention it. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Documentation/kbuild/makefiles.rst | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) >

drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'

2021-01-19 Thread kernel test robot
Hi Geert, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1e2a199f6ccdc15cf111d68d212e2fd4ce65682e commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY date: 2

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

2021-01-19 Thread Dan Williams
On Tue, Jan 19, 2021 at 9:25 PM Stephen Rothwell wrote: > > Hi all, > > After merging the akpm-current tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > mm/memory_hotplug.c: In function 'move_pfn_range_to_zone': > mm/memory_hotplug.c:772:24: error: 'ZONE_DEVICE'

  1   2   3   4   5   6   7   8   9   10   >