diff --git a/patches.suse/drm-nouveau-blacklist-Turing-and-Ampere-models-as-default.patch b/patches.suse/drm-nouveau-blacklist-Turing-and-Ampere-models-as-default.patch index 425b88f..828403e 100644 --- a/patches.suse/drm-nouveau-blacklist-Turing-and-Ampere-models-as-default.patch +++ b/patches.suse/drm-nouveau-blacklist-Turing-and-Ampere-models-as-default.patch @@ -14,8 +14,8 @@ Signed-off-by: Takashi Iwai --- drivers/gpu/drm/nouveau/nouveau_blacklist.c | 186 ++++++++++++++++++++++++++++ - drivers/gpu/drm/nouveau/nouveau_drm.c | 35 +++++ - 2 files changed, 221 insertions(+) + drivers/gpu/drm/nouveau/nouveau_drm.c | 34 +++++ + 2 files changed, 220 insertions(+) --- /dev/null +++ b/drivers/gpu/drm/nouveau/nouveau_blacklist.c @@ -220,7 +220,7 @@ Signed-off-by: Takashi Iwai static struct drm_driver driver_stub; static struct drm_driver driver_pci; static struct drm_driver driver_platform; -@@ -741,6 +746,33 @@ static void quirk_broken_nv_runpm(struct +@@ -741,6 +746,32 @@ static void quirk_broken_nv_runpm(struct } } @@ -229,7 +229,6 @@ Signed-off-by: Takashi Iwai +static bool nouveau_probe_is_blacklisted(struct pci_dev *pdev) +{ + const u16 *p; -+ u16 val; + + if (pdev->vendor != PCI_VENDOR_ID_NVIDIA) + return false; @@ -254,7 +253,7 @@ Signed-off-by: Takashi Iwai static int nouveau_drm_probe(struct pci_dev *pdev, const struct pci_device_id *pent) { -@@ -748,6 +780,9 @@ static int nouveau_drm_probe(struct pci_ +@@ -748,6 +779,9 @@ static int nouveau_drm_probe(struct pci_ struct drm_device *drm_dev; int ret; diff --git a/patches.suse/tracing-Fix-poll-and-select-do-not-work-on-per_cpu-trace_pipe-and-trace_pipe_raw.patch b/patches.suse/tracing-Fix-poll-and-select-do-not-work-on-per_cpu-trace_pipe-and-trace_pipe_raw.patch new file mode 100644 index 0000000..7bec459 --- /dev/null +++ b/patches.suse/tracing-Fix-poll-and-select-do-not-work-on-per_cpu-trace_pipe-and-trace_pipe_raw.patch @@ -0,0 +1,55 @@ +From: Shiju Jose +Date: Thu, 2 Feb 2023 18:23:09 +0000 +Subject: tracing: Fix poll() and select() do not work on per_cpu trace_pipe + and trace_pipe_raw +Git-commit: 3e46d910d8acf94e5360126593b68bf4fee4c4a1 +Patch-mainline: v6.2-rc8 +References: git-fixes, bsc#1209841 + +poll() and select() on per_cpu trace_pipe and trace_pipe_raw do not work +since kernel 6.1-rc6. This issue is seen after the commit +42fb0a1e84ff525ebe560e2baf9451ab69127e2b ("tracing/ring-buffer: Have +polling block on watermark"). + +This issue is firstly detected and reported, when testing the CXL error +events in the rasdaemon and also erified using the test application for poll() +and select(). + +This issue occurs for the per_cpu case, when calling the ring_buffer_poll_wait(), +in kernel/trace/ring_buffer.c, with the buffer_percent > 0 and then wait until the +percentage of pages are available. The default value set for the buffer_percent is 50 +in the kernel/trace/trace.c. + +As a fix, allow userspace application could set buffer_percent as 0 through +the buffer_percent_fops, so that the task will wake up as soon as data is added +to any of the specific cpu buffer. + +Link: https://lore.kernel.org/linux-trace-kernel/20230202182309.742-2-shiju.jose@huawei.com + +Cc: +Cc: +Cc: +Cc: stable@vger.kernel.org +Fixes: 42fb0a1e84ff5 ("tracing/ring-buffer: Have polling block on watermark") +Signed-off-by: Shiju Jose +Signed-off-by: Steven Rostedt (Google) +Acked-by: Petr Pavlu +--- + kernel/trace/trace.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c +index 78ed5f1baa8c..c9e40f692650 100644 +--- a/kernel/trace/trace.c ++++ b/kernel/trace/trace.c +@@ -9148,9 +9148,6 @@ buffer_percent_write(struct file *filp, const char __user *ubuf, + if (val > 100) + return -EINVAL; + +- if (!val) +- val = 1; +- + tr->buffer_percent = val; + + (*ppos)++; + diff --git a/series.conf b/series.conf index 33a2798..2675d38 100644 --- a/series.conf +++ b/series.conf @@ -36899,6 +36899,7 @@ patches.suse/VMCI-Use-threaded-irqs-instead-of-tasklets.patch patches.suse/module-Don-t-wait-for-GOING-modules.patch patches.suse/netlink-prevent-potential-spectre-v1-gadgets.patch + patches.suse/tracing-Fix-poll-and-select-do-not-work-on-per_cpu-trace_pipe-and-trace_pipe_raw.patch patches.suse/rds-rds_rm_zerocopy_callback-use-list_first_entry.patch patches.suse/Fix-page-corruption-caused-by-racy-check-in-__free_pages.patch patches.suse/net-sched-tcindex-update-imperfect-hash-filters-resp.patch