Re: Linux 5.12-rc7

2021-04-12 Thread Eric Dumazet
On Mon, Apr 12, 2021 at 7:31 PM Guenter Roeck wrote: > > On 4/12/21 9:31 AM, Eric Dumazet wrote: > > On Mon, Apr 12, 2021 at 6:28 PM Linus Torvalds > > wrote: > >> > >> On Sun, Apr 11, 2021 at 10:14 PM Guenter Roeck wrote: > >>> > >>> Qemu test results: > >>> total: 460 pass: 459 fail: 1

Re: [RFC PATCH v2 0/4] arm64: Implement stack trace reliability checks

2021-04-12 Thread Mark Brown
On Fri, Apr 09, 2021 at 04:37:41PM -0500, Josh Poimboeuf wrote: > On Fri, Apr 09, 2021 at 01:09:09PM +0100, Mark Rutland wrote: > > Further, I believe all the special cases are assembly functions, and > > most of those are already in special sections to begin with. I reckon > > it'd be simpler and

Re: [PATCH v1 1/1] ACPI: scan: Utilize match_string() API

2021-04-12 Thread Rafael J. Wysocki
On Sat, Apr 10, 2021 at 4:02 PM Andy Shevchenko wrote: > > We have already an API to match a string in the array of strings. > Utilize it instead of open coded analogues. > > Signed-off-by: Andy Shevchenko > --- > drivers/acpi/scan.c | 22 ++ > 1 file changed, 10 insertions(+

Re: [Outreachy kernel][PATCH 1/4 v2] staging: media: omap4iss: Replace macro function by static inline function in file iss.c

2021-04-12 Thread Julia Lawall
On Mon, 12 Apr 2021, ascordeiro wrote: > Em seg, 2021-04-12 às 18:11 +0300, Laurent Pinchart escreveu: > > Hi Aline, > > > > On Mon, Apr 12, 2021 at 10:58:45AM -0300, ascordeiro wrote: > > > Em seg, 2021-04-12 às 16:40 +0300, Laurent Pinchart escreveu: > > > > While testing on a device isn't a r

Re: /usr/bin/ld: atomic64_test.c:undefined reference to `atomic64_add_unless_386'

2021-04-12 Thread Randy Dunlap
entation > date: 10 months ago > config: um-randconfig-r022-20210412 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > reproduce (this is a W=1 build): > # > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=37f8173dd84936ea78000

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-04-12 Thread Palmer Dabbelt
On Mon, 12 Apr 2021 06:32:27 PDT (-0700), christoph...@gmail.com wrote: On Sun, Apr 11, 2021 at 11:11 PM Palmer Dabbelt wrote: On Wed, 24 Mar 2021 05:53:51 PDT (-0700), a...@brainfault.org wrote: > On Wed, Mar 24, 2021 at 6:08 PM Peter Zijlstra wrote: >> >> On Wed, Mar 24, 2021 at 05:58:58PM

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Andy Shevchenko
On Mon, Apr 12, 2021 at 07:16:53PM +0200, Henning Schild wrote: > Am Mon, 12 Apr 2021 19:59:05 +0300 > schrieb Andy Shevchenko : > > On Mon, Apr 12, 2021 at 06:40:01PM +0200, Henning Schild wrote: > > > Tan or Andy, > > > > > > maybe you can point me to a user of that patch. I guess there might >

Re: Linux 5.12-rc7

2021-04-12 Thread Guenter Roeck
On 4/12/21 9:31 AM, Eric Dumazet wrote: > On Mon, Apr 12, 2021 at 6:28 PM Linus Torvalds > wrote: >> >> On Sun, Apr 11, 2021 at 10:14 PM Guenter Roeck wrote: >>> >>> Qemu test results: >>> total: 460 pass: 459 fail: 1 >>> Failed tests: >>> sh:rts7751r2dplus_defconfig:ata:net,virti

/usr/bin/ld: atomic64_test.c:undefined reference to `atomic64_add_unless_386'

2021-04-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d434405aaab7d0ebc516b68a8fc4100922d7f5ef commit: 37f8173dd84936ea78000ed1cad24f8b18d48ebb locking/atomics: Flip fallbacks and instrumentation date: 10 months ago config: um-randconfig-r022-20210412

Re: [PATCH v1 1/1] ACPI: bus: Introduce acpi_dev_get() and reuse it in ACPI code

2021-04-12 Thread Rafael J. Wysocki
On Sat, Apr 10, 2021 at 3:47 PM Andy Shevchenko wrote: > > Introduce acpi_dev_get() to have a symmetrical API with acpi_dev_put() > and reuse both in ACPI code under drivers/acpi folder. > > While at it, use acpi_bus_put_acpi_device() in one place rather than above. > > Signed-off-by: Andy Shevche

Re: [PATCH v6 09/10] coresight: syscfg: Add initial configfs support

2021-04-12 Thread Mathieu Poirier
On Fri, Apr 09, 2021 at 11:37:21AM +0100, Mike Leach wrote: > Adds configfs subsystem and attributes to the configuration manager > to enable the listing of loaded configurations and features. > > The default values of feature parameters can be accessed and altered > from these attributes to affec

Re: [Outreachy kernel][PATCH 1/4 v2] staging: media: omap4iss: Replace macro function by static inline function in file iss.c

2021-04-12 Thread ascordeiro
Em seg, 2021-04-12 às 18:11 +0300, Laurent Pinchart escreveu: > Hi Aline, > > On Mon, Apr 12, 2021 at 10:58:45AM -0300, ascordeiro wrote: > > Em seg, 2021-04-12 às 16:40 +0300, Laurent Pinchart escreveu: > > > While testing on a device isn't a requirement as you can't be > > > expected > > > to ha

Re: [syzbot] possible deadlock in vmci_qp_broker_detach

2021-04-12 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:d434405a Linux 5.12-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1661482ed0 kernel config: https://syzkaller.appspot.com/x/.config?x=9c3d8981d2bdb103 dashboard link: https://syz

Re: mmotm 2021-04-11-20-47 uploaded (ni_routes_test.c)

2021-04-12 Thread Randy Dunlap
On 4/11/21 8:48 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2021-04-11-20-47 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH v1 1/1] ACPI: utils: Document for_each_acpi_dev_match() macro

2021-04-12 Thread Rafael J. Wysocki
On Sat, Apr 10, 2021 at 3:29 PM Andy Shevchenko wrote: > > The macro requires to call acpi_dev_put() on each iteration. > Due to this it doesn't tolerate sudden disappearence of the devices. > > Document all these nuances to prevent users blindly call it without > understanding the possible issues

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Henning Schild
Am Mon, 12 Apr 2021 19:51:42 +0300 schrieb Andy Shevchenko : > On Mon, Apr 12, 2021 at 06:01:06PM +0200, Henning Schild wrote: > > Am Mon, 8 Mar 2021 14:20:19 +0200 > > schrieb Andy Shevchenko : > > > > > From: Tan Jui Nee > > > > > > Add support for non-ACPI systems, such as system that uses

Re: [PATCH] Documentation: kunit: add tips for running KUnit

2021-04-12 Thread Daniel Latypov
hOn Fri, Apr 9, 2021 at 9:10 PM David Gow wrote: > > Thanks for writing this: it's good to have these things documented at last! > > There are definitely a few things this document points out which still > need deciding, which does make this document lean a bit into "design > discussion" territory

Re: [RFC v1 00/26] Add TDX Guest Support

2021-04-12 Thread Dan Williams
On Sun, Apr 4, 2021 at 8:02 AM Dave Hansen wrote: > > It occurred to me that I've been doing a lot of digging in the TDX spec > lately. I think we can all agree that the "Architecture Specification" > is not the world's easiest, most disgestable reading. It's hard to > figure out what the Linux

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Henning Schild
Am Mon, 12 Apr 2021 19:59:05 +0300 schrieb Andy Shevchenko : > On Mon, Apr 12, 2021 at 06:40:01PM +0200, Henning Schild wrote: > > Tan or Andy, > > > > maybe you can point me to a user of that patch. I guess there might > > be an out-of-tree driver or userland code on how to use the GPIOs > > fro

[PATCH v3] staging: rtl8723bs: remove unnecessary adapter

2021-04-12 Thread Bryan Brattlof
The if2 adapter is defined in rtw_dvr_init() and in the dvobj_priv structure but never used anywhere in the driver. This will remove all definitions of if2 Signed-off-by: Bryan Brattlof --- Changes from: v1 -> v2: resolved merge conflict with next-20210412 v2 -> v3: added chan

Re: [PATCH v2 1/2] drivers/perf: hisi: Add driver for HiSilicon PCIe PMU

2021-04-12 Thread John Garry
On 12/04/2021 14:34, liuqi (BA) wrote: Hi John, Thanks for reviewing this. On 2021/4/9 18:22, John Garry wrote: On 09/04/2021 10:05, Qi Liu wrote: PCIe PMU Root Complex Integrated End Point(RCiEP) device is supported to sample bandwidth, latency, buffer occupation etc. Each PMU RCiEP device

Re: [PATCH 3/3] sched: Use cpu_dying() to fix balance_push vs hotplug-rollback

2021-04-12 Thread Valentin Schneider
On 12/04/21 14:03, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 03:13:04PM +, Valentin Schneider wrote: >> Peter Zijlstra writes: >> > @@ -7910,6 +7908,14 @@ int sched_cpu_deactivate(unsigned int cp >> >} >> >rq_unlock_irqrestore(rq, &rf); >> > >> > + /* >> > + * From this point

Re: [PATCH 2/2] scsi: iscsi_tcp: Fix use-after-free in iscsi_sw_tcp_host_get_param()

2021-04-12 Thread Mike Christie
On 4/6/21 8:24 PM, Wenchao Hao wrote: > iscsi_sw_tcp_host_get_param() would access struct iscsi_session, while > struct iscsi_session might be freed by session destroy flow in > iscsi_free_session(). This commit fix this condition by freeing session > after host has already been removed. > > Signe

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-12 Thread Ben Gardon
On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson wrote: > > +Ben > > On Tue, Apr 06, 2021, Keqian Zhu wrote: > > Hi Paolo, > > > > I plan to rework this patch and do full test. What do you think about this > > idea > > (enable dirty logging for huge pages lazily)? > > Ben, don't you also have s

Re: [PATCH v1 1/7] soc: imx: gpcv2: check for errors when r/w registers

2021-04-12 Thread Andrey Smirnov
On Wed, Apr 7, 2021 at 2:21 PM Adrien Grassein wrote: > > Errors were not checked after each access to registers FWIW, I didn't write any error checking code on purpose since all of those are memory mapped registers and I don't think there's a case for those to error out. Don't have a strong opin

Re: [PATCH] sched/fair: use signed long when compute energy delta in eas

2021-04-12 Thread Pierre Gondois
Hi > > > > > > This patch-set is not significantly improving the execution time of > > > feec(). The results we have so far are an improvement of 5-10% in > > > execution time, with feec() being executed in < 10us. So the gain is not > > > spectacular. > > > > well, I meaned to cache all util v

Re: [RFC PATCH v2 00/18] Use obj_cgroup APIs to charge the LRU pages

2021-04-12 Thread Johannes Weiner
On Fri, Apr 09, 2021 at 06:29:46PM -0700, Roman Gushchin wrote: > On Fri, Apr 09, 2021 at 08:29:41PM +0800, Muchun Song wrote: > > Since the following patchsets applied. All the kernel memory are charged > > with the new APIs of obj_cgroup. > > > > [v17,00/19] The new cgroup slab memory contro

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-12 Thread Sean Christopherson
On Sun, Apr 11, 2021, Len Brown wrote: > On Fri, Apr 9, 2021 at 5:44 PM Andy Lutomirski wrote: > > > > On Fri, Apr 9, 2021 at 1:53 PM Len Brown wrote: > > > > > > On Wed, Mar 31, 2021 at 6:45 PM Andy Lutomirski wrote: > > > > > > > > On Wed, Mar 31, 2021 at 3:28 PM Len Brown wrote: > > > > > We

Re: [PATCH v8 6/8] pwm: pca9685: Support new PWM_USAGE_POWER flag

2021-04-12 Thread Clemens Gruber
Hi, On Mon, Apr 12, 2021 at 06:30:45PM +0200, Uwe Kleine-König wrote: > On Mon, Apr 12, 2021 at 03:27:43PM +0200, Clemens Gruber wrote: > > If PWM_USAGE_POWER is set on a PWM, the pca9685 driver will phase shift > > the individual channels relative to their channel number. This improves > > EMI be

Re: BUG: unable to handle kernel paging request in bpf_check

2021-04-12 Thread Alexei Starovoitov
On Mon, Apr 12, 2021 at 12:11 AM Hao Sun wrote: > > Besides, another similar bug occurred while fault injection was enabled. > > BUG: unable to handle kernel paging request in bpf_prog_alloc_no_stats > > RAX: ffda RBX: 0

Re: [PATCH v2] staging: rtl8723bs: remove unnecessary adapter

2021-04-12 Thread Bryan Brattlof
hanged from v1? That goes below the --- line. > >v3? Oops. it's the simple things that always seem to be the hardest :) During the rebase to next-20210412, I lost the bracket on the conditional statement: 394: +free_if1: 395: if (status != _SUCCESS && if1) {

Re: [PATCH][next] KEYS: trusted: Fix missing null return from kzalloc call

2021-04-12 Thread Colin Ian King
On 12/04/2021 17:48, James Bottomley wrote: > On Mon, 2021-04-12 at 17:01 +0100, Colin King wrote: >> From: Colin Ian King >> >> The kzalloc call can return null with the GFP_KERNEL flag so >> add a null check and exit via a new error exit label. Use the >> same exit error label for another error

[PATCH v2 3/4] KVM: x86: kvm_hv_flush_tlb use inputs from XMM registers

2021-04-12 Thread Siddharth Chandrasekaran
Hyper-V supports the use of XMM registers to perform fast hypercalls. This allows guests to take advantage of the improved performance of the fast hypercall interface even though a hypercall may require more than (the current maximum of) two input registers. The XMM fast hypercall interface uses s

Re: [PATCH v2 0/3] x86/sgx: eextend ioctl

2021-04-12 Thread Jethro Beekman
On 2021-04-12 18:47, Dave Hansen wrote: > On 4/12/21 9:41 AM, Jethro Beekman wrote: >> Yes this still doesn't let one execute all possible ECREATE, EADD, EEXTEND, >> EINIT sequences. > > OK, so we're going in circles now. > > I don't believe we necessarily *WANT* or need Linux to support "all >

[PATCH 2/2] drm/msm/dp: do not re initialize of audio_comp

2021-04-12 Thread Kuogee Hsieh
At dp_display_disable(), do not re initialize audio_comp if hdp_state == ST_DISCONNECT_PENDING (unplug event) to avoid race condition which cause 5 second timeout expired. Also add abort mechanism to reduce time spinning at dp_aux_transfer() during dpcd read if type-c connection had been broken. S

Re: [PATCH v1 1/2] dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280

2021-04-12 Thread Rob Herring
On Fri, Apr 09, 2021 at 05:24:31PM +0530, Taniya Das wrote: > The LPASS(Low Power Audio Subsystem) clock provider have a bunch of generic > properties that are needed in a device tree. Add the LPASS clock IDs for > LPASS PIL client to request for the clocks. > > Signed-off-by: Taniya Das > --- >

[PATCH v2 4/4] KVM: hyper-v: Advertise support for fast XMM hypercalls

2021-04-12 Thread Siddharth Chandrasekaran
Now that all extant hypercalls that can use XMM registers (based on spec) for input/outputs are patched to support them, we can start advertising this feature to guests. Cc: Alexander Graf Cc: Evgeny Iakovlev Signed-off-by: Siddharth Chandrasekaran --- arch/x86/include/asm/hyperv-tlfs.h | 7 ++

[PATCH v2 0/4] Add support for XMM fast hypercalls

2021-04-12 Thread Siddharth Chandrasekaran
Hyper-V supports the use of XMM registers to perform fast hypercalls. This allows guests to take advantage of the improved performance of the fast hypercall interface even though a hypercall may require more than (the current maximum of) two general purpose registers. The XMM fast hypercall interf

[PATCH 1/2] drm/msm/dp: check sink_count before update is_connected status

2021-04-12 Thread Kuogee Hsieh
At pm_resume check link sisnk_count before update is_connected status base on HPD real time link status. Also print out error message only when either EV_CONNECT_PENDING_TIMEOUT or EV_DISCONNECT_PENDING_TIMEOUT happen. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 6 +++--

Device driver location for the PCIe root port's DMA engine

2021-04-12 Thread Vidya Sagar
Hi I'm starting this mail to seek advice on the best approach to be taken to add support for the driver of the PCIe root port's DMA engine. To give some background, Tegra194's PCIe IPs are dual-mode PCIe IPs i.e. they work either in the root port mode or in the endpoint mode based on the boot t

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Andy Shevchenko
On Mon, Apr 12, 2021 at 06:40:01PM +0200, Henning Schild wrote: > Tan or Andy, > > maybe you can point me to a user of that patch. I guess there might be > an out-of-tree driver or userland code on how to use the GPIOs from > there. I'm confused. User of this patch is pinctrl-broxton driver. It's

Re: linux-next: Tree for Apr 9 (x86 boot problem)

2021-04-12 Thread Mike Rapoport
On Mon, Apr 12, 2021 at 08:49:49AM -0700, Randy Dunlap wrote: > On 4/11/21 11:14 PM, Mike Rapoport wrote: > > Hi Randy, > > > > On Sun, Apr 11, 2021 at 07:41:37PM -0700, Randy Dunlap wrote: > >> On 4/9/21 4:51 AM, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> Changes since 20210408: > >>> > >>

[PATCH v2 2/4] KVM: hyper-v: Collect hypercall params into struct

2021-04-12 Thread Siddharth Chandrasekaran
As of now there are 7 parameters (and flags) that are used in various hyper-v hypercall handlers. There are 6 more input/output parameters passed from XMM registers which are to be added in an upcoming patch. To make passing arguments to the handlers more readable, capture all these parameters int

[PATCH v2 1/4] KVM: x86: Move FPU register accessors into fpu.h

2021-04-12 Thread Siddharth Chandrasekaran
Hyper-v XMM fast hypercalls use XMM registers to pass input/output parameters. To access these, hyperv.c can reuse some FPU register accessors defined in emulator.c. Move them to a common location so both can access them. While at it, reorder the parameters of these accessor methods to make them m

Re: [RFC PATCH v2 0/4] arm64: Implement stack trace reliability checks

2021-04-12 Thread Mark Brown
On Fri, Apr 09, 2021 at 05:32:27PM -0500, Josh Poimboeuf wrote: > Hm, for that matter, even without renaming things, a comment above > stack_trace_save_tsk_reliable() describing the meaning of "reliable" > would be a good idea. Might be better to place something at the prototype for arch_stack_wa

[PATCH v2] net: phy: marvell: fix detection of PHY on Topaz switches

2021-04-12 Thread Pali Rohár
Since commit fee2d546414d ("net: phy: marvell: mv88e6390 temperature sensor reading"), Linux reports the temperature of Topaz hwmon as constant -75°C. This is because switches from the Topaz family (88E6141 / 88E6341) have the address of the temperature sensor register different from Peridot. Thi

Re: [PATCH] phy: nxp-c45: add driver for tja1103

2021-04-12 Thread Andrew Lunn
On Mon, Apr 12, 2021 at 05:49:04PM +0300, Radu Nicolae Pirea (NXP OSS) wrote: > On Mon, 2021-04-12 at 16:23 +0200, Andrew Lunn wrote: > > > It is purely a C45 device. > > > > > Even if the PHY will be based on the same IP or not, if it is a C45 > > > PHY, it will be supported by this driver. We ar

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Andy Shevchenko
On Mon, Apr 12, 2021 at 06:01:06PM +0200, Henning Schild wrote: > Am Mon, 8 Mar 2021 14:20:19 +0200 > schrieb Andy Shevchenko : > > > From: Tan Jui Nee > > > > Add support for non-ACPI systems, such as system that uses > > Advanced Boot Loader (ABL) whereby a platform device has to be created >

Re: [PATCH] mm/compaction:let proactive compaction order configurable

2021-04-12 Thread Oleksandr Natalenko
Hello. On Mon, Apr 12, 2021 at 05:05:30PM +0800, chukaiping wrote: > Currently the proactive compaction order is fixed to > COMPACTION_HPAGE_ORDER(9), it's OK in most machines with lots of > normal 4KB memory, but it's too high for the machines with small > normal memory, for example the machines

[PATCH AUTOSEL 4.9 03/23] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-04-12 Thread Sasha Levin
From: Wang Qing [ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ] The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing Signed-off-by: Vineet Gupta Signed-off-by: Sasha Le

Re: [PATCH][next] KEYS: trusted: Fix missing null return from kzalloc call

2021-04-12 Thread James Bottomley
On Mon, 2021-04-12 at 17:01 +0100, Colin King wrote: > From: Colin Ian King > > The kzalloc call can return null with the GFP_KERNEL flag so > add a null check and exit via a new error exit label. Use the > same exit error label for another error path too. > > Addresses-Coverity: ("Dereference n

Re: Linux 5.12-rc7

2021-04-12 Thread Eric Dumazet
On Mon, Apr 12, 2021 at 6:31 PM Eric Dumazet wrote: > > On Mon, Apr 12, 2021 at 6:28 PM Linus Torvalds > wrote: > > > > On Sun, Apr 11, 2021 at 10:14 PM Guenter Roeck wrote: > > > > > > Qemu test results: > > > total: 460 pass: 459 fail: 1 > > > Failed tests: > > > sh:rts7751r2dp

Re: [PATCH] net: mac802154: fix WARNING in ieee802154_del_device

2021-04-12 Thread Pavel Skripkin
Hi! On Mon, 2021-04-12 at 07:45 -0400, Alexander Aring wrote: > Hi, > > On Mon, 12 Apr 2021 at 06:58, Pavel Skripkin > wrote: > > > > syzbot reported WARNING in ieee802154_del_device. The problem > > was in uninitialized mutex. In case of NL802154_IFTYPE_MONITOR > > mutex won't be initialized,

Re: [PATCH v8 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag

2021-04-12 Thread Clemens Gruber
On Mon, Apr 12, 2021 at 06:27:23PM +0200, Uwe Kleine-König wrote: > On Mon, Apr 12, 2021 at 03:27:41PM +0200, Clemens Gruber wrote: > > Add the flag and corresponding documentation for PWM_USAGE_POWER. > > My concern here in the previous round was that PWM_USAGE_POWER isn't a > name that intuitive

Re: [PATCH v2 0/3] x86/sgx: eextend ioctl

2021-04-12 Thread Dave Hansen
On 4/12/21 8:58 AM, Jethro Beekman wrote: > On 2021-04-12 17:36, Dave Hansen wrote: >> On 4/12/21 1:59 AM, Raoul Strackx wrote: >>> This patch set adds a new ioctl to enable userspace to execute EEXTEND >>> leaf functions per 256 bytes of enclave memory. With this patch in place, >>> Linux will be

[PATCH v2] staging: rtl8723bs: remove unnecessary adapter

2021-04-12 Thread Bryan Brattlof
The if2 adapter is defined in rtw_dvr_init() and in the dvobj_priv structure but never used anywhere in the driver. This will remove all definitions of if2 Signed-off-by: Bryan Brattlof --- drivers/staging/rtl8723bs/include/drv_types.h | 1 - drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 10 +

Re: [PATCH v2 0/3] x86/sgx: eextend ioctl

2021-04-12 Thread Dave Hansen
On 4/12/21 9:41 AM, Jethro Beekman wrote: > Yes this still doesn't let one execute all possible ECREATE, EADD, EEXTEND, > EINIT sequences. OK, so we're going in circles now. I don't believe we necessarily *WANT* or need Linux to support "all possible ECREATE, EADD, EEXTEND, EINIT sequences". Ye

Re: mmotm 2021-04-11-20-47 uploaded (bpf: xsk.c)

2021-04-12 Thread Randy Dunlap
On 4/11/21 8:48 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2021-04-11-20-47 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH] staging: media: omap4iss: Replace macro function by static inline function in file iss_csi2.c

2021-04-12 Thread kernel test robot
Hi Aline, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Aline-Santana-Cordeiro/staging-media-omap4iss-Replace-macro-function-by-static-inline-function-in-file-iss_csi2-c/20210412-213647

Re: Subject: [PATCH] staging: media: meson: vdec: declare u32 as static const

2021-04-12 Thread kernel test robot
Hi Mitali, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Mitali-Borkar/Subject-PATCH-staging-media-meson-vdec-declare-u32-as-static-const/20210412-222025 base: https://git.kernel.org/pub

Re: [PATCH v2] staging: rtl8723bs: remove unnecessary adapter

2021-04-12 Thread Greg Kroah-Hartman
On Mon, Apr 12, 2021 at 04:43:56PM +, Bryan Brattlof wrote: > The if2 adapter is defined in rtw_dvr_init() and in the dvobj_priv > structure but never used anywhere in the driver. This will remove all > definitions of if2 > > Signed-off-by: Bryan Brattlof > --- > drivers/staging/rtl8723bs/in

Re: general protection fault in kvm_vm_ioctl_unregister_coalesced_mmio

2021-04-12 Thread Sean Christopherson
On Mon, Apr 12, 2021, Hao Sun wrote: > Crash log: > == > kvm: failed to shrink bus, removing it completely > general protection fault, probably for non-canonical address > 0xdead0100: [#1] PREEMPT SMP > CPU: 3 PID: 7974 Comm: executor Not tai

Re: [PATCH 0/8] drm/msm: Swappable GEM objects

2021-04-12 Thread Daniel Vetter
On Mon, Apr 12, 2021 at 08:23:33AM -0700, Rob Clark wrote: > On Mon, Apr 12, 2021 at 7:28 AM Daniel Vetter wrote: > > > > On Thu, Apr 08, 2021 at 08:23:42AM -0700, Rob Clark wrote: > > > On Thu, Apr 8, 2021 at 4:15 AM Daniel Vetter wrote: > > > > > > > > On Mon, Apr 05, 2021 at 10:45:23AM -0700,

NAK: [PATCH] staging: rtl8723bs: remove unnecessary adapter

2021-04-12 Thread Bryan Brattlof
if (status != _SUCCESS && if2) { >- } >+free_if1: > if (status != _SUCCESS && if1) { > rtw_sdio_if1_deinit(if1); > } >-- >2.27.0 > Nack. There is a merge conflict when updating to next-20210412. I'll resend v2 after I resolve the conflict. -- ~Bryan

Re: [PATCH v2 0/3] x86/sgx: eextend ioctl

2021-04-12 Thread Jethro Beekman
On 2021-04-12 18:40, Dave Hansen wrote: > On 4/12/21 8:58 AM, Jethro Beekman wrote: >> On 2021-04-12 17:36, Dave Hansen wrote: >>> On 4/12/21 1:59 AM, Raoul Strackx wrote: This patch set adds a new ioctl to enable userspace to execute EEXTEND leaf functions per 256 bytes of enclave memory

Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support

2021-04-12 Thread Vladimir Oltean
On Mon, Apr 12, 2021 at 11:00:45PM +0800, DENG Qingfang wrote: > On Sun, Apr 11, 2021 at 09:50:17PM +0300, Vladimir Oltean wrote: > > > > So I'd be tempted to say 'tough luck' if all your ports are not up, and > > the ones that are are assigned statically to the same CPU port. It's a > > compromise

Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system

2021-04-12 Thread Henning Schild
Tan or Andy, maybe you can point me to a user of that patch. I guess there might be an out-of-tree driver or userland code on how to use the GPIOs from there. Feel free to send directly to me in case it is not published anywhere and should not yet be on the list, i could just use it for inspirati

Re: [PATCH v8 1/8] pwm: pca9685: Switch to atomic API

2021-04-12 Thread Clemens Gruber
Hi Uwe, On Mon, Apr 12, 2021 at 06:18:08PM +0200, Uwe Kleine-König wrote: > Hello Clemens, > > On Mon, Apr 12, 2021 at 03:27:38PM +0200, Clemens Gruber wrote: > > The switch to the atomic API goes hand in hand with a few fixes to > > previously experienced issues: > > - The duty cycle is no longe

Re: [PATCH] net: phy: marvell: fix detection of PHY on Topaz switches

2021-04-12 Thread Pali Rohár
On Monday 12 April 2021 18:12:35 Andrew Lunn wrote: > On Mon, Apr 12, 2021 at 05:52:39PM +0200, Pali Rohár wrote: > > On Monday 12 April 2021 17:32:33 Andrew Lunn wrote: > > > > Anyway, now I'm looking at phy/marvell.c driver again and it supports > > > > only 88E6341 and 88E6390 families from whol

Re: Linux 5.12-rc7

2021-04-12 Thread Eric Dumazet
On Mon, Apr 12, 2021 at 6:28 PM Linus Torvalds wrote: > > On Sun, Apr 11, 2021 at 10:14 PM Guenter Roeck wrote: > > > > Qemu test results: > > total: 460 pass: 459 fail: 1 > > Failed tests: > > sh:rts7751r2dplus_defconfig:ata:net,virtio-net:rootfs > > > > The failure bisects to co

[PATCH AUTOSEL 4.4 22/23] net: tipc: Fix spelling errors in net/tipc module

2021-04-12 Thread Sasha Levin
From: Zheng Yongjun [ Upstream commit a79ace4b312953c5835fafb12adc3cb6878b26bd ] These patches fix a series of spelling errors in net/tipc module. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/tipc/bearer.h | 6 +++---

[PATCH AUTOSEL 4.4 23/23] cfg80211: remove WARN_ON() in cfg80211_sme_connect

2021-04-12 Thread Sasha Levin
From: Du Cheng [ Upstream commit 1b5ab825d9acc0f27d2f25c6252f3526832a9626 ] A WARN_ON(wdev->conn) would trigger in cfg80211_sme_connect(), if multiple send_msg(NL80211_CMD_CONNECT) system calls are made from the userland, which should be anticipated and handled by the wireless driver. Remove thi

[PATCH AUTOSEL 4.4 20/23] pcnet32: Use pci_resource_len to validate PCI resource

2021-04-12 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit 66c3f05ddc538ee796321210c906b6ae6fc0792a ] pci_resource_start() is not a good indicator to determine if a PCI resource exists or not, since the resource may start at address 0. This is seen when trying to instantiate the driver in qemu for riscv32 or riscv64

[PATCH AUTOSEL 4.4 21/23] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-12 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ] In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource is freed and later under spinlock, causing potential use-after-free. Set the free pointer to NULL to avoid undefined behavior. Signed-off-by: A

[PATCH AUTOSEL 4.4 16/23] net: ieee802154: forbid monitor for add llsec seclevel

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 9ec87e322428d4734ac647d1a8e507434086993d ] This patch forbids to add llsec seclevel for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://l

[PATCH AUTOSEL 4.4 18/23] net: ieee802154: stop dump llsec params for monitors

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 1534efc7bbc1121e92c86c2dabebaf2c9dcece19 ] This patch stops dumping llsec params for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Reported-by: syzbot+cde43a581a8e5f317...@syzkaller.appspotma

[PATCH AUTOSEL 4.4 15/23] net: ieee802154: stop dump llsec seclevels for monitors

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 4c9b4f55ad1f5a4b6206ac4ea58f273126d21925 ] This patch stops dumping llsec seclevels for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel

[PATCH AUTOSEL 4.4 19/23] net: mac802154: Fix general protection fault

2021-04-12 Thread Sasha Levin
From: Pavel Skripkin [ Upstream commit 1165affd484889d4986cf3b724318935a0b120d8 ] syzbot found general protection fault in crypto_destroy_tfm()[1]. It was caused by wrong clean up loop in llsec_key_alloc(). If one of the tfm array members is in IS_ERR() range it will cause general protection fau

[PATCH AUTOSEL 4.4 17/23] net: ieee802154: forbid monitor for del llsec seclevel

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 9dde130937e95b72adfae64ab21d6e7e707e2dac ] This patch forbids to del llsec seclevel for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Reported-by: syzbot+fbf4fc11a819824e0...@syzkal

[PATCH AUTOSEL 4.4 13/23] net: ieee802154: stop dump llsec devkeys for monitors

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 080d1a57a94d93e70f84b7a360baa351388c574f ] This patch stops dumping llsec devkeys for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.o

[PATCH AUTOSEL 4.4 14/23] net: ieee802154: forbid monitor for add llsec devkey

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit a347b3b394868fef15b16f143719df56184be81d ] This patch forbids to add llsec devkey for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lor

[PATCH AUTOSEL 4.4 11/23] net: ieee802154: stop dump llsec devs for monitors

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 5582d641e6740839c9b83efd1fbf9bcd00b6f5fc ] This patch stops dumping llsec devs for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.org/

[PATCH AUTOSEL 4.4 12/23] net: ieee802154: forbid monitor for add llsec dev

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 5303f956b05a2886ff42890908156afaec0f95ac ] This patch forbids to add llsec dev for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.k

[PATCH AUTOSEL 4.4 09/23] net: ieee802154: forbid monitor for set llsec params

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 88c17855ac4291fb462e13a86b7516773b6c932e ] This patch forbids to set llsec params for monitor interfaces which we don't support yet. Reported-by: syzbot+8b6719da8a04beeaf...@syzkaller.appspotmail.com Signed-off-by: Alexander Aring Link: https://lore.kern

Re: [PATCH v8 6/8] pwm: pca9685: Support new PWM_USAGE_POWER flag

2021-04-12 Thread Uwe Kleine-König
On Mon, Apr 12, 2021 at 03:27:43PM +0200, Clemens Gruber wrote: > If PWM_USAGE_POWER is set on a PWM, the pca9685 driver will phase shift > the individual channels relative to their channel number. This improves > EMI because the enabled channels no longer turn on at the same time, > while still ma

[PATCH AUTOSEL 4.4 10/23] net: ieee802154: stop dump llsec keys for monitors

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit fb3c5cdf88cd504ef11d59e8d656f4bc896c6922 ] This patch stops dumping llsec keys for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.org/

[PATCH 3/3] staging: rtl8723bs: hal: Correct indentation

2021-04-12 Thread Beatriz Martins de Carvalho
Correct random indentation to improve readability. This problem was observed when working on other checkpatch reports in the file Hal8723BReg.h Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/rtl8723bs/hal/Hal8723BReg.h | 380 ++-- 1 file changed, 190 insertions(+)

[PATCH 2/3] staging: rtl8723bs: hal: Remove extra blank line

2021-04-12 Thread Beatriz Martins de Carvalho
Remove multiple blank lines to conform Linux kernel coding style. Reported by checkpatch in file Hal8723BReg.h Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/rtl8723bs/hal/Hal8723BReg.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/Hal8723B

[PATCH AUTOSEL 4.4 08/23] ASoC: fsl_esai: Fix TDM slot setup for I2S mode

2021-04-12 Thread Sasha Levin
From: Alexander Shiyan [ Upstream commit e7a48c710defa0e0fef54d42b7d9e4ab596e2761 ] When using the driver in I2S TDM mode, the fsl_esai_startup() function rewrites the number of slots previously set by the fsl_esai_set_dai_tdm_slot() function to 2. To fix this, let's use the saved slot count val

[PATCH 1/3] staging: rtl8723bs: hal: remove space before tabs

2021-04-12 Thread Beatriz Martins de Carvalho
Remove unnecessary space before tabs to conform with Linux kernel coding style. Reported by checkpatch in file Hal8723BReg.h Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/rtl8723bs/hal/Hal8723BReg.h | 26 ++--- 1 file changed, 13 insertions(+), 13 deletions(-) d

[PATCH AUTOSEL 4.4 07/23] drivers: net: fix memory leak in peak_usb_create_dev

2021-04-12 Thread Sasha Levin
From: Pavel Skripkin [ Upstream commit a0b96b4a62745397aee662670cfc2157bac03f55 ] syzbot reported memory leak in peak_usb. The problem was in case of failure after calling ->dev_init()[2] in peak_usb_create_dev()[1]. The data allocated int dev_init() wasn't freed, so simple ->dev_free() call fix

[PATCH AUTOSEL 4.4 05/23] ARM: keystone: fix integer overflow warning

2021-04-12 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 844b85dda2f569943e1e018fdd63b6f7d1d6f08e ] clang warns about an impossible condition when building with 32-bit phys_addr_t: arch/arm/mach-keystone/keystone.c:79:16: error: result of comparison of constant 51539607551 with expression of type 'phys_addr_t' (

[PATCH AUTOSEL 4.4 06/23] drivers: net: fix memory leak in atusb_probe

2021-04-12 Thread Sasha Levin
From: Pavel Skripkin [ Upstream commit 6b9fbe16955152626557ec6f439f3407b7769941 ] syzbot reported memory leak in atusb_probe()[1]. The problem was in atusb_alloc_urbs(). Since urb is anchored, we need to release the reference to correctly free the urb backtrace: [] kmalloc include/linux/sla

[PATCH AUTOSEL 4.4 02/23] ARM: dts: Fix moving mmc devices with aliases for omap4 & 5

2021-04-12 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 77335a040178a0456d4eabc8bf17a7ca3ee4a327 ] Fix moving mmc devices with dts aliases as discussed on the lists. Without this we now have internal eMMC mmc1 show up as mmc2 compared to the earlier order of devices. Signed-off-by: Tony Lindgren Signed-off-by:

[PATCH AUTOSEL 4.9 22/23] net: tipc: Fix spelling errors in net/tipc module

2021-04-12 Thread Sasha Levin
From: Zheng Yongjun [ Upstream commit a79ace4b312953c5835fafb12adc3cb6878b26bd ] These patches fix a series of spelling errors in net/tipc module. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/tipc/bearer.h | 6 +++---

[PATCH AUTOSEL 4.4 01/23] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off-

[PATCH AUTOSEL 4.9 23/23] cfg80211: remove WARN_ON() in cfg80211_sme_connect

2021-04-12 Thread Sasha Levin
From: Du Cheng [ Upstream commit 1b5ab825d9acc0f27d2f25c6252f3526832a9626 ] A WARN_ON(wdev->conn) would trigger in cfg80211_sme_connect(), if multiple send_msg(NL80211_CMD_CONNECT) system calls are made from the userland, which should be anticipated and handled by the wireless driver. Remove thi

[PATCH AUTOSEL 4.4 04/23] neighbour: Disregard DEAD dst in neigh_update

2021-04-12 Thread Sasha Levin
From: Tong Zhu [ Upstream commit d47ec7a0a7271dda08932d6208e4ab65ab0c987c ] After a short network outage, the dst_entry is timed out and put in DST_OBSOLETE_DEAD. We are in this code because arp reply comes from this neighbour after network recovers. There is a potential race condition that dst_

[PATCH AUTOSEL 4.4 03/23] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-04-12 Thread Sasha Levin
From: Wang Qing [ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ] The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing Signed-off-by: Vineet Gupta Signed-off-by: Sasha Le

[PATCH AUTOSEL 4.9 21/23] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-12 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ] In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource is freed and later under spinlock, causing potential use-after-free. Set the free pointer to NULL to avoid undefined behavior. Signed-off-by: A

<    2   3   4   5   6   7   8   9   10   11   >