Re: BPF vs objtool again

2020-04-29 Thread Alexei Starovoitov
On Wed, Apr 29, 2020 at 10:53:15PM -0500, Josh Poimboeuf wrote: > On Wed, Apr 29, 2020 at 07:10:52PM -0700, Alexei Starovoitov wrote: > > > For example: > > > > > > #define GOTO({ goto *jumptable[insn->code]; }) > > > > > > and then replace all 'goto select_insn' with 'GOTO;' > > > > > > The

linux-next: manual merge of the driver-core tree with the driver-core.current tree

2020-04-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the driver-core tree got a conflict in: drivers/base/dd.c between commits: ce68929f07de ("driver core: Revert default driver_deferred_probe_timeout value to 0") 4ccc03e28ec3 ("driver core: Use dev_warn() instead of dev_WARN() for deferred_probe_timeou

Re: [PATCH V2] fs/ceph:fix double unlock in handle_cap_export()

2020-04-29 Thread Wu Bo
On 2020/4/30 10:50, Yan, Zheng wrote: On Wed, Apr 29, 2020 at 8:49 AM Wu Bo wrote: On 2020/4/28 22:48, Jeff Layton wrote: On Tue, 2020-04-28 at 21:13 +0800, Wu Bo wrote: if the ceph_mdsc_open_export_target_session() return fails, should add a lock to avoid twice unlocking. Because the lock w

Re: [PATCH v2 2/3] powerpc/numa: Prefer node id queried from vphn

2020-04-29 Thread Srikar Dronamraju
* Gautham R Shenoy [2020-04-29 12:22:29]: > Hello Srikar, > > > > + if (nid == NUMA_NO_NODE) { > > + cpu = of_get_cpu_node(i, NULL); > > + if (cpu) { > > Why are we not retaining the BUG_ON(!cpu) assert here ? > > > + nid

[PATCH v4 00/16] powerpc/watchpoint: Preparation for more than one watchpoint

2020-04-29 Thread Ravi Bangoria
So far, powerpc Book3S code has been written with an assumption of only one watchpoint. But future power architecture is introducing second watchpoint register (DAWR). Even though this patchset does not enable 2nd DAWR, it make the infrastructure ready so that enabling 2nd DAWR should just be a mat

[PATCH v4 03/16] powerpc/watchpoint: Introduce function to get nr watchpoints dynamically

2020-04-29 Thread Ravi Bangoria
So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1. But future Power architecture is introducing 2nd DAWR and thus kernel should be able to dynamically find actual number of watchpoints supported by hw it's running on. Introduce function for the same. Also convert HBP_NUM macro to

[PATCH v4 02/16] powerpc/watchpoint: Add SPRN macros for second DAWR

2020-04-29 Thread Ravi Bangoria
Future Power architecture is introducing second DAWR. Add SPRN_ macros for the same. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/reg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h

[PATCH v4 06/16] powerpc/watchpoint: Provide DAWR number to __set_breakpoint

2020-04-29 Thread Ravi Bangoria
Introduce new parameter 'nr' to __set_breakpoint() which indicates which DAWR should be programed. Also convert current_brk variable to an array. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/debug.h | 2 +- arch/powerpc/include/asm/hw_breakpoin

[PATCH v4 04/16] powerpc/watchpoint/ptrace: Return actual num of available watchpoints

2020-04-29 Thread Ravi Bangoria
User can ask for num of available watchpoints(dbginfo.num_data_bps) using ptrace(PPC_PTRACE_GETHWDBGINFO). Return actual number of available watchpoints on the machine rather than hardcoded 1. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/kernel/ptrace/ptrace-noadv.

[PATCH v4 01/16] powerpc/watchpoint: Rename current DAWR macros

2020-04-29 Thread Ravi Bangoria
Future Power architecture is introducing second DAWR. Use real register names from ISA for current macros: s/SPRN_DAWR/SPRN_DAWR0/ s/SPRN_DAWRX/SPRN_DAWRX0/ Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/reg.h | 4 ++-- arch/powerpc/kernel/d

[PATCH v4 09/16] powerpc/watchpoint: Convert thread_struct->hw_brk to an array

2020-04-29 Thread Ravi Bangoria
So far powerpc hw supported only one watchpoint. But Future Power architecture is introducing 2nd DAWR. Convert thread_struct->hw_brk into an array. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/processor.h | 2 +- arch/powerpc/kernel/process.c

[PATCH v4 10/16] powerpc/watchpoint: Use loop for thread_struct->ptrace_bps

2020-04-29 Thread Ravi Bangoria
ptrace_bps is already an array of size HBP_NUM_MAX. But we use hardcoded index 0 while fetching/updating it. Convert such code to loop over array. ptrace interface to use multiple watchpoint remains same. eg: two PPC_PTRACE_SETHWDEBUG calls will create two watchpoint if hw underneath supports it.

[PATCH v4 14/16] powerpc/watchpoint: Don't allow concurrent perf and ptrace events

2020-04-29 Thread Ravi Bangoria
With Book3s DAWR, ptrace and perf watchpoints on powerpc behaves differently. Ptrace watchpoint works in one-shot mode and generates signal before executing instruction. It's ptrace user's job to single-step the instruction and re-enable the watchpoint. OTOH, in case of perf watchpoint, kernel emul

[PATCH v4 15/16] powerpc/watchpoint/xmon: Don't allow breakpoint overwriting

2020-04-29 Thread Ravi Bangoria
Xmon allows overwriting breakpoints because it's supported by only one dawr. But with multiple dawrs, overwriting becomes ambiguous or unnecessary complicated. So let's not allow it. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/xmon/xmon.c | 4 1 file changed,

[PATCH v4 16/16] powerpc/watchpoint/xmon: Support 2nd dawr

2020-04-29 Thread Ravi Bangoria
Add support for 2nd DAWR in xmon. With this, we can have two simultaneous breakpoints from xmon. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/xmon/xmon.c | 101 ++- 1 file changed, 69 insertions(+), 32 deletions(-) diff --git a/

[PATCH v4 12/16] powerpc/watchpoint: Use builtin ALIGN*() macros

2020-04-29 Thread Ravi Bangoria
Currently we calculate hw aligned start and end addresses manually. Replace them with builtin ALIGN_DOWN() and ALIGN() macros. So far end_addr was inclusive but this patch makes it exclusive (by avoiding -1) for better readability. Suggested-by: Christophe Leroy Signed-off-by: Ravi Bangoria Rev

[PATCH v4 11/16] powerpc/watchpoint: Introduce is_ptrace_bp() function

2020-04-29 Thread Ravi Bangoria
Introduce is_ptrace_bp() function and move the check inside the function. We will utilize it more in later set of patches. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/kernel/hw_breakpoint.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/

[PATCH v4 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-29 Thread Ravi Bangoria
Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and use dynamic loop instead. This should make supporting more watchpoints very easy. With more than one watchpoint, exception handler need to know which DAWR caused the exception, and hw currently doe

[PATCH v4 08/16] powerpc/watchpoint: Disable all available watchpoints when !dawr_force_enable

2020-04-29 Thread Ravi Bangoria
Instead of disabling only first watchpoint, disable all available watchpoints while clearing dawr_force_enable. Callback function is used only for disabling watchpoint, rename it to disable_dawrs_cb(). And null_brk parameter is not really required while disabling watchpoint, remove it. Signed-off

[PATCH v4 07/16] powerpc/watchpoint: Get watchpoint count dynamically while disabling them

2020-04-29 Thread Ravi Bangoria
Instead of disabling only one watchpoint, get num of available watchpoints dynamically and disable all of them. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/hw_breakpoint.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --g

[PATCH v4 05/16] powerpc/watchpoint: Provide DAWR number to set_dawr

2020-04-29 Thread Ravi Bangoria
Introduce new parameter 'nr' to set_dawr() which indicates which DAWR should be programed. Signed-off-by: Ravi Bangoria Reviewed-by: Michael Neuling --- arch/powerpc/include/asm/hw_breakpoint.h | 4 ++-- arch/powerpc/kernel/dawr.c | 15 ++- arch/powerpc/kernel/process

[PATCH v2 1/2] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-04-29 Thread mani
From: Manivannan Sadhasivam Add support for MaxLinear/Exar USB to Serial converters. This driver only supports XR21V141X series but provision has been made to support other series in future. This driver is inspired from the initial one submitted by Patong Yang: https://patchwork.kernel.org/patc

[PATCH v2 0/2] Add support for MaxLinear/Exar USB to serial converters

2020-04-29 Thread mani
From: Manivannan Sadhasivam Hello, This series adds support for MaxLinear/Exar USB to serial converters. This driver only supports XR21V141X series but provision has been made to support other series in future. This driver is inspired from the initial one submitted by Patong Yang: https://patc

[PATCH v2 2/2] usb: serial: xr_serial: Add gpiochip support

2020-04-29 Thread mani
From: Manivannan Sadhasivam Add gpiochip support for Maxlinear/Exar USB to serial converter for controlling the available gpios. Cc: Linus Walleij Cc: linux-g...@vger.kernel.org Reviewed-by: Linus Walleij Signed-off-by: Manivannan Sadhasivam --- drivers/usb/serial/xr_serial.c | 197 +

Re: [PATCH] sound:hdmi:fix without unlocked before return

2020-04-29 Thread Wu Bo
On 2020/4/29 15:27, Takashi Iwai wrote: On Sun, 26 Apr 2020 15:17:22 +0200, Wu Bo wrote: Fix the following coccicheck warning: sound/pci/hda/patch_hdmi.c:1852:2-8: preceding lock on line 1846 After add sanity check to pass klockwork check, The spdif_mutex should be unlock before return true in

Re: [PATCH] dma-buf: Documentation: fix: `make htmldocs` warnings

2020-04-29 Thread Sam Ravnborg
On Wed, Apr 29, 2020 at 11:27:22PM -0300, Vitor Massaru Iha wrote: > On Wed, 2020-04-29 at 19:06 -0700, Randy Dunlap wrote: > > On 4/29/20 6:59 PM, Vitor Massaru Iha wrote: > > > Add missed ":" on kernel-doc function parameter. > > > > > > This patch fixes this warnings from `make htmldocs`: > > >

Re: [PATCH net-next v3 1/2] ethtool: provide UAPI for PHY master/slave configuration.

2020-04-29 Thread Oleksij Rempel
Hi Andrew, On Wed, Apr 29, 2020 at 08:16:14PM +0200, Andrew Lunn wrote: > On Tue, Apr 28, 2020 at 09:53:07AM +0200, Oleksij Rempel wrote: > > Hi Oleksij > > Sorry for taking a while to review this. I was busy fixing the FEC > driver which i broke :-( Not problem. Interesting, what is wrong with

Re: BPF vs objtool again

2020-04-29 Thread Josh Poimboeuf
On Wed, Apr 29, 2020 at 09:24:00PM -0700, Alexei Starovoitov wrote: > > This would actually be contingent on RETPOLINE, not FRAME_POINTER. > > > > (FRAME_POINTER was the other issue with the "optimize" attribute, which > > we're reverting so it'll no longer be a problem.) > > > > So if you're not

Re: [PATCH v3 1/3] crypto: drbg: DRBG should select SHA512

2020-04-29 Thread Herbert Xu
On Fri, Apr 24, 2020 at 01:40:45PM +, Corentin Labbe wrote: > Since DRBG could use SHA384/SHA512, it should select it. > > Signed-off-by: Corentin Labbe > --- > crypto/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/crypto/Kconfig b/crypto/Kconfig > index c24a47406f8f..6d

Re: [PATCH 10/10] efi/libstub: Check return value of efi_parse_options

2020-04-29 Thread kbuild test robot
Hi Arvind, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on efi/next] [also build test WARNING on next-20200429] [cannot apply to v5.7-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to

Re: [RFC 1/5] soundwire: bus_type: add sdw_master_device support

2020-04-29 Thread Vinod Koul
On 30-04-20, 11:24, Bard liao wrote: > > On 4/28/2020 3:51 PM, Vinod Koul wrote: > > On 28-04-20, 08:55, Greg KH wrote: > > > On Tue, Apr 28, 2020 at 12:19:51PM +0530, Vinod Koul wrote: > > > > On 28-04-20, 08:37, Greg KH wrote: > > > > > On Tue, Apr 28, 2020 at 10:01:44AM +0530, Vinod Koul wrote:

Re: [PATCH net-next v3 1/2] ethtool: provide UAPI for PHY master/slave configuration.

2020-04-29 Thread Oleksij Rempel
Hi Michal, On Wed, Apr 29, 2020 at 09:52:22PM +0200, Michal Kubecek wrote: > On Tue, Apr 28, 2020 at 09:53:07AM +0200, Oleksij Rempel wrote: > > This UAPI is needed for BroadR-Reach 100BASE-T1 devices. Due to lack of > > auto-negotiation support, we needed to be able to configure the > > MASTER-SL

Re: [PATCH] arm: mm: use __pfn_to_section() to get mem_section

2020-04-29 Thread Anshuman Khandual
On 04/30/2020 09:34 AM, Guixiong Wei wrote: > Use __pfn_to_section() to get mem_section, instead of open-coding it. There is no open coding here. __pfn_to_section() helper which already wraps around __nr_to_section(pfn_to_section_nr(pfn)), should be used directly instead. > No semantic changes

Re: [PATCH] misc: fastrpc: fix memory leak

2020-04-29 Thread Bjorn Andersson
On Wed 29 Apr 08:29 PDT 2020, Srinivas Kandagatla wrote: > if misc_register() fails, previously allocated data is left without freeing, > this could result in memory leak. s/could/will/ > > So fix it! > As Markus pointed out, a Fixes: tag would be in order to make sure this is backported prop

Re: [PATCH net-next v3 2/2] net: phy: tja11xx: add support for master-slave configuration

2020-04-29 Thread Oleksij Rempel
On Wed, Apr 29, 2020 at 08:20:53PM +0200, Andrew Lunn wrote: > > +static int tja11xx_config_aneg(struct phy_device *phydev) > > +{ > > + u16 ctl = 0; > > + int ret; > > + > > + switch (phydev->master_slave_set) { > > + case PORT_MODE_CFG_MASTER_FORCE: > > + case PORT_MODE_CFG_MASTER_PREFE

Re: [PATCH v3 1/1] scsi: pm: Balance pm_only counter of request queue during system resume

2020-04-29 Thread Bart Van Assche
On 2020-04-29 21:10, Can Guo wrote: > During system resume, scsi_resume_device() decreases a request queue's > pm_only counter if the scsi device was quiesced before. But after that, > if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is > still held (non-zero). Current scsi res

Re: [PATCH v7 1/7] dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings

2020-04-29 Thread Viresh Kumar
On 24-04-20, 18:53, Georgi Djakov wrote: > From: Saravana Kannan > > Interconnects often quantify their performance points in terms of > bandwidth. So, add opp-peak-kBps (required) and opp-avg-kBps (optional) to > allow specifying Bandwidth OPP tables in DT. > > opp-peak-kBps is a required prope

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-04-29 Thread Leon Romanovsky
On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > excessive and now causes the compiler to complain on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function > 'qp_read_field':

Re: [PATCH v7 2/7] OPP: Add helpers for reading the binding properties

2020-04-29 Thread Viresh Kumar
On 24-04-20, 10:30, Matthias Kaehlcke wrote: > Hi Georgi, > > On Fri, Apr 24, 2020 at 06:53:59PM +0300, Georgi Djakov wrote: > > From: Saravana Kannan > > > > The opp-hz DT property is not mandatory and we may use another property > > as a key in the OPP table. Add helper functions to simplify t

Re: [PATCH v7 4/7] OPP: Add support for parsing interconnect bandwidth

2020-04-29 Thread Viresh Kumar
On 24-04-20, 12:20, Matthias Kaehlcke wrote: > On Fri, Apr 24, 2020 at 06:54:01PM +0300, Georgi Djakov wrote: > > + for (i = 0; i < num_paths; i++) { > > + opp_table->paths[i] = of_icc_get_by_index(dev, i); > > + if (IS_ERR(opp_table->paths[i])) { > > + ret =

Re: [PATCH v2] crypto: ccp: Add support for SEV-ES to the PSP driver

2020-04-29 Thread Herbert Xu
On Tue, Apr 21, 2020 at 12:44:49PM -0500, Tom Lendacky wrote: > To provide support for SEV-ES, the hypervisor must provide an area of > memory to the PSP. Once this Trusted Memory Region (TMR) is provided to > the PSP, the contents of this area of memory are no longer available to > the x86. > > U

Re: [PATCH] padata: add separate cpuhp node for CPUHP_PADATA_DEAD

2020-04-29 Thread Herbert Xu
On Tue, Apr 21, 2020 at 12:34:55PM -0400, Daniel Jordan wrote: > Removing the pcrypt module triggers this: > > general protection fault, probably for non-canonical > address 0xdead0122 > CPU: 5 PID: 264 Comm: modprobe Not tainted 5.6.0+ #2 > Hardware name: QEMU Standard PC > RI

Re: [PATCH] lib/mpi: Fix 64-bit MIPS build with Clang

2020-04-29 Thread Herbert Xu
On Tue, Apr 21, 2020 at 02:47:04PM -0700, Nathan Chancellor wrote: > When building 64r6_defconfig with CONFIG_MIPS32_O32 disabled and > CONFIG_CRYPTO_RSA enabled: > > lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a > inline asm context requiring an l-value: remove the cast > o

Re: [PATCH -next] crypto: hisilicon/qm - Make qm_controller_reset() static

2020-04-29 Thread Herbert Xu
On Thu, Apr 23, 2020 at 10:22:36AM +0800, Zou Wei wrote: > Fix the following sparse warning: > > drivers/crypto/hisilicon/qm.c:3079:5: warning: symbol 'qm_controller_reset' > was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > drivers/crypto/hisi

Re: [PATCH crypto-stable v3 1/2] crypto: arch/lib - limit simd usage to 4k chunks

2020-04-29 Thread Herbert Xu
On Wed, Apr 22, 2020 at 05:18:53PM -0600, Jason A. Donenfeld wrote: > The initial Zinc patchset, after some mailing list discussion, contained > code to ensure that kernel_fpu_enable would not be kept on for more than > a 4k chunk, since it disables preemption. The choice of 4k isn't totally > scie

Re: [PATCH -next] hwrng: cctrng - Make some symbols static

2020-04-29 Thread Herbert Xu
Zou Wei wrote: > Fix the following sparse warnings: > > drivers/char/hw_random/cctrng.c:316:6: warning: symbol > 'cc_trng_compwork_handler' was not declared. Should it be static? > drivers/char/hw_random/cctrng.c:451:6: warning: symbol > 'cc_trng_startwork_handler' was not declared. Should it be

Re: [PATCH v3 0/3] crypto: fix some DRBG Kconfig deps

2020-04-29 Thread Herbert Xu
On Fri, Apr 24, 2020 at 01:40:44PM +, Corentin Labbe wrote: > Hello > > Fix serie try to fix some DRBG depencies in Kconfig > > Change since v2: > - added patch #2 > > Changes since v1: > - Updated commit message with recursive dependency > > Corentin Labbe (3): > crypto: drbg: DRBG shoul

Re: [PATCH] crypto: bcm - Remove the unnecessary cast for PTR_ERR().

2020-04-29 Thread Herbert Xu
On Sat, Apr 25, 2020 at 10:22:58PM +0800, Tang Bin wrote: > It's not necessary to specify 'int' casting for PTR_ERR(). > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > --- > drivers/crypto/bcm/cipher.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks.

Re: [PATCH] crypto: bcm - Fix unused assignment

2020-04-29 Thread Herbert Xu
On Sat, Apr 25, 2020 at 10:24:14PM +0800, Tang Bin wrote: > Delete unused initialized value in cipher.c file. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > --- > drivers/crypto/bcm/cipher.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) Patch applied.

Re: [PATCH 8/9] perf intel-pt: Update documentation about itrace G and L options

2020-04-29 Thread Adrian Hunter
On 30/04/20 2:03 am, Andi Kleen wrote: >> +One caveat with the G and L options is that they work poorly with "Large >> PEBS". >> +Large PEBS means PEBS records will be accumulated by hardware and the >> written >> +into the event buffer in one go. That reduces interrupts, but can give very >> +l

Re: [PATCH v3 1/1] scsi: pm: Balance pm_only counter of request queue during system resume

2020-04-29 Thread Can Guo
Hi Bart, On 2020-04-30 13:08, Bart Van Assche wrote: On 2020-04-29 21:10, Can Guo wrote: During system resume, scsi_resume_device() decreases a request queue's pm_only counter if the scsi device was quiesced before. But after that, if the scsi device's RPM status is RPM_SUSPENDED, the pm_only

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-29 Thread Michał Orzeł
On 29.04.2020 10:57, Jani Nikula wrote: > On Tue, 28 Apr 2020, Michal Orzel wrote: >> As suggested by the TODO list for the kernel DRM subsystem, replace >> the deprecated functions that take/drop modeset locks with new helpers. >> >> Signed-off-by: Michal Orzel >> --- >> drivers/gpu/drm/drm_

Re: [RFC 1/3] powernv/cpuidle : Support for pre-entry and post exit of stop state in firmware

2020-04-29 Thread Abhishek
Hi Nick, Have you posted out the kernel side of "opal v4" patchset? I could only find the opal patchset. Thanks, Abhishek On 04/28/2020 06:38 AM, Nicholas Piggin wrote: Thanks for picking this up and pushing it along. I do plan to come back and take another look at it all, but what we do need

Re: [PATCH v8 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2020-04-29 Thread Xin Ji
Hi Sam, thanks for your comments. On Mon, Apr 27, 2020 at 08:49:09PM +0200, Sam Ravnborg wrote: > Hi Xin Ji > > On Mon, Apr 27, 2020 at 02:17:46PM +0800, Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI to DisplayPort

Re: [PATCH v2] hv_netvsc: Fix netvsc_start_xmit's return type

2020-04-29 Thread Nathan Chancellor
Hi Michael, On Thu, Apr 30, 2020 at 12:06:09AM +, Michael Kelley wrote: > From: Nathan Chancellor Sent: Tuesday, April 28, > 2020 10:55 AM > > > > Do note that netvsc_xmit still returns int because netvsc_xmit has a > > potential return from netvsc_vf_xmit, which does not return netdev_tx_t

Re: [PATCH v8 0/2] Add initial support for slimport anx7625

2020-04-29 Thread Xin Ji
Hi Sam, On Mon, Apr 27, 2020 at 08:53:20PM +0200, Sam Ravnborg wrote: > Hi Xin Ji > > On Mon, Apr 27, 2020 at 02:16:49PM +0800, Xin Ji wrote: > > Hi all, > > > > The following series add support for the Slimport ANX7625 transmitter, a > > ultra-low power Full-HD 4K MIPI to DP transmitter designe

mmotm 2020-04-29-23-02 uploaded

2020-04-29 Thread akpm
The mm-of-the-moment snapshot 2020-04-29-23-02 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

mmotm 2020-04-29-23-04 uploaded

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

Re: [PATCH v7 6/7] OPP: Update the bandwidth on OPP frequency changes

2020-04-29 Thread Viresh Kumar
On 24-04-20, 14:18, Saravana Kannan wrote: > My only comment is -- can we drop this patch please? I'd like to use > devfreq governors for voting on bandwidth and this will effectively > override whatever bandwidth decisions are made by the devfreq > governor. And why would that be better ? FWIW, t

[PATCH v5] media: rcar-csi2: Correct the selection of hsfreqrange

2020-04-29 Thread Suresh Udipi
hsfreqrange should be chosen based on the calculated mbps which is within the range as per table[1]. But current calculation always selects first value which is greater than or equal to the calculated mbps which may lead to chosing a wrong range in some cases. For example for 360 mbps for H3/M3N E

Re: [PATCH v6] MIPS: Loongson: Add DMA support for LS7A

2020-04-29 Thread Huacai Chen
Hi Christoph, On Thu, Apr 30, 2020 at 10:31 AM Tiezhu Yang wrote: > > In the current market, the most used bridge chip on the Loongson > platform are RS780E and LS7A, the RS780E bridge chip is already > supported by the mainline kernel. > > In order to use the default implementation of __phys_to

Re: [PATCH] ALSA: opti9xx: shut up gcc-10 range warning

2020-04-29 Thread Takashi Iwai
On Wed, 29 Apr 2020 21:02:03 +0200, Arnd Bergmann wrote: > > gcc-10 points out a few instances of suspicious integer arithmetic > leading to value truncation: > > sound/isa/opti9xx/opti92x-ad1848.c: In function 'snd_opti9xx_configure': > sound/isa/opti9xx/opti92x-ad1848.c:322:43: error: overflow

[PATCH V3] fs/ceph:fix double unlock in handle_cap_export()

2020-04-29 Thread Wu Bo
If the ceph_mdsc_open_export_target_session() return fails, we should add mutex_lock(&session->s_mutex) on IS_ERR(tsession) block to avoid twice unlocking. because the session->s_mutex will be unlock at the out_unlock lable. -- v2 -> v3: - Rewrite solution, adding a mutex_lock(&session->s_mutex

[PATCH 3/3] mm/swap: remove redundant check for swap_slot_cache_initialized

2020-04-29 Thread Zhen Lei
Because enable_swap_slots_cache can only become true in enable_swap_slots_cache(), and depends on swap_slot_cache_initialized is true before. That means, when enable_swap_slots_cache is true, swap_slot_cache_initialized is true also. So the condition: "swap_slot_cache_enabled && swap_slot_cache_in

[PATCH 2/3] mm/swap: simplify enable_swap_slots_cache()

2020-04-29 Thread Zhen Lei
Whether swap_slot_cache_initialized is true or false, __reenable_swap_slots_cache() is always called. To make this meaning clear, leave only one call to __reenable_swap_slots_cache(). This also make it clearer what extra needs be done when swap_slot_cache_initialized is false. No functional change

[PATCH 1/3] mm/swap: simplify alloc_swap_slot_cache()

2020-04-29 Thread Zhen Lei
Both "slots" and "slots_ret" are only need to be freed when cache already allocated. Make them closer, seems more clear. No functional change. Signed-off-by: Zhen Lei --- mm/swap_slots.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mm/swap_slots.c b/mm/

[PATCH 0/3] clean up some functions in mm/swap_slots.c

2020-04-29 Thread Zhen Lei
When I studied the code of mm/swap_slots.c, I found some places can be improved. Zhen Lei (3): mm/swap: simplify alloc_swap_slot_cache() mm/swap: simplify enable_swap_slots_cache() mm/swap: remove redundant check for swap_slot_cache_initialized mm/swap_slots.c | 45 +---

Re: [PATCH v3 03/17] arm64: dts: sdm845: Add OPP table for all qup devices

2020-04-29 Thread Viresh Kumar
On 28-04-20, 17:02, Matthias Kaehlcke wrote: > Judging from SDM845 (which has more OPP tables) the convention seems to be > to add OPP tables to the nodes that use them, which seems reasonable and I don't think that's right. The same DT opp tables are used for multiple CPUs and they are placed out

Re: WARNING: bad unlock balance in rcu_lock_release

2020-04-29 Thread syzbot
syzbot suspects this bug was fixed by commit: commit 10476e6304222ced7df9b3d5fb0a043b3c2a1ad8 Author: Peter Zijlstra Date: Fri Mar 13 08:56:38 2020 + locking/lockdep: Fix bad recursion pattern bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16d64bac10 start commit:

[PATCH] kconfig: announce removal of 'kvmconfig' and 'xenconfig' shorthands

2020-04-29 Thread Masahiro Yamada
kvmconfig' is a shorthand for kvm_guest.config to save 7 character typing. xenconfig' is a shorthand for xen.config to save 1 character typing. There is nothing more than that. There are more files in kernel/configs/, so it is not maintainable to wire-up every config fragment to the Kconfig Make

Re: [PATCH] md/raid0: add config parameters to specify zone layout

2020-04-29 Thread Song Liu
Hi Jason, > On Apr 27, 2020, at 2:10 PM, Jason Baron wrote: > > > > On 4/25/20 12:31 AM, Coly Li wrote: >> On 2020/3/26 23:28, Jason Baron wrote: >>> Let's add some CONFIG_* options to directly configure the raid0 layout >>> if you know in advance how your raid0 array was created. This can be

Re: [PATCH v10 3/5] usb: xhci: Add support for Renesas controller with memory

2020-04-29 Thread Vinod Koul
On 29-04-20, 19:58, Vinod Koul wrote: > On 29-04-20, 16:53, Mathias Nyman wrote: > > On 24.4.2020 13.14, Vinod Koul wrote: > > > /* Prevent runtime suspending between USB-2 and USB-3 initialization */ > > > pm_runtime_get_noresume(&dev->dev); > > > @@ -388,6 +401,9 @@ static void xhci_pci_remo

Re: [PATCH 1/4] clk: sunxi-ng: a10/a20: rewrite init code to a platform driver

2020-04-29 Thread Priit Laes
On Wed, Apr 29, 2020 at 04:35:10PM +0200, Maxime Ripard wrote: > Hi, > > On Mon, Apr 20, 2020 at 08:32:28PM +, Priit Laes wrote: > > On Mon, Apr 20, 2020 at 02:49:35PM +0200, Maxime Ripard wrote: > > > On Sat, Apr 18, 2020 at 01:17:27AM +0300, Priit Laes wrote: > > > > In order to register reg

[RFC PATCH] cpufreq: add support for HiSilicon SoC HIP09

2020-04-29 Thread Xiongfeng Wang
HiSilicon SoC has a separate System Control Processor(SCP) dedicated for clock frequency adjustment and has been using the cpufreq driver 'cppc-cpufreq'. New HiSilicon SoC HIP09 add support for CPU Boost, but ACPI CPPC doesn't support this. In HiSilicon SoC HIP09, each core has its own clock domain

Re: [PATCH v8 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-29 Thread Xin Ji
Hi Sam, On Mon, Apr 27, 2020 at 10:00:44PM +0200, Sam Ravnborg wrote: > Hi Xin Ji > > On Mon, Apr 27, 2020 at 02:18:44PM +0800, Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. > > > > T

linux-next: manual merge of the akpm-current tree with the arm64 tree

2020-04-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/arm64/Kconfig between commit: ab7876a98a21 ("arm64: elf: Enable BTI at exec based on ELF program properties") from the arm64 tree and commit: 03a534dd08f3 ("arm64: mm: use ARCH_HAS_DEBUG_WX instead of arc

Re: [PATCH v2 1/2] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-04-29 Thread Greg KH
On Thu, Apr 30, 2020 at 10:06:35AM +0530, m...@kernel.org wrote: > + port_priv->idProduct = le16_to_cpu(serial->dev->descriptor.idProduct); > + > + /* XR21V141X specific settings */ > + if (port_priv->idProduct == XR21V141X_ID) { > + port_priv->regs = &xr21v141x_regs; > +

Re: [PATCH v8 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-29 Thread Xin Ji
On Wed, Apr 29, 2020 at 10:10:05AM +0800, Nicolas Boichat wrote: > On Mon, Apr 27, 2020 at 2:18 PM Xin Ji wrote: > > > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. > > > > The ANX7625 can support both

[PATCH 1/2] dt-bindings: soc: qcom: Add devicetree binding for Qcom IPCC

2020-04-29 Thread Manivannan Sadhasivam
Add devicetree YAML binding for Qualcomm Inter-Processor Communication Controller (IPCC) block. Signed-off-by: Manivannan Sadhasivam --- .../bindings/soc/qcom/qcom,ipcc.yaml | 85 +++ include/dt-bindings/soc/qcom,ipcc.h | 38 + 2 files changed, 123 inse

Re: [PATCH] xfrm: policy: Only use mark as policy lookup key

2020-04-29 Thread Yuehaibing
On 2020/4/24 11:48, Yuehaibing wrote: > On 2020/4/23 17:43, Xin Long wrote: >> On Thu, Apr 23, 2020 at 4:41 PM Yuehaibing wrote: >>> >>> On 2020/4/23 14:37, Xin Long wrote: On Thu, Apr 23, 2020 at 10:26 AM Yuehaibing wrote: > > On 2020/4/22 23:41, Xin Long wrote: >> On Wed, Apr 2

[PATCH 2/2] soc: qcom: ipcc: Add support for IPCC controller

2020-04-29 Thread Manivannan Sadhasivam
From: Venkata Narendra Kumar Gutta Add support for the Inter-Processor Communication Controller (IPCC) driver that coordinates the interrupts (inbound & outbound) for Multiprocessor (MPROC), COMPUTE-Level0 (COMPUTE-L0) & COMPUTE-Level1 (COMPUTE-L1) protocols for the Application Processor Subsyste

Re:Re: [PATCH] drm/mediatek: cleanup coding style in mediatek a bit

2020-04-29 Thread Bernard
发件人:Chun-Kuang Hu 发送日期:2020-04-29 22:22:50 收件人:Bernard Zhao 抄送人:Chun-Kuang Hu ,Philipp Zabel ,David Airlie ,Daniel Vetter ,Matthias Brugger ,DRI Development ,Linux ARM ,"moderated list:ARM/Mediatek SoC support" ,linux-kernel ,opensource.ker...@vivo.com 主题:Re: [PATCH] drm/mediatek: cleanup

[PATCH -next] drm/amdgpu: Fix warning Comparison to bool

2020-04-29 Thread Zou Wei
fix below warnings reported by coccicheck drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:630:5-11: WARNING: Comparison to bool Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/a

Re: [PATCH] ASoC: mxs-saif: Add variable dev to simplify code

2020-04-29 Thread Markus Elfring
> Add variable 'dev' to make the code cleaner in the function > mxs_saif_probe(). And now that the function mxs_saif_mclk_init() > have defined the variables 'ret' as the error returned value, > then it should be used instead in this place. I find it clearer to integrate such source code adjustmen

Re: [PATCH 5.6 000/167] 5.6.8-rc1 review

2020-04-29 Thread Greg Kroah-Hartman
On Wed, Apr 29, 2020 at 11:17:35AM +0100, Jon Hunter wrote: > > On 28/04/2020 19:22, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.8 release. > > There are 167 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: [PATCH 5.6 000/167] 5.6.8-rc1 review

2020-04-29 Thread Greg Kroah-Hartman
On Wed, Apr 29, 2020 at 07:05:42AM -0700, Guenter Roeck wrote: > On Tue, Apr 28, 2020 at 08:22:56PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.8 release. > > There are 167 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH 5.6 000/167] 5.6.8-rc1 review

2020-04-29 Thread Greg Kroah-Hartman
On Wed, Apr 29, 2020 at 02:38:29PM +0530, Naresh Kamboju wrote: > On Tue, 28 Apr 2020 at 23:57, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.6.8 release. > > There are 167 patches in this series, all will be posted as a response > > to this one. If an

Re: [PATCH] remoteproc: Fix wrong rvring index computation

2020-04-29 Thread Greg KH
On Wed, Apr 29, 2020 at 04:26:41PM -0700, Doug Anderson wrote: > Hi, > > On Fri, 4 Oct 2019 Clement Leger wrote: > > > > Index of rvring is computed using pointer arithmetic. However, since > > rvring->rvdev->vring is the base of the vring array, computation > > of rvring idx should be reversed.

[PATCH] soundwire: qcom: fix error handling in probe

2020-04-29 Thread Bard Liao
From: Pierre-Louis Bossart Make sure all error cases are properly handled and all resources freed. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao Reviewed-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 26 +- 1 file changed, 17 insertions(+), 9 d

[PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-04-29 Thread Bard Liao
From: Pierre-Louis Bossart In the existing SoundWire code, Master Devices are not explicitly represented - only SoundWire Slave Devices are exposed (the use of capital letters follows the SoundWire specification conventions). The SoundWire Master Device provides the clock, synchronization inform

[PATCH 2/3] soundwire: bus_type: introduce sdw_slave_type and sdw_master_type

2020-04-29 Thread Bard Liao
From: Pierre-Louis Bossart this is a preparatory patch before the introduction of the sdw_master_type. The SoundWire slave support is slightly modified with the use of a sdw_slave_type, and the uevent handling move to slave.c (since it's not necessary for the master). No functionality change oth

Re: [PATCH 2/2] soc: qcom: ipcc: Add support for IPCC controller

2020-04-29 Thread rananta
On 2020-04-29 23:30, Manivannan Sadhasivam wrote: +static int qcom_ipcc_probe(struct platform_device *pdev) +{ + struct qcom_ipcc_proto_data *proto_data; + int ret; + + proto_data = devm_kzalloc(&pdev->dev, sizeof(*proto_data), GFP_KERNEL); + if (!proto_data) + r

[PATCH 0/3] soundwire: bus_type: add sdw_master_device support

2020-04-29 Thread Bard Liao
This series adds sdw master devices support. Pierre-Louis Bossart (3): soundwire: bus: rename sdw_bus_master_add/delete, add arguments soundwire: bus_type: introduce sdw_slave_type and sdw_master_type soundwire: bus_type: add sdw_master_device support .../driver-api/soundwire/summary.rst

[PATCH 1/3] soundwire: bus: rename sdw_bus_master_add/delete, add arguments

2020-04-29 Thread Bard Liao
From: Pierre-Louis Bossart In preparation for future extensions, rename functions to use sdw_bus_master prefix and add a parent and fwnode argument to sdw_bus_master_add to help with device registration in follow-up patches. No functionality change, just renames and additional arguments. The In

Re: [PATCH RFC 4/6] KVM: x86: acknowledgment mechanism for async pf page ready notifications

2020-04-29 Thread Paolo Bonzini
On 30/04/20 02:45, Andy Lutomirski wrote: >> That's a very bad idea since one is synchronous and one is asynchronous. >> Part of the proposal we agreed upon was to keep "page not ready" >> synchronous while making "page ready" an interrupt. The data structure >> for "page not ready" will be #VE.

Re: [PATCH RFC 4/6] KVM: x86: acknowledgment mechanism for async pf page ready notifications

2020-04-29 Thread Paolo Bonzini
On 29/04/20 11:36, Vitaly Kuznetsov wrote: > + case MSR_KVM_ASYNC_PF_ACK: > + if (data & 0x1) > + kvm_check_async_pf_completion(vcpu); > + break; Does this work if interrupts are turned off? I think in that case kvm_check_async_pf_completion will re

Re: [PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-29 Thread Xiaoyao Li
On 4/29/2020 1:46 PM, Li RongQing wrote: Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so we

Re: [PATCH v3 4/7] linux/signal.h: Ignore SIGINFO by default in new tasks

2020-04-29 Thread Jiri Slaby
On 30. 04. 20, 8:42, Arseny Maslennikov wrote: > This matches the behaviour of other Unix-like systems that have SIGINFO > and causes less harm to processes that do not install handlers for this > signal, making the keyboard status character non-fatal for them. > > This is implemented with the ass

Re: [PATCH v3 5/7] tty: Add NOKERNINFO lflag to termios

2020-04-29 Thread Jiri Slaby
On 30. 04. 20, 8:42, Arseny Maslennikov wrote: > The termios lflag is off by default. This commit message is too poor. Describing the intended use would help. thanks, -- js suse labs

Re: [PATCH] pinctrl: mediatek: fix mtk_eint link error

2020-04-29 Thread Light Hsieh
On Wed, 2020-04-29 at 15:24 +0200, Arnd Bergmann wrote: > In a configuration with CONFIG_PINCTRL_MTK_MOORE=y and > CONFIG_PINCTRL_MTK_PARIS=m, > we end up with the mtk_eint driver as a loadable module that cannot be > linked from built-in code: How did you set all MTK-related PINCTRL configs? and

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