Monday, February 8, 2010

linux.kernel - 25 new messages in 16 topics - digest

linux.kernel
http://groups.google.com/group/linux.kernel?hl=en

linux.kernel@googlegroups.com

Today's topics:

* w6692: remove unused code - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/61b95a1ecee4dfc8?hl=en
* fs/ufs: Recognize Solaris-specific file system state - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/9a16e241a03d72aa?hl=en
* MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/d51f38966592b1f7?hl=en
* block: add sysfs lockdep class for iosched - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/4002526364f3fcd8?hl=en
* security/smack/smack.h: Fix smk_known length - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/2802ddca2bb7e058?hl=en
* linux-next: manual merge of the net tree with the wireless-current tree - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/6f7e4c38ec6215d0?hl=en
* 2.6.33-rc6 crashes on resume - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/6dc9f99de8146cff?hl=en
* perf: Fix hypervisor sample reporting - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/adaeebd4a7570907?hl=en
* P4 PMU early draft - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/cbcaa116bfdc609d?hl=en
* Remove reference to kthread_create_on_cpu - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/f245f45b6bf5cd5b?hl=en
* fs: nfsd: export: fix coding style issues - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/92280a4e9a410d50?hl=en
* linux-next: manual merge of the fsnotify tree with the vfs tree - 6 messages,
2 authors
http://groups.google.com/group/linux.kernel/t/06f6526b8dc833e0?hl=en
* Make sparse work with inline spinlocks and rwlocks - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/764daf03b2433792?hl=en
* allow printk delay after multi lines - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/022bcc622a6a3de7?hl=en
* FUSE/CUSE: implement direct mmap support - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/7fb4c23aaadf23bb?hl=en
* Restrict initial stack space expansion to rlimit - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/c1edecbd60f1c6b3?hl=en

==============================================================================
TOPIC: w6692: remove unused code
http://groups.google.com/group/linux.kernel/t/61b95a1ecee4dfc8?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 6:50 pm
From: "Gustavo F. Padovan"


drivers/isdn/hardware/mISDN/w6692.c:533: warning: 'setvolume' defined but not used
drivers/isdn/hardware/mISDN/w6692.c:560: warning: 'enable_pots' defined but not used
---
drivers/isdn/hardware/mISDN/w6692.c | 43 -----------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)

diff --git a/drivers/isdn/hardware/mISDN/w6692.c b/drivers/isdn/hardware/mISDN/w6692.c
index d3f1077..ae1c65e 100644
--- a/drivers/isdn/hardware/mISDN/w6692.c
+++ b/drivers/isdn/hardware/mISDN/w6692.c
@@ -530,49 +530,6 @@ W6692_fill_Bfifo(struct w6692_ch *wch)
}

static int
-setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
-{
- struct w6692_hw *card = wch->bch.hw;
- u16 *vol = (u16 *)skb->data;
- u8 val;
-
- if ((!(card->fmask & pots)) ||
- !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
- return -ENODEV;
- if (skb->len < 2)
- return -EINVAL;
- if (*vol > 7)
- return -EINVAL;
- val = *vol & 7;
- val = 7 - val;
- if (mic) {
- val <<= 3;
- card->xaddr &= 0xc7;
- } else {
- card->xaddr &= 0xf8;
- }
- card->xaddr |= val;
- WriteW6692(card, W_XADDR, card->xaddr);
- return 0;
-}
-
-static int
-enable_pots(struct w6692_ch *wch)
-{
- struct w6692_hw *card = wch->bch.hw;
-
- if ((!(card->fmask & pots)) ||
- !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
- return -ENODEV;
- wch->b_mode |= W_B_MODE_EPCM | W_B_MODE_BSW0;
- WriteW6692B(wch, W_B_MODE, wch->b_mode);
- WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST);
- card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0);
- WriteW6692(card, W_PCTL, card->pctl);
- return 0;
-}
-
-static int
disable_pots(struct w6692_ch *wch)
{
struct w6692_hw *card = wch->bch.hw;
--
1.6.4.4

--
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/

==============================================================================
TOPIC: fs/ufs: Recognize Solaris-specific file system state
http://groups.google.com/group/linux.kernel/t/9a16e241a03d72aa?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 6:50 pm
From: "Alex Viskovatoff"


Recent releases of Solaris set the fs_clean state of an unmounted UFS file system as FSLOG ("logging fs"). However, the Linux kernel currently does not recognize the value which represents this state. Thus, attempting to mount such a file system rw produces the message

kernel: ufs_read_super: can't grok fs_clean 0xfffffffd

and the file system is mounted read-only. This patch makes the kernel recognize that value.

Signed-off-by: Alex Viskovatoff <viskovatoff@imap.cc>
---
The definitions I used in the patch can be found here:
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/ufs_fs.h

--- linux-2.6.32.7-vanilla/fs/ufs/super.c 2010-01-28 18:06:20.000000000 -0500
+++ linux-2.6/fs/ufs/super.c 2010-02-07 14:56:39.933794932 -0500
@@ -965,6 +965,9 @@ magic_found:
case UFS_FSSTABLE:
UFSD("fs is stable\n");
break;
+ case UFS_FSLOG :
+ UFSD("fs is logging fs\n");
+ break;
case UFS_FSOSF1:
UFSD("fs is DEC OSF/1\n");
break;
diff -uprN -X linux-2.6.32.7-vanilla/Documentation/dontdiff linux-2.6.32.7-vanilla/fs/ufs/ufs_fs.h linux-2.6/fs/ufs/ufs_fs.h
--- linux-2.6.32.7-vanilla/fs/ufs/ufs_fs.h 2010-01-28 18:06:20.000000000 -0500
+++ linux-2.6/fs/ufs/ufs_fs.h 2010-02-08 17:32:49.392619575 -0500
@@ -138,6 +138,7 @@ typedef __u16 __bitwise __fs16;

#define UFS_USEEFT ((__u16)65535)

+/* fs_clean values */
#define UFS_FSOK 0x7c269d38
#define UFS_FSACTIVE ((__s8)0x00)
#define UFS_FSCLEAN ((__s8)0x01)
@@ -145,6 +146,11 @@ typedef __u16 __bitwise __fs16;
#define UFS_FSOSF1 ((__s8)0x03) /* is this correct for DEC OSF/1? */
#define UFS_FSBAD ((__s8)0xff)

+/* Solaris-specific fs_clean values */
+#define UFS_FSSUSPEND ((__s8)0xfe) /* temporarily suspended */
+#define UFS_FSLOG ((__s8)0xfd) /* logging fs */
+#define UFS_FSFIX ((__s8)0xfc) /* being repaired while mounted */
+
/* From here to next blank line, s_flags for ufs_sb_info */
/* directory entry encoding */
#define UFS_DE_MASK 0x00000010 /* mask for the following */

--
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/

==============================================================================
TOPIC: MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself
http://groups.google.com/group/linux.kernel/t/d51f38966592b1f7?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 6:50 pm
From: Benjamin Herrenschmidt


On Wed, 2010-01-20 at 13:52 +0000, Russell King wrote:
> On VIVT ARM, when we have multiple shared mappings of the same file
> in the same MM, we need to ensure that we have coherency across all
> copies. We do this via make_coherent() by making the pages
> uncacheable.

.../...

> So, pass in the mapped page table pointer into update_mmu_cache(), and
> remove the PTE value, updating all implementations and call sites to
> suit.
>
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

Tested and seems to work fine on powerpc.

Cheers,
Ben.

> ---
> Documentation/cachetlb.txt | 6 +++---
> arch/alpha/include/asm/pgtable.h | 2 +-
> arch/arm/include/asm/tlbflush.h | 3 ++-
> arch/arm/mm/fault-armv.c | 5 +++--
> arch/avr32/include/asm/pgtable.h | 2 +-
> arch/avr32/mm/tlb.c | 4 ++--
> arch/cris/include/asm/pgtable.h | 2 +-
> arch/frv/include/asm/pgtable.h | 2 +-
> arch/ia64/include/asm/pgtable.h | 2 +-
> arch/m32r/include/asm/tlbflush.h | 2 +-
> arch/m32r/mm/fault-nommu.c | 2 +-
> arch/m32r/mm/fault.c | 6 +++---
> arch/m68k/include/asm/pgtable_mm.h | 2 +-
> arch/microblaze/include/asm/tlbflush.h | 2 +-
> arch/mips/include/asm/pgtable.h | 3 ++-
> arch/mn10300/include/asm/pgtable.h | 2 +-
> arch/mn10300/mm/mmu-context.c | 3 ++-
> arch/parisc/include/asm/pgtable.h | 2 +-
> arch/parisc/kernel/cache.c | 4 ++--
> arch/powerpc/include/asm/pgtable.h | 2 +-
> arch/powerpc/mm/mem.c | 4 ++--
> arch/s390/include/asm/pgtable.h | 2 +-
> arch/score/include/asm/pgtable.h | 3 ++-
> arch/sh/include/asm/pgtable.h | 3 ++-
> arch/sh/mm/fault_32.c | 2 +-
> arch/sparc/include/asm/pgtable_32.h | 4 ++--
> arch/sparc/include/asm/pgtable_64.h | 2 +-
> arch/sparc/mm/fault_32.c | 4 ++--
> arch/sparc/mm/init_64.c | 3 ++-
> arch/sparc/mm/nosun4c.c | 2 +-
> arch/sparc/mm/srmmu.c | 6 +++---
> arch/sparc/mm/sun4c.c | 2 +-
> arch/um/include/asm/pgtable.h | 2 +-
> arch/x86/include/asm/pgtable_32.h | 2 +-
> arch/x86/include/asm/pgtable_64.h | 2 +-
> arch/xtensa/include/asm/pgtable.h | 2 +-
> arch/xtensa/mm/cache.c | 4 ++--
> mm/hugetlb.c | 4 ++--
> mm/memory.c | 14 +++++++-------
> mm/migrate.c | 2 +-
> 40 files changed, 67 insertions(+), 60 deletions(-)
>
> diff --git a/Documentation/cachetlb.txt b/Documentation/cachetlb.txt
> index da42ab4..74a8b6f 100644
> --- a/Documentation/cachetlb.txt
> +++ b/Documentation/cachetlb.txt
> @@ -88,12 +88,12 @@ changes occur:
> This is used primarily during fault processing.
>
> 5) void update_mmu_cache(struct vm_area_struct *vma,
> - unsigned long address, pte_t pte)
> + unsigned long address, pte_t *ptep)
>
> At the end of every page fault, this routine is invoked to
> tell the architecture specific code that a translation
> - described by "pte" now exists at virtual address "address"
> - for address space "vma->vm_mm", in the software page tables.
> + now exists at virtual address "address" for address space
> + "vma->vm_mm", in the software page tables.
>
> A port may use this information in any way it so chooses.
> For example, it could use this event to pre-load TLB
> diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h
> index 3f0c59f..71a2432 100644
> --- a/arch/alpha/include/asm/pgtable.h
> +++ b/arch/alpha/include/asm/pgtable.h
> @@ -329,7 +329,7 @@ extern pgd_t swapper_pg_dir[1024];
> * tables contain all the necessary information.
> */
> extern inline void update_mmu_cache(struct vm_area_struct * vma,
> - unsigned long address, pte_t pte)
> + unsigned long address, pte_t *ptep)
> {
> }
>
> diff --git a/arch/arm/include/asm/tlbflush.h b/arch/arm/include/asm/tlbflush.h
> index c2f1605..e085e2c 100644
> --- a/arch/arm/include/asm/tlbflush.h
> +++ b/arch/arm/include/asm/tlbflush.h
> @@ -529,7 +529,8 @@ extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
> * cache entries for the kernels virtual memory range are written
> * back to the page.
> */
> -extern void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr, pte_t pte);
> +extern void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr,
> + pte_t *ptep);
>
>

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate