~kamalmostafa/ubuntu/+source/linux/+git/xenial:dimlib

Last commit made on 2019-11-14
Get this branch:
git clone -b dimlib https://git.launchpad.net/~kamalmostafa/ubuntu/+source/linux/+git/xenial
Only Kamal Mostafa can upload to this branch. If you are Kamal Mostafa please log in for upload directions.

Branch merges

Branch information

Recent commits

0f1666b... by Kamal Mostafa

UBUNTU: SAUCE: linux/dim: avoid library object filename clash

BugLink: https://bugs.launchpad.net/bugs/1852637

Use dimlib.o (vs. dim.o) as the interim library object filename to avoid
a clash with the actual dim.c which manifests as:

make[2]: Circular lib/dim/dim.o <- lib/dim/dim.o dependency dropped.

Signed-off-by: Kamal Mostafa <email address hidden>

c466e92... by Kamal Mostafa

UBUNTU: linux/dim: import DIMLIB (lib/dim/)

BugLink: https://bugs.launchpad.net/bugs/1852637

Import DIMLIB (lib/dim/) from mainline v5.3 as of
commit f8be17b81d44 ("lib/dim: Fix -Wunused-const-variable warnings").

Signed-off-by: Kamal Mostafa <email address hidden>

39e5909... by Kamal Mostafa

UBUNTU: [Config] enable DIMLIB

BugLink: https://bugs.launchpad.net/bugs/1852637

Signed-off-by: Kamal Mostafa <email address hidden>

f284114... by Masahiro Yamada <email address hidden>

linux/kernel.h: move DIV_ROUND_DOWN_ULL() macro

BugLink: https://bugs.launchpad.net/bugs/1852637

This macro is useful to avoid link error on 32-bit systems.

We have the same definition in two drivers, so move it to
include/linux/kernel.h

While we are here, refactor DIV_ROUND_UP_ULL() by using
DIV_ROUND_DOWN_ULL().

Link: http://lkml<email address hidden>
Signed-off-by: Masahiro Yamada <email address hidden>
Acked-by: Mark Brown <email address hidden>
Cc: Cyrille Pitchen <email address hidden>
Cc: Jaroslav Kysela <email address hidden>
Cc: Takashi Iwai <email address hidden>
Cc: Liam Girdwood <email address hidden>
Cc: Boris Brezillon <email address hidden>
Cc: Marek Vasut <email address hidden>
Cc: Brian Norris <email address hidden>
Cc: Richard Weinberger <email address hidden>
Cc: David Woodhouse <email address hidden>
Signed-off-by: Andrew Morton <email address hidden>
Signed-off-by: Linus Torvalds <email address hidden>
(backported from commit 604df322363e5770735df85368f83cac4a955a24)
Signed-off-by: Kamal Mostafa <email address hidden>

0a63a04... by Chris Wilson

include/linux/bitops.h: introduce BITS_PER_TYPE

BugLink: https://bugs.launchpad.net/bugs/1852637

net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the
number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro
to bitops.h, alongside BITS_PER_BYTE, for wider usage.

Link: http://<email address hidden>
Signed-off-by: Chris Wilson <email address hidden>
Reviewed-by: Jani Nikula <email address hidden>
Cc: Randy Dunlap <email address hidden>
Cc: Andy Gospodarek <email address hidden>
Cc: David S. Miller <email address hidden>
Cc: Thomas Gleixner <email address hidden>
Cc: Ingo Molnar <email address hidden>
Signed-off-by: Andrew Morton <email address hidden>
Signed-off-by: Linus Torvalds <email address hidden>
(backported from commit 9144d75e22cad3c89e6b2ccab551db9ee28d250a)
Signed-off-by: Kamal Mostafa <email address hidden>

6a34339... by Connor Kuehl

UBUNTU: Ubuntu-4.4.0-170.199

Signed-off-by: Connor Kuehl <email address hidden>

a2fcf27... by Connor Kuehl

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1852306
Properties: no-test-build
Signed-off-by: Connor Kuehl <email address hidden>

41cf8d1... by Connor Kuehl

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Connor Kuehl <email address hidden>

bee8445... by Colin Ian King

net: ena: clean up indentation issue

BugLink: https://bugs.launchpad.net/bugs/1850175

There memset is indented incorrectly, remove the extraneous tabs.

Signed-off-by: Colin Ian King <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 4208966f65f520d7f392dbaa62e39a8fa88ffb95)
Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Khaled Elmously <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>

751defb... by Sameeh Jubran

net: ena: don't wake up tx queue when down

BugLink: https://bugs.launchpad.net/bugs/1850175

There is a race condition that can occur when calling ena_down().
The ena_clean_tx_irq() - which is a part of the napi handler -
function might wake up the tx queue when the queue is supposed
to be down (during recovery or changing the size of the queues
for example) This causes the ena_start_xmit() function to trigger
and possibly try to access the destroyed queues.

The race is illustrated below:

Flow A: Flow B(napi handler)
ena_down()
   netif_carrier_off()
   netif_tx_disable()
                                                      ena_clean_tx_irq()
                                                         netif_tx_wake_queue()
   ena_napi_disable_all()
   ena_destroy_all_io_queues()

After these flows the tx queue is active and ena_start_xmit() accesses
the destroyed queue which leads to a kernel panic.

fixes: 1738cd3ed342 (net: ena: Add a driver for Amazon Elastic Network Adapters (ENA))

Signed-off-by: Sameeh Jubran <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit a53651ec93a8d7ab5b26c5390e0c389048b4b4b6)
Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Khaled Elmously <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>