[GIT PULL] UniCore32 update for v3.16-rc1

2014-06-20 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.16-rc1.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates.

Thanks.

Xuetao Guan

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 894e552cfaa3389f934dc68180bac692aebcf26b:

  Merge branch 'for-linus' of 
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 
(2014-06-19 07:58:28 -1000)

are available in the git repository at:


  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to d670878e2c9adb86b37e42b0937b2d4825bd2b39:

  unicore32: Remove ARCH_HAS_CPUFREQ config option (2014-06-20 08:22:41 +0800)

- 
UniCore32 bug fixes for 3.16-rc1

- 
Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove ">" for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for "enum 
pci_interrupt_cause"
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Stephen Boyd (1):
  unicore32: Remove ARCH_HAS_CPUFREQ config option

 MAINTAINERS  |  4 +--
 arch/unicore32/Kconfig   |  6 
 arch/unicore32/include/asm/io.h  | 27 +
 arch/unicore32/include/asm/pgtable.h | 10 +++
 arch/unicore32/include/asm/ptrace.h  |  1 +
 arch/unicore32/kernel/clock.c|  8 ++---
 arch/unicore32/kernel/ksyms.c| 41 ++---
 arch/unicore32/kernel/ksyms.h|  2 --
 arch/unicore32/kernel/module.c   | 11 ++-
 arch/unicore32/kernel/process.c  |  1 +
 arch/unicore32/kernel/setup.c|  4 +++
 arch/unicore32/mm/alignment.c|  1 +
 arch/unicore32/mm/proc-syms.c|  2 ++
 drivers/rtc/rtc-puv3.c   |  4 +--
 drivers/scsi/mvsas/mv_94xx.c | 10 +++
 drivers/scsi/mvsas/mv_94xx.h | 58 ++--
 16 files changed, 88 insertions(+), 102 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTo9g9AAoJENFylnOm3dTbfb0QAKn6yiN2khPKmbszhnUzqky+
IPNb89O0ZUHpxmLgRv3ZlHnaK3aiXPDvq3gSKGayYOIam5PZtZHpkrUCfc+8eE1o
MONr5ffKQvd8siQDiUZ3pN9W55RfryPvyundt0bH34sszguZC9Lw8h/uGBA/0xM9
snuoFIWZV+5WMcsV+L75ipPG7a3MnWbDphWtvLWhJRKtEIZlXjZVovdw++M9g/Rt
xaIHUdPhpRC9cJgHbZUA6+C1bNQVh/ReyrqLgLWVpfWwsGeytn4DvA7wwCC5ogQy
zDdEZ26X4/hL46avZ7IFlYr2h+XoQdFa2iwxrnEnCMBn0hTDGuS5vbA7OyRqRmUt
smaMfOAFWmlyzSOlKHTh+kQeIVWyY0LUpGk+2g+nemtBvx0m3sSmvFyN9Jkpseap
DLj8YpHTV+mT84wUL5aXaUxLTxP22CxDskCDM03T0+9mLMxHu1R4Pjo4YhXe6KJp
tPWjFw4Fr0c8ziz+AHnqSCb6YgmLuvSQ3nhLDeL4EOFgld/cgq/osjx4nooWGIdq
2gbOeqIqPZLt5YBGlsFsaX7SVua7qjex75nZgxOoK92cHTnyQh4a8CWird+IzGoi
xONZgLa9EWz2pXKXUwST64fuXZJeSTonhgbhUtmEEVcdpQSbQaRioJWyOia760SX
Ab9qQIX1k4njnr4VaVTb
=1bU6
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL] UniCore32 update for v3.16-rc1

2014-06-20 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.16-rc1.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates.

Thanks.

Xuetao Guan

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 894e552cfaa3389f934dc68180bac692aebcf26b:

  Merge branch 'for-linus' of 
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 
(2014-06-19 07:58:28 -1000)

are available in the git repository at:


  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to d670878e2c9adb86b37e42b0937b2d4825bd2b39:

  unicore32: Remove ARCH_HAS_CPUFREQ config option (2014-06-20 08:22:41 +0800)

- 
UniCore32 bug fixes for 3.16-rc1

- 
Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include asm/pgtable.h to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove dev- for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for enum 
pci_interrupt_cause
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Stephen Boyd (1):
  unicore32: Remove ARCH_HAS_CPUFREQ config option

 MAINTAINERS  |  4 +--
 arch/unicore32/Kconfig   |  6 
 arch/unicore32/include/asm/io.h  | 27 +
 arch/unicore32/include/asm/pgtable.h | 10 +++
 arch/unicore32/include/asm/ptrace.h  |  1 +
 arch/unicore32/kernel/clock.c|  8 ++---
 arch/unicore32/kernel/ksyms.c| 41 ++---
 arch/unicore32/kernel/ksyms.h|  2 --
 arch/unicore32/kernel/module.c   | 11 ++-
 arch/unicore32/kernel/process.c  |  1 +
 arch/unicore32/kernel/setup.c|  4 +++
 arch/unicore32/mm/alignment.c|  1 +
 arch/unicore32/mm/proc-syms.c|  2 ++
 drivers/rtc/rtc-puv3.c   |  4 +--
 drivers/scsi/mvsas/mv_94xx.c | 10 +++
 drivers/scsi/mvsas/mv_94xx.h | 58 ++--
 16 files changed, 88 insertions(+), 102 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTo9g9AAoJENFylnOm3dTbfb0QAKn6yiN2khPKmbszhnUzqky+
IPNb89O0ZUHpxmLgRv3ZlHnaK3aiXPDvq3gSKGayYOIam5PZtZHpkrUCfc+8eE1o
MONr5ffKQvd8siQDiUZ3pN9W55RfryPvyundt0bH34sszguZC9Lw8h/uGBA/0xM9
snuoFIWZV+5WMcsV+L75ipPG7a3MnWbDphWtvLWhJRKtEIZlXjZVovdw++M9g/Rt
xaIHUdPhpRC9cJgHbZUA6+C1bNQVh/ReyrqLgLWVpfWwsGeytn4DvA7wwCC5ogQy
zDdEZ26X4/hL46avZ7IFlYr2h+XoQdFa2iwxrnEnCMBn0hTDGuS5vbA7OyRqRmUt
smaMfOAFWmlyzSOlKHTh+kQeIVWyY0LUpGk+2g+nemtBvx0m3sSmvFyN9Jkpseap
DLj8YpHTV+mT84wUL5aXaUxLTxP22CxDskCDM03T0+9mLMxHu1R4Pjo4YhXe6KJp
tPWjFw4Fr0c8ziz+AHnqSCb6YgmLuvSQ3nhLDeL4EOFgld/cgq/osjx4nooWGIdq
2gbOeqIqPZLt5YBGlsFsaX7SVua7qjex75nZgxOoK92cHTnyQh4a8CWird+IzGoi
xONZgLa9EWz2pXKXUwST64fuXZJeSTonhgbhUtmEEVcdpQSbQaRioJWyOia760SX
Ab9qQIX1k4njnr4VaVTb
=1bU6
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL] UniCore32 update for v3.15-rc8

2014-06-04 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.15-rc8.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates. I hope it works this time.

Thanks for your patience.

Xuetao Guan

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit cae61ba37b4c2672704cbd8a626fbd85be7e67d9:

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2014-06-02 
18:16:41 -0700)

are available in the git repository at:


  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to 8c76c188d498a85c5b1a1f10840da57129a108a0:

  unicore32: Remove ARCH_HAS_CPUFREQ config option (2014-06-05 08:36:03 +0800)

- 
UniCore32 bug fixes for 3.15-rc8

- 
Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove ">" for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for "enum 
pci_interrupt_cause"
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Stephen Boyd (1):
  unicore32: Remove ARCH_HAS_CPUFREQ config option

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |  4 +--
 arch/unicore32/Kconfig   |  6 
 arch/unicore32/include/asm/io.h  | 27 +
 arch/unicore32/include/asm/pgtable.h | 10 +++
 arch/unicore32/include/asm/ptrace.h  |  1 +
 arch/unicore32/kernel/clock.c|  8 ++---
 arch/unicore32/kernel/ksyms.c| 41 ++---
 arch/unicore32/kernel/ksyms.h|  2 --
 arch/unicore32/kernel/module.c   | 11 ++-
 arch/unicore32/kernel/process.c  |  1 +
 arch/unicore32/kernel/setup.c|  4 +++
 arch/unicore32/mm/alignment.c|  1 +
 arch/unicore32/mm/proc-syms.c|  2 ++
 drivers/rtc/rtc-puv3.c   |  4 +--
 drivers/scsi/mvsas/mv_94xx.c | 10 +++
 drivers/scsi/mvsas/mv_94xx.h | 58 ++--
 drivers/video/fbdev/fb-puv3.c|  2 ++
 17 files changed, 90 insertions(+), 102 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTj/+PAAoJENFylnOm3dTbYiwP+weUjrIiaFoxywEDYcXKqbyj
TlwCeJPLdbcov8hTEcpLm1vEsk9apVh2rQFiarLNnlnytFUbr3SN80DcR5Opsa1I
7VfnkGQSBQhTVs8WBr7rLiQ2j0LPZnmtLw1D7lOamKr/MDHm04IXVd3P3fT+1qVF
Zw01THwbEMRLKvmJoWRmxxVew4NyNmlMHxC/71pE9ogJOpgKOdkyqd4NMi7zUlvy
0/VyxFDdNP0xmFUkA5Wm3UKFcAAFF49qxqVKxxKYnBpWpJ/bX6eOqE0y6hzcFBCi
SuPVpCIYzqm/N1OI17nu8YA8EB5fq/43Xi4Ek0TVY+DfAVIlEyU9vZWbj0B1XfIv
PloCpV3ZJl7wbbHhINpkCpvjB3IABClaJvEurYTP1kEB9bZZN4QnXz/ZYhVjCLTF
Rk4gu7wJ6fiY8OEXZe7v2CJi6CZs/R2ZoDab4UMxVgm/JJei3rQXFzdao3/vBuz8
ugd+guPYnL2acwNr+MSNWSBe4FsKm0WdFARRXEPOE/OKpV63VukYixJMVk9Dcar6
EsGZH4yye7wIQMd/iOtwuuO9+i1kGit0iPhFw88KUWx22T7FXznKJh4obTkd220Q
8uWGX2yXu/iWcumqoYQiXIujn/GxTIU+IB5UGRJ2f0rCvqnz3S9X7QA+6y7KKs+M
hQShpDs+y+pNhasVAVbv
=A/1d
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL] UniCore32 update for v3.15-rc8

2014-06-04 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.15-rc8.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates. I hope it works this time.

Thanks for your patience.

Xuetao Guan

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit cae61ba37b4c2672704cbd8a626fbd85be7e67d9:

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2014-06-02 
18:16:41 -0700)

are available in the git repository at:


  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to 8c76c188d498a85c5b1a1f10840da57129a108a0:

  unicore32: Remove ARCH_HAS_CPUFREQ config option (2014-06-05 08:36:03 +0800)

- 
UniCore32 bug fixes for 3.15-rc8

- 
Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include asm/pgtable.h to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove dev- for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for enum 
pci_interrupt_cause
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Stephen Boyd (1):
  unicore32: Remove ARCH_HAS_CPUFREQ config option

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |  4 +--
 arch/unicore32/Kconfig   |  6 
 arch/unicore32/include/asm/io.h  | 27 +
 arch/unicore32/include/asm/pgtable.h | 10 +++
 arch/unicore32/include/asm/ptrace.h  |  1 +
 arch/unicore32/kernel/clock.c|  8 ++---
 arch/unicore32/kernel/ksyms.c| 41 ++---
 arch/unicore32/kernel/ksyms.h|  2 --
 arch/unicore32/kernel/module.c   | 11 ++-
 arch/unicore32/kernel/process.c  |  1 +
 arch/unicore32/kernel/setup.c|  4 +++
 arch/unicore32/mm/alignment.c|  1 +
 arch/unicore32/mm/proc-syms.c|  2 ++
 drivers/rtc/rtc-puv3.c   |  4 +--
 drivers/scsi/mvsas/mv_94xx.c | 10 +++
 drivers/scsi/mvsas/mv_94xx.h | 58 ++--
 drivers/video/fbdev/fb-puv3.c|  2 ++
 17 files changed, 90 insertions(+), 102 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTj/+PAAoJENFylnOm3dTbYiwP+weUjrIiaFoxywEDYcXKqbyj
TlwCeJPLdbcov8hTEcpLm1vEsk9apVh2rQFiarLNnlnytFUbr3SN80DcR5Opsa1I
7VfnkGQSBQhTVs8WBr7rLiQ2j0LPZnmtLw1D7lOamKr/MDHm04IXVd3P3fT+1qVF
Zw01THwbEMRLKvmJoWRmxxVew4NyNmlMHxC/71pE9ogJOpgKOdkyqd4NMi7zUlvy
0/VyxFDdNP0xmFUkA5Wm3UKFcAAFF49qxqVKxxKYnBpWpJ/bX6eOqE0y6hzcFBCi
SuPVpCIYzqm/N1OI17nu8YA8EB5fq/43Xi4Ek0TVY+DfAVIlEyU9vZWbj0B1XfIv
PloCpV3ZJl7wbbHhINpkCpvjB3IABClaJvEurYTP1kEB9bZZN4QnXz/ZYhVjCLTF
Rk4gu7wJ6fiY8OEXZe7v2CJi6CZs/R2ZoDab4UMxVgm/JJei3rQXFzdao3/vBuz8
ugd+guPYnL2acwNr+MSNWSBe4FsKm0WdFARRXEPOE/OKpV63VukYixJMVk9Dcar6
EsGZH4yye7wIQMd/iOtwuuO9+i1kGit0iPhFw88KUWx22T7FXznKJh4obTkd220Q
8uWGX2yXu/iWcumqoYQiXIujn/GxTIU+IB5UGRJ2f0rCvqnz3S9X7QA+6y7KKs+M
hQShpDs+y+pNhasVAVbv
=A/1d
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL] UniCore32 update for v3.15-rc8

2014-06-03 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.15-rc8.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates.

Thanks and Regards,
Xuetao Guan

The following changes since commit cae61ba37b4c2672704cbd8a626fbd85be7e67d9:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../davem/net

are available in the git repository at:

  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to aba36cb673f6e3e41bd8d5cde1891795c4dace58:

  UniCore32: Change git tree location information in MAINTAINERS (2014-05-27 
07:53:10 +0800)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove ">" for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for "enum 
pci_interrupt_cause"
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |4 +-
 arch/unicore32/include/asm/io.h  |   27 
 arch/unicore32/include/asm/pgtable.h |   10 +++---
 arch/unicore32/include/asm/ptrace.h  |1 +
 arch/unicore32/kernel/clock.c|8 ++--
 arch/unicore32/kernel/ksyms.c|   41 +---
 arch/unicore32/kernel/ksyms.h|2 -
 arch/unicore32/kernel/module.c   |   11 ++-
 arch/unicore32/kernel/process.c  |1 +
 arch/unicore32/kernel/setup.c|4 ++
 arch/unicore32/mm/alignment.c|1 +
 arch/unicore32/mm/proc-syms.c|2 +
 drivers/rtc/rtc-puv3.c   |4 +-
 drivers/scsi/mvsas/mv_94xx.c |   10 +++---
 drivers/scsi/mvsas/mv_94xx.h |   58 +-
 drivers/video/fbdev/fb-puv3.c|2 +
 16 files changed, 90 insertions(+), 96 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTjWloAAoJENFylnOm3dTbbrkP/0Ol6LiUULkenh7J2CvxBw2r
DGqogrFlJKlrZDPbnNomNKnhiBJsjCTPmgoUTfP8NSxTu0vmaeqHUz/JFsP3GwXC
FL985EDrj4TyB16evse21rY3f5z+UNGdAHsxlzFC+2WBFxEbWnbVmyXwanqmw8Xa
zxt9IK3eXWgulvGYMxtQ/xT4SF0AGtZDHGGn0nZsSolnY4ChUKSmoRMziHpb9GFp
m/Jb4aMCLdlb2BcJUifln5joDecP8XOnfPWjUdxZLPmHFT6KxgTzgiT8pqZ6XfNc
g2KU4DT0YcLKEnBYFnxy8JFt4kU174VZ7tJKtAPdIcnwur23Khfh+xR0McALcA7S
3YkDF7zZ8Aj10/m0njEQx4utgcJ6qf6S0PJ9mMfRT9SrTPvT6dOYp+JGlgnk91IT
2Mgd1zxUEopdAE3HHmeM5Ii17gr5ifZ0BZNzXSKf/rOY7tmvrso9tbAUMdElg3cd
/tkRsb2z+flT0xnFmCvdAmPWppSaXWWW/RF4Wq9JkRCGA8F8KW2/GoG2GitUjMfn
vj1bN0lH5tpkNkJpHxrCB5z54YMMFLA1eSEcdfl8PfkXlFYZY+pRXjc5Rph3sStp
ckD17QtBzD2NbaiwrCJuMQ7cDtmdj3maTleJiQLccj8Sh98gp6FpSiTZcsGTuGnQ
mhfN3djHkuz5OLSLGX8/
=jyTe
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL] UniCore32 update for v3.15-rc8

2014-06-03 Thread guanxuetao
Hi Linus,

This is unicore32 pull request for v3.15-rc8.

This pull request includes bugfixes to make unicore32 successfully build under 
defconfig,
and some changes for allmodconfig (though not finished).

Please pull tags/for-linus with following updates.

Thanks and Regards,
Xuetao Guan

The following changes since commit cae61ba37b4c2672704cbd8a626fbd85be7e67d9:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../davem/net

are available in the git repository at:

  git://github.com/gxt/linux.git tags/for-linus

for you to fetch changes up to aba36cb673f6e3e41bd8d5cde1891795c4dace58:

  UniCore32: Change git tree location information in MAINTAINERS (2014-05-27 
07:53:10 +0800)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include asm/pgtable.h to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove dev- for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for enum 
pci_interrupt_cause
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |4 +-
 arch/unicore32/include/asm/io.h  |   27 
 arch/unicore32/include/asm/pgtable.h |   10 +++---
 arch/unicore32/include/asm/ptrace.h  |1 +
 arch/unicore32/kernel/clock.c|8 ++--
 arch/unicore32/kernel/ksyms.c|   41 +---
 arch/unicore32/kernel/ksyms.h|2 -
 arch/unicore32/kernel/module.c   |   11 ++-
 arch/unicore32/kernel/process.c  |1 +
 arch/unicore32/kernel/setup.c|4 ++
 arch/unicore32/mm/alignment.c|1 +
 arch/unicore32/mm/proc-syms.c|2 +
 drivers/rtc/rtc-puv3.c   |4 +-
 drivers/scsi/mvsas/mv_94xx.c |   10 +++---
 drivers/scsi/mvsas/mv_94xx.h |   58 +-
 drivers/video/fbdev/fb-puv3.c|2 +
 16 files changed, 90 insertions(+), 96 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJTjWloAAoJENFylnOm3dTbbrkP/0Ol6LiUULkenh7J2CvxBw2r
DGqogrFlJKlrZDPbnNomNKnhiBJsjCTPmgoUTfP8NSxTu0vmaeqHUz/JFsP3GwXC
FL985EDrj4TyB16evse21rY3f5z+UNGdAHsxlzFC+2WBFxEbWnbVmyXwanqmw8Xa
zxt9IK3eXWgulvGYMxtQ/xT4SF0AGtZDHGGn0nZsSolnY4ChUKSmoRMziHpb9GFp
m/Jb4aMCLdlb2BcJUifln5joDecP8XOnfPWjUdxZLPmHFT6KxgTzgiT8pqZ6XfNc
g2KU4DT0YcLKEnBYFnxy8JFt4kU174VZ7tJKtAPdIcnwur23Khfh+xR0McALcA7S
3YkDF7zZ8Aj10/m0njEQx4utgcJ6qf6S0PJ9mMfRT9SrTPvT6dOYp+JGlgnk91IT
2Mgd1zxUEopdAE3HHmeM5Ii17gr5ifZ0BZNzXSKf/rOY7tmvrso9tbAUMdElg3cd
/tkRsb2z+flT0xnFmCvdAmPWppSaXWWW/RF4Wq9JkRCGA8F8KW2/GoG2GitUjMfn
vj1bN0lH5tpkNkJpHxrCB5z54YMMFLA1eSEcdfl8PfkXlFYZY+pRXjc5Rph3sStp
ckD17QtBzD2NbaiwrCJuMQ7cDtmdj3maTleJiQLccj8Sh98gp6FpSiTZcsGTuGnQ
mhfN3djHkuz5OLSLGX8/
=jyTe
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for 3.15-rc7

2014-05-29 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit f2159d1e99612ceb94bf9a2dc2fbca409d828b1b:
  Linus Torvalds (1):
Merge tag 'sound-3.15-rc8' of git://git.kernel.org/.../tiwai/sound

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove ">" for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for "enum 
pci_interrupt_cause"
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |4 +-
 arch/unicore32/include/asm/io.h  |   27 
 arch/unicore32/include/asm/pgtable.h |   10 +++---
 arch/unicore32/include/asm/ptrace.h  |1 +
 arch/unicore32/kernel/clock.c|8 ++--
 arch/unicore32/kernel/ksyms.c|   41 +---
 arch/unicore32/kernel/ksyms.h|2 -
 arch/unicore32/kernel/module.c   |   11 ++-
 arch/unicore32/kernel/process.c  |1 +
 arch/unicore32/kernel/setup.c|4 ++
 arch/unicore32/mm/alignment.c|1 +
 arch/unicore32/mm/proc-syms.c|2 +
 drivers/rtc/rtc-puv3.c   |4 +-
 drivers/scsi/mvsas/mv_94xx.c |   10 +++---
 drivers/scsi/mvsas/mv_94xx.h |   58 +-
 drivers/video/fbdev/fb-puv3.c|2 +
 16 files changed, 90 insertions(+), 96 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIbBAEBAgAGBQJThuzIAAoJENFylnOm3dTbBOEP+M+dTEQdovyc2u9PyDhiJeg5
wuid6ZmliuPomCCG1CuimfYZ3mqBlXnwmofLaTStbVGANO1ibOdyyyzPEptoaOXk
MLoQcIpW7b3wleXwFtKoq+gRCQNMLQcH3v4UfM9cYYQm6fpXCkmNoD/7FCAAngym
4DQhAihJ2oqjxusIrhmlaPtx9GG0BIFHR5XKZgP/CpzdWyCcyim/YVrmrMovvXxT
UkGc2lfxqp66Pc29uTE8EzW9gFe9LCs0NN1bBy80DTOhHkr2JT4Y6dvm/68ugfnI
0OeN6pI/2BzwuudgixBKEL+KW7MWbzQQlS8a9ussqLnFYWXteCFHtYC2P0NJwJTe
OVgaJLiXsWtDuKAuzJkQfiP0NmFJlGCi9Z5kn4QeMURns+eTZAUY0O8+D8oDXPPp
14CtgO7OEwoPpCoBRyei5vW/P3rfbCIbvlbTkFkWB39/Y3vPXIcTiViUv1Wc0NjF
dJuxAhteM8MUUCrFkYNokiEFaJRA+S5Etw8wJieYTPE08t0niRO1VuECp4UWVm+4
72pZlNi7uq2GQQ7+8jSDuLAtSkURwn1ZRoFmTnmsCa/27RcGAVgjNYb9QjxpaPf6
giW+buhRhuHcVtd+iROU4vXzWklEE+Xlsl94ldoaNirPIW2jh+R/GPPL1rWzO3h+
HzMswTfyIz06rgEIYAM=
=pk0J
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for 3.15-rc7

2014-05-29 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit f2159d1e99612ceb94bf9a2dc2fbca409d828b1b:
  Linus Torvalds (1):
Merge tag 'sound-3.15-rc8' of git://git.kernel.org/.../tiwai/sound

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Chen Gang (17):
  arch/unicore32/kernel/ksyms.c: remove several undefined exported symbols
  arch/unicore32/kernel/module.c: use __vmalloc_node_range() instead of 
__vmalloc_area()
  arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros
  arch/unicore32/mm/alignment.c: include asm/pgtable.h to avoid compiling 
error
  arch/unicore32/include/asm/ptrace.h: add generic definition for 
profile_pc()
  arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
  drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo 
issue
  drivers/rtc/rtc-puv3.c: remove dev- for typo issue MIME-Version: 1.0
  arch/unicore32/kernel/ksyms.c: remove 2 export symbols to avoid compiling 
failure
  arch: unicore32: kernel: ksyms: remove 'bswapsi2' and 'muldi3' to avoid 
compiling failure
  drivers: scsi: mvsas: fix compiling issue by adding 'MVS_' for enum 
pci_interrupt_cause
  arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid 
compiling failure
  unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h
  arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM
  arch: unicore32: ksyms: export additional find_first_*() to avoid 
compiling failure
  arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
  arch: unicore32: ksyms: export '__cpuc_coherent_kern_range' to avoid 
compiling failure

Guan Xuetao (1):
  UniCore32: Change git tree location information in MAINTAINERS

Zhichuang SUN (1):
  drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

 MAINTAINERS  |4 +-
 arch/unicore32/include/asm/io.h  |   27 
 arch/unicore32/include/asm/pgtable.h |   10 +++---
 arch/unicore32/include/asm/ptrace.h  |1 +
 arch/unicore32/kernel/clock.c|8 ++--
 arch/unicore32/kernel/ksyms.c|   41 +---
 arch/unicore32/kernel/ksyms.h|2 -
 arch/unicore32/kernel/module.c   |   11 ++-
 arch/unicore32/kernel/process.c  |1 +
 arch/unicore32/kernel/setup.c|4 ++
 arch/unicore32/mm/alignment.c|1 +
 arch/unicore32/mm/proc-syms.c|2 +
 drivers/rtc/rtc-puv3.c   |4 +-
 drivers/scsi/mvsas/mv_94xx.c |   10 +++---
 drivers/scsi/mvsas/mv_94xx.h |   58 +-
 drivers/video/fbdev/fb-puv3.c|2 +
 16 files changed, 90 insertions(+), 96 deletions(-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIbBAEBAgAGBQJThuzIAAoJENFylnOm3dTbBOEP+M+dTEQdovyc2u9PyDhiJeg5
wuid6ZmliuPomCCG1CuimfYZ3mqBlXnwmofLaTStbVGANO1ibOdyyyzPEptoaOXk
MLoQcIpW7b3wleXwFtKoq+gRCQNMLQcH3v4UfM9cYYQm6fpXCkmNoD/7FCAAngym
4DQhAihJ2oqjxusIrhmlaPtx9GG0BIFHR5XKZgP/CpzdWyCcyim/YVrmrMovvXxT
UkGc2lfxqp66Pc29uTE8EzW9gFe9LCs0NN1bBy80DTOhHkr2JT4Y6dvm/68ugfnI
0OeN6pI/2BzwuudgixBKEL+KW7MWbzQQlS8a9ussqLnFYWXteCFHtYC2P0NJwJTe
OVgaJLiXsWtDuKAuzJkQfiP0NmFJlGCi9Z5kn4QeMURns+eTZAUY0O8+D8oDXPPp
14CtgO7OEwoPpCoBRyei5vW/P3rfbCIbvlbTkFkWB39/Y3vPXIcTiViUv1Wc0NjF
dJuxAhteM8MUUCrFkYNokiEFaJRA+S5Etw8wJieYTPE08t0niRO1VuECp4UWVm+4
72pZlNi7uq2GQQ7+8jSDuLAtSkURwn1ZRoFmTnmsCa/27RcGAVgjNYb9QjxpaPf6
giW+buhRhuHcVtd+iROU4vXzWklEE+Xlsl94ldoaNirPIW2jh+R/GPPL1rWzO3h+
HzMswTfyIz06rgEIYAM=
=pk0J
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR

2012-12-12 Thread guanxuetao
> Use the new vsprintf extension to avoid any possible
> message interleaving.
>
> Signed-off-by: Joe Perches 

Sorry for my last email, which should not reply all.

Acked-by: Guan Xuetao 

> ---
>  arch/unicore32/kernel/process.c |5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/unicore32/kernel/process.c
> b/arch/unicore32/kernel/process.c
> index 62bad9f..d17a893 100644
> --- a/arch/unicore32/kernel/process.c
> +++ b/arch/unicore32/kernel/process.c
> @@ -169,8 +169,9 @@ void __show_regs(struct pt_regs *regs)
>   init_utsname()->release,
>   (int)strcspn(init_utsname()->version, " "),
>   init_utsname()->version);
> - print_symbol("PC is at %s\n", instruction_pointer(regs));
> - print_symbol("LR is at %s\n", regs->UCreg_lr);
> + printk(KERN_DEFAULT "PC is at %pSR\n",
> +(void *)instruction_pointer(regs));
> + printk(KERN_DEFAULT "LR is at %pSR\n", (void *)regs->UCreg_lr);
>   printk(KERN_DEFAULT "pc : [<%08lx>]lr : [<%08lx>]psr: %08lx\n"
>  "sp : %08lx  ip : %08lx  fp : %08lx\n",
>   regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr,
> --
> 1.7.8.112.g3fd21
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR

2012-12-12 Thread guanxuetao
 Use the new vsprintf extension to avoid any possible
 message interleaving.

 Signed-off-by: Joe Perches j...@perches.com

Sorry for my last email, which should not reply all.

Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 ---
  arch/unicore32/kernel/process.c |5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)

 diff --git a/arch/unicore32/kernel/process.c
 b/arch/unicore32/kernel/process.c
 index 62bad9f..d17a893 100644
 --- a/arch/unicore32/kernel/process.c
 +++ b/arch/unicore32/kernel/process.c
 @@ -169,8 +169,9 @@ void __show_regs(struct pt_regs *regs)
   init_utsname()-release,
   (int)strcspn(init_utsname()-version,  ),
   init_utsname()-version);
 - print_symbol(PC is at %s\n, instruction_pointer(regs));
 - print_symbol(LR is at %s\n, regs-UCreg_lr);
 + printk(KERN_DEFAULT PC is at %pSR\n,
 +(void *)instruction_pointer(regs));
 + printk(KERN_DEFAULT LR is at %pSR\n, (void *)regs-UCreg_lr);
   printk(KERN_DEFAULT pc : [%08lx]lr : [%08lx]psr: %08lx\n
  sp : %08lx  ip : %08lx  fp : %08lx\n,
   regs-UCreg_pc, regs-UCreg_lr, regs-UCreg_asr,
 --
 1.7.8.112.g3fd21


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [RFC PATCH 1/8] mm, vmalloc: change iterating a vmlist to find_vm_area()

2012-12-09 Thread guanxuetao
> The purpose of iterating a vmlist is finding vm area with specific
> virtual address. find_vm_area() is provided for this purpose
> and more efficient, because it uses a rbtree.
> So change it.
>
> Cc: Chris Metcalf 
> Cc: Guan Xuetao 
> Cc: Thomas Gleixner 
> Cc: Ingo Molnar 
> Cc: "H. Peter Anvin" 
> Signed-off-by: Joonsoo Kim 

For UniCore32 bits:
Acked-by: Guan Xuetao 

>
> diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c
> index de0de0c..862782d 100644
> --- a/arch/tile/mm/pgtable.c
> +++ b/arch/tile/mm/pgtable.c
> @@ -592,12 +592,7 @@ void iounmap(volatile void __iomem *addr_in)
>  in parallel. Reuse of the virtual address is prevented by
>  leaving it in the global lists until we're done with it.
>  cpa takes care of the direct mappings. */
> - read_lock(_lock);
> - for (p = vmlist; p; p = p->next) {
> - if (p->addr == addr)
> - break;
> - }
> - read_unlock(_lock);
> + p = find_vm_area((void *)addr);
>
>   if (!p) {
>   pr_err("iounmap: bad address %p\n", addr);
> diff --git a/arch/unicore32/mm/ioremap.c b/arch/unicore32/mm/ioremap.c
> index b7a6055..13068ee 100644
> --- a/arch/unicore32/mm/ioremap.c
> +++ b/arch/unicore32/mm/ioremap.c
> @@ -235,7 +235,7 @@ EXPORT_SYMBOL(__uc32_ioremap_cached);
>  void __uc32_iounmap(volatile void __iomem *io_addr)
>  {
>   void *addr = (void *)(PAGE_MASK & (unsigned long)io_addr);
> - struct vm_struct **p, *tmp;
> + struct vm_struct *vm;
>
>   /*
>* If this is a section based mapping we need to handle it
> @@ -244,17 +244,10 @@ void __uc32_iounmap(volatile void __iomem *io_addr)
>* all the mappings before the area can be reclaimed
>* by someone else.
>*/
> - write_lock(_lock);
> - for (p =  ; (tmp = *p) ; p = >next) {
> - if ((tmp->flags & VM_IOREMAP) && (tmp->addr == addr)) {
> - if (tmp->flags & VM_UNICORE_SECTION_MAPPING) {
> - unmap_area_sections((unsigned long)tmp->addr,
> - tmp->size);
> - }
> - break;
> - }
> - }
> - write_unlock(_lock);
> + vm = find_vm_area(addr);
> + if (vm && (vm->flags & VM_IOREMAP) &&
> + (vm->flags & VM_UNICORE_SECTION_MAPPING))
> + unmap_area_sections((unsigned long)vm->addr, vm->size);
>
>   vunmap(addr);
>  }
> diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
> index 78fe3f1..9a1e658 100644
> --- a/arch/x86/mm/ioremap.c
> +++ b/arch/x86/mm/ioremap.c
> @@ -282,12 +282,7 @@ void iounmap(volatile void __iomem *addr)
>  in parallel. Reuse of the virtual address is prevented by
>  leaving it in the global lists until we're done with it.
>  cpa takes care of the direct mappings. */
> - read_lock(_lock);
> - for (p = vmlist; p; p = p->next) {
> - if (p->addr == (void __force *)addr)
> - break;
> - }
> - read_unlock(_lock);
> + p = find_vm_area((void __force *)addr);
>
>   if (!p) {
>   printk(KERN_ERR "iounmap: bad address %p\n", addr);
> --
> 1.7.9.5
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [RFC PATCH 1/8] mm, vmalloc: change iterating a vmlist to find_vm_area()

2012-12-09 Thread guanxuetao
 The purpose of iterating a vmlist is finding vm area with specific
 virtual address. find_vm_area() is provided for this purpose
 and more efficient, because it uses a rbtree.
 So change it.

 Cc: Chris Metcalf cmetc...@tilera.com
 Cc: Guan Xuetao g...@mprc.pku.edu.cn
 Cc: Thomas Gleixner t...@linutronix.de
 Cc: Ingo Molnar mi...@redhat.com
 Cc: H. Peter Anvin h...@zytor.com
 Signed-off-by: Joonsoo Kim js1...@gmail.com

For UniCore32 bits:
Acked-by: Guan Xuetao g...@mprc.pku.edu.cn


 diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c
 index de0de0c..862782d 100644
 --- a/arch/tile/mm/pgtable.c
 +++ b/arch/tile/mm/pgtable.c
 @@ -592,12 +592,7 @@ void iounmap(volatile void __iomem *addr_in)
  in parallel. Reuse of the virtual address is prevented by
  leaving it in the global lists until we're done with it.
  cpa takes care of the direct mappings. */
 - read_lock(vmlist_lock);
 - for (p = vmlist; p; p = p-next) {
 - if (p-addr == addr)
 - break;
 - }
 - read_unlock(vmlist_lock);
 + p = find_vm_area((void *)addr);

   if (!p) {
   pr_err(iounmap: bad address %p\n, addr);
 diff --git a/arch/unicore32/mm/ioremap.c b/arch/unicore32/mm/ioremap.c
 index b7a6055..13068ee 100644
 --- a/arch/unicore32/mm/ioremap.c
 +++ b/arch/unicore32/mm/ioremap.c
 @@ -235,7 +235,7 @@ EXPORT_SYMBOL(__uc32_ioremap_cached);
  void __uc32_iounmap(volatile void __iomem *io_addr)
  {
   void *addr = (void *)(PAGE_MASK  (unsigned long)io_addr);
 - struct vm_struct **p, *tmp;
 + struct vm_struct *vm;

   /*
* If this is a section based mapping we need to handle it
 @@ -244,17 +244,10 @@ void __uc32_iounmap(volatile void __iomem *io_addr)
* all the mappings before the area can be reclaimed
* by someone else.
*/
 - write_lock(vmlist_lock);
 - for (p = vmlist ; (tmp = *p) ; p = tmp-next) {
 - if ((tmp-flags  VM_IOREMAP)  (tmp-addr == addr)) {
 - if (tmp-flags  VM_UNICORE_SECTION_MAPPING) {
 - unmap_area_sections((unsigned long)tmp-addr,
 - tmp-size);
 - }
 - break;
 - }
 - }
 - write_unlock(vmlist_lock);
 + vm = find_vm_area(addr);
 + if (vm  (vm-flags  VM_IOREMAP) 
 + (vm-flags  VM_UNICORE_SECTION_MAPPING))
 + unmap_area_sections((unsigned long)vm-addr, vm-size);

   vunmap(addr);
  }
 diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
 index 78fe3f1..9a1e658 100644
 --- a/arch/x86/mm/ioremap.c
 +++ b/arch/x86/mm/ioremap.c
 @@ -282,12 +282,7 @@ void iounmap(volatile void __iomem *addr)
  in parallel. Reuse of the virtual address is prevented by
  leaving it in the global lists until we're done with it.
  cpa takes care of the direct mappings. */
 - read_lock(vmlist_lock);
 - for (p = vmlist; p; p = p-next) {
 - if (p-addr == (void __force *)addr)
 - break;
 - }
 - read_unlock(vmlist_lock);
 + p = find_vm_area((void __force *)addr);

   if (!p) {
   printk(KERN_ERR iounmap: bad address %p\n, addr);
 --
 1.7.9.5


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-12 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 0e4a43ed08e2f44aa7b96aa95d0a540d675483e1:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../steve/gfs2-3.0-fixes

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ => uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ => uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ => uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ => uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ => uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ => uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQoeryAAoJENFylnOm3dTb0AUQAL0YxduSqFJHM7mvyTzfhedM
jw0nHoOvA+5N50t4uHmcqoto8R2VY5eTsho7rInKsURilFzwU7SNZBzHQ9cmHX5p
ljO5l5gxMMvTa3SYG0jRBhw1DgeVeHBpuPPfCEproJ5EOIFEFuDUvyUPKNcyEoRV
Ey3QZy4RTfe9DnKwBboqi80pN4Gl6E25VWGz3LnhaFzQXxUyZbm0kycuF1BGWu3F
TUubRs/OMYArNwq4LgZvcFs/7SrsJNSZ4f6wUnobYgJoBhe+Q5W3OS99JNb7PDuY
fxvJQJnbFfYlzk87U1slDTZk+Z7rMJ2sBfguBO13EOtc6DvZeaXMnaiW+HK6CSRW
dSpolVJ7CvCDXP2cFLn3ThMhM8gv0A/XnXnZ7h33zmXNC7HyZq6iMDoq4aqcClko
0LcJwypu1j5c0doQG/mVoiQje7un17pTY9yUNrgR4Ni4v9/Rq6NVy9ksckwEpS7i
g3QhdGtDPDD9zv/YLFId8GX+JbPC2QE2qVaEufj95YAD6AUJVgmqjZiRYKyw+RnY
cdMljswDa4iZC7/dOdOm5hR959Xtc2/XWAG735iWtb99VThgJzanim3pAZi1m+6z
Wp3Heil4IIcCXKdmIsjIeaVINYg00xQto+6+KTFYhtdRn/B6DUNS0+SmstrHVsld
eGUBUqfSFJiBLUIYeFbV
=MPI3
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-12 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 0e4a43ed08e2f44aa7b96aa95d0a540d675483e1:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../steve/gfs2-3.0-fixes

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ = uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ = uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ = uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ = uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ = uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ = uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQoeryAAoJENFylnOm3dTb0AUQAL0YxduSqFJHM7mvyTzfhedM
jw0nHoOvA+5N50t4uHmcqoto8R2VY5eTsho7rInKsURilFzwU7SNZBzHQ9cmHX5p
ljO5l5gxMMvTa3SYG0jRBhw1DgeVeHBpuPPfCEproJ5EOIFEFuDUvyUPKNcyEoRV
Ey3QZy4RTfe9DnKwBboqi80pN4Gl6E25VWGz3LnhaFzQXxUyZbm0kycuF1BGWu3F
TUubRs/OMYArNwq4LgZvcFs/7SrsJNSZ4f6wUnobYgJoBhe+Q5W3OS99JNb7PDuY
fxvJQJnbFfYlzk87U1slDTZk+Z7rMJ2sBfguBO13EOtc6DvZeaXMnaiW+HK6CSRW
dSpolVJ7CvCDXP2cFLn3ThMhM8gv0A/XnXnZ7h33zmXNC7HyZq6iMDoq4aqcClko
0LcJwypu1j5c0doQG/mVoiQje7un17pTY9yUNrgR4Ni4v9/Rq6NVy9ksckwEpS7i
g3QhdGtDPDD9zv/YLFId8GX+JbPC2QE2qVaEufj95YAD6AUJVgmqjZiRYKyw+RnY
cdMljswDa4iZC7/dOdOm5hR959Xtc2/XWAG735iWtb99VThgJzanim3pAZi1m+6z
Wp3Heil4IIcCXKdmIsjIeaVINYg00xQto+6+KTFYhtdRn/B6DUNS0+SmstrHVsld
eGUBUqfSFJiBLUIYeFbV
=MPI3
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-11 Thread guanxuetao
> On Fri, Nov 9, 2012 at 10:35 AM, guanxuetao 
> wrote:
>>
>>   git://github.com/gxt/linux.git ..BRANCH.NOT.VERIFIED..
>
> Let's try that again. With you checking what you send me. I hope
> there's a signed tag somewhere, but the above certainly isn't that..
>
>  Linus
>

I used following command to generate a signed tag.
  'git tag for-linus -s -u g...@mprc.pku.edu.cn'
Then, I pushed this tag into github.com by:
  'git push github -f --tags'
Finally, I checked github repo, and tag 'for-linus' can be found.

Could you tell me what's wrong with my operation?

Thanks & Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-11 Thread guanxuetao
 On Fri, Nov 9, 2012 at 10:35 AM, guanxuetao guanxue...@mprc.pku.edu.cn
 wrote:

   git://github.com/gxt/linux.git ..BRANCH.NOT.VERIFIED..

 Let's try that again. With you checking what you send me. I hope
 there's a signed tag somewhere, but the above certainly isn't that..

  Linus


I used following command to generate a signed tag.
  'git tag for-linus -s -u g...@mprc.pku.edu.cn'
Then, I pushed this tag into github.com by:
  'git push github -f --tags'
Finally, I checked github repo, and tag 'for-linus' can be found.

Could you tell me what's wrong with my operation?

Thanks  Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-09 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 0e4a43ed08e2f44aa7b96aa95d0a540d675483e1:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../steve/gfs2-3.0-fixes

are available in the git repository at:

  git://github.com/gxt/linux.git ..BRANCH.NOT.VERIFIED..

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ => uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ => uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ => uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ => uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ => uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ => uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQnM5BAAoJENFylnOm3dTb9aoP/in4QBnMN/+lO2JaiMw4aIAI
CkWKfNCg47NHo1D53ZlOH9kCulIrM4bH3uOXwnnGtHDfvlOaX/BdxOKkqEpovv0r
DJXRzQVuGsbTW2A94AQZYDqOUlgHraO4WvAqQeItoEwZqQUptsHHz36ICgLpUGur
CUAtTWeZ14b3xndY4QEUTThUno+cvIu+J6cDOTTXGcOGqfTSkI7EuKSdAVsAPf9K
RaxLGw+k0OekZmcaLNCLH1B+T2GRskNF5UhTLnb8Sa2gcxGwc2sNoPmm0B+Tj6bC
lS2BneX1LWkWEkisl94rZK7T0OirCzr5bXsgSAChVpykf5biN6SBXjQUtV660yGy
yP/vdWDu4ISrqv625v/CKj8Ar476SEkCljKZZ0m2mUWoPBrFAt3N7+KnLUAZXYtd
tsFx/vvWb15Z6PZktLDfcR47ypEd7nf3/FY8h8OvvZg4GJOW+NxIEOHA/ZOXUV+7
yQObEv7+40kB+ZLOBkPy2gDhUIwAsXvaAnj6HB8zFsC9Z3W5tl94vn9RkGiW+6P6
rd3qNgqmHsXBFLsARq2Ct9dP2O6GE3D90EMMq78iP0mE5Ow37KjAmKxWwJSd9KCB
WnDt1rSzsKcmayIMFgVFWJy8dG9rUANaZvIdl/vrqA0tsYcs/3f0lEcwn1/7/maS
qsHCm+R2kL757t/qF2G/
=b4YB
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc4

2012-11-09 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 0e4a43ed08e2f44aa7b96aa95d0a540d675483e1:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../steve/gfs2-3.0-fixes

are available in the git repository at:

  git://github.com/gxt/linux.git ..BRANCH.NOT.VERIFIED..

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ = uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ = uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ = uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ = uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ = uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ = uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQnM5BAAoJENFylnOm3dTb9aoP/in4QBnMN/+lO2JaiMw4aIAI
CkWKfNCg47NHo1D53ZlOH9kCulIrM4bH3uOXwnnGtHDfvlOaX/BdxOKkqEpovv0r
DJXRzQVuGsbTW2A94AQZYDqOUlgHraO4WvAqQeItoEwZqQUptsHHz36ICgLpUGur
CUAtTWeZ14b3xndY4QEUTThUno+cvIu+J6cDOTTXGcOGqfTSkI7EuKSdAVsAPf9K
RaxLGw+k0OekZmcaLNCLH1B+T2GRskNF5UhTLnb8Sa2gcxGwc2sNoPmm0B+Tj6bC
lS2BneX1LWkWEkisl94rZK7T0OirCzr5bXsgSAChVpykf5biN6SBXjQUtV660yGy
yP/vdWDu4ISrqv625v/CKj8Ar476SEkCljKZZ0m2mUWoPBrFAt3N7+KnLUAZXYtd
tsFx/vvWb15Z6PZktLDfcR47ypEd7nf3/FY8h8OvvZg4GJOW+NxIEOHA/ZOXUV+7
yQObEv7+40kB+ZLOBkPy2gDhUIwAsXvaAnj6HB8zFsC9Z3W5tl94vn9RkGiW+6P6
rd3qNgqmHsXBFLsARq2Ct9dP2O6GE3D90EMMq78iP0mE5Ow37KjAmKxWwJSd9KCB
WnDt1rSzsKcmayIMFgVFWJy8dG9rUANaZvIdl/vrqA0tsYcs/3f0lEcwn1/7/maS
qsHCm+R2kL757t/qF2G/
=b4YB
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc3

2012-11-02 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 8c23f406c6d86808726ace580657186bc3b44587:
  Linus Torvalds (1):
Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ => uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ => uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ => uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ => uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ => uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ => uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQk5LlAAoJENFylnOm3dTbo1EP/1n+OguOJgzt9Xo3B8Y9ZO0I
abbA44rYzCutWrrXbnwh6/Yb84w+L8VN5Wts+OW4L6P5f751SPkDxWTMS3ObpP8X
h3YxW0qVfItGKeJv2jv390TrFUmgS+bXRc26NIUr7iwi1y8DMJ7X6tiLH9agRu2r
c/e5+IC0zmtRfhKlFYdEHY8KD+Eee4gKAg8ZsB+SMql9xqx3mh/FCxE2fTshvA6v
djx0gLohUanBJWeyIc8lFZyLP5uvbfaSVfn5Qf3T43i+2uGMnX34PhZaWj3UNG8c
yvl5x0DnC2bx96Vg8iuJLIZAgi0mqqZcGMH5YDBnKzjHCEJFvEvLL2udqp/5/f6Q
27AxC9krOiXfx6DWhyPw3mRp38IhR8nApCo8dNXES+ePjZiRiDHSRqY3ZIo+QbzN
b7prxiHKYP9OLewXbNVRGQvKSy8hNGhyL+hCXUIR/azfZ8dBm6eni2cdIO11pHPm
dYqvT4UrU5R3zP4Nq4ZIPMV88vjknCJp5l5cTZol7j7niOEvaSuU5TYezUF2FA/I
RI2ZEsDzltKR+o7G6hYd+swlQCs/R7o3pYYwWEe7/YZp88lA3+0fj3V1wdmwaeuP
/ZKNWoiMV7ZINCkwaFCtJRhC0pCvh4lndw83SPzFKrNyKDgTH3ANH3g7q2wLZ0ha
4sevLKaEHJJPI00wSXiS
=pUws
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc3

2012-11-02 Thread guanxuetao
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following changes since commit 8c23f406c6d86808726ace580657186bc3b44587:
  Linus Torvalds (1):
Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ = uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ = uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ = uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ = uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ = uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ = uapi}/asm/unistd.h (92%)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQk5LlAAoJENFylnOm3dTbo1EP/1n+OguOJgzt9Xo3B8Y9ZO0I
abbA44rYzCutWrrXbnwh6/Yb84w+L8VN5Wts+OW4L6P5f751SPkDxWTMS3ObpP8X
h3YxW0qVfItGKeJv2jv390TrFUmgS+bXRc26NIUr7iwi1y8DMJ7X6tiLH9agRu2r
c/e5+IC0zmtRfhKlFYdEHY8KD+Eee4gKAg8ZsB+SMql9xqx3mh/FCxE2fTshvA6v
djx0gLohUanBJWeyIc8lFZyLP5uvbfaSVfn5Qf3T43i+2uGMnX34PhZaWj3UNG8c
yvl5x0DnC2bx96Vg8iuJLIZAgi0mqqZcGMH5YDBnKzjHCEJFvEvLL2udqp/5/f6Q
27AxC9krOiXfx6DWhyPw3mRp38IhR8nApCo8dNXES+ePjZiRiDHSRqY3ZIo+QbzN
b7prxiHKYP9OLewXbNVRGQvKSy8hNGhyL+hCXUIR/azfZ8dBm6eni2cdIO11pHPm
dYqvT4UrU5R3zP4Nq4ZIPMV88vjknCJp5l5cTZol7j7niOEvaSuU5TYezUF2FA/I
RI2ZEsDzltKR+o7G6hYd+swlQCs/R7o3pYYwWEe7/YZp88lA3+0fj3V1wdmwaeuP
/ZKNWoiMV7ZINCkwaFCtJRhC0pCvh4lndw83SPzFKrNyKDgTH3ANH3g7q2wLZ0ha
4sevLKaEHJJPI00wSXiS
=pUws
-END PGP SIGNATURE-
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc2

2012-10-28 Thread guanxuetao
The following changes since commit e657e078d3dfa9f96976db7a2b5fd7d7c9f1f1a6:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../davem/net

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ => uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ => uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ => uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ => uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ => uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ => uapi}/asm/unistd.h (92%)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 030/193] arch/unicore32: remove CONFIG_EXPERIMENTAL

2012-10-28 Thread guanxuetao
> This config item has not carried much meaning for a while now and is
> almost always enabled by default. As agreed during the Linux kernel
> summit, remove it.
>
> CC: Guan Xuetao 
> Signed-off-by: Kees Cook 

Thanks. I will push it in my tree.

Acked-by: Guan Xuetao 

> ---
>  arch/unicore32/Kconfig |2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
> index e5c5473..4def59a 100644
> --- a/arch/unicore32/Kconfig
> +++ b/arch/unicore32/Kconfig
> @@ -216,7 +216,7 @@ config PUV3_GPIO
>   bool
>   depends on !ARCH_FPGA
>   select GENERIC_GPIO
> - select GPIO_SYSFS if EXPERIMENTAL
> + select GPIO_SYSFS
>   default y
>
>  if PUV3_NB0916
> --
> 1.7.9.5
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] asm-generic/io.h: remove asm/cacheflush.h include

2012-10-28 Thread guanxuetao
> Including  from  prevents
> cacheflush.h being able to use I/O functions like readl and writel due
> to circular include dependencies. It doesn't appear as if anything from
> cacheflush.h is actually used by the generic io.h, so remove the
> include.
>
> I've compile tested a defconfig compilation of blackfin, openrisc (which
> needed  including from it's  to get the PAGE_*
> definitions), and xtensa.
>
> Other architectures which use asm-generic/io.h are score and unicore32,
> and looking at their io.h I don't see any obvious problems.
>
> Signed-off-by: James Hogan 
> Cc: Arnd Bergmann 
> Cc: Jonas Bonn 
> Cc: Chris Zankel 
> Cc: Max Filippov 
> Cc: Mike Frysinger 
> Cc: Chen Liqin 
> Cc: Lennox Wu 
> Cc: Guan Xuetao 

Acked-by: Guan Xuetao 

> ---
> Any compile testing of score and unicore32 anybody could provide would
> be great.
>
>  arch/openrisc/include/asm/io.h |1 +
>  include/asm-generic/io.h   |1 -
>  2 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/openrisc/include/asm/io.h
> b/arch/openrisc/include/asm/io.h
> index 07f5299..7c69139 100644
> --- a/arch/openrisc/include/asm/io.h
> +++ b/arch/openrisc/include/asm/io.h
> @@ -30,6 +30,7 @@
>  #define PIO_MASK 0
>
>  #include 
> +#include 
>
>  extern void __iomem *__ioremap(phys_addr_t offset, unsigned long size,
>   pgprot_t prot);
> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
> index 448303b..616eea5 100644
> --- a/include/asm-generic/io.h
> +++ b/include/asm-generic/io.h
> @@ -12,7 +12,6 @@
>  #define __ASM_GENERIC_IO_H
>
>  #include  /* I/O is all done through memory accesses */
> -#include 
>  #include 
>
>  #ifdef CONFIG_GENERIC_IOMAP
> --
> 1.7.7.6
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] asm-generic/io.h: remove asm/cacheflush.h include

2012-10-28 Thread guanxuetao
 Including asm/cacheflush.h from asm-generic/io.h prevents
 cacheflush.h being able to use I/O functions like readl and writel due
 to circular include dependencies. It doesn't appear as if anything from
 cacheflush.h is actually used by the generic io.h, so remove the
 include.

 I've compile tested a defconfig compilation of blackfin, openrisc (which
 needed asm/pgtable.h including from it's asm/io.h to get the PAGE_*
 definitions), and xtensa.

 Other architectures which use asm-generic/io.h are score and unicore32,
 and looking at their io.h I don't see any obvious problems.

 Signed-off-by: James Hogan james.ho...@imgtec.com
 Cc: Arnd Bergmann a...@arndb.de
 Cc: Jonas Bonn jo...@southpole.se
 Cc: Chris Zankel ch...@zankel.net
 Cc: Max Filippov jcmvb...@gmail.com
 Cc: Mike Frysinger vap...@gentoo.org
 Cc: Chen Liqin liqin.c...@sunplusct.com
 Cc: Lennox Wu lennox...@gmail.com
 Cc: Guan Xuetao g...@mprc.pku.edu.cn

Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 ---
 Any compile testing of score and unicore32 anybody could provide would
 be great.

  arch/openrisc/include/asm/io.h |1 +
  include/asm-generic/io.h   |1 -
  2 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/arch/openrisc/include/asm/io.h
 b/arch/openrisc/include/asm/io.h
 index 07f5299..7c69139 100644
 --- a/arch/openrisc/include/asm/io.h
 +++ b/arch/openrisc/include/asm/io.h
 @@ -30,6 +30,7 @@
  #define PIO_MASK 0

  #include asm-generic/io.h
 +#include asm/pgtable.h

  extern void __iomem *__ioremap(phys_addr_t offset, unsigned long size,
   pgprot_t prot);
 diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
 index 448303b..616eea5 100644
 --- a/include/asm-generic/io.h
 +++ b/include/asm-generic/io.h
 @@ -12,7 +12,6 @@
  #define __ASM_GENERIC_IO_H

  #include asm/page.h /* I/O is all done through memory accesses */
 -#include asm/cacheflush.h
  #include linux/types.h

  #ifdef CONFIG_GENERIC_IOMAP
 --
 1.7.7.6



--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 030/193] arch/unicore32: remove CONFIG_EXPERIMENTAL

2012-10-28 Thread guanxuetao
 This config item has not carried much meaning for a while now and is
 almost always enabled by default. As agreed during the Linux kernel
 summit, remove it.

 CC: Guan Xuetao g...@mprc.pku.edu.cn
 Signed-off-by: Kees Cook keesc...@chromium.org

Thanks. I will push it in my tree.

Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 ---
  arch/unicore32/Kconfig |2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
 index e5c5473..4def59a 100644
 --- a/arch/unicore32/Kconfig
 +++ b/arch/unicore32/Kconfig
 @@ -216,7 +216,7 @@ config PUV3_GPIO
   bool
   depends on !ARCH_FPGA
   select GENERIC_GPIO
 - select GPIO_SYSFS if EXPERIMENTAL
 + select GPIO_SYSFS
   default y

  if PUV3_NB0916
 --
 1.7.9.5


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[GIT PULL REQUEST] UniCore32 update for v3.7-rc2

2012-10-28 Thread guanxuetao
The following changes since commit e657e078d3dfa9f96976db7a2b5fd7d7c9f1f1a6:
  Linus Torvalds (1):
Merge git://git.kernel.org/.../davem/net

are available in the git repository at:

  git://github.com/gxt/linux.git unicore32

Al Viro (2):
  unicore32: switch to generic kernel_thread()/kernel_execve()
  unicore32: switch to generic sys_execve()

David Howells (1):
  UAPI: (Scripted) Disintegrate arch/unicore32/include/asm

Guan Xuetao (4):
  UniCore32 bugfix: add missed CONFIG_ZONE_DMA
  UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
  UniCore32-bugfix: Remove definitions in asm/bug.h to solve difference 
between native and cross compiler
  unicore32: Use Kbuild infrastructure for kvm_para.h

Kautuk Consul (1):
  unicore32/mm/fault.c: Port OOM changes to do_pf

Kees Cook (1):
  arch/unicore32: remove CONFIG_EXPERIMENTAL

 arch/unicore32/Kconfig |7 ++-
 arch/unicore32/include/asm/Kbuild  |1 -
 arch/unicore32/include/asm/bug.h   |5 -
 arch/unicore32/include/asm/cmpxchg.h   |2 +-
 arch/unicore32/include/asm/kvm_para.h  |1 -
 arch/unicore32/include/asm/processor.h |5 -
 arch/unicore32/include/asm/ptrace.h|   76 +
 arch/unicore32/include/uapi/asm/Kbuild |7 ++
 arch/unicore32/include/{ = uapi}/asm/byteorder.h  |0
 arch/unicore32/include/uapi/asm/ptrace.h   |   90 
 arch/unicore32/include/{ = uapi}/asm/sigcontext.h |0
 arch/unicore32/include/{ = uapi}/asm/unistd.h |1 +
 arch/unicore32/kernel/entry.S  |   20 ++---
 arch/unicore32/kernel/process.c|   58 +++--
 arch/unicore32/kernel/setup.h  |6 ++
 arch/unicore32/kernel/sys.c|   63 --
 arch/unicore32/mm/fault.c  |   37 ++--
 17 files changed, 160 insertions(+), 219 deletions(-)
 delete mode 100644 arch/unicore32/include/asm/kvm_para.h
 rename arch/unicore32/include/{ = uapi}/asm/byteorder.h (100%)
 create mode 100644 arch/unicore32/include/uapi/asm/ptrace.h
 rename arch/unicore32/include/{ = uapi}/asm/sigcontext.h (100%)
 rename arch/unicore32/include/{ = uapi}/asm/unistd.h (92%)
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/2] unicore32: switch to generic kernel_thread()/kernel_execve()

2012-10-19 Thread guanxuetao
> On Fri, Oct 19, 2012 at 04:43:09PM +0800, Guan Xuetao wrote:
>> From: Al Viro 
>>
>> Signed-off-by: Al Viro 
>> Acked-and-Tested-by: Guan Xuetao 
>
> You mean, it worked modulo obvious missing ')'?  Wow... OK, merged
> into signal.git#for-next, obviously in no-rebase mode (as the matter
> of fact, I'm dropping the local branch completely).
>
I've added')' in the patch. Then it works.
In addition, I pushed these two patches into my tree.

Thanks & regards,
Guan Xuetao
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/2] unicore32: switch to generic kernel_thread()/kernel_execve()

2012-10-19 Thread guanxuetao
 On Fri, Oct 19, 2012 at 04:43:09PM +0800, Guan Xuetao wrote:
 From: Al Viro v...@zeniv.linux.org.uk

 Signed-off-by: Al Viro v...@zeniv.linux.org.uk
 Acked-and-Tested-by: Guan Xuetao g...@mprc.pku.edu.cn

 You mean, it worked modulo obvious missing ')'?  Wow... OK, merged
 into signal.git#for-next, obviously in no-rebase mode (as the matter
 of fact, I'm dropping the local branch completely).

I've added')' in the patch. Then it works.
In addition, I pushed these two patches into my tree.

Thanks  regards,
Guan Xuetao
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 23/25] unicore32: Use Kbuild infrastructure for kvm_para.h

2012-10-13 Thread guanxuetao
> From: Steven Rostedt 
>
> All the headers but kvm_para.h use the Kbuild infrastructure to
> get to the asm-generic headers.

I merged the uapi patch for unicore32.
In that patch, kvm_para.h was moved to
arch/unicore32/include/uapi/asm/kvm_para.h.
Anyway, I'd like to apply this patch based on uapi modification.

Thanks & Regards,
Guan Xuetao

>
> Cc: linux-kbu...@vger.kernel.org
> Cc: Guan Xuetao 
> Signed-off-by: Steven Rostedt 
> ---
>  arch/unicore32/include/asm/Kbuild |1 +
>  arch/unicore32/include/asm/kvm_para.h |1 -
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  delete mode 100644 arch/unicore32/include/asm/kvm_para.h
>
> diff --git a/arch/unicore32/include/asm/Kbuild
> b/arch/unicore32/include/asm/Kbuild
> index c910c98..15b47f2 100644
> --- a/arch/unicore32/include/asm/Kbuild
> +++ b/arch/unicore32/include/asm/Kbuild
> @@ -24,6 +24,7 @@ generic-y += ipcbuf.h
>  generic-y += irq_regs.h
>  generic-y += kdebug.h
>  generic-y += kmap_types.h
> +generic-y += kvm_para.h
>  generic-y += local.h
>  generic-y += mman.h
>  generic-y += module.h
> diff --git a/arch/unicore32/include/asm/kvm_para.h
> b/arch/unicore32/include/asm/kvm_para.h
> deleted file mode 100644
> index 14fab8f..000
> --- a/arch/unicore32/include/asm/kvm_para.h
> +++ /dev/null
> @@ -1 +0,0 @@
> -#include 
> --
> 1.7.10.4
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 23/25] unicore32: Use Kbuild infrastructure for kvm_para.h

2012-10-13 Thread guanxuetao
 From: Steven Rostedt srost...@redhat.com

 All the headers but kvm_para.h use the Kbuild infrastructure to
 get to the asm-generic headers.

I merged the uapi patch for unicore32.
In that patch, kvm_para.h was moved to
arch/unicore32/include/uapi/asm/kvm_para.h.
Anyway, I'd like to apply this patch based on uapi modification.

Thanks  Regards,
Guan Xuetao


 Cc: linux-kbu...@vger.kernel.org
 Cc: Guan Xuetao g...@mprc.pku.edu.cn
 Signed-off-by: Steven Rostedt rost...@goodmis.org
 ---
  arch/unicore32/include/asm/Kbuild |1 +
  arch/unicore32/include/asm/kvm_para.h |1 -
  2 files changed, 1 insertion(+), 1 deletion(-)
  delete mode 100644 arch/unicore32/include/asm/kvm_para.h

 diff --git a/arch/unicore32/include/asm/Kbuild
 b/arch/unicore32/include/asm/Kbuild
 index c910c98..15b47f2 100644
 --- a/arch/unicore32/include/asm/Kbuild
 +++ b/arch/unicore32/include/asm/Kbuild
 @@ -24,6 +24,7 @@ generic-y += ipcbuf.h
  generic-y += irq_regs.h
  generic-y += kdebug.h
  generic-y += kmap_types.h
 +generic-y += kvm_para.h
  generic-y += local.h
  generic-y += mman.h
  generic-y += module.h
 diff --git a/arch/unicore32/include/asm/kvm_para.h
 b/arch/unicore32/include/asm/kvm_para.h
 deleted file mode 100644
 index 14fab8f..000
 --- a/arch/unicore32/include/asm/kvm_para.h
 +++ /dev/null
 @@ -1 +0,0 @@
 -#include asm-generic/kvm_para.h
 --
 1.7.10.4



--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-22 Thread guanxuetao
> On Sat, Sep 22, 2012 at 10:56:30AM +0800, guanxue...@mprc.pku.edu.cn
> wrote:
>> > Some of the boilerplate code can be eliminated by using this macro.
>> The
>> > driver was previously registered with an arch_initcall(), so
>> technically
>> > this is no longer the same, but when the driver is moved to the PWM
>> > framework, deferred probing will take care of any driver probe
>> ordering
>> > issues.
>> >
>> > Signed-off-by: Thierry Reding 
>>
>> Tested-by: Qin Rui 
>> Acked-by: Guan Xuetao 
>>
>> Thanks & Regards,
>> Guan Xuetao
>
> Great! If you don't mind I'll take this through the PWM tree with your
> Acked-by.
>
> Thierry
>

It's my pleasure.

Thanks & Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-22 Thread guanxuetao
> On Sat, Sep 22, 2012 at 10:56:30AM +0800, guanxue...@mprc.pku.edu.cn
> wrote:
>> > Some of the boilerplate code can be eliminated by using this macro.
>> The
>> > driver was previously registered with an arch_initcall(), so
>> technically
>> > this is no longer the same, but when the driver is moved to the PWM
>> > framework, deferred probing will take care of any driver probe
>> ordering
>> > issues.
>> >
>> > Signed-off-by: Thierry Reding 
>>
>> Tested-by: Qin Rui 
>> Acked-by: Guan Xuetao 
>>
>> Thanks & Regards,
>> Guan Xuetao
>
> Great! If you don't mind I'll take this through the PWM tree with your
> Acked-by.
>
> Thierry
>

It's my pleasure.

Thanks & Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-22 Thread guanxuetao
 On Sat, Sep 22, 2012 at 10:56:30AM +0800, guanxue...@mprc.pku.edu.cn
 wrote:
  Some of the boilerplate code can be eliminated by using this macro.
 The
  driver was previously registered with an arch_initcall(), so
 technically
  this is no longer the same, but when the driver is moved to the PWM
  framework, deferred probing will take care of any driver probe
 ordering
  issues.
 
  Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

 Tested-by: Qin Rui qin...@mprc.pku.edu.cn
 Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 Thanks  Regards,
 Guan Xuetao

 Great! If you don't mind I'll take this through the PWM tree with your
 Acked-by.

 Thierry


It's my pleasure.

Thanks  Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-22 Thread guanxuetao
 On Sat, Sep 22, 2012 at 10:56:30AM +0800, guanxue...@mprc.pku.edu.cn
 wrote:
  Some of the boilerplate code can be eliminated by using this macro.
 The
  driver was previously registered with an arch_initcall(), so
 technically
  this is no longer the same, but when the driver is moved to the PWM
  framework, deferred probing will take care of any driver probe
 ordering
  issues.
 
  Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

 Tested-by: Qin Rui qin...@mprc.pku.edu.cn
 Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 Thanks  Regards,
 Guan Xuetao

 Great! If you don't mind I'll take this through the PWM tree with your
 Acked-by.

 Thierry


It's my pleasure.

Thanks  Regards,
Guan Xuetao
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 4/5] unicore32: pwm: Use managed resource allocations

2012-09-21 Thread guanxuetao
> This commit uses the managed resource allocation functions to simplify
> the cleanup paths on error and removal.
>
> Signed-off-by: Thierry Reding 

Tested-by: Qin Rui 
Acked-by: Guan Xuetao 

Thanks & Regards,
Guan Xuetao

> ---
>  arch/unicore32/kernel/pwm.c | 47
> +
>  1 file changed, 9 insertions(+), 38 deletions(-)
>
> diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
> index 7e23470..724e860 100644
> --- a/arch/unicore32/kernel/pwm.c
> +++ b/arch/unicore32/kernel/pwm.c
> @@ -160,19 +160,17 @@ static int __devinit pwm_probe(struct
> platform_device *pdev)
>  {
>   struct pwm_device *pwm;
>   struct resource *r;
> - int ret = 0;
>
> - pwm = kzalloc(sizeof(struct pwm_device), GFP_KERNEL);
> + pwm = devm_kzalloc(>dev, sizeof(struct pwm_device), GFP_KERNEL);
>   if (pwm == NULL) {
>   dev_err(>dev, "failed to allocate memory\n");
>   return -ENOMEM;
>   }
>
> - pwm->clk = clk_get(NULL, "OST_CLK");
> - if (IS_ERR(pwm->clk)) {
> - ret = PTR_ERR(pwm->clk);
> - goto err_free;
> - }
> + pwm->clk = devm_clk_get(>dev, "OST_CLK");
> + if (IS_ERR(pwm->clk))
> + return PTR_ERR(pwm->clk);
> +
>   pwm->clk_enabled = 0;
>
>   pwm->use_count = 0;
> @@ -182,41 +180,21 @@ static int __devinit pwm_probe(struct
> platform_device *pdev)
>   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>   if (r == NULL) {
>   dev_err(>dev, "no memory resource defined\n");
> - ret = -ENODEV;
> - goto err_free_clk;
> - }
> -
> - r = request_mem_region(r->start, resource_size(r), pdev->name);
> - if (r == NULL) {
> - dev_err(>dev, "failed to request memory resource\n");
> - ret = -EBUSY;
> - goto err_free_clk;
> + return -ENODEV;
>   }
>
> - pwm->base = ioremap_nocache(r->start, resource_size(r));
> - if (pwm->base == NULL) {
> - dev_err(>dev, "failed to remap memory resource\n");
> - ret = -EADDRNOTAVAIL;
> - goto err_release_mem;
> - }
> + pwm->base = devm_request_and_ioremap(>dev, r);
> + if (pwm->base == NULL)
> + return -EADDRNOTAVAIL;
>
>   __add_pwm(pwm);
>   platform_set_drvdata(pdev, pwm);
>   return 0;
> -
> -err_release_mem:
> - release_mem_region(r->start, resource_size(r));
> -err_free_clk:
> - clk_put(pwm->clk);
> -err_free:
> - kfree(pwm);
> - return ret;
>  }
>
>  static int __devexit pwm_remove(struct platform_device *pdev)
>  {
>   struct pwm_device *pwm;
> - struct resource *r;
>
>   pwm = platform_get_drvdata(pdev);
>   if (pwm == NULL)
> @@ -226,13 +204,6 @@ static int __devexit pwm_remove(struct
> platform_device *pdev)
>   list_del(>node);
>   mutex_unlock(_lock);
>
> - iounmap(pwm->base);
> -
> - r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - release_mem_region(r->start, resource_size(r));
> -
> - clk_put(pwm->clk);
> - kfree(pwm);
>   return 0;
>  }
>
> --
> 1.7.12
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 5/5] pwm: Move PUV3 PWM driver to PWM framework

2012-09-21 Thread guanxuetao
> This commit moves the driver to drivers/pwm and converts it to the new
> PWM framework.
>
> Signed-off-by: Thierry Reding 

Tested-by: Qin Rui 
Acked-by: Guan Xuetao 

Thanks & Regards,
Guan Xuetao


> ---
>  arch/unicore32/Kconfig |  12 +--
>  arch/unicore32/kernel/Makefile |   1 -
>  arch/unicore32/kernel/pwm.c| 219
> -
>  drivers/pwm/Kconfig|  10 +-
>  drivers/pwm/Makefile   |   1 +
>  drivers/pwm/pwm-puv3.c | 161 ++
>  6 files changed, 173 insertions(+), 231 deletions(-)
>  delete mode 100644 arch/unicore32/kernel/pwm.c
>  create mode 100644 drivers/pwm/pwm-puv3.c
>
> diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
> index b0a4743..91e2037 100644
> --- a/arch/unicore32/Kconfig
> +++ b/arch/unicore32/Kconfig
> @@ -20,9 +20,6 @@ config UNICORE32
> designs licensed by PKUnity Ltd.
> Please see web page at .
>
> -config HAVE_PWM
> - bool
> -
>  config GENERIC_GPIO
>   def_bool y
>
> @@ -105,7 +102,8 @@ config PUV3_DB0913
>
>  config PUV3_NB0916
>   bool "NetBook board (0916)"
> - select HAVE_PWM
> + select PWM
> + select PWM_PUV3
>
>  config PUV3_SMW0919
>   bool "Security Mini-Workstation board (0919)"
> @@ -219,12 +217,6 @@ config PUV3_GPIO
>   select GPIO_SYSFS if EXPERIMENTAL
>   default y
>
> -config PUV3_PWM
> - tristate
> - default BACKLIGHT_PWM
> - help
> -   Enable support for NB0916 PWM controllers
> -
>  if PUV3_NB0916
>
>  menu "PKUnity NetBook-0916 Features"
> diff --git a/arch/unicore32/kernel/Makefile
> b/arch/unicore32/kernel/Makefile
> index 3240101..fa497e0 100644
> --- a/arch/unicore32/kernel/Makefile
> +++ b/arch/unicore32/kernel/Makefile
> @@ -16,7 +16,6 @@ obj-$(CONFIG_UNICORE_FPU_F64)   += fpu-ucf64.o
>  obj-$(CONFIG_ARCH_PUV3)  += clock.o irq.o time.o
>
>  obj-$(CONFIG_PUV3_GPIO)  += gpio.o
> -obj-$(CONFIG_PUV3_PWM)   += pwm.o
>  obj-$(CONFIG_PUV3_PM)+= pm.o sleep.o
>  obj-$(CONFIG_HIBERNATION)+= hibernate.o hibernate_asm.o
>
> diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
> deleted file mode 100644
> index 724e860..000
> --- a/arch/unicore32/kernel/pwm.c
> +++ /dev/null
> @@ -1,219 +0,0 @@
> -/*
> - * linux/arch/unicore32/kernel/pwm.c
> - *
> - * Code specific to PKUnity SoC and UniCore ISA
> - *
> - *   Maintained by GUAN Xue-tao 
> - *   Copyright (C) 2001-2010 Guan Xuetao
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - */
> -
> -#include 
> -#include 
> -#include 
> -#include 
> -#include 
> -#include 
> -#include 
> -#include 
> -
> -#include 
> -#include 
> -
> -struct pwm_device {
> - struct list_headnode;
> - struct platform_device *pdev;
> -
> - void __iomem*base;
> -
> - const char  *label;
> - struct clk  *clk;
> - int clk_enabled;
> -
> - unsigned intuse_count;
> - unsigned intpwm_id;
> -};
> -
> -/*
> - * period_ns = 10^9 * (PRESCALE + 1) * (PV + 1) / PWM_CLK_RATE
> - * duty_ns   = 10^9 * (PRESCALE + 1) * DC / PWM_CLK_RATE
> - */
> -int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
> -{
> - unsigned long long c;
> - unsigned long period_cycles, prescale, pv, dc;
> -
> - if (pwm == NULL || period_ns == 0 || duty_ns > period_ns)
> - return -EINVAL;
> -
> - c = clk_get_rate(pwm->clk);
> - c = c * period_ns;
> - do_div(c, 10);
> - period_cycles = c;
> -
> - if (period_cycles < 1)
> - period_cycles = 1;
> - prescale = (period_cycles - 1) / 1024;
> - pv = period_cycles / (prescale + 1) - 1;
> -
> - if (prescale > 63)
> - return -EINVAL;
> -
> - if (duty_ns == period_ns)
> - dc = OST_PWMDCCR_FDCYCLE;
> - else
> - dc = (pv + 1) * duty_ns / period_ns;
> -
> - /* NOTE: the clock to PWM has to be enabled first
> -  * before writing to the registers
> -  */
> - clk_enable(pwm->clk);
> -
> - writel(prescale, pwm->base + OST_PWM_PWCR);
> - writel(pv - dc, pwm->base + OST_PWM_DCCR);
> - writel(pv, pwm->base + OST_PWM_PCR);
> -
> - clk_disable(pwm->clk);
> -
> - return 0;
> -}
> -EXPORT_SYMBOL(pwm_config);
> -
> -int pwm_enable(struct pwm_device *pwm)
> -{
> - int rc = 0;
> -
> - if (!pwm->clk_enabled) {
> - rc = clk_enable(pwm->clk);
> - if (!rc)
> - pwm->clk_enabled = 1;
> - }
> - return rc;
> -}
> -EXPORT_SYMBOL(pwm_enable);
> -
> -void pwm_disable(struct pwm_device *pwm)
> -{
> - if (pwm->clk_enabled) {
> - clk_disable(pwm->clk);
> - pwm->clk_enabled = 0;
> - }
> -}
> -EXPORT_SYMBOL(pwm_disable);

Re: [PATCH v2 3/5] unicore32: pwm: Remove unnecessary indirection

2012-09-21 Thread guanxuetao
> Calling the actual probing function through a proxy isn't required and
> makes the code needlessly complex.
>
> Signed-off-by: Thierry Reding 

Tested-by: Qin Rui 
Acked-by: Guan Xuetao 

Thanks & Regards,
Guan Xuetao


> ---
>  arch/unicore32/kernel/pwm.c | 23 ++-
>  1 file changed, 6 insertions(+), 17 deletions(-)
>
> diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
> index 012c54a..7e23470 100644
> --- a/arch/unicore32/kernel/pwm.c
> +++ b/arch/unicore32/kernel/pwm.c
> @@ -156,8 +156,7 @@ static inline void __add_pwm(struct pwm_device *pwm)
>   mutex_unlock(_lock);
>  }
>
> -static struct pwm_device *pwm_probe(struct platform_device *pdev,
> - unsigned int pwm_id, struct pwm_device *parent_pwm)
> +static int __devinit pwm_probe(struct platform_device *pdev)
>  {
>   struct pwm_device *pwm;
>   struct resource *r;
> @@ -166,7 +165,7 @@ static struct pwm_device *pwm_probe(struct
> platform_device *pdev,
>   pwm = kzalloc(sizeof(struct pwm_device), GFP_KERNEL);
>   if (pwm == NULL) {
>   dev_err(>dev, "failed to allocate memory\n");
> - return ERR_PTR(-ENOMEM);
> + return -ENOMEM;
>   }
>
>   pwm->clk = clk_get(NULL, "OST_CLK");
> @@ -177,7 +176,7 @@ static struct pwm_device *pwm_probe(struct
> platform_device *pdev,
>   pwm->clk_enabled = 0;
>
>   pwm->use_count = 0;
> - pwm->pwm_id = pwm_id;
> + pwm->pwm_id = pdev->id;
>   pwm->pdev = pdev;
>
>   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> @@ -203,7 +202,7 @@ static struct pwm_device *pwm_probe(struct
> platform_device *pdev,
>
>   __add_pwm(pwm);
>   platform_set_drvdata(pdev, pwm);
> - return pwm;
> + return 0;
>
>  err_release_mem:
>   release_mem_region(r->start, resource_size(r));
> @@ -211,17 +210,7 @@ err_free_clk:
>   clk_put(pwm->clk);
>  err_free:
>   kfree(pwm);
> - return ERR_PTR(ret);
> -}
> -
> -static int __devinit puv3_pwm_probe(struct platform_device *pdev)
> -{
> - struct pwm_device *pwm = pwm_probe(pdev, pdev->id, NULL);
> -
> - if (IS_ERR(pwm))
> - return PTR_ERR(pwm);
> -
> - return 0;
> + return ret;
>  }
>
>  static int __devexit pwm_remove(struct platform_device *pdev)
> @@ -251,7 +240,7 @@ static struct platform_driver puv3_pwm_driver = {
>   .driver = {
>   .name   = "PKUnity-v3-PWM",
>   },
> - .probe  = puv3_pwm_probe,
> + .probe  = pwm_probe,
>   .remove = __devexit_p(pwm_remove),
>  };
>  module_platform_driver(puv3_pwm_driver);
> --
> 1.7.12
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-21 Thread guanxuetao
> Some of the boilerplate code can be eliminated by using this macro. The
> driver was previously registered with an arch_initcall(), so technically
> this is no longer the same, but when the driver is moved to the PWM
> framework, deferred probing will take care of any driver probe ordering
> issues.
>
> Signed-off-by: Thierry Reding 

Tested-by: Qin Rui 
Acked-by: Guan Xuetao 

Thanks & Regards,
Guan Xuetao

> ---
>  arch/unicore32/kernel/pwm.c | 21 +
>  1 file changed, 1 insertion(+), 20 deletions(-)
>
> diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
> index 885bbcd..012c54a 100644
> --- a/arch/unicore32/kernel/pwm.c
> +++ b/arch/unicore32/kernel/pwm.c
> @@ -254,25 +254,6 @@ static struct platform_driver puv3_pwm_driver = {
>   .probe  = puv3_pwm_probe,
>   .remove = __devexit_p(pwm_remove),
>  };
> -
> -static int __init pwm_init(void)
> -{
> - int ret = 0;
> -
> - ret = platform_driver_register(_pwm_driver);
> - if (ret) {
> - printk(KERN_ERR "failed to register puv3_pwm_driver\n");
> - return ret;
> - }
> -
> - return ret;
> -}
> -arch_initcall(pwm_init);
> -
> -static void __exit pwm_exit(void)
> -{
> - platform_driver_unregister(_pwm_driver);
> -}
> -module_exit(pwm_exit);
> +module_platform_driver(puv3_pwm_driver);
>
>  MODULE_LICENSE("GPL v2");
> --
> 1.7.12
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/5] unicore32: pwm: Use module_platform_driver()

2012-09-21 Thread guanxuetao
 Some of the boilerplate code can be eliminated by using this macro. The
 driver was previously registered with an arch_initcall(), so technically
 this is no longer the same, but when the driver is moved to the PWM
 framework, deferred probing will take care of any driver probe ordering
 issues.

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

Tested-by: Qin Rui qin...@mprc.pku.edu.cn
Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

Thanks  Regards,
Guan Xuetao

 ---
  arch/unicore32/kernel/pwm.c | 21 +
  1 file changed, 1 insertion(+), 20 deletions(-)

 diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
 index 885bbcd..012c54a 100644
 --- a/arch/unicore32/kernel/pwm.c
 +++ b/arch/unicore32/kernel/pwm.c
 @@ -254,25 +254,6 @@ static struct platform_driver puv3_pwm_driver = {
   .probe  = puv3_pwm_probe,
   .remove = __devexit_p(pwm_remove),
  };
 -
 -static int __init pwm_init(void)
 -{
 - int ret = 0;
 -
 - ret = platform_driver_register(puv3_pwm_driver);
 - if (ret) {
 - printk(KERN_ERR failed to register puv3_pwm_driver\n);
 - return ret;
 - }
 -
 - return ret;
 -}
 -arch_initcall(pwm_init);
 -
 -static void __exit pwm_exit(void)
 -{
 - platform_driver_unregister(puv3_pwm_driver);
 -}
 -module_exit(pwm_exit);
 +module_platform_driver(puv3_pwm_driver);

  MODULE_LICENSE(GPL v2);
 --
 1.7.12


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 3/5] unicore32: pwm: Remove unnecessary indirection

2012-09-21 Thread guanxuetao
 Calling the actual probing function through a proxy isn't required and
 makes the code needlessly complex.

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

Tested-by: Qin Rui qin...@mprc.pku.edu.cn
Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

Thanks  Regards,
Guan Xuetao


 ---
  arch/unicore32/kernel/pwm.c | 23 ++-
  1 file changed, 6 insertions(+), 17 deletions(-)

 diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
 index 012c54a..7e23470 100644
 --- a/arch/unicore32/kernel/pwm.c
 +++ b/arch/unicore32/kernel/pwm.c
 @@ -156,8 +156,7 @@ static inline void __add_pwm(struct pwm_device *pwm)
   mutex_unlock(pwm_lock);
  }

 -static struct pwm_device *pwm_probe(struct platform_device *pdev,
 - unsigned int pwm_id, struct pwm_device *parent_pwm)
 +static int __devinit pwm_probe(struct platform_device *pdev)
  {
   struct pwm_device *pwm;
   struct resource *r;
 @@ -166,7 +165,7 @@ static struct pwm_device *pwm_probe(struct
 platform_device *pdev,
   pwm = kzalloc(sizeof(struct pwm_device), GFP_KERNEL);
   if (pwm == NULL) {
   dev_err(pdev-dev, failed to allocate memory\n);
 - return ERR_PTR(-ENOMEM);
 + return -ENOMEM;
   }

   pwm-clk = clk_get(NULL, OST_CLK);
 @@ -177,7 +176,7 @@ static struct pwm_device *pwm_probe(struct
 platform_device *pdev,
   pwm-clk_enabled = 0;

   pwm-use_count = 0;
 - pwm-pwm_id = pwm_id;
 + pwm-pwm_id = pdev-id;
   pwm-pdev = pdev;

   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 @@ -203,7 +202,7 @@ static struct pwm_device *pwm_probe(struct
 platform_device *pdev,

   __add_pwm(pwm);
   platform_set_drvdata(pdev, pwm);
 - return pwm;
 + return 0;

  err_release_mem:
   release_mem_region(r-start, resource_size(r));
 @@ -211,17 +210,7 @@ err_free_clk:
   clk_put(pwm-clk);
  err_free:
   kfree(pwm);
 - return ERR_PTR(ret);
 -}
 -
 -static int __devinit puv3_pwm_probe(struct platform_device *pdev)
 -{
 - struct pwm_device *pwm = pwm_probe(pdev, pdev-id, NULL);
 -
 - if (IS_ERR(pwm))
 - return PTR_ERR(pwm);
 -
 - return 0;
 + return ret;
  }

  static int __devexit pwm_remove(struct platform_device *pdev)
 @@ -251,7 +240,7 @@ static struct platform_driver puv3_pwm_driver = {
   .driver = {
   .name   = PKUnity-v3-PWM,
   },
 - .probe  = puv3_pwm_probe,
 + .probe  = pwm_probe,
   .remove = __devexit_p(pwm_remove),
  };
  module_platform_driver(puv3_pwm_driver);
 --
 1.7.12


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 5/5] pwm: Move PUV3 PWM driver to PWM framework

2012-09-21 Thread guanxuetao
 This commit moves the driver to drivers/pwm and converts it to the new
 PWM framework.

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

Tested-by: Qin Rui qin...@mprc.pku.edu.cn
Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

Thanks  Regards,
Guan Xuetao


 ---
  arch/unicore32/Kconfig |  12 +--
  arch/unicore32/kernel/Makefile |   1 -
  arch/unicore32/kernel/pwm.c| 219
 -
  drivers/pwm/Kconfig|  10 +-
  drivers/pwm/Makefile   |   1 +
  drivers/pwm/pwm-puv3.c | 161 ++
  6 files changed, 173 insertions(+), 231 deletions(-)
  delete mode 100644 arch/unicore32/kernel/pwm.c
  create mode 100644 drivers/pwm/pwm-puv3.c

 diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
 index b0a4743..91e2037 100644
 --- a/arch/unicore32/Kconfig
 +++ b/arch/unicore32/Kconfig
 @@ -20,9 +20,6 @@ config UNICORE32
 designs licensed by PKUnity Ltd.
 Please see web page at http://www.pkunity.com/.

 -config HAVE_PWM
 - bool
 -
  config GENERIC_GPIO
   def_bool y

 @@ -105,7 +102,8 @@ config PUV3_DB0913

  config PUV3_NB0916
   bool NetBook board (0916)
 - select HAVE_PWM
 + select PWM
 + select PWM_PUV3

  config PUV3_SMW0919
   bool Security Mini-Workstation board (0919)
 @@ -219,12 +217,6 @@ config PUV3_GPIO
   select GPIO_SYSFS if EXPERIMENTAL
   default y

 -config PUV3_PWM
 - tristate
 - default BACKLIGHT_PWM
 - help
 -   Enable support for NB0916 PWM controllers
 -
  if PUV3_NB0916

  menu PKUnity NetBook-0916 Features
 diff --git a/arch/unicore32/kernel/Makefile
 b/arch/unicore32/kernel/Makefile
 index 3240101..fa497e0 100644
 --- a/arch/unicore32/kernel/Makefile
 +++ b/arch/unicore32/kernel/Makefile
 @@ -16,7 +16,6 @@ obj-$(CONFIG_UNICORE_FPU_F64)   += fpu-ucf64.o
  obj-$(CONFIG_ARCH_PUV3)  += clock.o irq.o time.o

  obj-$(CONFIG_PUV3_GPIO)  += gpio.o
 -obj-$(CONFIG_PUV3_PWM)   += pwm.o
  obj-$(CONFIG_PUV3_PM)+= pm.o sleep.o
  obj-$(CONFIG_HIBERNATION)+= hibernate.o hibernate_asm.o

 diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
 deleted file mode 100644
 index 724e860..000
 --- a/arch/unicore32/kernel/pwm.c
 +++ /dev/null
 @@ -1,219 +0,0 @@
 -/*
 - * linux/arch/unicore32/kernel/pwm.c
 - *
 - * Code specific to PKUnity SoC and UniCore ISA
 - *
 - *   Maintained by GUAN Xue-tao g...@mprc.pku.edu.cn
 - *   Copyright (C) 2001-2010 Guan Xuetao
 - *
 - * This program is free software; you can redistribute it and/or modify
 - * it under the terms of the GNU General Public License version 2 as
 - * published by the Free Software Foundation.
 - */
 -
 -#include linux/module.h
 -#include linux/kernel.h
 -#include linux/platform_device.h
 -#include linux/slab.h
 -#include linux/err.h
 -#include linux/clk.h
 -#include linux/io.h
 -#include linux/pwm.h
 -
 -#include asm/div64.h
 -#include mach/hardware.h
 -
 -struct pwm_device {
 - struct list_headnode;
 - struct platform_device *pdev;
 -
 - void __iomem*base;
 -
 - const char  *label;
 - struct clk  *clk;
 - int clk_enabled;
 -
 - unsigned intuse_count;
 - unsigned intpwm_id;
 -};
 -
 -/*
 - * period_ns = 10^9 * (PRESCALE + 1) * (PV + 1) / PWM_CLK_RATE
 - * duty_ns   = 10^9 * (PRESCALE + 1) * DC / PWM_CLK_RATE
 - */
 -int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
 -{
 - unsigned long long c;
 - unsigned long period_cycles, prescale, pv, dc;
 -
 - if (pwm == NULL || period_ns == 0 || duty_ns  period_ns)
 - return -EINVAL;
 -
 - c = clk_get_rate(pwm-clk);
 - c = c * period_ns;
 - do_div(c, 10);
 - period_cycles = c;
 -
 - if (period_cycles  1)
 - period_cycles = 1;
 - prescale = (period_cycles - 1) / 1024;
 - pv = period_cycles / (prescale + 1) - 1;
 -
 - if (prescale  63)
 - return -EINVAL;
 -
 - if (duty_ns == period_ns)
 - dc = OST_PWMDCCR_FDCYCLE;
 - else
 - dc = (pv + 1) * duty_ns / period_ns;
 -
 - /* NOTE: the clock to PWM has to be enabled first
 -  * before writing to the registers
 -  */
 - clk_enable(pwm-clk);
 -
 - writel(prescale, pwm-base + OST_PWM_PWCR);
 - writel(pv - dc, pwm-base + OST_PWM_DCCR);
 - writel(pv, pwm-base + OST_PWM_PCR);
 -
 - clk_disable(pwm-clk);
 -
 - return 0;
 -}
 -EXPORT_SYMBOL(pwm_config);
 -
 -int pwm_enable(struct pwm_device *pwm)
 -{
 - int rc = 0;
 -
 - if (!pwm-clk_enabled) {
 - rc = clk_enable(pwm-clk);
 - if (!rc)
 - pwm-clk_enabled = 1;
 - }
 - return rc;
 -}
 -EXPORT_SYMBOL(pwm_enable);
 -
 -void pwm_disable(struct pwm_device *pwm)
 -{
 - if (pwm-clk_enabled) {
 - clk_disable(pwm-clk);
 - pwm-clk_enabled = 0;
 - }
 -}
 

Re: [PATCH v2 4/5] unicore32: pwm: Use managed resource allocations

2012-09-21 Thread guanxuetao
 This commit uses the managed resource allocation functions to simplify
 the cleanup paths on error and removal.

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

Tested-by: Qin Rui qin...@mprc.pku.edu.cn
Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

Thanks  Regards,
Guan Xuetao

 ---
  arch/unicore32/kernel/pwm.c | 47
 +
  1 file changed, 9 insertions(+), 38 deletions(-)

 diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
 index 7e23470..724e860 100644
 --- a/arch/unicore32/kernel/pwm.c
 +++ b/arch/unicore32/kernel/pwm.c
 @@ -160,19 +160,17 @@ static int __devinit pwm_probe(struct
 platform_device *pdev)
  {
   struct pwm_device *pwm;
   struct resource *r;
 - int ret = 0;

 - pwm = kzalloc(sizeof(struct pwm_device), GFP_KERNEL);
 + pwm = devm_kzalloc(pdev-dev, sizeof(struct pwm_device), GFP_KERNEL);
   if (pwm == NULL) {
   dev_err(pdev-dev, failed to allocate memory\n);
   return -ENOMEM;
   }

 - pwm-clk = clk_get(NULL, OST_CLK);
 - if (IS_ERR(pwm-clk)) {
 - ret = PTR_ERR(pwm-clk);
 - goto err_free;
 - }
 + pwm-clk = devm_clk_get(pdev-dev, OST_CLK);
 + if (IS_ERR(pwm-clk))
 + return PTR_ERR(pwm-clk);
 +
   pwm-clk_enabled = 0;

   pwm-use_count = 0;
 @@ -182,41 +180,21 @@ static int __devinit pwm_probe(struct
 platform_device *pdev)
   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   if (r == NULL) {
   dev_err(pdev-dev, no memory resource defined\n);
 - ret = -ENODEV;
 - goto err_free_clk;
 - }
 -
 - r = request_mem_region(r-start, resource_size(r), pdev-name);
 - if (r == NULL) {
 - dev_err(pdev-dev, failed to request memory resource\n);
 - ret = -EBUSY;
 - goto err_free_clk;
 + return -ENODEV;
   }

 - pwm-base = ioremap_nocache(r-start, resource_size(r));
 - if (pwm-base == NULL) {
 - dev_err(pdev-dev, failed to remap memory resource\n);
 - ret = -EADDRNOTAVAIL;
 - goto err_release_mem;
 - }
 + pwm-base = devm_request_and_ioremap(pdev-dev, r);
 + if (pwm-base == NULL)
 + return -EADDRNOTAVAIL;

   __add_pwm(pwm);
   platform_set_drvdata(pdev, pwm);
   return 0;
 -
 -err_release_mem:
 - release_mem_region(r-start, resource_size(r));
 -err_free_clk:
 - clk_put(pwm-clk);
 -err_free:
 - kfree(pwm);
 - return ret;
  }

  static int __devexit pwm_remove(struct platform_device *pdev)
  {
   struct pwm_device *pwm;
 - struct resource *r;

   pwm = platform_get_drvdata(pdev);
   if (pwm == NULL)
 @@ -226,13 +204,6 @@ static int __devexit pwm_remove(struct
 platform_device *pdev)
   list_del(pwm-node);
   mutex_unlock(pwm_lock);

 - iounmap(pwm-base);
 -
 - r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 - release_mem_region(r-start, resource_size(r));
 -
 - clk_put(pwm-clk);
 - kfree(pwm);
   return 0;
  }

 --
 1.7.12


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 4/6] unicore32: Add common clock support

2012-09-06 Thread guanxuetao
> This commit adds support for the common clock framework to the Unicore32
> architecture.
>
> Signed-off-by: Thierry Reding 

This patch can't work.
Could you disintegrate it into several small patches, so I could check it
out.

Thanks,
Guan Xuetao

> ---
>  arch/unicore32/Kconfig  |   1 +
>  arch/unicore32/include/asm/clkdev.h |  26 ++
>  arch/unicore32/kernel/clock.c   | 560
> 
>  3 files changed, 339 insertions(+), 248 deletions(-)
>  create mode 100644 arch/unicore32/include/asm/clkdev.h
>
> diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
> index b0a4743..46b3a15 100644
> --- a/arch/unicore32/Kconfig
> +++ b/arch/unicore32/Kconfig
> @@ -14,6 +14,7 @@ config UNICORE32
>   select GENERIC_IRQ_SHOW
>   select ARCH_WANT_FRAME_POINTERS
>   select GENERIC_IOMAP
> + select COMMON_CLK
>   help
> UniCore-32 is 32-bit Instruction Set Architecture,
> including a series of low-power-consumption RISC chip
> diff --git a/arch/unicore32/include/asm/clkdev.h
> b/arch/unicore32/include/asm/clkdev.h
> new file mode 100644
> index 000..201645d
> --- /dev/null
> +++ b/arch/unicore32/include/asm/clkdev.h
> @@ -0,0 +1,26 @@
> +/*
> + *  based on arch/arm/include/asm/clkdev.h
> + *
> + *  Copyright (C) 2008 Russell King.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + *
> + * Helper for the clk API to assist looking up a struct clk.
> + */
> +
> +#ifndef __ASM_CLKDEV_H
> +#define __ASM_CLKDEV_H
> +
> +#include 
> +
> +#define __clk_get(clk)   ({ 1; })
> +#define __clk_put(clk)   do { } while (0)
> +
> +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
> +{
> + return kzalloc(size, GFP_KERNEL);
> +}
> +
> +#endif
> diff --git a/arch/unicore32/kernel/clock.c b/arch/unicore32/kernel/clock.c
> index 18d4563..197f885 100644
> --- a/arch/unicore32/kernel/clock.c
> +++ b/arch/unicore32/kernel/clock.c
> @@ -17,223 +17,50 @@
>  #include 
>  #include 
>  #include 
> -#include 
> +#include 
>  #include 
>  #include 
>  #include 
> +#include 
>
>  #include 
>
> -/*
> - * Very simple clock implementation
> - */
> -struct clk {
> - struct list_headnode;
> - unsigned long   rate;
> - const char  *name;
> -};
> -
> -static struct clk clk_ost_clk = {
> - .name   = "OST_CLK",
> - .rate   = CLOCK_TICK_RATE,
> -};
> -
> -static struct clk clk_mclk_clk = {
> - .name   = "MAIN_CLK",
> -};
> -
> -static struct clk clk_bclk32_clk = {
> - .name   = "BUS32_CLK",
> +struct clk_uc {
> + struct clk_hw hw;
>  };
>
> -static struct clk clk_ddr_clk = {
> - .name   = "DDR_CLK",
> -};
> -
> -static struct clk clk_vga_clk = {
> - .name   = "VGA_CLK",
> -};
> -
> -static LIST_HEAD(clocks);
> -static DEFINE_MUTEX(clocks_mutex);
> -
> -struct clk *clk_get(struct device *dev, const char *id)
> -{
> - struct clk *p, *clk = ERR_PTR(-ENOENT);
> -
> - mutex_lock(_mutex);
> - list_for_each_entry(p, , node) {
> - if (strcmp(id, p->name) == 0) {
> - clk = p;
> - break;
> - }
> - }
> - mutex_unlock(_mutex);
> -
> - return clk;
> -}
> -EXPORT_SYMBOL(clk_get);
> -
> -void clk_put(struct clk *clk)
> -{
> -}
> -EXPORT_SYMBOL(clk_put);
> -
> -int clk_enable(struct clk *clk)
> -{
> - return 0;
> -}
> -EXPORT_SYMBOL(clk_enable);
> -
> -void clk_disable(struct clk *clk)
> +static inline struct clk_uc *to_clk_uc(struct clk_hw *hw)
>  {
> + return container_of(hw, struct clk_uc, hw);
>  }
> -EXPORT_SYMBOL(clk_disable);
> -
> -unsigned long clk_get_rate(struct clk *clk)
> -{
> - return clk->rate;
> -}
> -EXPORT_SYMBOL(clk_get_rate);
> -
> -struct {
> - unsigned long rate;
> - unsigned long cfg;
> - unsigned long div;
> -} vga_clk_table[] = {
> - {.rate =  25175000, .cfg = 0x2001, .div = 0x9},
> - {.rate =  3150, .cfg = 0x2001, .div = 0x7},
> - {.rate =  4000, .cfg = 0x3801, .div = 0x9},
> - {.rate =  4950, .cfg = 0x3801, .div = 0x7},
> - {.rate =  6500, .cfg = 0x2c01, .div = 0x4},
> - {.rate =  7875, .cfg = 0x2400, .div = 0x7},
> - {.rate = 10800, .cfg = 0x2c01, .div = 0x2},
> - {.rate = 10650, .cfg = 0x3c01, .div = 0x3},
> - {.rate =  5065, .cfg = 0x00106400, .div = 0x9},
> - {.rate =  6150, .cfg = 0x00106400, .div = 0xa},
> - {.rate =  8550, .cfg = 0x2800, .div = 0x6},
> -};
> -
> -struct {
> - unsigned long mrate;
> - unsigned long prate;
> -} mclk_clk_table[] = {
> - {.mrate = 5, .prate = 0x00109801},
> - {.mrate = 52500, .prate = 0x00104C00},
> - {.mrate = 55000, .prate = 0x00105000},
> - {.mrate = 57500, 

Re: [PATCH 1/6] unicore32: pwm: Properly remap memory-mapped registers

2012-09-06 Thread guanxuetao
> Instead of writing to the timer controller registers by dereferencing a
> pointer to the memory location, properly remap the memory region with a
> call to ioremap_nocache() and access the registers using writel().
>
> Signed-off-by: Thierry Reding 
> ---
>  arch/unicore32/kernel/pwm.c | 25 ++---
>  1 file changed, 22 insertions(+), 3 deletions(-)
>
> diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
> index 4615d51..410b786 100644
> --- a/arch/unicore32/kernel/pwm.c
> +++ b/arch/unicore32/kernel/pwm.c
> @@ -23,10 +23,16 @@
>  #include 
>  #include 
>
> +#define PWCR 0x00
> +#define DCCR 0x04
> +#define PCR  0x08
I think old register names could be used here by some small modifications.
Please see arch/unicore32/include/mach/regs-ost.h
We can avoid ioremap and use writel/readl directly on these registers.

Guan

> +
>  struct pwm_device {
>   struct list_headnode;
>   struct platform_device *pdev;
>
> + void __iomem*base;
> +
>   const char  *label;
>   struct clk  *clk;
>   int clk_enabled;
> @@ -69,9 +75,11 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int
> period_ns)
>* before writing to the registers
>*/
>   clk_enable(pwm->clk);
> - OST_PWMPWCR = prescale;
> - OST_PWMDCCR = pv - dc;
> - OST_PWMPCR  = pv;
> +
> + writel(prescale, pwm->base + PWCR);
> + writel(pv - dc, pwm->base + DCCR);
> + writel(pv, pwm->base + PCR);
> +
>   clk_disable(pwm->clk);
>
>   return 0;
> @@ -190,10 +198,19 @@ static struct pwm_device *pwm_probe(struct
> platform_device *pdev,
>   goto err_free_clk;
>   }
>
> + pwm->base = ioremap_nocache(r->start, resource_size(r));
> + if (pwm->base == NULL) {
> + dev_err(>dev, "failed to remap memory resource\n");
> + ret = -EADDRNOTAVAIL;
> + goto err_release_mem;
> + }
> +
>   __add_pwm(pwm);
>   platform_set_drvdata(pdev, pwm);
>   return pwm;
>
> +err_release_mem:
> + release_mem_region(r->start, resource_size(r));
>  err_free_clk:
>   clk_put(pwm->clk);
>  err_free:
> @@ -224,6 +241,8 @@ static int __devexit pwm_remove(struct platform_device
> *pdev)
>   list_del(>node);
>   mutex_unlock(_lock);
>
> + iounmap(pwm->base);
> +
>   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>   release_mem_region(r->start, resource_size(r));
>
> --
> 1.7.12
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/6] unicore32: pwm: Properly remap memory-mapped registers

2012-09-06 Thread guanxuetao
 Instead of writing to the timer controller registers by dereferencing a
 pointer to the memory location, properly remap the memory region with a
 call to ioremap_nocache() and access the registers using writel().

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de
 ---
  arch/unicore32/kernel/pwm.c | 25 ++---
  1 file changed, 22 insertions(+), 3 deletions(-)

 diff --git a/arch/unicore32/kernel/pwm.c b/arch/unicore32/kernel/pwm.c
 index 4615d51..410b786 100644
 --- a/arch/unicore32/kernel/pwm.c
 +++ b/arch/unicore32/kernel/pwm.c
 @@ -23,10 +23,16 @@
  #include asm/div64.h
  #include mach/hardware.h

 +#define PWCR 0x00
 +#define DCCR 0x04
 +#define PCR  0x08
I think old register names could be used here by some small modifications.
Please see arch/unicore32/include/mach/regs-ost.h
We can avoid ioremap and use writel/readl directly on these registers.

Guan

 +
  struct pwm_device {
   struct list_headnode;
   struct platform_device *pdev;

 + void __iomem*base;
 +
   const char  *label;
   struct clk  *clk;
   int clk_enabled;
 @@ -69,9 +75,11 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int
 period_ns)
* before writing to the registers
*/
   clk_enable(pwm-clk);
 - OST_PWMPWCR = prescale;
 - OST_PWMDCCR = pv - dc;
 - OST_PWMPCR  = pv;
 +
 + writel(prescale, pwm-base + PWCR);
 + writel(pv - dc, pwm-base + DCCR);
 + writel(pv, pwm-base + PCR);
 +
   clk_disable(pwm-clk);

   return 0;
 @@ -190,10 +198,19 @@ static struct pwm_device *pwm_probe(struct
 platform_device *pdev,
   goto err_free_clk;
   }

 + pwm-base = ioremap_nocache(r-start, resource_size(r));
 + if (pwm-base == NULL) {
 + dev_err(pdev-dev, failed to remap memory resource\n);
 + ret = -EADDRNOTAVAIL;
 + goto err_release_mem;
 + }
 +
   __add_pwm(pwm);
   platform_set_drvdata(pdev, pwm);
   return pwm;

 +err_release_mem:
 + release_mem_region(r-start, resource_size(r));
  err_free_clk:
   clk_put(pwm-clk);
  err_free:
 @@ -224,6 +241,8 @@ static int __devexit pwm_remove(struct platform_device
 *pdev)
   list_del(pwm-node);
   mutex_unlock(pwm_lock);

 + iounmap(pwm-base);
 +
   r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   release_mem_region(r-start, resource_size(r));

 --
 1.7.12


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 4/6] unicore32: Add common clock support

2012-09-06 Thread guanxuetao
 This commit adds support for the common clock framework to the Unicore32
 architecture.

 Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

This patch can't work.
Could you disintegrate it into several small patches, so I could check it
out.

Thanks,
Guan Xuetao

 ---
  arch/unicore32/Kconfig  |   1 +
  arch/unicore32/include/asm/clkdev.h |  26 ++
  arch/unicore32/kernel/clock.c   | 560
 
  3 files changed, 339 insertions(+), 248 deletions(-)
  create mode 100644 arch/unicore32/include/asm/clkdev.h

 diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig
 index b0a4743..46b3a15 100644
 --- a/arch/unicore32/Kconfig
 +++ b/arch/unicore32/Kconfig
 @@ -14,6 +14,7 @@ config UNICORE32
   select GENERIC_IRQ_SHOW
   select ARCH_WANT_FRAME_POINTERS
   select GENERIC_IOMAP
 + select COMMON_CLK
   help
 UniCore-32 is 32-bit Instruction Set Architecture,
 including a series of low-power-consumption RISC chip
 diff --git a/arch/unicore32/include/asm/clkdev.h
 b/arch/unicore32/include/asm/clkdev.h
 new file mode 100644
 index 000..201645d
 --- /dev/null
 +++ b/arch/unicore32/include/asm/clkdev.h
 @@ -0,0 +1,26 @@
 +/*
 + *  based on arch/arm/include/asm/clkdev.h
 + *
 + *  Copyright (C) 2008 Russell King.
 + *
 + * This program is free software; you can redistribute it and/or modify
 + * it under the terms of the GNU General Public License version 2 as
 + * published by the Free Software Foundation.
 + *
 + * Helper for the clk API to assist looking up a struct clk.
 + */
 +
 +#ifndef __ASM_CLKDEV_H
 +#define __ASM_CLKDEV_H
 +
 +#include linux/slab.h
 +
 +#define __clk_get(clk)   ({ 1; })
 +#define __clk_put(clk)   do { } while (0)
 +
 +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
 +{
 + return kzalloc(size, GFP_KERNEL);
 +}
 +
 +#endif
 diff --git a/arch/unicore32/kernel/clock.c b/arch/unicore32/kernel/clock.c
 index 18d4563..197f885 100644
 --- a/arch/unicore32/kernel/clock.c
 +++ b/arch/unicore32/kernel/clock.c
 @@ -17,223 +17,50 @@
  #include linux/errno.h
  #include linux/err.h
  #include linux/string.h
 -#include linux/clk.h
 +#include linux/clk-provider.h
  #include linux/mutex.h
  #include linux/delay.h
  #include linux/io.h
 +#include linux/slab.h

  #include mach/hardware.h

 -/*
 - * Very simple clock implementation
 - */
 -struct clk {
 - struct list_headnode;
 - unsigned long   rate;
 - const char  *name;
 -};
 -
 -static struct clk clk_ost_clk = {
 - .name   = OST_CLK,
 - .rate   = CLOCK_TICK_RATE,
 -};
 -
 -static struct clk clk_mclk_clk = {
 - .name   = MAIN_CLK,
 -};
 -
 -static struct clk clk_bclk32_clk = {
 - .name   = BUS32_CLK,
 +struct clk_uc {
 + struct clk_hw hw;
  };

 -static struct clk clk_ddr_clk = {
 - .name   = DDR_CLK,
 -};
 -
 -static struct clk clk_vga_clk = {
 - .name   = VGA_CLK,
 -};
 -
 -static LIST_HEAD(clocks);
 -static DEFINE_MUTEX(clocks_mutex);
 -
 -struct clk *clk_get(struct device *dev, const char *id)
 -{
 - struct clk *p, *clk = ERR_PTR(-ENOENT);
 -
 - mutex_lock(clocks_mutex);
 - list_for_each_entry(p, clocks, node) {
 - if (strcmp(id, p-name) == 0) {
 - clk = p;
 - break;
 - }
 - }
 - mutex_unlock(clocks_mutex);
 -
 - return clk;
 -}
 -EXPORT_SYMBOL(clk_get);
 -
 -void clk_put(struct clk *clk)
 -{
 -}
 -EXPORT_SYMBOL(clk_put);
 -
 -int clk_enable(struct clk *clk)
 -{
 - return 0;
 -}
 -EXPORT_SYMBOL(clk_enable);
 -
 -void clk_disable(struct clk *clk)
 +static inline struct clk_uc *to_clk_uc(struct clk_hw *hw)
  {
 + return container_of(hw, struct clk_uc, hw);
  }
 -EXPORT_SYMBOL(clk_disable);
 -
 -unsigned long clk_get_rate(struct clk *clk)
 -{
 - return clk-rate;
 -}
 -EXPORT_SYMBOL(clk_get_rate);
 -
 -struct {
 - unsigned long rate;
 - unsigned long cfg;
 - unsigned long div;
 -} vga_clk_table[] = {
 - {.rate =  25175000, .cfg = 0x2001, .div = 0x9},
 - {.rate =  3150, .cfg = 0x2001, .div = 0x7},
 - {.rate =  4000, .cfg = 0x3801, .div = 0x9},
 - {.rate =  4950, .cfg = 0x3801, .div = 0x7},
 - {.rate =  6500, .cfg = 0x2c01, .div = 0x4},
 - {.rate =  7875, .cfg = 0x2400, .div = 0x7},
 - {.rate = 10800, .cfg = 0x2c01, .div = 0x2},
 - {.rate = 10650, .cfg = 0x3c01, .div = 0x3},
 - {.rate =  5065, .cfg = 0x00106400, .div = 0x9},
 - {.rate =  6150, .cfg = 0x00106400, .div = 0xa},
 - {.rate =  8550, .cfg = 0x2800, .div = 0x6},
 -};
 -
 -struct {
 - unsigned long mrate;
 - unsigned long prate;
 -} mclk_clk_table[] = {
 - {.mrate = 5, .prate = 0x00109801},
 - {.mrate = 52500, .prate = 0x00104C00},
 - {.mrate = 55000, .prate = 0x00105000},
 - {.mrate = 

Re: [PATCH] unicore32: Use schedule_preempt_disabled()

2012-08-16 Thread guanxuetao
> Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).
>
> Cc: Thomas Gleixner 
> Cc: Peter Zijlstra 
> Cc: Ingo Molnar 
> Signed-off-by: Tobias Klauser 

Thanks.

Signed-off-by: Guan Xuetao 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] unicore32: Use schedule_preempt_disabled()

2012-08-16 Thread guanxuetao
 Follow bd2f5536 (sched/rt: Use schedule_preempt_disabled()).

 Cc: Thomas Gleixner t...@linutronix.de
 Cc: Peter Zijlstra a.p.zijls...@chello.nl
 Cc: Ingo Molnar mi...@elte.hu
 Signed-off-by: Tobias Klauser tklau...@distanz.ch

Thanks.

Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] select GENERIC_ATOMIC64 for c6x/score/unicore32 archs

2012-08-14 Thread guanxuetao
> Sorry I have no compilers for build testing these changes, however the
> risk looks low and it's much better than to leave the arch broken,
> considering that Eric will do atomic64_t in the core fs/namespace.c code.
>
> CC: "Eric W. Biederman" 
> Signed-off-by: Fengguang Wu 
It looks ok for unicore32.

Signed-off-by: Guan Xuetao 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] select GENERIC_ATOMIC64 for c6x/score/unicore32 archs

2012-08-14 Thread guanxuetao
 Sorry I have no compilers for build testing these changes, however the
 risk looks low and it's much better than to leave the arch broken,
 considering that Eric will do atomic64_t in the core fs/namespace.c code.

 CC: Eric W. Biederman ebied...@xmission.com
 Signed-off-by: Fengguang Wu fengguang...@intel.com
It looks ok for unicore32.

Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 5/7] i2c-puv3: Use struct dev_pm_ops for power management

2012-07-11 Thread guanxuetao
> From: Rafael J. Wysocki 
>
> Make the PKUnity-v3 SoC I2C controller driver define its suspend
> callback through a struct dev_pm_ops object rather than by using
> a legacy PM hook in struct platform_driver.  The empty resume
> callback is not necessary, so remove it.
>
> Signed-off-by: Rafael J. Wysocki 

Thanks.

Acked-by: Guan Xuetao 

> ---
>  drivers/i2c/busses/i2c-puv3.c |   15 ++-
>  1 file changed, 6 insertions(+), 9 deletions(-)
>
> Index: linux/drivers/i2c/busses/i2c-puv3.c
> ===
> --- linux.orig/drivers/i2c/busses/i2c-puv3.c
> +++ linux/drivers/i2c/busses/i2c-puv3.c
> @@ -254,7 +254,7 @@ static int __devexit puv3_i2c_remove(str
>  }
>
>  #ifdef CONFIG_PM
> -static int puv3_i2c_suspend(struct platform_device *dev, pm_message_t
> state)
> +static int puv3_i2c_suspend(struct device *dev)
>  {
>   int poll_count;
>   /* Disable the IIC */
> @@ -267,23 +267,20 @@ static int puv3_i2c_suspend(struct platf
>   return 0;
>  }
>
> -static int puv3_i2c_resume(struct platform_device *dev)
> -{
> - return 0 ;
> -}
> +static SIMPLE_DEV_PM_OPS(puv3_i2c_pm, puv3_i2c_suspend, NULL);
> +#define PUV3_I2C_PM  (_i2c_pm)
> +
>  #else
> -#define puv3_i2c_suspend NULL
> -#define puv3_i2c_resume NULL
> +#define PUV3_I2C_PM  NULL
>  #endif
>
>  static struct platform_driver puv3_i2c_driver = {
>   .probe  = puv3_i2c_probe,
>   .remove = __devexit_p(puv3_i2c_remove),
> - .suspend= puv3_i2c_suspend,
> - .resume = puv3_i2c_resume,
>   .driver = {
>   .name   = "PKUnity-v3-I2C",
>   .owner  = THIS_MODULE,
> + .pm = PUV3_I2C_PM,
>   }
>  };
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 5/7] i2c-puv3: Use struct dev_pm_ops for power management

2012-07-11 Thread guanxuetao
 From: Rafael J. Wysocki r...@sisk.pl

 Make the PKUnity-v3 SoC I2C controller driver define its suspend
 callback through a struct dev_pm_ops object rather than by using
 a legacy PM hook in struct platform_driver.  The empty resume
 callback is not necessary, so remove it.

 Signed-off-by: Rafael J. Wysocki r...@sisk.pl

Thanks.

Acked-by: Guan Xuetao g...@mprc.pku.edu.cn

 ---
  drivers/i2c/busses/i2c-puv3.c |   15 ++-
  1 file changed, 6 insertions(+), 9 deletions(-)

 Index: linux/drivers/i2c/busses/i2c-puv3.c
 ===
 --- linux.orig/drivers/i2c/busses/i2c-puv3.c
 +++ linux/drivers/i2c/busses/i2c-puv3.c
 @@ -254,7 +254,7 @@ static int __devexit puv3_i2c_remove(str
  }

  #ifdef CONFIG_PM
 -static int puv3_i2c_suspend(struct platform_device *dev, pm_message_t
 state)
 +static int puv3_i2c_suspend(struct device *dev)
  {
   int poll_count;
   /* Disable the IIC */
 @@ -267,23 +267,20 @@ static int puv3_i2c_suspend(struct platf
   return 0;
  }

 -static int puv3_i2c_resume(struct platform_device *dev)
 -{
 - return 0 ;
 -}
 +static SIMPLE_DEV_PM_OPS(puv3_i2c_pm, puv3_i2c_suspend, NULL);
 +#define PUV3_I2C_PM  (puv3_i2c_pm)
 +
  #else
 -#define puv3_i2c_suspend NULL
 -#define puv3_i2c_resume NULL
 +#define PUV3_I2C_PM  NULL
  #endif

  static struct platform_driver puv3_i2c_driver = {
   .probe  = puv3_i2c_probe,
   .remove = __devexit_p(puv3_i2c_remove),
 - .suspend= puv3_i2c_suspend,
 - .resume = puv3_i2c_resume,
   .driver = {
   .name   = PKUnity-v3-I2C,
   .owner  = THIS_MODULE,
 + .pm = PUV3_I2C_PM,
   }
  };



--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/