Skip to content

Commit c0c6a7b

Browse files
committed
Merge tag 'for-5.19/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc architecture fixes from Helge Deller: - enable ARCH_HAS_STRICT_MODULE_RWX to prevent a boot crash on c8000 machines - flush all mappings of a shared anonymous page on PA8800/8900 machines via flushing the whole data cache. This may slow down such machines but makes sure that the cache is consistent - Fix duplicate definition build error regarding fb_is_primary_device() * tag 'for-5.19/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Enable ARCH_HAS_STRICT_MODULE_RWX parisc: Fix flush_anon_page on PA8800/PA8900 parisc: align '*' in comment in math-emu code parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI
2 parents e963d68 + 0a1355d commit c0c6a7b

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

arch/parisc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config PARISC
1010
select ARCH_WANT_FRAME_POINTERS
1111
select ARCH_HAS_ELF_RANDOMIZE
1212
select ARCH_HAS_STRICT_KERNEL_RWX
13+
select ARCH_HAS_STRICT_MODULE_RWX
1314
select ARCH_HAS_UBSAN_SANITIZE_ALL
1415
select ARCH_HAS_PTE_SPECIAL
1516
select ARCH_NO_SG_CHAIN

arch/parisc/include/asm/fb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
1212
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
1313
}
1414

15-
#if defined(CONFIG_STI_CONSOLE) || defined(CONFIG_FB_STI)
15+
#if defined(CONFIG_FB_STI)
1616
int fb_is_primary_device(struct fb_info *info);
1717
#else
1818
static inline int fb_is_primary_device(struct fb_info *info)

arch/parisc/kernel/cache.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,10 @@ void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned lon
722722
return;
723723

724724
if (parisc_requires_coherency()) {
725-
flush_user_cache_page(vma, vmaddr);
725+
if (vma->vm_flags & VM_SHARED)
726+
flush_data_cache();
727+
else
728+
flush_user_cache_page(vma, vmaddr);
726729
return;
727730
}
728731

arch/parisc/math-emu/decode_exc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ decode_fpu(unsigned int Fpu_register[], unsigned int trap_counts[])
102102
* that happen. Want to keep this overhead low, but still provide
103103
* some information to the customer. All exits from this routine
104104
* need to restore Fpu_register[0]
105-
*/
105+
*/
106106

107107
bflags=(Fpu_register[0] & 0xf8000000);
108108
Fpu_register[0] &= 0x07ffffff;

drivers/video/console/sticore.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ int sti_call(const struct sti_struct *sti, unsigned long func,
11481148
return ret;
11491149
}
11501150

1151+
#if defined(CONFIG_FB_STI)
11511152
/* check if given fb_info is the primary device */
11521153
int fb_is_primary_device(struct fb_info *info)
11531154
{
@@ -1163,6 +1164,7 @@ int fb_is_primary_device(struct fb_info *info)
11631164
return (sti->info == info);
11641165
}
11651166
EXPORT_SYMBOL(fb_is_primary_device);
1167+
#endif
11661168

11671169
MODULE_AUTHOR("Philipp Rumpf, Helge Deller, Thomas Bogendoerfer");
11681170
MODULE_DESCRIPTION("Core STI driver for HP's NGLE series graphics cards in HP PARISC machines");

0 commit comments

Comments
 (0)