.. | .. |
---|
1417 | 1417 | * |
---|
1418 | 1418 | * The exact combo of LEDs if on is true is determined by looking |
---|
1419 | 1419 | * at the ibcstatus. |
---|
1420 | | - |
---|
1421 | 1420 | * These LEDs indicate the physical and logical state of IB link. |
---|
1422 | 1421 | * For this chip (at least with recommended board pinouts), LED1 |
---|
1423 | 1422 | * is Yellow (logical state) and LED2 is Green (physical state), |
---|
.. | .. |
---|
1884 | 1883 | qib_write_kreg(dd, kr_scratch, 0xfeeddeaf); |
---|
1885 | 1884 | writel(pa, tidp32); |
---|
1886 | 1885 | qib_write_kreg(dd, kr_scratch, 0xdeadbeef); |
---|
1887 | | - mmiowb(); |
---|
1888 | 1886 | spin_unlock_irqrestore(tidlockp, flags); |
---|
1889 | 1887 | } |
---|
1890 | 1888 | |
---|
.. | .. |
---|
1928 | 1926 | pa |= 2 << 29; |
---|
1929 | 1927 | } |
---|
1930 | 1928 | writel(pa, tidp32); |
---|
1931 | | - mmiowb(); |
---|
1932 | 1929 | } |
---|
1933 | 1930 | |
---|
1934 | 1931 | |
---|
.. | .. |
---|
2053 | 2050 | { |
---|
2054 | 2051 | if (updegr) |
---|
2055 | 2052 | qib_write_ureg(rcd->dd, ur_rcvegrindexhead, egrhd, rcd->ctxt); |
---|
2056 | | - mmiowb(); |
---|
2057 | 2053 | qib_write_ureg(rcd->dd, ur_rcvhdrhead, hd, rcd->ctxt); |
---|
2058 | | - mmiowb(); |
---|
2059 | 2054 | } |
---|
2060 | 2055 | |
---|
2061 | 2056 | static u32 qib_6120_hdrqempty(struct qib_ctxtdata *rcd) |
---|
.. | .. |
---|
2978 | 2973 | state = IB_PORT_ARMED; |
---|
2979 | 2974 | break; |
---|
2980 | 2975 | case IB_6120_L_STATE_ACTIVE: |
---|
2981 | | - /* fall through */ |
---|
2982 | 2976 | case IB_6120_L_STATE_ACT_DEFER: |
---|
2983 | 2977 | state = IB_PORT_ACTIVE; |
---|
2984 | 2978 | break; |
---|
2985 | | - default: /* fall through */ |
---|
| 2979 | + default: |
---|
| 2980 | + fallthrough; |
---|
2986 | 2981 | case IB_6120_L_STATE_DOWN: |
---|
2987 | 2982 | state = IB_PORT_DOWN; |
---|
2988 | 2983 | break; |
---|
.. | .. |
---|
3237 | 3232 | /* we always allocate at least 2048 bytes for eager buffers */ |
---|
3238 | 3233 | ret = ib_mtu_enum_to_int(qib_ibmtu); |
---|
3239 | 3234 | dd->rcvegrbufsize = ret != -1 ? max(ret, 2048) : QIB_DEFAULT_MTU; |
---|
3240 | | - BUG_ON(!is_power_of_2(dd->rcvegrbufsize)); |
---|
3241 | 3235 | dd->rcvegrbufsize_shift = ilog2(dd->rcvegrbufsize); |
---|
3242 | 3236 | |
---|
3243 | 3237 | qib_6120_tidtemplate(dd); |
---|