|
|
|
Re: [PATCH 02/20] mm: Add optional TLB flush to generic RCU page-table freeing | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
On Thu, 2012-06-28 at 17:09 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2012-06-28 at 01:01 +0200, Peter Zijlstra wrote: > > On Wed, 2012-06-27 at 15:23 -0700, Linus Torvalds wrote: > > > > > Plus it really isn't about hardware page table walkers at all. It's > > > more about the possibility of speculative TLB fils, it has nothing to > > > do with *how* they are done. Sure, it's likely that a software > > > pagetable walker wouldn't be something that gets called speculatively, > > > but it's not out of the question. > > > > > Hmm, I would call gup_fast() as speculative as we can get in software. > > It does a lock-less walk of the page-tables. That's what the RCU free'd > > page-table stuff is for to begin with. > > Strictly speaking it's not :-) To *begin with* (as in the origin of that > code) it comes from powerpc hash table code which walks the linux page > tables locklessly :-) It then came in handy with gup_fast :-) Ah, ok my bad. > > > IOW, if Sparc/PPC really want to guarantee that they never fill TLB > > > entries speculatively, and that if we are in a kernel thread they will > > > *never* fill the TLB with anything else, then make them enable > > > CONFIG_STRICT_TLB_FILL or something in their architecture Kconfig > > > files. > > > > Since we've dealt with the speculative software side by using RCU-ish > > stuff, the only thing that's left is hardware, now neither sparc64 nor > > ppc actually know about the linux page-tables from what I understood, > > they only look at their hash-table thing. > > Some embedded ppc's know about the lowest level (SW loaded PMD) but > that's not an issue here. We flush these special TLB entries > specifically and synchronously in __pte_free_tlb(). OK, I missed that.. is that arch/powerpc/mm/tlb_nohash.c:tlb_flush_pgtable() ? > > So even if the hardware did do speculative tlb fills, it would do them > > from the hash-table, but that's already cleared out. > > Right, Phew at least I got the important thing right ;-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[Other Archives] [Linux Kernel Newbies] [Linux Driver Development] [Linux Kbuild] [Fedora Kernel] [Linux Kernel Testers] [Linux SH] [Linux Omap] [Linux Tape] [Linux Input] [Linux Kernel Janitors] [Linux Kernel Packagers] [Linux Doc] [Linux Man Pages] [Linux API] [Linux Memory Management] [Linux Modules] [Linux Standards] [Kernel Announce] [Netdev] [Git] [Linux PCI] Linux CAN Development [Linux I2C] [Linux RDMA] [Linux NUMA] [Netfilter] [Netfilter Devel] [SELinux] [Bugtraq] [FIO] [Linux Perf Users] [Linux Serial] [Linux PPP] [Linux ISDN] [Linux Next] [Kernel Stable Commits] [Linux Tip Commits] [Kernel MM Commits] [Linux Security Module] [AutoFS] [Filesystem Development] [Ext3 Filesystem] [Linux bcache] [Ext4 Filesystem] [Linux BTRFS] [Linux CEPH Filesystem] [Linux XFS] [XFS] [Linux NFS] [Linux CIFS] [Ecryptfs] [Linux NILFS] [Linux Cachefs] [Reiser FS] [Initramfs] [Linux FB Devel] [Linux OpenGL] [DRI Devel] [Fastboot] [Linux RT Users] [Linux RT Stable] [eCos] [Corosync] [Linux Clusters] [LVS Devel] [Hot Plug] [Linux Virtualization] [KVM] [KVM PPC] [KVM ia64] [Linux Containers] [Linux Hexagon] [Linux Cgroups] [Util Linux] [Wireless] [Linux Bluetooth] [Bluez Devel] [Ethernet Bridging] [Embedded Linux] [Barebox] [Linux MMC] [Linux IIO] [Sparse] [Smatch] [Linux Arch] [x86 Platform Driver] [Linux ACPI] [Linux IBM ACPI] [LM Sensors] [CPU Freq] [Linux Power Management] [Linmodems] [Linux DCCP] [Linux SCTP] [ALSA Devel] [Linux USB] [Linux PA RISC] [Linux Samsung SOC] [MIPS Linux] [IBM S/390 Linux] [ARM Linux] [ARM Kernel] [ARM MSM] [Tegra Devel] [Sparc Linux] [Linux Security] [Linux Sound] [Linux Media] [Video 4 Linux] [Linux IRDA Users] [Linux for the blind] [Linux RAID] [Linux ATA RAID] [Device Mapper] [Linux SCSI] [SCSI Target Devel] [Linux SCSI Target Infrastructure] [Linux IDE] [Linux SMP] [Linux AXP] [Linux Alpha] [Linux M68K] [Linux ia64] [Linux 8086] [Linux x86_64] [Linux Config] [Linux Apps] [Linux MSDOS] [Linux X.25] [Linux Crypto] [DM Crypt] [Linux Trace Users] [Linux Btrace] [Linux Watchdog] [Utrace Devel] [Linux C Programming] [Linux Assembly] [Dash] [DWARVES] [Hail Devel] [Linux Kernel Debugger] [Linux gcc] [Gcc Help] [X.Org] [Wine]
![]() |
![]() |
[Older Kernel Discussion] [Yosemite National Park Forum] [Large Format Photos] [Gimp] [Yosemite Photos] [Stuff]