Re: [RFC v4 1/3] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-08-11 Thread Peter Chen
On Wed, Jun 24, 2020 at 10:31 AM Wesley Cheng wrote: > > Some devices have USB compositions which may require multiple endpoints > that support EP bursting. HW defined TX FIFO sizes may not always be > sufficient for these compositions. By utilizing flexible TX FIFO > allocation, this allows for

KASAN: use-after-free Read in __io_req_task_submit

2020-08-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:00e4db51 Merge tag 'perf-tools-2020-08-10' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1382902290 kernel config: https://syzkaller.appspot.com/x/.config?x=64a3282e09356140 das

Re: VDPA Debug/Statistics

2020-08-11 Thread Jason Wang
On 2020/8/11 下午7:58, Eli Cohen wrote: On Tue, Aug 11, 2020 at 11:26:20AM +, Eli Cohen wrote: Hi All Currently, the only statistics we get for a VDPA instance comes from the virtio_net device instance. Since VDPA involves hardware acceleration, there can be quite a lot of information tha

Re: [PATCH v2 1/2] ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM

2020-08-11 Thread John Stultz
On Tue, Aug 11, 2020 at 5:02 AM Srinivas Kandagatla wrote: > > Looks like the q6afe-dai dapm widget registers are set as "0", > which is a not correct. > > As this registers will be read by ASoC core during startup > which will throw up errors, Fix this by making the registers > as SND_SOC_NOPM as

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Badhri Jagan Sridharan
On Tue, Aug 11, 2020 at 6:44 PM Guenter Roeck wrote: > > On 8/11/20 6:08 PM, Badhri Jagan Sridharan wrote: > > Yes I did ! https://lkml.org/lkml/2020/8/11/788 ! > > > > For me gmail is grouping V1 and V2 patches in the same thread so > > thought you saw the v2 patch :P > > > > You copied me on v1,

Re: [PATCH 1/4] vdpa: introduce config op to get valid iova range

2020-08-11 Thread Jason Wang
On 2020/8/11 下午4:29, Michael S. Tsirkin wrote: On Tue, Aug 11, 2020 at 10:53:09AM +0800, Jason Wang wrote: On 2020/8/10 下午8:05, Michael S. Tsirkin wrote: On Thu, Aug 06, 2020 at 03:43:54PM +0300, Eli Cohen wrote: On Thu, Aug 06, 2020 at 08:29:22AM -0400, Michael S. Tsirkin wrote: On Thu, Au

Re: [PATCH v2] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

2020-08-11 Thread Badhri Jagan Sridharan
On Tue, Aug 11, 2020 at 6:43 PM Guenter Roeck wrote: > > On Tue, Aug 11, 2020 at 05:14:39PM -0700, Badhri Jagan Sridharan wrote: > > From the spec: > > "6.6.8.1 SwapSourceStartTimer > > The SwapSourceStartTimer Shall be used by the new Source, after a Power > > Role Swap or Fast Role Swap, to ensu

Re: [PATCH] erofs: avoid duplicated permission check for "trusted." xattrs

2020-08-11 Thread Chao Yu
On 2020/8/11 15:00, Gao Xiang wrote: Don't recheck it since xattr_permission() already checks CAP_SYS_ADMIN capability. Just follow 5d3ce4f70172 ("f2fs: avoid duplicated permission check for "trusted." xattrs") Reported-by: Hongyu Jin [ Gao Xiang: since it could cause some complex Android ove

Re: [RFC PATCH 00/16] Core scheduling v6

2020-08-11 Thread Li, Aubrey
Hi Joel, On 2020/8/10 0:44, Joel Fernandes wrote: > Hi Aubrey, > > Apologies for replying late as I was still looking into the details. > > On Wed, Aug 05, 2020 at 11:57:20AM +0800, Li, Aubrey wrote: > [...] >> +/* >> + * Core scheduling policy: >> + * - CORE_SCHED_DISABLED: core scheduling is d

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-08-11 Thread Tian, Kevin
> From: Alex Williamson > Sent: Wednesday, August 12, 2020 1:01 AM > > On Mon, 10 Aug 2020 07:32:24 + > "Tian, Kevin" wrote: > > > > From: Jason Gunthorpe > > > Sent: Friday, August 7, 2020 8:20 PM > > > > > > On Wed, Aug 05, 2020 at 07:22:58PM -0600, Alex Williamson wrote: > > > > > > > I

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-11 Thread Anup Patel
On Wed, Aug 12, 2020 at 12:16 AM Atish Patra wrote: > > On Tue, Aug 11, 2020 at 1:41 AM Anup Patel wrote: > > > > On Tue, Aug 11, 2020 at 12:07 PM Qiu Wenbo wrote: > > > > > > Exception vector is missing on nommu platform and it is a big issue. > > > This patch is tested in Sipeed MAIX Bit Dev B

Re: [PATCH v3 02/18] gpio: uapi: define uAPI v2

2020-08-11 Thread Kent Gibson
On Tue, Aug 11, 2020 at 09:11:41PM +0200, Bartosz Golaszewski wrote: > On Sun, Aug 9, 2020 at 3:26 PM Kent Gibson wrote: > > [snip] > > > > +/* > > + * Maximum number of requested lines. > > + * > > + * Must be no greater than 64 as bitmaps are limited to 64-bits, and a > > + * multiple of 2 to en

Re: [f2fs-dev] [PATCH] f2fs: change virtual mapping way for compression pages

2020-08-11 Thread Chao Yu
On 2020/8/11 19:31, Daeho Jeong wrote: Plus, differently from your testbed, in my pixel device, there seems to be much more contention in vmap() operation. If it's not there, I agree that there might not be a big difference between vmap() and vm_map_ram(). 2020년 8월 11일 (화) 오후 8:29, Gao Xiang 님이

arch/sparc/include/asm/cmpxchg_64.h:161:55: sparse: sparse: cast truncates bits from constant value (ffffffffe0f510cc becomes cc)

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb893de323e2d39f7a1f6df425703a2edbdf56ea commit: 47e4937a4a7ca4184fd282791dfee76c6799966a erofs: move erofs out of staging date: 12 months ago config: sparc64-randconfig-s032-20200812 (attached as .config)

Re: [PATCH] sched/core: add unlikely in group_has_capacity()

2020-08-11 Thread Qi Zheng
On 2020/8/7 上午10:47, Qi Zheng wrote: Yeah, because of the following two points, I also think the probability is 0%: a) the sd is protected by rcu lock, and load_balance()    func is between rcu_read_lock() and rcu_read_unlock(). b) the sgs is a local variable. So in the group_classify(), the en

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Guenter Roeck
On 8/11/20 6:08 PM, Badhri Jagan Sridharan wrote: > Yes I did ! https://lkml.org/lkml/2020/8/11/788 ! > > For me gmail is grouping V1 and V2 patches in the same thread so > thought you saw the v2 patch :P > You copied me on v1, but not on v2. I am not on any of the mailing lists you sent v2 to,

Re: [PATCH v7] Add a "nosymfollow" mount option.

2020-08-11 Thread Aleksa Sarai
On 2020-08-11, Ross Zwisler wrote: > From: Mattias Nissler > > For mounts that have the new "nosymfollow" option, don't follow symlinks > when resolving paths. The new option is similar in spirit to the > existing "nodev", "noexec", and "nosuid" options, as well as to the > LOOKUP_NO_SYMLINKS re

Re: [PATCH v2] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

2020-08-11 Thread Guenter Roeck
On Tue, Aug 11, 2020 at 05:14:39PM -0700, Badhri Jagan Sridharan wrote: > From the spec: > "6.6.8.1 SwapSourceStartTimer > The SwapSourceStartTimer Shall be used by the new Source, after a Power > Role Swap or Fast Role Swap, to ensure that it does not send > Source_Capabilities Message before the

Re: [PATCH v2] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Guenter Roeck
On Tue, Aug 11, 2020 at 01:02:28PM -0700, Badhri Jagan Sridharan wrote: > From the spec: > "7.1.5 Response to Hard Resets > Hard Reset Signaling indicates a communication failure has occurred and > the Source Shall stop driving VCONN, Shall remove Rp from the VCONN pin > and Shall drive VBUS to vSa

Re: [RFC v2 03/11] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-08-11 Thread John Stultz
On Tue, Aug 11, 2020 at 4:11 PM John Stultz wrote: > > On Wed, Mar 20, 2019 at 2:49 AM Rajendra Nayak wrote: > > > > geni serial needs to express a perforamnce state requirement on CX > > depending on the frequency of the clock rates. Use OPP table from > > DT to register with OPP framework and u

[PATCH v2 3/7] regulator: push allocations in create_regulator() outside of lock

2020-08-11 Thread Michał Mirosław
Move all allocations outside of the regulator_lock()ed section. == WARNING: possible circular locking dependency detected 5.7.13+ #535 Not tainted -- f2fs_discard-179:7/702 is trying to acquire

[PATCH v2 6/7] regulator: cleanup regulator_ena_gpio_free()

2020-08-11 Thread Michał Mirosław
Since only regulator_ena_gpio_request() allocates rdev->ena_pin, and it guarantees that same gpiod gets same pin structure, it is enough to compare just the pointers. Also we know there can be only one matching entry on the list. Rework the code take advantage of the facts. Signed-off-by: Michał M

[PATCH v2 2/7] regulator: push allocation in regulator_ena_gpio_request() out of lock

2020-08-11 Thread Michał Mirosław
Move another allocation out of regulator_list_mutex-protected region, as reclaim might want to take the same lock. WARNING: possible circular locking dependency detected 5.7.13+ #534 Not tainted -- kswapd0/383 is trying to acquire lock: c0e5d920

[PATCH v2 4/7] regulator: push allocation in set_consumer_device_supply() out of lock

2020-08-11 Thread Michał Mirosław
Pull regulator_list_mutex into set_consumer_device_supply() and keep allocations outside of it. Fourth of the fs_reclaim deadlock case. Cc: sta...@vger.kernel.org Fixes: 45389c47526d ("regulator: core: Add early supply resolution for regulators") Signed-off-by: Michał Mirosław --- v2: fix new no

[PATCH v2 0/7] regulator: fix deadlock vs memory reclaim

2020-08-11 Thread Michał Mirosław
For systems that have eg. eMMC storage using voltage regulator, memory reclaim path might call back into regulator subsystem. This means we have to make sure no allocations happen with a regulator or regulator list locked. After this series I see no more lockdep complaints on my test system, but p

[PATCH] MAINTAINERS: Add git tree for KVM/mips

2020-08-11 Thread Tiezhu Yang
There is no git tree for KVM/mips in MAINTAINERS, it is not convinent to rebase, add it. Signed-off-by: Tiezhu Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e627ed6..11c82c1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9546,6 +9546,7 @

[PATCH v2 7/7] regulator: remove superfluous lock in regulator_resolve_coupling()

2020-08-11 Thread Michał Mirosław
The code modifies rdev, but locks c_rdev instead. Remove the lock as this is held together by regulator_list_mutex taken in the caller. Signed-off-by: Michał Mirosław Reviewed-by: Dmitry Osipenko Fixes: f9503385b187 ("regulator: core: Mutually resolve regulators coupling") --- v2: reword commitm

[PATCH v2 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Michał Mirosław
Allocating memory with regulator_list_mutex held makes lockdep unhappy when memory pressure makes the system do fs_reclaim on eg. eMMC using a regulator. Push the lock inside regulator_init_coupling() after the allocation. == WARNING: possible ci

[PATCH v2 5/7] regulator: plug of_node leak in regulator_register()'s error path

2020-08-11 Thread Michał Mirosław
By calling device_initialize() earlier and noting that kfree(NULL) is ok, we can save a bit of code in error handling and plug of_node leak. Fixed commit already did part of the work. Cc: sta...@vger.kernel.org Fixes: 9177514ce349 ("regulator: fix memory leak on error path of regulator_register()

Re: [PATCH] usb: xhci-mtk: Fix typo

2020-08-11 Thread Chunfeng Yun
On Sat, 2020-08-08 at 14:49 +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > fix this small typo u3_ports_disabed => u3_ports_disabled > > Fixes: 55ba6e9e25a6 (usb: xhci-mtk: support option to disable usb3 ports) > Signed-off-by: Frank Wunderlich > --- > drivers/usb/host/xhci-mtk.c

Re: [PATCH v7] Makefile: Add clang-tidy and static analyzer support to makefile

2020-08-11 Thread Nathan Huckleberry
Sounds good. Do you think this patch is ready to land then? On Thu, Aug 6, 2020 at 5:10 PM Masahiro Yamada wrote: > > On Fri, Aug 7, 2020 at 6:42 AM 'Nathan Huckleberry' via Clang Built > Linux wrote: > > > > On Thu, Aug 6, 2020 at 3:44 AM Masahiro Yamada wrote: > > > > > > On Tue, Jul 28, 2020

Re: [PATCH v2 15/20] fuse, dax: Take ->i_mmap_sem lock during dax page fault

2020-08-11 Thread Dave Chinner
On Tue, Aug 11, 2020 at 01:55:30PM -0400, Vivek Goyal wrote: > On Tue, Aug 11, 2020 at 08:22:38AM +1000, Dave Chinner wrote: > > On Fri, Aug 07, 2020 at 03:55:21PM -0400, Vivek Goyal wrote: > > > We need some kind of locking mechanism here. Normal file systems like > > > ext4 and xfs seems to take

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

2020-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: kernel/time/timekeeping.c between commit: 025e82bcbc34 ("timekeeping: Use sequence counter with associated raw spinlock") from Linus' tree and commit: 19d0070a2792 ("timekeeping/vsyscall: Provide vdso_update_begin/end(

[PATCH v3] tools/objtool: Fix unnecessary jumps

2020-08-11 Thread Youling Tang
Previously cleanup() function was called under the out label for both fatal errors (ret < 0) and warnings. Now that cleanup() function is removed, the out label is no longer required. Remove it and return immediately for the fatal errors with ret as return code and 0 for warnings. Signed-off-by:

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-11 Thread Qiu Wenbo
That is a more reasonable approach. On 8/12/20 2:45 AM, Atish Patra wrote: On Tue, Aug 11, 2020 at 1:41 AM Anup Patel wrote: On Tue, Aug 11, 2020 at 12:07 PM Qiu Wenbo wrote: Exception vector is missing on nommu platform and it is a big issue. This patch is tested in Sipeed MAIX Bit Dev Boar

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Badhri Jagan Sridharan
Yes I did ! https://lkml.org/lkml/2020/8/11/788 ! For me gmail is grouping V1 and V2 patches in the same thread so thought you saw the v2 patch :P Thanks, Badhri On Tue, Aug 11, 2020 at 5:36 PM Guenter Roeck wrote: > > On 8/11/20 4:21 PM, Badhri Jagan Sridharan wrote: > > Thanks Guenter ! Howev

Re: [PATCH v3 0/8] huge vmalloc mappings

2020-08-11 Thread Zefan Li
On 2020/8/12 0:32, Jonathan Cameron wrote: > On Mon, 10 Aug 2020 12:27:24 +1000 > Nicholas Piggin wrote: > >> Not tested on x86 or arm64, would appreciate a quick test there so I can >> ask Andrew to put it in -mm. Other option is I can disable huge vmallocs >> for them for the time being. > > H

[PATCH v2] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP

2020-08-11 Thread Wei Li
For the memory hole, sparse memory model that define SPARSEMEM_VMEMMAP do not free the reserved memory for the page map, this patch do it. Signed-off-by: Wei Li Signed-off-by: Chen Feng Signed-off-by: Xia Qing v2: fix the patch v1 compile errors that are not based on the latest mainline. ---

Re: KASAN: global-out-of-bounds Read in precalculate_color

2020-08-11 Thread syzbot
syzbot suspects this issue was fixed by commit: commit dfd402a4c4baae42398ce9180ff424d589b8bffc Author: Marco Elver Date: Thu Nov 14 18:02:54 2019 + kcsan: Add Kernel Concurrency Sanitizer infrastructure bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13eb65d690 start

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Ian Kent
On Tue, 2020-08-11 at 21:39 +0200, Christian Brauner wrote: > On Tue, Aug 11, 2020 at 09:05:22AM -0700, Linus Torvalds wrote: > > On Tue, Aug 11, 2020 at 8:30 AM Miklos Szeredi > > wrote: > > > What's the disadvantage of doing it with a single lookup WITH an > > > enabling flag? > > > > > > It's

Re: [PATCH] sched/fair: Remove the duplicate check from group_has_capacity()

2020-08-11 Thread Qi Zheng
On 2020/8/12 上午4:16, Valentin Schneider wrote: On 11/08/20 14:12, Qi Zheng wrote: On 2020/8/11 下午8:48, Valentin Schneider wrote: On 11/08/20 12:44, Qi Zheng wrote: In fact, at the beginning, I added unlikely() here to hint the compiler: - if ((sgs->group_capacity * imbalance_pct) < -

[PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-08-11 Thread Arvind Sankar
The x86-64 psABI [0] specifies special relocation types (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker can take advantage of for optimization (relaxation) at link time. This is supported by LLD and binutils

Re: [PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-11 Thread Arvind Sankar
On Tue, Aug 11, 2020 at 04:51:23PM -0700, Nick Desaulniers wrote: > On Tue, Aug 11, 2020 at 4:43 PM Arvind Sankar wrote: > > > > On Tue, Aug 11, 2020 at 04:04:40PM -0700, Nick Desaulniers wrote: > > > On Tue, Aug 11, 2020 at 3:44 PM Arvind Sankar > > > wrote: > > > > > > > > On Tue, Aug 11, 2020

Re: [PATCH 19/22] crypto: inside-secure - add check for xts input length equal to zero

2020-08-11 Thread Herbert Xu
On Tue, Aug 11, 2020 at 06:28:39PM +0300, Horia Geantă wrote: > > What about, for example, CBC? > AFAICT cbc(aes) with input length = 0 is valid. That's just because CBC accepts any input which is a multiple of blocksize. > Same for CTR (with the note that blocksize = 1) and several other algorit

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Guenter Roeck
On 8/11/20 4:21 PM, Badhri Jagan Sridharan wrote: > Thanks Guenter ! However I don't see a reviewed-by tag :) > Confused. Did you send a v2 with the changes we discussed ? I didn't see that. Thanks, Guenter > On Tue, Aug 11, 2020 at 1:18 PM Guenter Roeck wrote: >> >> On 8/11/20 12:39 PM, Badhr

Re: [GIT PULL] chrome-platform changes for v5.9

2020-08-11 Thread pr-tracker-bot
The pull request you sent on Tue, 11 Aug 2020 15:42:01 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git > tags/tag-chrome-platform-for-v5.9 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fb893de323e2d39f7a1f6df425703a2edbdf56ea Thank y

Re: [PATCHv1 2/2] crypto: add Intel SoCFPGA crypto service driver

2020-08-11 Thread Herbert Xu
On Tue, Aug 11, 2020 at 08:56:22AM -0500, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add Intel FPGA crypto service (FCS) driver to support new crypto services > on Intel SoCFPGA platforms. > > The crypto services include security certificate, image boot validation, > security k

Re: [RESEND PATCH v10 04/10] scsi: ufs: introduce UFSHCD_QUIRK_PRDT_BYTE_GRAN quirk

2020-08-11 Thread Eric Biggers
Hi Alim, On Sat, Jun 13, 2020 at 08:17:00AM +0530, Alim Akhtar wrote: > Some UFS host controllers like Exynos uses granularities of PRDT length and > offset as bytes, whereas others uses actual segment count. > > Reviewed-by: Avri Altman > Signed-off-by: Kiwoong Kim > Signed-off-by: Alim Akhtar

[PATCH v10 07/10] media: tegra-video: Add support for selection ioctl ops

2020-08-11 Thread Sowjanya Komatineni
This patch adds selection v4l2 ioctl operations to allow configuring a selection rectangle in the sensor through the Tegra video device node. Some sensor drivers supporting crop uses try_crop rectangle from v4l2_subdev_pad_config during try format for computing binning. So with selection ops supp

[PATCH v10 08/10] gpu: host1x: mipi: Keep MIPI clock enabled and mutex locked till calibration done

2020-08-11 Thread Sowjanya Komatineni
With the split of MIPI calibration into tegra_mipi_calibrate() and tegra_mipi_wait(), MIPI clock is not kept enabled and mutex is not locked till the calibration is done. So, this patch keeps MIPI clock enabled and mutex locked after triggering start of calibration till its done. To let calibrati

[PATCH v10 00/10] Support for Tegra video capture from external sensor

2020-08-11 Thread Sowjanya Komatineni
This series adds support for video capture from external camera sensor to Tegra video driver. Jetson TX1 has camera expansion connector and supports custom camera module designed as per TX1 design specification. This series also enables camera capture support for Jetson Nano which has Raspberry P

[PATCH v10 02/10] media: tegra-video: Enable TPG based on kernel config

2020-08-11 Thread Sowjanya Komatineni
Tegra internal TPG mode is only for Tegra vi and csi testing without a real sensor and driver should default support real sensor. So, This patch adds CONFIG_VIDEO_TEGRA_TPG and enables Tegra internal TPG mode only when this config is selected. Signed-off-by: Sowjanya Komatineni --- drivers/stag

[PATCH v10 06/10] media: tegra-video: Add support for external sensor capture

2020-08-11 Thread Sowjanya Komatineni
This patch adds support to capture from the external sensor based on device graph in the device tree. Driver walks through the device graph to create media links between the entities and registers and unregisters video devices when the corresponding sub-devices are bound and unbound. Channel form

[PATCH v10 04/10] dt-bindings: tegra: Update VI and CSI bindings with port info

2020-08-11 Thread Sowjanya Komatineni
Update VI and CSI bindings to add port and endpoint nodes as per media video-interfaces DT binding document. Acked-by: Rob Herring Signed-off-by: Sowjanya Komatineni --- .../display/tegra/nvidia,tegra20-host1x.txt| 92 +- 1 file changed, 90 insertions(+), 2 deletions

[PATCH v10 01/10] media: tegra-video: Fix channel format alignment

2020-08-11 Thread Sowjanya Komatineni
Pixel format width is mistakenly aligned to surface align bytes and altering width to aligned value may force sensor mode change other than the requested one and also cause mismatch in width programmed between sensor and vi which can lead to capture errors. This patch removes width alignment and c

[PATCH v10 10/10] media: tegra-video: Compute settle times based on the clock rate

2020-08-11 Thread Sowjanya Komatineni
Settle time determines the number of cil clock cyles to wait after LP00 when moving from LP to HS. This patch computes T-CLK-SETTLE and T-HS-SETTLE times based on cil clock rate and pixel rate from the sensor and programs them during streaming. T-CLK-SETTLE time is the interval during which recei

[PATCH v10 05/10] media: tegra-video: Separate CSI stream enable and disable implementations

2020-08-11 Thread Sowjanya Komatineni
This patch separates implementation of CSI stream enable and disable into separate functions for readability. Reviewed-by: Dmitry Osipenko Signed-off-by: Sowjanya Komatineni --- drivers/staging/media/tegra-video/csi.c | 51 ++--- 1 file changed, 35 insertions(+), 16

[PATCH v10 03/10] media: tegra-video: Update format lookup to offset based

2020-08-11 Thread Sowjanya Komatineni
Tegra VI supported video formats are more for non TPG and there can be multiple pixel formats for the same media bus format. This patch updates the helper function for format lookup based on mbus code from pre-defined Tegra supported format list to look from the specified list index offset. Offse

[PATCH v10 09/10] media: tegra-video: Add CSI MIPI pads calibration

2020-08-11 Thread Sowjanya Komatineni
CSI MIPI pads need to be enabled and calibrated for capturing from the external sensor or transmitter. MIPI CAL unit calibrates MIPI pads pull-up, pull-down and termination impedances. Calibration is done by co-work of MIPI BIAS pad and MIPI CAL control unit. Triggering calibration start can happ

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-11 Thread Kevin Hilman
Sibi Sankar writes: > This is for power domains which needs to stay powered on for suspend > but can be powered on/off as part of runtime PM. This flag is aimed at > power domains coupled to remote processors which enter suspend states > independent to that of the application processor. Such powe

[PATCH v2 13/13] MAINTAINERS: Update paths to Ingenic platform code

2020-08-11 Thread Paul Cercueil
Support for Ingenic chips has been moved to the generic MIPS platform. Update the paths accordingly. Signed-off-by: Paul Cercueil --- Notes: v2: No change MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 87d26c167c99..2b4eb

[PATCH v2 11/13] MIPS: jz4740: Drop folder

2020-08-11 Thread Paul Cercueil
Support for Ingenic SoCs is now provided by the arch/mips/generic/ code, so the arch/mips/jz4740/ folder can be completely dropped. The exception is the Kconfig, which has been moved to arch/mips/ingenic/Kconfig in the process. Signed-off-by: Paul Cercueil --- Notes: v2: No change arch/mip

[PATCH v2 12/13] MIPS: configs: Regenerate configs of Ingenic boards

2020-08-11 Thread Paul Cercueil
For each board the MACH_INGENIC_SOC option was selected instead of MACH_INGENIC. Nothing else was changed in the menuconfig. Signed-off-by: Paul Cercueil --- Notes: v2: Update cu1830-neo board config as well. arch/mips/configs/ci20_defconfig | 4 ++-- arch/mips/configs/cu1000-neo_de

[PATCH v2 06/13] MIPS: generic: Init command line with fw_init_cmdline()

2020-08-11 Thread Paul Cercueil
The function bootcmdline_init() in arch/mips/kernel/setup.c will populate the boot_command_line string using the parameters hardcoded in the kernel, and those provided in the devicetree file. Then, it would append the content of the arcs_cmdline variable, which is filled by the board's plat_mem_set

[PATCH v2 07/13] MIPS: generic: Support booting with built-in or appended DTB

2020-08-11 Thread Paul Cercueil
The plat_get_fdt() checked that the kernel was booted using UHI before reading the 'fw_passed_dtb' variable. However, this variable is also set when the kernel has been appended, or when it has been built into the kernel. Support these usecases by removing the UHI check. Signed-off-by: Paul Cercu

[PATCH v2 10/13] MIPS: generic: Add support for Ingenic SoCs

2020-08-11 Thread Paul Cercueil
Add support for Ingenic SoCs in arch/mips/generic/. The Kconfig changes are here to ensure that it is possible to compile either a generic kernel that supports Ingenic SoCs, or a Ingenic-only kernel, both using the same code base, to avoid duplicated code. Signed-off-by: Paul Cercueil --- Notes

[PATCH v2 08/13] MIPS: generic: Add support for zboot

2020-08-11 Thread Paul Cercueil
There is no reason we can't create compressed kernels here, so select the option SYS_SUPPORTS_ZBOOT. Signed-off-by: Paul Cercueil --- Notes: v2: No change arch/mips/Kconfig | 1 + arch/mips/generic/Platform | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/mips/Kconfig b/

[PATCH v2 03/13] MIPS: cpu-probe: ingenic: Fix broken BUG_ON

2020-08-11 Thread Paul Cercueil
The previous code was doing: BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter); This only worked as the "cpu_has_counter" macro was overridden in . The default "cpu_has_counter" macro is non-constant, which triggered the BUG_ON() independently of the value returned by the macro. W

[PATCH v2 04/13] MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol

2020-08-11 Thread Paul Cercueil
The MIPS_GENERIC symbol now won't select any other configuration option. The MIPS_GENERIC_KERNEL will select all the options that the previous MIPS_GENERIC option did select, and will select MIPS_GENERIC as well. The whole point of this, is that it now becomes possible to compile a kernel for a So

[PATCH v2 09/13] MIPS: generic: Increase NR_IRQS to 256

2020-08-11 Thread Paul Cercueil
128 IRQs is not enough to support Ingenic SoCs. Signed-off-by: Paul Cercueil --- Notes: v2: No change arch/mips/include/asm/mach-generic/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/mach-generic/irq.h b/arch/mips/include/asm/mach-generic/

[PATCH v2 05/13] MIPS: generic: Allow boards to set system type

2020-08-11 Thread Paul Cercueil
Check for the (already existing) "system_type" variable in the get_system_type() function. If non-NULL, return it as the system type. Signed-off-by: Paul Cercueil --- Notes: v2: Instead of adding a .get_system_type callback to the mips_machine struct, the boards now simply override t

[PATCH v2 00/13] Convert Ingenic to a generic board v2

2020-08-11 Thread Paul Cercueil
Hi, Changes since V1: - the get_system_type() now will simply return the "system_type" variable if non-NULL, and the various boards can set this pointer should they want to set a custom value. The .get_system_type callback that v1 added to the struct mips_machine is gone. - the board-ingen

[PATCH v2] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

2020-08-11 Thread Badhri Jagan Sridharan
>From the spec: "6.6.8.1 SwapSourceStartTimer The SwapSourceStartTimer Shall be used by the new Source, after a Power Role Swap or Fast Role Swap, to ensure that it does not send Source_Capabilities Message before the new Sink is ready to receive the Source_Capabilities Message. The new Source Shal

[PATCH v2 01/13] MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA

2020-08-11 Thread Paul Cercueil
Previously, in cpu_probe_ingenic(), c->writecombine was set to _CACHE_UNCACHED_ACCELERATED, but this macro was defined differently when CONFIG_MACH_INGENIC was set. This made it impossible to support multiple CPUs. Address this issue by setting c->writecombine to _CACHE_CACHABLE_WA directly and re

[PATCH v2 02/13] MIPS: cpu-probe: Mark XBurst CPU as having vtagged caches

2020-08-11 Thread Paul Cercueil
XBurst CPUs present in Ingenic SoCs have virtually tagged caches, according to the header. Add that information to cpu_probe_ingenic(). Signed-off-by: Paul Cercueil --- Notes: v2: No change arch/mips/kernel/cpu-probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kern

Re: [RFC 17/20] drm/nouveau/kms/nv50-: Add support for DP_SINK_COUNT

2020-08-11 Thread Ben Skeggs
On Wed, 12 Aug 2020 at 06:06, Lyude Paul wrote: > > This is another bit that we never implemented for nouveau: dongle > detection. When a "dongle", e.g. an active display adaptor, is hooked up > to the system and causes an HPD to be fired, we don't actually know > whether or not there's anything p

Re: [Nouveau] [RFC 20/20] drm/nouveau/kms: Start using drm_dp_read_dpcd_caps()

2020-08-11 Thread Ben Skeggs
On Wed, 12 Aug 2020 at 06:07, Lyude Paul wrote: > > Now that we've extracted i915's code for reading both the normal DPCD > caps and extended DPCD caps into a shared helper, let's start using this > in nouveau to enable us to start checking extended DPCD caps for free. > > Signed-off-by: Lyude Pau

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Thomas Gleixner
"Paul E. McKenney" writes: > Hence Ulad's work on kfree_rcu(). The approach is to allocate a > page-sized array to hold all the pointers, then fill in the rest of these > pointers on each subsequent kfree_rcu() call. These arrays of pointers > also allows use of kfree_bulk() instead of kfree(),

Re: [RFC 10/20] drm/nouveau/kms: Use new drm_dp_has_mst() helper for checking MST caps

2020-08-11 Thread Ben Skeggs
On Wed, 12 Aug 2020 at 06:06, Lyude Paul wrote: > > Signed-off-by: Lyude Paul Reviewed-by: Ben Skeggs > --- > drivers/gpu/drm/nouveau/nouveau_dp.c | 16 +++- > 1 file changed, 3 insertions(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c > b/drivers/gpu/dr

Re: [RFC 01/20] drm/nouveau/kms: Fix some indenting in nouveau_dp_detect()

2020-08-11 Thread Ben Skeggs
On Wed, 12 Aug 2020 at 06:05, Lyude Paul wrote: > > Signed-off-by: Lyude Paul Reviewed-by: Ben Skeggs > --- > drivers/gpu/drm/nouveau/nouveau_dp.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c > b/drivers/gpu/drm/nouveau/

[PATCH v1] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

2020-08-11 Thread Badhri Jagan Sridharan
>From the spec: "6.6.8.1 SwapSourceStartTimer The SwapSourceStartTimer Shall be used by the new Source, after a Power Role Swap or Fast Role Swap, to ensure that it does not send Source_Capabilities Message before the new Sink is ready to receive the Source_Capabilities Message. The new Source Shal

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread David Howells
Linus Torvalds wrote: > [ I missed the beginning of this discussion, so maybe this was already > suggested ] Well, the start of it was my proposal of an fsinfo() system call. That at its simplest takes an object reference (eg. a path) and an integer attribute ID (it could use a string instead,

Re: [PATCH] fs: autofs: delete repeated words in comments

2020-08-11 Thread Ian Kent
On Tue, 2020-08-11 at 07:42 -0700, Randy Dunlap wrote: > On 8/11/20 1:36 AM, Ian Kent wrote: > > On Mon, 2020-08-10 at 19:18 -0700, Randy Dunlap wrote: > > > Drop duplicated words {the, at} in comments. > > > > > > Signed-off-by: Randy Dunlap > > > Cc: Ian Kent > > > Cc: aut...@vger.kernel.org >

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

2020-08-11 Thread Baoquan He
On 08/11/20 at 08:54am, Michal Hocko wrote: > On Tue 11-08-20 09:51:48, Baoquan He wrote: > > On 08/10/20 at 05:19pm, Mike Kravetz wrote: > > > On 8/9/20 7:17 PM, Baoquan He wrote: > > > > On 08/07/20 at 05:12pm, Wei Yang wrote: > > > >> Let's always increase surplus_huge_pages and so that free_hug

Re: [PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-11 Thread Nick Desaulniers
On Tue, Aug 11, 2020 at 4:43 PM Arvind Sankar wrote: > > On Tue, Aug 11, 2020 at 04:04:40PM -0700, Nick Desaulniers wrote: > > On Tue, Aug 11, 2020 at 3:44 PM Arvind Sankar wrote: > > > > > > On Tue, Aug 11, 2020 at 10:58:40AM -0700, Nick Desaulniers wrote: > > > > > Cc: sta...@vger.kernel.org #

net/tipc/udp_media.c:743: undefined reference to `ipv6_dev_find'

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c636eef2ee3696f261a35f34989842701a107895 commit: 5a6f6f579178dbeb33002d93b4f646c31348fac9 tipc: set ub->ifindex for local ipv6 address date: 6 days ago config: ia64-randconfig-r005-20200811 (attached

Re: [PATCH 0/3] mtd: lpddr: Fix bad logic bug in print_drs_error

2020-08-11 Thread Joe Perches
On Mon, 2020-04-27 at 14:00 -0500, Gustavo A. R. Silva wrote: > Hi, > > This series aims to fix a bad logic bug in print_drs_error, which is > tagged for -stable. The series also include some formatting fixups. AFAICT: This series is still not applied to any tree. Can someone please apply it?

Re: [PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-11 Thread Arvind Sankar
On Tue, Aug 11, 2020 at 04:04:40PM -0700, Nick Desaulniers wrote: > On Tue, Aug 11, 2020 at 3:44 PM Arvind Sankar wrote: > > > > On Tue, Aug 11, 2020 at 10:58:40AM -0700, Nick Desaulniers wrote: > > > > Cc: sta...@vger.kernel.org # 4.19.x > > > > > > Thanks Arvind, good write up. Just curious abo

drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused variable 'ksz9477_dt_ids'

2020-08-11 Thread kernel test robot
Hi Tristram, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bb5baaa9238ecf8f13b112232c7bbe0d3d598ee8 commit: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver date: 11 months ag

[rcu:dev.2020.08.10a 105/111] riscv64-linux-ld: main.c:undefined reference to `rcu_read_unlock_strict'

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.08.10a head: 9dd4d242c535c30266a08806314ea6b016f94617 commit: 9e20110f8ef2745df8f4fe2d679114dccfaaa1af [105/111] rcu: Report QS for outermost PREEMPT=n rcu_read_unlock() for strict GPs config: riscv-allnoconf

[rcu:dev.2020.08.10a 105/111] main.c:undefined reference to `rcu_read_unlock_strict'

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.08.10a head: 9dd4d242c535c30266a08806314ea6b016f94617 commit: 9e20110f8ef2745df8f4fe2d679114dccfaaa1af [105/111] rcu: Report QS for outermost PREEMPT=n rcu_read_unlock() for strict GPs config: arm-mainstone_d

[PATCH] drm/msm/a6xx: add module param to enable debugbus snapshot

2020-08-11 Thread Rob Clark
From: Rob Clark For production devices, the debugbus sections will typically be fused off and empty in the gpu device coredump. But since this may contain data like cache contents, don't capture it by default. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 3 ++- d

Re: [PATCH v2] sched, mm: Optimize current_gfp_context()

2020-08-11 Thread Waiman Long
On 8/11/20 6:29 PM, Andrew Morton wrote: On Thu, 18 Jun 2020 17:29:36 -0400 Waiman Long wrote: The current_gfp_context() converts a number of PF_MEMALLOC_* per-process flags into the corresponding GFP_* flags for memory allocation. In that function, current->flags is accessed 3 times. That may

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

2020-08-11 Thread Mike Kravetz
On 8/11/20 4:19 PM, Wei Yang wrote: > On Tue, Aug 11, 2020 at 02:43:28PM -0700, Mike Kravetz wrote: >> Subject: [PATCH] hugetlb: optimize race error return in >> alloc_surplus_huge_page >> >> The routine alloc_surplus_huge_page() could race with with a pool >> size change. If this happens, the all

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Badhri Jagan Sridharan
Thanks Guenter ! However I don't see a reviewed-by tag :) On Tue, Aug 11, 2020 at 1:18 PM Guenter Roeck wrote: > > On 8/11/20 12:39 PM, Badhri Jagan Sridharan wrote: > > On Tue, Aug 11, 2020 at 11:45 AM Guenter Roeck wrote: > >> > >> On Tue, Aug 11, 2020 at 11:24:07AM -0700, Badhri Jagan Sridhar

linux-next: build warning after merge of the sound-current tree

2020-08-11 Thread Stephen Rothwell
Hi all, After merging the sound-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/pci/hda/patch_realtek.c: In function 'alc285_fixup_hp_gpio_led': sound/pci/hda/patch_realtek.c:4163:19: warning: unused variable 'spec' [-Wunused-variable] 4163 | struct

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

2020-08-11 Thread Wei Yang
On Tue, Aug 11, 2020 at 02:43:28PM -0700, Mike Kravetz wrote: >On 8/10/20 11:54 PM, Michal Hocko wrote: >> >> I have managed to forgot all the juicy details since I have made that >> change. All that remains is that the surplus pages accounting was quite >> tricky and back then I didn't figure out

Re: [PATCH] sched/fair: Optimize dequeue_task_fair()(Internet mail)

2020-08-11 Thread 蒋彪
Hi, > On Aug 12, 2020, at 12:55 AM, Dietmar Eggemann > wrote: > > On 11/08/2020 10:43, Jiang Biao wrote: >> Similar optimization as what has been done in commit, >> 7d148be69e3a(sched/fair: Optimize enqueue_task_fair()) >> >> dequeue_task_fair jumps to dequeue_throttle label when cfs_rq_of(se)

Re: [RFC PATCH V2 1/2] dt-bindings: display: xlnx: dsi: This add a DT binding for Xilinx DSI TX subsystem.

2020-08-11 Thread Laurent Pinchart
Hi GVRao, Thank you for the patch. On Tue, Aug 11, 2020 at 06:16:16AM +0530, Venkateshwar Rao Gannavarapu wrote: > The Xilinx MIPI DSI (Display Serial Interface) Transmitter subsystem > implements the Mobile Industry Processor Interface (MIPI) based display > interface. It supports the interface

Re: [PATCH v2 4/4] mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved

2020-08-11 Thread Mike Kravetz
On 8/11/20 12:24 AM, Michal Hocko wrote: > > My opinion is that the warning is too late to add at this stage. It > would have been much better if the user interface has provided a > reasonable feedback on how much the request was sucessful. But this > is not the case (except for few error cases) a

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