linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 2/3] arm64: Support huge vmalloc mappings
@ 2021-12-27 14:59 Kefeng Wang
  2021-12-27 17:35 ` (No subject) William Kucharski
  0 siblings, 1 reply; 19+ messages in thread
From: Kefeng Wang @ 2021-12-27 14:59 UTC (permalink / raw)
  To: Jonathan Corbet, Andrew Morton, linuxppc-dev, linux-doc,
	linux-kernel, linux-mm, x86, linux-arm-kernel
  Cc: Kefeng Wang, Matthew Wilcox, Catalin Marinas, Dave Hansen,
	Nicholas Piggin, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	Paul Mackerras, Thomas Gleixner, Will Deacon

This patch select HAVE_ARCH_HUGE_VMALLOC to let arm64 support huge
vmalloc mappings.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 Documentation/admin-guide/kernel-parameters.txt | 4 ++--
 arch/arm64/Kconfig                              | 1 +
 arch/arm64/kernel/module.c                      | 5 +++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 7b2f900fd243..e3f9fd7ec106 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1639,7 +1639,7 @@
 			precedence over memory_hotplug.memmap_on_memory.
 
 
-	hugevmalloc=	[PPC] Reguires CONFIG_HAVE_ARCH_HUGE_VMALLOC
+	hugevmalloc=	[KNL,PPC,ARM64] Reguires CONFIG_HAVE_ARCH_HUGE_VMALLOC
 			Format: { on | off }
 			Default set by CONFIG_HUGE_VMALLOC_DEFAULT_ENABLED.
 
@@ -3424,7 +3424,7 @@
 
 	nohugeiomap	[KNL,X86,PPC,ARM64] Disable kernel huge I/O mappings.
 
-	nohugevmalloc	[PPC] Disable kernel huge vmalloc mappings.
+	nohugevmalloc	[KNL,PPC,ARM64] Disable kernel huge vmalloc mappings.
 
 	nosmt		[KNL,S390] Disable symmetric multithreading (SMT).
 			Equivalent to smt=1.
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 3bb0b67292b5..c34bbb4482b0 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -142,6 +142,7 @@ config ARM64
 	select HAVE_ARCH_AUDITSYSCALL
 	select HAVE_ARCH_BITREVERSE
 	select HAVE_ARCH_COMPILER_H
+	select HAVE_ARCH_HUGE_VMALLOC
 	select HAVE_ARCH_HUGE_VMAP
 	select HAVE_ARCH_JUMP_LABEL
 	select HAVE_ARCH_JUMP_LABEL_RELATIVE
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
index 309a27553c87..af7b4cbace2b 100644
--- a/arch/arm64/kernel/module.c
+++ b/arch/arm64/kernel/module.c
@@ -36,7 +36,8 @@ void *module_alloc(unsigned long size)
 		module_alloc_end = MODULES_END;
 
 	p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
-				module_alloc_end, gfp_mask, PAGE_KERNEL, VM_DEFER_KMEMLEAK,
+				module_alloc_end, gfp_mask, PAGE_KERNEL,
+				VM_DEFER_KMEMLEAK | VM_NO_HUGE_VMAP,
 				NUMA_NO_NODE, __builtin_return_address(0));
 
 	if (!p && IS_ENABLED(CONFIG_ARM64_MODULE_PLTS) &&
@@ -55,7 +56,7 @@ void *module_alloc(unsigned long size)
 		 */
 		p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
 				module_alloc_base + SZ_2G, GFP_KERNEL,
-				PAGE_KERNEL, 0, NUMA_NO_NODE,
+				PAGE_KERNEL, VM_NO_HUGE_VMAP, NUMA_NO_NODE,
 				__builtin_return_address(0));
 
 	if (p && (kasan_module_alloc(p, size, gfp_mask) < 0)) {
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* (no subject)
@ 2008-01-03  8:33 Awad, Sinan (GE Healthcare)
  2008-01-03 10:34 ` (no subject) Misbah khan
  0 siblings, 1 reply; 19+ messages in thread
From: Awad, Sinan (GE Healthcare) @ 2008-01-03  8:33 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

Hello all
 
I'm trying to understand if we need to move from MPC8347 to MPC8360 in
our boards.
One of the features that most attracts, is the eTSEC which includes
support for IEEE 1588 PTP time synchronization.
I need to synchronize the clock of 3 boards via ethernet, I need a time
resolution of under 1ms.
 
Has anyone had the pleasure of playing around with time synchronization
?
Do I really need the hardware capabilities for this type of time
resolution ? or can I implement it in software ?
 
Thanks in advance.
Sinan
 


[-- Attachment #2: Type: text/html, Size: 2013 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2006-07-06 12:21 Jochen Maes
  0 siblings, 0 replies; 19+ messages in thread
From: Jochen Maes @ 2006-07-06 12:21 UTC (permalink / raw)
  To: linuxppc-dev+unsubscribe



^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-12-03 18:40 Otavio Salvador
  0 siblings, 0 replies; 19+ messages in thread
From: Otavio Salvador @ 2005-12-03 18:40 UTC (permalink / raw)
  To: linuxppc-dev, akpm
  Cc: "code.", unused, "ppc/plataforms:removed", from,
	"Subject:[PATCH]", variable, i

---

 arch/ppc/platforms/chrp_setup.c |    1 -
 arch/ppc/platforms/prep_setup.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

applies-to: 8622c40782404c8fb13aa2a4dd4a7b0ebc44e896
66697dfc757179883127a3ae53bc486320b38374
diff --git a/arch/ppc/platforms/chrp_setup.c b/arch/ppc/platforms/chrp_setup.c
index f1b70ab..056ac2a 100644
--- a/arch/ppc/platforms/chrp_setup.c
+++ b/arch/ppc/platforms/chrp_setup.c
@@ -404,7 +404,6 @@ static struct irqaction xmon_irqaction =
 void __init chrp_init_IRQ(void)
 {
 	struct device_node *np;
-	int i;
 	unsigned long chrp_int_ack = 0;
 	unsigned char init_senses[NR_IRQS - NUM_8259_INTERRUPTS];
 #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(XMON)
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c
index 4415748..f4ef267 100644
--- a/arch/ppc/platforms/prep_setup.c
+++ b/arch/ppc/platforms/prep_setup.c
@@ -954,7 +954,6 @@ prep_calibrate_decr(void)
 static void __init
 prep_init_IRQ(void)
 {
-	int i;
 	unsigned int pci_viddid, pci_did;
 
 	if (OpenPIC_Addr != NULL) {
---
0.99.9k

^ permalink raw reply related	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-10-03  1:00 Bob Brose
  2005-10-03  7:07 ` Andreas Schwab
  0 siblings, 1 reply; 19+ messages in thread
From: Bob Brose @ 2005-10-03  1:00 UTC (permalink / raw)
  To: linuxppc-dev

I'm trying to fix some of the AX25 code in the 2.6 kernel and traced down
a problem to the use of a char var which was being assigned
the value of -1. On x86 when the var was compared to -1 it succeded but
on PPC it failed. So I tried a simple test:

main()
{
char atest;
atest=-1;
printf("%i,%X\n",atest,atest);
}

With GCC 3.3.5 on 2.6.14-rc1 x86 I get:
./atest
-1,FFFFFFFF

With GCC 3.3.5 on 2.6.14-rc1 PPC I get:
./atest
255,FF

If I change the declaration of atest to a signed char on PPC I get the
same result as x86.

Does this mean the char in x86 is signed and in PPC it's unsigned?
Has it always been thus?
 

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-09-27 13:53 ÏÄÓê 
  2005-09-27 16:07 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: ÏÄÓê  @ 2005-09-27 13:53 UTC (permalink / raw)
  To: linuxppc-embedded

I have plugged a PCI net card (i82559)on the ICECUBE board (mpc5200), but could not make it work .Which environment should i config in U-BOOT?

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-06-29  6:21 董晓凡
  2005-06-29 16:22 ` evilninja
  0 siblings, 1 reply; 19+ messages in thread
From: 董晓凡 @ 2005-06-29  6:21 UTC (permalink / raw)
  To: linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]

 

Hi,everybody.Recently,I focus on kernel 2.6.10,I want to migrate it to
mpc8260.

But,I can not compile it successfully when I choose fcc .And it seems some
wrong with cpm2_immap.h.

Would you like to tell me if it need a patch.

Thankyou very much!

**********************************************

 


[-- Attachment #1.2: Type: text/html, Size: 4265 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 4389 bytes --]

[-- Attachment #3: image002.gif --]
[-- Type: image/gif, Size: 7830 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-06-27 12:25 FLAMENT David
  0 siblings, 0 replies; 19+ messages in thread
From: FLAMENT David @ 2005-06-27 12:25 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

hello, 
 
I use a EP8248 and I search a Kernel 2.6 for this board because I use a kernel 2.4.26 of arabella and the usb isn't supported in this version.
When I compile with USB option ( uhci, scsi + usb mastorage), there is this message "usb-ohci currently requires PCI-based controllers".
If you have a sugget, thank you.
 
 
--------------------------------
Flament David
d.flament@sofrel.com
Lacroix Sofrel, 1 rue plessis, 35770 Vern sur seiche (France)
(+33)2.99.04.84.23
 
 

[-- Attachment #2: Type: text/html, Size: 1677 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-06-13 11:38 colui77
  0 siblings, 0 replies; 19+ messages in thread
From: colui77 @ 2005-06-13 11:38 UTC (permalink / raw)
  To: linuxppc-embedded

Hi guys, 
any of you knows a version of JVM running on Montavista linux for ML300
(PPC405)
I tried the Blackdown 1.3.1 for PPC but it doesn't seem to work...
Any suggestion?
Thanks,
Luigi

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2005-04-12 19:38 Eric N. Johnson (ACD)
  2005-04-12 21:13 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Eric N. Johnson (ACD) @ 2005-04-12 19:38 UTC (permalink / raw)
  To: linuxppc-embedded

Has anyone been able to use an I2S audio DAC connected to a Programmable 
Serial Controllers (PSC) on the Freescale MPC5200 CPU working under Linux?

The kernel included in the DENX ELDK v3.1.1 has two drivers:
   i2s_ring.c and i2s.c.
The ring driver appears to be RX only, and the i2s.c driver causes the FEC 
ethernet to hang at startup.  I've read some previous mailing list messages 
that suggest there are issues with bestcomm and i2s support.

We've tried adapting the i2s_ring.c driver for our needs.  By default, it 
only has a receive task.  It partially initializes the port, and we see 
appropriate waveforms on the MCLK, CLK, and FRAME lines, but have not been 
able to transmit data.

The stock i2s.c driver hung the boot sequence, but if we comment out the 
bestcomm startup code, it at least completes the boot cycle.  Again we see 
appropriate waveforms on the MCLK, CLK, and FRAME lines.  If we feed data 
to the device (after performing the port setup IOCTLs), we see a 750 us 
burst of data every 45 ms or so.

Is it feasible to send 44.1 or 48 KHz 16-bit audio this way or is the PSC 
only usable for lower data rate applications?

Thank you,
Eric
------------------------------------
Eric Johnson, Electrical Engineer
Advanced Communication Design
   7901 12th Avenue South
   Bloomington, MN 55425
Ph: 952-854-4000  Fax: 952-854-5774

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Support for Adder875 in Linux 2.4
@ 2005-02-13 12:28 Markus Westergren
  2005-02-14  6:45 ` Yuli Barcohen
  0 siblings, 1 reply; 19+ messages in thread
From: Markus Westergren @ 2005-02-13 12:28 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,

I'm working on a project which will use hardware based on Analogue & Micro
Adder875 module together with Linux 2.4.

I use RedBoot as bootloader and kernel 2.4.27-pre1, both came with the Adder
module.

The project require:

 - dual ethernet support with AM79C874 PHY
   The driver I've found (fec.c) only supports one ethernet. I'v started
	modifying a newer version of this driver which have support for my PHY. I
	have made some progress but it's not working yet. Found out that the first
	FEC is used to communicate with both PHY's. Both devices are detected
	correctly and the first seems to work but the second hangs the kernel when
	the first packet is sent or received.
 - SPI support
   Have found a simple driver (cpm_spi.c), which I have not tested yet.
 - PCMCIA support
   Will try to modify the m8xx_pcmcia driver.

Not required but would be good to have:
 - USB host support
   Have no clue where to start looking.

Have anyone used this module together with Linux and are there working drivers
for it? Any tips/ideas?

Thanks

/Markus

------------------
Markus Westergren
Biologigrand 17
S-907 32 Umea
SWEDEN

^ permalink raw reply	[flat|nested] 19+ messages in thread
* (no subject)
@ 2004-11-22 19:23 Ratin Kumar
  2004-11-22 22:53 ` Kumar Gala
  0 siblings, 1 reply; 19+ messages in thread
From: Ratin Kumar @ 2004-11-22 19:23 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Hi,

I am trying to build a toolchain for MPC5200 using gcc 3.4.1.

The bootstrap compiler build fails with a complain that it could not
locate "signal.h". This happens even though I have the kernel headers
(with signal.h) installed. A quick search on google shows that some
other people have also run into this issue, although no patches/sloution
appears. Any ideas??

Also, has anyone tried using 3.4.1 compiler for kernel 2.4.23 ????

What are the matching glibc and binutils to use with 3.4.1?? Any
patches??

Thanks,
Rk.

[-- Attachment #2: Type: text/html, Size: 1144 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2021-12-28  1:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20051227010004.D4C7568950@ozlabs.org>
2005-12-27 15:29 ` (no subject) siman
2021-12-27 14:59 [PATCH v2 2/3] arm64: Support huge vmalloc mappings Kefeng Wang
2021-12-27 17:35 ` (No subject) William Kucharski
2021-12-28  1:36   ` Kefeng Wang
  -- strict thread matches above, loose matches on Subject: below --
2008-01-03  8:33 Awad, Sinan (GE Healthcare)
2008-01-03 10:34 ` (no subject) Misbah khan
2006-07-06 12:21 Jochen Maes
2005-12-03 18:40 Otavio Salvador
2005-10-03  1:00 Bob Brose
2005-10-03  7:07 ` Andreas Schwab
2005-09-27 13:53 ÏÄÓê 
2005-09-27 16:07 ` Wolfgang Denk
2005-06-29  6:21 董晓凡
2005-06-29 16:22 ` evilninja
2005-06-27 12:25 FLAMENT David
2005-06-13 11:38 colui77
2005-04-12 19:38 Eric N. Johnson (ACD)
2005-04-12 21:13 ` Wolfgang Denk
2005-02-13 12:28 Support for Adder875 in Linux 2.4 Markus Westergren
2005-02-14  6:45 ` Yuli Barcohen
2005-02-14 19:44   ` Markus Westergren
2005-02-15  9:35     ` (no subject) Yuli Barcohen
2004-11-22 19:23 Ratin Kumar
2004-11-22 22:53 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).