Re: [PATCH v7 3/7] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-04-01 Thread Xi Ruoyao
l these years). I do agree maybe it's the time to move away from MIPS legacy and be more similar to RISC-V etc now... In Glibc we can condition __SYSCALL_CLOBBERS with #if __LINUX_KERNEL_VERSION > xxx to take the advantage. Huacai, Xuerui, how do you think? -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [PATCH v7 3/7] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-04-01 Thread Xi Ruoyao
sure if it's worthy to violate Huacai's "keep things simple" aspiration though. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [PATCH v5 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-02-27 Thread Xi Ruoyao
SR method since the > small CSR ID range. However it is easy for cpucfg. Here I doubt whether > you really know about LoongArch LVZ. It's unfair to accuse the others for not knowing about LVZ considering the lack of public documentation. -- Xi Ruoyao School of Aerospace Science and Tec

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-30 Thread Xi Ruoyao
On 2021-03-30 15:24 +0200, Christian König wrote: > Am 30.03.21 um 15:23 schrieb Dan Horák: > > On Tue, 30 Mar 2021 21:09:12 +0800 > > Xi Ruoyao wrote: > > > > > On 2021-03-30 21:02 +0800, Xi Ruoyao wrote: > > > > On 2021-03-30 14:55 +0200, Chr

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-30 Thread Xi Ruoyao
On 2021-03-30 21:02 +0800, Xi Ruoyao wrote: > On 2021-03-30 14:55 +0200, Christian König wrote: > > > > I rather see this as a kernel bug. Can you test if this code fragment > > fixes your issue: > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-30 Thread Xi Ruoyao
On 2021-03-30 14:55 +0200, Christian König wrote: > Am 30.03.21 um 14:04 schrieb Xi Ruoyao: > > On 2021-03-30 03:40 +0800, Xi Ruoyao wrote: > > > On 2021-03-29 21:36 +0200, Christian König wrote: > > > > Am 29.03.21 um 21:27 schrieb Xi Ruoyao: > > > > &g

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-30 Thread Xi Ruoyao
On 2021-03-30 03:40 +0800, Xi Ruoyao wrote: > On 2021-03-29 21:36 +0200, Christian König wrote: > > Am 29.03.21 um 21:27 schrieb Xi Ruoyao: > > > Hi Christian, > > > > > > I don't think there is any constraint implemented to ensure `num_entries % >

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-29 Thread Xi Ruoyao
On 2021-03-29 21:36 +0200, Christian König wrote: > Am 29.03.21 um 21:27 schrieb Xi Ruoyao: > > Hi Christian, > > > > I don't think there is any constraint implemented to ensure `num_entries % > > AMDGPU_GPU_PAGES_IN_CPU_PAGE == 0`.  For ex

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-29 Thread Xi Ruoyao
last - mapping->start + 1) % AMDGPU_GPU_PAGES_IN_CPU_PAGE == 0, then we should replace "AMDGPU_GPU_PAGE_MASK" in "validate the parameters" with "PAGE_MASK". I tried it and it broke userspace: Xorg startup fails with EINVAL with this change. On 2021-03-30 02:30 +

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-29 Thread Xi Ruoyao
On 2021-03-30 02:21 +0800, Xi Ruoyao wrote: > On 2021-03-29 20:10 +0200, Christian König wrote: > > You need to identify the root cause of this, most likely start or last > > are not a multiple of AMDGPU_GPU_PAGES_IN_CPU_PAGE. > > I printk'ed the value of start & last

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-29 Thread Xi Ruoyao
ues/1549 > > > > Fixes: a39f2a8d7066 ("drm/amdgpu: nuke amdgpu_vm_bo_split_mapping v2") > > > > Reported-by: Xi Ruoyao > > > > Reported-by: Dan Horák > > > > Cc: sta...@vger.kernel.org > > > > Signed-off-by: Xi Ruoyao > > > > -

Re: [PATCH] drm/amdgpu: fix an underflow on non-4KB-page systems

2021-03-29 Thread Xi Ruoyao
t; from gtk3-demo (which just renders a triangle with GL) under Xorg, on MIPS64. See the BugLink. > Christian. > > > > > BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1549 > > Fixes: a39f2a8d7066 ("drm/amdgpu: nuke amdgpu_vm_bo_split_mapping v2") > &g

Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols

2021-02-12 Thread Xi Ruoyao
Hi Greg and Nick, On 2021-02-11 10:46 -0800, Nick Desaulniers wrote: > On Thu, Feb 11, 2021 at 5:55 AM Greg Kroah-Hartman > wrote: > > > > On Thu, Feb 11, 2021 at 09:32:03PM +0800, Xi Ruoyao wrote: > > > Hi all, > > > > > > The latest GNU assembler

Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols

2021-02-11 Thread Xi Ruoyao
eloc->sym = find_symbol_containing(insn_sec, > -  insn_off - 1); > -       } > -   if (!reloc->sym) { > -   WARN("missing symbol for insn at offset 0x%lx\n", > -    insn_off); > -   return -1; > -   } > - > -   reloc->addend = insn_off - reloc->sym->offset; > +   insn_to_reloc_sym_addend(insn_sec, insn_off, reloc); > +   if (!reloc->sym) { > +   WARN("missing symbol for insn at offset 0x%lx", > +    insn_off); > +   return -1; > } >   > reloc->type = R_X86_64_PC32; -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [GIT PULL] x86/topology changes for v5.3

2019-07-10 Thread Xi Ruoyao
On 2019-07-10 17:13 +0200, Thomas Gleixner wrote: > Something like the below. Builds and boots, must be perfect. > > Thanks, > > tglx Tested-by: Xi Ruoyao > 8< > > arch/x86/include/asm/processor.h |1 > arch/x86/incl

Re: [GIT PULL] x86/topology changes for v5.3

2019-07-10 Thread Xi Ruoyao
me time though, it sort of destroys the original intent of Kees' > patch, right? The exploits will just have to call static_key_disable() > prior to calling native_write_cr4() again, and the protection is gone. I think I should do some study and try to understand the full story of Kees' change... -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [GIT PULL] x86/topology changes for v5.3

2019-07-10 Thread Xi Ruoyao
seems the MMU (I guess ?) allows to read it, but disallows to write it: "supervisor write access in kernel mode". -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [GIT PULL] x86/topology changes for v5.3

2019-07-10 Thread Xi Ruoyao
n "fix" it (apprently). -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [GIT PULL] x86/topology changes for v5.3

2019-07-10 Thread Xi Ruoyao
(X86_CR4_SMEP | X86_CR4_SMAP); > cr4_pinned_bits = this_cpu_read(cpu_tlbstate.cr4) & mask; > static_key_enable(_pinning.key); > } I'll try it. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

[PATCH RFC] mm: memcontrol: add cgroup v2 interface to read memory watermark

2019-06-15 Thread Xi Ruoyao
Introduce a control file memory.watermark showing the watermark consumption of the cgroup and its descendants, in bytes. Signed-off-by: Xi Ruoyao --- mm/memcontrol.c | 12 1 file changed, 12 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ba9138a4a1de

Re: [PATCH] Kbuild: fix mismatched if/endif pairs

2018-06-17 Thread Xi Ruoyao
On 2018-06-17 18:16 +0800, Xi Ruoyao wrote: > In scripts/Makefile.build, there are two mismatched if/endif pairs. > They stop the generation of orc unwind table if CONFIG_FTRACE_MCOUNT_RECORD > is not set. dmesg complains: Duplication of patch 10455267 in patchwork. Sorry

Re: [PATCH] Kbuild: fix mismatched if/endif pairs

2018-06-17 Thread Xi Ruoyao
On 2018-06-17 18:16 +0800, Xi Ruoyao wrote: > In scripts/Makefile.build, there are two mismatched if/endif pairs. > They stop the generation of orc unwind table if CONFIG_FTRACE_MCOUNT_RECORD > is not set. dmesg complains: Duplication of patch 10455267 in patchwork. Sorry

[PATCH] Kbuild: fix mismatched if/endif pairs

2018-06-17 Thread Xi Ruoyao
pairs. Signed-off-by: Xi Ruoyao --- scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 34d9e9ce97c2..16509a038d77 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -239,6 +239,7

[PATCH] Kbuild: fix mismatched if/endif pairs

2018-06-17 Thread Xi Ruoyao
pairs. Signed-off-by: Xi Ruoyao --- scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 34d9e9ce97c2..16509a038d77 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -239,6 +239,7

[PATCH RESEND] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-28 Thread Xi Ruoyao
probe them. To resolve this, specify generic Bluetooth device in the USB device table by matching Interface Descriptor, to probe all devices with Bluetooth interface including these "Miscellaneous" ones. Signed-off-by: Xi Ruoyao --- The Bluetooth USB driver changed a lot since 4.1 released.

[PATCH RESEND] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-28 Thread Xi Ruoyao
. To resolve this, specify generic Bluetooth device in the USB device table by matching Interface Descriptor, to probe all devices with Bluetooth interface including these Miscellaneous ones. Signed-off-by: Xi Ruoyao xry...@outlook.com --- The Bluetooth USB driver changed a lot since 4.1 released. However

[PATCH] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-22 Thread Xi Ruoyao
probe them. To resolve this, specify generic Bluetooth device in the USB device table by matching Interface Descriptor, to probe all devices with Bluetooth interface including these "Miscellaneous" ones. Signed-off-by: Xi Ruoyao --- drivers/bluetooth/btusb.c | 2 +- 1 file changed, 1 inse

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-22 Thread Xi Ruoyao
send a patch which would modify the generic USB BT device entry in the device table to resolve this. You can choose one of the two patches since they both make the BT works at least on my tablet. If there are other alternate patches, I can help to test them. -- Xi Ruoyao School of Aerospace

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-22 Thread Xi Ruoyao
723AU USB device, with product ID 0bda:1724. Signed-off-by: Xi Ruoyao --- drivers/bluetooth/btusb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3c10d4d..dd87623 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @

[PATCH] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-22 Thread Xi Ruoyao
. To resolve this, specify generic Bluetooth device in the USB device table by matching Interface Descriptor, to probe all devices with Bluetooth interface including these Miscellaneous ones. Signed-off-by: Xi Ruoyao xry...@outlook.com --- drivers/bluetooth/btusb.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-22 Thread Xi Ruoyao
send a patch which would modify the generic USB BT device entry in the device table to resolve this. You can choose one of the two patches since they both make the BT works at least on my tablet. If there are other alternate patches, I can help to test them. -- Xi Ruoyao School of Aerospace

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-22 Thread Xi Ruoyao
, with product ID 0bda:1724. Signed-off-by: Xi Ruoyao xry...@outlook.com --- drivers/bluetooth/btusb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3c10d4d..dd87623 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
On 06/21/2015 12:11 PM, Xi Ruoyao wrote: On 06/21/2015 09:12 AM, Larry Finger wrote: On 06/20/2015 04:58 PM, Marcel Holtmann wrote: Hi Xi, In 'commit a2698a9bf9b0 ("Bluetooth: btusb: Add Realtek 8723A/8723B/8761A/8821A support"), support of some Realtek devices was added to t

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
ovo Ideapad Yoga 13 which has RTL8723AU USB device, with product ID 0bda:1724. Signed-off-by: Xi Ruoyao --- drivers/bluetooth/btusb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3c10d4d..dd87623 100644 --- a/drivers/bluetoo

[PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
hem at all. To fix this, add four entries in the device table btusb_table, based on code from <https://github.com/lwfinger/rtl8723au_bt> ('new' branch). This enables bluetooth support in the Lenovo Ideapad Yoga 13 which has RTL8723AU USB device, with product ID 0bda:1724. Signed-off-by: Xi Ruoy

[PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
. To fix this, add four entries in the device table btusb_table, based on code from https://github.com/lwfinger/rtl8723au_bt ('new' branch). This enables bluetooth support in the Lenovo Ideapad Yoga 13 which has RTL8723AU USB device, with product ID 0bda:1724. Signed-off-by: Xi Ruoyao xry...@outlook.com

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
which has RTL8723AU USB device, with product ID 0bda:1724. Signed-off-by: Xi Ruoyao xry...@outlook.com --- drivers/bluetooth/btusb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3c10d4d..dd87623 100644 --- a/drivers/bluetooth

Re: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table

2015-06-20 Thread Xi Ruoyao
On 06/21/2015 12:11 PM, Xi Ruoyao wrote: On 06/21/2015 09:12 AM, Larry Finger wrote: On 06/20/2015 04:58 PM, Marcel Holtmann wrote: Hi Xi, In 'commit a2698a9bf9b0 (Bluetooth: btusb: Add Realtek 8723A/8723B/8761A/8821A support), support of some Realtek devices was added to the Generic

Re: [Intel-gfx] [git pull] drm fixes

2015-03-26 Thread Xi Ruoyao
On 03/26/2015 at 07:32 AM, Xi Ruoyao wrote: On 03/26/2015 at 03:40 AM, Josh Boyer wrote: drm-Fixup-racy-refcounting-in-plane_force_disable.patch drm-i915-Don-t-try-to-reference-the-fb-in-get_initia.patch and this patch: I hide the patch since it has been managled by Thunderbird. (BTW, who

Re: [Intel-gfx] [git pull] drm fixes

2015-03-26 Thread Xi Ruoyao
On 03/26/2015 at 07:32 AM, Xi Ruoyao wrote: On 03/26/2015 at 03:40 AM, Josh Boyer wrote: drm-Fixup-racy-refcounting-in-plane_force_disable.patch drm-i915-Don-t-try-to-reference-the-fb-in-get_initia.patch and this patch: I hide the patch since it has been managled by Thunderbird. (BTW, who

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
On 03/26/2015 at 07:32 AM, Xi Ruoyao wrote: 在 03/26/2015 03:40 AM, Josh Boyer 写道: Sorry for these Chinese charactor. Thunderbird generated them and I forgot to change. On Wed, Mar 25, 2015 at 01:37:41PM -0400, Josh Boyer wrote: Yeah that fail looks like we're freeing an fb that's still

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
"drm/i915: Fixup legacy plane->crtc link for initial fb config" which you just sent out. I think that covers everything. josh I've got an HDMI device from the laboratory. I'll help to test the solution. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University, X

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
On 03/25/2015 at 10:56 PM, Xi Ruoyao wrote: On 03/25/2015 at 10:00 PM, Daniel Vetter wrote: On Wed, Mar 25, 2015 at 09:11:17AM -0400, Josh Boyer wrote: On Wed, Mar 25, 2015 at 4:54 AM, Daniel Vetter wrote: commit f55548b5af87ebfc586ca75748947f1c1b1a4a52 Author: Damien Lespiau Date: Thu

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
check it and end this mess... It's annoying to see my code caused so much trouble. I didn't test my code with a HDMI device or I should've found this trouble before commiting. I apologize for that again. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University, Xi'an, China -- To

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
On 03/25/2015 at 10:56 PM, Xi Ruoyao wrote: On 03/25/2015 at 10:00 PM, Daniel Vetter wrote: On Wed, Mar 25, 2015 at 09:11:17AM -0400, Josh Boyer wrote: On Wed, Mar 25, 2015 at 4:54 AM, Daniel Vetter dan...@ffwll.ch wrote: commit f55548b5af87ebfc586ca75748947f1c1b1a4a52 Author: Damien

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
and Stephen please check it and end this mess... It's annoying to see my code caused so much trouble. I didn't test my code with a HDMI device or I should've found this trouble before commiting. I apologize for that again. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
On 03/26/2015 at 07:32 AM, Xi Ruoyao wrote: 在 03/26/2015 03:40 AM, Josh Boyer 写道: Sorry for these Chinese charactor. Thunderbird generated them and I forgot to change. On Wed, Mar 25, 2015 at 01:37:41PM -0400, Josh Boyer wrote: Yeah that fail looks like we're freeing an fb that's still

Re: [Intel-gfx] [git pull] drm fixes

2015-03-25 Thread Xi Ruoyao
from the laboratory. I'll help to test the solution. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University, Xi'an, China -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [Intel-gfx] [git pull] drm fixes

2015-03-24 Thread Xi Ruoyao
:32 AM, Daniel Vetter wrote: On Mon, Mar 23, 2015 at 02:34:27PM -0400, Josh Boyer wrote: On Mon, Mar 23, 2015 at 11:33 AM, Josh Boyer wrote: Xi Ruoyao (1): drm/i915: Ensure plane->state->fb stays in sync with plane->fb Turns out to be that commit. git bisect start 'driver

Re: [Intel-gfx] [git pull] drm fixes

2015-03-24 Thread Xi Ruoyao
wrote: On Tue, Mar 24, 2015 at 09:15:32AM -0400, Josh Boyer wrote: On Tue, Mar 24, 2015 at 3:32 AM, Daniel Vetter dan...@ffwll.ch wrote: On Mon, Mar 23, 2015 at 02:34:27PM -0400, Josh Boyer wrote: On Mon, Mar 23, 2015 at 11:33 AM, Josh Boyer jwbo...@fedoraproject.org wrote: snip Xi Ruoyao (1

Re: linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2015-03-16 Thread Xi Ruoyao
_set_fb_for_plane since the logic of Matt's code is duplicated with drm_atomic_set_fb_for_plane. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University, Xi'an, China -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2015-03-16 Thread Xi Ruoyao
with drm_atomic_set_fb_for_plane. -- Xi Ruoyao School of Aerospace Science and Technology Xidian University, Xi'an, China -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH v2] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-12 Thread Xi Ruoyao
On 03/12/2015 04:28 PM, Jani Nikula wrote: On Thu, 12 Mar 2015, Xi Ruoyao wrote: In intel_crtc_page_flip, intel_display.c, the code changed the framebuffer assigned to plane crtc->primary by crtc->primary->fb = fb; However, it forgot to change crtc->primary->state->fb

[PATCH v2] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-12 Thread Xi Ruoyao
ary->state->fb to get the framebuffer assigned to crtc->primaty. Then a framebuffer object can be unpinned twice and a kernel BUG will be produced in i915_gem.c. So, update crtc->primary->state->fb in intel_display.c using drm_atomic_set_fb_for_plane to fix the BUG. Signed-off

Re: [PATCH v2] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-12 Thread Xi Ruoyao
On 03/12/2015 04:28 PM, Jani Nikula wrote: On Thu, 12 Mar 2015, Xi Ruoyao xry...@outlook.com wrote: In intel_crtc_page_flip, intel_display.c, the code changed the framebuffer assigned to plane crtc-primary by crtc-primary-fb = fb; However, it forgot to change crtc-primary-state-fb. However

[PATCH v2] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-12 Thread Xi Ruoyao
assigned to crtc-primaty. Then a framebuffer object can be unpinned twice and a kernel BUG will be produced in i915_gem.c. So, update crtc-primary-state-fb in intel_display.c using drm_atomic_set_fb_for_plane to fix the BUG. Signed-off-by: Xi Ruoyao xry...@outlook.com Fixed: Bug 93711 https

[PATCH 1/1] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-10 Thread Xi Ruoyao
ary->state->fb to get the framebuffer assigned to crtc->primaty. Then a framebuffer object can be unpinned twice and a kernel BUG will be produced in i915_gem.c. So, update crtc->primary->state->fb in intel_display.c using drm_atomic_set_fb_for_plane to fix the BUG. Signed-off-b

[PATCH 1/1] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-10 Thread Xi Ruoyao
assigned to crtc-primaty. Then a framebuffer object can be unpinned twice and a kernel BUG will be produced in i915_gem.c. So, update crtc-primary-state-fb in intel_display.c using drm_atomic_set_fb_for_plane to fix the BUG. Signed-off-by: Xi Ruoyao xry...@outlook.com --- drivers/gpu/drm/i915