Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1257576
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [for 4.4 PATCH] memremap: fix highmem support |
| Date | 2015-10-28 03:10 +0100 |
| Message-ID | <qoolA-4PZ-3@gated-at.bofh.it> (permalink) |
| References | <qoo2d-4uc-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Oct 28, 2015 at 10:39 AM, Dan Williams <dan.j.williams@intel.com> wrote: > Currently memremap checks if the range is "System RAM" and returns the > kernel linear address. This is broken for highmem platforms where a > range may be "System RAM", but is not part of the kernel linear mapping. > Similar to acpi_map(), use kmap() for PAGE_SIZE memremap() requests for > highmem, and fall back to ioremap_cache() otherwise. > > The impact of this bug is low for now since the pmem driver is the only > user of memremap(), but this is important to fix before more conversions > to memremap arrive in 4.4. > > Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > Cc: Russell King <rmk+kernel@arm.linux.org.uk> > Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> > Signed-off-by: Dan Williams <dan.j.williams@intel.com> > --- > Russell, > > I question whether the kmap fallback is needed. This is borrowed from > the current implementation of acpi_map(), and I added it since arm > ioremap warns if passed pfn_valid() addresses. I flubbed the subject line... this is for 4.3-final. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[for 4.4 PATCH] memremap: fix highmem support Dan Williams <dan.j.williams@intel.com> - 2015-10-28 02:50 +0100 Re: [for 4.4 PATCH] memremap: fix highmem support Dan Williams <dan.j.williams@intel.com> - 2015-10-28 03:10 +0100
csiph-web