Michal Suchanek | 30 May 21:37 2015
Picon

pl330 dma failure

Hello,

I was trying to read the SPI NOR flash and found that the pl330
controller dma mysteriously fails.

There is the problem that the 256 bytes of dma program buffer does not
suffice for the whole of 4M of the flash memory so all of it cannot be
possibly transferred in one go with the pl330 driver as is now.

However, the practical limit is much smaller. At 1MHz or 40MHz the
maximum transfer size that ever finishes is 64k. At 133MHz which is
the rated flash memory clock the maximum transfer size that finishes
is 128 bytes (only tried power of 2).

There is no obvious issue with the DMA program. 128k happens to be the
smallest size that requires that the burst instruction is repeated in
the cycle and also happens to be the smallest size that fails for any
speed I tried.

Is there some obvious fix or should I just give up on transferring
more than 64k and make the driver truncate any larger transfers?

Thanks

Michal

[   60.726638] m25p80 spi1.0: from 0x00000000, len 65536
[   60.726724] s3c64xx_spi_transfer_one 12d30000.spi spi1 spi1.0 xfer
bpw 8 speed 40000000
[   60.726730] s3c64xx_spi_transfer_one 12d30000.spi spi1 spi1.0 not using dma
(Continue reading)

Guenter Roeck | 30 May 20:15 2015
Picon

[GIT PULL] hwmon fixes for v4.1-rc6

Hi Linus,

Please pull hwmon fixes for Linux v4.1-rc6 from signed tag:

    git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.1-rc6

Thanks,
Guenter
------

The following changes since commit ba155e2d21f6bf05de86a78dbe5bfd8757604a65:

  Linux 4.1-rc5 (2015-05-24 18:22:35 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git tags/hwmon-for-linus-v4.1-rc6

for you to fetch changes up to c7bd6dc320b85445b6b36a0aff41f929210027c7:

  hwmon: (nct6683) Add missing sysfs attribute initialization (2015-05-29 17:47:42 -0700)

----------------------------------------------------------------
Some late hwmon patches, all headed for -stable

- Fix sysfs attribute initialization in nct6775 and nct6683 drivers
- Do not attempt to auto-detect tmp435 on I2C address 0x37
- Ensure iio channel is of type IIO_VOLTAGE in ntc_thermistor driver

----------------------------------------------------------------
(Continue reading)

Mikko Rapeli | 30 May 17:37 2015
Picon
Picon

[PATCH v03 00/98] Userspace compile test and fixes for exported uapi header files

v3:
tried to fix all v2 review findings
tried to guess how to fix a few more issue
with a few hacks, 0 files fail and 760 files pass the compile test on 32bit x86

v2:
https://lkml.org/lkml/2015/2/16/521
added cross compiler support with CROSS_COMPILE,
detecting libc and GCC headers from compiler,
more header file fixes

v1:
https://lkml.org/lkml/2014/8/21/665

Users of kernel header files would be happier if they did not contain
kernel specific parts and would contain #include statements for all
other header files that they depend on, and in general would compile.

This patch set introduces a compile test for headers exported to userspace
and then fixes many of the userspace header compilation failures.

Changes are also available in headers_test_v03 branch at github:
https://github.com/mcfrisk/linux/tree/headers_test_v03

The patch set includes some obvious hacks for which I'd like to get some
feedback and suggestions how to properly fix them.

Here's how to run the userspace compile tests:

$ make headers_install && cd usr/include && \
(Continue reading)

Feng Li | 30 May 16:49 2015
Picon

[Question] Reading hardware registers

Hi experts,

I need your help. I have written a simple driver on  S3C6410 arm board. I define my resource.

static struct resource inkprinter_resources[] = {
  [0] = {
    .start    = S3C64XX_PA_INKPRINTER,
    .end    = S3C64XX_PA_INKPRINTER + S3C64XX_SZ_INKPRINTER,
    .flags    = IORESOURCE_MEM,
  },
  [1] = {
    .start    = IRQ_EINT(1),
    .end    = IRQ_EINT(1),
    .flags    = IORESOURCE_IRQ | IRQF_TRIGGER_LOW,
  }
};

I want to keep trigger the interrupt when it’s low level. But it doesn’t keep trigger when it’s low. It
only calls interrupt routine once.
So I need  print out interrupt hardware registers values for debugging.

EINT0CON0 0x7F008900 R/W External Interrupt configuration Register 0 0x0
EINT0CON1 0x7F008904 R/W External Interrupt configuration Register 1 0x0
EINT0FLTCON0 0x7F008910 R/W External Interrupt Filter Control Register 0 0x0
EINT0FLTCON1 0x7F008914 R/W External Interrupt Filter Control Register 1 0x0
EINT0FLTCON2 0x7F008918 R/W External Interrupt Filter Control Register 2 0x0
EINTF0LTCON3 0x7F00891C R/W External Interrupt Filter Control Register 3 0x0

I know I’m wrong with using `readl(0x7F008900)`, it reads virtual address. Maybe I need map it to kernel
virtual address firstly.
(Continue reading)

Auren Abogados | 30 May 16:28 2015

Proposal

Attn: Please,

       Kindly Accept & Acknowledge My Proposal!

My name is Mr. Manuel Francisco Suarez a lawyer resident in Spain. I am
writing to let you know that I have some funds I want to transfer for
investment and am seeking if you can be a beneficiary.Do not hesitate to
contact me through my below e-mail address for more information if
interested.

Sincerely,
Manuel Francisco Suarez (Esq).
manuelcescSuarez <at> aim.com

Steven Rostedt | 30 May 11:42 2015

[for-next][PATCH 0/3] ring-buffer: A few more minor updates

  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: a497adb45b8691f7e477e711a1a4bd54748d64fe

Steven Rostedt (Red Hat) (3):
      ring-buffer: Give NMIs a chance to lock the reader_lock
      ring-buffer: Remove useless unused tracing_off_permanent()
      ring-buffer: Add enum names for the context levels

----
 include/linux/kernel.h     |   6 --
 kernel/trace/ring_buffer.c | 160 +++++++++++++++++----------------------------
 2 files changed, 59 insertions(+), 107 deletions(-)
Auren Abogados | 30 May 11:19 2015

Proposal

Attn: Please,

       Kindly Accept & Acknowledge My Proposal!

My name is Mr. Manuel Francisco Suarez a lawyer resident in Spain. I am
writing to let you know that I have some funds I want to transfer for
investment and am seeking if you can be a beneficiary.Do not hesitate to
contact me through my below e-mail address for more information if
interested.

Sincerely,
Manuel Francisco Suarez (Esq).
manuelcescSuarez <at> aim.com

Eric Wong | 30 May 11:15 2015
Picon

[PATCH] ALSA: usb-audio: don't try to get Outlaw RR2150 sample rate

This quirk allows us to avoid the noisy:

	current rate 0 is different from the runtime rate

message every time playback starts.  While USB DAC in the RR2150
supports reading the sample rate, it never returns a sample rate
other than zero in my observation with common sample rates.

Signed-off-by: Eric Wong <normalperson <at> yhbt.net>
Cc: Joe Turner <joe <at> oampo.co.uk>
Cc: Takashi Iwai <tiwai <at> suse.de>
---
 sound/usb/quirks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 32631a8..2ea5b33 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
 <at>  <at>  -1118,6 +1118,7  <at>  <at>  bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip)
 	case USB_ID(0x045E, 0x075D): /* MS Lifecam Cinema  */
 	case USB_ID(0x045E, 0x076D): /* MS Lifecam HD-5000 */
 	case USB_ID(0x04D8, 0xFEEA): /* Benchmark DAC1 Pre */
+	case USB_ID(0x074D, 0x3553): /* Outlaw RR2150 (Micronas UAC3553B) */
 		return true;
 	}
 	return false;
--

-- 
EW

(Continue reading)

Masami Hiramatsu | 30 May 10:17 2015
Picon

[PATCH perf/core ] [BUGFIX] perf probe: List probes in stdout

Since commit 5e17b28f1e have replaced printf with pr_info,
perf probe -l outputs its result in stderr. However, that is not
what the commit expected.
e.g.
  -----
  # perf probe -l > /dev/null
    probe:vfs_read       (on vfs_read <at> ksrc/linux-3/fs/read_write.c)
  -----
With this fix,
  -----
  # perf probe -l > list
  # cat list
    probe:vfs_read       (on vfs_read <at> ksrc/linux-3/fs/read_write.c)
  -----
Of course, --quiet(-q) still works on --add/--del.
  -----
  # perf probe -q vfs_write
  # perf probe -l
    probe:vfs_read       (on vfs_read <at> ksrc/linux-3/fs/read_write.c)
    probe:vfs_write      (on vfs_write <at> ksrc/linux-3/fs/read_write.c)
  -----

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt <at> hitachi.com>
Reported-by: Naohiro Aota <naota <at> elisp.net>
---
 tools/perf/util/probe-event.c |   50 ++++++++++++++++++++++++++++++-----------
 1 file changed, 36 insertions(+), 14 deletions(-)

diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index d27edef..dc732de 100644
(Continue reading)

Peter Zijlstra | 30 May 10:20 2015

Re: [PATCH v3 1/4] sched/rt: Check to push the task away after its affinity was changed

On Fri, May 29, 2015 at 10:04:36PM +0800, pang.xunlei <at> zte.com.cn wrote:
> Hi Peter,
> 
> Peter Zijlstra <peterz <at> infradead.org> wrote 2015-05-29 PM 09:16:26:
> > 
> > Re: [PATCH v3 1/4] sched/rt: Check to push the task away after its 
> > affinity was changed
> > 
> > On Tue, May 12, 2015 at 10:46:41PM +0800, Xunlei Pang wrote:
> > >  <at>  <at>  -2278,6 +2279,20  <at>  <at>  static void set_cpus_allowed_rt(struct 
> > task_struct *p,
> > >     }
> > > 
> > >     update_rt_migration(&rq->rt);
> > > +
> > > +check_push:
> > > +   if (weight > 1 &&
> > > +       !task_running(rq, p) &&
> > > +       !test_tsk_need_resched(rq->curr) &&
> > > +       !cpumask_subset(new_mask, &p->cpus_allowed)) {
> > > +      /* Update new affinity and try to push. */
> > > +      cpumask_copy(&p->cpus_allowed, new_mask);
> > > +      p->nr_cpus_allowed = weight;
> > > +      push_rt_tasks(rq);
> > > +      return true;
> > > +   }
> > > +
> > > +   return false;
> > >  }
> > 
(Continue reading)

Jeremiah Mahler | 30 May 10:03 2015
Picon

BUG: update-grub, unable to handle kernel NULL pointer dereference

all,

When running update-grub on a system with a Windows partition the kernel
will oops with a "BUG: unable to handle kernel NULL pointer dereference"
message.  It does this during the call to os-prober.  After the oops
the system locks and requires a hard reset to get it running again.

This bug is present in the current linux-next (20150529) and as far
back as 20150522 and possibly earlier.  That last working kernel I
have is tagged 4.1.0-rc1+.

Below is a snippet from the back trace.  The full log is attached.

  ...
  May 29 10:57:03 hudson 50mounted-tests[3413]: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
  May 29 10:57:03 hudson 20microsoft[3416]: debug: /dev/sda1 is a NTFS partition
  May 29 10:57:03 hudson 20microsoft[3431]: result: /dev/sda1:Windows 7 (loader):Windows:chain
  May 29 10:57:03 hudson 50mounted-tests[3432]: debug: os found by subtest /usr/lib/os-probes/mounted/20microsoft
  May 29 10:57:03 hudson kernel: BUG: unable to handle kernel NULL pointer dereference at           (null)
  May 29 10:57:03 hudson kernel: IP: [<          (null)>]           (null)
  May 29 10:57:03 hudson kernel: PGD c9e43067 PUD c7b4a067 PMD 0 
  May 29 10:57:03 hudson kernel: Oops: 0010 [#1] SMP 
  May 29 10:57:03 hudson kernel: Modules linked in: vfat msdos fat dm_mod cpufreq_conservative
cpufreq_stats cpufreq_userspace cpufreq_powersave binfmt_misc nfsd auth_rpcgss oid_registry
nfs_acl nfs lockd grace fscache sunrpc joydev arc4 iwldvm mac80211 x86_pkg_temp_thermal
intel_powerclamp coretemp kvm_intel kvm i915 iTCO_wdt crct10dif_pclmul iTCO_vendor_support
iwlwifi snd_hda_codec_hdmi crc32_pclmul snd_hda_codec_realtek crc32c_intel
snd_hda_codec_generic cfg80211 snd_hda_intel snd_hda_codec ghash_clmulni_intel i2c_algo_bit
aesni_intel drm_kms_helper aes_x86_64 snd_hwdep glue_helper lrw psmouse snd_hda_core gf128mul
ablk_helper cryptd evdev mei_me tpm_tis drm snd_pcm serio_raw mei pcspkr tpm thinkpad_acpi wmi
(Continue reading)


Gmane