[PATCH v3] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-29 Thread Badhri Jagan Sridharan
"tReceiverResponse 15 ms Section 6.6.2 The receiver of a Message requiring a response Shall respond within tReceiverResponse in order to ensure that the sender’s SenderResponseTimer does not expire." When the cpu complex is busy running other lower priority work items, TCPM's work queue sometimes

Re: [PATCH v1 0/2] scsi: ufs: Introduce and apply DELAY_AFTER_LPM device quirk

2020-07-29 Thread Martin K. Petersen
On Wed, 29 Jul 2020 13:18:38 +0800, Stanley Chu wrote: > This patchset introduces and applies DELAY_AFTER_LPM device quirk in MediaTek > platforms. > > Stanley Chu (2): > scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM" > scsi: ufs-mediatek: Apply DELAY_AFTER_LPM quirk to Micron devices

Re: [PATCH v4 06/17] fs/kernel_read_file: Remove redundant size argument

2020-07-29 Thread James Morris
On Wed, 29 Jul 2020, Kees Cook wrote: > In preparation for refactoring kernel_read_file*(), remove the redundant > "size" argument which is not needed: it can be included in the return > code, with callers adjusted. (VFS reads already cannot be larger than > INT_MAX.) > > Acked-by: Scott Branden

Re: [PATCH 0/1] virtio-scsi: fix missing unplug events when all LUNs are unplugged at the same time

2020-07-29 Thread Martin K. Petersen
On Wed, 29 Jul 2020 22:48:05 +0300, Maxim Levitsky wrote: > virtio-scsi currently has limit of 8 outstanding notifications so when more > that > 8 LUNs are unplugged, some are missed. > > Commit 5ff843721467 ("scsi: virtio_scsi: unplug LUNs when events missed") > Fixed this by checking the

Re: [PATCH v4 04/17] fs/kernel_read_file: Split into separate include file

2020-07-29 Thread James Morris
On Wed, 29 Jul 2020, Kees Cook wrote: > From: Scott Branden > > Move kernel_read_file* out of linux/fs.h to its own linux/kernel_read_file.h > include file. That header gets pulled in just about everywhere > and doesn't really need functions not related to the general fs interface. > >

Re: [PATCH 11/15] memblock: reduce number of parameters in for_each_mem_range()

2020-07-29 Thread Baoquan He
On 07/28/20 at 08:11am, Mike Rapoport wrote: > From: Mike Rapoport > > Currently for_each_mem_range() iterator is the most generic way to traverse > memblock regions. As such, it has 8 parameters and it is hardly convenient > to users. Most users choose to utilize one of its wrappers and the

RE: [RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment

2020-07-29 Thread Justin He
> -Original Message- > From: David Hildenbrand > Sent: Wednesday, July 29, 2020 5:35 PM > To: Mike Rapoport ; Justin He > Cc: Dan Williams ; Vishal Verma > ; Catalin Marinas ; > Will Deacon ; Greg Kroah-Hartman > ; Rafael J. Wysocki ; Dave > Jiang ; Andrew Morton ; > Steve Capper ; Mark

Re: [PATCH v17 00/21] per memcg lru lock

2020-07-29 Thread Alex Shi
在 2020/7/30 上午2:06, Hugh Dickins 写道: > On Wed, 29 Jul 2020, Alex Shi wrote: >> >> Is there any comments or suggestion for this patchset? >> Any hints will be very appreciated. > > Alex: it is now v5.8-rc7, obviously too late for this patchset to make > v5.9, so I'm currently concentrated on

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

2020-07-29 Thread Linus Torvalds
On Wed, Jul 29, 2020 at 5:09 PM Linus Torvalds wrote: > > Removing the __latent_entropy marker obviously fixes things. Ok, I did that for now. I spent a few minutes looking at the gcc plugin in case I'd be hit by some sudden stroke of genius, but that didn't happen, so let's avoid the issue

RE: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-29 Thread Anson Huang
Hi, Philipp/Rob > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > On Wed, 2020-07-29 at 09:26 -0600, Rob Herring wrote: > > On Mon, Jul 20, 2020 at 8:26 AM Anson Huang > wrote: > > > i.MX7 reset driver now supports module build and it is no longer > > > built in by

[PATCH V3 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
According to reference manual, the i.MX7ULP WDOG's operations except refresh should follow below sequence: 1. disable global interrupts; 2. unlock the wdog and wait unlock bit set; 3. reconfigure the wdog and wait for reconfiguration bit set; 4. enabel global interrupts. Strictly follow the

[PATCH V3 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-29 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- no change. --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1

arch/riscv/include/asm/timex.h:42:16: sparse: sparse: cast removes address space '__iomem' of expression

2020-07-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d3590ebf6f91350192737dd1d1b219c05277f067 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: riscv-randconfig-s031-20200729

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/29/20 8:32 AM, Anson Huang wrote: > > Hi, Guenter > > > > > >> Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the > >> sequence for wdog operations > >> > >>

[PATCH net] RDMA/umem: add a schedule point in ib_umem_get()

2020-07-29 Thread Eric Dumazet
Mapping as little as 64GB can take more than 10 seconds, triggering issues on kernels with CONFIG_PREEMPT_NONE=y. ib_umem_get() already splits the work in 2MB units on x86_64, adding a cond_resched() in the long-lasting loop is enough to solve the issue. Note that sg_alloc_table() can still use

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

2020-07-29 Thread Jiaxun Yang
在 2020/7/30 上午9:40, Stephen Rothwell 写道: Hi Jiaxun, On Thu, 30 Jul 2020 09:04:40 +0800 Jiaxun Yang wrote: Btw: Neither James nor Ralf is still active at Linux-MIPS. Interesting. I have just them listed as my contacts for MIPS. Should I change to just Thomes (Thomas Bogendoerfer )?

Re: [PATCH 10/15] memblock: make memblock_debug and related functionality private

2020-07-29 Thread Baoquan He
On 07/28/20 at 08:11am, Mike Rapoport wrote: > From: Mike Rapoport > > The only user of memblock_dbg() outside memblock was s390 setup code and it > is converted to use pr_debug() instead. > This allows to stop exposing memblock_debug and memblock_dbg() to the rest > of the kernel. > >

Re: [PATCH 09/15] memblock: make for_each_memblock_type() iterator private

2020-07-29 Thread Baoquan He
On 07/28/20 at 08:11am, Mike Rapoport wrote: > From: Mike Rapoport > > for_each_memblock_type() is not used outside mm/memblock.c, move it there > from include/linux/memblock.h > > --- > include/linux/memblock.h | 5 - > mm/memblock.c| 5 + > 2 files changed, 5

Re: [PATCH v3 1/4] iommu: Check IOMMU_DEV_FEAT_AUX feature in aux api's

2020-07-29 Thread Lu Baolu
Hi Alex, On 7/30/20 4:03 AM, Alex Williamson wrote: On Tue, 14 Jul 2020 13:57:00 +0800 Lu Baolu wrote: The iommu aux-domain api's work only when IOMMU_DEV_FEAT_AUX is enabled for the device. Add this check to avoid misuse. Shouldn't this really be the IOMMU driver's responsibility to test?

[PATCH 0/3] More ingenic-drm IPU cleanups

2020-07-29 Thread Paul Cercueil
Hi, A few more patches to the ingenic-drm IPU driver. Patch [1/3] fixes the behaviour on newer SoCs at high resolutions / framerates. Patch [2/3] drops YUV 4:2:2 support on the JZ4725B SoC because of what I think is a hardware bug. Patch [3/3] makes the IPU clock enabled/disabled when needed.

[PATCH 3/3] drm/ingenic: ipu: Only enable clock when needed

2020-07-29 Thread Paul Cercueil
Instead of keeping the IPU clock enabled constantly, enable and disable it on demand, when the IPU plane is used. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-ipu.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git

[PATCH 1/3] drm/ingenic: ipu: Only restart manually on older SoCs

2020-07-29 Thread Paul Cercueil
On older SoCs, it is necessary to restart manually the IPU when a frame is done processing. Doing so on newer SoCs (JZ4760/70) kinds of work too, until the input or output resolutions or the framerate are too high. Make it work properly on newer SoCs by letting the LCD controller trigger the IPU

[PATCH 2/3] drm/ingenic: ipu: Remove YUV422 from supported formats on JZ4725B

2020-07-29 Thread Paul Cercueil
When configuring the IPU for packed YUV 4:2:2, depending on the scaling ratios given by the source and destination resolutions, it is possible to crash the IPU block beyond repair, to the point where a software reset of the IP does not fix it. This can happen anytime, in the first few frames, or

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

2020-07-29 Thread Stephen Rothwell
Hi Jiaxun, On Thu, 30 Jul 2020 09:04:40 +0800 Jiaxun Yang wrote: > > Btw: Neither James nor Ralf is still active at Linux-MIPS. Interesting. I have just them listed as my contacts for MIPS. Should I change to just Thomes (Thomas Bogendoerfer )? -- Cheers, Stephen Rothwell

Re: [PATCH bpf-next v2 29/35] bpf: libbpf: cleanup RLIMIT_MEMLOCK usage

2020-07-29 Thread Roman Gushchin
On Mon, Jul 27, 2020 at 10:59:33PM -0700, Andrii Nakryiko wrote: > On Mon, Jul 27, 2020 at 4:15 PM Roman Gushchin wrote: > > > > On Mon, Jul 27, 2020 at 03:05:11PM -0700, Andrii Nakryiko wrote: > > > On Mon, Jul 27, 2020 at 12:21 PM Roman Gushchin wrote: > > > > > > > > As bpf is not using

Re: [v2,1/3] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 18:18 +0800, Matthias Brugger wrote: > > On 29/07/2020 12:02, Crystal Guo wrote: > > update mtk-wdt document for MT8192 platform > > > should be two patches. one fixing the compatibles and second adding new board. > > > > > Signed-off-by: Crystal Guo > > --- > >

Re: [PATCH v4 1/2] cpufreq: intel_pstate: Rearrange the storing of new EPP values

2020-07-29 Thread Francisco Jerez
"Rafael J. Wysocki" writes: > From: Rafael J. Wysocki > > Move the locking away from intel_pstate_set_energy_pref_index() > into its only caller and drop the (now redundant) return_pref label > from it. > > Also move the "raw" EPP value check into the caller of that function, > so as to do it

[PATCH V9 5/6] clk: imx8m: Support module build

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16

[PATCH V9 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/imx/Makefile |

[PATCH V9 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-29 Thread Anson Huang
Nowdays, there are more and more requirements of building SoC specific drivers as modules, such as Android GKI (generic kernel image), this patch set supports building i.MX ARMv8 SoCs clock drivers as modules, The CLK_IMXxxx is introduced for i.MX ARMv7 platforms in order to make the build

[PATCH V9 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1 insertion(+)

[PATCH V9 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. ---

[PATCH V9 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead of (1 << X) to fix below build warning reported by kernel test robot: drivers/clk/imx/clk-imx6sl.c:149:49: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] while

Re: [PATCH v5 00/75] x86: SEV-ES Guest Support

2020-07-29 Thread Mike Stunes
Hi Joerg, > On Jul 24, 2020, at 9:02 AM, Joerg Roedel wrote: > > From: Joerg Roedel > > Hi, > > here is a rebased version of the latest SEV-ES patches. They are now > based on latest tip/master instead of upstream Linux and include the > necessary changes. Thanks for the updated patches! I

[PATCH V9 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8 ++--

Re: [PATCH v5 00/16] Allwinner A100 Initial support

2020-07-29 Thread Frank Lee
HI Maxime, Any comments on thermal and other patches? I hope these patches can be integrated into the mainline as soon as possible. Thx, Yangtao

[RFC PATCH] iomap: add support to track dirty state of sub pages

2020-07-29 Thread Yu Kuai
commit 9dc55f1389f9 ("iomap: add support for sub-pagesize buffered I/O without buffer heads") replace the per-block structure buffer_head with the per-page structure iomap_page. However, iomap_page can't track the dirty state of sub pages, which will cause performance issue since sub pages will be

RE: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Hi, Randy > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > 32-bit value by 31 bits > > On 7/29/20 4:51 PM, Anson Huang wrote: > > Hi, Randy > > > > > >> Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting > >> signed 32-bit value by 31 bits > >>

Re: [PATCH -next] tools build: Check return value of fwrite_unlocked in jvmti_agent.c

2020-07-29 Thread Arnaldo Carvalho de Melo
On July 29, 2020 8:47:36 PM GMT-03:00, Ian Rogers wrote: >On Fri, Jul 24, 2020 at 3:07 AM Wang ShaoBo > wrote: >> >> Function jvmti_write_code called by compiled_method_load_cb may >return >> error in using fwrite_unlocked, this failure should be captured and >> warned. >> >> Signed-off-by:

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Dmitry Osipenko
30.07.2020 04:06, Sowjanya Komatineni пишет: ... > Will have v6 and add additional patch at the end to do enable/disable > separately. > > Separating this out with additional patch before adding sensor support > patch requires all patches to be updated. > > So I am ok either ways. Please let me

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-29 Thread Masami Hiramatsu
On Wed, 29 Jul 2020 09:13:21 +0300 Ard Biesheuvel wrote: > On Wed, 29 Jul 2020 at 04:51, Masami Hiramatsu wrote: > > > > On Tue, 28 Jul 2020 20:51:08 +0300 > > Ard Biesheuvel wrote: > > > > > On Tue, 28 Jul 2020 at 16:35, Masami Hiramatsu > > > wrote: > > > > > > > > On Tue, 28 Jul 2020

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

2020-07-29 Thread Jiaxun Yang
在 2020/7/29 下午6:31, Stephen Rothwell 写道: Hi all, After merging the mips tree, today's linux-next build (powerpc allnoconfig) produced this warning: drivers/of/address.c:104:21: warning: 'of_bus_pci_get_flags' defined but not used [-Wunused-function] 104 | static unsigned int

Re: [PATCH v2] drivers/virt/fsl_hypervisor: Correcting error handling path

2020-07-29 Thread John Hubbard
On 7/29/20 12:01 PM, Souptick Joarder wrote: First, when memory allocation for sg_list_unaligned failed, there is no point of calling put_pages() as we haven't pinned any pages. Second, if get_user_pages_fast() failed we should unpinned num_pinned pages, no point of checking till num_pages.

Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop

2020-07-29 Thread Herbert Xu
On Wed, Jul 29, 2020 at 06:04:57PM +0300, Andy Shevchenko wrote: > On Wed, Jul 29, 2020 at 4:35 PM Waiman Long wrote: > > On 7/29/20 8:28 AM, Herbert Xu wrote: > > ... > > > This patch series looks good to me. I just wonder if we should also move > > ATOMIC64_INIT() to types.h for symmetry

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 5:53 PM, Dmitry Osipenko wrote: 30.07.2020 03:55, Sowjanya Komatineni пишет: On 7/29/20 5:52 PM, Sowjanya Komatineni wrote: On 7/29/20 5:43 PM, Dmitry Osipenko wrote: 30.07.2020 03:27, Sowjanya Komatineni пишет: ... Secondly, perhaps a failed calibration isn't a very critical

Re: bpfilter logging write errors in dmesg

2020-07-29 Thread Rodrigo Madera
Christoph, I see the same issue on my AMD 3990x using v5.8rc7: [ 10.229424] bpfilter: Loaded bpfilter_umh pid 1906 [ 10.229467] Started bpfilter [ 10.229538] pos invalid: -131326014643272 [ 10.229539] bpfilter: write fail -22 [ 10.229603] pos invalid: -2127991714 [ 10.229604]

Re: [PATCH 0/3] bootconfig: Add value override operator

2020-07-29 Thread Masami Hiramatsu
Hi Steve, On Thu, 16 Jul 2020 10:27:03 +0900 Masami Hiramatsu wrote: > Hi Steve, > > On Wed, 15 Jul 2020 20:02:12 -0400 > Steven Rostedt wrote: > > > On Thu, 16 Jul 2020 07:38:43 +0900 > > Masami Hiramatsu wrote: > > > > > > > > So the end of the initrd would have: > > > > > > > >

[PATCH] of_address: Guard of_bus_pci_get_flags with CONFIG_PCI

2020-07-29 Thread Jiaxun Yang
After 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser"), the last user of of_bus_pci_get_flags when CONFIG_PCI is disabled had gone. This caused unused function warning when compiling without CONFIG_PCI. Fix by guarding it with CONFIG_PCI. Signed-off-by: Jiaxun Yang

Re: [PATCH v2 3/3] KVM: SVM: Fix disable pause loop exit/pause filtering capability on SVM

2020-07-29 Thread Wanpeng Li
On Wed, 29 Jul 2020 at 20:21, Vitaly Kuznetsov wrote: > > Wanpeng Li writes: > > > From: Wanpeng Li > > > > Commit 8566ac8b (KVM: SVM: Implement pause loop exit logic in SVM) drops > > disable pause loop exit/pause filtering capability completely, I guess it > > is a merge fault by Radim since

Re: [PATCH net-next] hinic: add generating mailbox random index support

2020-07-29 Thread luobin (L)
On 2020/7/30 6:03, Jakub Kicinski wrote: > On Wed, 29 Jul 2020 08:59:19 +0800 Luo bin wrote: >> add support to generate mailbox random id for VF to ensure that >> the mailbox message from VF is valid and PF should check whether >> the cmd from VF is supported before passing it to hw. > > This is

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Dmitry Osipenko
30.07.2020 03:55, Sowjanya Komatineni пишет: > > On 7/29/20 5:52 PM, Sowjanya Komatineni wrote: >> >> On 7/29/20 5:43 PM, Dmitry Osipenko wrote: >>> 30.07.2020 03:27, Sowjanya Komatineni пишет: >>> ... >> Secondly, perhaps a failed calibration isn't a very critical error? >> Hence just

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-29 Thread Francisco Jerez
"Rafael J. Wysocki" writes: > On Wednesday, July 29, 2020 7:46:08 AM CEST Francisco Jerez wrote: >> >> --==-=-= >> Content-Type: multipart/mixed; boundary="=-=-=" >> >> --=-=-= >> Content-Type: text/plain; charset=utf-8 >> Content-Disposition: inline >> Content-Transfer-Encoding:

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 5:52 PM, Sowjanya Komatineni wrote: On 7/29/20 5:43 PM, Dmitry Osipenko wrote: 30.07.2020 03:27, Sowjanya Komatineni пишет: ... Secondly, perhaps a failed calibration isn't a very critical error? Hence just printing a warning message should be enough. Using dev_err to report

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 5:43 PM, Dmitry Osipenko wrote: 30.07.2020 03:27, Sowjanya Komatineni пишет: ... Secondly, perhaps a failed calibration isn't a very critical error? Hence just printing a warning message should be enough. Using dev_err to report calibration failure. Are you suggesting to use

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Dmitry Osipenko
30.07.2020 03:27, Sowjanya Komatineni пишет: ... >>> Secondly, perhaps a failed calibration isn't a very critical error? >>> Hence just printing a warning message should be enough. >> >> Using dev_err to report calibration failure. Are you suggesting to use >> dev_warn instead of dev_err? I meant

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 5:27 PM, Sowjanya Komatineni wrote: On 7/29/20 4:59 PM, Sowjanya Komatineni wrote: On 7/29/20 4:25 PM, Dmitry Osipenko wrote: 28.07.2020 18:59, Sowjanya Komatineni пишет: ... +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); +    if (ret < 0) +   

[RFC PATCH v6 05/11] fs: add security blob and hooks for block_device

2020-07-29 Thread Deven Bowers
Add a security blob and associated allocation, deallocation and set hooks for a block_device structure. Signed-off-by: Deven Bowers --- fs/block_dev.c| 8 include/linux/fs.h| 1 + include/linux/lsm_hook_defs.h | 5 +++ include/linux/lsm_hooks.h | 12

[RFC PATCH v6 06/11] dm-verity: add bdev_setsecurity hook for dm-verity signature

2020-07-29 Thread Deven Bowers
Add a security hook call to set a security property of a block_device in dm-verity with the results of a verified, signed root-hash. Signed-off-by: Deven Bowers --- drivers/md/dm-verity-target.c | 2 +- drivers/md/dm-verity-verify-sig.c | 14 +++---

[RFC PATCH v6 02/11] security: add ipe lsm evaluation loop and audit system

2020-07-29 Thread Deven Bowers
Add the core logic of the IPE LSM, the evaluation loop (engine), a portion of the audit system, and the skeleton of the policy structure. Signed-off-by: Deven Bowers --- MAINTAINERS | 1 + include/uapi/linux/audit.h | 4 + security/Kconfig | 12 +-

[RFC PATCH v6 09/11] ipe: add property for dmverity roothash

2020-07-29 Thread Deven Bowers
Add a property to allow IPE policy to express rules around a specific root-hash of a dm-verity volume. This can be used for revocation, (when combined with the previous dm-verity property) or the authorization of a single dm-verity volume. Signed-off-by: Deven Bowers ---

[RFC PATCH v6 08/11] dm-verity: add bdev_setsecurity hook for root-hash

2020-07-29 Thread Deven Bowers
Add a security hook call to set a security property of a block_device in dm-verity with the root-hash that was passed to device-mapper. Signed-off-by: Deven Bowers --- drivers/md/dm-verity-target.c | 8 include/linux/device-mapper.h | 1 + 2 files changed, 9 insertions(+) diff --git

[RFC PATCH v6 03/11] security: add ipe lsm policy parser and policy loading

2020-07-29 Thread Deven Bowers
Adds the policy parser and the policy loading to IPE, along with the related securityfs entries and audit events. Signed-off-by: Deven Bowers --- security/ipe/Kconfig |2 + security/ipe/Makefile|3 + security/ipe/ipe-audit.c | 74 +-

[RFC PATCH v6 11/11] cleanup: uapi/linux/audit.h

2020-07-29 Thread Deven Bowers
Remove trailing whitespaces and align the integrity #defines in linux/uapi/audit.h Signed-off-by: Deven Bowers --- include/uapi/linux/audit.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/uapi/linux/audit.h

Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-07-29 Thread Dmitry Osipenko
30.07.2020 02:54, Sowjanya Komatineni пишет: > > On 7/29/20 4:42 PM, Dmitry Osipenko wrote: >> 29.07.2020 20:55, Sowjanya Komatineni пишет: >>> On 7/29/20 10:08 AM, Dmitry Osipenko wrote: 28.07.2020 19:04, Sowjanya Komatineni пишет: ... >>> +void tegra_mipi_cancel_calibration(struct

[RFC PATCH v6 04/11] ipe: add property for trust of boot volume

2020-07-29 Thread Deven Bowers
Add a property for IPE policy to express trust of the first superblock where a file would be evaluated to determine trust. Signed-off-by: Deven Bowers --- security/ipe/Kconfig| 2 + security/ipe/Makefile | 4 ++ security/ipe/ipe-engine.c |

[RFC PATCH v6 01/11] scripts: add ipe tooling to generate boot policy

2020-07-29 Thread Deven Bowers
Add a tool for the generation of an IPE policy to be compiled into the kernel. This policy will be enforced until userland deploys and activates a new policy. Signed-off-by: Deven Bowers --- MAINTAINERS | 6 ++ scripts/Makefile | 1 + scripts/ipe/Makefile

[RFC PATCH v6 00/11] Integrity Policy Enforcement LSM (IPE)

2020-07-29 Thread Deven Bowers
Overview: IPE is a Linux Security Module which allows for a configurable policy to enforce integrity requirements on the whole system. It attempts to solve the issue of Code Integrity: that any code being executed (or files being read), are identical to the

[RFC PATCH v6 10/11] documentation: add ipe documentation

2020-07-29 Thread Deven Bowers
Add IPE's documentation to the kernel tree. Signed-off-by: Deven Bowers Acked-by: Jonathan Corbet --- Documentation/admin-guide/LSM/index.rst | 1 + Documentation/admin-guide/LSM/ipe.rst | 508 ++ .../admin-guide/kernel-parameters.txt | 12 +

[RFC PATCH v6 07/11] ipe: add property for signed dmverity volumes

2020-07-29 Thread Deven Bowers
Allow IPE to leverage the stacked security blob infrastructure, and enlighten IPE to the block_device security blob. This allows IPE to have a property to express rules around a device-mapper verity volume whose root-hash has been signed, and the signature has been verified against the system

Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Randy Dunlap
On 7/29/20 4:51 PM, Anson Huang wrote: > Hi, Randy > > >> Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed >> 32-bit value by 31 bits >> >> On 7/29/20 7:48 AM, Anson Huang wrote: >>> Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead >>> of (1 << X)

Re: [PATCH] mm: slab: Avoid the use of one-element array and use struct_size() helper

2020-07-29 Thread Gustavo A. R. Silva
Hi, If you are going to copy/paste this, please at least CC the people that is originally working on these changes, in this case _me_. One needs to be very careful when doing these transformations. This code doesn't even exist in linux-next. If you want to land your first kernel patch, I

[PATCH] RISC-V: Fix build warning for smpboot.c

2020-07-29 Thread Atish Patra
The following warnings are reported by kbuild with W=1. >> arch/riscv/kernel/smpboot.c:109:5: warning: no previous prototype for 'start_secondary_cpu' [-Wmissing-prototypes] 109 | int start_secondary_cpu(int cpu, struct task_struct *tidle) | ^~~

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 4:59 PM, Sowjanya Komatineni wrote: On 7/29/20 4:25 PM, Dmitry Osipenko wrote: 28.07.2020 18:59, Sowjanya Komatineni пишет: ... +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); +    if (ret < 0) +    dev_err(csi_chan->csi->dev, +    "MIPI

[PATCH v7 0/7] IOMMU user API enhancement

2020-07-29 Thread Jacob Pan
IOMMU user API header was introduced to support nested DMA translation and related fault handling. The current UAPI data structures consist of three areas that cover the interactions between host kernel and guest: - fault handling - cache invalidation - bind guest page tables, i.e. guest PASID

[PATCH v7 7/7] iommu/vt-d: Check UAPI data processed by IOMMU core

2020-07-29 Thread Jacob Pan
IOMMU generic layer already does sanity checks UAPI data for version match and argsz range under generic information. Remove the redundant version check from VT-d driver and check for vendor specific data size. Signed-off-by: Jacob Pan --- drivers/iommu/intel/iommu.c | 3 +--

[PATCH v7 6/7] iommu/uapi: Handle data and argsz filled by users

2020-07-29 Thread Jacob Pan
IOMMU user APIs are responsible for processing user data. This patch changes the interface such that user pointers can be passed into IOMMU code directly. Separate kernel APIs without user pointers are introduced for in-kernel users of the UAPI functionality. IOMMU UAPI data has a user filled

[PATCH v7 5/7] iommu/uapi: Rename uapi functions

2020-07-29 Thread Jacob Pan
User APIs such as iommu_sva_unbind_gpasid() may also be used by the kernel. Since we introduced user pointer to the UAPI functions, in-kernel callers cannot share the same APIs. In-kernel callers are also trusted, there is no need to validate the data. This patch renames all UAPI functions with

[PATCH v7 3/7] iommu/uapi: Introduce enum type for PASID data format

2020-07-29 Thread Jacob Pan
There can be multiple vendor-specific PASID data formats used in UAPI structures. This patch adds enum type with a last entry which makes range checking much easier. Suggested-by: Alex Williamson Signed-off-by: Jacob Pan --- include/uapi/linux/iommu.h | 8 ++-- 1 file changed, 6

[PATCH v7 1/7] docs: IOMMU user API

2020-07-29 Thread Jacob Pan
IOMMU UAPI is newly introduced to support communications between guest virtual IOMMU and host IOMMU. There has been lots of discussions on how it should work with VFIO UAPI and userspace in general. This document is intended to clarify the UAPI design and usage. The mechanics of how future

[PATCH v7 2/7] iommu/uapi: Add argsz for user filled data

2020-07-29 Thread Jacob Pan
As IOMMU UAPI gets extended, user data size may increase. To support backward compatibiliy, this patch introduces a size field to each UAPI data structures. It is *always* the responsibility for the user to fill in the correct size. Padding fields are adjusted to ensure 8 byte alignment. Specific

[PATCH v7 4/7] iommu/uapi: Use named union for user data

2020-07-29 Thread Jacob Pan
IOMMU UAPI data size is filled by the user space which must be validated by the kernel. To ensure backward compatibility, user data can only be extended by either re-purpose padding bytes or extend the variable sized union at the end. No size change is allowed before the union. Therefore, the

Re: [PATCH v2 4/5] prctl: Hook L1D flushing in via prctl

2020-07-29 Thread Singh, Balbir
On 29/7/20 11:14 pm, Tom Lendacky wrote: > > > On 7/28/20 7:11 PM, Balbir Singh wrote: >> Use the existing PR_GET/SET_SPECULATION_CTRL API to expose the L1D >> flush capability. For L1D flushing PR_SPEC_FORCE_DISABLE and >> PR_SPEC_DISABLE_NOEXEC are not supported. >> >> There is also no seccomp

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

2020-07-29 Thread Linus Torvalds
On Wed, Jul 29, 2020 at 4:43 PM Linus Torvalds wrote: > > Ok, this shows a limitation of my allmodconfig testing (and all my > normal builds) - no plugins. So that problem wasn't as obvious as it > should have been. Ok, that was easy to install and get the coverage, and now I see the error.

Urgent Reply

2020-07-29 Thread MUSSA ALI
Dear friend, I know this means of communication may not be morally right to you as a person but I also have had a great thought about it and I have come to this conclusion which I am about to share with you. INTRODUCTION: I am a banker and in one way or the other was hoping you will cooperate

Re: [PATCH 22/23] fs: default to generic_file_splice_read for files having ->read_iter

2020-07-29 Thread Al Viro
On Tue, Jul 07, 2020 at 07:48:00PM +0200, Christoph Hellwig wrote: > If a file implements the ->read_iter method, the iter based splice read > works and is always preferred over the ->read based one. Use it by > default in do_splice_to and remove all the direct assignment of >

[PATCH V8 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead of (1 << X) to fix below build warning reported by kernel test robot: drivers/clk/imx/clk-imx6sl.c:149:49: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] while

[PATCH V8 5/6] clk: imx8m: Support module build

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16

[PATCH V8 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8 ++--

[PATCH V8 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/imx/Makefile |

[PATCH V8 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. ---

[PATCH V8 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-29 Thread Anson Huang
Nowdays, there are more and more requirements of building SoC specific drivers as modules, such as Android GKI (generic kernel image), this patch set supports building i.MX ARMv8 SoCs clock drivers as modules, The CLK_IMXxxx is introduced for i.MX ARMv7 platforms in order to make the build

[PATCH V8 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v2 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-07-29 Thread Alexander Graf
It's not desireable to have all MSRs always handled by KVM kernel space. Some MSRs would be useful to handle in user space to either emulate behavior (like uCode updates) or differentiate whether they are valid based on the CPU model. To allow user space to specify which MSRs it wants to see

[PATCH v2 1/3] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
MSRs are weird. Some of them are normal control registers, such as EFER. Some however are registers that really are model specific, not very interesting to virtualization workloads, and not performance critical. Others again are really just windows into package configuration. Out of these MSRs,

[PATCH v2 3/3] KVM: selftests: Add test for user space MSR handling

2020-07-29 Thread Alexander Graf
Now that we have the ability to handle MSRs from user space and also to select which ones we do want to prevent in-kernel KVM code from handling, let's add a selftest to show case and verify the API. Signed-off-by: Alexander Graf --- tools/testing/selftests/kvm/Makefile | 1 +

[PATCH v2 0/3] Allow user space to restrict and augment MSR emulation

2020-07-29 Thread Alexander Graf
While tying to add support for the MSR_CORE_THREAD_COUNT MSR in KVM, I realized that we were still in a world where user space has no control over what happens with MSR emulation in KVM. That is bad for multiple reasons. In my case, I wanted to emulate the MSR in user space, because it's a CPU

Re: [PATCH v3 0/6] PCI: Minor kerneldoc warning fixes

2020-07-29 Thread Bjorn Helgaas
On Wed, Jul 29, 2020 at 10:12:18PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Changes since v2: > 1. Fix almost all warnings, except: >drivers/pci/controller/pci-hyperv.c:2534: warning: Function parameter or > member 'version' not described in 'hv_pci_protocol_negotiation' >

Re: [PATCH bpf-next v2] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Tiezhu Yang
On 07/30/2020 05:06 AM, Song Liu wrote: On Wed, Jul 29, 2020 at 6:17 AM Tiezhu Yang wrote: There exists an error "404 Not Found" when I click the html link of "Documentation/networking/filter.rst" in the BPF documentation [1], fix it. Additionally, use the new links about "BPF and XDP

Re: [RFC PATCH v5 13/14] media: tegra-video: Add CSI MIPI pads calibration

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 4:25 PM, Dmitry Osipenko wrote: 28.07.2020 18:59, Sowjanya Komatineni пишет: ... +    ret = tegra_mipi_finish_calibration(csi_chan->mipi); +    if (ret < 0) +    dev_err(csi_chan->csi->dev, +    "MIPI calibration failed: %d\n", ret); Doesn't

RE: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Hi, Randy > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > 32-bit value by 31 bits > > On 7/29/20 7:48 AM, Anson Huang wrote: > > Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead > > of (1 << X) to fix below build warning reported by kernel

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