1. 04 9月, 2015 1 次提交
  2. 06 5月, 2015 1 次提交
    • J
      ipmi: Remove incorrect use of seq_has_overflowed · 5e33cd0c
      Joe Perches 提交于
      commit d6c5dc18 ("ipmi: Remove uses of return value of seq_printf")
      incorrectly changed the return value of various proc_show functions
      to use seq_has_overflowed().
      
      These functions should return 0 on completion rather than 1/true
      on overflow.  1 is the same as #define SEQ_SKIP which would cause
      the output to not be emitted (skipped) instead.
      
      This is a logical defect only as the length of these outputs are
      all smaller than the initial allocation done by the seq filesystem.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      5e33cd0c
  3. 20 2月, 2015 4 次提交
  4. 22 12月, 2014 1 次提交
    • C
      ipmi: Finish cleanup of BMC attributes · 9c633317
      Corey Minyard 提交于
      The previous cleanup of BMC attributes left a few holes, and if
      you run with lockdep debugging with a BMC with the proper attributes,
      you could get a warning.
      
      This patch removes all the unused attributes from the BMC structure,
      since they are all declared in the .data section now.  It makes
      the attributes all static.  It fixes the referencing of the
      attributes in a couple of cases that dynamically added the files
      depending on BMC information.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Cc: Huang Ying <ying.huang@intel.com>
      Tested-by: NAlexei Starovoitov <ast@plumgrid.com>
      9c633317
  5. 12 12月, 2014 9 次提交
  6. 08 10月, 2014 1 次提交
  7. 18 4月, 2014 2 次提交
    • C
      ipmi: boolify some things · 7aefac26
      Corey Minyard 提交于
      Convert some ints to bools.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7aefac26
    • C
      ipmi: Turn off all activity on an idle ipmi interface · 89986496
      Corey Minyard 提交于
      The IPMI driver would wake up periodically looking for events and
      watchdog pretimeouts.  If there is nothing waiting for these events,
      it's really kind of pointless to be checking for them.  So modify the
      driver so the message handler can pass down if it needs the lower layer
      to be waiting for these.  Modify the system interface lower layer to
      turn off all timer and thread activity if the upper layer doesn't need
      anything and it is not currently handling messages.  And modify the
      message handler to not restart the timer if its timer is not needed.
      
      The timers and kthread will still be enabled if:
       - the SI interface is handling a message.
       - a user has enabled watching for events.
       - the IPMI watchdog timer is in use (since it uses pretimeouts).
       - the message handler is waiting on a remote response.
       - a user has registered to receive commands.
      
      This mostly affects interfaces without interrupts.  Interfaces with
      interrupts already don't use CPU in the system interface when the
      interface is idle.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      89986496
  8. 05 9月, 2013 1 次提交
  9. 17 5月, 2013 1 次提交
  10. 02 5月, 2013 1 次提交
  11. 10 4月, 2013 1 次提交
    • A
      procfs: new helper - PDE_DATA(inode) · d9dda78b
      Al Viro 提交于
      The only part of proc_dir_entry the code outside of fs/proc
      really cares about is PDE(inode)->data.  Provide a helper
      for that; static inline for now, eventually will be moved
      to fs/proc, along with the knowledge of struct proc_dir_entry
      layout.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d9dda78b
  12. 19 11月, 2012 1 次提交
  13. 17 10月, 2012 1 次提交
  14. 29 3月, 2012 3 次提交
  15. 27 5月, 2011 1 次提交
  16. 14 12月, 2010 1 次提交
    • Z
      IPMI: Add one interface to get more info of low-level IPMI device · 16f4232c
      Zhao Yakui 提交于
      The IPMI smi_watcher will be used to catch the IPMI interface as they
      come or go.  In order to communicate with the correct IPMI device, it
      should be confirmed whether it is what we wanted especially on the
      system with multiple IPMI devices. But the new_smi callback function
      of smi_watcher provides very limited info(only the interface number
      and dev pointer) and there is no detailed info about the low level
      interface. For example: which mechansim registers the IPMI
      interface(ACPI, PCI, DMI and so on).
      
      This is to add one interface that can get more info of low-level IPMI
      device. For example: the ACPI device handle will be returned for the
      pnp_acpi IPMI device.
      Signed-off-by: NZhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      16f4232c
  17. 28 10月, 2010 1 次提交
  18. 28 5月, 2010 2 次提交
  19. 19 3月, 2010 1 次提交
  20. 05 10月, 2009 1 次提交
  21. 22 5月, 2009 1 次提交
    • C
      ipmi: fix ipmi_si modprobe hang · 9a2845c4
      Corey Minyard 提交于
      Instead of queuing IPMB messages before channel initialization, just
      throw them away.  Nobody will be listening for them at this point,
      anyway, and they will clog up the queue and nothing will be delivered
      if we queue them.
      
      Also set the current channel to the number of channels, as this value
      is used to tell if the channel information has been initialized.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Cc: Ferenc Wagner <wferi@niif.hu>
      Cc: Dan Frazier <dannf@hp.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9a2845c4
  22. 22 4月, 2009 2 次提交
  23. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  24. 13 11月, 2008 1 次提交