~kmously/ubuntu/+source/linux/+git/bionic:master-next

Last commit made on 2018-07-11
Get this branch:
git clone -b master-next https://git.launchpad.net/~kmously/ubuntu/+source/linux/+git/bionic
Only Khaled El Mously can upload to this branch. If you are Khaled El Mously please log in for upload directions.

Branch merges

Branch information

Name:
master-next
Repository:
lp:~kmously/ubuntu/+source/linux/+git/bionic

Recent commits

4ba82c2... by Khaled El Mously

UBUNTU: Ubuntu-4.15.0-27.29

Signed-off-by: Khalid Elmously <email address hidden>

00f03e5... by Theodore Ts'o

UBUNTU: SAUCE: ext4: fix ext4_validate_inode_bitmap: comm stress-ng: Corrupt inode bitmap

BugLink: http://bugs.launchpad.net/bugs/1780137

Fix regression triggered by the stress-ng[*] "chdir" test, with LKML test
patch.

Regression observed on some arm64 server platforms:

    EXT4-fs error (device sda1): ext4_validate_inode_bitmap:99: comm stress-ng: Corrupt inode bitmap

Reference: https://lkml.org/lkml/2018/7/7/2

Reported-by: dann frazier <email address hidden>
Tested-by: dann frazier <email address hidden>
Fixes: 044e6e3d74a3 ext4: don't update checksum of new initialized bitmaps
Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

995d921... by Khaled El Mously

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <email address hidden>

0f736e8... by Stefan Bader

UBUNTU: Ubuntu-4.15.0-26.28

Signed-off-by: Stefan Bader <email address hidden>

ff752d8... by Ben Hutchings

random: Make getrandom() ready earlier

This effectively reverts commit 725e828 "random: fix crng_ready()
test" which was commit 43838a23a05f upstream. Unfortunately some
users of getrandom() don't expect it to block for long, and they need
to be fixed before we can allow this change into stable.

This doesn't directly revert that commit, but only weakens the ready
condition used by getrandom() when the GRND_RANDOM flag is not set.
Calls to getrandom() that return before the RNG is fully seeded will
generate warnings, just like reads from /dev/urandom.

BugLink: https://bugs.launchpad.net/bugs/1780062
BugLink: https://bugs.launchpad.net/bugs/1779827

(backported from ://salsa.debian.org/kernel-team/linux/raw/stretch/debian/patches/debian/random-make-getrandom-ready-earlier.patch)
[smb: open code waiting in getrandom directly]
Signed-off-by: Stefan Bader <email address hidden>
Acked-by: Colin King <email address hidden>
Acked-by: Khaled Elmously <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>

9ea2db7... by Stefan Bader

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Stefan Bader <email address hidden>

1de0dc5... by Khaled El Mously

UBUNTU: Ubuntu-4.15.0-25.27

Signed-off-by: Khalid Elmously <email address hidden>

fe05833... by John Garry

scsi: hisi_sas: Update a couple of register settings for v3 hw

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

Update CFG_1US_TIMER_TRSH and CON_CFG_DRIVER settings.

Signed-off-by: John Garry <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit 7bfa2e5f7b677688f609cf39274eb5bf1174af16 scsi)
Signed-off-by: dann frazier <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

60c9b73... by John Garry

scsi: hisi_sas: Add missing PHY spinlock init

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

The init is missed for hisi_sas_phy spinlock, so add it.

Signed-off-by: John Garry <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit c5e261207536aafceb0c58342a2e139d49047958 scsi)
Signed-off-by: dann frazier <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

51b2181... by Xiang Chen <email address hidden>

scsi: hisi_sas: Pre-allocate slot DMA buffers

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

Currently the driver spends much time allocating and freeing the slot DMA
buffer for command delivery/completion. To boost the performance,
pre-allocate the buffers for all IPTT. The downside of this approach is
that we are reallocating all buffer memory upfront, so hog memory which we
may not need.

However, the current method - DMA buffer pool - also caches all buffers and
does not free them until the pool is destroyed, so is not exactly efficient
either.

On top of this, since the slot DMA buffer is slightly bigger than a 4K
page, we need to allocate 2x4K pages per buffer (for 4K page kernel), which
is quite wasteful. For 64K page size this is not such an issue.

So, for the 4K page case, in order to make memory usage more efficient,
pre-allocating larger blocks of DMA memory for the buffers can be more
efficient.

To make DMA memory usage most efficient, we would choose a single
contiguous DMA memory block, but this could use up all the DMA memory in
the system (when CMA enabled and no IOMMU), or we may just not be able to
allocate a DMA buffer large enough when no CMA or IOMMU.

To decide the block size we use the LCM (least common multiple) of the
buffer size and the page size. We roundup(64) to ensure the LCM is not too
large, even though a little memory may be wasted per block.

So, with this, the total memory requirement is about is about 17MB for 4096
max IPTT.

Previously (for 4K pages case), it would be 32MB (for all slots
allocated).

With this change, the relative increase of IOPS for bs=4K read when
PAGE_SIZE=4K and PAGE_SIZE=64K is as follows:
    IODEPTH 4K PAGE_SIZE 64K PAGE_SIZE
    32 56% 47%
    64 53% 44%
    128 64% 43%
    256 67% 45%

Signed-off-by: Xiang Chen <email address hidden>
Signed-off-by: John Garry <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit bbb14d21a0614deefbdf24da61606f7bd7a1263a scsi)
Signed-off-by: dann frazier <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>