Re: [PATCH 6/6] clk: ingenic: Add support for the JZ4760

2021-03-23 Thread Paul Cercueil
Hi Zhou, Le mar. 23 mars 2021 à 23:41, Zhou Yanjie a écrit : Hi Paul, On 2021/3/23 上午1:40, Paul Cercueil wrote: Hi Zhou, Le mer. 17 mars 2021 à 20:41, Zhou Yanjie a écrit : Hi Paul, On 2021/3/7 下午10:17, Paul Cercueil wrote: Add the CGU code and the compatible string to the TCU driver t

Re: [PATCH] powercap/drivers/dtpm: Add dtpm devfreq with energy model support

2021-03-23 Thread Lukasz Luba
Hi Daniel, On 3/19/21 4:28 PM, Daniel Lezcano wrote: Currently the dtpm supports the CPUs via cpufreq and the energy model. This change provides the same for the device which supports devfreq. Each device supporting devfreq and having an energy model can register themselves in the list of suppo

Re: [PATCH v4 1/3] KVM: nVMX: Sync L2 guest CET states between L1/L2

2021-03-23 Thread Sean Christopherson
On Tue, Mar 23, 2021, Yang Weijiang wrote: > On Tue, Mar 16, 2021 at 05:03:47PM +0800, Yang Weijiang wrote: > > Hi, Sean, > Could you respond my below rely? I'm not sure how to proceed, thanks! > > > On Mon, Mar 15, 2021 at 09:45:11AM -0700, Sean Christopherson wrote: > > > On Mon, Mar 15, 2021,

Re: [PATCH] amdgpu: fix gcc -Wrestrict warning

2021-03-23 Thread Rasmus Villemoes
On 23/03/2021 14.04, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc warns about an sprintf() that uses the same buffer as source > and destination, which is undefined behavior in C99: > > drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c: In function > 'amdgpu_securedisplay_debugfs_write':

Re: [PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-23 Thread Lukasz Luba
On 3/23/21 3:26 PM, Greg KH wrote: On Tue, Mar 23, 2021 at 02:56:08PM +, Lukasz Luba wrote: The debugfs directory '/sys/kernel/debug/energy_model' is needed before the Energy Model registration can happen. With the recent change in debugfs subsystem it's not allowed to create this directo

Re: [PATCH RFC v2 8/8] selftests/perf: Add kselftest for remove_on_exec

2021-03-23 Thread Marco Elver
On Tue, Mar 23, 2021 at 03:45PM +0100, Peter Zijlstra wrote: > On Tue, Mar 23, 2021 at 11:32:03AM +0100, Peter Zijlstra wrote: > > And at that point there's very little value in still using > > perf_event_exit_event()... let me see if there's something to be done > > about that. > > I ended up wit

Re: [RFC PATCH v5 00/10] KVM: selftests: some improvement and a new test for kvm page table

2021-03-23 Thread Sean Christopherson
On Tue, Mar 23, 2021, Yanan Wang wrote: > Hi, > This v5 series can mainly include two parts. > Based on kvm queue branch: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git/log/?h=queue Given the number of Reviewed-by tags, I'm pretty sure you can drop the "RFC" :-)

Re: [PATCH v3 02/10] fsdax: Factor helper: dax_fault_actor()

2021-03-23 Thread Ritesh Harjani
On 3/19/21 7:22 AM, Shiyang Ruan wrote: The core logic in the two dax page fault functions is similar. So, move the logic into a common helper function. Also, to facilitate the addition of new features, such as CoW, switch-case is no longer used to handle different iomap types. Signed-off-by:

Re: [PATCH] block: clear GD_NEED_PART_SCAN later in bdev_disk_changed

2021-03-23 Thread Jens Axboe
On 3/23/21 2:52 AM, chris.c...@canonical.com wrote: > From: Chris Chiu > > The GD_NEED_PART_SCAN is set by bdev_check_media_change to initiate > a partition scan while removing a block device. It should be cleared > after blk_drop_paritions because blk_drop_paritions could return > -EBUSY and the

Re: [PATCH] powercap/drivers/dtpm: Add dtpm devfreq with energy model support

2021-03-23 Thread Daniel Lezcano
On 23/03/2021 16:56, Lukasz Luba wrote: > Hi Daniel, > > On 3/19/21 4:28 PM, Daniel Lezcano wrote: >> Currently the dtpm supports the CPUs via cpufreq and the energy >> model. This change provides the same for the device which supports >> devfreq. >> >> Each device supporting devfreq and having an

Re: [PATCH 2/3] mm/page_alloc: Add a bulk page allocator

2021-03-23 Thread Jesper Dangaard Brouer
On Mon, 22 Mar 2021 09:18:44 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > and __alloc_pages_bulk_nodemask. A caller requests a number of pages > to be allocated and added to a list. > > The API is not guaranteed to return the requested number o

Re: [PATCH] powercap/drivers/dtpm: Add dtpm devfreq with energy model support

2021-03-23 Thread Daniel Lezcano
On 23/03/2021 16:56, Lukasz Luba wrote: > Hi Daniel, > > On 3/19/21 4:28 PM, Daniel Lezcano wrote: >> Currently the dtpm supports the CPUs via cpufreq and the energy >> model. This change provides the same for the device which supports >> devfreq. >> >> Each device supporting devfreq and having an

Re: [tip: locking/core] static_call: Fix function type mismatch

2021-03-23 Thread Peter Zijlstra
On Tue, Mar 23, 2021 at 08:37:33AM +0100, Peter Zijlstra wrote: > On Mon, Mar 22, 2021 at 11:30:07PM -, tip-bot2 for Arnd Bergmann wrote: > > The following commit has been merged into the locking/core branch of tip: > > > > Commit-ID: 335c73e7c8f7deb23537afbbbe4f8ab48bd5de52 > > Gitweb:

Re: [PATCH v5 00/27] Memory Folios

2021-03-23 Thread Christoph Hellwig
On Mon, Mar 22, 2021 at 01:59:24PM -0400, Johannes Weiner wrote: > If that is the case, shouldn't there in the long term only be very > few, easy to review instances of things like compound_head(), > PAGE_SIZE etc. deep in the heart of MM? And everybody else should 1) > never see tail pages and 2)

Re: [PATCH v3 0/4] Fixes to bridge/panel and ingenic-drm

2021-03-23 Thread Paul Cercueil
Le mer. 24 févr. 2021 à 13:44, Paul Cercueil a écrit : Hi, Some feedback for patches 1-3? Laurent? 1-month anniversary ping :) Cheers, -Paul Cheers, -Paul Le dim. 24 janv. 2021 à 8:55, Paul Cercueil a écrit : Hi, Here are three independent fixes. The first one addresses a use-aft

Re: [PATCH net-next 0/6] page_pool: recycle buffers

2021-03-23 Thread Jesper Dangaard Brouer
On Tue, 23 Mar 2021 17:47:46 +0200 Ilias Apalodimas wrote: > On Tue, Mar 23, 2021 at 03:41:23PM +, Alexander Lobakin wrote: > > From: Matteo Croce > > Date: Mon, 22 Mar 2021 18:02:55 +0100 > > > > > From: Matteo Croce > > > > > > This series enables recycling of the buffers allocated wit

Re: [PATCHv3 3/6] media: v4l UAPI: add ROI auto-controls flags

2021-03-23 Thread Ricardo Ribalda
Hi Sergey On Fri, Mar 19, 2021 at 6:53 AM Sergey Senozhatsky wrote: > > UVC 1.5 defines the following Region Of Interest auto controls: > > D0: Auto Exposure > D1: Auto Iris > D2: Auto White Balance > D3: Auto Focus > D4: Auto Face Detect > D5: Auto Detect and Track > D6: Image Stabilization > D7

Re: [PATCHv3 2/6] media: v4l UAPI: document ROI selection targets

2021-03-23 Thread Ricardo Ribalda
Hi Sergey On Fri, Mar 19, 2021 at 6:53 AM Sergey Senozhatsky wrote: > > Document V4L2 selection targets that will be used to ROI > implementation. > > Signed-off-by: Sergey Senozhatsky > --- > .../media/v4l/selection-api-configuration.rst | 22 +++ > .../media/v4l/selection-api-exam

Re: [PATCH RESEND] PCI: dwc: Fix MSI not work after resume

2021-03-23 Thread Kishon Vijay Abraham I
Hi, On 23/03/21 8:42 pm, Bjorn Helgaas wrote: > [-cc Dilip (mail to him bounced)] > > On Tue, Mar 23, 2021 at 11:01:15AM +0800, Jisheng Zhang wrote: >> On Mon, 22 Mar 2021 20:24:41 -0500 Bjorn Helgaas wrote: >>> >>> [+cc Kishon, Richard, Lucas, Dilip] >>> >>> On Mon, Mar 01, 2021 at 11:10:31AM +0

Re: [PATCH] ftrace: shut up -Wcast-function-type warning for ftrace_ops_no_ops

2021-03-23 Thread Peter Zijlstra
On Tue, Mar 23, 2021 at 04:25:07PM +0100, Peter Zijlstra wrote: > On Tue, Mar 23, 2021 at 08:57:42AM -0400, Steven Rostedt wrote: > > > Well, from what I understand is that typecasting functions to other types > > of functions is one of the mistakes that cause security bugs to happen. And > > ther

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Borislav Petkov
On Tue, Mar 23, 2021 at 03:45:14PM +, Sean Christopherson wrote: > Practically speaking, "basic" deployments of SGX VMs will be insulated from > this bug. KVM doesn't support EPC oversubscription, so even if all EPC is > exhausted, new VMs will fail to launch, but existing VMs will continue to

Re: [PATCH, -v2] tracing: Fix various typos in comments

2021-03-23 Thread Randy Dunlap
On 3/23/21 4:11 AM, Ingo Molnar wrote: > Fixed. > > -v2 attached - I preemptively added your Reviewed-by as well, if > that's fine. :-) Sure. Reviewed-by: Randy Dunlap thanks. -- ~Randy

Re: [RFC PATCH 2/2] mm,drm/ttm: Use VM_PFNMAP for TTM vmas

2021-03-23 Thread Jason Gunthorpe
On Tue, Mar 23, 2021 at 04:46:00PM +0100, Thomas Hellström (Intel) wrote: > > > +static inline bool is_cow_mapping(vm_flags_t flags) > > > +{ > > > + return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; > > > +} > > Most driver places are just banning VM_SHARED. > > > > I see you copied this

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-23 Thread Alex Williamson
On Tue, 23 Mar 2021 21:02:21 +0530 Amey Narkhede wrote: > On 21/03/23 08:44AM, Alex Williamson wrote: > > On Tue, 23 Mar 2021 15:34:19 +0100 > > Pali Rohár wrote: > > > > > On Thursday 18 March 2021 20:01:55 Amey Narkhede wrote: > > > > On 21/03/17 09:13PM, Pali Rohár wrote: > > > > > On W

[PATCH] vfs: allow stacked ->get_acl() in RCU lookup

2021-03-23 Thread Miklos Szeredi
Overlayfs does not cache ACL's to avoid double caching with all its problems. Instead it just calls the underlying filesystem's i_op->get_acl(), which will return the cached value, if possible. In rcu path walk, however, get_cached_acl_rcu() is employed to get the value from the cache, which will

Greetings to you from here.

2021-03-23 Thread Sgt,Shannon Mccraney
-- Hello, Greetings to you and your family as this letter may come to you as a surprise since we have not yet met, I want to tell you something important but please kindly accept my apology for sending you this email without your consent.I believe you are a highly respected personality, consider

Re: [PATCH v2] IB/mlx5: Reduce max order of memory allocated for xlt update

2021-03-23 Thread Jason Gunthorpe
On Tue, Mar 16, 2021 at 01:09:01PM +, Praveen Kumar Kannoju wrote: > To update xlt (during mlx5_ib_reg_user_mr()), the driver can request up to > 1 MB (order-8) memory, depending on the size of the MR. This costly > allocation can sometimes take very long to return (a few seconds), > especially

Re: [PATCH] KVM: nSVM: Additions to optimizing L12 to L2 vmcb.save copies

2021-03-23 Thread Sean Christopherson
On Wed, Mar 17, 2021, Cathy Avery wrote: > Extend using the vmcb12 control clean field to determine which > vmcb12.save registers were marked dirty in order to minimize > register copies by including the CR bit. > > This patch also fixes the init of last_vmcb12_gpa by using an invalid > physical a

[PATCH, -v2] perf tools: Fix various typos in comments

2021-03-23 Thread Ingo Molnar
* Ingo Molnar wrote: > Fix ~81 single-word typos in the perf tooling code - accumulated over the > years. Found a few more: => From: Ingo Molnar Date: Sun, 21 Mar 2021 12:37:34 +0100 Subject: [PATCH] perf tools: Fix various typos in comments Fix ~124 single-word typos and a few

Re: [PATCH] perf tools: Fix various typos in comments

2021-03-23 Thread Ingo Molnar
Here's the delta between -v1 and -v2, in case you already have -v1 or want to review the changes only: --- tools/perf/arch/arm64/util/machine.c | 8 tools/perf/examples/bpf/augmented_raw_syscalls.c | 4 ++-- tools/perf/pmu-events/arch/powerpc/power8/metrics.j

Re: [PATCH v3 04/10] fsdax: Introduce dax_iomap_cow_copy()

2021-03-23 Thread Ritesh Harjani
On 3/19/21 7:22 AM, Shiyang Ruan wrote: In the case where the iomap is a write operation and iomap is not equal to srcmap after iomap_begin, we consider it is a CoW operation. The destance extent which iomap indicated is new allocated extent. So, it is needed to copy the data from srcmap to n

Re: [PATCH v8] drivers/misc: sysgenid: add system generation id driver

2021-03-23 Thread Catangiu, Adrian Costin
Hi Greg, After your previous reply on this thread we started considering to provide this interface and framework/functionality through a userspace service instead of a kernel interface. The latest iteration on this evolving patch-set doesn’t have strong reasons for living in the kernel anymore

Re: [PATCH net-next 0/6] page_pool: recycle buffers

2021-03-23 Thread Ilias Apalodimas
On Tue, Mar 23, 2021 at 05:04:47PM +0100, Jesper Dangaard Brouer wrote: > On Tue, 23 Mar 2021 17:47:46 +0200 > Ilias Apalodimas wrote: > > > On Tue, Mar 23, 2021 at 03:41:23PM +, Alexander Lobakin wrote: > > > From: Matteo Croce > > > Date: Mon, 22 Mar 2021 18:02:55 +0100 > > > > > > > Fr

Re: [PATCH] mm: memcontrol: fix memsw uncharge for root_mem_cgroup

2021-03-23 Thread Michal Hocko
On Tue 23-03-21 22:56:53, Muchun Song wrote: > The pages aren't accounted at the root level, so we cannot uncharge the > page to the memsw counter for the root memcg. Fix this. The patch is correct but I do wonder whether this matters much in the end. We shouldn't really rely on a correct page cou

Re: [PATCH V2] arm64: dts: qcom: sc7280: Add nodes for eMMC and SD card

2021-03-23 Thread Doug Anderson
Hi, On Sat, Mar 20, 2021 at 11:18 AM Shaik Sajida Bhanu wrote: > > Add nodes for eMMC and SD card on sc7280. > > Signed-off-by: Shaik Sajida Bhanu > > --- > This change is depends on the below patch series: > https://lore.kernel.org/patchwork/project/lkml/list/?series=488871 > https://lore.kerne

[PATCH next 1/2] mfd: Add Renesas Synchronization Management Unit (SMU) support

2021-03-23 Thread min.li.xe
From: Min Li Add support for ClockMatrix(TM) and 82P33xxx families of timing and synchronization devices. The access interface can be either SPI or I2C. Currently, it will create 2 types of MFD devices, which are to be used by the corresponding rsmu character device driver and the PTP hardware cl

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-23 Thread Mimi Zohar
On Wed, 2021-03-24 at 00:14 +0900, Tetsuo Handa wrote: > On 2021/03/23 23:47, Mimi Zohar wrote: > > Initially I also questioned making "integrity" an LSM. Perhaps it's > > time to reconsider. For now, it makes sense to just fix the NULL > > pointer dereferencing. > > Do we think calling panic()

Re: [PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak

2021-03-23 Thread Mauro Carvalho Chehab
Em Sat, 27 Feb 2021 02:37:31 +0300 Pavel Skripkin escreveu: > Syzbot reported memory leak in hdcs_probe_1x00()[1]. > hdcs_probe_1x00() allocates memory for struct hdcs, but if hdcs_init() fails > in gspca_dev_probe2() > this memory becomes leaked. > > int gspca_dev_probe2(struct usb_interface *

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-23 Thread Alex Williamson
On Tue, 23 Mar 2021 10:06:25 -0600 Alex Williamson wrote: > On Tue, 23 Mar 2021 21:02:21 +0530 > Amey Narkhede wrote: > > > On 21/03/23 08:44AM, Alex Williamson wrote: > > > On Tue, 23 Mar 2021 15:34:19 +0100 > > > Pali Rohár wrote: > > > > > > > On Thursday 18 March 2021 20:01:55 Amey N

Re: [PATCHv3 5/6] media: uvcvideo: add UVC 1.5 ROI control

2021-03-23 Thread Ricardo Ribalda
Hi Sergey On Fri, Mar 19, 2021 at 6:54 AM Sergey Senozhatsky wrote: > > This patch implements UVC 1.5 Region of Interest (ROI) control. > > Note that, UVC 1.5 defines CT_DIGITAL_WINDOW_CONTROL controls > and mentions that ROI rectangle coordinates "must be within > the current Digital Window as s

Re: [PATCH v5 00/11] gpio: implement the configfs testing module

2021-03-23 Thread Andy Shevchenko
On Mon, Mar 22, 2021 at 03:32:24PM +0100, Bartosz Golaszewski wrote: > On Mon, Mar 15, 2021 at 10:14 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > This series adds a new GPIO testing module based on configfs committable > > items > > and sysfs. The goal is to provide a

Re: [PATCH] kbuild: Merge module sections if and only if CONFIG_LTO_CLANG is enabled

2021-03-23 Thread Sami Tolvanen
On Mon, Mar 22, 2021 at 4:44 PM Sean Christopherson wrote: > > Merge module sections only when using Clang LTO. With gcc-10, merging > sections does not appear to update the symbol tables for the module, > e.g. 'readelf -s' shows the value that a symbol would have had, if > sections were not merg

Re: How long should be PCIe card in Warm Reset state?

2021-03-23 Thread Amey Narkhede
On 21/03/10 12:05PM, Pali Rohár wrote: > Hello! > > I would like to open a question about PCIe Warm Reset. Warm Reset of > PCIe card is triggered by asserting PERST# signal and in most cases > PERST# signal is controlled by GPIO. > > Basically every native Linux PCIe controller driver is doing this

Re: RFC: create mailing list "linux-issues" focussed on issues/bugs and regressions

2021-03-23 Thread Steven Rostedt
On Mon, 22 Mar 2021 20:25:15 +0100 Thorsten Leemhuis wrote: > I agree to the last point and yeah, maybe regressions are the more > important problem we should work on – at least from the perspective of > kernel development. But from the users perspective (and > reporting-issues.rst is written fo

Re: [PATCH RFC v2 8/8] selftests/perf: Add kselftest for remove_on_exec

2021-03-23 Thread Peter Zijlstra
On Tue, Mar 23, 2021 at 04:58:37PM +0100, Marco Elver wrote: > On Tue, Mar 23, 2021 at 03:45PM +0100, Peter Zijlstra wrote: > > On Tue, Mar 23, 2021 at 11:32:03AM +0100, Peter Zijlstra wrote: > > > And at that point there's very little value in still using > > > perf_event_exit_event()... let me se

Re: [RFC PATCH v2 5/8] arm64: Detect an FTRACE frame and mark a stack trace unreliable

2021-03-23 Thread Madhavan T. Venkataraman
On 3/23/21 10:26 AM, Madhavan T. Venkataraman wrote: > > > On 3/23/21 9:57 AM, Mark Rutland wrote: >> On Tue, Mar 23, 2021 at 09:15:36AM -0500, Madhavan T. Venkataraman wrote: >>> Hi Mark, >>> >>> I have a general question. When exceptions are nested, how does it work? >>> Let us consider 2 c

Re: [PATCH] rcu: Fix various typos in comments

2021-03-23 Thread Paul E. McKenney
On Tue, Mar 23, 2021 at 12:17:53PM +0100, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > > > * there are no read-side primitives analogous to rcu_read_lock() and > > > > * rcu_read_unlock() because this primitive is intended to determine > > > > * that all tasks have passed through a

[PATCH v2 1/2] dt-bindings: thermal: qcom-tsens: Add compatible for sm8350

2021-03-23 Thread Robert Foss
Add tsens bindings for sm8350. Signed-off-by: Robert Foss Reviewed-by: Vinod Koul --- Changes since v2: - Vinod: Add r-b Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/

[PATCH v2 2/2] arm64: dts: qcom: sm8350: Add thermal zones and throttling support

2021-03-23 Thread Robert Foss
sm8350 has 29 thermal sensors split across two tsens controllers. Add the thermal zones to expose them and wireup the cpus to throttle their frequencies on crossing passive temperature thresholds. Signed-off-by: Robert Foss Reviewed-by: Vinod Koul --- Changes since v1: - Vinod: Remove comment

Re: [PATCH] dmaengine: plx_dma: add a missing put_device() on error path

2021-03-23 Thread Logan Gunthorpe
On 2021-03-23 7:19 a.m., Dan Carpenter wrote: > Add a missing put_device(&pdev->dev) if the call to > dma_async_device_register(dma); fails. > > Fixes: 905ca51e63be ("dmaengine: plx-dma: Introduce PLX DMA engine PCI driver > skeleton") > Signed-off-by: Dan Carpenter Good catch. Thanks Dan!

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Sean Christopherson
On Tue, Mar 23, 2021, Borislav Petkov wrote: > On Tue, Mar 23, 2021 at 03:45:14PM +, Sean Christopherson wrote: > > Practically speaking, "basic" deployments of SGX VMs will be insulated from > > this bug. KVM doesn't support EPC oversubscription, so even if all EPC is > > exhausted, new VMs w

[RFC 0/2] perf core: Sharing events with multiple cgroups

2021-03-23 Thread Namhyung Kim
Hello, This work is to make perf stat more scalable with a lot of cgroups. Currently we need to open a separate perf_event to count an event in a cgroup. For a big machine, this requires lots of events like 256 cpu x 8 events x 200 cgroups = 409600 events This is very wasteful and not scalab

[PATCH 1/2] perf/core: Share an event with multiple cgroups

2021-03-23 Thread Namhyung Kim
As we can run many jobs (in container) on a big machine, we want to measure each job's performance during the run. To do that, the perf_event can be associated to a cgroup to measure it only. However such cgroup events need to be opened separately and it causes significant overhead in event multi

[PATCH 2/2] perf/core: Support reading group events with shared cgroups

2021-03-23 Thread Namhyung Kim
This enables reading event group's counter values together with a PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). Users should give a correct size of buffer to be read. Signed-off-by: Namhyung Kim --- kernel/events/core.c | 119 +-- 1

Re: [PATCH] xsysace: Remove SYSACE driver

2021-03-23 Thread Jens Axboe
On 3/22/21 6:04 PM, Davidlohr Bueso wrote: > Hi, > > On Mon, 09 Nov 2020, Michal Simek wrote: > >> Sysace IP is no longer used on Xilinx PowerPC 405/440 and Microblaze >> systems. The driver is not regularly tested and very likely not working for >> quite a long time that's why remove it. > > Is

Re: [PATCH] xsysace: Remove SYSACE driver

2021-03-23 Thread Michal Simek
On 3/23/21 5:23 PM, Jens Axboe wrote: > On 3/22/21 6:04 PM, Davidlohr Bueso wrote: >> Hi, >> >> On Mon, 09 Nov 2020, Michal Simek wrote: >> >>> Sysace IP is no longer used on Xilinx PowerPC 405/440 and Microblaze >>> systems. The driver is not regularly tested and very likely not working for >>>

[PATCH v4 2/3] Revert "mremap: don't allow MREMAP_DONTUNMAP on special_mappings and aio"

2021-03-23 Thread Brian Geffon
This reverts commit cd544fd1dc9293c6702fab6effa63dac1cc67e99. As discussed in [1] this commit was a no-op because the mapping type was checked in vma_to_resize before move_vma is ever called. This meant that vm_ops->mremap() would never be called on such mappings. Furthermore, we've since expanded

[PATCH v4 1/3] mm: Extend MREMAP_DONTUNMAP to non-anonymous mappings

2021-03-23 Thread Brian Geffon
Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This restriction was placed initially for simplicity and not because there exists a technical reason to do so. This change will widen the support to include any mappings which are not VM_DONTEXPAND or VM_PFNMAP. The primary use ca

[PATCH v4 3/3] selftests: Add a MREMAP_DONTUNMAP selftest for shmem

2021-03-23 Thread Brian Geffon
This test extends the current mremap tests to validate that the MREMAP_DONTUNMAP operation can be performed on shmem mappings. Signed-off-by: Brian Geffon --- tools/testing/selftests/vm/mremap_dontunmap.c | 52 +++ 1 file changed, 52 insertions(+) diff --git a/tools/testing/self

Re: [PATCH 2/2] KVM: x86/mmu: Ensure TLBs are flushed when yielding during NX zapping

2021-03-23 Thread Ben Gardon
On Mon, Mar 22, 2021 at 5:15 PM Sean Christopherson wrote: > > On Mon, Mar 22, 2021, Ben Gardon wrote: > > On Fri, Mar 19, 2021 at 4:20 PM Sean Christopherson > > wrote: > > > @@ -5960,19 +5963,21 @@ static void kvm_recover_nx_lpages(struct kvm *kvm) > > > l

[PATCH] mremap.2: MREMAP_DONTUNMAP to reflect to supported mappings

2021-03-23 Thread Brian Geffon
mremap(2) now supports MREMAP_DONTUNMAP with mapping types other than private anonymous. Signed-off-by: Brian Geffon --- man2/mremap.2 | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/man2/mremap.2 b/man2/mremap.2 index 3ed0c0c0a..72acbc111 100644 --- a/man2/mre

Re: How long should be PCIe card in Warm Reset state?

2021-03-23 Thread Pali Rohár
On Tuesday 23 March 2021 21:49:41 Amey Narkhede wrote: > On 21/03/10 12:05PM, Pali Rohár wrote: > > Hello! > > > > I would like to open a question about PCIe Warm Reset. Warm Reset of > > PCIe card is triggered by asserting PERST# signal and in most cases > > PERST# signal is controlled by GPIO. >

Re: [PATCH] xsysace: Remove SYSACE driver

2021-03-23 Thread Jens Axboe
On 3/23/21 10:25 AM, Michal Simek wrote: > > > On 3/23/21 5:23 PM, Jens Axboe wrote: >> On 3/22/21 6:04 PM, Davidlohr Bueso wrote: >>> Hi, >>> >>> On Mon, 09 Nov 2020, Michal Simek wrote: >>> Sysace IP is no longer used on Xilinx PowerPC 405/440 and Microblaze systems. The driver is not

Re: [PATCH] xsysace: Remove SYSACE driver

2021-03-23 Thread Michal Simek
On 3/23/21 5:28 PM, Jens Axboe wrote: > On 3/23/21 10:25 AM, Michal Simek wrote: >> >> >> On 3/23/21 5:23 PM, Jens Axboe wrote: >>> On 3/22/21 6:04 PM, Davidlohr Bueso wrote: Hi, On Mon, 09 Nov 2020, Michal Simek wrote: > Sysace IP is no longer used on Xilinx PowerPC 405/

Re: [PATCH] target: Fix a double put in transport_free_session

2021-03-23 Thread michael . christie
On 3/22/21 9:58 PM, Lv Yunlong wrote: > In transport_free_session, se_nacl is got from se_sess > with the initial reference. If se_nacl->acl_sess_list is > empty, se_nacl->dynamic_stop is set to true. Then the first > target_put_nacl(se_nacl) will drop the initial reference > and free se_nacl. Late

Re: [PATCH net-next 0/6] page_pool: recycle buffers

2021-03-23 Thread Matteo Croce
On Tue, Mar 23, 2021 at 5:10 PM Ilias Apalodimas wrote: > > On Tue, Mar 23, 2021 at 05:04:47PM +0100, Jesper Dangaard Brouer wrote: > > On Tue, 23 Mar 2021 17:47:46 +0200 > > Ilias Apalodimas wrote: > > > > > On Tue, Mar 23, 2021 at 03:41:23PM +, Alexander Lobakin wrote: > > > > From: Matteo

Re: __scsi_remove_device: fix comments minor error

2021-03-23 Thread Bart Van Assche
On 3/23/21 12:24 AM, Du Dengke wrote: > When I read scsi kernel code, I found a spell error in > __scsi_remove_device function comments. Patch was made in attach file. Please include patches in the email body instead of sending these as an attachment. Please also make yourself familiar with gi

Re: [RFC net] net: skbuff: fix stack variable out of bounds access

2021-03-23 Thread Arnd Bergmann
On Tue, Mar 23, 2021 at 3:42 PM Willem de Bruijn wrote: > > On Tue, Mar 23, 2021 at 8:52 AM Arnd Bergmann wrote: > >> > A similar fix already landed in 5.12-rc3: commit b228c9b05876 ("net: > expand textsearch ts_state to fit skb_seq_state"). That fix landed in > 5.12-rc3. Ah nice, even the same

Re: [PATCH 0/3 v5] Introduce a bulk order-0 page allocator

2021-03-23 Thread Mel Gorman
On Tue, Mar 23, 2021 at 04:08:14PM +0100, Jesper Dangaard Brouer wrote: > On Tue, 23 Mar 2021 10:44:21 + > Mel Gorman wrote: > > > On Mon, Mar 22, 2021 at 09:18:42AM +, Mel Gorman wrote: > > > This series is based on top of Matthew Wilcox's series "Rationalise > > > __alloc_pages wrapper"

Re: [Ksummit-discuss] RFC: create mailing list "linux-issues" focussed on issues/bugs and regressions

2021-03-23 Thread James Bottomley
On Tue, 2021-03-23 at 12:20 -0400, Steven Rostedt wrote: > On Mon, 22 Mar 2021 20:25:15 +0100 > Thorsten Leemhuis wrote: > > > I agree to the last point and yeah, maybe regressions are the more > > important problem we should work on – at least from the perspective > > of kernel development. But

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Borislav Petkov
On Tue, Mar 23, 2021 at 04:21:47PM +, Sean Christopherson wrote: > I like the idea of pointing at the documentation. The documentation should > probably emphasize that something is very, very wrong. Yap, because no matter how we formulate the error message, it still ain't enough and needs a l

Re: (subset) [PATCH v5 00/19] coresight: Add support for ETE and TRBE

2021-03-23 Thread Marc Zyngier
On Tue, 23 Mar 2021 12:06:28 +, Suzuki K Poulose wrote: > This series enables future IP trace features Embedded Trace Extension > (ETE) and Trace Buffer Extension (TRBE). This series applies on > v5.12-rc4 + some patches queued. A standalone tree is also available here [0]. > The queued patches

Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-23 Thread Ahmad Fatoum
Hello Horia, On 21.03.21 21:01, Horia Geantă wrote: > On 3/16/2021 7:02 PM, Ahmad Fatoum wrote: >> This patch series builds on top of Sumit's rework to have the CAAM as yet >> another >> trusted key backend. >> > Shouldn't the description under TRUSTED_KEYS (in security/keys/Kconfig) > be updated

Re: (subset) [PATCH v5 00/19] coresight: Add support for ETE and TRBE

2021-03-23 Thread Marc Zyngier
On Tue, 23 Mar 2021 12:06:28 +, Suzuki K Poulose wrote: > This series enables future IP trace features Embedded Trace Extension > (ETE) and Trace Buffer Extension (TRBE). This series applies on > v5.12-rc4 + some patches queued. A standalone tree is also available here [0]. > The queued patches

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-23 Thread Intel
Hi, On 3/23/21 12:34 PM, Daniel Vetter wrote: On Sun, Mar 21, 2021 at 07:45:28PM +0100, Thomas Hellström (Intel) wrote: TTM sets up huge page-table-entries both to system- and device memory, and we don't want gup to assume there are always valid backing struct pages for these. For PTEs this is

Re: [PATCH v8] drivers/misc: sysgenid: add system generation id driver

2021-03-23 Thread Greg KH
On Tue, Mar 23, 2021 at 04:10:27PM +, Catangiu, Adrian Costin wrote: > Hi Greg, > > After your previous reply on this thread we started considering to provide > this interface and framework/functionality through a userspace service > instead of a kernel interface. > The latest iteration on t

Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-23 Thread Ahmad Fatoum
Hello Horia, On 21.03.21 21:48, Horia Geantă wrote: > On 3/16/2021 7:02 PM, Ahmad Fatoum wrote: > [...] >> +struct trusted_key_ops caam_trusted_key_ops = { >> +.migratable = 0, /* non-migratable */ >> +.init = trusted_caam_init, >> +.seal = trusted_caam_seal, >> +.unseal = trusted_

Re: [PATCH] kbuild: Merge module sections if and only if CONFIG_LTO_CLANG is enabled

2021-03-23 Thread Sean Christopherson
On Tue, Mar 23, 2021, Sami Tolvanen wrote: > On Mon, Mar 22, 2021 at 4:44 PM Sean Christopherson wrote: > > > > Merge module sections only when using Clang LTO. With gcc-10, merging > > sections does not appear to update the symbol tables for the module, > > e.g. 'readelf -s' shows the value that

[PATCH 0/3] ASoC: dt-bindings: Rework audio-graph-port schema

2021-03-23 Thread Rob Herring
This series refactors the audio-graph-port.yaml schema moving the 'port' node out of the schema and updating to use graph.yaml schema. This allows users to define what each 'port' node is like other graph binding users. Rob Cc: alsa-de...@alsa-project.org Cc: linux-te...@vger.kernel.org Cc: Jonat

[PATCH 2/3] ASoC: dt-bindings: Use OF graph schema

2021-03-23 Thread Rob Herring
Now that we have an OF graph schema, let's use it for the audio-graph-port schema. Cc: Liam Girdwood Cc: Mark Brown Cc: Kuninori Morimoto Cc: alsa-de...@alsa-project.org Signed-off-by: Rob Herring --- .../devicetree/bindings/sound/audio-graph-port.yaml | 9 - 1 file changed, 4 in

[PATCH 3/3] ASoC: dt-bindings: socionext: Use audio-graph-port schema

2021-03-23 Thread Rob Herring
Convert the Socionext audio schemas to use audio-graph-port.yaml schema for 'port' nodes. The number and numbering of port nodes should be documented, but is not. Leave a FIXME here so others don't copy. Cc: Masahiro Yamada Cc: Liam Girdwood Cc: Mark Brown Signed-off-by: Rob Herring --- .../

[PATCH 1/3] ASoC: dt-bindings: Move port/ports properties out of audio-graph-port.yaml

2021-03-23 Thread Rob Herring
Users of the audio-graph-port schema need to define how many ports and what each port is, so they need to define 'ports' and/or 'port' anyways. Let's drop 'ports' and 'port' from the schema and adjust users to reference audio-graph-port.yaml from a port property. Cc: Liam Girdwood Cc: Mark Brown

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-23 Thread Jason Gunthorpe
On Tue, Mar 23, 2021 at 05:34:51PM +0100, Thomas Hellström (Intel) wrote: > > > @@ -210,6 +211,20 @@ static vm_fault_t ttm_bo_vm_insert_huge(struct > > > vm_fault *vmf, > > > if ((pfn & (fault_page_size - 1)) != 0) > > > goto out_fallback; > > > + /* > > > + * Huge en

Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-23 Thread Ahmad Fatoum
Hello Horia, On 21.03.21 21:01, Horia Geantă wrote: >> - [RFC] drivers: crypto: caam: key: Add caam_tk key type >>Franck added[3] a new "caam_tk" key type based on Udit's work. The key >>material stays within the kernel only, but can optionally be user-set >>instead of coming from RNG

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Paolo Bonzini
On 23/03/21 17:06, Borislav Petkov wrote: Practically speaking, "basic" deployments of SGX VMs will be insulated from this bug. KVM doesn't support EPC oversubscription, so even if all EPC is exhausted, new VMs will fail to launch, but existing VMs will continue to chug along with no ill effects

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Paolo Bonzini
On 22/03/21 21:43, Kai Huang wrote: That was my recollection as well from previous threads but, to be fair to Boris, the commit message is a lot more scary (and, which is what triggers me, puts the blame on KVM). It just says "KVM does not track how guest pages are used, which means that SGX vir

Re: [PATCH v2] block: recalculate segment count for multi-segment discards correctly

2021-03-23 Thread Jens Axboe
On 2/11/21 7:38 AM, David Jeffery wrote: > When a stacked block device inserts a request into another block device > using blk_insert_cloned_request, the request's nr_phys_segments field gets > recalculated by a call to blk_recalc_rq_segments in > blk_cloned_rq_check_limits. But blk_recalc_rq_segme

Re: [PATCH v1 1/3] crypto: caam - add in-kernel interface for blob generator

2021-03-23 Thread Ahmad Fatoum
Hello Horia, On 21.03.21 21:46, Horia Geantă wrote: > On 3/16/2021 7:01 PM, Ahmad Fatoum wrote: >> +init_job_desc(desc, 0); >> +append_key_as_imm(desc, keymod, keymod_len, keymod_len, >> + CLASS_2 | KEY_DEST_CLASS_REG); >> +append_seq_in_ptr(desc, dma_in, length -

[PATCH net-next 0/2] Add support for Clause-45 PHY Loopback

2021-03-23 Thread Wong Vee Khee
This patch series add support for Clause-45 PHY loopback. It involves adding a generic API in the PHY framework, which can be accessed by all C45 PHY drivers using the .set_loopback callback. Also, enable PHY loopback for the Marvell 88x3310/88x2110 driver. Wong Vee Khee (2): net: phy: add gen

[PATCH net-next 2/2] net: phy: marvell10g: Add PHY loopback support

2021-03-23 Thread Wong Vee Khee
Add support for PHY loopback for Marvell 88x2110 and Marvell 88x3310. This allow user to perform PHY loopback test using ethtool selftest. Signed-off-by: Wong Vee Khee --- drivers/net/phy/marvell10g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/marvell10g.c b/drivers/n

Re: [PATCH] net/smc: Simplify the return expression

2021-03-23 Thread Karsten Graul
On 23/03/2021 03:05, zuoqil...@163.com wrote: > From: zuoqilin > > Simplify the return expression of smc_ism_signal_shutdown(). > > Signed-off-by: zuoqilin > --- > net/smc/smc_ism.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism

[PATCH net-next 1/2] net: phy: add genphy_c45_loopback

2021-03-23 Thread Wong Vee Khee
Add generic code to enable C45 PHY loopback into the common phy-c45.c file. This will allow C45 PHY drivers aceess this by setting .set_loopback. Suggested-by: Heiner Kallweit Signed-off-by: Wong Vee Khee --- drivers/net/phy/phy-c45.c | 8 include/linux/phy.h | 1 + 2 files chang

[PATCH next 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-03-23 Thread min.li.xe
From: Min Li This driver is developed for the IDT ClockMatrix(TM) and 82P33xxx families of timing and synchronization devices.It will be used by Renesas PTP Clock Manager for Linux (pcm4l) software to provide support to GNSS assisted partial timing support (APTS) and other networking timing funct

Re: [PATCH] init/Kconfig: Support sign module with SM3 hash algorithm

2021-03-23 Thread Randy Dunlap
On 3/23/21 1:35 AM, Tianjia Zhang wrote: > The kernel module signature supports the option to use the SM3 > secure hash (OSCCA GM/T 0004-2012 SM3). > > Signed-off-by: Tianjia Zhang > --- > Documentation/admin-guide/module-signing.rst | 5 +++-- > crypto/asymmetric_keys/pkcs7_parser.c| 7

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-23 Thread Paul E. McKenney
On Tue, Mar 23, 2021 at 03:02:07PM +0100, Frederic Weisbecker wrote: > On Mon, Mar 22, 2021 at 12:45:22PM -0700, Paul E. McKenney wrote: > > On Mon, Mar 22, 2021 at 08:00:35PM +0100, Frederic Weisbecker wrote: > > > But poll_state_synchronize_rcu() checks that the gp_num has changed, > > > which is

Re: [RFC PATCH v2 5/8] arm64: Detect an FTRACE frame and mark a stack trace unreliable

2021-03-23 Thread Mark Rutland
On Tue, Mar 23, 2021 at 10:26:50AM -0500, Madhavan T. Venkataraman wrote: > On 3/23/21 9:57 AM, Mark Rutland wrote: > Thanks for explaining the nesting. It is now clear to me. No problem! > So, my next question is - can we define a practical limit for the > nesting so that any nesting beyond that

Re: [PATCH v2] fs/exec: fix typos and sentence disorder

2021-03-23 Thread Randy Dunlap
On 3/23/21 12:42 AM, Xiaofeng Cao wrote: > change 'backwords' to 'backwards' > change 'and argument' to 'an argument' > change 'visibile' to 'visible' > change 'wont't' to 'won't' > reorganize sentence > > Signed-off-by: Xiaofeng Cao Acked-by: Randy Dunlap Thanks. > --- > v2: resume the right

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-23 Thread Sean Christopherson
On Tue, Mar 23, 2021, Borislav Petkov wrote: > On Tue, Mar 23, 2021 at 04:21:47PM +, Sean Christopherson wrote: > > I like the idea of pointing at the documentation. The documentation should > > probably emphasize that something is very, very wrong. > > Yap, because no matter how we formulate

Re: [RFC PATCH v2 5/8] arm64: Detect an FTRACE frame and mark a stack trace unreliable

2021-03-23 Thread Madhavan T. Venkataraman
On 3/23/21 11:48 AM, Mark Rutland wrote: > On Tue, Mar 23, 2021 at 10:26:50AM -0500, Madhavan T. Venkataraman wrote: >> On 3/23/21 9:57 AM, Mark Rutland wrote: >> Thanks for explaining the nesting. It is now clear to me. > > No problem! > >> So, my next question is - can we define a practical

Re: [PATCH net-next 0/6] page_pool: recycle buffers

2021-03-23 Thread Alexander Lobakin
From: Matteo Croce Date: Tue, 23 Mar 2021 17:28:32 +0100 > On Tue, Mar 23, 2021 at 5:10 PM Ilias Apalodimas > wrote: > > > > On Tue, Mar 23, 2021 at 05:04:47PM +0100, Jesper Dangaard Brouer wrote: > > > On Tue, 23 Mar 2021 17:47:46 +0200 > > > Ilias Apalodimas wrote: > > > > > > > On Tue, Mar 2

<    4   5   6   7   8   9   10   11   12   13   >