Repository navigation
Revert "ASoC: SOF: topology: continue parsing when num_hw_configs is … - #543
Conversation
d2fe399 to
997e42a
Compare
|
On 1/15/19 1:14 PM, Ranjani Sridharan wrote:
This change was added previously because hw_config section
for HDA DAI's was missing from topology. But with that fixed
in topology, this patch is no longer needed.
Please apply this change along with thesofproject/sof#844
<thesofproject/sof#844>
Isn't it needed if we deal with topologies designed in 2018 which don't
have this section?
A newer kernel needs to deal with older topologies.
|
@plbossart which topologies are you referring to? We have this problem only for HDA DAI links in topology at the moment. But allowing num_hw_configs to be 0 is risky. |
|
On 1/15/19 1:48 PM, Ranjani Sridharan wrote:
On 1/15/19 1:14 PM, Ranjani Sridharan wrote: This change was added
previously because hw_config section for HDA DAI's was missing
from topology. But with that fixed in topology, this patch is no
longer needed. Please apply this change along with
thesofproject/sof#844
<thesofproject/sof#844>
<thesofproject/sof#844
<thesofproject/sof#844>>
Isn't it needed if we deal with topologies designed in 2018 which
don't have this section?
A newer kernel needs to deal with older topologies.
@plbossart <https://github.com/plbossart> which topologies are you
referring to? We have this problem only for HDA DAI links in topology
at the moment. But allowing num_hw_configs to be 0 is risky.
GLK topology with HDMI
|
|
@plbossart are you saying this because we have already made the GLK release? |
|
On 1/15/19 1:51 PM, Ranjani Sridharan wrote:
@plbossart <https://github.com/plbossart> are you saying this because
we have already made the GLK release?
But I'm not sure how to handle that case. Does this warrant an ABI
update?
If there are products released with the existing topologies then we have
no choice.
it's not necessarily an ABI update in the IPC sense but a check that the
topology is older before engaging the work-around.
|
…not 1" This reverts commit 7af711b. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1a4172e to
8fc9eb3
Compare
|
@plbossart updated to accommodate the older topologies now. |
There was a problem hiding this comment.
that's not correct. dai links could have more than one config, and in fact it's an issue that we've pushed under the rug consistently.
The code should be
numconfig == 0 && config.type != SOF_DAI_INTEL_HDA.
what happens btw if we have a topology with no HDAudio config, would things work or would we generate an oops?
There was a problem hiding this comment.
@plbossart if we can have more than 1 hw_config, we dont have the logic to process them here. How would we handle that?
To answer you second question, if there are no HDA configs in topology,i cant imagne what would cause a kernel oops.
There was a problem hiding this comment.
well multiple configs would be another "topology ABI" bump triggering a different behavior on newer kernels.
For the second part it'd like to see a test.
There was a problem hiding this comment.
well multiple configs would be another "topology ABI" bump triggering a different behavior on newer kernels.
@plbossart OK, fixed now.
For the second part it'd like to see a test.
I tested the sof-pcm-521x topology without the HDA pipelines and config. I didnt see any oops.
8fc9eb3 to
c1e045a
Compare
With the changes in SOF topology to add hw_config for HDA links, all dai links should have at least 1 hw_config in topology. But older topologies built before this change was incorporated might have no hw_configs for HDA dai links. So make an exception for those. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
c1e045a to
036b656
Compare
|
CI seems to take its own sweet time so will merge. it compiles fine for me. |
If the ICMPv6 error is built from a non-linear skb we get the following splat, BUG: KASAN: slab-out-of-bounds in do_csum+0x220/0x240 Read of size 4 at addr ffff88811d402c80 by task netperf/820 CPU: 0 PID: 820 Comm: netperf Not tainted 6.8.0-rc1+ #543 ... kasan_report+0xd8/0x110 do_csum+0x220/0x240 csum_partial+0xc/0x20 skb_tunnel_check_pmtu+0xeb9/0x3280 vxlan_xmit_one+0x14c2/0x4080 vxlan_xmit+0xf61/0x5c00 dev_hard_start_xmit+0xfb/0x510 __dev_queue_xmit+0x7cd/0x32a0 br_dev_queue_push_xmit+0x39d/0x6a0 Use skb_checksum instead of csum_partial who cannot deal with non-linear SKBs. Fixes: 4cb47a8 ("tunnels: PMTU discovery support for directly bridged IP packets") Signed-off-by: Antoine Tenart <atenart@kernel.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This change was added previously because hw_config section
for HDA DAI's was missing from topology. But with that fixed
in topology, this patch is no longer needed.
Please apply this change along with thesofproject/sof#844