Re: [PATCH 1/1] [PATCH] Documentation/translations: Translate sound/hd-audio/controls.rst into Chinese

2021-02-19 Thread Alex Shi
在 2021/2/19 下午10:48, hjh 写道: > +Documentation/sound/hd-audio/controls.rst 的中文翻译 > + > +如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 > +交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 > +译存在问题,请联系中文版维护者。 > + > +中文版维护者: 黄江慧 Huang Jianghui > +中文版翻译者: 黄江慧 Huang Jianghui > + > + better to reuse disclaimer-zh_CN.rst

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-02-19 Thread Dmitry Osipenko
19.02.2021 01:07, Nicolin Chen пишет: > Commit 25938c73cd79 ("iommu/tegra-smmu: Rework tegra_smmu_probe_device()") > removed certain hack in the tegra_smmu_probe() by relying on IOMMU core to > of_xlate SMMU's SID per device, so as to get rid of tegra_smmu_find() and > tegra_smmu_configure() that

Re: [PATCH net-next] net: dsa: Fix dependencies with HSR

2021-02-19 Thread Florian Fainelli
On 2/19/2021 9:12 PM, Florian Fainelli wrote: > The core DSA framework uses hsr_is_master() which would not resolve to a > valid symbol if HSR is built-into the kernel and DSA is a module. > > Fixes: 18596f504a3e ("net: dsa: add support for offloading HSR") > Reported-by: kernel test robot >

Re: [PATCH v2 1/1] phy: fsl-imx8-mipi-dphy: Hook into runtime pm

2021-02-19 Thread Liu Ying
Hi Guido, On Wed, 2020-12-16 at 12:27 +0100, Guido Günther wrote: > This allows us to shut down the mipi power domain on the imx8. The > alternative would be to drop the dphy from the mipi power domain in the > SOCs device tree and only have the DSI host controller visible there but > since the

Re: [PATCH] Staging: rtl8192e: fix kconfig dependency on CRYPTO

2021-02-19 Thread Greg KH
On Fri, Feb 19, 2021 at 06:14:57PM -0500, Julian Braha wrote: > commit 1a3f343027d7f5a6475a019aa20be89795b8c8e0 > Author: Julian Braha > Date: Fri Feb 19 17:02:24 2021 -0500 > > staging: rtl8192e: fix kconfig dependency on CRYPTO > > When RTLLIB_CRYPTO_TKIP is enabled and CRYPTO

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-19 Thread Hanjun Guo
On 2021/2/19 17:08, Greg Kroah-Hartman wrote: On Fri, Feb 19, 2021 at 04:54:24PM +0800, Hanjun Guo wrote: Hi Greg, On 2021/1/26 15:29, Greg Kroah-Hartman wrote: [...] I want to see companies _using_ the kernel, and most importantly, _updating_ their devices with it, to know if it is worth to

[PATCH] drm/amd/display/dc/core/dc_link_ddc: Remove unnecessary conversion to bool

2021-02-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c:544:34-39: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 2 +- 1 file changed, 1

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-02-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c:270:16-21: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 3 +-- 1 file changed, 1 insertion(+), 2

[RESEND v3 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-02-19 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml

Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-19 Thread Brad Boyer
On Sat, Feb 20, 2021 at 05:32:30PM +1100, Finn Thain wrote: > Nope. Interrupt priority masking is there to place an upper bound > interrupt latency. That's why this feature is shipping in contemporary > hardware (e.g. ARM GIC). If you care about real time workloads on arm64, > that may interest

Re: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-19 Thread Finn Thain
On Thu, 18 Feb 2021, Xiaofei Tan wrote: > On 2021/2/9 13:06, Finn Thain wrote: > > On Tue, 9 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > On Sun, 7 Feb 2021, Xiaofei Tan wrote: > > > > > > > > > Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI > > > > > drivers. There are

Re: [PATCH v2 1/1] phy: fsl-imx8-mipi-dphy: Hook into runtime pm

2021-02-19 Thread Liu Ying
On Sat, 2021-02-20 at 13:37 +0800, Liu Ying wrote: > Hi Guido, > > On Wed, 2020-12-16 at 12:27 +0100, Guido Günther wrote: > > This allows us to shut down the mipi power domain on the imx8. The > > alternative would be to drop the dphy from the mipi power domain in the > > SOCs device tree and

Re: [PATCH 1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-02-19 Thread Irui Wang
On Tue, 2021-02-09 at 09:53 -0600, Rob Herring wrote: > On Thu, Jan 21, 2021 at 02:18:02PM +0800, Irui Wang wrote: > > Updates binding document since the avc and vp8 hardware encoder in > > MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > > "mediatek,mt8173-vcodec-vp8-enc" and

Re: [RESEND PATCH v6 3/3] extcon: qcom-spmi: Add support for VBUS detection

2021-02-19 Thread Chanwoo Choi
Hi, Please use get_maintainer.pl script when you send the patches. I didn't receive the patches. I'll review. Thanks, Chanwoo Choi On 21. 1. 26. 오전 9:38, Guru Das Srinagesh wrote: From: Anirudh Ghayal VBUS can be detected via a dedicated PMIC pin. Add support for reporting the VBUS status.

Re: [PATCH v3 0/1] phy: fsl-imx8-mipi-dphy: Hook into runtime pm

2021-02-19 Thread Liu Ying
Hi Guido, On Fri, 2021-02-19 at 10:38 +0100, Guido Günther wrote: > Hi, > On Wed, Dec 16, 2020 at 07:22:32PM +0100, Guido Günther wrote: > > This allows us to shut down the mipi power domain on the imx8. The > > alternative > > would be to drop the dphy from the mipi power domain in the SOCs

[PATCH] arp: Remove the arp_hh_ops structure

2021-02-19 Thread Yejune Deng
The 'arp_hh_ops' structure is similar to the 'arp_generic_ops' structure. So remove the 'arp_hh_ops' structure. Signed-off-by: Yejune Deng --- net/ipv4/arp.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index

linux-next: Fixes tag needs some work in the block tree

2021-02-19 Thread Stephen Rothwell
Hi all, In commit 76676c992506 ("io_uring: fix io_rsrc_ref_quiesce races") Fixes tag Fixes: 0ce4a72632317 ("io_uring: don't hold uring_lock when calling io_run_task_work*") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes: a4f2225d1cb2 ("io_uring: don't hold

[RESEND v3 2/2] drm/bridge: anx7625: disable regulators when power off

2021-02-19 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang ---

Re: [PATCH 1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-02-19 Thread Irui Wang
On Wed, 2021-02-03 at 19:44 +0900, Alexandre Courbot wrote: > On Thu, Jan 21, 2021 at 3:18 PM Irui Wang wrote: > > > > Updates binding document since the avc and vp8 hardware encoder in > > MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > > "mediatek,mt8173-vcodec-vp8-enc" and

Re: linux-next: Fixes tag needs some work in the block tree

2021-02-19 Thread Jens Axboe
On 2/19/21 9:51 PM, Stephen Rothwell wrote: > Hi all, > > In commit > > 76676c992506 ("io_uring: fix io_rsrc_ref_quiesce races") > > Fixes tag > > Fixes: 0ce4a72632317 ("io_uring: don't hold uring_lock when calling > io_run_task_work*") > > has these problem(s): > > - Target SHA1 does

Re: [RFC PATCH v5 2/4] block: add simple copy support

2021-02-19 Thread Damien Le Moal
On 2021/02/20 11:01, SelvaKumar S wrote: > Add new BLKCOPY ioctl that offloads copying of one or more sources > ranges to a destination in the device. Accepts a 'copy_range' structure > that contains destination (in sectors), no of sources and pointer to the > array of source ranges. Each source

KASAN: out-of-bounds Read in leaf_paste_entries

2021-02-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16c21204d0 kernel config: https://syzkaller.appspot.com/x/.config?x=51ab7ccac30c dashboard link:

Re: [RFC PATCH v5 3/4] nvme: add simple copy support

2021-02-19 Thread Matthew Wilcox
On Fri, Feb 19, 2021 at 06:15:16PM +0530, SelvaKumar S wrote: > + struct nvme_copy_range *range = NULL; [...] > + range = kmalloc_array(nr_range, sizeof(*range), > + GFP_ATOMIC | __GFP_NOWARN); [...] > + req->special_vec.bv_page = virt_to_page(range); > +

[PATCH RFC tools/memory-model] Add access-marking documentation

2021-02-19 Thread Paul E. McKenney
This commit adapts the "Concurrency bugs should fear the big bad data-race detector (part 2)" LWN article (https://lwn.net/Articles/816854/) to kernel-documentation form. This allows more easily updating the material as needed. Suggested-by: Thomas Gleixner [ paulmck: Apply Marco Elver

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-19 Thread Muchun Song
On Fri, Feb 19, 2021 at 10:12 PM Michal Hocko wrote: > > On Fri 19-02-21 18:49:49, Muchun Song wrote: > > When we free a HugeTLB page to the buddy allocator, we should allocate > > the vmemmap pages associated with it. But we may cannot allocate vmemmap > > pages when the system is under memory

arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of function 'ep_op_has_event'

2021-02-19 Thread kernel test robot
Hi Russell, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: c281634c865202e2776b0250678ff93c771947ff ARM: compat: remove KERNEL_DS usage in sys_oabi_epoll_ctl()

[PATCH net-next] net: dsa: Fix dependencies with HSR

2021-02-19 Thread Florian Fainelli
The core DSA framework uses hsr_is_master() which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module. Fixes: 18596f504a3e ("net: dsa: add support for offloading HSR") Reported-by: kernel test robot Signed-off-by: Florian Fainelli --- David, Jakub, This

Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-19 Thread Finn Thain
On Thu, 18 Feb 2021, Arnd Bergmann wrote: > On Thu, Feb 18, 2021 at 6:30 AM Finn Thain wrote: > > On Wed, 17 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > On Sat, 13 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > > > That scenario seems a little contrived to me (drivers for two or

[PATCH 1/1] net: fec: ptp: avoid register access when ipg clock is disabled

2021-02-19 Thread Heiko Thiery
When accessing the timecounter register on an i.MX8MQ the kernel hangs. This is only the case when the interface is down. This can be reproduced by reading with 'phc_ctrl eth0 get'. Like described in the change in 91c0d987a9788dcc5fe26baafd73bf9242b68900 the igp clock is disabled when the

Re: [PATCH 3/3] media: mtk-vcodec: Separating mtk encoder driver

2021-02-19 Thread Irui Wang
On Wed, 2021-02-03 at 19:44 +0900, Alexandre Courbot wrote: > Hi Irui, > > Thanks for pushing this forward. I had two small conflicts when > applying this patch to the media tree, so you may want to rebase > before sending the next version. Please see the comments inline. > > On Thu, Jan 21,

Re: [RFC] scripts: kernel-doc: fix array element capture in pointer-to-func parsing

2021-02-19 Thread Lukas Bulwahn
On Wed, Feb 17, 2021 at 3:56 PM Aditya Srivastava wrote: > > Currently, kernel-doc causes an unexpected error when array element (i.e., > "type (*foo[bar])(args)") is present as pointer parameter in > pointer-to-function parsing. > > For e.g., running kernel-doc -none on kernel/gcov/gcc_4_7.c

[BUG] checkpatch: false positive unwrapped commit description

2021-02-19 Thread Heinrich Schuchardt
The next line leads to a false positive Possible unwrapped commit description (prefer a maximum 75 chars per line) element type is ‘struct reg_info‘, not ‘u32‘ {aka ‘unsigned int‘} +|+|+|+|+|+|+| 10203040

WARNING in netlbl_cipsov4_add

2021-02-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4773acf3 b43: N-PHY: Fix the update of coef for the PHY re.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=13290cb0d0 kernel config: https://syzkaller.appspot.com/x/.config?x=8cb23303ddb9411f

Re: [PATCH v5 5/9] cxl/mem: Add a "RAW" send command

2021-02-19 Thread Konrad Rzeszutek Wilk
On Tue, Feb 16, 2021 at 08:09:54PM -0800, Ben Widawsky wrote: > The CXL memory device send interface will have a number of supported > commands. The raw command is not such a command. Raw commands allow > userspace to send a specified opcode to the underlying hardware and > bypass all driver

Re: [PATCH v5 6/9] cxl/mem: Enable commands via CEL

2021-02-19 Thread Konrad Rzeszutek Wilk
> +static inline struct cxl_mem_command *cxl_mem_find_command(u16 opcode) > +{ > + struct cxl_mem_command *c; > + > + cxl_for_each_cmd(c) Would you be amenable to adding { > + if (c->opcode == opcode) > + return c; > + and } here (and in the code below as

Re: [PATCH v5 7/9] cxl/mem: Add set of informational commands

2021-02-19 Thread Konrad Rzeszutek Wilk
On Tue, Feb 16, 2021 at 08:09:56PM -0800, Ben Widawsky wrote: > Add initial set of formal commands beyond basic identify and command > enumeration. > > Signed-off-by: Ben Widawsky > Reviewed-by: Dan Williams Reviewed-by: Konrad Rzeszutek Wilk > Reviewed-by: Jonathan Cameron (v2) > --- >

Re: [PATCH v5 4/9] cxl/mem: Add basic IOCTL interface

2021-02-19 Thread Konrad Rzeszutek Wilk
..snip.. > +static int handle_mailbox_cmd_from_user(struct cxl_mem *cxlm, > + const struct cxl_mem_command *cmd, > + u64 in_payload, u64 out_payload, > + s32 *size_out, u32 *retval) > +{ > +

RE: [EXT] Re: [PATCH] PCI: imx6: Limit DBI register length for imx6qp pcie

2021-02-19 Thread Richard Zhu
> -Original Message- > From: Krzysztof Wilczyński > Sent: Friday, February 19, 2021 1:34 AM > To: Richard Zhu > Cc: l.st...@pengutronix.de; helg...@kernel.org; ste...@agner.ch; > lorenzo.pieral...@arm.com; linux-...@vger.kernel.org; dl-linux-imx > ; linux-arm-ker...@lists.infradead.org;

[PATCH 0/9] Enable hibernation when Lockdown is enabled

2021-02-19 Thread Matthew Garrett
Lockdown in integrity mode aims to ensure that arbitrary code cannot end up in ring 0 without owner approval. The combination of module signing and secure boot gets most of the way there, but various other features are disabled by lockdown in order to avoid more convoluted approaches that would

[PATCH 3/9] security: keys: trusted: Parse out individual components of the key blob

2021-02-19 Thread Matthew Garrett
Performing any sort of state validation of a sealed TPM blob requires being able to access the individual members in the response. Parse the blob sufficiently to be able to stash pointers to each member, along with the length. Signed-off-by: Matthew Garrett --- include/keys/trusted-type.h

[PATCH 1/9] tpm: Add support for in-kernel resetting of PCRs

2021-02-19 Thread Matthew Garrett
Add an internal command for resetting a PCR. Signed-off-by: Matthew Garrett --- drivers/char/tpm/tpm-interface.c | 28 + drivers/char/tpm/tpm.h | 2 ++ drivers/char/tpm/tpm1-cmd.c | 34 ++ drivers/char/tpm/tpm2-cmd.c | 36

[PATCH 2/9] tpm: Allow PCR 23 to be restricted to kernel-only use

2021-02-19 Thread Matthew Garrett
Under certain circumstances it might be desirable to enable the creation of TPM-backed secrets that are only accessible to the kernel. In an ideal world this could be achieved by using TPM localities, but these don't appear to be available on consumer systems. An alternative is to simply block

[PATCH 4/9] security: keys: trusted: Store the handle of a loaded key

2021-02-19 Thread Matthew Garrett
Certain in-kernel operations using a trusted key (such as creation certification) require knowledge of the handle it's loaded at. Keep a copy of that in the payload. Signed-off-by: Matthew Garrett --- include/keys/trusted-type.h | 1 + security/keys/trusted-keys/trusted_tpm2.c | 6

[PATCH 6/9] pm: hibernate: Optionally store and verify a hash of the image

2021-02-19 Thread Matthew Garrett
Calculate and store a cryptographically secure hash of the hibernation image if SF_VERIFY_IMAGE is set in the hibernation flags. This allows detection of a corrupt image, but has the disadvantage that it requires the blocks be read in in linear order. Signed-off-by: Matthew Garrett ---

[PATCH 7/9] pm: hibernate: Optionally use TPM-backed keys to protect image integrity

2021-02-19 Thread Matthew Garrett
A plain hash protects the hibernation image against accidental modification, but in the face of an active attack the hash can simply be updated to match the new image. Generate a random AES key and seal this with the TPM, and use it to encrypt the hash. On resume, the key can be unsealed and used

[PATCH 8/9] pm: hibernate: Verify the digest encryption key

2021-02-19 Thread Matthew Garrett
We want to ensure that the key used to encrypt the digest was created by the kernel during hibernation. To do this we request that the TPM include information about the value of PCR 23 at the time of key creation in the sealed blob. On resume, we can ask the TPM to certify that the creation data

[PATCH 5/9] security: keys: trusted: Allow storage of PCR values in creation data

2021-02-19 Thread Matthew Garrett
When TPMs generate keys, they can also generate some information describing the state of the PCRs at creation time. This data can then later be certified by the TPM, allowing verification of the PCR values. This allows us to determine the state of the system at the time a key was generated. Add an

[PATCH 9/9] pm: hibernate: seal the encryption key with a PCR policy

2021-02-19 Thread Matthew Garrett
The key blob is not secret, and by default the TPM will happily unseal it regardless of system state. We can protect against that by sealing the secret with a PCR policy - if the current PCR state doesn't match, the TPM will refuse to release the secret. For now let's just seal it to PCR 23. In

Re: [PATCH v5 3/3] bus: mhi: core: Process execution environment changes serially

2021-02-19 Thread kernel test robot
Hi Bhaumik, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11 next-20210219] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-19 Thread Jason Wang
On 2021/2/19 6:13 下午, Christoph Hellwig wrote: On Fri, Feb 19, 2021 at 03:45:09AM -0500, Jason Wang wrote: We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a lot of confusion. E.g it may break various default configs which want virtio devices. So this patch fixes this by

Re: [f2fs-dev] [PATCH] f2fs/checkpoint: fix a spacing coding style

2021-02-19 Thread Chao Yu
On 2021/2/19 20:46, jiahao wrote: Add a space before the plus. Signed-off-by: jiahao Reviewed-by: Chao Yu Thanks,

[RFC PATCH v5 1/4] block: make bio_map_kern() non static

2021-02-19 Thread SelvaKumar S
Make bio_map_kern() non static, so that copy offload emulation can use it to add vmalloced memory to bio. Signed-off-by: SelvaKumar S Signed-off-by: Chaitanya Kulkarni --- block/blk-map.c| 2 +- include/linux/blkdev.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[RFC PATCH v5 2/4] block: add simple copy support

2021-02-19 Thread SelvaKumar S
Add new BLKCOPY ioctl that offloads copying of one or more sources ranges to a destination in the device. Accepts a 'copy_range' structure that contains destination (in sectors), no of sources and pointer to the array of source ranges. Each source range is represented by 'range_entry' that

[RFC PATCH v5 3/4] nvme: add simple copy support

2021-02-19 Thread SelvaKumar S
Add support for TP 4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") For device supporting native simple copy, this implementation accepts the payload passed from the block layer and convert payload to form simple copy command and submit to the device. Set the device copy limits to queue

[RFC PATCH v5 0/4] add simple copy support

2021-02-19 Thread SelvaKumar S
This patchset tries to add support for TP4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") The Specification can be found in following link. https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs-1.zip Simple copy command is a copy offloading operation and is used to copy

[RFC PATCH v5 4/4] dm kcopyd: add simple copy offload support

2021-02-19 Thread SelvaKumar S
Introduce copy_jobs to use copy-offload if it is natively supported (by underlying device) or else fall back to original method. run_copy_jobs() calls block layer copy offload api with BLKDEV_COPY_NOEMULATION. On successful completion, if only one destination device was present, then jobs is

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-19 Thread Si-Wei Liu
On 2/18/2021 7:10 PM, Jason Wang wrote: On 2021/2/18 8:43 下午, Si-Wei Liu wrote: On 2/17/2021 8:44 PM, Jason Wang wrote: On 2021/2/10 下午4:59, Si-Wei Liu wrote: On 2/9/2021 7:53 PM, Jason Wang wrote: On 2021/2/10 上午10:30, Si-Wei Liu wrote: On 2/8/2021 10:37 PM, Jason Wang wrote:

Re: [PATCH 1/4] iommu/vt-d: Enable write protect for supervisor SVM

2021-02-19 Thread Lu Baolu
Hi Jacob and Sanjay, On 2/19/21 5:31 AM, Jacob Pan wrote: Write protect bit, when set, inhibits supervisor writes to the read-only pages. In supervisor shared virtual addressing (SVA), where page tables are shared between CPU and DMA, IOMMU PASID entry WPE bit should match CR0.WP bit in the

[PATCH 1/3] arm64: dts: qcom: sc7180: Add lazor rev4

2021-02-19 Thread Matthias Kaehlcke
Lazor rev3 and older are stuffed with a 47k NTC thermistor for the charger temperature which currently isn't supported by the PM6150 ADC driver. A supported thermistor is used in rev4 and later revisions. Add rev4 .dts files to be able to account for this. Signed-off-by: Matthias Kaehlcke ---

[PATCH 2/3] arm64: dts: qcom: sc7180: trogdor: Add labels to charger thermal zone and ADC channel

2021-02-19 Thread Matthias Kaehlcke
Some revisions of trogdor boards use a thermistor for the charger temperature which currently isn't supported by the PM6150 ADC driver. Add labels for the charger thermal zone and ADC channel to allow the removal of these nodes from affected boards and avoid the use of bogus temperature values.

[PATCH 3/3] arm64: dts: qcom: sc7180: Delete charger thermal zone and ADC channel for lazor <= rev3

2021-02-19 Thread Matthias Kaehlcke
Lazor rev3 and older are stuffed with a 47k NTC as thermistor for the charger temperature which currently isn't supported by the PM6150 ADC driver. Delete the charger thermal zone and ADC channel to avoid the use of bogus temperature values. Signed-off-by: Matthias Kaehlcke ---

Re: [PATCH 7/9] pm: hibernate: Optionally use TPM-backed keys to protect image integrity

2021-02-19 Thread Randy Dunlap
Hi-- On 2/19/21 5:32 PM, Matthew Garrett wrote: > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index a7320f07689d..0279cc10f319 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -92,6 +92,21 @@ config HIBERNATION_SNAPSHOT_DEV > > If in doubt, say Y. >

Re: [PATCH 3/4] iommu/vt-d: Reject unsupported page request modes

2021-02-19 Thread Lu Baolu
On 2/19/21 5:31 AM, Jacob Pan wrote: When supervisor/privilige mode SVM is used, we bind init_mm.pgd with a supervisor PASID. There should not be any page fault for init_mm. Execution request with DMA read is also not supported. This patch checks PRQ descriptor for both unsupported

Greetings My Dear Friend,

2021-02-19 Thread ABDERAZACK ZEBDANI
Greetings My Dear Friend, Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious.This letter must come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business partners. Please I

Re: [PATCH net] tcp: fix keepalive when data remain undelivered

2021-02-19 Thread Yuchung Cheng
On Fri, Feb 19, 2021 at 4:54 PM Enke Chen wrote: > > From: Enke Chen > > TCP keepalive does not timeout under the condition that network connection > is lost and data remain undelivered (incl. retransmit). A very simple > scenarios of the failure is to write data to a tcp socket after the

Re: [PATCH 4/4] iommu/vt-d: Calculate and set flags for handle_mm_fault

2021-02-19 Thread Lu Baolu
On 2/19/21 5:31 AM, Jacob Pan wrote: Page requests are originated from the user page fault. Therefore, we shall set FAULT_FLAG_USER. FAULT_FLAG_REMOTE indicates that we are walking an mm which is not guaranteed to be the same as the current->mm and should not be subject to protection key 

RE: [PATCH 2/4] iommu/vt-d: Enable write protect propagation from guest

2021-02-19 Thread Tian, Kevin
> From: Jacob Pan > Sent: Saturday, February 20, 2021 1:09 AM > > Hi Kevin, > > On Fri, 19 Feb 2021 06:19:04 +, "Tian, Kevin" > wrote: > > > > From: Jacob Pan > > > Sent: Friday, February 19, 2021 5:31 AM > > > > > > Write protect bit, when set, inhibits supervisor writes to the

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-19 Thread Jason Wang
On 2021/2/20 10:05 上午, Si-Wei Liu wrote: On 2/18/2021 7:10 PM, Jason Wang wrote: On 2021/2/18 8:43 下午, Si-Wei Liu wrote: On 2/17/2021 8:44 PM, Jason Wang wrote: On 2021/2/10 下午4:59, Si-Wei Liu wrote: On 2/9/2021 7:53 PM, Jason Wang wrote: On 2021/2/10 上午10:30, Si-Wei Liu wrote:

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-19 Thread Si-Wei Liu
On 2/17/2021 11:42 AM, Si-Wei Liu wrote: On 2/16/2021 8:20 AM, Eli Cohen wrote: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of

Apply for loan at 5% interest rate per year

2021-02-19 Thread Brightway Finance Loan
BrightWay Finance offers Loans ranging from (R10, 000.00 - R60, 000,000.00). Loan duration is from 1 to 20 years (Maximum) No collateral, No ITC CHECK and Blacklisted are welcome. If you wish to apply kindly send your full names, ID number, email address and cellphone number to

Re: [PATCH 1/9] tpm: Add support for in-kernel resetting of PCRs

2021-02-19 Thread Jarkko Sakkinen
On Sat, Feb 20, 2021 at 01:32:47AM +, Matthew Garrett wrote: Perhaps, prepend with a paragraph elaborating the background just a bit: "When entering to hibernation, PCR 23 will be used to store a known value. This value defines a policy for the decryption of the key used to encrypt the

[PATCH v2] drm/amdgpu/swsmu/navi1x: Remove unnecessary conversion to bool

2021-02-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c:900:47-52: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-19 Thread Si-Wei Liu
On 2/19/2021 6:38 PM, Jason Wang wrote: Right now the value is exposed to userspace via GET_VRING_BASE, so only last_avail_idx is synced. If we need sync last_used_idx, we should also sync pending indices which requires more thoughts. Technically it doesn't sound right - crossing the

[PATCH] PCI: imx6: Limit DBI register length for imx6qp PCIe

2021-02-19 Thread Richard Zhu
Changes from v1 to v2: - Add reviewed by Lucas and Krzysztof. - Refine the subject and commit refer to Krzysztof comments. drivers/pci/controller/dwc/pci-imx6.c | 1 + 1 file changed, 1 insertion(+) [PATCH v2] PCI: imx6: Limit DBI register length for imx6qp PCIe

Re: [PATCH 2/9] tpm: Allow PCR 23 to be restricted to kernel-only use

2021-02-19 Thread Jarkko Sakkinen
On Sat, Feb 20, 2021 at 01:32:48AM +, Matthew Garrett wrote: > Under certain circumstances it might be desirable to enable the creation > of TPM-backed secrets that are only accessible to the kernel. In an > ideal world this could be achieved by using TPM localities, but these > don't appear

[PATCH v2] PCI: imx6: Limit DBI register length for imx6qp PCIe

2021-02-19 Thread Richard Zhu
Define the length of the DBI registers and limit config space to its length. This makes sure that the kernel does not access registers beyond that point that otherwise would lead to an abort on the i.MX 6QuadPlus. See commit 075af61c19cd ("PCI: imx6: Limit DBI register length") that resolves a

Re: [PATCH 3/9] security: keys: trusted: Parse out individual components of the key blob

2021-02-19 Thread Jarkko Sakkinen
On Sat, Feb 20, 2021 at 01:32:49AM +, Matthew Garrett wrote: > Performing any sort of state validation of a sealed TPM blob requires > being able to access the individual members in the response. Parse the > blob sufficiently to be able to stash pointers to each member, along > with the

Re: [PATCH 4/9] security: keys: trusted: Store the handle of a loaded key

2021-02-19 Thread Jarkko Sakkinen
On Sat, Feb 20, 2021 at 01:32:50AM +, Matthew Garrett wrote: > Certain in-kernel operations using a trusted key (such as creation > certification) require knowledge of the handle it's loaded at. Keep > a copy of that in the payload. > > Signed-off-by: Matthew Garrett This looks good to me

Re: [PATCH 5/9] security: keys: trusted: Allow storage of PCR values in creation data

2021-02-19 Thread Jarkko Sakkinen
On Sat, Feb 20, 2021 at 01:32:51AM +, Matthew Garrett wrote: > When TPMs generate keys, they can also generate some information > describing the state of the PCRs at creation time. This data can then > later be certified by the TPM, allowing verification of the PCR values. > This allows us to

[PATCH v2] xfrm: Fix incorrect types in assignment

2021-02-19 Thread Yang Li
Fix the following sparse warnings: net/xfrm/xfrm_policy.c:1303:22: warning: incorrect type in assignment (different address spaces) Reported-by: Abaci Robot Signed-off-by: Yang Li --- net/xfrm/xfrm_policy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v14 09/11] x86, arm64: Add ARCH_WANT_RESERVE_CRASH_KERNEL config

2021-02-19 Thread chenzhou
On 2021/2/18 16:35, Baoquan He wrote: > On 01/30/21 at 03:10pm, Chen Zhou wrote: >> We make the functions reserve_crashkernel[_low]() as generic for >> x86 and arm64. Since reserve_crashkernel[_low]() implementations >> are quite similar on other architectures as well, we can have more >> users

Re: [PATCH v14 11/11] kdump: update Documentation about crashkernel

2021-02-19 Thread chenzhou
On 2021/2/18 16:40, Baoquan He wrote: > On 01/30/21 at 03:10pm, Chen Zhou wrote: >> For arm64, the behavior of crashkernel=X has been changed, which >> tries low allocation in DMA zone and fall back to high allocation >> if it fails. >> >> We can also use "crashkernel=X,high" to select a high

Re: [PATCH v5 1/1] phy: tusb1210: use bitmasks to set VENDOR_SPECIFIC2

2021-02-19 Thread Vinod Koul
On 17-02-21, 10:22, Liam Beguin wrote: > Hi Vinod, > > On Wed Jan 13, 2021 at 6:49 AM EST, Vinod Koul wrote: > > Applied, thanks > > > > I can't seem to find where this was applied, could you point me to the > right repository? Yeah I cant find the commit in phy-next. I will apply this after

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-19 Thread Pavel Machek
Hi! > > > > For me > > > > only way to get properly working WiFi on my laptop computer is to > > > > compile that Intel out-of-tree version. Sad, but true. > > > > > > Why use 4.19.y on a laptop in the firstplace? That feels very wrong and > > > is not the recommended thing to use the LTS

[PATCH v3 0/6] iio: Add output buffer support

2021-02-19 Thread Alexandru Ardelean
Changelog v2 -> v3: * https://lore.kernel.org/linux-iio/20210217083438.37865-4-alexandru.ardel...@analog.com/T/#m396545e0c6cc9d58e17f4d79b6fc707fd0373d89 * adding only infrastructure pieces for output DAC buffers, unfortunately I couldn't finish a complete DAC change to showcase these changes *

[PATCH v3 1/6] iio: Add output buffer support

2021-02-19 Thread Alexandru Ardelean
From: Lars-Peter Clausen Currently IIO only supports buffer mode for capture devices like ADCs. Add support for buffered mode for output devices like DACs. The output buffer implementation is analogous to the input buffer implementation. Instead of using read() to get data from the buffer

[PATCH v3 3/6] iio: triggered-buffer: extend support to configure output buffers

2021-02-19 Thread Alexandru Ardelean
Now that output (kfifo) buffers are supported, we need to extend the {devm_}iio_triggered_buffer_setup_ext() parameter list to take a direction parameter. This allows us to attach an output triggered buffer to a DAC device. Unfortunately it's a bit difficult to add another macro to avoid changing

[PATCH v3 4/6] iio: buffer-dma: Allow to provide custom buffer ops

2021-02-19 Thread Alexandru Ardelean
From: Lars-Peter Clausen Some devices that want to make use of the DMA buffer might need to do something special, like write a register when the buffer is enabled. Extend the API to allow those drivers to provide their own buffer ops. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru

Re: [RFC v2] execve.2: SYNOPSIS: Document both glibc wrapper and kernel sycalls

2021-02-19 Thread Michael Kerrisk (man-pages)
Hey Alex, On 2/18/21 4:13 PM, Alejandro Colomar wrote: > Until now, the manual pages have (usually) documented only either > the glibc (or another library) wrapper for a syscall, or the > kernel syscall (this only when there's not a wrapper). > > Let's document both prototypes, which many times

[PATCH v2 0/7] sched/fair: misfit task load-balance tweaks

2021-02-19 Thread Valentin Schneider
Hi folks, Here is this year's series of misfit changes. On the menu: o Patch 1 prevents pcpu kworkers from causing group_imbalanced o Patch 2 is an independent active balance cleanup o Patch 3 adds some more sched_asym_cpucapacity static branches o Patch 4 introduces yet another margin for

[PATCH v2 2/7] sched/fair: Clean up active balance nr_balance_failed trickery

2021-02-19 Thread Valentin Schneider
When triggering an active load balance, sd->nr_balance_failed is set to such a value that any further can_migrate_task() using said sd will ignore the output of task_hot(). This behaviour makes sense, as active load balance intentionally preempts a rq's running task to migrate it right away, but

[PATCH v2 3/7] sched/fair: Add more sched_asym_cpucapacity static branch checks

2021-02-19 Thread Valentin Schneider
Rik noted a while back that a handful of sd->flags & SD_ASYM_CPUCAPACITY & family in the CFS load-balancer code aren't guarded by the sched_asym_cpucapacity static branch. Turning those checks into NOPs for those who don't need it is fairly straightforward, and hiding it in a helper doesn't

[PATCH v2 4/7] sched/fair: Introduce a CPU capacity comparison helper

2021-02-19 Thread Valentin Schneider
During load-balance, groups classified as group_misfit_task are filtered out if they do not pass group_smaller_max_cpu_capacity(, ); which itself employs fits_capacity() to compare the sgc->max_capacity of both groups. Due to the underlying margin, fits_capacity(X, 1024) will return false for

[PATCH v2 1/7] sched/fair: Ignore percpu threads for imbalance pulls

2021-02-19 Thread Valentin Schneider
From: Lingutla Chandrasekhar In load balancing, when balancing group is unable to pull task due to ->cpus_ptr constraints from busy group, then it sets LBF_SOME_PINNED to lb env flags, as a consequence, sgc->imbalance is set for its parent domain level. which makes the group classified as

Re: [PATCH v2] staging: fwserial: fix alignment of function parameters

2021-02-19 Thread Greg KH
On Fri, Feb 19, 2021 at 04:21:12PM +0530, Prakash Dubey wrote: > This patch fixes the following checkpatch.pl check: > > CHECK: Alignment should match open parenthesis > > Signed-off-by: Prakash Dubey > --- > drivers/staging/fwserial/fwserial.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [PATCH v3 0/4] Introduce pcim_alloc_irq_vectors()

2021-02-19 Thread Andy Shevchenko
On Fri, Feb 19, 2021 at 12:19:20PM +0100, Robert Richter wrote: > On 18.02.21 16:01:56, Andy Shevchenko wrote: > > The problem this series solves is an imbalanced API. > > This (added) API is bloated and incomplete. It adds functions without > benefit, the only is to have a single pcim alloc

Re: [PATCH v2 1/8] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-19 Thread Adrien Grassein
Le ven. 19 févr. 2021 à 14:18, Krzysztof Kozlowski a écrit : > > On Wed, Feb 17, 2021 at 05:10:45PM +0100, Adrien Grassein wrote: > > Add usdhc3 description which corresponds to the wifi/bt chip > > > > Signed-off-by: Adrien Grassein > > --- > > .../boot/dts/freescale/imx8mm-nitrogen-r2.dts |

[PATCH v3 1/9] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-19 Thread Adrien Grassein
Add usdhc3 description which corresponds to the wifi/bt chip Signed-off-by: Adrien Grassein --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 38 +++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v3 2/9] arm64: dts: imx8mm-nitrogen-r2: add USB support

2021-02-19 Thread Adrien Grassein
Add description of USB. usbotg2 seems to not working on all boards (including ones from variscite). Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 42 +++ 1 file changed, 42 insertions(+) diff --git

[PATCH v3 3/9] arm64: dts: imx8mm-nitrogen-r2: add espi2 support

2021-02-19 Thread Adrien Grassein
Add the description for espi support. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 22 +++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

  1   2   3   4   5   6   7   8   >