android_kernel_xiaomi_sm8350/drivers/infiniband/hw/ehca
Hoang-Nam Nguyen f2d9136133 IB/ehca: Use proper GFP_ flags for get_zeroed_page()
Here is a patch for ehca to use proper flag, ie. GFP_ATOMIC
resp. GFP_KERNEL, when calling get_zeroed_page() to prevent "Bug:
scheduling while atomic...". This error does not cause a kernel panic
but makes ipoib un-usable afterwards.  It is reproducible on
2.6.20-rc4 if one does ifconfig down during a flood ping test.  I have
not observed this error in earlier releases incl. 2.6.20-rc1.

This error occurs when a qp event/irq is received and ehca event
handler allocates a control block/page to obtain HCA error data block.
Use of GFP_ATOMIC when in interrupt context prevents this issue.

Signed-off-by Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-01-09 14:14:24 -08:00
..
ehca_av.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
ehca_classes_pSeries.h
ehca_classes.h
ehca_cq.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
ehca_eq.c
ehca_hca.c IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_irq.c IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_irq.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
ehca_iverbs.h IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_main.c IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_mcast.c
ehca_mrmw.c IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_mrmw.h
ehca_pd.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
ehca_qes.h
ehca_qp.c IB/ehca: Use proper GFP_ flags for get_zeroed_page() 2007-01-09 14:14:24 -08:00
ehca_reqs.c
ehca_sqp.c
ehca_tools.h IB/ehca: Fix eHCA driver compilation for uniprocessor 2006-10-30 20:52:51 -08:00
ehca_uverbs.c
hcp_if.c
hcp_if.h
hcp_phyp.c
hcp_phyp.h
hipz_fns_core.h
hipz_fns.h
hipz_hw.h IB/ehca: Use named constant for max mtu 2006-11-13 08:46:28 -08:00
ipz_pt_fn.c IB/ehca: Use WQE offset instead of WQE addr for pending work reqs 2006-11-29 15:33:08 -08:00
ipz_pt_fn.h IB/ehca: Use WQE offset instead of WQE addr for pending work reqs 2006-11-29 15:33:08 -08:00
Kconfig IB/ehca: Activate scaling code by default 2006-11-13 08:46:28 -08:00
Makefile