Loading drivers/media/platform/msm/npu/npu_hw_access.c +4 −8 Original line number Diff line number Diff line Loading @@ -33,8 +33,7 @@ uint32_t npu_core_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; ret = readl_relaxed(npu_dev->core_io.base + off); __iormb(); ret = readl(npu_dev->core_io.base + off); return ret; } Loading @@ -48,8 +47,7 @@ uint32_t npu_bwmon_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; ret = readl_relaxed(npu_dev->bwmon_io.base + off); __iormb(); ret = readl(npu_dev->bwmon_io.base + off); return ret; } Loading @@ -64,10 +62,8 @@ uint32_t npu_qfprom_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; if (npu_dev->qfprom_io.base) { ret = readl_relaxed(npu_dev->qfprom_io.base + off); __iormb(); } if (npu_dev->qfprom_io.base) ret = readl(npu_dev->qfprom_io.base + off); return ret; } Loading drivers/platform/msm/gsi/gsi.h +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -32,7 +32,7 @@ #define GSI_EVT_RING_MAX 24 #define GSI_NO_EVT_ERINDEX 31 #define gsi_readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) #define gsi_readl(c) (readl(c)) #define gsi_writel(v, c) ({ __iowmb(); writel_relaxed((v), (c)); }) #define GSI_IPC_LOGGING(buf, fmt, args...) \ Loading drivers/platform/msm/gsi/gsi_emulation.h +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -18,7 +18,7 @@ # include "gsi_reg.h" # include "gsi_emulation_stubs.h" # define gsi_emu_readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) # define gsi_emu_readl(c) (readl(c)) # define gsi_emu_writel(v, c) ({ __iowmb(); writel_relaxed((v), (c)); }) # define CNTRLR_BASE 0 Loading drivers/platform/msm/gsi/gsi_emulation_stubs.h +1 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -14,7 +14,6 @@ # define _GSI_EMULATION_STUBS_H_ # include <asm/barrier.h> # define __iormb() rmb() /* used in gsi.h */ # define __iowmb() wmb() /* used in gsi.h */ #endif /* #if !defined(_GSI_EMULATION_STUBS_H_) */ drivers/platform/msm/ipa/ipa_v3/dump/ipa_reg_dump.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ * are required by some of the macros and include files that follow... */ #define my_in_dword(addr) \ ({ u32 __v = readl_relaxed((addr)); __iormb(); __v; }) (readl(addr)) #define in_dword(addr) \ my_in_dword((u8 *) ipa3_ctx->reg_collection_base + \ (u32)(addr)) Loading Loading
drivers/media/platform/msm/npu/npu_hw_access.c +4 −8 Original line number Diff line number Diff line Loading @@ -33,8 +33,7 @@ uint32_t npu_core_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; ret = readl_relaxed(npu_dev->core_io.base + off); __iormb(); ret = readl(npu_dev->core_io.base + off); return ret; } Loading @@ -48,8 +47,7 @@ uint32_t npu_bwmon_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; ret = readl_relaxed(npu_dev->bwmon_io.base + off); __iormb(); ret = readl(npu_dev->bwmon_io.base + off); return ret; } Loading @@ -64,10 +62,8 @@ uint32_t npu_qfprom_reg_read(struct npu_device *npu_dev, uint32_t off) { uint32_t ret = 0; if (npu_dev->qfprom_io.base) { ret = readl_relaxed(npu_dev->qfprom_io.base + off); __iormb(); } if (npu_dev->qfprom_io.base) ret = readl(npu_dev->qfprom_io.base + off); return ret; } Loading
drivers/platform/msm/gsi/gsi.h +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -32,7 +32,7 @@ #define GSI_EVT_RING_MAX 24 #define GSI_NO_EVT_ERINDEX 31 #define gsi_readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) #define gsi_readl(c) (readl(c)) #define gsi_writel(v, c) ({ __iowmb(); writel_relaxed((v), (c)); }) #define GSI_IPC_LOGGING(buf, fmt, args...) \ Loading
drivers/platform/msm/gsi/gsi_emulation.h +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -18,7 +18,7 @@ # include "gsi_reg.h" # include "gsi_emulation_stubs.h" # define gsi_emu_readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) # define gsi_emu_readl(c) (readl(c)) # define gsi_emu_writel(v, c) ({ __iowmb(); writel_relaxed((v), (c)); }) # define CNTRLR_BASE 0 Loading
drivers/platform/msm/gsi/gsi_emulation_stubs.h +1 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -14,7 +14,6 @@ # define _GSI_EMULATION_STUBS_H_ # include <asm/barrier.h> # define __iormb() rmb() /* used in gsi.h */ # define __iowmb() wmb() /* used in gsi.h */ #endif /* #if !defined(_GSI_EMULATION_STUBS_H_) */
drivers/platform/msm/ipa/ipa_v3/dump/ipa_reg_dump.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ * are required by some of the macros and include files that follow... */ #define my_in_dword(addr) \ ({ u32 __v = readl_relaxed((addr)); __iormb(); __v; }) (readl(addr)) #define in_dword(addr) \ my_in_dword((u8 *) ipa3_ctx->reg_collection_base + \ (u32)(addr)) Loading