1. 26 5月, 2018 1 次提交
  2. 19 5月, 2018 1 次提交
  3. 16 5月, 2018 5 次提交
  4. 12 4月, 2018 2 次提交
  5. 22 2月, 2018 1 次提交
    • I
      treewide/trivial: Remove ';;$' typo noise · ed7158ba
      Ingo Molnar 提交于
      On lkml suggestions were made to split up such trivial typo fixes into per subsystem
      patches:
      
        --- a/arch/x86/boot/compressed/eboot.c
        +++ b/arch/x86/boot/compressed/eboot.c
        @@ -439,7 +439,7 @@ setup_uga32(void **uga_handle, unsigned long size, u32 *width, u32 *height)
                struct efi_uga_draw_protocol *uga = NULL, *first_uga;
                efi_guid_t uga_proto = EFI_UGA_PROTOCOL_GUID;
                unsigned long nr_ugas;
        -       u32 *handles = (u32 *)uga_handle;;
        +       u32 *handles = (u32 *)uga_handle;
                efi_status_t status = EFI_INVALID_PARAMETER;
                int i;
      
      This patch is the result of the following script:
      
        $ sed -i 's/;;$/;/g' $(git grep -E ';;$'  | grep "\.[ch]:"  | grep -vwE 'for|ia64' | cut -d: -f1 | sort | uniq)
      
      ... followed by manual review to make sure it's all good.
      
      Splitting this up is just crazy talk, let's get over with this and just do it.
      Reported-by: NPavel Machek <pavel@ucw.cz>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      ed7158ba
  6. 20 2月, 2018 1 次提交
  7. 08 12月, 2017 1 次提交
  8. 07 12月, 2017 2 次提交
  9. 05 12月, 2017 8 次提交
  10. 25 10月, 2017 1 次提交
    • M
      locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns... · 6aa7de05
      Mark Rutland 提交于
      locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE()
      
      Please do not apply this to mainline directly, instead please re-run the
      coccinelle script shown below and apply its output.
      
      For several reasons, it is desirable to use {READ,WRITE}_ONCE() in
      preference to ACCESS_ONCE(), and new code is expected to use one of the
      former. So far, there's been no reason to change most existing uses of
      ACCESS_ONCE(), as these aren't harmful, and changing them results in
      churn.
      
      However, for some features, the read/write distinction is critical to
      correct operation. To distinguish these cases, separate read/write
      accessors must be used. This patch migrates (most) remaining
      ACCESS_ONCE() instances to {READ,WRITE}_ONCE(), using the following
      coccinelle script:
      
      ----
      // Convert trivial ACCESS_ONCE() uses to equivalent READ_ONCE() and
      // WRITE_ONCE()
      
      // $ make coccicheck COCCI=/home/mark/once.cocci SPFLAGS="--include-headers" MODE=patch
      
      virtual patch
      
      @ depends on patch @
      expression E1, E2;
      @@
      
      - ACCESS_ONCE(E1) = E2
      + WRITE_ONCE(E1, E2)
      
      @ depends on patch @
      expression E;
      @@
      
      - ACCESS_ONCE(E)
      + READ_ONCE(E)
      ----
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: davem@davemloft.net
      Cc: linux-arch@vger.kernel.org
      Cc: mpe@ellerman.id.au
      Cc: shuah@kernel.org
      Cc: snitzer@redhat.com
      Cc: thor.thayer@linux.intel.com
      Cc: tj@kernel.org
      Cc: viro@zeniv.linux.org.uk
      Cc: will.deacon@arm.com
      Link: http://lkml.kernel.org/r/1508792849-3115-19-git-send-email-paulmck@linux.vnet.ibm.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      6aa7de05
  11. 20 10月, 2017 1 次提交
  12. 19 10月, 2017 1 次提交
  13. 10 10月, 2017 1 次提交
  14. 07 10月, 2017 5 次提交
  15. 30 8月, 2017 1 次提交
  16. 24 8月, 2017 1 次提交
  17. 25 5月, 2017 1 次提交
    • M
      drm/amdgpu/SRIOV:implement guilty job TDR for(V2) · 65781c78
      Monk Liu 提交于
      1,TDR will kickout guilty job if it hang exceed the threshold
      of the given one from kernel paramter "job_hang_limit", that
      way a bad command stream will not infinitly cause GPU hang.
      
      by default this threshold is 1 so a job will be kicked out
      after it hang.
      
      2,if a job timeout TDR routine will not reset all sched/ring,
      instead if will only reset on the givn one which is indicated
      by @job of amdgpu_sriov_gpu_reset, that way we don't need to
      reset and recover each sched/ring if we already know which job
      cause GPU hang.
      
      3,unblock sriov_gpu_reset for AI family.
      
      V2:
      1:put kickout guilty job after sched parked.
      2:since parking scheduler prior to kickout already occupies a
      while, we can do last check on the in question job before
      doing hw_reset.
      
      TODO:
      1:when a job is considered as guilty, we should mark some flag
      in its fence status flag, and let UMD side aware that this
      fence signaling is not due to job complete but job hang.
      
      2:if gpu reset cause all video memory lost, we need introduce
      a new policy to implement TDR, like drop all jobs not yet
      signaled, and all IOCTL on this device will return ERROR
      DEVICE_LOST.
      this will be implemented later.
      Signed-off-by: NMonk Liu <Monk.Liu@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      65781c78
  18. 11 5月, 2017 2 次提交
  19. 29 4月, 2017 1 次提交
    • C
      drm/amdgpu: fix NULL pointer error · a6bef67e
      Chunming Zhou 提交于
      [  141.420491] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
      [  141.420532] IP: [<ffffffff81579ee1>] fence_remove_callback+0x11/0x60
      [  141.420563] PGD 20a030067
      [  141.420575] PUD 2088ca067
      [  141.420587] PMD 0
      
      [  141.420599] Oops: 0000 [#1] SMP
      [  141.420612] Modules linked in: amdgpu(OE) ttm(OE) drm_kms_helper(E) drm(E) i2c_algo_bit(E) fb_sys_fops(E) syscopyarea(E) sysfillrect(E) sysimgblt(E) rpcsec_gss_krb5(E) nfsv4(E) nfs(E) fscache(E) eeepc_wmi(E) asus_wmi(E) sparse_keymap(E) snd_hda_codec_realtek(E) video(E) snd_hda_codec_generic(E) snd_hda_codec_hdmi(E) snd_hda_intel(E) joydev(E) snd_hda_codec(E) snd_seq_midi(E) snd_seq_midi_event(E) snd_hda_core(E) snd_hwdep(E) snd_rawmidi(E) snd_pcm(E) kvm(E) irqbypass(E) crct10dif_pclmul(E) snd_seq(E) crc32_pclmul(E) ghash_clmulni_intel(E) snd_seq_device(E) snd_timer(E) aesni_intel(E) aes_x86_64(E) lrw(E) gf128mul(E) glue_helper(E) ablk_helper(E) cryptd(E) snd(E) soundcore(E) serio_raw(E) shpchp(E) i2c_piix4(E) i2c_designware_platform(E) 8250_dw(E) i2c_designware_core(E) mac_hid(E) binfmt_misc(E)
      [  141.420948]  nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sunrpc(E) parport_pc(E) ppdev(E) lp(E) parport(E) autofs4(E) hid_generic(E) usbhid(E) hid(E) psmouse(E) r8169(E) ahci(E) mii(E) libahci(E) wmi(E)
      [  141.421042] CPU: 14 PID: 223 Comm: kworker/14:2 Tainted: G           OE   4.9.0-custom #4
      [  141.421074] Hardware name: System manufacturer System Product Name/PRIME B350-PLUS, BIOS 0606 04/06/2017
      [  141.421146] Workqueue: events amd_sched_job_timedout [amdgpu]
      [  141.421169] task: ffff88020b03ba80 task.stack: ffffc900016f4000
      [  141.421193] RIP: 0010:[<ffffffff81579ee1>]  [<ffffffff81579ee1>] fence_remove_callback+0x11/0x60
      [  141.421229] RSP: 0018:ffffc900016f7d30  EFLAGS: 00010202
      [  141.421250] RAX: ffff8801c049fc00 RBX: ffff8801d4d8dc00 RCX: 0000000000000000
      [  141.421278] RDX: 0000000000000001 RSI: ffff8801c049fcc0 RDI: 0000000000000000
      [  141.421307] RBP: ffffc900016f7d48 R08: 0000000000000000 R09: 0000000000000000
      [  141.421334] R10: 00000020ed512a30 R11: 0000000000000001 R12: 0000000000000000
      [  141.421362] R13: ffff880209ba4ba0 R14: ffff880209ba4c58 R15: ffff8801c055cc60
      [  141.421390] FS:  0000000000000000(0000) GS:ffff88021ef80000(0000) knlGS:0000000000000000
      [  141.421421] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  141.421443] CR2: 0000000000000030 CR3: 000000020b554000 CR4: 00000000003406e0
      [  141.421471] Stack:
      [  141.421480]  ffff8801d4d8dc00 ffff880209ba4c48 ffff880209ba4ba0 ffffc900016f7d78
      [  141.421513]  ffffffffa0697920 ffff880209ba0000 0000000000000000 ffff880209ba2770
      [  141.421549]  ffff880209ba4b08 ffffc900016f7df0 ffffffffa05ce2ae ffffffffa0509eb7
      [  141.421583] Call Trace:
      [  141.421628]  [<ffffffffa0697920>] amd_sched_hw_job_reset+0x50/0xb0 [amdgpu]
      [  141.421676]  [<ffffffffa05ce2ae>] amdgpu_gpu_reset+0x8e/0x690 [amdgpu]
      [  141.421712]  [<ffffffffa0509eb7>] ? drm_printk+0x97/0xa0 [drm]
      [  141.421770]  [<ffffffffa0698156>] amdgpu_job_timedout+0x46/0x50 [amdgpu]
      [  141.421829]  [<ffffffffa0696a07>] amd_sched_job_timedout+0x17/0x20 [amdgpu]
      [  141.421859]  [<ffffffff81095493>] process_one_work+0x153/0x3f0
      [  141.421884]  [<ffffffff81095c5b>] worker_thread+0x12b/0x4b0
      [  141.421907]  [<ffffffff81095b30>] ? rescuer_thread+0x350/0x350
      [  141.421931]  [<ffffffff8109b423>] kthread+0xd3/0xf0
      [  141.421951]  [<ffffffff8109b350>] ? kthread_park+0x60/0x60
      [  141.421975]  [<ffffffff817e1ee5>] ret_from_fork+0x25/0x30
      [  141.421996] Code: ac 81 e8 a3 1f b0 ff 48 c7 c0 ea ff ff ff e9 48 ff ff ff 0f 1f 80 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 55 41 54 49 89 fc 53 <48> 8b 7f 30 48 89 f3 e8 73 7c 26 00 48 8b 13 48 39 d3 41 0f 95
      [  141.422156] RIP  [<ffffffff81579ee1>] fence_remove_callback+0x11/0x60
      [  141.422183]  RSP <ffffc900016f7d30>
      [  141.422197] CR2: 0000000000000030
      [  141.433483] ---[ end trace bc0949bf7ddd6d4b ]---
      
      if the job is reset twice, then the parent could be NULL.
      Signed-off-by: NChunming Zhou <David1.Zhou@amd.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      a6bef67e
  20. 30 3月, 2017 2 次提交
  21. 02 3月, 2017 1 次提交