Re: [PATCH] kunit: string-stream-test: Avoid cast warning when testing gfp_t flags

2023-11-29 Thread David Gow
On Wed, 22 Nov 2023 at 00:25, Richard Fitzgerald wrote: > > Passing a gfp_t to KUNIT_EXPECT_EQ() causes a cast warning: > > lib/kunit/string-stream-test.c:73:9: sparse: sparse: incorrect type in > initializer (different base types) expected long long right_value > got restricted gfp_t const

RE: [PATCH V11 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-11-29 Thread Yuan, Perry
[AMD Official Use Only - General] > -Original Message- > From: Meng, Li (Jassmine) > Sent: Wednesday, November 29, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; x...@kernel.org; > linux-a...@vger.kernel.org; Shuah Khan

RE: [PATCH V11 2/7] acpi: cppc: Add get the highest performance cppc control

2023-11-29 Thread Yuan, Perry
[AMD Official Use Only - General] > -Original Message- > From: Meng, Li (Jassmine) > Sent: Wednesday, November 29, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; x...@kernel.org; > linux-a...@vger.kernel.org; Shuah Khan

RE: [PATCH V11 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-11-29 Thread Yuan, Perry
[AMD Official Use Only - General] > -Original Message- > From: Meng, Li (Jassmine) > Sent: Wednesday, November 29, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; x...@kernel.org; > linux-a...@vger.kernel.org; Shuah Khan

RE: [PATCH V11 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-11-29 Thread Yuan, Perry
[AMD Official Use Only - General] > -Original Message- > From: Meng, Li (Jassmine) > Sent: Wednesday, November 29, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; x...@kernel.org; > linux-a...@vger.kernel.org; Shuah Khan

[PATCHv2 net-next 13/14] selftests/net: convert sctp_vrf.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./sctp_vrf.sh Testing For SCTP VRF: TEST 01: nobind, connect from client 1, l3mdev_accept=1, Y [PASS] ... TEST 12: bind vrf-2 & 1 in server, connect from client 1 & 2, N [PASS] ***v6 Tests Done*** Acked-by: David Ahern Signed-off-by: Hangbin Liu ---

[PATCHv2 net-next 12/14] selftests/net: convert ndisc_unsolicited_na_test.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./ndisc_unsolicited_na_test.sh TEST: test_unsolicited_na: drop_unsolicited_na=0 accept_untracked_na=1 forwarding=1 [ OK ] TEST: test_unsolicited_na: drop_unsolicited_na=0 accept_untracked_na=0 forwarding=0 [ OK ] TEST: test_unsolic

[PATCHv2 net-next 10/14] selftests/net: convert ioam6.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./ioam6.sh -- OUTPUT tests -- TEST: Unknown IOAM namespace (inline mode) [ OK ] TES

[PATCHv2 net-next 09/14] sleftests/net: convert icmp.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./icmp.sh OK Acked-by: David Ahern Signed-off-by: Hangbin Liu --- tools/testing/selftests/net/icmp.sh | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/net/icmp.sh b/tools/testing/selftests/net/i

[PATCHv2 net-next 08/14] selftests/net: convert icmp_redirect.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. # ./icmp_redirect.sh ### Legacy routing ### TEST: IPv4: redirect exception

[PATCHv2 net-next 07/14] selftests/net: convert traceroute.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./traceroute.sh TEST: IPV6 traceroute [ OK ] TEST: IPV4 traceroute [ OK ] Tests passed: 2 Tests failed: 0 Acked-by: David Ahern Signed-off-by: Hangbin Liu

[PATCHv2 net-next 06/14] selftests/net: convert drop_monitor_tests.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./drop_monitor_tests.sh Software drops test TEST: Capturing active software drops [ OK ] TEST: Capturing inactive software drops [ OK ] Hardware drops test TEST: Capturing active ha

[PATCHv2 net-next 04/14] selftests/net: convert arp_ndisc_untracked_subnets.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. 2 tests also failed without this patch ]# ./arp_ndisc_untracked_subnets.sh TEST: test_arp: accept_arp=0 [ OK ] TEST: test_arp: accept_arp=1 [ OK ] TEST: test_arp: a

[PATCHv2 net-next 03/14] selftests/net: specify the interface when do arping

2023-11-29 Thread Hangbin Liu
When do arping, the interface need to be specified. Or we will get error: Interface "lo" is not ARPable. And the test failed. ]# ./arp_ndisc_untracked_subnets.sh TEST: test_arp: accept_arp=0 [ OK ] TEST: test_arp: accept_arp=1

[PATCHv2 net-next 02/14] selftests/net: convert arp_ndisc_evict_nocarrier.sh to run it in unique namespace

2023-11-29 Thread Hangbin Liu
Here is the test result after conversion. ]# ./arp_ndisc_evict_nocarrier.sh run arp_evict_nocarrier=1 test ok run arp_evict_nocarrier=0 test ok run all.arp_evict_nocarrier=0 test ok run ndisc_evict_nocarrier=1 test ok run ndisc_evict_nocarrier=0 test ok run all.ndisc_evict_nocarrier=0 test ok Ack

[PATCHv2 net-next 01/14] selftests/net: add lib.sh

2023-11-29 Thread Hangbin Liu
Add a lib.sh for net selftests. This file can be used to define commonly used variables and functions. Some commonly used functions can be moved from forwarding/lib.sh to this lib file. e.g. busywait(). Add function setup_ns() for user to create unique namespaces with given prefix name. Signed-of

[PATCHv2 net-next 00/14] Conver net selftests to run in unique namespace (Part 1)

2023-11-29 Thread Hangbin Liu
As Guillaume pointed, many selftests create namespaces with very common names (like "client" or "server") or even (partially) run directly in init_net. This makes these tests prone to failure if another namespace with the same name already exists. It also makes it impossible to run several instance

Re: [PATCH v2 0/6] IOMMUFD: Deliver IO page faults to user space

2023-11-29 Thread Baolu Lu
On 2023/11/29 17:08, Shameerali Kolothum Thodi wrote: -Original Message- From: Lu Baolu [mailto:baolu...@linux.intel.com] Sent: 26 October 2023 03:49 To: Jason Gunthorpe ; Kevin Tian ; Joerg Roedel ; Will Deacon ; Robin Murphy ; Jean-Philippe Brucker ; Nicolin Chen ; Yi Liu ; Jacob Pan

[PATCH 6/9] selftests/damon: test quota goals directory

2023-11-29 Thread SeongJae Park
Add DAMON selftests for testing creation/existence of quota goals directories and files, and simple valid input writes. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/sysfs.sh | 27 ++ 1 file changed, 27 insertions(+) diff --git a/tools/testing/selftests/

[PATCH 0/9] mm/damon: let users feed and tame/auto-tune DAMOS

2023-11-29 Thread SeongJae Park
Introduce Aim-oriented Feedback-driven DAMOS Aggressiveness Auto-tuning. It makes DAMOS self-tuned with periodic simple user feedback. Patchset Changelog == >From RFC (https://lore.kernel.org/damon/20231112194607.61399-1...@kernel.org/) - Wordsmith commit messages and cover letter

Re: [PATCH] KVM: selftests: add -MP to CFLAGS

2023-11-29 Thread Sean Christopherson
On Sat, 28 Oct 2023 20:34:53 +0100, David Woodhouse wrote: > Using -MD without -MP causes build failures when a header file is deleted > or moved. With -MP, the compiler will emit phony targets for the header > files it lists as dependencies, and the Makefiles won't refuse to attempt > to rebuild a

Re: [PATCH v7 3/6] zswap: make shrinking memcg-aware

2023-11-29 Thread Nhat Pham
On Wed, Nov 29, 2023 at 4:21 PM Nhat Pham wrote: > > On Wed, Nov 29, 2023 at 7:17 AM Johannes Weiner wrote: > > > > On Mon, Nov 27, 2023 at 03:45:57PM -0800, Nhat Pham wrote: > > > static void shrink_worker(struct work_struct *w) > > > { > > > struct zswap_pool *pool = container_of(w, typ

Re: [PATCH v6 2/6] memcontrol: allows mem_cgroup_iter() to check for onlineness

2023-11-29 Thread Nhat Pham
On Wed, Nov 29, 2023 at 1:18 AM Michal Hocko wrote: > > On Tue 28-11-23 08:53:56, Nhat Pham wrote: > > On Tue, Nov 28, 2023 at 1:38 AM Michal Hocko wrote: > > > > > > On Mon 27-11-23 11:36:59, Nhat Pham wrote: > > > > The new zswap writeback scheme requires an online-only memcg hierarchy > > > >

Re: [PATCH v7 3/6] zswap: make shrinking memcg-aware

2023-11-29 Thread Nhat Pham
On Wed, Nov 29, 2023 at 7:17 AM Johannes Weiner wrote: > > On Mon, Nov 27, 2023 at 03:45:57PM -0800, Nhat Pham wrote: > > static void shrink_worker(struct work_struct *w) > > { > > struct zswap_pool *pool = container_of(w, typeof(*pool), > > sh

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-11-29 Thread Jason Gunthorpe
On Wed, Nov 29, 2023 at 02:07:58PM -0800, Nicolin Chen wrote: > On Wed, Nov 29, 2023 at 03:58:04PM -0400, Jason Gunthorpe wrote: > > On Tue, Nov 28, 2023 at 05:09:07PM -0800, Nicolin Chen wrote: > > > > > > > With that being said, I think errno (-EIO) could do the job, > > > > > as you suggested t

Re: [PATCH net-next 0/4] selftests: tc-testing: more tdc updates

2023-11-29 Thread Jamal Hadi Salim
On Wed, Nov 29, 2023 at 5:24 PM Pedro Tammela wrote: > > Follow-up on a feedback from Jakub and random cleanups from related > net/sched patches > > Pedro Tammela (4): > selftests: tc-testing: remove spurious nsPlugin usage > selftests: tc-testing: remove spurious './' from Makefile > selfte

Re: [PATCH v7 6/6] zswap: shrinks zswap pool based on memory pressure

2023-11-29 Thread Nhat Pham
On Wed, Nov 29, 2023 at 8:21 AM Johannes Weiner wrote: > > On Mon, Nov 27, 2023 at 03:46:00PM -0800, Nhat Pham wrote: > > Currently, we only shrink the zswap pool when the user-defined limit is > > hit. This means that if we set the limit too high, cold data that are > > unlikely to be used again

Re: [PATCH] selftests/mm: dont run ksm_functional_tests twice

2023-11-29 Thread Joel Savitz
On Wed, Nov 29, 2023 at 5:11 PM Nico Pache wrote: > > ksm functional test is already being run. > Remove the duplicate call to ./ksm_functional_tests. > > Fixes: 93fb70aa5904 ("selftests/vm: add KSM unmerge tests") > Signed-off-by: Nico Pache > Cc: David Hildenbrand > --- > tools/testing/selfte

Re: [PATCH net-next 0/4] selftests: tc-testing: more tdc updates

2023-11-29 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Wed, 29 Nov 2023 19:24:20 -0300 you wrote: > Follow-up on a feedback from Jakub and random cleanups from related > net/sched patches > > Pedro Tammela (4): > selftests: tc-testing: remove spurious nsPlugin u

[PATCH net-next 4/4] selftests: tc-testing: remove filters/tests.json

2023-11-29 Thread Pedro Tammela
Remove this generic file and move the tests to their appropriate files Signed-off-by: Pedro Tammela --- .../tc-testing/tc-tests/filters/flower.json | 98 ++ .../tc-testing/tc-tests/filters/matchall.json | 23 .../tc-testing/tc-tests/filters/tests.json| 123 --

[PATCH net-next 2/4] selftests: tc-testing: remove spurious './' from Makefile

2023-11-29 Thread Pedro Tammela
Patchwork CI didn't like the extra './', so remove it. Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/tc-testing/Makefile b/tools/testing/selftests/tc-testing/Makefile index

[PATCH net-next 3/4] selftests: tc-testing: rename concurrency.json to flower.json

2023-11-29 Thread Pedro Tammela
All tests in this file pertain to flower, so name it appropriately Signed-off-by: Pedro Tammela --- .../tc-testing/tc-tests/filters/{concurrency.json => flower.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tools/testing/selftests/tc-testing/tc-tests/filters/{concurrency.json

[PATCH net-next 1/4] selftests: tc-testing: remove spurious nsPlugin usage

2023-11-29 Thread Pedro Tammela
Tests using DEV2 should not be run in a dedicated net namespace, and in parallel, as this device cannot be shared. Signed-off-by: Pedro Tammela --- .../selftests/tc-testing/tc-tests/filters/tests.json| 6 -- 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/tc-test

[PATCH net-next 0/4] selftests: tc-testing: more tdc updates

2023-11-29 Thread Pedro Tammela
Follow-up on a feedback from Jakub and random cleanups from related net/sched patches Pedro Tammela (4): selftests: tc-testing: remove spurious nsPlugin usage selftests: tc-testing: remove spurious './' from Makefile selftests: tc-testing: rename concurrency.json to flower.json selftests:

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-11-29 Thread Nicolin Chen
On Wed, Nov 29, 2023 at 03:58:04PM -0400, Jason Gunthorpe wrote: > On Tue, Nov 28, 2023 at 05:09:07PM -0800, Nicolin Chen wrote: > > > > > With that being said, I think errno (-EIO) could do the job, > > > > as you suggested too. > > > > > > Do we have any idea what HW failures can be generated b

Re: [PATCH] kunit: string-stream-test: Avoid cast warning when testing gfp_t flags

2023-11-29 Thread Rae Moar
On Tue, Nov 21, 2023 at 11:25 AM Richard Fitzgerald wrote: > > Passing a gfp_t to KUNIT_EXPECT_EQ() causes a cast warning: > > lib/kunit/string-stream-test.c:73:9: sparse: sparse: incorrect type in > initializer (different base types) expected long long right_value > got restricted gfp_t con

Re: [PATCH v3 06/25] KVM: arm64: Save/restore POE registers

2023-11-29 Thread Marc Zyngier
On Wed, 29 Nov 2023 15:11:23 +, Joey Gouly wrote: > > Hi Marc, > > Thanks for taking a look. > > On Mon, Nov 27, 2023 at 06:01:18PM +, Marc Zyngier wrote: > > On Fri, 24 Nov 2023 16:34:51 +, > > Joey Gouly wrote: > > > > > > Define the new system registers that POE introduces and

Re: [PATCH v7 2/6] memcontrol: add a new function to traverse online-only memcg hierarchy

2023-11-29 Thread Johannes Weiner
On Wed, Nov 29, 2023 at 10:04:05AM -0500, Johannes Weiner wrote: > On Mon, Nov 27, 2023 at 03:45:56PM -0800, Nhat Pham wrote: > > The new zswap writeback scheme requires an online-only memcg hierarchy > > traversal. Add this functionality via the new mem_cgroup_iter_online() > > function - the old

Re: [PATCH v7 6/6] zswap: shrinks zswap pool based on memory pressure

2023-11-29 Thread Johannes Weiner
On Mon, Nov 27, 2023 at 03:46:00PM -0800, Nhat Pham wrote: > Currently, we only shrink the zswap pool when the user-defined limit is > hit. This means that if we set the limit too high, cold data that are > unlikely to be used again will reside in the pool, wasting precious > memory. It is hard to

[PATCH 12/12] selftests/hid: tablets: be stricter for some transitions

2023-11-29 Thread Benjamin Tissoires
To accommodate for legacy devices, we rely on the last state of a transition to be valid: for example when we test PEN_IS_OUT_OF_RANGE to PEN_IS_IN_CONTACT, any "normal" device that reports an InRange bit would insert a PEN_IS_IN_RANGE state between the 2. This is of course valid, but this solutio

[PATCH 11/12] selftests/hid: tablets: add a secondary barrel switch test

2023-11-29 Thread Benjamin Tissoires
Some tablets report 2 barrel switches. We better test those too. Use the same transistions description from the primary button tests. Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/tests/test_tablet.py | 67 1 file changed, 67 insertions(+) diff --gi

Re: [PATCH v7 4/6] mm: memcg: add per-memcg zswap writeback stat

2023-11-29 Thread Johannes Weiner
On Mon, Nov 27, 2023 at 03:45:58PM -0800, Nhat Pham wrote: > From: Domenico Cerasuolo > > Since zswap now writes back pages from memcg-specific LRUs, we now need a > new stat to show writebacks count for each memcg. > > Suggested-by: Nhat Pham > Signed-off-by: Domenico Cerasuolo > Signed-off-b

[PATCH 06/12] selftests/hid: tablets: move move_to function to PenDigitizer

2023-11-29 Thread Benjamin Tissoires
We can easily subclass PenDigitizer for introducing firmware bugs when subclassing Pen is harder. Move move_to from Pen to PenDigitizer so we get that ability Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/tests/test_tablet.py | 97 1 file changed, 50

[PATCH 08/12] selftests/hid: tablets: set initial data for tilt/twist

2023-11-29 Thread Benjamin Tissoires
Avoids getting a null event when these usages are set Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/tests/test_tablet.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/hid/tests/test_tablet.py b/tools/testing/selfte

[PATCH 09/12] selftests/hid: tablets: add variants of states with buttons

2023-11-29 Thread Benjamin Tissoires
Turns out that there are transitions that are unlikely to happen: for example, having both the tip switch and a button being changed at the same time (in the same report) would require either a very talented and precise user or a very bad hardware with a very low sampling rate. So instead of manua

[PATCH 05/12] selftests/hid: tablets: move the transitions to PenState

2023-11-29 Thread Benjamin Tissoires
Those transitions have nothing to do with `Pen`, so migrate them to `PenState`. The hidden agenda is to remove `Pen` and integrate it into `PenDigitizer` so that we can tweak the events in each state to emulate firmware bugs. Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/tes

[PATCH 02/12] selftests/hid: vmtest.sh: allow finer control on the build steps

2023-11-29 Thread Benjamin Tissoires
vmtest.sh works great for a one shot test, but not so much for CI where I want to build (with different configs) the bzImage in a separate job than the one I am running it. Add a "build_only" option to specify whether we need to boot the currently built kernel in the vm. Signed-off-by: Benjamin T

[PATCH 04/12] selftests/hid: tablets: remove unused class

2023-11-29 Thread Benjamin Tissoires
Looks like this is a leftover Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/tests/test_tablet.py | 4 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/hid/tests/test_tablet.py b/tools/testing/selftests/hid/tests/test_tablet.py index 3039ee8d..cd9

[PATCH 00/12] selftests/hid: tablets fixes

2023-11-29 Thread Benjamin Tissoires
Hi, the main trigger of this series was the XP-Pen issue[0]. Basically, the tablets tests were good-ish but couldn't handle that tablet both in terms of emulation or in terms of detection of issues. So rework the tablets test a bit to be able to include the XP-Pen patch later, once I have a kerne

Re: [PATCH v7 3/6] zswap: make shrinking memcg-aware

2023-11-29 Thread Johannes Weiner
On Mon, Nov 27, 2023 at 03:45:57PM -0800, Nhat Pham wrote: > static void shrink_worker(struct work_struct *w) > { > struct zswap_pool *pool = container_of(w, typeof(*pool), > shrink_work); > + struct mem_cgroup *memcg; > int ret, failu

Re: [PATCH v7 1/6] list_lru: allows explicit memcg and NUMA node selection

2023-11-29 Thread Johannes Weiner
On Mon, Nov 27, 2023 at 03:45:55PM -0800, Nhat Pham wrote: > The interface of list_lru is based on the assumption that the list node > and the data it represents belong to the same allocated on the correct > node/memcg. While this assumption is valid for existing slab objects LRU > such as dentries

Re: [PATCH] selftests: core: include linux/close_range.h for CLOSE_RANGE_* macros

2023-11-29 Thread Muhammad Usama Anjum
Soft reminder On 10/24/23 8:51 PM, Muhammad Usama Anjum wrote: > Correct header file is needed for getting CLOSE_RANGE_* macros. > Previously it was tested with newer glibc which didn't show the need to > include the header which was a mistake. > > Fixes: ec54424923cf ("selftests: core: remove du

Re: [PATCH v6 2/6] memcontrol: allows mem_cgroup_iter() to check for onlineness

2023-11-29 Thread Michal Hocko
On Tue 28-11-23 08:53:56, Nhat Pham wrote: > On Tue, Nov 28, 2023 at 1:38 AM Michal Hocko wrote: > > > > On Mon 27-11-23 11:36:59, Nhat Pham wrote: > > > The new zswap writeback scheme requires an online-only memcg hierarchy > > > traversal. Add a new parameter to mem_cgroup_iter() to check for >

RE: [PATCH v2 0/6] IOMMUFD: Deliver IO page faults to user space

2023-11-29 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: 26 October 2023 03:49 > To: Jason Gunthorpe ; Kevin Tian ; > Joerg Roedel ; Will Deacon ; Robin > Murphy ; Jean-Philippe Brucker > ; Nicolin Chen ; Yi Liu > ; Jacob Pan > Cc: io...@lists.linux.dev; linux-kse